Skip to content

PHYoIP/server

Repository files navigation

PHYoIP Server

Important

Work in progress! "Usage:" and "Examples:" are more like a specification atm.

If a serial port is specified, the server acts as a gateway server (= server with integrated gateway client).

Usage:

phyoip-server PORT [SPCFG DEV BAUD [CONFIG]]
phyoip-server --help

Examples:

phyoip-server 1234
phyoip-server 1234 A,0D0A /dev/ttyS4 115200
phyoip-server 1234 B,1500 COM7 19200
phyoip-server 1234 A,0A,24 COM3 9600 8E2

Serial Protocol Config (SPCFG)

Comma separated list of parameters. The first parameter specifies the protocol type.

A ASCII Protocol

ASCII protocols use one or two stop symbols, and optionally one start symbol: A,STOP[,START]. Only the stop symbol may have two characters. The start symbol can not be NULL.

Symbol Description
xx,
xxxx
x has to be a hexadecimal digit
LF Line Feed, 0Ah, 10d
CR Carriage Return, 0Dh, 13d
CRLF CR and LF, 0D0Ah
NULL Null terminator, 00h, 0d

B Binary Protocol

B,TO[,LEN]

  • TO timout as microseconds
  • LEN byte offset of the length specifier of the message

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages