5.3.4.6 Connect Device with Extended Parameter (CE,<0,1>,<address>…)
Format: CE,<0,1>,<address>,<hex8>,<hex16>,<hex16>, <hex16>,<hex16>,<hex16>,<hex16>
The CE
command is allowed to initiate a connection to a remote device with extended parameters. The following table provides details about the parameters.
The connection parameters must adhere to the following rules.
- Latency <= 30
Parameter | Range | Description |
---|---|---|
Address Type | 0 or 1 | The address type – ‘0 ’ for public address and ‘1 ’ for private random address |
Address | — | The 6-byte Bluetooth® device address |
PHY options | — | The bitmap of supported PHYs described in Table 5-18. This setting is to set preferred PHYs to create a connection. The following 6 parameters are a set for each PHY. For example, there are 12 parameters followed by this setting if it enables 1M and 2M PHYs. When there are multiple PHYs supported, the order of following a 6-parameter set is for 1M, 2M, then, codec PHY. |
Scan interval | 0x0004 or 0xFFFF | The 16-bit hex value for the scan interval (Unit – 0.625 ms) |
Scan window | 0x0004 or 0xFFFF | The 16-bit hex value for the scan window (Unit – 0.625 ms) The scan window must be less than or equal to the scan interval. |
Minimum connection interval | 0x0006 or 0x0C80 | The 16-bit hex value for the minimum connection interval (Unit – 1.25 ms) |
Maximum connection interval | 0x0006 or 0x0C80 | The 16-bit hex value for the maximum connection interval (Unit – 1.25 ms) |
Latency | 0x0000 or 0x01F3 | The 16-bit hex value for the maximum number of consecutive connection events The peripheral device is not required to communicate with the central device. |
Supervision timeout | 0x000A-0x0C80 | The 16-bit hex value for the maximum time allowed between raw communications before the link is considered lost (Unit – 10 ms) |
PHYs bitmap (HEX) | Description |
---|---|
01 | 1M PHY |
02 | 2M PHY |
04 | Coded PHY |
Example: | CE,0,3481F4A8436A,01,003C,001E,0010,0010,0000,0048 | // Set 1M PHY and related settings to connect to the public address 3481F4A8436A |
Response: | Trying | // Start connecting |
%CONNECT% | // Status string | |
Err | // Syntax error or invalid parameter | |
%ERR_CONN% | // Status string | |
Note: The PDS does not store the parameters of this command and does not affect other commands initiating a connection. |