📄 readme
字号:
Serproxy--------Author: Stefano Busti (sbusti@nildram.co.uk)Serproxy is a GPL multi-threaded proxy program for redirectingnetwork socket connections to/from serial links, in cases wherethe remote end of the serial link doesn't have a TCP/IPstack (eg an embedded or microcontroller system).The proxy allows other hosts on the network to communicatewith the system on the remote end of the serial link.When run, it listens for incoming connections on a number of tcpports. Whenever a connection is made data is proxied to and fromthat connection to a serial port.Installation------------See the files INSTALL-unix and INSTALL-win32.txt for windows/unixinstallation instructions.I have only tested the unix version under RedHat Linux 6.0, compiling under other unices will probably involve delving intothe Makefile/source code. Also, the pthread library is neededto compile/run.Configuration directives------------------------Serproxy can be configured via the configuration file "serproxy.cfg".Comments are allowed by starting a line with the '#' character.The configuration file supports the following directives:---------------------------------------------------------------------comm_ports=<list>Used to configure which comm ports serproxy will use. <list> is a comma-separated list of port numbers, where 1 correspondsto ttyS0/COM1, 2 corresponds to ttyS1/COM2, etc.Example:# Use ttyS0 and ttyS2comm_ports=1,3---------------------------------------------------------------------comm_baud=<n>Sets the default baud rate for serial connections.Example:# Use 38400 baudcomm_baud=38400---------------------------------------------------------------------comm_databits=<n>Sets the default number of data bits.Example:# Use 8 data bitscomm_databits=8---------------------------------------------------------------------comm_stopbits=<n>Sets the default number of stop bits. Possible values are 1 or 2.Example:# Use 1 stop bitcomm_stopbits=1---------------------------------------------------------------------comm_parity=<p>Sets the default parity. Possible values are "none", "even" and "odd"Example:# No paritycomm_parity=none---------------------------------------------------------------------timeout=<n>If a client is idle for more than <n> seconds, he will bedisconnected.Example:# Time out after 300 secondstimeout=300---------------------------------------------------------------------net_port<x>=<n>Used to map tcp port numbers to serial port numbers. These definewhich serial ports serproxy tries to open when it detects a tcpnetwork connection on a socket for proxying. <x> is the serialport number, <n> is the tcp port number.Example:# Proxy ttyS0/COM1 to/from tcp port 5331net_port1=5331# Proxy ttyS2/COM3 to/from tcp port 5333net_port3=5333---------------------------------------------------------------------Port-specific settingsThe baud rate, data bits, stop bits and timeout values can also beconfigured individually for each serial port. This is achievedby appending a port number to the end of a particular directive.Example:# Override the global settings for ttyS0comm_baud1=14400# Override the global settings for ttyS2/COM3comm_baud3=9600comm_databits3=7comm_stopbits3=2comm_parity3=oddtimeout3=100
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -