Unable to send to a specific multicast address when sending UDP messages in OpenThread CLI sample

Hello,

I flashed an Thread CLI sample for nRF52840-DK and checking its operation. (nRF Connect SDK version is v2.3.0)
I use the "ot udp send" command to check the sending of UDP messages, but no logs were displayed in Sniffer even if I configured to send to a specific multicast address.
When the multicast address was FF02::1, the log was displayed in Sniffer, but when it was FF03::1 or FF04::3:0, it was not displayed in the log.
Although it was not mentioned in the README, am I correct in my understanding that the "ot udp send" command can only successfully send to certain authorized multicast addresses?

Best regards,

Yuma

Parents
  • Hi Yuma,

    I tested this on my side and the UDP messages showed up in the sniffer log when sending to FF03::1 and FF04::3:0. The message sent to the mesh-local address, FF03::1, was printed on the receiving node as well.

    Can you share all the CLI commands you are using when testing?
    Do you have any filters in Wireshark?

    Best regards,
    Marte

  • Hi Marte,

    I send each command log in below.

    [Board 1]

    *** Booting Zephyr OS build v3.2.99-ncs2 ***
    
    
    uart:~$ ot udp open
    Done
    uart:~$ ot udp linksecurity disable
    Done
    uart:~$ ot udp bind :: 2378
    Done
    uart:~$ ot ifconfig up
    Done
    uart:~$ ot ipmaddr
    ff02:0:0:0:0:0:0:1
    ff03:0:0:0:0:0:0:1
    ff03:0:0:0:0:0:0:fc
    Done
    uart:~$ ot ipmaddr add ff04::3:0
    Done
    uart:~$ ot ipmaddr
    ff04:0:0:0:0:0:3:0
    ff02:0:0:0:0:0:0:1
    ff03:0:0:0:0:0:0:1
    ff03:0:0:0:0:0:0:fc
    Done
    uart:~$ ot udp send ff02::1 2378 hello
    Done
    5 bytes from fe80:0:0:0:48e2:958b:cb7f:4622 2378 68656c6c6f
    uart:~$ ot udp send ff04::3:0 2378 hello
    Done
    uart:~$

    [Board 2]

    *** Booting Zephyr OS build v3.2.99-ncs2 ***
    
    
    uart:~$ ot udp open
    Done
    uart:~$ ot udp linksecurity disable
    Done
    uart:~$ ot udp bind :: 2378
    Done
    uart:~$ ot ifconfig up
    Done
    uart:~$ ot ipmaddr
    ff02:0:0:0:0:0:0:1
    ff03:0:0:0:0:0:0:1
    ff03:0:0:0:0:0:0:fc
    Done
    uart:~$ ot ipmaddr add ff04::3:0
    Done
    uart:~$ ot ipmaddr
    ff04:0:0:0:0:0:3:0
    ff02:0:0:0:0:0:0:1
    ff03:0:0:0:0:0:0:1
    ff03:0:0:0:0:0:0:fc
    Done
    5 bytes from fe80:0:0:0:94e4:9983:d574:bf36 2378 68656c6c6f
    uart:~$ ot udp send ff02::1 2378 hello
    Done
    uart:~$ ot udp send ff04::3:0 2378 hello
    Done
    uart:~$

    Each board sended UDP message to FF04::3:0, but the message was not received another one.
    At the time, on wireshark, this messages was not show.
    (When the board sent UDP message to FF02::1, the sniffer log showed on wireshark.)

    I don't have any filters in wireshark.

    Best regards,

    Yuma

  • Hi Yuma,

    You need to run ot thread start to enable the Thread protocol and attach to a Thread network.

    Best regards,
    Marte

  • Hi Marte,

    Thank you for your advice.

    I attached to a Thread network and tried again.
    Then, the sniffer log was displayed in Wireshark, but the reception log was not displayed on the other device.

    [Commissioner]

    *** Booting Zephyr OS build v3.2.99-ncs2 ***
    
    
    uart:~$ ot thread stop
    Done
    uart:~$ ot dataset init new
    Done
    uart:~$ ot dataset channel 11
    Done
    uart:~$ ot dataset panid 0x1234
    Done
    uart:~$ ot dataset commit active
    Done
    uart:~$ ot ifconfig up
    Done
    uart:~$ ot thread start
    Done
    uart:~$ ot dataset
    Active Timestamp: 1
    Channel: 11
    Channel Mask: 0x07fff800
    Ext PAN ID: 9d94726b558c1095
    Mesh Local Prefix: fdc5:ee19:dc7d:f8e1::/64
    Network Key: 3cf63d4ddb6a8a4c22c151a4a0b10243
    Network Name: OpenThread-f526
    PAN ID: 0x1234
    PSKc: 0429203bdbd9577fe2c018e32900e7fd
    Security Policy: 672 onrc
    Done
    uart:~$ ot commissioner start
    Commissioner: petitioning
    Done
    Commissioner: active
    uart:~$ ot commissioner joiner add f4ce364117e9f1a4 N0RD1C
    Done
    Commissioner: Joiner start 237c8fef269a5885
    Commissioner: Joiner connect 237c8fef269a5885
    Commissioner: Joiner finalize 237c8fef269a5885
    Commissioner: Joiner end 237c8fef269a5885
    uart:~$ ot commissioner stop
    Commissioner: disabled
    Done
    uart:~$ ot udp open
    Done
    uart:~$ ot udp bind :: 2378
    Done
    uart:~$ ot udp linksecurity disable
    Done
    uart:~$ ot ipmaddr
    ff33:40:fdc5:ee19:dc7d:f8e1:0:1
    ff32:40:fdc5:ee19:dc7d:f8e1:0:1
    ff02:0:0:0:0:0:0:2
    ff03:0:0:0:0:0:0:2
    ff02:0:0:0:0:0:0:1
    ff03:0:0:0:0:0:0:1
    ff03:0:0:0:0:0:0:fc
    Done
    uart:~$ ot ipmaddr add ff04::3:0
    Done
    uart:~$ ot udp send ff04::3:0 2378 hello
    Done
    uart:~$
    

    [Joiner]

    *** Booting Zephyr OS build v3.2.99-ncs2 ***
    
    
    uart:~$ ot thread stop
    Done
    uart:~$ ot dataset channel 11
    Done
    uart:~$ ot panid 0x1234
    Done
    uart:~$ ot ifconfig up
    Done
    uart:~$ ot joiner start N0RD1C
    Done
    Join success
    uart:~$ ot thread start
    Done
    uart:~$ ot udp open
    Done
    uart:~$ ot udp bind :: 2378
    Done
    uart:~$ ot udp linksecurity disable
    Done
    uart:~$ ot ipmaddr add ff04::3:0
    Done
    uart:~$ ot ipmaddr
    ff04:0:0:0:0:0:3:0
    ff33:40:fdc5:ee19:dc7d:f8e1:0:1
    ff32:40:fdc5:ee19:dc7d:f8e1:0:1
    ff02:0:0:0:0:0:0:2
    ff03:0:0:0:0:0:0:2
    ff02:0:0:0:0:0:0:1
    ff03:0:0:0:0:0:0:1
    ff03:0:0:0:0:0:0:fc
    Done
    uart:~$ ot udp send ff04::3:0 2378 hello
    Done
    uart:~$
    


    Regarding the issue of UDP message reception logs not being displayed, we are currently inquiring through the following ticket, but we are facing an issue where the reception logs will not be displayed unless the thread protocol is disabled.

    https://devzone.nordicsemi.com/f/nordic-q-a/103553/unable-to-receive-udp-messages-when-thread-is-active

    Best regards,

    Yuma

  • Hi Yuma,

    I will look into the issue about the UDP message not being displayed.

    Best regards,
    Marte

  • Hi Yuma,

    Maria will handle the UDP messages not being displayed issue in your other ticket.

    Best regards,
    Marte

Reply Children
Related