HF2211 Serial Server Device User Manual
http://www.iotworkshop.com - 57 -
TCP-CLIENT: TCP Client Mode. It is used for connecting server.
UDP-SERVER: UDP Server Mode. Special function. Product will record
the last received UDP package source IP and Port information. The
received UART data will be send to this IP and port, not the setting
Destination .
UDP-CLIENT: UDP Client Mode.
HTTP: HTTP Protocol transmission. The received UART data will
transform to HTTP format and it will remove the HTTP header information
and only output the HTTP data to UART.
TELNETD: Telnetd Mode. Use Telnet to config the UART Console
equipment.
TLS: Function is reserved. We will update it soon.
TCP Server Mode:
Input Local Port[0]: Set local port, Range 1~65535, 0 is random port. For
TCP Server and UDP application, set it to a fixed 1~65535(TCP port 80 is
used for its webpage). For TCP Client application, usually set it to 0.
Input Buffer size[512]: Set Buffer size. Default: 512 bytes, Range:1~1400.
Input KeepAlive[60]: Set TCP keepalive, Heartbeat time, Defalut 60s,
Range: >=0.
Input Timeout[300]: Set TCP timeout, If exceed setted time and don’t received
any network data package, It will break TCP connection. If working in TCP
client mode, it will reconnect immediately. If it work in TCP server mode, the
TCP client need to create the connction. Set this value to 0 is to close the
function. The function is used for TCP to restore abnormal connection.
Recommend to enable. Default: 300s, Range 0~600.
Input Sock Security[Disable]: Security options, Used for data special
encryption. Default: disable no encryption.
Disable: No encryption
TLS: TLS1.2 encryptioin, only support in TCP client mode.
AES: AES encryption, TCP/UDP all support this.
DES3: DES3 encryption, TCP/UDP all support this.
Input key: AES or DES3 key. For AES encryptiont, the key is fixed
16 bytes length, the IV value is the same as key. For DES3
encryption, the key is fixed 24 bytes length, the IV value the first 8
Bytes of key. The key can be ASCII or Hex format data. Hex format
data need to use “space” character as separator, ex, “01 02 03…”
Input Rout[uart]: Set the Socket channel output, Can choose UART and other
created Socket or use as Log print using.
TCP Client Mode ( Only list out difference)
Input Server Address: Set server IPv4 address or domain name.
Input Server Port: Set server port
Input Local Port[0]: Same as above
Input Buffer size[512]: Same as above
Input KeepAlive[60]: Same as above