Lantronix SGX 5150 User Guide - Page 96

To Con USB Command Mode, Using Web Manager, Using the CLI, Using XML, Modbus

Page 96 highlights

9: Administration USB Command Mode Description Settings (continued) Serial String Enter the Serial String. The Serial String is a string of bytes that must be read on the USB Line during boot time in order to enable Command Mode. It may contain a time element to specify a required delay in milliseconds x, formed as {x}. Echo Serial String Select to enable or disable. Signon Message Enter the Signon Message, which is a string of bytes that is sent on the USB Line during boot time. Place a binary character into either the Serial String or the Signon Message using [x]. For example, use decimal [12] or hex [0xc]. To Configure USB Command Mode Using Web Manager  To configure usb command mode, on the Administration page, click USB > Command Mode. Using the CLI  To enter the usb command level: enable > usb Using XML Include in your file: Modbus The Modbus ASCII/RTU based serial slave devices can be connected via the Ethernet through an existing Modbus TCP/IP network. Any device having access to a given Modbus implementation will be able to perform full range of operations that the implementation supports. Modbus/TCP uses a reserved TCP port of 502 and includes a single byte function code (1=255) preceded by a 6 byte header: Table 9-27 Byte Header of Modbus Application Protocol Transaction ID (2 bytes) Protocol ID (2 bytes) Length (2 bytes) Address (1 byte) Identification of request/response transaction - copied by slave 0 - Modbus protocol Number of following bytes includes the unit identifier Identification of remove slave Serial Transmission Mode SGX 5150 IoT device gateways can be set up to communicate on standard Modbus networks using either RTU or ASCII. Users select the desired mode and serial port communication parameters (baud rate, parity mode, etc) when in the line configuration options. SGX 5150 IoT Device Gateway User Guide 96

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129

9: Administration
SGX 5150 IoT Device Gateway User Guide
96
To Configure USB Command Mode
Using Web Manager
To configure usb command mode, on the
Administration
page, click
USB > Command
Mode
.
Using the CLI
To enter the usb command level:
enable > usb
Using XML
Include in your file:
<configgroup name="usb">
Modbus
The Modbus ASCII/RTU based serial slave devices can be connected via the Ethernet through an
existing Modbus TCP/IP network. Any device having access to a given Modbus implementation
will be able to perform full range of operations that the implementation supports. Modbus/TCP
uses a reserved TCP port of 502 and includes a single byte function code (1=255) preceded by a
6 byte header:
Table 9-27
Byte Header of Modbus Application Protocol
Serial Transmission Mode
SGX 5150 IoT device gateways can be set up to communicate on standard Modbus networks
using either RTU or ASCII. Users select the desired mode and serial port communication
parameters (baud rate, parity mode, etc) when in the line configuration options.
Serial String
Enter the
Serial String
. The Serial String is a string of bytes that must be read on
the USB Line during boot time in order to enable Command Mode. It may contain a
time element to specify a required delay in milliseconds x, formed as {x}.
Echo Serial String
Select to enable or disable.
Signon Message
Enter the Signon Message, which is a string of bytes that is sent on the USB Line
during boot time. Place a binary character into either the Serial String or the Signon
Message using
[x]
. For example, use decimal
[12]
or hex
[0xc]
.
Transaction ID (2 bytes)
Identification of request/response transaction - copied by slave
Protocol ID (2 bytes)
0 - Modbus protocol
Length (2 bytes)
Number of following bytes includes the unit identifier
Address (1 byte)
Identification of remove slave
USB Command Mode
Settings (continued)
Description