-
Notifications
You must be signed in to change notification settings - Fork 869
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]Configure Virtual Bacnet device with Thingsboard BACnet Connector #1596
Comments
Hi @sanjayN4497! |
Hi @samson0v , Thanks for update !! Now I'm facing below error: 2024-12-04 19:50:49 - |ERROR| - [tb_logger.py] - tb_logger - exception - 161 - an error has occurred: 'str' object has no attribute 'get' |
This issue closed, because relates to outdated implementation of connector, please try the latest version (3.6.2), and feel free to open a new issue if you discover some misbehaviour. |
Issue-1:
I'm using python BAC0 based code to setup create virtual BACnet device, this code hosted on EC2 instance ubuntu instance. Also i tried with my windows machine.
Now in thingsboard i can see below logs only unable to see device and it's objects mentioned in json and error coming in tb_gateway.py file is as below:
site-packages\thingsboard_gateway\connectors\bacnet\bacnet_uplink_converter.py", line 53, in convert
count=len(dict_result["attributes"]))
~~~~~~~~~~~^^^^^^^^^^^^^^
TypeError: string indices must be integers, not 'str'
as well as logs in thingsboard connector are as below:
2024-11-13 13:20:21 DEBUG [tb_gateway_bacnet_application.py] - tb_gateway_bacnet_application __iam_cb - 164 - Received IAm Response: <bacpypes.apdu.ReadPropertyACK(12,1) instance at 0x29963b34050>
2024-11-13 13:20:21 DEBUG [tb_gateway_bacnet_application.py] - tb_gateway_bacnet_application indication - 73 - 65.0.198.181
2024-11-13 13:20:21 DEBUG [tb_gateway_bacnet_application.py] - tb_gateway_bacnet_application indication - 68 - Received IAmRequest from device with ID: 11111 and address xx.xx.xx.xx:47808
2024-11-13 13:20:21 DEBUG [tb_gateway_bacnet_application.py] - tb_gateway_bacnet_application indication - 73 - 65.0.198.181
2024-11-13 13:20:21 DEBUG [tb_gateway_bacnet_application.py] - tb_gateway_bacnet_application indication - 68 - Received IAmRequest from device with ID: 11111 and address xx.xx.xx.xx:47808
2024-11-13 13:20:21 DEBUG [bacnet_connector.py] - bacnet_connector scan_network - 227 - WhoIsRequest has been sent.
2024-11-13 13:20:21 DEBUG [bacnet_connector.py] - bacnet_connector run - 81 - WhoIsRequest has been sent.
2024-11-13 13:20:21 DEBUG [bacnet_connector.py] - bacnet_connector scan_network - 227 - WhoIsRequest has been sent.
also i tried with latest gatway version & 3.5.1 version but issue is remain same.
Issue-2
on amazon ec2 ubuntu unable to add private IP here
device1 = lite(ip='xx.xx.xx.xx/24', port = '47808', deviceId = '11111') # tried with connect also but same issue
BAC0.core.io.IOExceptions.InitializationError: Gros probleme : Error starting app: [Errno 99] Cannot assign requested address. Address requested :
Configuration (Attach your configuration file)
bacnet.txt
sample_device.txt
Connector name (If you need help with some connector/converter):
BACnet connector
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: