c***@126.com
c***@126.com
  • 发布:2025-05-30 19:25
  • 更新:2025-05-30 19:25
  • 阅读:31

【 rs232-serial - shmily121314 】串口打开成功,但调用sendHex没有发送成功

分类:插件市场

serialPort.open({
port: ‘/dev/ttyS7’, // 端口号
baudRate: 9600, // 波特率
dataBits: 8, // 数据位
stopBits: 1, // 停止位
parity: 0, // 校验位
flowCon: 0,
});
执行后
serialPort.subscribe('HEX', data => {
console.log(data); // 返回 00
});
后续发送一串hex
serialPort.sendHex('FF030003000161D4');
并没有发送出去

2025-05-30 19:25 负责人:无 分享
已邀请:

要回复问题请先登录注册