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.

IWR6843ISK: Reading data from UART port

Part Number: IWR6843ISK
Other Parts Discussed in Thread: IWR6843

Hello,

I am trying to read data from the sensor's UART port using a while loop.

'''

while 1:
    try:
        data = data_port.read(4666)

        if (data_port.inWaiting() >0):
            if databuff is None: 
                databuff = data 
            else:
                databuff += data
                databuff = getDataInfo(databuff)
      except KeyboardInterrupt:
            exit(0)
            print('Cannot get data')

'''

However, because the getData function takes a long time to process, when it finished, a few frames have been missed already when resuming to reading.

for example: read frame num: 420 -> process -> resumes at frame 425 (421->424 got skipped).

Do you have any suggestions on how to efficiently read data from the sensor?

I'm using it for people counting and fall detection!

Thank you

  • Danh:

    It appears that you are using Python to parse the UART data stream from the IWR6843 device. Please confirm. With regard to specific code that is not part of the SW that we provide this forum is not the place for those type of questions. What I can provide you with is a python demo parser which demonstrates in the code how to parse data from the device. This should give you some insight into how to solve your individual problem.

    Parser: <MMWAVE_SDK_INSTALL_PATH>\packages\ti\demo\parser_scripts

    Best regards,

    Connor Desmond