
GATT Scan Data Service
enumerated?
Read
Number of
Stored Scans
Yes
Subscribe to
Stored Scan
Indices List
notification
DLP NIRscan
Nano returns the
list of stored
scans
Write to
Request Stored
Configuration
List
Subscribe to
Return Scan
Name
No
Read all stored scan
information?
List scans
Yes
No
Subscribe to
Return Scan
Type
notification
Subscribe to
Return Scan
Date/Time
notification
Subscribe to
Return Packet
Format Version
notification
Write to
Return Scan
Name
with parameter
scan index
Write to
Return Scan
Type
with parameter
scan index
Write to
Return Scan
Date/Time
with parameter
scan index
Write to
Return Packet
Format Version
with parameter
scan index
Bluetooth Client App Workflow
•
Subscribe to the notifications of the characteristics to return scan name, scan type, and scan date/time,
and to request packet format version.
•
Issue requests for scan name, scan type, scan date/time, and packet format version. Then wait for the
notifications to read scan name, scan type, scan date/time, and packet format version. Repeat the last
two steps for each stored scan.
To perform a scan, the Bluetooth Client must perform the following steps:
•
To display an existing scan:
–
If the scan information is not available, subscribe to the notification of the characteristic to return
serialized scan data structure.
–
Issue a request to read serialized scan data structure and wait for the notification to read the scan
data structure. The DLP Spectrum Library provides a routine to interpret this serialized data:
dlpspec_scan_interpret
.
•
To initiate a scan:
–
Subscribe to the notification of the characteristics to start scan.
–
Issue a request to start scan and wait for the notification that indicates the scan completed.
–
Subscribe to the notifications of the characteristics to return scan name, scan type, and scan
date/time, and to request packet format version.
–
Issue requests for scan name, scan type, scan date/time, and packet format version. Then wait for
the notifications to read scan name, scan type, scan date/time, and packet format version.
–
Subscribe to the notification of the characteristic to return serialized scan data structure.
–
Issue a request to read serialized scan data structure and wait for the notification to read the scan
data structure. The DLP Spectrum Library provides a routine to interpret this serialized data:
dlpspec_scan_interpret
.
•
To delete stored scan data:
–
Subscribe to the notification of the characteristic to clear scan.
–
Issue a request to clear scan and wait for the notification that indicates the clear scan completed.
and
show the workflow for this service.
Figure 5-11. GATT Scan Data Service Workflow
43
DLPU030B – June 2015 – Revised July 2015
DLP NIRscan Nano Software
Copyright © 2015, Texas Instruments Incorporated