BLE component
Contributors:
Friedger Müffke
Jacob Birmingham
Description: Bluetooth Low Energy/Bluetooth Smart is a communication protocol base that allows to exchange data between two devices, usually a mobile devices and an accessory like fitness armband, smart watch, home automation sensor. The main selling point is that these accessories only need very little energy for communication.
(For more details see http://www.bluetooth.com/Pages/Bluetooth-Smart.aspx and
The accessories usually broadcast their presence continuously. Interested mobile devices can query the accessory for available services (e.g. sensor data) and connect to these services. The component allows to send data to and read data of a specific service of a specific accessory.
As a starting point the component could be specific to the following:
⦁ Broadcasting BLE with the custom 31 Byte advertisement (requires Android 5)
⦁ SensorTag (http://www.ti.com/sensortag)
⦁ Myo (https://www.thalmic.com/en/myo/),
⦁ RFDuino (http://www.rfduino.com/) or proximity sensing (as used in iBeacons).
Git Branch: ble_component
(https://github.com/friedger/appinventor-sources/tree/ble_component)github.com/friedger/appinventor-sources/tree/bl
GAE app:
Location:
⦁ Methods Broadcasting BLE: custom data in the 31 byte advertising payload., you can use a low cost
Bluetooth Low Energy peripheral
⦁ onPeripheralAdvertisingStart
⦁ onPeripheralAdvertisingStop
Methods SensorTag:
⦁ findSensorTags
⦁ onSensorTagsFound
⦁ connect
⦁ disconnect
⦁ onKeyPressed
⦁ onGyroscopeDataReceived
⦁ onAccelerometerDataReceived
⦁ onMagnetometerDataReceived
⦁ onTemperatureDataReceived
⦁ onHumidityDataReceived
⦁ onBarometerDataReceived
Methods Myo:
⦁ findMyos
⦁ onMyoFound
⦁ onPose
Dependencies:
Screenshot:
Use cases: BLE is an emerging technology that is used in the internet of things.
The keys on the Sensortag can be used to control action on the app and demonstrate the extension of applications to accessories.
Android phones with version 5 can be used to act as a BLE device (Broadcasting BLE).
댓글 없음:
댓글 쓰기