mozilla / project_haiku.iot

Mozilla/Connected Devices: Project Haiku
Mozilla Public License 2.0
21 stars 11 forks source link

Bluetooth LE connection to Smart Phone #41

Closed punamdahiya closed 8 years ago

punamdahiya commented 8 years ago

Use BLE Nano development board with Nordic nRF51822 BLE peripheral and central module to send and receive data from SmartPhone app.

punamdahiya commented 8 years ago

Connect BLE central (smartphone) and BLE Nano using Arduino BLEPeripheral library https://github.com/sandeepmistry/arduino-BLEPeripheral and nRF51822-Arduino library that add support for Arduino IDE to allow compiling nRF51822 firmware

punamdahiya commented 8 years ago

Use ble.scan(services, seconds, success, failure); https://github.com/don/cordova-plugin-ble-central#scan

to scan for BLE peripherals. Pass service_uuid: FFF0 of the BLEBuzzService to ble.scan function. This scans only those BLE peripheral devices that are advertising the BLEBuzzService.

punamdahiya commented 8 years ago

Updated the service and characteristics UUID - 128 bit to work with Android cordova app checked in github below https://github.com/mozilla/project_haiku.iot/tree/master/Bluetooth/nRF51822/PhoneGap/BLE-Buzzy-Pixel

punamdahiya commented 8 years ago

Android app above tested with BLE device to send and receive data for two way communication. Opened Issue #62 for slow scanning.