thingsboard-gateway
thingsboard-gateway copied to clipboard
[HELP] How to implement ota on tb-gateway?
Describe the issue How to implement ota on tb-gateway? Do you have this play? What should i do if i want to add it?
Versions (please complete the following information):
- OS: [e.g. Ubuntu 20.04]
- Thingsboard IoT Gateway version [e.g. 3.4.2]
- Python version[e.g. 3.9]
Hi @lincoln310, for OTA API you can use our Python SDK.
@samson0v Thanks! But what i want is : my device connect to tb-gateway, and get firmware from it. So the tb-gateway should work with ota message as other attribute message. Like a bridge.
@lincoln310, Gateway doesn't support OTA API for now.
@lincoln310, Gateway doesn't support OTA API for now.
Indeed, so what should i do to add it? Any suggestion? I can send a pull request when i finish.
Hi @lincoln310,
Unforunately at the moment ThingsBoard doesn't have API to get firmware for devices through the gateway, we will discuss this point with team and let you know about the results.
@imbeacon I need 2 function: 1 ota for my device. This should connect to tb or tb-edge 2 custom binary data process on custom topic from device. This should use tb-Gateway
Any suggestion?
@imbeacon Can you give me some suggestion if i want to add it by myself? Maybe i should look into attribute as reference?
@lincoln310 ,
- There is no API on ThenigsBoard for the gateway to get firmware for devices connected through it, so there is no way at the moment to implement this on the gateway by now, unfortunatly.
- We are going to add different types for default mqtt converter like string, bytes in the nearest future, we will write here when add them.
@lincoln310 ,
- There is no API on ThenigsBoard for the gateway to get firmware for devices connected through it, so there is no way at the moment to implement this on the gateway by now, unfortunatly.
- We are going to add different types for default mqtt converter like string, bytes in the nearest future, we will write here when add them.
...ok, when would it be implemented?
I can get latest attribute about firmware on device that connected to gw, when update firmware on web. So maybe i can just impletment in tb-gateway like this: subscribe topic v2/fw/request/${deviceName}/chunk/${chunkIdx} and send http request to tb to get the response, and then send as mqtt msg to v2/fw/response/${deviceName}/chunk/${chunkIdx} and then combind the chunk data.
How about it?
Any news on this topic ? I try to implement OTA with the gateway too
Any news on this topic ? I try to implement OTA with the gateway too
Sorry, i give it up.