Other Parts Discussed in Thread: IWR6843
Hello,
I am trying to read data from the sensor's UART port using a while loop.
'''
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