This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Communicate between two nfr52dk devices via IPv6

Hello,

Setup: Running Ubuntu 18.04 inside Windows Host (using VMWare).

Device: nrf52840DK

Operating System (used for development): RIOT

I would like to communicate between two nrf52dk devices. I would like to use IPv6 for the same.

I am able to get the IP addresses using ifconfig command, once I successfully flash the board.

Note: The IP addresses cannot be PINGed. I get an invalid argument error when I PING the IP from the Ubuntu terminal.

ipaddr command in the J-Link says that "the device doesn't support ethernet". (Same error in Windows as well)

Experiment:

I have 2 nrf52dk devices.

I flashed both of them with different codes.
First with code which would receive UDP packets (Left terminal in the image below).The line highlighted yellow outputs that server was started.

Second with the code which would send UDP packets (Right terminal in the image below). Logs clearly show that the device is sent the UDP packets successfully. But, at the same time, I should be receiving the packets. But clearly, the image (left terminal in the image) shows that I did not receive them.

Note: The code works just fine. It has been tested on virtual nodes. Correct execution should look something like the following image. (Please compare the left terminals in both images).

Thank you.

Parents
  • Hello,

    Sorry. Is this OpenThread? Is it one of our example applications? Just not sure exactly what I am looking at here. Could you please specify?

    Thank you!

    Best regards,

    Edvin

  • No, the network stack is GNRC, default one present in RIOT OS. 

    This is something which I wrote. But, the code is not the issue. I tried using Tutorial tasks from RIOT OS, even they did not work.

    The issue here is that I am not able to communicate between 2 nrf52dk devices. The examples/screenshots are just a reference. 

    Please discard example from the problem, if they are confusing you. Please help me identify a way how can I communicate between the two devices using a local IP address. That's it.

    Thanks

  • The Nordic nRF52840 does not support Ethernet. There are some ways of connecting the nRFs to the internet, but I am only familiar with our IOT examples from our SDK, and the Thread or Zigbee examples from our Thread SDK. Maybe you want to take a look at those.

    The radio on the nRF is not Wifi compatible. Only BLE and 802.15.4, so you need a gateway that supports one of these, and some internet connectivity (WiFi or Ethernet) to act as a bridge between the nRFs and the IP protocol.

    Best regards,

    Edvin

Reply
  • The Nordic nRF52840 does not support Ethernet. There are some ways of connecting the nRFs to the internet, but I am only familiar with our IOT examples from our SDK, and the Thread or Zigbee examples from our Thread SDK. Maybe you want to take a look at those.

    The radio on the nRF is not Wifi compatible. Only BLE and 802.15.4, so you need a gateway that supports one of these, and some internet connectivity (WiFi or Ethernet) to act as a bridge between the nRFs and the IP protocol.

    Best regards,

    Edvin

Children
Related