Part Number: DLPNIRSCANEVM
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:
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,
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?
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
In reply to Vivek Thakur:
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?
In reply to user6073130:
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.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.