Android Bluetooth stack and Low Energy: Difference between revisions

From Variscite Wiki
Line 10: Line 10:
===Click on the device and click on pair===
===Click on the device and click on pair===
===The prompt may ask you to enter the PIN, or may try with default pin 0000/1111===
===The prompt may ask you to enter the PIN, or may try with default pin 0000/1111===
Note: For pin, you must refer to the device manual trying to connect.  
*Note: For pin, you must refer to the device manual trying to connect.


==Using Device as Bluetooth client==
==Using Device as Bluetooth client==

Revision as of 23:37, 30 November 2018

Android Bluetooth Stack

We recommend you go through https://developer.android.com/guide/topics/connectivity/bluetooth-le to understand the software stack.
For more details: https://www.youtube.com/watch?v=2fZThdNbHcQ
VAR-SOM-MX6, DART-MX6 and VAR-SOM-SOLO/Dual are capable of supporting BLE 4.0.

Paring Device

Make sure your device you want to pair is discoverable

Turn on the Bluetooth from the Android Settings

Make sure you can see your device(s) in the discovered list

Click on the device and click on pair

The prompt may ask you to enter the PIN, or may try with default pin 0000/1111

  • Note: For pin, you must refer to the device manual trying to connect.

Using Device as Bluetooth client

Using Device as Bluetooth Server