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]Configure Virtual Bacnet device with Thingsboard BACnet Connector #1596

Open
sanjayN4497 opened this issue Nov 13, 2024 · 0 comments
Open
Assignees
Milestone

Comments

@sanjayN4497
Copy link

sanjayN4497 commented Nov 13, 2024

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):

  • OS: Ubuntu 20.04
  • Thingsboard IoT Gateway version latest , 3.5.1
  • Python version 3.12
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