thingsboard-gateway icon indicating copy to clipboard operation
thingsboard-gateway copied to clipboard

[HELP]Modbus_serial cannot configure multiple devices.

Open ZhaoLinl opened this issue 1 year ago • 3 comments

Describe the issue Create description about your issue, and your actions to solve it. Modbus_serial cannot configure multiple devices.Currently, only one device ID can be configured.How to solve the problem that we need to connect multiple devices on one interface? Looking forward to your reply.

Configuration (Attach your configuration file) Notate: Remove Access token from file if you want to attach a tb_gateway.yaml

Connector name (If you need help with some connector/converter): [e.g. MQTT Connector]

Error traceback (If it was raised):

'deviceName'
Traceback (most recent call last):
  File "<input>", line 2, in <module>
KeyError: 'deviceName'

Versions (please complete the following information):

  • OS: [e.g. Ubuntu 20.04]
  • Thingsboard IoT Gateway version [e.g. 3.4.6]
  • Python version[e.g. 3.9]

ZhaoLinl avatar Aug 30 '24 12:08 ZhaoLinl

image image

ZhaoLinl avatar Aug 30 '24 12:08 ZhaoLinl

I don't want to do it manually, Is there any API endpoint to configure new device?

KashifAhmd avatar Sep 02 '24 09:09 KashifAhmd

Is there any API endpoint to configure new device?

Ideally I would like to know this too. I would like to just be able to attach modbus devices be it Serial or TCP, and be able to configure them without needing to deploy a new configuration via docker.

On the main thingsboard server, I would either send an RPC to create a new device or be able to just send an RPC with the appropriate parameters, such as mdevice address and register address.

txf- avatar Dec 13 '24 11:12 txf-

Hi,

This issue was in previous versions of the gateway, please try the latest one, this issue should be fixed there.

Feel free to open a new issue if you discover some misbehaving.

imbeacon avatar Jul 08 '25 08:07 imbeacon