Serial port
Configure UDP serial mode
LR54 User Guide
247
b. Set the maximum size of the packet:
(config)>serial port1 framing max_count
int
(config)
The default is
1024
.
c. Set the length of time the device should wait before sending the packet:
(config)>serial port1 framing idle_time
value
(config)
where
value
is in milliseconds (ms) or seconds (s). The maximum value is
60s
.
d. Set the end pattern. The packet is sent when this pattern is received from the serial port:
(config)>serial port1 framing end_pattern
backslash-escaped-string
(config)
e. Set the strip end pattern if you want to remove the end pattern from the packet before it is
sent:
(config)>serial port1 framing strip_pattern true
(config)
12. Set the UDP port:
(config)> serial port1 udp port
port
(config)>
The default is
4001
.
13. (Optional) Enter a string that should be added at the beginning of each packet:
(config)> serial port1 udp socketid
backslash-escaped-string
(config)>
14. Configure the remote sites to which you want to send data. If you do not specify any
destinations, the LR54 send new data to the last hostname and port from which data was
received. To add a destination:
i. Add a destination:
(config)> add serial port1 upd destination end
(config serial port1 udp destination 0)>
ii. (Optional) Enter a description of the destination:
(config serial port1 udp destination 0)> description
string
(config serial port1 udp destination 0)>
iii. Set the host name or IP address of the remote site to which data should be sent:
(config serial port1 udp destination 0)>hostname
hostanme-or-IP-
address
(config serial port1 udp destination 0)>