IP Relay HWg-ER02b - Manual
HW group
www.HW-group.com
36/ 42
Configuration example
To send all data from the serial
line to the remote device, use
this configuration:
*L: Trigger Length
0
*P: Post Trigger Length
0
*S: Start Trigger Pattern
0.0.0.0
*M: Start Trigger Mask
0.0.0.0
*X: Stop Trigger Pattern
255.0.0.0
*Y: Stop Trigger Mask
255.0.0.0
*E: Max. Start-Stop Length
200
(
4B input data
AND
*M
) =
*S
(
4B input data
AND
*Y
)=
*X
*P: Post Trigger Length
0
In some protocols, the packet end condition is followed e.g. by a checksum. This condition defines
the number of characters that make up a packet after the packet termination condition. If the start
and stop trigger conditions are equal, this value specifies the packet length without the leading 0 to
4 bytes of the start trigger.
*S: Start Trigger Pattern
58.0.0.0
Start trigger condition for packet transmission. Four bytes are set; however, only the number of
bytes specified in “L: Trigger Length” is considered.
*M: Start Trigger Mask
255.0.0.0
Mask of the start trigger condition. Masking works similarly to the Ethernet netmasks using a bitwise
AND. Value of 255 means that the tested character m
ust be equal to the character specified in “V: Start
Trigger Pattern”. For example, to start the transfer with any ASCII control character (0..31d), use
0.0.0.0 for the trigger pattern, 224.0.0.0 for the mask and 1 for the length. If you set the character to 0
and the mask to 0, the trigger matches any character.
*X: Stop Trigger Pattern
10.0.0.0
Sets the stop trigger condition for sending data to the Ethernet.
*Y: Stop Trigger Mask
255.0.0.0
Mask of the stop packet trigger condition for serial line data. For
example, the settings displayed here are intended for
transferring data in the IntelHEX format over RS485. The start
trigger is a colon and the transfer is terminated after receiving
the <LF> (0Ah = 10d) control character.
*E: Max. Start-Stop Length
999
Maximum number of characters that the device sends after the
START trigger, unless the STOP trigger is encountered sooner.
After transmission, another START trigger is expected.
Essentially, this is a “timeout” specified as the number of
characters.
*A: Max. Packet Length
250
Only active in the UDP mode.
Maximum data size in an UDP packet; if more data received, sends the data immediately.