User's Manual

Notification or indication service for the corresponding characteristic has been
started by the remote device
Example: SUW,2A19,64 // Set local value of characteristic Battery
// Level with value handle 0x001A to be
// 100%. If notification service has been
// started on Battery Level before, local
// device will notify the new value of
// 100% to the remote peer device
3.3.4 Private Service Configuration Commands
Bluetooth SIG defines public profiles, services and characteristics to ensure
interoperability between devices. On the other hand, users could define private
service to target their special needs in application. RN4020 provides the capability
for the user to define their own private service/characteristics as server role as well
as working with private service/characteristics as client role.
All Bluetooth adopted public service/characteristics have 16-bit short UUID. On the
other hand, all private service/characteristics have 128-bit long UUID. Once private
service is enabled (see section 3.2.1.13 and 3.2.1.2 for command “SS” and its bitmap
parameter), the private service/characteristic commands will be displayed in help
page (see command “H”).
All private service/characteristic configuration commands starts with letter “P”. The
main function of those commands is to define private service and its private
characteristics. All definitions will be saved in NVM on RN4020, which could the
restored after power cycle.
3.3.4.1 PC
Command “PC” sets private characteristic. This command must be called after
private service UUID has been set (Check section 3.3.4.2 for command “PS”). Calling
this command could add one private characteristic to the private service at a time.
Calling this command later will not overwrite the previous settings, but instead add
another private characteristic. This command is only effective if private service bit is
set (see section 3.2.1.13 and 3.2.1.2 for command “SS” and its bitmap parameter).
The new settings won’t take effect until the power cycle.
RN4020 supports up to 15 private characteristics. Private characteristics with
property of notification or indication occupy two slots, where those characteristics
without property of notification or indication occupy one slot.