Return to site

Logonexpert Serial Port

broken image

Logonexpert Serial Port

All devices on Unix are mapped to a device file, the serial ports would be /dev/ttyS0 /dev/ttyS1.. Chmod o rw /dev/ttyS1A very simple crude method to write to the file, would use the simple echo command.. In the first terminal you cat everything from the device, e g Cat /dev/ttyS0in the other terminal, you can send arbitrary hex characters and text to the terminal e.. Echo -ne '0332J' /dev/ttyS1and to read cat -v All you have to do is open two terminals. HERE

First have a look at the permissions on that file, lets assume you are using /dev/ttyS1.. ls -l /dev/ttyS1You will want read write access, if this is a shared system then you should consider the security consequences of opening it up for everyone. 2

5