• TI Thinks Resolved

DLPNIRNANOEVM: Decode Scan Results

Intellectual 260 points

Replies: 8

Views: 126

Part Number: DLPNIRNANOEVM

Hi,

I received the scan data from the Nano by bluetooth, and now I want to decode the data.What should I do next?

Thanks,

Hong.

  • Hello Hong,


    What are you looking to do with the data? The DLPNIIRNANOEVM is intended to be a flexible platform to enable a engineers to test and develop a variety of applications. Please check out our user's guide here and our product page with additional app notes and resources. If you have some specific question please let us know.

    Thanks,

    Kyle

  • In reply to Kyle Rakos:

    Hi Kyle,

    I want to decode the scan data into the reference, reflectance and absorbance. I've read the user's guid, and I've found the  DLP Spectrum Library routine which is dlp_scan_interpret(), but I don't quite understand the code, so hopefully I can get some help from you.

    Thanks,

    Hong.

  • In reply to user6073130:

    Hi Hong, 


    You after getting the whole scan data packet from the NIRScan Nano, you need to run the function "dlpspec_deserialize" to get the data in the "scanData" format. This datatype is defined in dlpspec_scan.h file. You can then use the raw values contained in the scanData structure for calculation. 

    Thanks  & Regards,

    Hirak.

  • In reply to Hirak Biswas:

    Hi Hirak,

    Yes, I found this function, but I can't understand and migrate it well. Could you provide me a separate demo of decoding function by C.

    Thanks,

    Hong.

  • In reply to user6073130:

    Hi Hong,

    We have DLP Spectrum Library which you can use to serialize and deserialize. We have two example application source code available (the TIVA Software on NIRScan Nano HW and NIRScanNano GUI for windows) using the DLP Spectrum Library, which you can refer to for more usage related information. 


    Thanks & Regards,

    Hirak.

  • In reply to Hirak Biswas:

    Hi Hirak,

    There is some confusion about the function dlpspec_scan_interpret(const void *pBuf, const size_t bufSize,scanResults *pResults). The function has three variables. According to my understanding, pBuf is serialized scan data, bufSize is the length of data, and pResults is the output data of the function, namely the decoded data.Now I have the scan data as follows:

    So my question to you is, is pBuf an array or a struct as an input to a function?

    Thanks & Regards,

    Hong.

  • In reply to user6073130:

    Hi Hong,

    It is the pointer to the serialized scan data blob you get from the NIRScan Nano bluetooth. 

    Thanks & Regards,

    Hirak.

  • In reply to Hirak Biswas:

    Hi Hirak,

    I want to know how does it work to convert wavelengths to digital quantities?Or how to convert digital quantities into wavelengths? For example, how is the wavelength of 61-b8-00-00-f9-c4-00-00 calculated?

    Thanks & Regards,

    Hong.