Giter VIP home page Giter VIP logo

Comments (10)

kyberpunk avatar kyberpunk commented on August 22, 2024 1

Hi, thank you for debugging. I will try to test it. The issues I've experienced in this case were mainly related to routing. It was working well in case when paho gateway was attached directly to OTBR interface (e.g. by using the same network in Docker). When there were some other network nodes like router or virtual bridges, there were problems with routing setup.

from openthread-mqttsn.

ajlennon avatar ajlennon commented on August 22, 2024

Here's a log

Mqtt----------: Set Search GW
Mqtt----------: Sending message to ff03:0:0:0:0:0:0:1[:10000]
Done
> Mac-----------: Request to start operation "TransmitDataDirect"
Mac-----------: Starting operation "TransmitDataDirect"
SubMac--------: RadioState: Receive -> CsmaBackoff
SubMac--------: RadioState: CsmaBackoff -> Transmit

Mac-----------: ==============================[TX len=054]==============================
Mac-----------: | 49 98 A1 44 44 FF FF 00 | 34 0D D6 07 00 00 01 1F | I.!DD...4.V.....
Mac-----------: | B9 B6 B8 33 E6 48 EE 44 | 2A 9A 22 E7 9E B3 8F 6A | 9683fHnD*."g.3.j
Mac-----------: | 6C 1F 35 62 FB F0 1D 71 | 28 A6 A0 C7 FD 26 26 99 | l.5b{p.q(& G}&&.
Mac-----------: | 7E A7 61 5A F7 45 .. .. | .. .. .. .. .. .. .. .. | ~'aZwE..........
Mac-----------: ------------------------------------------------------------------------
Mac-----------: Finishing operation "TransmitDataDirect"
MeshForwarder-: Sent IPv6 HopOpts msg, len:59, chksum:0000, ecn:no, to:0xffff, sec:yes, priol
MeshForwarder-:     src:[fdb8:d848:8bc4:12b6:5e8e:2ca5:4e68:e32c]
MeshForwarder-:     dst:[ff03:0:0:0:0:0:0:1]
Mac-----------: Idle mode: Radio receiving on channel 15
Mac-----------: Request to start operation "TransmitDataDirect"
Mac-----------: Starting operation "TransmitDataDirect"
SubMac--------: RadioState: Receive -> CsmaBackoff
SubMac--------: RadioState: CsmaBackoff -> Transmit
SubMac--------: RadioState: Transmit -> Receive
Mac-----------: ==============================[TX len=054]==============================
Mac-----------: | 49 98 A2 44 44 FF FF 00 | 34 0D D7 07 00 00 01 BE | I."DD...4.W....>
Mac-----------: | 55 24 86 EE 76 60 6D D6 | E2 6D 53 EC 62 D2 8B 7B | U$.nvmVbmSlbR.{
Mac-----------: | F3 5C 58 2E 62 47 68 36 | 19 CB 5A 85 2C 39 3A A3 | s\X.bGh6.KZ.,9:#
Mac-----------: | 31 EB 07 4B F7 45 .. .. | .. .. .. .. .. .. .. .. | 1k.KwE..........
Mac-----------: ------------------------------------------------------------------------
Mac-----------: Finishing operation "TransmitDataDirect"
MeshForwarder-: Sent IPv6 HopOpts msg, len:59, chksum:0000, ecn:no, to:0xffff, sec:yes, priol
MeshForwarder-:     src:[fdb8:d848:8bc4:12b6:5e8e:2ca5:4e68:e32c]
MeshForwarder-:     dst:[ff03:0:0:0:0:0:0:1]
Mac-----------: Idle mode: Radio receiving on channel 15
Mac-----------: Received frame from short address 0x5c00
Mac-----------: Rx security - frame counter 14
Mac-----------: ==============================[RX len=054]=============================
Mac-----------: | 49 98 46 44 44 FF FF 00 | 5C 0D 0E 00 00 00 01 7C | I.FDD...\......|
Mac-----------: | 5A 02 5E E 2C A5 4E 68 | E3 2C 03 00 00 01 E1 06 | Z.^.,%Nhc,....a.
Mac-----------: | 6D 04 40 03 34 00 F0 27 | 10 27 10 7B 6D 03 01 03 | [email protected]'.'.{m...
Mac-----------: | 13 3F 8C 2A 2A 48 .. .. | .. .. .. .. .. .. .. .. | .?.**H..........
Mac-----------: ----0000, ecn:no, from:0x5c00, sec:yes, prio:normal, rss:-50.0
MeshForwarder-:     src:[fdb8:d848:8bc4:12b6:5e8e:2ca5:4e68:e32c]
MeshForwarder-:     dst:[ff03:0:0:0:0:0:0:1]
Mac-----------: Idle mode: Radio receiving on channel 15
MeshForwarder-: Received IPv6 HopOpts msg, len:59, chksum:0000, ecn:no, from:0x5c00, sec:yes0
MeshForwarder-:     src:[fdb8:d848:8bc4:12b6:5e8e:2ca5:4e68:e32c]
MeshForwarder-:     dst:[ff03:0:0:0:0:0:0:1]
Mac-----------: Idle mode: Radio receiving on channel 15
Mle-----------: network id timeout = 13
Mle-----------: network id timeout = 14Mle-----------: network id timeout = 16Mle-----------7
Mle-----------: network id timeout = 19Mle-----------: network id timeout = 21
Mac-----------: ==============================[RX len=070]==============================C. -0
Mle-----------: network id timeout = 1
Mle-----------: network id timeout = 5
Mle-----------: network id timeout = 6
Mle-----------: network id timeout = 8
Mle-----------: network id timeout = 9
Mle-----------: network id timeout = 11
Mac-----------: ==============================[RX len=070]==============================
Mac-----------: | 41 D8 49 44 44 FF FF E8 | 0A 77 84 0E 16 2E EA 7F | AXIDD..h.w....j.
Mac-----------: | 3B 01 F0 4D 4C 4D 4C:~.._.V`[
Mac-----------: | 19 DF B1 25 96 1E AA EE | 0A 55 C0 A0 7B 72 83 DA | ._1%..*n.U@ {r.Z
Mac-----------: | 31 B9 1A 4C 29 F6 .. .. | .. .. .. .. .. .. .. .. | 19.L)v..........
Mac-----------: ------------------------------------------------------le-----------: Receivee
Mle-----------: Receive Advertisement (fe80:0:0:0:e82e:160e:8477:ae8,0x5c00)
Mac-----------: Idle mode: Radio receiving on channel 15
Mle-----------: network id timeout = 0
Mle-----------: network id timeout = 1
Mle-----------: network id timeout = 3Mle-----------: network id timeout = 4Mle-----------: 5
Mle-----------: network id timeout = 6
Mle-----------: network id timeout = 7
Mle-----------: Send Advertisement (ff02:0:0:0:0:0:0:1)
Mac-----------: Request to start operation "TransmitDataDirect"
Mac-----------: Starting operation "TransmitDataDirect"
SubMac--------: RadioState: Receive -> CsmaBackoff
SubMac--------: RadioState: CsmaBackoff -> Transmit
SubMac--------: RadioState: Transmit -> Receive
Mac-----------: ==============================[TX len=070]====================

You can see I get this back but it is "HopOps" and it doesn't seem to log a port with the multicast destination

MeshForwarder-: Received IPv6 HopOpts msg, len:59, chksum:0000, ecn:no, from:0x5c00, sec:yes0
MeshForwarder-:     src:[fdb8:d848:8bc4:12b6:5e8e:2ca5:4e68:e32c]
MeshForwarder-:     dst:[ff03:0:0:0:0:0:0:1]

from openthread-mqttsn.

ajlennon avatar ajlennon commented on August 22, 2024

Looking at Wireshark logs I think this shows the SEARCHGW going out but I am not getting any response back from the OTBR

image

from openthread-mqttsn.

ajlennon avatar ajlennon commented on August 22, 2024

OK some progress. I see from your paho6 docker container you're using different code from the current PAHO MQTTSNGateway code

https://github.com/eclipse/paho.mqtt-sn.embedded-c/blob/master/MQTTSNGateway/src/linux/udp6/SensorNetwork.cpp

https://github.com/kyberpunk/paho.mqtt-sn.embedded-c/blob/master/MQTTSNGateway/src/linux/udp6/SensorNetwork.cpp

Looks like there's been some kind of rewrite going on. With your fork [master] I see advertisements on the CLI but I can't see SEARCHGW on the OTBR MQTT-SNGateway. With the upstream PAHO code I see SEARCHGW but get no ADVERTISEMENT or any response !

from openthread-mqttsn.

ajlennon avatar ajlennon commented on August 22, 2024

No worries - I hope some of what I've been doing is helpful. I've been down ALL sorts of rabbit holes but I now have a really nice setup for Balena with an app I can build in the new nRF Connect VSCode IDE, it automatically connects to the mesh, finds the advertised gateway, and starts publishing.

I'm trying to put a "block" together based on your work for people to use within the Balena ecosystem

https://github.com/DynamicDevices/openthread-border-router-block

Currently I have the MQTT-SNGateway and the OTBR inside the same container as I've had trouble routing the networking between containers, but I think now for whatever reason this was the PAHO issues. So now I'm just trying to work out how to get that networking sorted out.

Not sure why it's worked for you but not for me, but as I say I hope some of the work I've been doing here is useful :)

from openthread-mqttsn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.