| |

VerySource

 Forgot password?
 Register
Search
Author: zfight

How to solve the problem of high CPU usage during serial communication

[Copy link]

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-24 21:45:01
| Show all posts
RThreshold is set to 1, which means that the oncomm event will occur if the data received in the buffer is greater than or equal to 1 byte. Because the windonws system shields many underlying calls, when VB responds to the oncomm event, the length of the data received in the buffer is Not sure, friends who are interested can make a sending program to send fixed-length data regularly (more than 10 bytes, in order to see the receiving effect), and then make a receiving program, RThreshold is set to 1, when VB responds to the oncomm event , Check the received data length, you will find the problem.
Reply

Use magic Report

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

Points Rules

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

Quick Reply To Top Return to the list