thingsboard / thingsboard-gateway

Open-source IoT Gateway - integrates devices connected to legacy and third-party systems with ThingsBoard IoT Platform using Modbus, CAN bus, BACnet, BLE, OPC-UA, MQTT, ODBC and REST protocols
https://thingsboard.io/docs/iot-gateway/what-is-iot-gateway/
Apache License 2.0
1.68k stars 817 forks source link

[HELP] bacnet relinquish command #535

Open vac-pav opened 3 years ago

vac-pav commented 3 years ago

I use bacnet connector which seems to work quite well. I can read and write properties at individual priorities using RPC. But I cannot find way how to relinquish already written value. E.g value written at priority 8 (manual control) and I need to relinquish this value.

Is there any way to do it with thingsboard or is this feature not implemented?

WeiTangLau commented 2 years ago

Hi @vac-pav I am also using the bacnet connector, but I am facing problems with it. Do you mind sharing with me your configuration? Regarding your question, this has came across my mind too. I think a workaround would be that setting a BV for each point to toggle between user input or program input.

samson0v commented 2 years ago

Hi @vac-pav and @WeiTangLau, we will add this functionality to the Gateway in the coming days.

Thanks for your interest in ThingsBoard IoT Gateway.

samson0v commented 2 years ago

Hi @vac-pav and @WeiTangLau, after investigation, we discover that if you overwrite the priority value below, then it is not possible to increase it because it will not be written. This is a limitation of BACNet.

Sorry for the inconvenience.

vac-pav commented 2 years ago

Hi @samson0v , thanks for reply. Do you mean that it is not possible at priority 8 or at all? You are probably right, that at priority 8 this is not possible as this is manual control, this was probably my fault. But what about if we use priority 9. Then it should be possible to write there null value to remove command at priority 9. Or am I wrong? Is this supported by current version or can you implement it?

Kretiss commented 2 years ago

Hi @samson0v and @zbeacon

How is it with using priorities in the BACnet connector? Is there any way to set the priority in the RPC request? I can't find any info about it in the documentation. Is this feature already implemented?

Thank you for answer.