This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

BLE 6LoWPAN environment about bt0 ifconfig

Hello, I build a BLE 6LoWPAN environment on my raspberry pi with Kernel 3.18.3 and connect a BLE Dongle. The BLE Node is Arch BLE (www.seeedstudio.com/.../Arch-BLE-p-1998.html). and follow Nordic nRF51 IoT SDK But when I try to connect to my Arch BLE , echo "connect XX:XX:XX:XX:XX:XX 1" > /sys/kernel/debug/bluetooth/6lowpan_control , there had no any wrong but the bt0 interface not created. Do you know what’s wrong about this problem? thank you! image description

image description

and i use nano see 6lowpan_control is empty ...

 nano /sys/kernel/debug/bluetooth/6lowpan_control

image description

  • FormerMember
    0 FormerMember

    In addition to connecting to a device, there are a couple of other steps that you have to do, please take a look at this post.

    Which commands do you run in order to connect? Before connecting, you should run the following commands:

     # Mount debugfs file system
     sudo mount -t debugfs none /sys/kernel/debug
        
     sudo echo 35 > /sys/kernel/debug/bluetooth/6lowpan_psm
    
     sudo sysctl net.ipv6.conf.all.forwarding=1
    
     sudo echo "connect AA:BB:CC:DD:EE:FF 1" > /sys/kernel/debug/bluetooth/6lowpan_control
    
  • I have executed the above command ,but have same problem... not such bt0 ...please help me ...

  • Does your BLE usb dongle enumerate?

    Quickly check if "hciconfig" lists it up. You could also verify if it is BLE enabled by running "hcitool lescan". This should list all devices advertising nearby.

    If it enumerates, when you run the command "connect xx:xx:xx:xx:xx 1", verify if it connects to the device or not by checking "hcitool con".

    image description

    Alternativly, you could do a normal connect to the device by issuing "hcitool lecc xx:xx:xx:xx:xx:xx". This is just a litmus test for bluetooth connection (ipv6 connection is not established using this command).

  • Hi!

    Maybe i am wrong, but based on your previous screenshot and Glenn's one, it "almost" looks like you are trying to connect to his dongle (probably just same vendor)! So i believe that this is not coincidence but wrong MAC address. Please ensure that address comes from nRF51 device. You can call:hcitool lescan on your RaspberryPi for that purpose.

  • i try it. hcitool con have connect. but ifconfig not bt0 interface.

Related