PAN1322
Application Note
35
Revision 1.2, 2013-12-18
Design Guide
2
1
2
0
Pass key is shown on phone. Bonding is accepted by pass key input on eUniStone
2
1
2
1
Pass key is shown by both eUniStone and phone. Bonding is accepted on both eUniStone
and phone.
1)
Inside an App the bonding and connection setup might not be possible with input, output set to 0, 0
or 1, 0. The reason for that is that the App is requesting a “secure RFCOMM socket” with man-in-the-
middle protection. To be able to use the input, output combinations 0, 0 and 1, 0 on eUniStone the
App should request an “insecure RFCOMM socket”.
When doing Secure Simple Pairing a bonding procedure is performed and link keys are made between
the two devices. Next time the devices connect, the connecting procedure will be easier and quicker,
since there are already valid link keys to be use by the two devices (Smart Phone and eUniStone).
With the above information and other supporting references it should be possible to in a fast and
secure manner develop a Bluetooth accessory, using eUniStone, and thus being compatible with
Android Smart Phone application.
5.2.1.3
Android market and Developing Apps for Android Smart Phones
To publish or download Android Apps the following sites are normally used.
and
https://play.google.com/apps/publish
. However, it is possible to
download Android Apps directly from other sources as well.
Developing applications for Android phones can be done using e.g. Eclipse [
]. Information on how
to download and install the Android SDK is found on
. The main
programing language used is Java, C and C++ can also be used. This chapter describes the most
common classes and methods for settings up and managing a Bluetooth connection in Android. More
about Android App development is available in the Demo Specification [
5.2.2
Windows phone
Developing Accessories supporting Bluetooth communication for Windows Phone Apps resembles very
much with the Android compatibility procedures. However, the random UUID concept is not used and
information and examples are available but rare in this community yet.
5.2.2.1
Registering service for Windows Phone
Windows phone will require that the UUID contains the Serial Port Profile to connect with Accessories
(eUniStone). Either the short 0x1101 or the long 0x0000110100001000800000805F9B34FB.
Registering the short: AT+JRLS=04,11,1101,Serial port,01,240704
Registering the long: AT+JRLS=32,11,0000110100001000800000805F9B34FB,Serial
port,01,240704