
Chapter 2 – AT Commands
Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360H) 32
IL Last Inquiry
This command repeats last inquiry.
Format: ATIL
Return Parameters: <BT Address>,<COD>
• An “OK” is returned immediately following this command. “DONE” will
appear after all devices have been found, or an inquiry timeout has
occurred while searching for the number of devices specified.
EXAMPLE MASTER:
TYPE: ATIL<cr>
REPLY: <cr_lf>OK<cr_lf>
<cr_lf>00A0961F2023,00000000<cr_lf>
<cr_lf>DONE<cr_lf>
OR
<cr_lf>ERROR<cr_lf>
Note: ATDI command string previously used is stored in flash memory.
Connect as Master Commands
This command is used to connect one module to another. Doing this will enable data transmission bi-
directionally. When performing this command, the reply is critical so as to understand where the connection
process is. A connection can take several seconds, so when making a connection, if it is not already connected,
an “OK” will be sent back immediately. Don’t mistake this for a connection being complete. A completed
connection will return “CONNECT,00,123456789012” some time after the command was sent – typically <2
seconds. PIO(2) will go high and stay high or the CD LED on the MTS2BTA will turn on and stay on while a
Bluetooth connection is established on Channel connection 00.
Note: If either the slave or the master of the connection issues a disconnect, the module will output
“DISCONNECT.” If a connection is lost unexpectedly, then “LINKLOSS” will be output.
DM Dial as Master
This command creates a connection using the Slave’s address and UUID profile code.
Format: ATDM,<BT Address>,<UUID>
Parameters:
• BT Address: Bluetooth Address, 12 hex characters MAX
• UUID: 4 digit, binary profile code (See Appendix C for more info)
Return Parameters: <BT Address> or <Channel Number><BT Address>
Point-to-Point Example:
TYPE: ATDM,123456789012,1101<cr>
REPLY: <cr_lf>OK<cr_lf>
<cr_lf>CONNECT,123456789012<cr_lf>
OR
<cr_lf>OK<cr_lf>
<cr_lf>PAIRED,123456789012<cr_lf> // if security is enabled
<cr_lf>CONNECT,123456789012<cr_lf>
OR
<cr_lf>NO ANSWER<cr_lf> // if device not present
Multi-Point Example:
TYPE: ATDM,123456789012,1101<cr>
REPLY: <cr_lf>OK<cr_lf>
<cr_lf>CONNECT,00,123456789012<cr_lf>
OR
<cr_lf>OK<cr_lf>
<cr_lf>PAIRED,123456789012<cr_lf> // if security is enabled
<cr_lf>CONNECT,00,123456789012<cr_lf>
OR
<cr_lf>NO ANSWER<cr_lf> // if device not present
Comentarios a estos manuales