Enabling BLE (Bluetooth Low Energy aka Smart) and Bluetooth on Edison

Version 2

    During last weeks I found various way to get BLE running on Edison this is the easiest way to start:

     

    Make sure you are on build 68 or later. Probe first if Bluetooth stack is healthy:

    rfkill unblock bluetooth
    hciconfig hci0 up
    hcitool lescan
    LE Scan …
    63:58:79:E0:17:7C (unknown) << a BLE device was found!
    Ctrl+C Stop Scan

    optional you can try:

     

    bluetoothctl
    [bluetooth]# scan on  << starts scan of Bluetooth devices 2.0 up to 4.0 BLE devices!

    [NEW] Device 56:F1:16:6B:51:A8 RSSI: -55

    exit

     

    Now install the blueZ headers with coming with the blues-dev package, therefore we do need to upgrade from AxelT's repro

    (not any official repo, anyway great work done by AxelT!!)


    vi /etc/opkg/base-feeds.conf (insert only following lines)

    src/gz all http://repo.opkg.net/edison/repo/all
    src/gz edison http://repo.opkg.net/edison/repo/edison
    src/gz core2-32 http://repo.opkg.net/edison/repo/core2-32

     

    opkg update
    opkg install bluez5-dev

    HINT: empty again /etc/opkg/base-feeds.conf ...


    npm install -g async
    npm install noble      
        node advertisement-discovery.js
    npm install bleno
        node test-ibeacon.js
    npm install sensortag
        node test.js

    (example js are found in the example directories per package!)

     

    npm install cylon-intel-iot

    optional: npm install cylon-firmata

    optional: npm install cylon-gpio

    optional: npm install cylon-i2c
    npm install cylon-ble

    chance e.g. uuid: ‘0007807f5bc0′ to your BLE device in device-information.js

    root@fablab:~/node_modules/cylon-ble/examples# node device-information.js

    I, [2014-11-04T21:20:46.163Z]  INFO — : Initializing connections.
    I, [2014-11-04T21:20:46.178Z]  INFO — : Initializing connection ‘bluetooth’.
    D, [2014-11-04T21:20:46.182Z] DEBUG — : Loading adaptor ‘ble’.
    I, [2014-11-04T21:20:46.452Z]  INFO — : Initializing devices.
    I, [2014-11-04T21:20:46.453Z]  INFO — : Initializing device ‘deviceInfo’.
    D, [2014-11-04T21:20:46.456Z] DEBUG — : Loading driver ‘ble-device-information’.
    I, [2014-11-04T21:20:46.465Z]  INFO — : Starting connections.
    I, [2014-11-04T21:20:46.470Z]  INFO — : Connecting to ‘bluetooth’.
    I, [2014-11-04T21:20:47.322Z]  INFO — : Starting devices.
    I, [2014-11-04T21:20:47.323Z]  INFO — : Starting device ‘deviceInfo’.
    I, [2014-11-04T21:20:47.328Z]  INFO — : Working.
    Data: www.Fab-Lab.eu

    Created by www.Fab-Lab.eu, check for updates www.Fab-Lab.eu/Edison, please forgive typos made ;-)