
PAN1322
Application Note
27
Revision 1.2, 2013-12-18
Design Guide
AT+JSLN (Set a local name so that the remote device can find when doing a device
discovery or request when connected)
AT+JRLS (Register up to three services, UUID and CoD)
AT+JDIS (Enable Page and/or Inquiry Scan)
AT+JAAC (Set auto accept or host accept of incoming connection)
eUniStone as a connecting device A should be configured, by the Host application with the following
SPP-AT commands.
AT+JSEC (Set security level, variable/fix PIN, Input and Output Capabilities)
AT+JSLN (Set a local name so that the remote device can request it when
connected)
AT+JCCR (Create connection to a known remote device service)
When creating connections it is necessary to find the remote devices and services first - use then
device discovery (AT+JDDS) and service search (AT+JSDS).
The AT+JSEC command may only be sent after power up, a HW or SW reset. It shall therefore always
be the first sent command. Local name and services shall always be written for a device B since it will
be easier for the connecting device to find it. It’s also recommended to do such settings on a device A
since after a device A has connected to a remote device the remote device might do a remote name
request and add the name to its device list.
5.1.3.2
Security settings – Input & Output Capabilities
Security settings are important and can seem complex to use. It is however necessary to configure,
and it has impact on how the connection set-up and bonding may work with Smart Phones. When the
security command (AT+JSEC) is used the variable/fix PIN, Input and Output Capabilities are set.
AT+JSEC=<security_mode>,<PIN_type>,<length_PIN_code>,<PIN_code>,<Input_capability>,<Output_capability>
Example: AT+JSEC=4,1,04,1111,2,1
Security mode 4 is the supported mode by eUniStone since it supports Secure Simple Pairing. Variable
PIN is normally used when the device have Input and Output Capabilities. Devices that are missing
Input and/or Output capabilities can use a fixed PIN that is set with the security command. The Input
and Output capabilities are also set. The Input and Output capabilities shall be set according to the
capabilities available in the accessory.