
Chapter 2 – AT Commands
Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360H) 31
Read Memory Locations (S-Registers) Commands
SR21 Read PIO Level
This command reads the PIO logic level.
Format: ATSR21,<PIO#>
Parameters PIO#: 2-7
Return Parameters: <Logic Level>
EXAMPLE:
Type: ATSR21,3<cr>
Reply: <cr_lf>OK<cr_lf>
<cr_lf>1 <cr_lf>
Set Using: ATSW23
Inquiry Commands
The inquiry command is used to discover all Bluetooth radios (within range) that match a certain Class of Device
(COD). If the COD is not known it is best to use 00000000 which allows discovery of all devices. You can not be
in the default slave mode and perform an inquiry command. Only a Master or a Radio in idle mode can perform
an inquiry.
DI Inquire
This command is used to discover other Bluetooth devices.
Format: ATDI,<Max Radios to Discover>,<COD>
Parameters:
• Max Radios to Discover: 0-60,000
• COD: Exactly 8, 16-bit hex values (0 thru F) based on the Bluetooth COD
specification names published and maintained by the Bluetooth SIG.
Note: With the minor filter enabled using ATSW24, inquiry results are
filtered by the lower 4 bytes of the COD. If the minor filter is disabled all
devices are found.
Return Parameters: <BT Address>,<COD> (Repeated by number of radios found)
• 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: ATDI,1,00000000<cr>
REPLY: <cr_lf>OK<cr_lf>
<cr_lf>00A0961F2023,00000000<cr_lf>
<cr_lf>DONE<cr_lf>
OR
<cr_lf>ERROR<cr_lf>
Notes:
• Recommend executing an ATUCL command to put the radio in idle mode prior to
executing an Inquiry command. See Utilities section.
• Due to a CSR bug, there is no guarantee that the radios returned by an inquiry will all
be unique – duplicates can occur. This seems to happen if the inquiry doesn’t discover
the maximum number of radios. After discovering all of the radios it can, it will then
start to return duplicate radios that it has already discovered until the maximum is
reached or the inquiry times out.
• The request for friendly name is a separate message request in the new CSR firmware
– see ATRRN.
Comentarios a estos manuales