The ser2net program comes up normally as a daemon, opens the TCP ports specified in the configuration file, and waits for connections. Once a connection occurs, the program attempts to set up the connection and open the serial port. If another user is already using the connection or serial port, the connection is refused with an error message.
Install ser2net:
sudo apt-get install ser2netnow configure it
sudo vi /etc/ser2net.confThe configuration file already comes with some examples, you just have to modify them to suit your needs. This
file consists of one or more entries with the following format:
<TCP port>:<state>:<timeout>:<device>:<options>or
BANNER:<banner name>:<banner text>
after modifying the configuration file you must restart the service
/etc/init.d/ser2net restart
No comments:
Post a Comment