PAN1322Application Note 26 Revision 1.2, 2013-12-18Design GuideeUniStone. In the Connected state LPM should be used jointly with having the link in Sniff mode. LPMcan also be used when the link is not in Sniff, but there is no power saving benefit since eUniStone hasto use the high precision clock in this state.Since Bluetooth is wireless, a link disconnection can occur due to radio disconnections, and such errorsneeds to be handled. In case of any error’s in any state there should be an error handling routine thattakes care of it and initializes eUniStone again. If the error occur while connected to another device it’srecommend to try to Disconnect the link before making a new initialization.5.1.3 Smart Phone compatibility requirementsTo design the complete accessory and the Host application and to make it compatible to Smart Phonesthe commands and responses in the SPP-AT specification [2] needs to be well understood andimplemented in the Host application. There are various compatibility requirements depending onSmart Phone which is covered in the remainder of this chapter. Be a connectable (device B) or connecting (device A) Make the right initialization/configuration Use correct security settings Use correct UUID Use CoD as needed Register correct services Need for certain licensees for iPhone compatibilityThe above are the main considerations and specific configuration which has impact on thecompatibility vs the three main Smart Phones. Also the actual phone App settings/functionality hasimpact on the compatibility.5.1.3.1 Serial Port Profile - device A and BThe device (Accessory or Smart Phone) that starts the Bluetooth Serial Port connection is a “device A”and the device that accept a connection is a device B, this is nomenclature from the SPP specification.eUniStone can be configured both as a device A and B. Normally a Serial Port Profile (SPP) accessory isconfigured as a device B, providing a service to e.g. a mobile phone.eUniStone as a connectable device B should be configured, by the Host application using the followingSPP-AT commands and their specific functionality [2]. AT+JSEC (Set security level, variable/fix PIN, Input and Output Capabilities)