Page 110 of 195
AT.s LE Command Set v5.1.1b
Copyright © 2002-2021 BlueRadios, Inc.
200 S. Wilcox St., Unit 158 • Castle Rock, CO 80104 • USA • 303-957-1003 •
8.10 Connection
▪
Extended Advertising
–
Whether the module can connect to a device using extended advertising PHYs or not
can be controlled through the Extended_Primary_Phys parameter.
Connect (ATDMLE)
DIAL AS MASTER (CONNECT)
Function:
This command initiates a connection to a slave device. If the command is an accepted an
“OK”
will be sent back immediately. Do not mistake this for a connection being complete. A completed
connection will return a CONNECT event sometime after the command was sent. PIO_2 will go active
when a BT5.0
connection is established.
Command Format:
ATDMLE,<Addr>,<BRSP_Mode>,<Extended_Primary_Phys>
Command Parameter(s):
▪
Addr:
Slave device address and address type
. Set to “WL” to use the White List instead of a
direct connection.
▪
BRSP_Mode:
0 = Command Mode
– The module will stay in command mode upon connecting.
1 = BRSP Data Mode
– The module will go into BRSP data mode upon connecting.
2 = BRSP Remote Command Mode
– The module will go into BRSP remote command mode
upon connecting.
▪
Extended_Primary_Phys:
Sets the PHYs to scan on the primary advertising channels when connecting to a device using
extended advertising packets. All PHYs will automatically be used for scanning on the
secondary advertising channels. The 2M PHY cannot be used for advertising on the primary
advertising channels so the 2M PHY is not allowed. When scanning for extended advertising
packets is enabled for the 1M PHY, a connection can be made to a device advertising using non-
extended advertising packets on the 1M PHY as well.
0 = The device to connect to is using non-extended advertising packets.
1 = The device to connect to is using extended advertising packets on the 1M PHY.
4 = The device to connect to is using extended advertising packets on the LR PHY.
5 = The module will scan for extended advertising packets on both the 1M and LR PHYs. If
this option is used the connect timing interval must be greater than or equal to twice the
window. If the settings in ATSDMTLE do not meet this requirement the interval will
automatically be increased but the setting will not be modified.
Example(s):
▪
The ATDMLE command is used to initiate an LE connection and once connected the CONNECT
event is sent. The connected device is an LE device, that is not paired with the module and has
an address of ECFE7E000001:0.
COMMAND:
ATDMLE,ECFE7E000001:0,0
<cr>
RESPONSE:
<cr_lf>
OK
<cr_lf>
EVENT:
<cr_lf>
CONNECT,0,2,0,ECFE7E000001:0
<cr_lf>
EVENT:
<cr_lf>
MTU,0,247
<cr_lf>