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

IPv6 Compatible BLE dongle

FormerMember
FormerMember

I just started trying to get an IOT IPv6 application up and running. On the nrf51882 end, I have flashed the IPv6 COAP server. The LED on the device is happily flashing away, so it could be working. The next step is to set up the Linux end.

I'm using Ubuntu 15.04 which has the necessary modules 6lowpan and bluetooth_6lowpan. I believe I have set everything up correctly. One point troubles me:

In the directory

/sys/kernel/debug/bluetooth

I can see 6lowpan_control and 6lowpan_enable. I can't see the 6lowpan_psm file, which means the echo 35 > .... Command always fails. When I say fails, a permission denied error message appears regardless of using sudo or sudo us. I've tried different BLE dongles, with the same result. I have also read that a BLE dongle with a Broadcom chipset is necessary. I have ordered a Broadcom based dongle just to check this out. Hopefully I will receive it in the next couple of days.

  • Hello Paul!

    Linux implementation of bluetooth_6lowpan module for debugfs has been changed since Kernel version 4.0.

    So right now to establish connection with the nRF51 kit you should use below set of commands:

    # Load 6LoWPAN module.
    modprobe bluetooth_6lowpan
    
    # Enable the bluetooth_6lowpan module.
    echo 1 > /sys/kernel/debug/bluetooth/6lowpan_enable
    
    # Establish connection with device
    echo "connect XX:XX:XX:XX:XX:XX 1" > /sys/kernel/debug/bluetooth/6lowpan_control
    

    Please check documentation of our new release for nRF52 to get more details: nRF5 IoT SDK - Connecting devices to the router

    Regarding to the BLE dongles issue - you should be able to use all dongles with Bluetooth 4.0 support.

  • FormerMember
    0 FormerMember in reply to Lukasz Duda

    It works nicely. The dongle as you say isn't an issue. On my work computer it didn't work, but at home on my home computer, it works perfectly. However there is one difference between the two systems. At home I'm using the RedBearLab nano with 32kb of ram. Hcitool lescan detects the COAP server with no problems. At work I was unable to detect the COAP server, perhaps indicating it was not running.

  • Hi!

    I'm using LEDE for TP-Link TL-WR1043ND v4, latest version, running:

    Linux version 4.4.71 ([email protected]) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3101-bce140e) ) #0 Wed Jun 7 19:24:41 2017
    

    I try to connect in every way, but can't.

    root@LEDE:~# echo "connect 00:46:5C:46:3D:11 1" > /sys/kernel/debug/bluetooth/6l
    owpan_control
    -ash: write error: Connection refused
    

    Here's leinfo:

    root@LEDE:~# hcitool leinfo 00:46:5C:46:3D:11
    Requesting information ...
            Handle: 18432 (0x4800)
            LMP Version: 4.2 (0x8) LMP Subversion: 0x6f
            Manufacturer: Nordic Semiconductor ASA (89)
            Features: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
    

    But!!!

    root@LEDE:~# hcitool lecc 00:46:5C:46:3D:11
    Connection handle 18432
    root@LEDE:~# hcitool con
    Connections:
    root@LEDE:~#
    

    Can you help me please?

Related