-
Notifications
You must be signed in to change notification settings - Fork 871
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
[BUG] version 3.6.2 #1624
Comments
Hi, @pro100805, thanks for your interest in ThingsBoard IoT Gateway! |
@pro100805 fix is available in the master branch. If something goes wrong, let us know. |
Thank you for your prompt reply. |
After modification according to the fix file, __get_master in modbus_connector.py file will show slave. host as None. Is this an error? |
I'll make the changes and let you know what the result is. |
@tangchengxiang666, it is ok |
It's not as easy as I thought. It's possible that you need to rebuild something after the changes. I don't think I can do it without help. |
@pro100805 deb file with the latest changes: |
The devices described in the connector do not appear on the TB server. the following message appears Dec 18 11:11:34 tesssst-24-04 python3[1005]: File "/usr/lib/python3.12/asyncio/events.py", line 88, in _run |
After repairing it using the file you provided, it is still not available for serial cases |
@samson0v Please assist. |
Seems to be linked with my Issue |
After configuring the gateway and adding the connector, nothing happens for some time. The devices described in the connector do not appear on the TB server.
some time later, the following message appears
Dec 17 13:09:24 tesssst-24-04 python3[1822]: File "/var/lib/thingsboard_gateway/venv/lib/python3.12/site-packages/thingsboard_gateway/connectors/modbus/modbus_connector.py", line 204, in __add_slaves
Dec 17 13:09:24 tesssst-24-04 python3[1822]: self.__add_slave(slave_config)
Dec 17 13:09:24 tesssst-24-04 python3[1822]: File "/var/lib/thingsboard_gateway/venv/lib/python3.12/site-packages/thingsboard_gateway/connectors/modbus/modbus_connector.py", line 195, in __add_slave
Dec 17 13:09:24 tesssst-24-04 python3[1822]: slave = Slave(self, self.__log, slave_config)
Dec 17 13:09:24 tesssst-24-04 python3[1822]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Dec 17 13:09:24 tesssst-24-04 python3[1822]: File "/var/lib/thingsboard_gateway/venv/lib/python3.12/site-packages/thingsboard_gateway/connectors/modbus/slave.py", line 39, in init
Dec 17 13:09:24 tesssst-24-04 python3[1822]: config['host']) + ":" + str(config['port']) + ' ' + config['deviceName']
Dec 17 13:09:24 tesssst-24-04 python3[1822]: ~~~~~~^^^^^^^^
Dec 17 13:09:24 tesssst-24-04 python3[1822]: KeyError: 'host'
Dec 17 13:09:24 tesssst-24-04 python3[1822]: 2024-12-17 13:09:24 - |INFO| - [tb_gateway_service.py] - tb_gateway_service - __connect_with_connectors - 1022 - Cannot find separated report strategy for connector 'Serial'. The main report strategy will be used as a connector report strategy.
The text was updated successfully, but these errors were encountered: