Skip to content

串口发送的时候尾端会自动增加特殊字符,会导致发送内容不一致 #199

@bitssly

Description

@bitssly

描述一下这个bug / Describe the bug

发送: AT+SRS
回显: AT+SRSl␍␊

发送:AT+NID=10001
回显:AT+NID=10001p␍␊

复现步骤 / To Reproduce

100%发送就会复现这个问题

预期的行为 / Expected behavior

不应该加尾端字符

截图 / Screenshots

Image

Image

日志 / Logs

2025-07-01 14:08:46.751 +08:00 [DBG] [HEX]0D 0A 45 52 52 4F 52 0D 0A
2025-07-01 14:08:50.060 +08:00 [INF] <-AT+SRSl␍␊

2025-07-01 14:08:50.060 +08:00 [DBG] [HEX]41 54 2B 53 52 53 6C 0D 0A
2025-07-01 14:08:50.211 +08:00 [INF] ->␍␊
ERROR␍␊

2025-07-01 14:08:50.211 +08:00 [DBG] [HEX]0D 0A 45 52 52 4F 52 0D 0A
2025-07-01 14:08:52.237 +08:00 [INF] <-AT+NID=10001p␍␊

2025-07-01 14:08:52.237 +08:00 [DBG] [HEX]41 54 2B 4E 49 44 3D 31 30 30 30 31 70 0D 0A
2025-07-01 14:08:52.384 +08:00 [INF] ->␍␊
ERROR␍␊

2025-07-01 14:08:52.384 +08:00 [DBG] [HEX]0D 0A 45 52 52 4F 52 0D 0A
2025-07-01 14:09:51.366 +08:00 [INF] <-AT+PID?\␍␊

2025-07-01 14:09:51.366 +08:00 [DBG] [HEX]41 54 2B 50 49 44 3F 5C 0D 0A
2025-07-01 14:09:51.506 +08:00 [INF] ->␍␊
+PID:2␍␊
OK␍␊

2025-07-01 14:09:51.507 +08:00 [DBG] [HEX]0D 0A 2B 50 49 44 3A 32 0D 0A 4F 4B 0D 0A
2025-07-01 14:10:00.054 +08:00 [INF] <-AT+NID=10001p␍␊

2025-07-01 14:10:00.054 +08:00 [DBG] [HEX]41 54 2B 4E 49 44 3D 31 30 30 30 31 70 0D 0A
2025-07-01 14:10:00.206 +08:00 [INF] ->␍␊
ERROR␍␊

2025-07-01 14:10:00.206 +08:00 [DBG] [HEX]0D 0A 45 52 52 4F 52 0D 0A
2025-07-01 14:10:10.755 +08:00 [INF] <-AT+NID=10001p␍␊

2025-07-01 14:10:10.755 +08:00 [DBG] [HEX]41 54 2B 4E 49 44 3D 31 30 30 30 31 70 0D 0A
2025-07-01 14:10:10.908 +08:00 [INF] ->␍␊
ERROR␍␊

系统 / System

win11 24H2

软件版本 / Version

1.1.3.9

验证

  • 检查该问题是否已被提过 / Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • 提供了最小可复现工程或详细的复现步骤,确保开发者可以复现 / The provided reproduction is a minimal reproducible example of the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions