Hi, I made the serial port modification to a WAP54G and connected a device to it. My only question is... when i do serial port programming in linux on my desktop, i open a file descriptor to /dev/ttyS0 (the serial port...) but on the WAP54G, there is no /dev/ttyS0, I only have: Code: # ls -l /dev/ crw------- 1 0 0 5, 1 Jan 1 00:03 console drwxr-xr-x 1 0 0 0 Jan 1 00:00 cua crw-rw-rw- 1 0 0 1, 7 Jan 1 00:00 full drwxr-xr-x 1 0 0 0 Jan 1 00:00 gpio crw-r----- 1 0 0 1, 2 Jan 1 00:00 kmem crw-r----- 1 0 0 1, 1 Jan 1 00:00 mem drwxr-xr-x 1 0 0 0 Jan 1 00:00 mtd drwxr-xr-x 1 0 0 0 Jan 1 00:00 mtdblock crw-rw-rw- 1 0 0 1, 3 Jan 1 00:00 null crw-r----- 1 0 0 253, 0 Jan 1 00:00 nvram crw-r----- 1 0 0 1, 4 Jan 1 00:00 port crw------- 1 0 0 108, 0 Jan 1 00:00 ppp crw-rw-rw- 1 0 0 5, 2 Jan 1 00:12 ptmx drwxr-xr-x 1 0 0 0 Jan 1 00:00 pts drwxr-xr-x 1 0 0 0 Jan 1 00:00 pty crw-r--r-- 1 0 0 1, 8 Jan 1 00:00 random lr-xr-xr-x 1 0 0 10 Jan 1 2000 root -> mtdblock/2 drwxr-xr-x 1 0 0 0 Jan 1 00:00 tts crw-rw-rw- 1 0 0 5, 0 Jan 1 00:00 tty crw-r--r-- 1 0 0 1, 9 Jan 1 00:00 urandom crw-rw-rw- 1 0 0 1, 5 Jan 1 00:00 zero where is the serial port device?? what do i open my file descriptor to? Thanks! George
/dev/tts/0 and /dev/tts/1 are the serial port devices. Testing /dev/tts/0 is easy, if you get a console it works. Testing /dev/tts/1 is a bit trickier. I did a quick "yes > /dev/tts/1" and found "y"'s coming out. good enough for me. Update: I thought of a better way to test /dev/tts/1. "cat /dev/tts/1 > /dev/tts/1" will create a nice little loopback device. Connect a terminal and type a few characters. It should echo them back. /dev/tts/1 is 9600,N,8,1. If you do the mod like I did, the serial port is a "host type port" (male DB9) so you'll need a null modem to hook it up. Jake
hey thanks for the response. I am a little confused... the serial port, can this be used to hook up something like a GPS antenae, or a mouse, or a sensor and be able to read data from them? Like raw data? What are these serial ports for? Thanks! George