Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HELP] modbus TCP reads only first "timeseries" #1358

Closed
ilpaso opened this issue Mar 29, 2024 · 2 comments
Closed

[HELP] modbus TCP reads only first "timeseries" #1358

ilpaso opened this issue Mar 29, 2024 · 2 comments
Assignees

Comments

@ilpaso
Copy link

ilpaso commented Mar 29, 2024

Describe the issue
I'm trying to read 3 variables and an attribute from a Modbus TCP device.
The tb_gateway reads only the first variable. I think there is a timing issue because the slave device needs a delay of about 150ms between 2 readings.
I wrote a simple python code to read the 3 variables and it works.
Thank you for your support

Connector name (If you need help with some connector/converter):
MODBUS Connector (modbus.json)

{
"master": {
"slaves": [
{
"host": "192.168.0.233",
"port": 8899,
"type": "tcp",
"method": "socket",
"timeout": 1,
"byteOrder": "BIG",
"wordOrder": "BIG",
"retries": true,
"retryOnEmpty": true,
"retryOnInvalid": true,
"pollPeriod": 5000,
"unitId": 1,
"deviceName": "energy_meter_1",
"sendDataOnlyOnChange": false,
"connectAttemptTimeMs": 5000,
"connectAttemptCount": 5,
"waitAfterFailedAttemptsMs": 10000,
"attributes": [
{
"tag": "serial_number",
"type": "64uint",
"functionCode": 3,
"objectsCount": 4,
"address": 0
}
],
"timeseries": [
{
"tag": "L1_voltage",
"type": "32float",
"functionCode": 3,
"objectsCount": 2,
"address": 14
},
{
"tag": "L2_voltage",
"type": "32float",
"functionCode": 3,
"objectsCount": 2,
"address": 16
},
{
"tag": "L3_voltage",
"type": "32float",
"functionCode": 3,
"objectsCount": 2,
"address": 18
}
],
"attributeUpdates": [],
"rpc": []
}
]

Versions

  • OS: Raspbian GNU/Linux 11 (bullseye)
  • Thingsboard IoT Gateway version: 3.4.6
  • Python version: 3.9.2
@samson0v
Copy link
Contributor

Hi @ilpaso, thanks for your interest in ThingsBoard IoT Gateway!
Please, send the gateway logs file.

@imbeacon
Copy link
Member

Hi,

The issue is not reproducible in the latests release, please try to use it and let us know if you still encounter an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants