Skip to content

Commit 0a4dd93

Browse files
authored
Merge pull request thingsboard#1436 from stitenko/04.2024/Modbus-doc-minor-changes
Gateway Modbus Connector Configuration doc. Small text corrections
2 parents beef282 + f3fad75 commit 0a4dd93

File tree

5 files changed

+106
-105
lines changed

5 files changed

+106
-105
lines changed
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
| **Parameter** | **Default value** | **Description** |
2-
|:-|:-|-
3-
| deviceName | **Gateway** | Device name |
4-
| deviceType | **default** | Device type |
5-
| type | **serial** | Type of connection may be **tcp**, **udp** or **serial**. |
6-
| method | **rtu** | Type of application data unit - **rtu** or **ascii** |
7-
| port | **/dev/ttyUSB0** | Serial port for connection. |
8-
| baudrate | **19200** | Baudrate for The baud rate to use for the serial device. |
9-
| byteOrder | **BIG** | Order of bytes to read. |
10-
| unitId | **0** | Unit id of the device |
11-
| pollPeriod | **5000** | Period in milliseconds for check the attributes and the telemetry. |
12-
| sendDataToThingsBoard | **false** | If set to TRUE, Gateway make autoconfiguration and every <pollPeriod> ms send values to ThingsBoard |
13-
|---
1+
| **Parameter** | **Default value** | **Description** |
2+
|:-|:-|--------------------------------------------------------------------------------------------------------------------------
3+
| deviceName | **Gateway** | Device name |
4+
| deviceType | **default** | Device type |
5+
| type | **serial** | Type of connection may be **TCP**, **UDP** or **Serial**. |
6+
| method | **rtu** | Type of application data unit - **RTU** or **ASCII** |
7+
| port | **/dev/ttyUSB0** | Serial port for connection. |
8+
| baudrate | **19200** | Baudrate for The baud rate to use for the serial device. |
9+
| byteOrder | **BIG** | Order of bytes to read. |
10+
| unitId | **0** | Unit id of the device |
11+
| pollPeriod | **5000** | Period in milliseconds for checking the attributes and the telemetry. |
12+
| sendDataToThingsBoard | **false** | If set to TRUE, the Gateway will perform autoconfiguration and send values to ThingsBoard every <pollPeriod> millisecond |
13+
|---

_includes/templates/iot-gateway/gateway-as-modbus-slave-tcpudp-connection.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
| **Parameter** | **Default value** | **Description** |
2-
|:-|:-|-
3-
| type | **tcp** | Type of connection may be **tcp**, **udp** or **serial**. |
4-
| host | **127.0.0.1** | Hostname or ip address of Modbus server. |
5-
| port | **5020** | Port of Modbus server for connect. |
6-
| method | **socket** | Type of framer **socket** or **rtu**, if needed. |
7-
| deviceName | **Modbus_Slave_Example** | Device name |
8-
| deviceType | **default** | Device type |
9-
| pollPeriod | **5000** | Period in milliseconds for check the attributes and the telemetry. |
10-
| sendDataToThingsBoard | **false** | If set to TRUE, Gateway make autoconfiguration and every <pollPeriod> ms send values to ThingsBoard |
11-
| byteOrder | **BIG** | Order of bytes to read. |
12-
| unitId | **0** | Unit id of the device |
1+
| **Parameter** | **Default value** | **Description** |
2+
|:-|:-|--------------------------------------------------------------------------------------------------------------------------
3+
| type | **tcp** | Type of connection may be **TCP**, **UDP** or **Serial**. |
4+
| host | **127.0.0.1** | Hostname or ip address of Modbus server. |
5+
| port | **5020** | Port of Modbus server for connect. |
6+
| method | **socket** | Type of framer **Socket** or **RTU**, if needed. |
7+
| deviceName | **Modbus_Slave_Example** | Device name |
8+
| deviceType | **default** | Device type |
9+
| pollPeriod | **5000** | Period in milliseconds for checking the attributes and the telemetry. |
10+
| sendDataToThingsBoard | **false** | If set to TRUE, the Gateway will perform autoconfiguration and send values to ThingsBoard every <pollPeriod> millisecond |
11+
| byteOrder | **BIG** | Order of bytes to read. |
12+
| unitId | **0** | Unit id of the device |
1313
|---
1414

1515
Also, you can configure TLS connection using the following configuration:
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
| **Parameter** | **Default value** | **Description** |
2-
|:-|:-|-
3-
| name | **Modbus Default Server** | Name of connector to server. |
4-
| type | **serial** | Type of connection may be **tcp**, **udp** or **serial**. |
5-
| method | **rtu** | Type of application data unit - **rtu** or **ascii** |
6-
| port | **/dev/ttyUSB0** | Serial port for connection. |
7-
| baudrate | **19200** | Baudrate for The baud rate to use for the serial device. |
8-
| stopbits | **1** | The number of bits sent after each character in a message to indicate the end of the byte. |
9-
| bytesize | **8** | The number of bits in a byte of serial data. This can be one of 5, 6, 7, or 8. |
10-
| parity | **N** | The type of checksum to use to verify data integrity. This can be on of the following: (**E**)ven, (**O**)dd, (**N**)one. |
11-
| strict | **true** | Use Inter char timeout for baudrates <= 19200. |
12-
| timeout | **35** | Timeout in seconds for connecting to Modbus server. |
13-
| byteOrder | **BIG** | Order of bytes to read. |
1+
| **Parameter** | **Default value** | **Description** |
2+
|:-|:-|---------------------------------------------------------------------------------------------------------------------------
3+
| name | **Modbus Default Server** | Name of connector to server. |
4+
| type | **serial** | Type of connection may be **tcp**, **udp** or **serial**. |
5+
| method | **rtu** | Type of application data unit - **RTU** or **ASCII** |
6+
| port | **/dev/ttyUSB0** | Serial port for connection. |
7+
| baudrate | **19200** | Baudrate for The baud rate to use for the serial device. |
8+
| stopbits | **1** | The number of bits sent after each character in a message to indicate the end of the byte. |
9+
| bytesize | **8** | The number of bits in a byte of serial data. This can be one of 5, 6, 7, or 8. |
10+
| parity | **N** | The type of checksum to use to verify data integrity. This can be on of the following: (**E**)ven, (**O**)dd, (**N**)one. |
11+
| strict | **true** | Use Inter char timeout for baudrates <= 19200. |
12+
| timeout | **35** | Timeout in seconds for connecting to Modbus server. |
13+
| byteOrder | **BIG** | Order of bytes to read. |
1414
|---

_includes/templates/iot-gateway/modbus-tcpudp-connection.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
| **Parameter** | **Default value** | **Description** |
2-
|:-|:-|-
3-
| name | **Modbus Default Server** | Name of connector to server. |
4-
| host | **127.0.0.1** | Hostname or ip address of Modbus server. |
5-
| port | **5021** | Port of Modbus server for connect. |
6-
| type | **tcp** | Type of connection may be **tcp**, **udp** or **serial**. |
7-
| method | **socket** | Type of a framer **socket** or **rtu**, if needed. |
8-
| timeout | **35** | Timeout in seconds for connecting to Modbus server. |
9-
| byteOrder | **LITTLE** | Order of bytes to read. |
10-
| wordOrder | **LITTLE** | Order of words in case of reading several registers. |
1+
| **Parameter** | **Default value** | **Description** |
2+
|:-|:-|-----------------------------------------------------------
3+
| name | **Modbus Default Server** | Name of connector to server. |
4+
| host | **127.0.0.1** | Hostname or ip address of Modbus server. |
5+
| port | **5021** | Port of Modbus server for connection. |
6+
| type | **tcp** | Type of connection may be **TCP**, **UDP** or **Serial**. |
7+
| method | **socket** | Type of a framer **Socket** or **RTU**, if needed. |
8+
| timeout | **35** | Timeout in seconds for connecting to Modbus server. |
9+
| byteOrder | **LITTLE** | Order of bytes to read. |
10+
| wordOrder | **LITTLE** | The order of words when reading several registers. |
1111
|---
1212

1313
Also, you can configure TLS connection using the following configuration:

0 commit comments

Comments
 (0)