When I try to send a UDP packet using ‘gnrc_netapi_dispatch_send(GNRC_NETTYPE_UDP, GNRC_NETREG_DEMUX_CTX_ALL, ip)’ the invoked pids are, by this order, 6 (udp) and 5 (ipv6). After this, the packet is not transmitted.
Note: Xbee module is working (it transmits information if called directly by UART).
can you tell us on which git revision you are on? There used to be a bug in xbee, pretty much as you described, but that should be fixed as of the latest release (and in current master).
Mh, curious, the bug of Xbee that I was thinking of shouldn’t have been in effect at this point, but regardless it might be a good idea to get to current master or the current release (2018.01), since the version you are using is almost a year old.
Now I have the inverse problem: A UPD packet arrives on the other device and is properly decoded:
[xbee] isr: data available, waiting for read
[xbee] recv: reading size without dropping: 85
[xbee] recv: consuming packet: reading 85 byte
It contains the correct destination IPv6 address but nothing happens before the mentioned debugs. Did I miss any netdev configuration? I already have a running UDP server as described in the examples.
I noticed that the device sending the packet doesn’t use 6lowpan (DEBUG(“6lo: GNRC_NETDEV_MSG_TYPE_SND received\n”) doesn’t appear*)* but on the other device, when the message arrives and after decoding, the 6lo logic is called giving the following error:
[xbee] isr: data available, waiting for read
[xbee] recv: reading size without dropping: 69
[xbee] recv: consuming packet: reading 69 byte
[xbee-gnrc] recv: successfully parsed packet
6lo: GNRC_NETDEV_MSG_TYPE_RCV received
6lo: dispatch 0hx … is not supported
6lo: waiting for incoming message.
I’m trying to run 6lowpan but it seems that it is not executed on the sending side. Do I need extra configuration? I already have: