Advanced Features; Random Native Port; Heartbeat Packet Function - Ebyte NT1-B User Manual

Wireless modem
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co.,Ltd.
Alibaba Cloud MQTT platform communication test:

4.4 Advanced Features

4.4.1 Random native port

TCP client, UDP client, HTTP client, MQTT client can configure the local port to 0 (use random local port),
and server mode cannot use random port, otherwise the client cannot establish a connection correctly.
Using a random port connection can quickly re-establish the connection when the device disconnects the
server unexpectedly, preventing the server from rejecting the connection due to four waves of incompleteness. It is
recommended to use a random port in client mode .
The device will automatically enable random ports when configuring the TCP client, HTTP client, and MQTT
client modes.

4.4.2 Heartbeat Packet Function

In client mode, users can choose to send heartbeat packets and set the time of heartbeat packets by themselves.
The heartbeat packet can be selected in two modes: network heartbeat packet and serial port heartbeat packet. It
supports hexadecimal and ASCII transmission. This heartbeat packet is not MQTT heartbeat and needs to be turned
off in MQTT client mode. MQTT heartbeat only needs to configure KeepAlive in "MQTT function settings" Time,
it is recommended not to configure less than 60s, for example, 120s is recommended in the Alibaba Cloud manual.
Heartbeat packet sending mode:
(1) The default is to turn off the heartbeat packet mode.
(2) Serial port mode -> The device sends heartbeat content to the serial bus according to the set heartbeat
interval.
(3) Network port mode -> The device sends heartbeat content to the network port bus according to the set
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd.
NT1-B_User_Manual
19

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents