Anyone know how to use serial ports (uart) under linux os on ARM board? The COM2 -> /dev/??? doesn't respond! Thanks!
How to SERIAL port
Please search forum before posting. There is a lot of information already. UART1 is /dev/ttySAC0. thanks, marek
... and this port works fine. I could read the output from my pc using a hyperterminal. For this thing I put [CODE 1] into /etc/inittab and [mknod /dev/ttySAC0 c 204 64] at system start But to manage COM1 and COM2 (to send command to an other gadget) directly from ARM linux so which is the procedure? ??? echo "something" > /dev/ ... not work [CODE 1] ... 1:2345:respawn:/sbin/getty 38400 tty1 2:23:respawn:/sbin/getty 38400 tty2 3:23:respawn:/sbin/getty 38400 tty3 #4:23:respawn:/sbin/getty 38400 tty4 #5:23:respawn:/sbin/getty 38400 tty5 #6:23:respawn:/sbin/getty 38400 tty6 T0:23:respawn:/sbin/getty -L ttyS0 38400 vt100 T1:23:respawn:/sbin/getty -L ttySA0 38400 vt100 T2:23:respawn:/sbin/getty -L ttyS1 38400 vt100 T3:23:respawn:/sbin/getty -L ttySA1 38400 vt100 # Example how to put a getty on a serial line (for a terminal) # #T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100 #T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100 # Example how to put a getty on a modem line. # #T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3 SA0:12345:respawn:/sbin/getty -L ttySAC0 115200 vt100 #USR MY #ttySAC0::respawn:/sbin/getty -L ttySAC0 115200 vt100 # GENERIC_SERIAL #ttySAC1::respawn:/sbin/getty -L ttySAC1 9600 vt100 # GENERIC_SERIAL [/CODE1]
RESOLVED: SORRY :))) /dev/ttySAC1 works at 9600B but FRIENDLY ARM and a DEVICE are DEVICES and the cable is think for PC (PC) SERVER - CLIENT (ARM) ==> (ARM) CLIENT - CLIENT (OTHER DEVICE) Solution: switch the pins on cable!