[riot-users] UDP Sock API

Carron Joël joel.carron at heig-vd.ch
Thu Nov 29 09:05:20 CET 2018

Hi Kaspar,

Thanks for your answer.

Yes I can ping RIOT OS from Linux with addresses ff02::2 and the complete IPv6 address. From RIOT OS, I can ping Linux with the complete IPv6 address but not with ff02::2 (my kernel doesn't handle coordinator mode in wpan-tools I think).

"uname -a" gives :

"Linux 4.1.15_2.0.x-udoo+g7773e460a540 #1 SMP PREEMPT Mon Nov 12 16:59:36 CET 2018 armv7l armv7l armv7l GNU/Linux"

I've patched the MRF24J40 Linux driver to add some debug messages and activated the debug messages in RIOT OS (GNRC part). When I send a packet from Linux, I can see that the GNRC is receiving a message but the UDP packet never reaches the application.

In the direction RIOT OS to Linux, I can send UDP packets and I can handle them with this Python script : https://pastebin.com/uBRXc3dh

Here the frames from RIOT OS and from Linux : https://pastebin.com/K7ei02R3

>From Linux, the broadcast address is always used and the payload is strange. The only thing I can see identify is the IPv6 destination address. Anyway the frames don't look the same.

De : users <users-bounces at riot-os.org> de la part de Kaspar Schleiser <kaspar at schleiser.de>
Envoyé : mercredi 28 novembre 2018 20:06:15
À : users at riot-os.org
Objet : Re: [riot-users] UDP Sock API

Hi Carron,

On 11/28/18 9:56 AM, Carron Joël wrote:
> I'm trying to get communication working between Linux and RIOT OS with UDP sockets.

Just to confirm - can you ping between RIOT and Linux? I've just lost a
day of debugging because current Raspian kernels have 802.15.4 receive

users mailing list
users at riot-os.org

More information about the users mailing list