我尝试使用Python读取这个IWR6843的数据,但是即使波特率是正确的,也会出现一些乱码,这是为什么?
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.
timex=0.05 BAUDRATE=921600 portx="COM22" lock=threading.Lock() class GetData(threading.Thread): def __init__(self,threadID,name): threading.Thread.__init__(self) self.threadID=threadID self.name=name self.ser = serial.Serial(portx, BAUDRATE, timeout=timex) def run(self): print("thread START:"+self.name) while (1): if (self.ser.inWaiting() > 0): result = self.ser.read_all() result = result.hex() lock.acquire() for i in range(0, len(result), 2): rxbuff.append(int(result[i:i + 2], 16)) lock.release()
这是我的Python代码:这是一个线程,简单的将数据读取进来后进行切割处理.
你好,
3DPPL的GUI使用的就是python,能否参考相关代码?
你好,
请问你说的是读取IWR6843 mmw demo的串口输出么?
建议参考file:///C:/ti/mmwave_sdk_03_05_00_04/packages/ti/demo/xwr68xx/mmw/docs/doxygen/html/index.html#output 和上面提到的python代码的解析部分。