User's Manual

We could test the private services that user may define on RN4020. The command
procedures and their description could be found below:
SS,C0000001 //Enable private service support.
PZ // Clear the current private service and characteristics
PS,11223344556677889900AABBCCDDEEFF
// Set private service UUID to be 0x11223344556677889900AABBCCDDEEFF
PC,010203040506070809000A0B0C0D0E0F,02,05
// Add private characteristic 0x010203040506070809000A0B0C0D0E0F to
// current private service. The property of this characteristic is 0x02 (readable,
// check table 1) and has maximum data size 5 octets
PC,111213141516171819101A1B1C1D1E1F,18,02
// Add private characteristic 0x111213141516171819101A1B1C1D1E1F to
// current private service. The property of this characteristic is 0x18 (writable
// and could notify. Check table 1) and has maximum data size 2 octets.
U // Unbond to make Apple device discoverable
R,1 // Reboot RN4020 to make the changes effective
+ // Enable echo
LS // list the services on server side. Private service and
// characteristics could be found in the list
Following results should show up for server services:
180A
2A25,000B,V
2A27,000D,V
2A26,000F,V
2A28,0011,V
2A29,0013,V
2A50,0015,V
2A24,0017,V
180F
2A19,001A,V
2A19,001B,C
11223344556677889900AABBCCDDEEFF
010203040506070809000A0B0C0D0E0F,001E,02,05
111213141516171819101A1B1C1D1E1F,0020,08,02
111213141516171819101A1B1C1D1E1F,0021,10,02
END
Since we change the service settings, but LightBlue still caches the old settings, it is
very likely that Apple device needs a complete power cycle to show the new
configuration. Press and hold POWER and HOME button of iOS devices for a few
seconds to perform a complete power down. Press POWER button to power it on
again. After power cycling and launch LightBlue app, the private service and
characteristics could be seen. Figure 7 shows the LightBlue that discovered private
services that we just defined.