Trying to publish MQTT-SN message with Zephyr and Openthread

There's no NRF CONNECT sample that implement MQTT-SN on ZEPHYR with OPENTHREAD, but it should work, as openthread transmit UDPV6 messages ?

Zephyr provide an MQTT-SN implementation : https://docs.zephyrproject.org/latest/connectivity/networking/api/mqtt_sn.html

My setup : 
Raspberry PI 4 + NRF52840 RCP + otbr-mqtt-sn running on docker. (https://github.com/kyberpunk/openthread-mqttsn)

I sniff all openthread packet with wireshark and NRF52840 dongle.

I try to publish MQTT-SN message with Zephyr MQTT-SN library, with IPV6 UDP through OPENTHREAD network.

I can connect to mqtt-sn broker (paho), but i never get CONNACK message, to confirm the connection, then it's the same when i try anyway to publish to topic, the registration of the topic fails as i never get back the topic ID that is relevant to.
It seem to send back the message as i get back everytime UDP data, it like mqtt-sn layer is not connected back to UDP6

Is there something to do to connect UPD data to MQTT-SN layer ?

prj.conf : 

CONFIG_SHELL=n
#CONFIG_OPENTHREAD_SHELL=y

CONFIG_LOG=y
CONFIG_OPENTHREAD_DEBUG=y
CONFIG_NET_LOG=y
# Option for configuring log level in net config library
CONFIG_NET_CONFIG_LOG_LEVEL_DBG=y

# Option for configuring log level in Zephyr L2 logging
CONFIG_OPENTHREAD_L2_DEBUG=y
CONFIG_OPENTHREAD_L2_LOG_LEVEL_DBG=y
CONFIG_OPENTHREAD_L2_DEBUG_DUMP_15_4=y
CONFIG_OPENTHREAD_L2_DEBUG_DUMP_IPV6=y


# Enable OpenThread features set
CONFIG_OPENTHREAD_NORDIC_LIBRARY_MASTER=y




CONFIG_NET_L2_OPENTHREAD=y
CONFIG_NET_MGMT_EVENT_INFO=y
CONFIG_NET_MGMT_EVENT_QUEUE_SIZE=10

CONFIG_OPENTHREAD_MANUAL_START=n
CONFIG_OPENTHREAD_NETWORKKEY="00:11:22:33:44:55:66:77:88:99:aa:bb:cc:dd:ee:ff"
CONFIG_OPENTHREAD_PANID=4660
CONFIG_OPENTHREAD_XPANID="11:11:11:11:22:22:22:22"
CONFIG_OPENTHREAD_CHANNEL=15
CONFIG_OPENTHREAD_MTD=y

# Generic networking options
CONFIG_NETWORKING=y
CONFIG_MBEDTLS_SHA1_C=n
CONFIG_FPU=y

# Network Shell
CONFIG_NET_SHELL=n

CONFIG_NET_CONFIG_SETTINGS=y
CONFIG_NET_CONFIG_NEED_IPV6=y

CONFIG_HEAP_MEM_POOL_SIZE=2048

CONFIG_NET_SOCKETS=y
CONFIG_NET_SOCKETS_POSIX_NAMES=y
CONFIG_NET_SOCKETS_POLL_MAX=4

CONFIG_MQTT_LIB=y
CONFIG_MQTT_SN_LIB=y
CONFIG_MQTT_SN_TRANSPORT_UDP=y


main.c : 
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>

#include <zephyr/net/mqtt_sn.h>
#include <zephyr/net/socket.h>
#include <zephyr/net/conn_mgr.h>
#include <zephyr/net/net_mgmt.h>
#include <zephyr/logging/log.h>

#include <zephyr/drivers/uart.h>
#include <zephyr/usb/usb_device.h>

LOG_MODULE_REGISTER(lux, CONFIG_OT_COMMAND_LINE_INTERFACE_LOG_LEVEL);

bool mqtt_sn_connected = false;

#define MQTT_SN_TX_BUF_SIZE 128
#define MQTT_SN_RX_BUF_SIZE 128

static uint8_t mqtt_sn_tx_buf[MQTT_SN_TX_BUF_SIZE];
static uint8_t mqtt_sn_rx_buf[MQTT_SN_RX_BUF_SIZE];



static void evt_cb(struct mqtt_sn_client *client, const struct mqtt_sn_evt *evt)
{
    LOG_INF("IN MQTT EVT");
	switch (evt->type) {
	case MQTT_SN_EVT_CONNECTED: /* Connected to a gateway */
		LOG_INF("MQTT-SN event EVT_CONNECTED");
		mqtt_sn_connected = true;
		break;
	case MQTT_SN_EVT_DISCONNECTED: /* Disconnected */
		LOG_INF("MQTT-SN event EVT_DISCONNECTED");
		mqtt_sn_connected = false;
		break;
	case MQTT_SN_EVT_ASLEEP: /* Entered ASLEEP state */
		LOG_INF("MQTT-SN event EVT_ASLEEP");
		break;
	case MQTT_SN_EVT_AWAKE: /* Entered AWAKE state */
		LOG_INF("MQTT-SN event EVT_AWAKE");
		break;
	case MQTT_SN_EVT_PUBLISH: /* Received a PUBLISH message */
		LOG_INF("MQTT-SN event EVT_PUBLISH");
		LOG_HEXDUMP_INF(evt->param.publish.data.data, evt->param.publish.data.size,
				"Published data");
		break;
	case MQTT_SN_EVT_PINGRESP: /* Received a PINGRESP */
		LOG_INF("MQTT-SN event EVT_PINGRESP");
		break;
	default:
		LOG_INF("MQTT-SN OTHER event : %i",evt->type);
	}

}

int main(void)
{
	//WAIT FOR OT TO BE CONNECTED
	LOG_INF("Waiting for OT to be connected");
	k_sleep(K_SECONDS(5));
	

	int err;
    struct mqtt_sn_client client;
    static struct mqtt_sn_data client_id = MQTT_SN_DATA_STRING_LITERAL("LUX");
    struct mqtt_sn_transport_udp tp;



    struct sockaddr_in6 broker_addr = {
        .sin6_family = AF_INET6,
        .sin6_port = htons(47193),
  //      .sin6_scope_id = 0x20
        // .sin6_addr est laissé à zéro
    };

    // Convertir l'adresse IP du broker en format binaire et la stocker dans broker_addr.sin6_addr
    err = zsock_inet_pton(AF_INET6, "ff33:40:fd11:a25e:b072:1053::1", &broker_addr.sin6_addr);
//fd6c:4352:cbba:a068:0:ff:fe00:fc11

    if (err != 1) {
        LOG_INF("Erreur lors de l'initialisation de inet_pton : %d\n", err);
        return 1;
    } else {
        //LOG_INF("inet_pton init  OK\n");
    }    

    err = mqtt_sn_transport_udp_init(&tp, (struct sockaddr *)&broker_addr, sizeof(broker_addr));
    if (err != 0) {
        LOG_INF("Erreur lors de l'initialisation du transport : %d\n", err);
        return 1;
    } else {
        LOG_INF("mqtt_sn_transport_udp_init OK\n");
    }

    // Initialisation du client MQTT-SN
    err = mqtt_sn_client_init(&client, &client_id, &tp.tp, evt_cb, mqtt_sn_tx_buf, MQTT_SN_TX_BUF_SIZE, mqtt_sn_rx_buf, MQTT_SN_RX_BUF_SIZE);
    if (err != 0) {
        LOG_INF("Erreur lors de l'initialisation du client MQTT-SN: %d\n", err);
        return 1;
    } else {
        LOG_INF("mqtt_sn_client_init OK\n");
    }

    err = mqtt_sn_connect(&client, false, true);
            
    if (err != 0) {
        LOG_INF("Error mqtt_sn_connect :  %d\n", err);
        //return;
    } else {
        LOG_INF("Waiting for mqtt-sn connexion");
        k_sleep(K_SECONDS(5));
        LOG_INF("mqtt_sn_connect OK ?");
        
        if (mqtt_sn_connected) {
            LOG_INF("Client connected");
        } else {
            LOG_INF("Client not connected : client.state = %i ... force client.state to 1",client.state);
			client.state = 1;
        }

            char payload[] = "ABCD";
            char topicname[] = "pos";
            struct mqtt_sn_data payload_data = {
                .data = payload,
                .size = sizeof(payload) - 1
            };
            struct mqtt_sn_data topic = {
                .data = topicname,
                .size = sizeof(topicname) - 1
            };
            LOG_INF("Client state : %i",client.state);
            k_sleep(K_SECONDS(1));

            err = mqtt_sn_publish(&client, MQTT_SN_QOS_0, &topic, false, &payload_data);
            if (err < 0) {
                LOG_INF("failed: publish: %d", err);
                //return err;
            } else {
                LOG_INF("publish ok");
            }

            k_sleep(K_SECONDS(5));
            err = mqtt_sn_disconnect(&client);
            if (err != 0) {
                LOG_INF("Error while disconnecting MQTT-SN: %d", err);
                //return;
            } else {
                LOG_INF("mqtt_sn_disconnect OK\n");
            }
    }



	return 0;




}


Log on NRF52840 : 
[00:18:13.390,655] <dbg> net_l2_openthread: openthread_recv: (0x200027d0): Got 802.15.4 packet, sending to OT
[00:00:00.002,166] <inf> ieee802154_nrf5: nRF5 802154 radio initialized
[00:00:00.002,319] <dbg> net_l2_openthread: openthread_init: (0x200040f0): openthread_init
[00:00:00.105,194] <inf> fs_nvs: 8 Sectors of 4096 bytes
[00:00:00.105,224] <inf> fs_nvs: alloc wra: 0, f48
[00:00:00.105,224] <inf> fs_nvs: data wra: 0, 214
[00:00:00.105,346] <dbg> net_otPlat_settings: otPlatSettingsGet: otPlatSettingsGet Entry aKey 1 aIndex 0
[00:00:00.107,116] <dbg> net_otPlat_settings: otPlatSettingsGet: otPlatSettingsGet Entry aKey 2 aIndex 0
[00:00:00.107,727] <dbg> net_otPlat_settings: otPlatSettingsGet: aKey 2 aIndex 0 not found
[00:00:00.107,757] <dbg> net_otPlat_settings: otPlatSettingsGet: otPlatSettingsGet Entry aKey 8 aIndex 0
[00:00:00.108,398] <dbg> net_otPlat_settings: otPlatSettingsGet: aKey 8 aIndex 0 not found
[00:00:00.108,428] <dbg> net_otPlat_settings: otPlatSettingsGet: otPlatSettingsGet Entry aKey 3 aIndex 0
[00:00:00.108,734] <dbg> net_otPlat_settings: otPlatSettingsGet: otPlatSettingsGet Entry aKey 4 aIndex 0
[00:00:00.109,954] <dbg> net_otPlat_settings: otPlatSettingsGet: otPlatSettingsGet Entry aKey 1 aIndex 0
[00:00:00.110,748] <inf> net_l2_openthread: State changed! Flags: 0x1017c300 Current role: disabled
[00:00:00.111,053] <dbg> net_l2_openthread: openthread_enable: (0x200040f0): iface 0x20000838 up
[00:00:00.111,083] <inf> net_l2_openthread: OpenThread version: OPENTHREAD/d5a6630a8; Zephyr; Sep 29 2023 16:39:35
[00:00:00.111,419] <dbg> net_otPlat_settings: otPlatSettingsGet: otPlatSettingsGet Entry aKey 1 aIndex 0
[00:00:00.112,365] <dbg> net_l2_openthread: openthread_start: (0x200040f0): OpenThread already commissioned.
[00:00:00.112,396] <inf> net_l2_openthread: Network name: LUXX
[00:00:00.112,426] <dbg> net_otPlat_radio: otPlatRadioGetPromiscuous: PromiscuousMode=0
[00:00:00.113,250] <dbg> net_otPlat_settings: otPlatSettingsGet: otPlatSettingsGet Entry aKey 3 aIndex 0
[00:00:00.113,525] <dbg> net_otPlat_settings: otPlatSettingsGet: otPlatSettingsGet Entry aKey 3 aIndex 0
[00:00:00.113,830] <dbg> net_otPlat_settings: otPlatSettingsSet: otPlatSettingsSet Entry aKey 3
[00:00:00.139,282] <inf> net_l2_openthread: State changed! Flags: 0x0100103d Current role: detached
[00:00:00.139,495] <dbg> net_l2_openthread: ot_state_changed_handler: (0x20003610): Ipv6 address added
[00:00:00.139,556] <dbg> net_l2_openthread: add_ipv6_addr_to_zephyr: (0x20003610): Adding fd11:a25e:b072:1053:1136:79b0:7500:45f7
[00:00:00.139,648] <dbg> net_l2_openthread: add_ipv6_addr_to_zephyr: (0x20003610): Adding fe80::f8a9:9d6:96ac:ce60
[00:00:00.139,678] <dbg> net_l2_openthread: ot_state_changed_handler: (0x20003610): Ipv6 multicast address added
[00:00:00.139,770] <dbg> net_l2_openthread: add_ipv6_maddr_to_zephyr: (0x20003610): Adding multicast ff33:40:fd11:a25e:b072:1053:0:1
[00:00:00.139,862] <dbg> net_l2_openthread: add_ipv6_maddr_to_zephyr: (0x20003610): Adding multicast ff32:40:fd11:a25e:b072:1053:0:1
[00:00:00.139,984] <dbg> net_l2_openthread: add_ipv6_maddr_to_zephyr: (0x20003610): Adding multicast ff02::1
[00:00:00.140,075] <dbg> net_l2_openthread: add_ipv6_maddr_to_zephyr: (0x20003610): Adding multicast ff03::1
[00:00:00.140,197] <dbg> net_l2_openthread: add_ipv6_maddr_to_zephyr: (0x20003610): Adding multicast ff03::fc
[00:00:00.140,686] <dbg> net_l2_openthread: add_ipv6_addr_to_ot: (0x200026e8): Added fd11:a25e:b072:1053:1136:79b0:7500:45f7
[00:00:00.140,808] <dbg> net_l2_openthread: add_ipv6_addr_to_ot: (0x200026e8): Added fe80::f8a9:9d6:96ac:ce60
[00:00:00.140,899] <dbg> net_l2_openthread: add_ipv6_maddr_to_ot: (0x200026e8): Added multicast ff33:40:fd11:a25e:b072:1053:0:1
[00:00:00.140,991] <dbg> net_l2_openthread: add_ipv6_maddr_to_ot: (0x200026e8): Added multicast ff32:40:fd11:a25e:b072:1053:0:1
[00:00:00.141,082] <dbg> net_l2_openthread: add_ipv6_maddr_to_ot: (0x200026e8): Added multicast ff02::1
[00:00:00.141,174] <dbg> net_l2_openthread: add_ipv6_maddr_to_ot: (0x200026e8): Added multicast ff03::1
[00:00:00.141,265] <dbg> net_l2_openthread: add_ipv6_maddr_to_ot: (0x200026e8): Added multicast ff03::fc
*** Booting Zephyr OS build v3.3.99-ncs1-1 ***
[00:00:00.141,387] <inf> net_config: Initializing network
[00:00:00.141,418] <inf> net_config: Waiting interface 1 (0x20000838) to be up...
[00:00:00.154,693] <dbg> net_l2_openthread: openthread_recv: (0x200027d0): Got 802.15.4 packet, sending to OT
[00:00:00.154,693] <dbg> net_l2_openthread: net_pkt_hexdump: Received 802.15.4 frame
[00:00:00.154,785] <dbg> net_l2_openthread: net_pkt_hexdump: 0x20016f00
                                            61 dc 4a cd ab 60 ce ac  96 d6 09 a9 fa 28 5a e2 |a.J..`.. .....(Z.
                                            c8 a6 f3 c7 42 7f 33 f0  4d 4c 4d 4c 3f 0b 00 15 |....B.3. MLML?...
                                            85 08 00 00 00 00 00 00  01 e4 27 d5 37 bd 32 9d |........ ..'.7.2.
                                            38 3f 19 53 bc 47 83 e5  81 5e 30 46 4f 90 94 05 |8?.S.G.. .^0FO...
                                            97 d7 e5 78 96 7f e2 7d  bb bc 61 25 66 e9 12 21 |...x...} ..a%f..!
                                            5d 3d 27 df 4d 3d cb 1f  00                      |]='.M=.. .       
[00:00:00.156,188] <dbg> net_otPlat_settings: otPlatSettingsGet: otPlatSettingsGet Entry aKey 4 aIndex 0
[00:00:00.156,738] <dbg> net_otPlat_settings: otPlatSettingsGet: otPlatSettingsGet Entry aKey 3 aIndex 0
[00:00:00.157,073] <inf> net_l2_openthread: State changed! Flags: 0x00000084 Current role: child
[00:00:00.157,165] <inf> net_config: Interface 1 (0x20000838) coming up
[00:00:00.157,226] <inf> lux: Waiting for OT to be connected
[00:00:00.178,375] <dbg> net_l2_openthread: openthread_recv: (0x200027d0): Got 802.15.4 packet, sending to OT
[00:00:00.178,405] <dbg> net_l2_openthread: net_pkt_hexdump: Received 802.15.4 frame
[00:00:00.178,497] <dbg> net_l2_openthread: net_pkt_hexdump: 0x20016f00
                                            79 dc 4b cd ab 60 ce ac  96 d6 09 a9 fa 28 5a e2 |y.K..`.. .....(Z.
                                            c8 a6 f3 c7 42 0d d5 01  00 00 01 57 f4 b9 5e 14 |....B... ...W..^.
                                            c1 cf d9 35 ac 5b 27 71  36 f9 dc b5 09 f4 fc ef |...5.['q 6.......
                                            dd 38 c0 76 60 e5 28 b2  fc 79 bc 43 49 e6 5f 15 |.8.v`.(. .y.CI._.
                                            3e 18 75 52 d2 90 7a f4  9c c6 e4 d7 e8 d0 a2 ad |>.uR..z. ........
                                            b8 69 16 76 0c 45 76 d9  75 bb 89 82 15 87 c7 54 |.i.v.Ev. u......T
                                            69 76 35 39 af e2 0b aa  84 26 af bd ef 21 db bc |iv59.... .&...!..
                                            e0 0d 55 f3 9f 4a 23 39  de 39 66 1b 1e 00       |..U..J#9 .9f...  
[00:00:00.184,173] <dbg> net_l2_openthread: openthread_recv: (0x200027d0): Got 802.15.4 packet, sending to OT
[00:00:00.184,173] <dbg> net_l2_openthread: net_pkt_hexdump: Received 802.15.4 frame
[00:00:00.184,265] <dbg> net_l2_openthread: net_pkt_hexdump: 0x20016f00
                                            69 dc 4c cd ab 60 ce ac  96 d6 09 a9 fa 28 5a e2 |i.L..`.. .....(Z.
                                            c8 a6 f3 c7 42 0d d6 01  00 00 01 f8 a9 3e 07 3c |....B... .....>.<
                                            cb f9 4f d8 b0 eb af a1  56 c5 e2 02 9f f4 f2 87 |..O..... V.......
                                            fa 6b 2a 62 e3 35 e6 4a  13 b9 b3 de 23 89 22 13 |.k*b.5.J ....#.".
                                            cd 33 c0 91 81 aa dd 53  7f 9c 3a 4e de 18 1f b9 |.3.....S ..:N....
                                            07 c4 65 4a 31 1f e9 86  f5 f1 2e 1c 99 cd 1f 00 |..eJ1... ........
[00:00:00.186,309] <dbg> net_otPlat_settings: otPlatSettingsGet: otPlatSettingsGet Entry aKey 7 aIndex 0
[00:00:00.186,706] <inf> net_l2_openthread: State changed! Flags: 0x00000200 Current role: child
[00:00:00.186,828] <inf> net_l2_openthread: State changed! Flags: 0x00000001 Current role: child
[00:00:00.186,828] <dbg> net_l2_openthread: ot_state_changed_handler: (0x20003610): Ipv6 address added
[00:00:00.186,889] <dbg> net_l2_openthread: add_ipv6_addr_to_zephyr: (0x20003610): Adding fdd1:7b3e:353a:1:b670:1b7c:5fcb:c76e
[00:00:00.186,981] <dbg> net_l2_openthread: add_ipv6_addr_to_zephyr: (0x20003610): Adding fd11:a25e:b072:1053:1136:79b0:7500:45f7
[00:00:00.187,072] <dbg> net_l2_openthread: add_ipv6_addr_to_zephyr: (0x20003610): Adding fe80::f8a9:9d6:96ac:ce60
[00:00:00.187,194] <dbg> net_l2_openthread: add_ipv6_addr_to_ot: (0x200026e8): Added fdd1:7b3e:353a:1:b670:1b7c:5fcb:c76e
[00:00:00.302,276] <dbg> net_l2_openthread: openthread_recv: (0x200027d0): Got 802.15.4 packet, sending to OT
[00:00:00.302,307] <dbg> net_l2_openthread: net_pkt_hexdump: Received 802.15.4 frame
[00:00:00.302,398] <dbg> net_l2_openthread: net_pkt_hexdump: 0x20016f00
                                            61 dc 4d cd ab 60 ce ac  96 d6 09 a9 fa 28 5a e2 |a.M..`.. .....(Z.
                                            c8 a6 f3 c7 42 7f 33 f0  4d 4c 4d 4c 36 f9 00 15 |....B.3. MLML6...
                                            87 08 00 00 00 00 00 00  01 0a e2 31 05 78 5d eb |........ ...1.x].
                                            54 13 85 af 1c de 42 5b  75 eb 08 2f 1b 22 ef 6c |T.....B[ u../.".l
                                            88 90 17 9f cf de 48 20  98 b2 50 07 88 17 1e b2 |......H  ..P.....
                                            78 92 22 31 1f 1f                                |x."1..           
[00:00:01.103,668] <dbg> net_l2_openthread: openthread_recv: (0x200027d0): Got 802.15.4 packet, sending to OT
[00:00:01.103,698] <dbg> net_l2_openthread: net_pkt_hexdump: Received 802.15.4 frame
[00:00:01.103,790] <dbg> net_l2_openthread: net_pkt_hexdump: 0x20016f00
                                            41 d8 4e cd ab ff ff 28  5a e2 c8 a6 f3 c7 42 7f |A.N....( Z.....B.
                                            3b 01 f0 4d 4c 4d 4c 7b  2c 00 15 88 08 00 00 00 |;..MLML{ ,.......
                                            00 00 00 01 cd 67 a7 6b  36 79 6f e5 2a 75 eb b1 |.....g.k 6yo.*u..
                                            b5 46 ed 11 86 62 8d e6  9f 2b 3f 89 7d 0d 84 a0 |.F...b.. .+?.}...
                                            dc ad 05 1e d2                                   |.....            
[00:00:05.157,379] <inf> lux: mqtt_sn_transport_udp_init OK

[00:00:05.157,714] <inf> lux: mqtt_sn_client_init OK

[00:00:05.157,958] <dbg> net_l2_openthread: net_pkt_hexdump: IPv6 packet to send
[00:00:05.158,050] <dbg> net_l2_openthread: net_pkt_hexdump: 0x20016a88
                                            60 00 00 00 00 11 11 40  fd d1 7b 3e 35 3a 00 01 |`......@ ..{>5:..
                                            b6 70 1b 7c 5f cb c7 6e  ff 33 00 40 fd 11 a2 5e |.p.|_..n .3.@...^
                                            b0 72 10 53 00 00 00 01  ef 21 b8 59 00 11 9f 9c |.r.S.... .!.Y....
                                            09 04 04 01 00 3c 4c 55  58                      |.....<LU X       
[00:00:05.158,081] <dbg> net_otPlat_radio: openthread_handle_frame_to_send: (0x20003610): Sending Ip6 packet to ot stack
[00:00:05.158,660] <inf> lux: Waiting for mqtt-sn connexion
[00:00:05.180,267] <dbg> net_l2_openthread: openthread_recv: (0x200027d0): Got 802.15.4 packet, sending to OT
[00:00:05.180,267] <dbg> net_l2_openthread: net_pkt_hexdump: Received 802.15.4 frame
[00:00:05.180,358] <dbg> net_l2_openthread: net_pkt_hexdump: 0x20016f00
                                            49 98 4f cd ab ff ff 00  24 0d d7 01 00 00 01 c0 |I.O..... $.......
                                            97 71 f7 3d 89 7b dd ab  d9 ce 48 3b 94 17 90 fc |.q.=.{.. ..H;....
                                            23 f4 de d3 ca 6f eb 20  28 2b 79 d7 f5 b0 50 de |#....o.  (+y...P.
                                            b7 d0 3c 5d 77 93 bc ea  29 b6 3f a9 e2 1f 84    |..<]w... ).?.... 
[00:00:05.291,503] <dbg> net_l2_openthread: openthread_recv: (0x200027d0): Got 802.15.4 packet, sending to OT
[00:00:05.291,534] <dbg> net_l2_openthread: net_pkt_hexdump: Received 802.15.4 frame
[00:00:05.291,625] <dbg> net_l2_openthread: net_pkt_hexdump: 0x20016f00
                                            49 98 50 cd ab ff ff 00  24 0d d8 01 00 00 01 ed |I.P..... $.......
                                            09 0e b5 b7 69 2b 85 1c  59 ef 50 86 cf d1 98 4e |....i+.. Y.P....N
                                            41 f7 51 95 cb 9c 11 5b  a5 da de 09 2b c6 97 29 |A.Q....[ ....+..)
                                            df 81 f0 f8 f4 1e 16 00  d8 ff c4 c7 19 1e ef    |........ ....... 
[00:00:05.371,673] <dbg> net_l2_openthread: openthread_recv: (0x200027d0): Got 802.15.4 packet, sending to OT
[00:00:05.371,704] <dbg> net_l2_openthread: net_pkt_hexdump: Received 802.15.4 frame
[00:00:05.371,795] <dbg> net_l2_openthread: net_pkt_hexdump: 0x20016f00
                                            69 98 51 cd ab 04 24 00  24 0d d9 01 00 00 01 81 |i.Q...$. $.......
                                            68 07 94 27 f5 a0 18 62  85 c6 73 16 77 62 9d 86 |h..'...b ..s.wb..
                                            b3 9a e0 dd 0a 18 81 26  46 97 b0 a3 ba c9 01 88 |.......& F.......
                                            a0 86 15 1f 77                                   |....w            
[00:00:05.372,589] <dbg> net_l2_openthread: ot_receive_handler: (0x20003610): Injecting Ip6 packet to Zephyr net stack
[00:00:05.372,619] <dbg> net_l2_openthread: net_pkt_hexdump: Received IPv6 packet
[00:00:05.372,680] <dbg> net_l2_openthread: net_pkt_hexdump: 0x20016e98
                                            60 03 ee 24 00 0b 11 40  fd d1 7b 3e 35 3a 00 01 |`..$...@ ..{>5:..
                                            5c 38 28 ec 9e cb 31 d4  fd d1 7b 3e 35 3a 00 01 |\8(...1. ..{>5:..
                                            b6 70 1b 7c 5f cb c7 6e  b8 59 ef 21 00 0b a9 d5 |.p.|_..n .Y.!....
                                            03 05 00                                         |...              
[00:00:05.372,802] <dbg> net_l2_openthread: openthread_recv: (0x200027d0): Got injected Ip6 packet, sending to upper layers
[00:00:05.372,833] <dbg> net_l2_openthread: net_pkt_hexdump: Injected IPv6 packet
[00:00:05.372,894] <dbg> net_l2_openthread: net_pkt_hexdump: 0x20016e98
                                            60 03 ee 24 00 0b 11 40  fd d1 7b 3e 35 3a 00 01 |`..$...@ ..{>5:..
                                            5c 38 28 ec 9e cb 31 d4  fd d1 7b 3e 35 3a 00 01 |\8(...1. ..{>5:..
                                            b6 70 1b 7c 5f cb c7 6e  b8 59 ef 21 00 0b a9 d5 |.p.|_..n .Y.!....
                                            03 05 00                                         |...              
[00:00:05.373,138] <dbg> net_l2_openthread: net_pkt_hexdump: IPv6 packet to send
[00:00:05.373,229] <dbg> net_l2_openthread: net_pkt_hexdump: 0x20016a88
                                            60 00 00 00 00 38 3a 40  fd d1 7b 3e 35 3a 00 01 |`....8:@ ..{>5:..
                                            b6 70 1b 7c 5f cb c7 6e  fd d1 7b 3e 35 3a 00 01 |.p.|_..n ..{>5:..
                                            5c 38 28 ec 9e cb 31 d4  01 04 f6 b4 00 00 00 00 |\8(...1. ........
                                            60 03 ee 24 00 0b 11 40  fd d1 7b 3e 35 3a 00 01 |`..$...@ ..{>5:..
                                            5c 38 28 ec 9e cb 31 d4  fd d1 7b 3e 35 3a 00 01 |\8(...1. ..{>5:..
                                            b6 70 1b 7c 5f cb c7 6e  b8 59 ef 21 00 0b a9 d5 |.p.|_..n .Y.!....
[00:00:05.373,291] <dbg> net_otPlat_radio: openthread_handle_frame_to_send: (0x20003610): Sending Ip6 packet to ot stack
[00:00:08.987,609] <dbg> net_l2_openthread: openthread_recv: (0x200027d0): Got 802.15.4 packet, sending to OT
[00:00:08.987,640] <dbg> net_l2_openthread: net_pkt_hexdump: Received 802.15.4 frame
[00:00:08.987,731] <dbg> net_l2_openthread: net_pkt_hexdump: 0x20016e98
                                            41 d8 52 cd ab ff ff 28  5a e2 c8 a6 f3 c7 42 7f |A.R....( Z.....B.
                                            3b 01 f0 4d 4c 4d 4c 47  06 00 15 89 08 00 00 00 |;..MLMLG ........
                                            00 00 00 01 79 f3 87 cc  bb 71 ff 57 5f a9 9a d3 |....y... .q.W_...
                                            58 1c 87 1d 7e c4 4d 0d  48 5e 5b dd c9 7b a6 ab |X...~.M. H^[..{..
                                            ad c8 ac 1e d2                                   |.....            
[00:00:10.158,721] <inf> lux: mqtt_sn_connect OK ?
[00:00:10.158,752] <inf> lux: Client not connected : client.state = 0 ... force client.state to 1
[00:00:10.158,782] <inf> lux: Client state : 1
[00:00:11.158,874] <inf> lux: publish ok
[00:00:11.158,935] <inf> net_mqtt_sn: Registering topic
                                      70 6f 73                                         |pos              
[00:00:11.159,149] <dbg> net_l2_openthread: net_pkt_hexdump: IPv6 packet to send
[00:00:11.159,210] <dbg> net_l2_openthread: net_pkt_hexdump: 0x20016a88
                                            60 00 00 00 00 11 11 40  fd d1 7b 3e 35 3a 00 01 |`......@ ..{>5:..
                                            b6 70 1b 7c 5f cb c7 6e  ff 33 00 40 fd 11 a2 5e |.p.|_..n .3.@...^
                                            b0 72 10 53 00 00 00 01  ef 21 b8 59 00 11 64 b8 |.r.S.... .!.Y..d.
                                            09 0a 00 00 00 01 70 6f  73                      |......po s       
[00:00:11.159,271] <inf> net_mqtt_sn: Can't publish; topic is not ready
[00:00:11.159,332] <dbg> net_otPlat_radio: openthread_handle_frame_to_send: (0x20003610): Sending Ip6 packet to ot stack
[00:00:11.172,790] <dbg> net_l2_openthread: openthread_recv: (0x200027d0): Got 802.15.4 packet, sending to OT
[00:00:11.172,821] <dbg> net_l2_openthread: net_pkt_hexdump: Received 802.15.4 frame
[00:00:11.172,882] <dbg> net_l2_openthread: net_pkt_hexdump: 0x20016e98
                                            69 98 53 cd ab 04 24 00  24 0d da 01 00 00 01 b0 |i.S...$. $.......
                                            48 e8 fd af 84 27 29 4d  4a 48 ea e1 fa 62 fb bb |H....')M JH...b..
                                            a7 e0 37 3b af fc 5b bc  d7 03 e0 ba 48 96 a0 8b |..7;..[. ....H...
                                            17 32 e6 d1 31 43 8a 1e  48                      |.2..1C.. H       
[00:00:11.173,767] <dbg> net_l2_openthread: ot_receive_handler: (0x20003610): Injecting Ip6 packet to Zephyr net stack
[00:00:11.173,797] <dbg> net_l2_openthread: net_pkt_hexdump: Received IPv6 packet
[00:00:11.173,889] <dbg> net_l2_openthread: net_pkt_hexdump: 0x20016f00
                                            60 03 ee 24 00 0f 11 40  fd d1 7b 3e 35 3a 00 01 |`..$...@ ..{>5:..
                                            5c 38 28 ec 9e cb 31 d4  fd d1 7b 3e 35 3a 00 01 |\8(...1. ..{>5:..
                                            b6 70 1b 7c 5f cb c7 6e  b8 59 ef 21 00 0f a5 a1 |.p.|_..n .Y.!....
                                            07 0b 00 25 00 01 00                             |...%...          
[00:00:11.174,011] <dbg> net_l2_openthread: openthread_recv: (0x200027d0): Got injected Ip6 packet, sending to upper layers
[00:00:11.174,011] <dbg> net_l2_openthread: net_pkt_hexdump: Injected IPv6 packet
[00:00:11.174,102] <dbg> net_l2_openthread: net_pkt_hexdump: 0x20016f00
                                            60 03 ee 24 00 0f 11 40  fd d1 7b 3e 35 3a 00 01 |`..$...@ ..{>5:..
                                            5c 38 28 ec 9e cb 31 d4  fd d1 7b 3e 35 3a 00 01 |\8(...1. ..{>5:..
                                            b6 70 1b 7c 5f cb c7 6e  b8 59 ef 21 00 0f a5 a1 |.p.|_..n .Y.!....
                                            07 0b 00 25 00 01 00                             |...%...          
[00:00:11.174,346] <dbg> net_l2_openthread: net_pkt_hexdump: IPv6 packet to send
[00:00:11.174,407] <dbg> net_l2_openthread: net_pkt_hexdump: 0x20016a88
                                            60 00 00 00 00 38 3a 40  fd d1 7b 3e 35 3a 00 01 |`....8:@ ..{>5:..
                                            b6 70 1b 7c 5f cb c7 6e  fd d1 7b 3e 35 3a 00 01 |.p.|_..n ..{>5:..
                                            5c 38 28 ec 9e cb 31 d4  01 04 fa e0 00 00 00 00 |\8(...1. ........
                                            60 03 ee 24 00 0f 11 40  fd d1 7b 3e 35 3a 00 01 |`..$...@ ..{>5:..
                                            5c 38 28 ec 9e cb 31 d4  fd d1 7b 3e 35 3a 00 01 |\8(...1. ..{>5:..
                                            b6 70 1b 7c 5f cb c7 6e  b8 59 ef 21 00 0f a5 a1 |.p.|_..n .Y.!....
[00:00:11.174,499] <dbg> net_otPlat_radio: openthread_handle_frame_to_send: (0x20003610): Sending Ip6 packet to ot stack
[00:00:11.184,539] <dbg> net_l2_openthread: openthread_recv: (0x200027d0): Got 802.15.4 packet, sending to OT
[00:00:11.184,570] <dbg> net_l2_openthread: net_pkt_hexdump: Received 802.15.4 frame
[00:00:11.184,631] <dbg> net_l2_openthread: net_pkt_hexdump: 0x20016f00
                                            49 98 54 cd ab ff ff 00  24 0d db 01 00 00 01 c8 |I.T..... $.......
                                            39 6c 06 1e 66 73 c2 f7  46 ac e4 28 02 df f9 db |9l..fs.. F..(....
                                            b4 a5 d7 09 4b b2 b9 a5  e9 6d d0 10 81 d8 f8 6d |....K... .m.....m
                                            7c 3e dc 9c 3f 73 91 84  38 13 ff ba 1c 1f a6    ||>..?s.. 8...... 
[00:00:11.284,301] <dbg> net_l2_openthread: openthread_recv: (0x200027d0): Got 802.15.4 packet, sending to OT
[00:00:11.284,332] <dbg> net_l2_openthread: net_pkt_hexdump: Received 802.15.4 frame
[00:00:11.284,393] <dbg> net_l2_openthread: net_pkt_hexdump: 0x20016f00
                                            49 98 55 cd ab ff ff 00  24 0d dc 01 00 00 01 3d |I.U..... $......=
                                            44 12 ab 2b fa 95 f5 be  75 33 b6 91 cd c9 de 34 |D..+.... u3.....4
                                            2f 42 d5 66 bd 6f d2 33  2a dd a9 bd 57 3d 41 9f |/B.f.o.3 *...W=A.
                                            da 32 41 98 e8 a6 6f dc  ee dd f1 4b b9 1e ef    |.2A...o. ...K... 
[00:00:15.157,379] <inf> net_mqtt_sn: Can't publish; topic is not ready
[00:00:15.157,440] <inf> net_mqtt_sn: Can't publish; topic is not ready
[00:00:15.157,501] <inf> net_mqtt_sn: Can't publish; topic is not ready
[00:00:15.157,531] <inf> net_mqtt_sn: Can't publish; topic is not ready
[00:00:15.157,562] <inf> net_mqtt_sn: Can't publish; topic is not ready
[00:00:15.157,623] <inf> net_mqtt_sn: Can't publish; topic is not ready
[00:00:15.157,653] <inf> net_mqtt_sn: Can't publish; topic is not ready
[00:00:15.157,714] <inf> net_mqtt_sn: Can't publish; topic is not ready
[00:00:15.157,745] <inf> net_mqtt_sn: Can't publish; topic is not ready
[00:00:15.157,806] <inf> net_mqtt_sn: Can't publish; topic is not ready
[00:00:15.157,836] <inf> net_mqtt_sn: Can't publish; topic is not ready
[00:00:15.157,897] <inf> net_mqtt_sn: Can't publish; topic is not ready
[00:00:15.157,928] <inf> net_mqtt_sn: Can't publish; topic is not ready
[00:00:15.157,989] <inf> net_mqtt_sn: Can't publish; topic is not ready
[00:00:15.158,020] <inf> net_mqtt_sn: Can't publish; topic is not ready
[00:00:15.158,050] <wrn> net_mqtt_sn: Ping ran out of retries
[00:00:15.158,050] <inf> lux: IN MQTT EVT
[00:00:15.158,081] <inf> lux: MQTT-SN event EVT_DISCONNECTED
[00:00:16.159,149] <dbg> net_l2_openthread: net_pkt_hexdump: IPv6 packet to send
[00:00:16.159,240] <dbg> net_l2_openthread: net_pkt_hexdump: 0x20016a88
                                            60 00 00 00 00 0a 11 40  fd d1 7b 3e 35 3a 00 01 |`......@ ..{>5:..
                                            b6 70 1b 7c 5f cb c7 6e  ff 33 00 40 fd 11 a2 5e |.p.|_..n .3.@...^
                                            b0 72 10 53 00 00 00 01  ef 21 b8 59 00 0a 4f 29 |.r.S.... .!.Y..O)
                                            02 18                                            |..               
[00:00:16.159,271] <dbg> net_otPlat_radio: openthread_handle_frame_to_send: (0x20003610): Sending Ip6 packet to ot stack
[00:00:16.160,003] <inf> lux: IN MQTT EVT
[00:00:16.160,034] <inf> lux: MQTT-SN event EVT_DISCONNECTED
[00:00:16.160,034] <inf> lux: mqtt_sn_disconnect OK

[00:00:16.172,973] <dbg> net_l2_openthread: openthread_recv: (0x200027d0): Got 802.15.4 packet, sending to OT
[00:00:16.173,004] <dbg> net_l2_openthread: net_pkt_hexdump: Received 802.15.4 frame
[00:00:16.173,095] <dbg> net_l2_openthread: net_pkt_hexdump: 0x20016f00
                                            69 98 56 cd ab 04 24 00  24 0d dd 01 00 00 01 b4 |i.V...$. $.......
                                            7a f7 d5 1f 7e a4 cb ab  7b 0b 29 23 50 7c cd 46 |z...~... {.)#P|.F
                                            34 5e 37 43 60 bc 2e fb  42 16 2a cb b6 16 d9 ab |4^7C`... B.*.....
                                            2f e3 1e 98                                      |/...             
[00:00:16.173,889] <dbg> net_l2_openthread: ot_receive_handler: (0x20003610): Injecting Ip6 packet to Zephyr net stack
[00:00:16.173,889] <dbg> net_l2_openthread: net_pkt_hexdump: Received IPv6 packet
[00:00:16.173,980] <dbg> net_l2_openthread: net_pkt_hexdump: 0x20016e98
                                            60 03 ee 24 00 0a 11 40  fd d1 7b 3e 35 3a 00 01 |`..$...@ ..{>5:..
                                            5c 38 28 ec 9e cb 31 d4  fd d1 7b 3e 35 3a 00 01 |\8(...1. ..{>5:..
                                            b6 70 1b 7c 5f cb c7 6e  b8 59 ef 21 00 0a aa c4 |.p.|_..n .Y.!....
                                            02 18                                            |..               
[00:00:16.174,102] <dbg> net_l2_openthread: openthread_recv: (0x200027d0): Got injected Ip6 packet, sending to upper layers
[00:00:16.174,133] <dbg> net_l2_openthread: net_pkt_hexdump: Injected IPv6 packet
[00:00:16.174,194] <dbg> net_l2_openthread: net_pkt_hexdump: 0x20016e98
                                            60 03 ee 24 00 0a 11 40  fd d1 7b 3e 35 3a 00 01 |`..$...@ ..{>5:..
                                            5c 38 28 ec 9e cb 31 d4  fd d1 7b 3e 35 3a 00 01 |\8(...1. ..{>5:..
                                            b6 70 1b 7c 5f cb c7 6e  b8 59 ef 21 00 0a aa c4 |.p.|_..n .Y.!....
                                            02 18                                            |..               
[00:00:16.174,438] <dbg> net_l2_openthread: net_pkt_hexdump: IPv6 packet to send
[00:00:16.174,530] <dbg> net_l2_openthread: net_pkt_hexdump: 0x20016a88
                                            60 00 00 00 00 38 3a 40  fd d1 7b 3e 35 3a 00 01 |`....8:@ ..{>5:..
                                            b6 70 1b 7c 5f cb c7 6e  fd d1 7b 3e 35 3a 00 01 |.p.|_..n ..{>5:..
                                            5c 38 28 ec 9e cb 31 d4  01 04 f5 c7 00 00 00 00 |\8(...1. ........
                                            60 03 ee 24 00 0a 11 40  fd d1 7b 3e 35 3a 00 01 |`..$...@ ..{>5:..
                                            5c 38 28 ec 9e cb 31 d4  fd d1 7b 3e 35 3a 00 01 |\8(...1. ..{>5:..
                                            b6 70 1b 7c 5f cb c7 6e  b8 59 ef 21 00 0a aa c4 |.p.|_..n .Y.!....
[00:00:16.174,591] <dbg> net_otPlat_radio: openthread_handle_frame_to_send: (0x20003610): Sending Ip6 packet to ot stack
[00:00:16.216,217] <dbg> net_l2_openthread: openthread_recv: (0x200027d0): Got 802.15.4 packet, sending to OT
[00:00:16.216,247] <dbg> net_l2_openthread: net_pkt_hexdump: Received 802.15.4 frame
[00:00:16.216,339] <dbg> net_l2_openthread: net_pkt_hexdump: 0x20016e98
                                            49 98 57 cd ab ff ff 00  24 0d de 01 00 00 01 35 |I.W..... $......5
                                            51 cb bf d8 e1 25 55 44  4e e4 14 9f a6 d5 3f 09 |Q....%UD N.....?.
                                            e0 23 85 c0 eb a6 da 84  3c bd 24 21 5c 4c b3 f0 |.#...... <.$!\L..
                                            2c af 0f a8 e0 4c 1e dc                          |,....L..         
[00:00:16.254,089] <dbg> net_l2_openthread: openthread_recv: (0x200027d0): Got 802.15.4 packet, sending to OT
[00:00:16.254,089] <dbg> net_l2_openthread: net_pkt_hexdump: Received 802.15.4 frame
[00:00:16.254,180] <dbg> net_l2_openthread: net_pkt_hexdump: 0x20016e98
                                            49 98 58 cd ab ff ff 00  24 0d df 01 00 00 01 f1 |I.X..... $.......
                                            12 68 40 37 1c 4a 32 b7  30 41 ae 4c 07 11 a1 dd |[email protected]. 0A.L....
                                            7e e6 d7 e3 b7 e3 57 a8  b6 70 7e f1 fc 20 7e 55 |~.....W. .p~.. ~U
                                            5f a5 72 b9 0f 84 1e 84                          |_.r.....         
[00:00:21.695,434] <dbg> net_l2_openthread: openthread_recv: (0x200027d0): Got 802.15.4 packet, sending to OT
[00:00:21.695,465] <dbg> net_l2_openthread: net_pkt_hexdump: Received 802.15.4 frame
[00:00:21.695,556] <dbg> net_l2_openthread: net_pkt_hexdump: 0x20016e98
                                            41 d8 59 cd ab ff ff 28  5a e2 c8 a6 f3 c7 42 7f |A.Y....( Z.....B.
                                            3b 01 f0 4d 4c 4d 4c 15  8c 00 15 8a 08 00 00 00 |;..MLML. ........
                                            00 00 00 01 ed f3 ee 58  14 9f 71 f0 a9 99 e0 92 |.......X ..q.....
                                            cb e8 a2 ae d3 52 46 f8  dd c7 56 43 8e f7 9e 46 |.....RF. ..VC...F
                                            93 39 e0 1f cf                                   |.9...            


Wireshark log :


For some reason i have error on wireshark with ICMPv6 paquet, but i don't know if it's why i don't have any data back :
Full frame of an error :
Frame 3555: 95 bytes on wire (760 bits), 95 bytes captured (760 bits) on interface /dev/cu.usbmodemF2B4EEF3F6EA1, id 0
    Section number: 1
    Interface id: 0 (/dev/cu.usbmodemF2B4EEF3F6EA1)
    Encapsulation type: IEEE 802.15.4 Wireless PAN with FCS not present (127)
    Arrival Time: Sep 29, 2023 16:21:35.320971000 CEST
    [Time shift for this packet: 0.000000000 seconds]
    Epoch Time: 1695997295.320971000 seconds
    [Time delta from previous captured frame: 0.007634000 seconds]
    [Time delta from previous displayed frame: 0.007634000 seconds]
    [Time since reference or first frame: 21467.385670000 seconds]
    Frame Number: 3555
    Frame Length: 95 bytes (760 bits)
    Capture Length: 95 bytes (760 bits)
    [Frame is marked: False]
    [Frame is ignored: False]
    [Protocols in frame: wpan:6lowpan:ipv6:icmpv6:ipv6:udp]
    [Coloring Rule Name: ICMP errors]
    [Coloring Rule String: icmp.type in { 3..5, 11 } || icmpv6.type in { 1..4 }]
IEEE 802.15.4 Data, Dst: 0x2400, Src: 0x2404
    Frame Control Field: 0x9869, Frame Type: Data, Security Enabled, Acknowledge Request, PAN ID Compression, Destination Addressing Mode: Short/16-bit, Frame Version: IEEE Std 802.15.4-2006, Source Addressing Mode: Short/16-bit
    Sequence Number: 138
    Destination PAN: 0xabcd
    Destination: 0x2400
    Source: 0x2404
    [Extended Source: fa:a9:09:d6:96:ac:ce:60 (fa:a9:09:d6:96:ac:ce:60)]
    [Origin: 3257]
    Auxiliary Security Header
    MIC: cf7f908f
    [Key Number: 0]
6LoWPAN, Src: ::b670:1b7c:5fcb:c76e, Dest: ::5c38:28ec:9ecb:31d4
    IPHC Header
    Next header: ICMPv6 (0x3a)
    Source: ::b670:1b7c:5fcb:c76e
    Destination: ::5c38:28ec:9ecb:31d4
Internet Protocol Version 6, Src: ::b670:1b7c:5fcb:c76e, Dst: ::5c38:28ec:9ecb:31d4
    0110 .... = Version: 6
    .... 0000 0000 .... .... .... .... .... = Traffic Class: 0x00 (DSCP: CS0, ECN: Not-ECT)
    .... 0000 0000 0000 0000 0000 = Flow Label: 0x00000
    Payload Length: 56
    Next Header: ICMPv6 (58)
    Hop Limit: 64
    Source Address: ::b670:1b7c:5fcb:c76e
    Destination Address: ::5c38:28ec:9ecb:31d4
Internet Control Message Protocol v6


mqtt-sn paho log


ot-br client/server ip address : 
root@b75158b3291c:/app# ot-ctl
router table 
| ID | RLOC16 | Next Hop | Path Cost | LQ In | LQ Out | Age | Extended MAC     | Link |
+----+--------+----------+-----------+-------+--------+-----+------------------+------+
|  9 | 0x2400 |       63 |         0 |     0 |      0 |   0 | 42c7f3a6c8e25a28 |    0 |

Done
> child table
| ID  | RLOC16 | Timeout    | Age        | LQ In | C_VN |R|D|N|Ver|CSL|QMsgCnt|Suprvsn| Extended MAC     |
+-----+--------+------------+------------+-------+------+-+-+-+---+---+-------+-------+------------------+
|   4 | 0x2404 |        240 |        231 |     3 |   27 |1|0|0|  4| 0 |     0 |   129 | faa909d696acce60 |

Done
> 


All IP interfaces on Raspberry :
ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: wpan0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1280 qdisc pfifo_fast state UNKNOWN group default qlen 500
    link/none 
    inet6 fd11:a25e:b072:1053:0:ff:fe00:fc11/64 scope global nodad deprecated 
       valid_lft forever preferred_lft 0sec
    inet6 fdd1:7b3e:353a:1:5c38:28ec:9ecb:31d4/64 scope global nodad 
       valid_lft forever preferred_lft forever
    inet6 fd11:a25e:b072:1053:0:ff:fe00:fc10/64 scope global nodad deprecated 
       valid_lft forever preferred_lft 0sec
    inet6 fd11:a25e:b072:1053:0:ff:fe00:fc38/64 scope global nodad deprecated 
       valid_lft forever preferred_lft 0sec
    inet6 fd11:a25e:b072:1053:0:ff:fe00:fc00/64 scope global nodad deprecated 
       valid_lft forever preferred_lft 0sec
    inet6 fd11:a25e:b072:1053:0:ff:fe00:2400/64 scope global nodad deprecated 
       valid_lft forever preferred_lft 0sec
    inet6 fd11:a25e:b072:1053:c0a9:1fc3:4a56:931b/64 scope global nodad deprecated 
       valid_lft forever preferred_lft 0sec
    inet6 fe80::40c7:f3a6:c8e2:5a28/64 scope link nodad 
       valid_lft forever preferred_lft forever
68: eth0@if69: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default 
    link/ether 02:42:ac:11:00:02 brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet 172.17.0.2/16 brd 172.17.255.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fdde:ad00:beef:cafe:42:acff:fe11:2/64 scope global dynamic mngtmpaddr 
       valid_lft 4158996036sec preferred_lft 4158996036sec
    inet6 fe80::42:acff:fe11:2/64 scope link 
       valid_lft forever preferred_lft forever


Any help would be very appreciated.

Regards.

Parents
  • Hi,

    I know it is not the answer you want, but let us first take a step back:
    Why have you chosen MQTT-SN instead of CoAP here?

    CoAP does not require anything extra on the OTBR, and we have more support for it.

    It is of course up to you, I just want to try to suggest the alternative I think is easier. Also, I am curios for use-cases where MQTT-SN is preferrable.

    For the MQTT-SN issue, I suggest you startby isolating the issue: Is it the nRF or the OTBR.
    Can you test this OTBR also, and see if the same issue is still there? https://github.com/osaether/otbr-mqtt-sn
    If so, there is a higher chance that the issue is on the nRF somewhere.

  • You 're right this is a choice i made, my prior objectives is to work on MQTT network, with a "regular" IOT network. I think that MQTT-SN is the default one that can synchronise natively with other MQTT network.
    I'm not so confident to use COAP. I May end with CoaP and a synchronisation process to send messages between MQTT and COAP.
    The other point is that MQTT-SN get native functions (that i won't implement for now) to handle messages asynch with sleeping objects.

    I already tried several mqtt configurations (even without docker, in native RPI mode) and i get the same behavior, even <ith the one you suggested.
    I used paho mqtt-sn mosquitto rsmb and https://github.com/eclipse/mosquitto.rsmb.
    every time i get a connexion entry with CONNACK in broker serer log, but CONNACK never get back to client (i assume it would displays something in  evt_cb callback function.

    I just changed something with no luck : i call mqtt_sn_input in a loop just after the connexion, but it never raise any events in the evt_cb function.




  • krypton76 said:
    You 're right this is a choice i made, my prior objectives is to work on MQTT network, with a "regular" IOT network. I think that MQTT-SN is the default one that can synchronise natively with other MQTT network.
    I'm not so confident to use COAP. I May end with CoaP and a synchronisation process to send messages between MQTT and COAP.
    The other point is that MQTT-SN get native functions (that i won't implement for now) to handle messages asynch with sleeping objects.

    I talked to some colleagues, and I now understand better that MQTT in many cases advantageous. We will help you debug your issues as best we can.

    First, I want to check a couple of basic things, but an important thing to know still:

    Is you OTBR connected to the internet?

    Are you able to ping online IP addresses from your thread device?

  • So thanks for helping me.
    For the record, since last time i succeeded in sending a simple coap message on a simple python coap server that is running on RPI ans forwarding the message to cloud mqtt service.
    In order to succeed i completely clean the RPI from scratch without any docker services, and any network rules.

    Based on that i rebuilt an mqtt-sn paho server, and i have badly the same results : i'm able to connect and start register but i get any callback calls.

    And to answer you i'm able to ping online ip adresses : 

    uart:~$ ot ping 8.8.8.8
    Pinging synthesized IPv6 address: fd2b:2a9b:18d6:2:0:0:808:808
    16 bytes from fd2b:2a9b:18d6:2:0:0:808:808: icmp_seq=2 hlim=114 time=23ms
    1 packets transmitted, 1 packets received. Packet loss = 0.0%. Round-trip min/avg/max = 23/23.0/23 ms.
    Done

Reply
  • So thanks for helping me.
    For the record, since last time i succeeded in sending a simple coap message on a simple python coap server that is running on RPI ans forwarding the message to cloud mqtt service.
    In order to succeed i completely clean the RPI from scratch without any docker services, and any network rules.

    Based on that i rebuilt an mqtt-sn paho server, and i have badly the same results : i'm able to connect and start register but i get any callback calls.

    And to answer you i'm able to ping online ip adresses : 

    uart:~$ ot ping 8.8.8.8
    Pinging synthesized IPv6 address: fd2b:2a9b:18d6:2:0:0:808:808
    16 bytes from fd2b:2a9b:18d6:2:0:0:808:808: icmp_seq=2 hlim=114 time=23ms
    1 packets transmitted, 1 packets received. Packet loss = 0.0%. Round-trip min/avg/max = 23/23.0/23 ms.
    Done

Children
  • Hello,

    I have taken over this case while Sigurd is away.

    Thank you for sharing that you have made some progress and for answering Sigurd's questions.

    I had a read through your original ticket together with the MQTT-SN specification v1.2, and I found that some messages have a weird format. I am thinking of the ones with "double lined" arrows from the following log:

    mqtt-sn paho log

    The message format is not according to spec. Do you know where the format is from?

    krypton76 said:
    In order to succeed i completely clean the RPI from scratch without any docker services, and any network rules.

    Based on that i rebuilt an mqtt-sn paho server, and i have badly the same results : i'm able to connect and start register but i get any callback calls.

    I assume that you meant that you did not get any callbacks?

    By comparing the Wireshark screenshot to the Paho log it seems that two UDP messages are missing in the Paho log (packets 3563 and 3564). Do you know which messages these could be? What does their frames look like?

    If you have any new logs to share after the change you made, please share them.

Related