H
hwe
Grünschnabel
Hallo,
ich habe mir vor einigen Monaten folgende Notiz zum Test einer Null-Modem-Verbindung 2er Computer via Bash gemacht:
Serial Port Null Modem Test on Command Line
* You need 2 computers with serial ports to quickly test the serial data transmission.
* Connect the computers via a nullmodem cable (RX and TX is crossed)
* Make sure that the "/dev/ttyS0" device allows the user to read and write !
* On the receiving computer type in at the command line (ttyS0 is equal to COM1)
user:~$ TESTMSG < /dev/ttyS0
and wait ...
* On the transmitting computer type in at the command line
user:~$ echo 0023testmessage2323 > /dev/ttyS0
the message is sent to the receiving computer
* On the receiving computer the command line prompt should show up again, because the message was received, and read the message with
user:~$ echo $TESTMSG
0023testmessage2323
Das Problem ist, dass der erste Befehl user:~$ TESTMSG < /dev/ttyS0 anscheinend nicht mehr funktioniert. Es kommt die Fehlermeldung :
user:~$ TESTMSG < /dev/ttyS0
bash: TESTMSG: command not found
Ich seh einfach den Fehler nicht, könnt Ihr mir bitte Helfen?
(OS: DebianEtch)
Vielen Dank im Vorraus!
HWE
ich habe mir vor einigen Monaten folgende Notiz zum Test einer Null-Modem-Verbindung 2er Computer via Bash gemacht:
Serial Port Null Modem Test on Command Line
* You need 2 computers with serial ports to quickly test the serial data transmission.
* Connect the computers via a nullmodem cable (RX and TX is crossed)
* Make sure that the "/dev/ttyS0" device allows the user to read and write !
* On the receiving computer type in at the command line (ttyS0 is equal to COM1)
user:~$ TESTMSG < /dev/ttyS0
and wait ...
* On the transmitting computer type in at the command line
user:~$ echo 0023testmessage2323 > /dev/ttyS0
the message is sent to the receiving computer
* On the receiving computer the command line prompt should show up again, because the message was received, and read the message with
user:~$ echo $TESTMSG
0023testmessage2323
Das Problem ist, dass der erste Befehl user:~$ TESTMSG < /dev/ttyS0 anscheinend nicht mehr funktioniert. Es kommt die Fehlermeldung :
user:~$ TESTMSG < /dev/ttyS0
bash: TESTMSG: command not found
Ich seh einfach den Fehler nicht, könnt Ihr mir bitte Helfen?
(OS: DebianEtch)
Vielen Dank im Vorraus!
HWE