简单hdlc协议
simple-hdlc的Python项目详细描述
#简单hdlc
简单hdlc协议
用于与设备的简单通信。串行数据的帧。
超时=1)
或
s=serial.serial.serial('/dev/tty0'/dev/tty0')
h=hdlc(s)h.sendframe(b“您好”)
prinh.readframe()
`` ` ` `
read read readreadreadreadread带回调的读线程:
` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` `
impimport serial.serial
h=hdlc
```
简单hdlc协议
用于与设备的简单通信。串行数据的帧。
超时=1)
或
s=serial.serial.serial('/dev/tty0'/dev/tty0')
h=hdlc(s)h.sendframe(b“您好”)
prinh.readframe()
`` ` ` `
read read readreadreadreadread带回调的读线程:
` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` `
impimport serial.serial
h=hdlc
```