Gatt Scan Data Service Workflow - Texas Instruments DLP NIRscan User Manual

Table of Contents

Advertisement

www.ti.com
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.
Figure 5-11
and
Figure 5-12
GATT Scan Data Service
enumerated?
No
Write to
Return Scan
Return Scan
Type
with parameter
with parameter
scan index
scan index
Write to
Return Scan
Return Packet
Date/Time
Format Version
with parameter
with parameter
scan index
scan index
DLPU030B – June 2015 – Revised July 2015
Submit Documentation Feedback
show the workflow for this service.
Yes
Read
Number of
Stored Scans
Write to
Subscribe to
Return Packet
Name
Format Version
notification
Write to
Figure 5-11. GATT Scan Data Service Workflow
Copyright © 2015, Texas Instruments Incorporated
Subscribe to
Stored Scan
Indices List
notification
Subscribe to
Return Scan
Date/Time
notification
No
Yes
Read all stored scan
information?
Bluetooth Client App Workflow
Write to
DLP NIRscan
Request Stored
Nano returns the
Configuration
list of stored
List
scans
Subscribe to
Subscribe to
Return Scan
Return Scan
Type
Name
notification
List scans
DLP NIRscan Nano Software
43

Advertisement

Table of Contents
loading

Table of Contents