1 Reply Latest reply on Oct 26, 2014 5:26 PM by Michael_Regan

    next step: Bluetooth Low Energy and SensorTag - running!

    Fab-Lab.eu

      making great progress with BLE, check also the other posts, here a summary for TI Sensortag connected via BLE to Edison based on build 68

       

      rfkill unblock bluetooth

      hciconfig hci0 up


      vi /etc/opkg/base-feeds.conf

      add only following line, remove others


      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


      check if log shows success: "Configuring bluez5-dev"


      npm install -g async (required)

      npm install noble (required)

      npm install bleno (if needed, not required for SensorTag)

      npm install sensortag


      in sensortag directory you will find the test.js - run it - have FUN!!


      root@fablab:~/node_modules/sensortag# node test.js

      connect

      discoverServicesAndCharacteristics

      readDeviceName

        device name = TI BLE Sensor Tag

      readSystemId

        system id = bc:6a:29:0:0:c3:c3:9b

      readSerialNumber

        serial number = N.A.

      readFirmwareRevision

        firmware revision = 1.0 (Dec 10 2012)

      readHardwareRevision

        hardware revision = N.A.

      readSoftwareRevision

        software revision = N.A.

      readManufacturerName

        manufacturer name = Texas Instruments

      enableIrTemperature

      readIrTemperature

        object temperature = 23.1 °C

        ambient temperature = 24.3 °C

      disableAccelerometer

      enableAccelerometer

      readAccelerometer

        x = 0 G

        y = 0.1 G

        z = 1 G

      disableAccelerometer

      enableHumidity

      readHumidity

        temperature = 24.4 °C

        humidity = 57.6 %

      disableHumidity

      enableMagnetometer

      readMagnetometer

        x = -25.4 μT

        y = 26.7 μT

        z = 50.2 μT

      disableMagnetometer

      enableBarometricPressure

      readBarometricPressure

        pressure = -15.8 mBar

      disableBarometricPressure

      enableGyroscope

      readGyroscope

        x = 0.1 °/s

        y = -1.2 °/s

        z = -0.5 °/s

      disableGyroscope

      readSimpleRead