Replies: 5 comments
-
The reason we are using UDP is time. The fastest way and therefor saving lots of energy is to send UDP packets. MQTT and MAtter compared to that is quite heavy in resource consumption. I created a Home Assistant Addon: https://hackaday.io/page/22298-home-assistant-addon-to-integrate-the-thread-sensor-tag The only waay for this device to directly send MQTT would be MQTT-SN if I remember correctly, thats a version of MQTT where the device is allowed to sleep. Becauise our device is sleeping most of the time. But that is not implemented. You can use the scripts from that repo and make your own version to translate the UDP messages into MQTT but the script needs to run on the same device where the Thread Network is running on. |
Beta Was this translation helpful? Give feedback.
-
I understand the reasoning behind the choice of UDP, I just wanted to test a setup with direct MQTT / MQTT-SN communication within the thread network. I got stuck on how to update the firmware on the chip. I tried with nRF Connect Bluetooth Low Energy but the software seems to have a bug. The specs of the chip mentions the possibility of doing Over-the-Air(OTA) firmware updates (https://www.minew.com/uploads/MS88SF2_V1.0-nRF52833-Datasheet.pdf) but there is no explanation about how to do this. Do you have any suggestions on how to proceed in order to add some changes to the original firmware? |
Beta Was this translation helpful? Give feedback.
-
I am a bit confused now because in the datasheet it says nrf52833 but it actually should be a nrf52840. Thats strange. There are other Segger Boards as well but I have not used them (maybe @wassfila did) and they are also more expensive. So my suggestion would be to get such a J-Link Debugger and then you can do what ever you want with the board. You can also checkout the samples folder as a beginning. I remember that we actually tried out MQTT-SN @wassfila do you know if we still have some sample code laying around somewhere for that? |
Beta Was this translation helpful? Give feedback.
-
yes, here, I tested some samples with MQTT-SN https://github.com/HomeSmartMesh/nrf52_thread_sensortag/tree/main/firmware |
Beta Was this translation helpful? Give feedback.
-
Thank you @Informaticore and @wassfila for the links and the suggestions! |
Beta Was this translation helpful? Give feedback.
-
Would it be possible to change the firmware running on the chip in order to make it send MQTT instead of UDP messages?
Beta Was this translation helpful? Give feedback.
All reactions