-
Notifications
You must be signed in to change notification settings - Fork 844
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
Trying to connect YABE simulator to BACnet thingsboard #999
Comments
Hi @Vaghulkumar95, delete the following line from the tb_gateway.yaml file: |
Hi @samson0v , thanks for getting back, I was able to get thro' this by seeing few other issues related to bacnet(from here https://github.com/thingsboard/thingsboard-gateway/search?p=1&q=bacnet&type=issues) ,by changing the logs from INFO to DEBUG and in pi I was not in etc/thingsboard-gateway/config which is why I was not able to see any changes reflected. When I changed my path in raspberry pi and by changing back the IP to 0.0.0.0:47808 I was able to see the device created and the data flowing thro'. I have few questions regarding the same.
The same thing I wasn't able to achieve in docker. I tried this but it didn't work: docker run -p 192.168.0.240:8080:80 -d -it -e host=thingsboard.cloud -e port=1883 -e accessToken=kLpgLXHLJgjixGzKBZjF -v %HOMEPATH%/tb-gateway/config/thingsboard_gateway/config -v %HOMEPATH%/tb-gateway/extensions/thingsboard_gateway/extensions -v %HOMEPATH%/tb-gateway/logs/thingsboard_gateway/logs --name tb-gateway --restart always thingsboard/tb-gateway. |
I tried to stimulate Modbus slave & poll in PC and run Thingsboard in raspberry pi. Can you help me with this as well? |
Traceback (most recent call last): I had to install python3.10 to get this error out, and now I have the Modbus values passing. Need your help in these :
The same thing I wasn't able to achieve in docker. I tried this but it didn't work: docker run -p 192.168.0.240:8080:80 -d -it -e host=thingsboard.cloud -e port=1883 -e accessToken=kLpgLXHLJgjixGzKBZjF -v %HOMEPATH%/tb-gateway/config/thingsboard_gateway/config -v %HOMEPATH%/tb-gateway/extensions/thingsboard_gateway/extensions -v %HOMEPATH%/tb-gateway/logs/thingsboard_gateway/logs --name tb-gateway --restart always thingsboard/tb-gateway. And I'm trying to get the https://thingsboard.cloud/swagger-ui/#/telemetry-controller/getTimeseriesKeysUsingGET_1 I gave entityType as Attributes Key/Latest Telemetry Key and entityId as deviceID but I'm not sure if it is correct since I'm not getting any data back, can you let me know which values I should use for the same? |
Hi @samson0v, |
Hi @samson0v, I was able to run the docker in a specific IP address with the below command: docker run -p 192.168.0.110:8082:80 -d -it --expose 8082 -e host=thingsboard.cloud -e port=1883 -e accessToken=kLpgLXHLJgjixGzKBZjF -v %HOMEPATH%/tb-gateway/config/thingsboard_gateway/config -v %HOMEPATH%/tb-gateway/extensions/thingsboard_gateway/extensions -v %HOMEPATH%/tb-gateway/logs/thingsboard_gateway/logs --name tb-gateway --restart always thingsboard/tb-gateway Now, the docker now has access to the LAN? Is it possible to autostart thingsboard-gateway? Like a bat file for windows and an sh file for linux? |
@Vaghulkumar95, if you want to autostart Gateway you have to use docker-compose with restart: always. |
Hi @samson0v, Thanks for getting back on this. And how to automate for linux? I need to stress test with Modbus as well. Can you suggest me if there is something better I can do to stress test the gateway? |
Bacnetlogslive.txt I have loaded around 30 devices(YABE, BACNET room simulator) with 11 data points. Unfortunately getting the below error: I have added the logs and the bacnet and tb_gateway.yaml in one file. Currently testing a gateway if you could help me out on how to resolve the error that would be great ! |
@Vaghulkumar95, ensure that you correctly close Gateway and haven't running up one. |
@samson0v so I do, is there something else I have to do to close the gateway? |
@Vaghulkumar95 try to manually find a port in use (in your case 47808): |
Hi @samson0v, Any thoughts on the error? Why I am asking this is I'm not able to install WSL/WSL2 because the Operating System is Windows 10 Enterprise LTSC 64-bit (10.0, Build 17763) (17763.rs5_release.180914-1434). We have many Windows gateways that are currently at client sites and upgrading each to them to 18362 will be quite challenging. |
@Vaghulkumar95 from your error logs, these may help: |
Hi @samson0v, Yes thankyou, I was able to resolve that. |
@Vaghulkumar95, did you expose 47808 port in docker file (or docker-compose file)? |
@samson0v, Sorry, I didn't get you. The logs which I sent is for raspberrypi and everything on this was done in pi. |
@Vaghulkumar95, can we close the issue? |
Do I need to create a new one? |
@Vaghulkumar95, no. |
pi@raspberrypi:/etc/thingsboard-gateway/config $ sudo thingsboard-gateway After this there is no data flowing thro'. |
Hi @samson0v, Any reason on why the values are not flowing through? |
Understood, this is a go-live device so any updates on when this would be fixed or any alternate advice is highly appreciated. |
I got this error parallelly |ERROR| - [tb_device_mqtt.py] - tb_device_mqtt - _on_connect - 223 - connection FAIL with error 5 not authorised" and found this #862. But I'm unaware on where to add this property ACTORS_MAX_CONCURRENT_SESSION_PER_DEVICE, is it on tb_gateway.yaml or in bacnet.json? Do you have an sample example where this property is used? |
Hi @samson0v, Any suggestions on this? and anything on the bug? |
Hi @samson0v, Anything suggestions on this error "connection FAIL with error 5 not authorised" and anything on the bug? |
Hi @Vaghulkumar95, |
Hi @samson0v, I tried again today still NOT receiving the values. Pls find the below logs: pi@raspberrypi:/etc/thingsboard-gateway/config $ sudo thingsboard-gateway |
@samson0v tried this in one more pi with debian 10 and same result. Sill NOT receiving data. |
@Vaghulkumar95, from logs it seems that BACnet can't find devices, so make sure that you correctly configure the IP addresses and ports of your devices. |
Hi @samson0v , Yes you were correct, there was some IP issue because of which the values weren't coming. Now we corrected it and it is working fine, how did you find the same with the logs? |
Hi @samson0v, Can you also help me on how to (service daemons) autostart thingsboard gateway in debian/linux during reboot?(the commands) |
Hi @Vaghulkumar95,
Or you can google it for more information. |
Hi @samson0v, Thank you so much for that. Can you help me on how to send Server RPC requests from thingsboard cloud to the device? |
Hi @Vaghulkumar95, read the official documentation about Gateway RPCs and device RPCs: |
Hi @samson0v , Below is my modbus.json file. pi@raspberrypi:~ $ vi /etc/thingsboard-gateway/config/modbus.json In the RPC debug I'm getting the below error. Is there something wrong in the way I'm doing? |
Hi @Vaghulkumar95, for example: |
@Vaghulkumar95, all these settings you can find in the official documentation. And before asking a question, try to find the answer in docs or google it. |
@Vaghulkumar95, can we close the issue or you have some other questions? |
Hi @samson0v, I was able to get the rest api working. In params I gave the value directly and it started working. {"method":"setValue","params":78.78,"persistent":false,"timeout":5000}. Yes, I was trying to connect two Advantech devices one has Ubuntu installed and the other one has Windows 10. So I'm trying to get Modbus RTU values from windows 10 device having a modbus simulator and the other one is receiving it thro COM ports.
Am I giving the "port": "/dev/tty0", wrong? |
Hi @samson0v, Any suggestions on the above question? |
Hi @Vaghulkumar95, very bad quality in the last screenshot, I can't read the error |
@Vaghulkumar95, you have some problems with your configuration |
@Vaghulkumar95, it seems that your Gateway use the wrong config files: |
Hi @samson0v, I tried in the above format and it started working. |
Hi @samson0v, Any suggestions on the above scenario? |
@Vaghulkumar95, using the same IP address but different ports - is one single solution. |
@Vaghulkumar95, no, it can't. |
Thank you so much @samson0v for your help! |
Statement: I want to send Room Control Simulator data to Things Board Platform Successful steps:
Unsuccessful steps:
Assumptions:
Please find Snaps below: Snap 1: Simulator data in YABE Snap 2: Device & Gateway Connection Configuration Files:bacnet.json.txt I am not understanding, where I did mistake. Kindly refer guide me... |
@samson0v |
Kindly help me...! Please find logs: Please find config logs: |
I'm trying to test out thingsboard-gateway and I'm stuck while trying to send data to thingsboard from Room Control Simulator from YABE. Is there something wrong with the address?
I got the Device IP and port from YABE.
Configuration (Attach your configuration file)
Notate: Remove Access token from file if you want to attach a tb_gateway.yaml
pi@raspberrypi:~/thingsboard-gateway/thingsboard_gateway/config $ cat tb_gateway.yaml
Connector name (If you need help with some connector/converter):
BACnet Connector
pi@raspberrypi:~/thingsboard-gateway/thingsboard_gateway/config $ cat bacnet.json
Error traceback (If it was raised):
pi@raspberrypi:~/thingsboard-gateway/thingsboard_gateway/config $ thingsboard-gateway
Cannot load GRPC connector!
[STREAM ONLY] 2022-11-17 11:27:25,421 - ERROR - [mqtt_connector.py] - mqtt_connector - 285 - [Errno 111] Connection refused
[STREAM ONLY] 2022-11-17 11:27:25,588 - ERROR - [statistics_service.py] - statistics_service - 67 - Statistic parameter raise the exception: /bin/sh: 1: ipconfig: not found
[STREAM ONLY] 2022-11-17 11:27:25,608 - ERROR - [statistics_service.py] - statistics_service - 67 - Statistic parameter raise the exception: /bin/sh: 1: sw_vers: not found
[STREAM ONLY] 2022-11-17 11:27:25,662 - ERROR - [statistics_service.py] - statistics_service - 67 - Statistic parameter raise the exception: /bin/sh: 1: system_profiler: not found
connection FAIL with error 5 not authorised
[STREAM ONLY] 2022-11-17 11:27:29,432 - ERROR - [statistics_service.py] - statistics_service - 67 - Statistic parameter raise the exception: /bin/sh: 1: ipconfig: not found
[STREAM ONLY] 2022-11-17 11:27:29,451 - ERROR - [statistics_service.py] - statistics_service - 67 - Statistic parameter raise the exception: /bin/sh: 1: sw_vers: not found
[STREAM ONLY] 2022-11-17 11:27:29,498 - ERROR - [statistics_service.py] - statistics_service - 67 - Statistic parameter raise the exception: /bin/sh: 1: system_profiler: not found
[STREAM ONLY] 2022-11-17 11:27:33,262 - ERROR - [statistics_service.py] - statistics_service - 67 - Statistic parameter raise the exception: /bin/sh: 1: ipconfig: not found
[STREAM ONLY] 2022-11-17 11:27:33,277 - ERROR - [statistics_service.py] - statistics_service - 67 - Statistic parameter raise the exception: /bin/sh: 1: sw_vers: not found
[STREAM ONLY] 2022-11-17 11:27:33,321 - ERROR - [statistics_service.py] - statistics_service - 67 - Statistic parameter raise the exception: /bin/sh: 1: system_profiler: not found
[STREAM ONLY] 2022-11-17 11:27:35,434 - ERROR - [mqtt_connector.py] - mqtt_connector - 285 - [Errno 111] Connection refused
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: