Response from Gateway is not received to nodes #9091
-
Hello, I am new to the OpenThread and stuck at a problem. I am trying to create an OpenThread communication using MQTT-SN with RPI and nRF52840 device. So far I am able to create an OpenThread network and the nRF52840 node is able to JOIN the Gateway. I also verified ipv6 ping between GW (border router) and nRF node and also I am able to ping Google DNS from the node. I followed the OpenThread codelab (https://openthread.io/guides/border-router/raspberry-pi). My RaspberryPI has internet on its WLAN0 interface. Now I am running nordic MQTT-SN subscriber example by with Paho MQTT-SN Gateway. I build the Paho MQTT-SN Gateway (using https://github.com/eclipse/paho.mqtt-sn.embedded-c/tree/master/MQTTSNGateway) and also made changes for BrokerName, GatewayUDP6IP and set Port to 47193. I executed the MQTT-SNGateway binary and started monitoring the logs. The problem is when the nRF node searches for Gateway, it always return with "No Gateway found" .. By looking at the terminal, I can see that Paho binary has received "SearchGW" message from a client (the nRF) and it has also sent GWINFO response message. But I am not receiving any message in the nRF. I am added multiple LOGs at different places in the MQTT-SN Subscriber example specially at listening side but no log appears regarding any message being received. Any help in this regard? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 14 replies
-
Can you provide a packet capture trace for analysis in Wireshark? |
Beta Was this translation helpful? Give feedback.
Hey @jwhui
Just to let you know that I have resolved the issue. The problem was the incorrect BrokerName in Paho MQTTSN Gateway's gateway.conf file. After fixing the problem, the nRF node received the GWINFO message and other messages.
Thanks for the help.