| |

VerySource

 Forgot password?
 Register
Search
View: 38|Reply: 3

Serial Communication-PC cannot receive "0x11" characters correctly

[Copy link]

1

Threads

1

Posts

2

Credits

Newbie

Rank: 1

Credits
2

 China

Post time: 2020-3-2 01:00:01
| Show all posts |Read mode
It was found in the test during project debugging:
PC cannot receive 0x11 characters correctly
Use serial tool, serial loopback.
Send in hex
0x0001020304 ... 171819
The above 20 characters, except 0x11, are thought to be received correctly.
Use an oscilloscope to detect the signal. There is a 0x11 waveform.
The following communication settings were tested:
9600, 8 data bits, 2 stop bits
9600, 8 data bits, 1 stop bit
4800, 8 data bits, 2 stop bits

Very strange phenomenon, I don't know if the PC has any special explanation for this character?

In addition: the PC sends this data and uses a single-chip microcomputer to receive, the reception is normal; but the single-chip microcomputer sends to the PC, the PC cannot receive correctly
Reply

Use magic Report

0

Threads

1

Posts

2

Credits

Newbie

Rank: 1

Credits
2

 China

Post time: 2020-5-14 12:15:01
| Show all posts
When uart fails, there are usually several consecutive ones. Is your PC program automatically thinking it is a failure?
Reply

Use magic Report

0

Threads

7

Posts

6

Credits

Newbie

Rank: 1

Credits
6

 China

Post time: 2020-6-24 13:00:02
| Show all posts
1. Turn off serial port flow control (I suspect that you have used xon/xoff soft flow control)
2. If you use VB as the receiving program, then use the binary system to receive data
Reply

Use magic Report

1

Threads

3

Posts

4

Credits

Newbie

Rank: 1

Credits
4

 China

Post time: 2020-7-2 09:45:01
| Show all posts
Mostly for this reason:
1. Turn off serial port flow control (I suspect that you have used xon/xoff soft flow control)
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2020|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list