|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
digitalmars.D - Newbie : SERIAL PORT
Hi All, 1. How to access serial port (RS232) in D ? any have sample code ;) 2. What is D editor that has autocomplete feature ? Thanks. Budi -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ Sep 16 2004
In article <opsega6ipaukcpn4 telkomnetinstan>, BUDI ARIEF GUSANDI says...Hi All, 1. How to access serial port (RS232) in D ? Sep 16 2004
In linux the serial port is one file, i think in /dev/ directory, you write it and read it like a usual file. I think /dev/ttyS0 is com1 /dev/ttyS1 is com2 ... But I haven't ever done it, so don't blame me if crashes your computer or something. Search google for "/dev/ttyS0" or "linux serial port programming" or look at http://www.comptechdoc.org/os/linux/programming/c/linux_pgcserial.html How it is done in windows, I don't know and have'nt been able to figure out yet. In article <cie1hr$p01$1 digitaldaemon.com>, Arcane Jill says...In article <opsega6ipaukcpn4 telkomnetinstan>, BUDI ARIEF GUSANDI says...Hi All, 1. How to access serial port (RS232) in D ? Sep 17 2004
I've checked the website, and found this #include <termios.h> #include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <sys/signal.h> #include <sys/types.h> What about the header above ? should i just change the #include to import ? or need to copy what to where ? Regards On Fri, 17 Sep 2004 10:05:27 +0000 (UTC), Martin <Martin_member pathlink.com> wrote:In linux the serial port is one file, i think in /dev/ directory, you write it and read it like a usual file. I think /dev/ttyS0 is com1 /dev/ttyS1 is com2 ... But I haven't ever done it, so don't blame me if crashes your computer or something. Search google for "/dev/ttyS0" or "linux serial port programming" or look at http://www.comptechdoc.org/os/linux/programming/c/linux_pgcserial.html How it is done in windows, I don't know and have'nt been able to figure out yet. In article <cie1hr$p01$1 digitaldaemon.com>, Arcane Jill says...In article <opsega6ipaukcpn4 telkomnetinstan>, BUDI ARIEF GUSANDI says...Hi All, 1. How to access serial port (RS232) in D ? Sep 17 2004
BUDI ARIEF GUSANDI wrote:I've checked the website, and found this #include <termios.h> #include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <sys/signal.h> #include <sys/types.h> What about the header above ? should i just change the #include to import ? or need to copy what to where ? Sep 17 2004
|