PAN1322
Application Note
30
Revision 1.2, 2013-12-18
Design Guide
eUniStone
5.1.3.4
Registering multiple services and connection handling
eUniStone supports three registered services. To be able to find eUniStone with Android, Windows
phone and iPhone up to three SPP services need to be registered. The two first services in the below
example should cover all three phones. The first service, UUID with the Serial Port Profile, is registered
on port 0x01 and is used for Android phones and Windows phone. The second can be used by iPhone.
Also a third service with a random number UUID has been added. Random means here that the
Android Smart Phone App has that specific UUID and thereby will find and connect to a specific
accessory carrying that exact UUID. Which services to register in the accessory depends on what App
and Smart Phones shall be supported.
1.
AT+JRLS=32,13,0000110100001000800000805F9B34FB,Serial port 1,01,240704
2.
AT+JRLS=32,13,00000000DECAFADEDECADEAFDECACAFF,Serial port 2,02,240704
3.
AT+JRLS=32,13,D2CA6960F6A042308BE980CF63B25BAF,Serial port 3,03,240704
Figure 10. eUniStone with three registered services and possible connections to Smart Phones.
The figure above shows how the various Smart Phones are able to connect, or not connect, to an
accessory using eUniStone with three registered services. Observe that only one CoD is possible to
store and use, so the last registered will always be used.
When a remote device connects to eUniStone it will tell the host application which service that has
been connected to in the Connect Confirm Response. With the services used in the previous chapter
the following three successful Connect Confirm Response will be received.
1.
+RCCRCNF=500,0000110100001000800000805F9B34FB,0
2.
+RCCRCNF=500,00000000DECAFADEDECADEAFDECACAFF,0
3.
+RCCRCNF=500,D2CA6960F6A042308BE980CF63B25BAF,0
Service #1
Service #2
Service #3
Android App or Device with
random
UUID: #3
iPhone App with UUID: #2
Android, Windows 8 App or
other device with Serial Port
Profile UUID: #1