Bridges a serial port to a TCP socket, or UDP stream. TLS, and WebSocket are
also supported. In server mode the protocol requested by client is used, RAW
can be used as a fallback if no protocol is detected. In client mode, the use
of protocol is configured from the command line. Secure connections require
a certificate file in the current directory with the name gvalkov.com.pem
.
gncom <- l-- listen> <- p source port> gncom < host IP> < port> [- s source IP] [- p source port] [- c31 connections] [- P-- ] [- O-- once] [- v-- verbose] [- q-- quiet connect silently] [- L1472 |- L65112 packet length] [- u- udp] [- w-- websocketsend as textif detected, fallback to binary] [- a-- text WebSocet] [- b-- binary WebSocket] [- e-- echo bytes from COM port( default)] [- E-- no- echo bytes from COM port] [- t-- tls] [- F-- forward data between clients( default)] [- N-- no- forward data between clients] [- H-- honeypot] [- T-- test] [- f ttyS0|- f/ dev/ ttyS0|- f/ dev/ ttyUSB0] # UNIX [- f COM1|- f\\.\ COM1|- f\\.\ COM2] # Windows [- i pipe|\\.\ pipe\ name] - i open existing pipe, use- I to create[- r115200 baud rate] [- b8 ] 5 - 8 : byte size-- 5b its-- 6b its-- 7b its-- 8b its[- Y0 ] 0 : -- no- parity, 1 : -- odd- parity, 2 : -- even- parity3 : -- mark- parity, 4 : -- space- parity[- S0 ] 0 : -- one- stop bit, 1 : -- one5- stop1 . 5 stop bits, 2 : -- two- stop
gncom - lp81 gncom - lp81 - r115200 - f/ dev/ ttyUSB0# UNIX gncom - lp81 - r115200 - f\\.\ COM2# Windows gncom - lp81 - s192 . 168 . 192 . 77 gncom 192 . 168 . 192 . 1 81 - s192 . 168 . 192 . 77 - p81
Normally the program accepts connections or connects to some server,
then reads the incomming packets, which frees system resources and enables
normal communication over the network. The --honeypot
(-H
) switch
disables the receiving task. This may jam system resources and disrupt network
communications. Some Wi-Fi cards disconnect, if a client in this mode starts
receiving data.
☂︎ Apple iOS, macOS
☂︎ FreeBSD
☂︎ Linux, OpenWRT
☂︎ Windows