Texas Instruments DLP NIRscan Скачать руководство пользователя страница 42

GATT Scan Configuration 

Service enumerated?

Read 

Number of 

Stored 

Configurations

Yes

Subscribe to 

Return Stored 

Configurations 

List 

notification

 

DLP NIRscan 

Nano returns the 

number of stored 

scan 

configurations 

Write to 

Request Stored 

Configuration 

List

Subscribe to 

Return Scan 

Configuration 

Data

notification

DLP NIRscan 

Nano returns 

stored 

configurations

Write scan 

configuration ID 

to 

Return Scan 

Configuration 

Data

Deserialize data 

using DLP Spectrum 

Library

dlpspec_deserialize

DLP NIRscan 

Nano returns 

requested scan 
configuration in 

serialized data 

format

No

Read all stored scan 

configurations?

Write  to 

Active Scan 

Configuration

 

t

o set an active 

configuration for 

future scans

Yes

No

Bluetooth Client App Workflow

www.ti.com

5.3.2.4

Bluetooth Client GATT Scan Configuration Service

Once the GATT Scan Configuration Service is enumerated, the Bluetooth Client can prompt DLP NIRscan
Nano to download stored scan configurations. These parameters must to be downloaded whenever a new
DLP NIRscan Nano is connected to a Bluetooth Client and before a scan is initiated. To read the stored
scan configuration, the Bluetooth Client must perform the following steps:

Read the number of stored configurations.

Subscribe to the notification of the characteristic that returns stored configuration list.

Issue a request for stored configuration list and wait for the notification to read the stored configuration
list.

Subscribe to the notification of the characteristic that returns scan configuration data.

Read each scan configuration data by writing the scan configuration ID to the characteristic that
returns the scan configuration data, wait for the notification, and then read the serialized scan
configuration data returned. The DLP Spectrum Library provides a routine to interpret this serialized
data:

dlpspec_deserialize

. Repeat this step for each stored scan configuration.

Set the active scan configuration by writing to the scan configuration ID to the active scan configuration
characteristic.

Figure 5-10

depicts the workflow for this service.

Figure 5-10. GATT Scan Configuration Service Workflow

5.3.2.5

Bluetooth Client GATT Scan Data Service

Once the GATT Scan Data Service is enumerated, the Bluetooth Client can prompt DLP NIRscan Nano to
download stored scan data or perform a scan. To read the stored scan data, the Bluetooth Client must
perform the following steps:

Read the number of stored scans.

Subscribe to the notification of the characteristic that returns stored scan indices list.

Issue a request to read stored configuration list, wait for the notification to read the stored configuration
list.

42

DLP NIRscan Nano Software

DLPU030B – June 2015 – Revised July 2015

Submit Documentation Feedback

Copyright © 2015, Texas Instruments Incorporated

Содержание DLP NIRscan

Страница 1: ...DLP NIRscan Nano EVM User s Guide User s Guide Literature Number DLPU030B June 2015 Revised July 2015...

Страница 2: ...5 1 2 TivaWare 36 5 1 3 USB Driver 36 5 1 4 SDSPI Driver 36 5 1 5 Bluetopia Stack 36 5 1 6 DLP Spectrum Library 37 5 1 7 DLP Spectrum Library Workflow 37 5 2 Software System Overview 39 5 3 Bluetooth...

Страница 3: ...ery Connector 55 F 2 Battery Thermistor Connector 55 F 3 Expansion Connector 55 F 4 JTAG Connector 56 F 5 Trigger Connector 56 G DLP NIRscan Nano Command Description 58 G 1 Command Handler Supported C...

Страница 4: ...Connections 33 4 3 DLP NIRscan Nano Tiva Connections to DLPC150 Controller Board 34 5 1 DLP NIRscan Nano Software Architecture 35 5 2 DLP Spectrum Library View Configuration Information Workflow 37 5...

Страница 5: ...r Tiva J3 56 F 4 ARM Cortex 10 pin JTAG Connector Tiva J4 56 F 5 Trigger Connector DLPC150 J500 57 G 1 DLP NIRscan Nano Supported Commands 58 I 1 Device Information Service DIS 66 I 2 Battery Service...

Страница 6: ...e 1 DLP NIRscan Nano Evaluation Module NIRscan Tiva TivaWare SimpleLink Code Composer Studio are trademarks of Texas Instruments DLP is a registered trademark of Texas Instruments ARM is a registered...

Страница 7: ...U297 TivaWare peripheral driver library TivaWare Peripheral Driver Library User s Guide SPMU298 TI RTOS 2 10 TI RTOS 2 10 User s Guide SPRUHD4 CC2564MODN data sheet CC2564MODN Bluetooth Host Controlle...

Страница 8: ...can Nano EVM The DLP NIRscan Nano EVM is a complete NIR spectrometer EVM using DLP technology The EVM package includes Near infrared optomechanical spectrometer engine optimized for 900 to 1700 nm wav...

Страница 9: ...verter ADC with SPI TMP006 thermopile sensor for detector and ambient temperature measurement 1 mm non cooled Hamamatsu G12180 010A InGaAs photodiode DMD board DLP2010NIR near infrared digital micromi...

Страница 10: ...to the 17 position diverts the unselected wavelengths away from the detector optical path so as not to interfere with the selected wavelength measurement The DLP NIRscan Nano reflectance module opera...

Страница 11: ...ations of the DLP NIRscan Nano EVM Table 1 1 DLP NIRscan Nano EVM Specifications PARAMETER MIN TYP MAX UNIT Supported wavelengths 900 1700 nm Optical resolution 10 12 nm Lamp power 1 4 W 11 DLPU030B J...

Страница 12: ...SD card connector allows additional storage for scan data when the system is not connected to a PC nor iOS device HDC1000 humidity and temperature sensor Measures the humidity and temperature of the s...

Страница 13: ...ght control The Tiva microprocessor in conjunction with the DLPC150 controls DLPC150 DLP individual DLP2010NIR micromirrors to reflect specific wavelengths of light to a single point InGaAs detector D...

Страница 14: ...erface to J3 external device UART4 is used as Tiva s console output for debugging Microcontroller board information JTAG connector ARM Cortex 10 pin emulation XDS100 XDS200 or J4 XDS560 connection J6...

Страница 15: ...om What is the DLP NIRscan Nano EVM Figure 1 5 DLP NIRscan Connectors Front View 15 DLPU030B June 2015 Revised July 2015 DLP NIRscan Nano Overview Submit Documentation Feedback Copyright 2015 Texas In...

Страница 16: ...duration of the scan When pressed held for more than 3 seconds and then released the Bluetooth subsystem powers up and advertises a connection While a Bluetooth Low Energy connection is advertised th...

Страница 17: ...N Indicates system is powered Green Pulse on and off once a second and active Bluetooth circuits are active ON and advertizing Blue Bluetooth Low Energy Pulse on and off once a second connection has b...

Страница 18: ...is inserted into the DLP NIRscan NanoJ1 micro USB connector see Figure 1 4 the system powers up from the PC s USB VBUS 5 V supply and the power on LED pulses to indicate the system is operational and...

Страница 19: ...e the blue LED turns on and the DLP NIRscan Nano advertises its presence through Bluetooth 3 Run the iOS App and click the Scan button at the top right of the screen This will establish a connection w...

Страница 20: ...figurations and parameters Utilities Changes the bottom portion of the GUI to display sensor information and to synchronize data and time with PC ADC PGA settings and firmware upgrades Connected Statu...

Страница 21: ...struments DLP brochures white papers and application notes on spectroscopy with DLP technology For support users can search TI s E2E Community The TI E2E icon includes a link to direct users to the Te...

Страница 22: ...an 8 nm and corresponds to the desired smallest wavelength content that you want to resolve in a scan The DLP NIRscan Nano optical resolution is 10 nm so values less than 10 nm result in lower signal...

Страница 23: ...the PC The top right section displays the scan configurations saved on the DLP NIRscan Nano EVM The bottom section displays the scan configuration parameters of the selected PC or DLP NIRscan Nano EV...

Страница 24: ...ww ti com Figure 3 3 DLP NIRscanNano GUI Scan Configuration Dialog 24 Operating the DLP NIRscan Nano EVM DLPU030B June 2015 Revised July 2015 Submit Documentation Feedback Copyright 2015 Texas Instrum...

Страница 25: ...appears under the Select Scan drop down menu as shown in Figure 3 4 Figure 3 4 DLP NIRscan Nano GUI Scan Select Menu 25 DLPU030B June 2015 Revised July 2015 Operating the DLP NIRscan Nano EVM Submit...

Страница 26: ...e standard Then click the Set as Reference button After these steps scanning any sample will allow the plot of absorbance as shown in Figure 3 5 Figure 3 5 Absorbance Spectrum of Aspirin 26 Operating...

Страница 27: ...e stored with the name of the scan configuration appended with the date and time of the scan To plot a file as shown in Figure 3 6 select one of the files and click the Display Spectrum button Click t...

Страница 28: ...the microSD card and will report the number of scans detected after No of unread scan Data as shown in Figure 3 7 On the Scan tab click the Scans button in the upper right corner to display the previ...

Страница 29: ...HDC1000 in the Microcontroller Board Tiva internal temperature read by the Tiva internal sensor in the microcontroller board Tiva s hibernation module date and time Pressing the Sync Data Time button...

Страница 30: ...ware_1 0 0 Binaries NIRscanNano bin Then click the Update TIVA Firmware button The firmware will be flashed on the Tiva internal Flash while the progress bar indicates the update process Detector boar...

Страница 31: ...d 10 k NTC thermistor Manufacturer Murata Part number NXRT15XH103FA1B040 Digi Key part number 490 7167 ND Figure 4 1 shows a block diagram of the power circuits The main power input is the external ba...

Страница 32: ...reference voltage REF5025 used in the detector board A second TPS81256 in the DLP controller board regulates the 5 V supply for the lamp driver OPA567 and INA213 The lamp driver drives two parallel l...

Страница 33: ...O RESETZ PF5 O PH7 O PL4 O WAKEz I PQ3 I 10K PD4 AIN7 PD5 O Battery Monitor BAT_V_SW SENSE_EN Bluetooth Scan Scan BT Wake Reset Expansion Header PA2 SSI0CLK U4RX PA3 SSI0FSS U4TX PA4 SSI0DAT0 PA5 SSI0...

Страница 34: ...OUT CMP_PWM CMP_OUT GPIO10 RC_CHARGE PP0 I PP1 I PD3 O TRIG_OUT_2 TRIG_OUT_ TRIG_IN_1 Photodiode LS PJ7_O PROJ_ON LS PLL_REFCLK 24MHz SENS2 PROJ_ON RESETZ HOST_IRQ PQ7 I RESETZ LS PQ6 I Logic PE0 O PE...

Страница 35: ...a Stack handles Bluetooth communications DLP Spectrum Library handles pattern generation and data transformation from raw scan data to a wavelength spectrum A command handler interprets commands from...

Страница 36: ...r commands and data transfer The DLP NIRscan Nano supports Bluetooth version 4 0 specification When Bluetooth subsystem is activated the DLP NIRscan Nano broadcasts its availability while a smartphone...

Страница 37: ...or stored on the NIRscan Nano to perform a scan This scan configuration is created on the NIRscanNanoGUI and transferred to the system in serialized fashion The system s Tiva processor deserializes th...

Страница 38: ...h scan data Figure 5 3 DLP Spectrum Library Decode Scan Results Workflow 5 1 7 3 Compute Reference Workflow The DLP Spectrum Library routine to compute reference is dlp_scan_interpReference This routi...

Страница 39: ...streams 24 patterns per frame to the DLPC150 The following tasks handle specific portions of the system USB driver This task is part of the TivaWare USB driver and handles all USB HID transactions Th...

Страница 40: ...Sempahore Tasks Interrupt Handler Hardware CC2564MODN UART Bluetooth Client App Workflow www ti com Idle Task Manages the blinking of the LED and UART console transmissions to the expansion connector...

Страница 41: ...the temperature and humidity threshold notification The Bluetooth Client can also read a device and error status and then subscribe to the device and error status notifications 5 3 2 2 Bluetooth Clien...

Страница 42: ...ed configuration list Issue a request for stored configuration list and wait for the notification to read the stored configuration list Subscribe to the notification of the characteristic that returns...

Страница 43: ...an 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 ser...

Страница 44: ...ime 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 Dat...

Страница 45: ...was established Then the reference and calibration data is downloaded from the EVM When that is completed the Start Scan button will be activated Figure 6 1 NanoScan Main Screen Pressing the Configure...

Страница 46: ...an elect to also save the scan data on the microSD card and can choose a default for future scans from the stored scan configurations as shown in Figure 6 2 Pressing the Start Scan button will start a...

Страница 47: ...App Figure 6 3 shows an example plot of absorbance for sugar Figure 6 3 NanoScan Scan Plot Screen 47 DLPU030B June 2015 Revised July 2015 iOS App Submit Documentation Feedback Copyright 2015 Texas In...

Страница 48: ...ult directory C ti DLPNIRscanNanoSoftware_1 0 0 Sources This installer includes the TI RTOS 2 10 1 38 and the Device Firmware Update DFU drivers for Tiva The DFU drivers allow updating the Tiva firmwa...

Страница 49: ...pported by XDS100 XDS200 and XDS560 Debug Probes from TI Spectrum Digital or Blackhawk For more information on supported Debug Probes visit the Tiva Tools Software page For emulation information visit...

Страница 50: ...search box 3 Update TI ARM Compiler if offered to update it To update it press the select button beneath the TI ARM Compiler icon and then click on the install software icon to the left of the search...

Страница 51: ...1 0 12573c usblib and then click OK 4 Compile this newly added usblib project by select Clean from the Project Menu Ensure that usblib project is checked and select Build only the selected project and...

Страница 52: ...roject and then click OK C 3 Project Settings The compilation of the Tiva sources and libraries requires the following project settings by right clicking on On Project Browser select Mobile Spectrosco...

Страница 53: ...C toolchain in the Windows PC with their respective binaries added to the Windows PATH environment variable D 1 2 Compiling NIRscan Nano GUI After compiling the DLP Spectrum Library compile the NIRsca...

Страница 54: ...Active Scan Configuration Number and Index Scan Configuration Data Structure Version Scan Configurations See Table E 1 for the address size and content of these information in Tive EEPROM Table E 1 Ti...

Страница 55: ...connection F 2 Battery Thermistor Connector The battery thermistor connector J7 of the microprocessor board requires the following 2 pin 1 mm connector part numbers JST part number SHR 02V S B Digi Ke...

Страница 56: ...ortex 10 pin JTAG Connector Tiva J4 DESCRIPTION PIN SUPPLY RANGE Power 1 3 3 V TMS 2 3 3 V Ground 3 Ground TCK 4 3 3 V Ground 5 Ground TDO 6 3 3 V Key no connect 7 TDI 8 3 3 V Ground 9 Ground RESETz 1...

Страница 57: ...V TRIG_IN_1 2 3 3 V Ground 3 Ground DLPC150 GPIO_17 4 3 3 V DLPC150 GPIO_18 5 3 3 V Ground 6 Ground TRIG_OUT_2 frame trigger 7 3 3 V TRIG_OUT_1 pattern trigger 8 3 3 V Ground 9 Ground 57 DLPU030B June...

Страница 58: ...nsor test 0x01 0x06 READ Humidity sensor test 0x01 0x07 WRITE Bluetooth test 0x01 0x08 READ microSD Card test 0x01 0x09 READ LED test 0x01 0x0B READ Read button test 0x01 0x0C WRITE Write button test...

Страница 59: ...x43484116 444C 5020 4E49 52204E616E6F Erase all stored scan WRITE 0x02 0x21 configurations 0x43484113 444C Read number of stored scan READ 0x02 0x22 5020 4E49 configurations 52204E616E6F GATT Scan 0x5...

Страница 60: ...3 0x180A 0x2A25 Service Table I 1 0x4348411C 444C WRITE Set scan name tag 0x02 0x34 5020 4E49 GATT Scan Data 0x53455206 444C 52204E616E6F Information Service 5020 4E49 0x4348411E 444C Table I 7 52204E...

Страница 61: ...4E49 Table I 4 52204E616E6F 52204E616E6F WRITE Set Tiva in hybernation mode 0x03 0x0D 0x43484119 444C 5020 4E49 52204E616E6F GATT Scan Data 0x53455206 444C 0x4348411A 444C Read number of scan files R...

Страница 62: ...o 0 2 Host sends the Command ID byte where Bit 6 is set to 0x1 to indicate the host wants a reply from the device Bit 7 is set to 0x1 to indicate a read transaction 3 Host sends the Sequence byte When...

Страница 63: ...number the packets so the device can assemble them in the right sequence In other cases this value is irrelevant and generally set to 0 4 Host sends two bytes with the length of the data packet This l...

Страница 64: ...www ti com 64 DLP NIRscan Nano USB Communications DLPU030B June 2015 Revised July 2015 Submit Documentation Feedback Copyright 2015 Texas Instruments Incorporated...

Страница 65: ...ce to synchronize date and time information between smartphone tablet or PC to the Tiva s realtime clock GATT Calibration Information Service to provide calibration coefficients GATT Scan Configuratio...

Страница 66: ...tring org bluetooth ch 0x2A25 Serial number string string 1 X aracteristic serial _number_string org bluetooth ch aracteristic hard 0x2A27 Hardware revision string string 1 X ware_revision_st ring org...

Страница 67: ...X 4E49 Reserved for future support integer 52204E616E6F 0x43484105 444C 5020 Value set in Temperature threshold integer 2 X 4E49 hundredths 52204E616E6F Input truncated integer of actual 0x43484106 va...

Страница 68: ...tent to 444C 5020 Request Spectrum Calibration unsigned 1 X read No data 4E49 Coefficients integer transferred 52204E616E6F Send 6 coefficients 0x4348412E Each coefficient 444C 5020 Return Spectrum Ca...

Страница 69: ...data MP X 4E49 C library for data 52204E616E6F structure 0x43484118 Get Set function 444C 5020 Parameter Active scan configuration 2 X X 4E49 transmitted is a 52204E616E6F 2 byte index Table I 7 GATT...

Страница 70: ...4 X 4E49 integer data to read 52204E616E6F 0x43484120 Scan name 444C 5020 Return scan name string 20 X limited to 20 4E49 characters 52204E616E6F 0x43484121 444C 5020 unsigned Index of scan Request sc...

Страница 71: ...ket sizes The typical maximum transmission unit for an iOS App is 20 bytes Multiple packets are needed to transfer the following information to DLP NIRscan Nano Spectrum Calibration Coefficients Refer...

Страница 72: ...ed description of scan configuration parameters 22 Changed battery requirements 31 Changed DLP Spectrum Library description 37 Added DLP Spectrum Library workflow diagrams 37 Changed semaphore locatio...

Страница 73: ...sponsible for compliance with all legal regulatory and safety related requirements concerning its products and any use of TI components in its applications notwithstanding any applications related inf...

Отзывы: