This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DLPNIRSCANEVM: Secondary development of the DLP NIRScan Nano bluetooth

Part Number: DLPNIRSCANEVM

Hi,

I'm a graduate student in college. I bought a DLP NIRScanNano from your company and wanted to research it as my opening project.But now I have some problems.My questions are as follows:

I can't read the content of bluetooth communication in DLP® NIRscan™ Nano EVM User's Guide well, and the Notes in the service table of Characteristic are incomplete, so I can't continue to develop now.I hope to get help from TI engineers as soon as possible.

Thank you!

  • Hi,

    Welcome to TI E2E forums! We'll help you with your query. Do you have any specific questions regarding the bluetooth communication? Also, have you looked at the NIRScanNano NIRScan Nano TIVA source code? This can help you understand how the bluetooth communication is handled inside the onboard microcontroller.

    Thanks & Regards,

    Hirak.

  • Hi,

    I have some doubts about the Service table in the section of bluetooth communication. For example, in the GATT Scan Data Information Service table, I am not clear which Characteristic can return the Scan Data and how?Also, about the other several Characteristic which have writing properties in the table, how should I write them?

    thanks,

    Hong.

  • Hi Hong,

    Did you see section 5.4 of the User's Guide: "Bluetooth Client App Workflow"?

    This section walks through BLE connection and use of the various GATT services. Several of the larger data characteristics (reference calibration, scan data, configurations) use a method where you subscribe to a characteristic and then write to another characteristic to initiate a multiple packet transmission from the GATT server (NIRscan Nano) to the client. This multiple packet transfer is documented in appendix J.2. Once you have the information, more detailed information about using or modifying it is available in section 5.1.8: "DLP Spectrum Library Workflow". Additional documentation on DLP Spectrum Library usage is available in the Doxygen comments available within the DLP Spectrum Library source code.

  • Hi,Hirak,

    Thank you for your clarification. Yes, I missed the previous chapter. I think I missed a lot of information.I will read the information carefully in the following time. Thanks again for your help.

  • Hi Hirak,

    Now I have a new problem. For example, I want to read the data stored in SD card through index, but I can only get the scan name of the scan data ,and the scan type, scan date/time and scan data structure are not getatable .I want to know whether for Nano before scanning no configuration, and then I want to do this, but in the process, I encountered a problem again, and request the scan configuration data in the process, I don't know how should I send instruction to the Nano, I tried several ways, but the Nano report an error, proved to have a writing mistake.

    Please give me some suggestions.

    Thanks,

    Hong.

  • Hi Hong,

    Are you using the bluetooth communication to retrieve the data? We'll look into this and get back to you. Thanks for your patience. 

    Thanks & Regards,

    Hirak.

  • Hi,Hirak,

    Yes,I used the bluetooth communication to retrieve the data.

    Hong.

  • Hi Hirak,

    Now I have found a new problem. I can only read the first packet data every time I get the scan data structure. Then I use Packet Sniffer to capture the packet. I got  8 packets on the first time, but I can only get  one package later. Have you come across this kind of situation?

    Thanks,

    Hong.

  • Hi Hong,

    I'm on vacation, will look into this once I get back. Thanks for your patience!

    Thanks & Regards,

    Hirak.

  • Hi I will look into this and get  back shortly. Thanks for your patience!

    Thanks & Regards,

    Hirak.

  • Hi Hong, 

    Did you try running the command multiple times as described in the flowchart Figure 5-11, 5-12 & 5-13 in the NIRScan Nano user guide? Kindly try to strictly adhere to these flowcharts and then try reading the data again.  

    Thanks & Regards,

    Hirak.