Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

对于串口通讯,存在的解析乱码的问题 #2789

Open
MY-Git-Li opened this issue Mar 29, 2025 · 0 comments
Open

对于串口通讯,存在的解析乱码的问题 #2789

MY-Git-Li opened this issue Mar 29, 2025 · 0 comments

Comments

@MY-Git-Li
Copy link

使用STM32串口的letter作为shell工具
编码为utf-8

可以发现,每次对于中文解析的都不一样

letter:/$ cmds

Command List:
fat CMD -------- FATFS测试
mount CMD -------- 挂载sd卡
unmount CMD -------- 取消挂���sd卡
ls CMD -------- 遍历���定目录
cat CMD -------- 文���读文件
setVar CMD -------- set var
help CMD -------- show command info
users CMD -------- list all user
cmds CMD -------- list all cmd
vars CMD -------- list all var
keys CMD -------- list all key
clear CMD -------- clear console

letter:/$ cmds

Command List:
fat CMD -------- FATFS测试
mount CMD -------- 挂载sd���
unmount CMD -------- ���消挂载sd卡
ls CMD -------- 遍历指���目录
cat CMD -------- 文本读文件
setVar CMD -------- set var
help CMD -------- show command info
users CMD -------- list all user
cmds CMD -------- list all cmd
vars CMD -------- list all var
keys CMD -------- list all key
clear CMD -------- clear console

当我使用VOFA+选择RawData模式时,会出现一样的上述问题,但是当我选择VOFA+的FireWater模式时,就不会出现上述问题,探查原因发现,FireWater模式以换行作为帧结束标志,所以遇到换行才会开启一帧的解析,可是我看了本项目的设置相关选项,并没有这样的设置,希望进行修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant