Skip to content

收发功能区新增串口连接发送失败 #177

@Shoulder404

Description

@Shoulder404

我在收发插件的功能区新增了一个串口连接,现在给串口发送后,串口收不到数据,但是我不在dbg中实例化串口类发相同数据是可以发送成功的,我不清楚我的写法和dbg原有的功能是否有什么逻辑冲突,请帮忙看看
部分代码:
self.heatingConn = Serial()
self.heatingConn.onInit({})

data = "86 01 02 33 00 01 02 03 04 68"
parseData = self.parseSendData(data,encoding="UTF-8",usrCRLF=True,isHexStr=True,escape=False)
parseData += b"\r\n"
self.heatingConn.send(parseData)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions