Page 143 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 •
EVENT:
<cr_lf>
GATT_DPS,0,14,24,DIS
<cr_lf>
EVENT:
<cr_lf>
GATT_DPS,0,25,28,BAS
<cr_lf>
EVENT:
<cr_lf>
GATT_DPS,0,29,32,DFU
<cr_lf>
EVENT:
<cr_lf>
GATT_DPS,0,33,65535,BRSP
<cr_lf>
EVENT:
<cr_lf>
GATT_DONE,0,0,0
<cr_lf>
Discover Primary Services by UUID (ATGDPSU)
GATT DISCOVER PRIMARY SERVICES BY UUID
Function:
This command is used to discover a specific primary service on a server.
Command Format:
ATGDPSU,<Conn_Handle>,<UUID>
Command Parameter(s):
▪
Conn_Handle:
Connection handle.
▪
UUID:
UUID of the service to discover. [16-bit UUID = 4 chars, 128-bit UUID = 32 chars]
Example(s):
1. ATGDPSU is issued for connection handle 0 and the GAP Service. The service is found with a
start handle of 1 and an end handle of 9.
COMMAND:
ATGDPSU,0,1800
<cr>
RESPONSE:
<cr_lf>
OK
<cr_lf>
EVENT:
<cr_lf>
GATT_DPS,0,1,9,1800
<cr_lf>
EVENT:
<cr_lf>
GATT_DONE,0,0,0
<cr_lf>
2. ATGDPSU is issued for connection handle 0 and the BRSP Service. The service is found with a
start handle of 15 and an end handle of 65535, since it the last service in the device’s GATT table.
COMMAND:
ATGDPSU,0,DA2B84F1627948DEBDC0AFBEA0226079
<cr>
RESPONSE:
<cr_lf>
OK
<cr_lf>
EVENT:
<cr_lf>
GATT_DPS,0,33,65535,DA2B84F1627948DEBDC0AFBEA0226079
<cr_lf>
EVENT:
<cr_lf>
GATT_DONE,0,0,0
<cr_lf>