Hi,
I'm testing the ICMP example, using a Raspberry and a custom board with a nRF52840. I follow the instructions on the "Connecting devices to the router" found in the infocenter. I'm using the Raspberry's bluetooth interface.
I can successfully connect to my custom board (with the command echo "connect 00:AA:BB:XX:YY:ZZ 1" > /sys/kernel/debug/bluetooth/6lowpan_control), but only for a short period of time after the interface is removed (the physical layer is disconnected) automatically. The time that the interface is up is random, but it never exceeds the 30 seconds aprox., and sometimes it disconnects almost inmediately.
The log messages when the interface disconnects:
<info> app: Got IP Application Handler Event on interface 0x20003EE8
<info> app: Interface removed!
<info> app: Physical layer disconnected.
<info> app: Physical layer in connectable mode.
I was able to perform a ping successfully when the interface was up (from the Raspberry to my custom board).
I was able to send a neighbor solicitation (pressing button 1) and get the neighbor advertisement from the Raspberry.
The two above operations are aborted if the interface goes down (removed) in the middle of the operation.
I previously search in the Devzone for similar topics, and I found a couple but without a resolution of the problem.
Note: The only change I needed to do was to set to zero the BLE_6LOWPAN_LEGACY_MODE in the sdk_config file.
My setup:
- Raspberry Pi 3 B+, with Raspbian 10 (buster), (Linux raspberrypi 4.19.97-v7+ #1294 SMP Thu Jan 30 13:15:58 GMT 2020 armv7l GNU/Linux)
- Custom Board with nRF52840
- SDK v16.0.0.
- Softdevice s140 v7.0.1
- Visual Studio Code / gcc
Thank in advance,
Best Regards,
José Forno