Thanks to visit codestin.com
Credit goes to github.com

Skip to content

低波特率下解码UTF-8错误 #166

@XuanTongYao

Description

@XuanTongYao

在低波特率(例如2400Hz)的情况下解码多字节编码文本,比如UTF-8会发生错误

image
image

图中选中部分的16进制数据解码的文本应该为下载:0x56,启动:0xF1\n

逻辑分析仪采样数据显示时序都是正常的
image

我个人猜测你们使用了asyncio.sleep()或者定时器之类的东西把字节流切片后再解码,然后切片的时序出错导致解码出现错误。

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions