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.

  • TI Thinks Resolved

DLPNIRSCANEVM: Scan data decoding function

Intellectual 290 points

Replies: 3

Views: 148

Part Number: DLPNIRSCANEVM

HI,

I have some doubts about the decoding function dlpspec_scan_interpret(const void *pBuf, const size_t bufSize,scanResults *pResults) given by TI and hope to get help.

The partial scanning packets I obtained through bluetooth are as follows:

 00-EE-0E-00-00

 01-74-70-6C-00-75-0E-00-00-53-28-75-63-23-63-63-63-63-63-63

 02-63-6A-6A-76-76-75-24-28-66-23-66-23-29-63-23-76-63-63-63

 03-63-76-63-23-63-23-76-76-63-76-76-69-23-29-00-14-00-00-00

 04-03-00-00-00-03-00-00-00-08-00-00-00-08-00-00-00-28-00-00

 05-00-60-03-00-00-01-00-00-00-43-6F-6C-75-6D-6E-20-31-00-00

 06-00-00-00-00-00-00-00-00-00-00-0F-03-1F-02-07-00-27-14-0B

 07-1B-0B-88-16-61-0E-01-00-F0-00-80-72-D2-74-75-98-1F-C0-46

 08-67-A2-83-2C-BF-B0-3F-02-0A-E5-5E-89-C0-21-BF-31-13-6C-F2

 09-50-73-9B-40-F7-7C-93-C0-92-71-ED-BF-60-BA-22-35-16-53-30

 0A-BF-36-34-36-30-30-32-37-00-ED-00-18-19-40-00-4D-00-36-34

 0B-36-30-30-32-37-00-43-6F-6C-75-6D-6E-20-31-00-00-00-00-00

 0C-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00

 0D-00-00-00-00-00-00-00-00-84-03-A4-06-06-E4-00-06-00-89-AE 

 0E-00-00-BD-BA-00-00-7E-C5-00-00-D3-D2-00-00-D2-E4-00-00-BF

 0F-F4-00-00-4E-07-01-00-EB-19-01-00-C9-2A-01-00-81-3A-01-00

 .....

If I'm going to call dlpspec_scan_interpret(const void *pBuf, const size_t bufSize,scanResults *pResults) to decode, what should this input data pBuf be?I never understood the problem. PBuf is a pointer to the scanned data, which means that the dlpspec_scan_interpret(const void *pBuf, const size_t bufSize,scanResults *pResults) function can only point to one data at a time.This is how I understand it. I know it's not right.  Ask the engineers to help me.

Thanks & Regards,

Hong.

  • Hello Hong,

    We need more information to answer your question. Could you please provide more details:

     - Are you referring to  how to process when  Nano EVM  is configured to take average of multiple scan?

    regards,

    Vivek

  • In reply to Vivek Thakur:

    Hi Vivek,

    My question now is about the function dlpspec_scan_interpret(const void *pBuf, const size_t bufSize,scanResults *pResults).The pBuf in this function is a pointer to the scan data, and I can't figure out whether the pBuf points to one byte of the scan data or the entire scan data when this function is called.So where did the pBuf come from?

    Thanks & Regards,

    Hong.

  • In reply to user6073130:

    H Hong,

    The pBuf pointer in the function points to complete block of  serialized scan data blob. 

    The scandata through blue tooth is transferred in multiple packets. The packets structure "BLE_CMD_HANDLER_RESPONSE (file name - BLECommonDefs.h) defined structure of the packets. You to needs extract and concatenate payload data from multiple packet to create scan block.  The point to this block is PBuf for function dlpspec_scan_interpret.

    Please review the figure 5-11 (page 55) of the DLP NIR scan Nano EVM guide for the processing flow.

    regards,

    Vivek

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.