AT syntax: AT+LEFIXPIN=fixpin
This command specifies a 6 digit SSP passkey, to be used for the security procedure. If this value has a length of 0 (no digit specified in command) AT+LEFIXPIN= a randomly generated PIN is used instead. To use this feature see also commands AT+LETIO, AT+BIOCAP and Hayes event SSPPIN.
For further information, see BlueMod+S42 Lua Software User Guide [2].
|
Parameter |
Description |
|
fixpin |
6 digits pin value (digit 0...9 only), default is zero length pin ”” |
AT syntax: AT+LEADINTMAX=<value>
This command configures the maximum advertising interval (in milliseconds) for a Bluetooth Low Energy Peripheral.
|
Value |
Description |
|
n=20…10240 |
Use maximum advertising interval of n ms |
|
1280 |
Use maximum advertising interval of 1280 ms |
|
|
Make sure that the value of AT+LEADINTMAX is higher or equal the value of AT+LEADINTMIN. |
+LEADINTMIN Minimum Advertising Interval
AT syntax: AT+LEADINTMIN=<value>
This command is not used in the BlueMod+S42/ADC/LUA. It is just provided for compatibility reasons. The used advertising interval is set by AT+LEADINTMAX parameter.
+LECONINTMAX Maximum Connection Interval
AT syntax: AT+LECONINTMAX=<value>
This command configures the maximum connection interval for a Bluetooth Low Energy connection. The unit is in 1.25 milliseconds timeslots.
|
Value |
Description |
|
n=6…3200 |
Use maximum connection interval of n * 1.25 ms |
|
32 |
Use maximum connection interval of 40 ms |
|
|
Make sure that the value of AT+LECONINTMAX is higher or equal the value of AT+LECONINTMIN. |
+LECONINTMIN Minimum Connection Interval
AT syntax: AT+LECONINTMIN=<value>
This command configures the minimum connection interval for a Bluetooth Low Energy connection. The unit is in 1.25 milliseconds timeslots.
|
Value |
Description |
|
n=6…3200 |
Use minimum connection interval of n * 1.25 ms |
|
16 |
Use minimum connection interval of 20 ms |
|
|
Make sure that the value of AT+LECONINTMAX is higher or equal the value of AT+LECONINTMIN. |
AT
syntax:
AT+LECONPARAM=connHnd,
[connIntMin],connIntMax,
slaveLat[,connTimeout]
AT+LECONPARAM?connHnd
The command “AT+LECONPARAM” used with “=” requests new connection parameters to be used for the connection defined by connHnd.
The command “AT+LECONPARAM” used with “?” shows the active connection parameters used by the connection defined by connHnd. A LECONPARAM event is generated containing the active connection parameters.
|
Parameter |
Description |
|
connHnd |
Set to zero |
|
connIntMin |
6…3200 minimum connection interval in steps of 1.25 ms (mandatory for peripheral) |
|
connIntMax |
6…3200 maximum connection interval in steps of 1.25 ms |
|
slaveLat |
0…499 connection intervals |
|
connTimeout |
Optional connection supervision timeout in steps of 10 ms. Will be calculated internally if not specified. Has to be calculated according to Bluetooth core spec. |
The new connection parameters are signaled by event LECONPARAM.
+LEPRIVACY Enable Link Layer Privacy
AT syntax: AT+LEPRIVACY=<value>
This command controls the signaling of LERESOLVED events and the use of Link Layer Privacy for new BLE connections.
|
Value |
Description |
|
0 |
No LERESOLVED events are signaled during pairing. The local device uses its public address for all Bluetooth roles. |
|
1 |
When pairing with a peer device that is using a resolvable random address a LERESOLVED event is signaled. |
|
2 |
Same as 1. The local device uses a random resolvable address for all Bluetooth roles. This address is changed every 15 minutes. |
+LESLAVELAT Slave Latency
AT syntax: AT+LESLAVELAT=<value>
This command configures the slave latency (in connection intervals) for a Bluetooth Low Energy connection.
|
Value |
Description |
|
n=0…499 |
Use a slave latency of n connection intervals |
|
0 |
Use no slave latency |
+LETIO Enable Terminal I/O Service
AT syntax: AT+LETIO=<value>
This command controls the Terminal I/O service. If set to 0 the Terminal I/O service is disabled.
|
Value |
Description |
|
0 |
Terminal I/O service disabled (no advertising, no characteristics) |
|
1 |
Terminal I/O service enabled, security is required with encryption (no MITM) |
|
2 |
Terminal I/O service enabled, no security (authentication or encryption) required |
|
3 |
Terminal I/O service enabled, authenticated pairing with encryption (MITM required) |
|
4 |
Terminal I/O service enabled, authenticated LE Secure connections pairing with encryption (MITM required, LE secure connections required) |
+LEADDATA Setup Advertise Data for Customized Advertising
AT syntax: AT+LEADDATA=<value1> .. <valuen>
This command is used to setup the advertise data for a customized advertising.
Valuek represents an octet in hexadecimal format, k <= 31.
The coding of the data is according to the Bluetooth 4.0 Core Specification / Vol. 3, Part C, Chapter 11 and 18 (Length/Type/Value coding) [4].
Example:
|
AT+LEADDATA=02010603020F18 |
Set flags + UUID of battery service |
+LEADE Enable Customized Advertising
AT syntax: AT+LEADE=<value>
This command controls the advertising behavior.
With AT+LEADE=0 only the build in Terminal I/O service is advertised.
With AT+LEADE=1 only the customized advertising value is advertised.
With AT+LEADE=3 the module stops all advertising. With disabled advertising the client (e.g. iPhone) is not able to discover the device or to connect to the device. This should only be done when the service is not in use to save battery power.
With disabled internal TIO due to AT+LETIO=0, the values 0 and 3 show the same behavior. There will be no advertising and no connection.
|
Value |
Description |
|
0 |
Customized advertising disabled, internal TIO advertising enabled |
|
1 |
Customized advertising enabled, internal TIO advertising disabled |
|
2 |
Reserved for future use |
|
3 |
Advertising off, customized advertising disabled, internal TIO advertising disabled |
+LEADPAR Setup Parameters for Customized Advertising
AT syntax: AT+LEADPAR=par1=<value1>[, .. [,parn=<valuen>]]
This command is used to setup parameters for a customized advertising.
|
parn |
valuen |
|
advtype
Optional Coding: decimal. |
Type of advertising: 0: undirected (default) 2: scannable 3: non-connectable |
This command is optional, if not submitted these defaults apply:
•advtype = 0 - advertising type “undirected”
|
|
The values for the minimum and maximum of the advertising interval may be set with the AT+LEADINTMIN and AT+LEADINTMAX commands. |
Example:
|
AT+LEADPAR=ADVTYPE=0 |
Set type of advertising “undirected” |
AT syntax: AT+LESCDATA=<value1> .. <valuen>
This command is used to setup the scan response data for a customized advertising.
Valuek represents an octet in hexadecimal format, k <= 31.
The coding of the data is according to the Bluetooth 4.0 Core Specification / Vol. 3, Part C, Chapter 11 and 18 (Length/Type/Value coding) [4].
Example:
|
AT+LESCDATA=03020F18 |
Set UUID of battery service |