HomeSmartMesh / nrf52_thread_sensortag

nRF52840 small sensor Tag, Low power design, battery operated
MIT License
39 stars 3 forks source link

Sensor tags don't join thread network #6

Closed hansinator closed 1 week ago

hansinator commented 1 week ago

Hi,

I set up an open thread border router according to your tutorial and started commissioning with the PSKd. Both of my sensor tags do not join the network. The firmware for the nordic usb stick linked in your post did not exist anymore so I used the current one and built it myself.

wassfila commented 1 week ago

Only matters that firmware fits with open thread br software. I'd recommend to use both from recent versions. I also recommend that you practice joining networks with cli before you try with custom firmware, it'll help you have a working reference to compare with, worst case, I'd recommend using a wireshark sniffer, it's hard, but helps you understand everything and find all problems.

wassfila commented 1 week ago

And don't forget to fully delete the flash with factory reset, so that thread network config gets taken.

Informaticore commented 1 week ago

I have seen such an issue before most likely a factory reset will help (I have documented it somewhere, but currently I can not find it somehow) @wassfila do you have it somewhere?

Informaticore commented 1 week ago

@hansinator Which PSK did you used? I flashed the device with: ABCDE4

hansinator commented 1 week ago

@wassfila I don't really get what you are talking about. I'm not using any custom firmware. I use the firmware from the openthread repository and followed this guide https://developer.nordicsemi.com/nRF_Connect_SDK/doc/v1.7-branch/matter/openthread_rcp_nrf_dongle.html to flash it. Can you elaborate on which flash I should delete?

I was mentioning it in case there is something different with the firmware that was referenced in the hackaday tutorial on how to set it up. All the links in the hackaday tutorial to the nrf dongle firmware and the guide are not working anymore.

Anyhow, since that's propbably just relaying the radio packets, I don't see why it should make any difference unless some radio parameters changed.

I am using ABCDE4 as the joiner key, but it does not work. I don't have any other thread devices yet to test it, but it looks like the reception is working. I receive packets that look like they come from the radio when I power up the sensor tag:

Nov 01 18:08:59 piradio otbr-agent[703]: 03:09:43.869 [I] MeshForwarder-: Received IPv6 UDP msg, len:83, chksum:67b0, ecn:no, from:a21216a434ef9868, sec:no, prio:net, rss:-62.0
Nov 01 18:08:59 piradio otbr-agent[703]: 03:09:43.869 [I] MeshForwarder-:     src:[fe80:0:0:0:a012:16a4:34ef:9868]:19788
Nov 01 18:08:59 piradio otbr-agent[703]: 03:09:43.869 [I] MeshForwarder-:     dst:[ff02:0:0:0:0:0:0:1]:19788

I tried powering from a lab power supply to make sure there's enough juice, but it does not change anything.

Informaticore commented 1 week ago

@hansinator here, check out this page at the very bottom: https://hackaday.io/page/22272-how-to-setup-a-open-thread-border-router-with-raspberry-pi-and-connect-the-thread-sensor-tag Try to run the factory reset as it is described there.

To do a factory reset you press the reset button and after the first hello signel (red,green,blue, and before the second helo signal) you press both button again for a quick boot. Once you see the hello signal press both buttons again. If you see the blue LED blinking 3 times, the device was factory reset.

Then you can try again to commission. If that does not help at all there might be an issue with the latest version of the RPC and the firmware of the Sensor Tag. But I don't think that this is the case dbh. I also was in the situation, that the comissioning worked but it did not connect for some reason. Thread is still relatively new and has some issues here and there and it is quite complex as well. We will figure it out.

hansinator commented 1 week ago

The factory reset did the trick, thank you very much. It is strange though that both tags didn't work out-of-the-box.

Informaticore commented 1 week ago

The factory reset did the trick, thank you very much. It is strange though that both tags didn't work out-of-the-box.

it is indeed! there seems to be an issue with the initial comission. As I said, I have seen this multiple times already

wassfila commented 1 week ago

I'm glad it worked. I'd keep github issues for problems that relate to a specific code section. For general troubleshooting, I'd suggest using discussions for support as mentioned in the readme https://github.com/orgs/HomeSmartMesh/discussions