Home > Net >  How to be a PC software, realize the RS232 serial port of single chip microcomputer communication wi
How to be a PC software, realize the RS232 serial port of single chip microcomputer communication wi

Time:03-16

I am using other company a control card, the hardware and the lower machine these are all ready, communication protocol has been established, I can send characters such as AAA, he reply to me in real time the current value of XXX. I send the BBB, he reply to me in real-time voltage yyy,
Now I need to do a simple computer program, don't send instruction manual, let he always displays real-time current value and voltage value, can choose the COM,
The easiest way to ace teach? Or do you have any ready-made simulation program can use?

CodePudding user response:

Download a.net Demo, serial communication, on the basis of its change

CodePudding user response:

Get a timer, every two seconds to send an AAA, BBB, method datareceived showcase event processing received messages to interface,

CodePudding user response:

My blog has written some PC introductory articles can reference, c #,

CodePudding user response:

Search the c # serial port communication,
To tell the truth, this seemingly simple, but in fact you this protocol is flawed, stick the data package, broken packages, data loss, data errors, etc., there is no treatment,
A robust communication protocol typically contain baotou, data volume, package tail three parts, in order to process the data transmission of the broken package, stick package, data checking and so on questions,
If you learn, that you like this also, this agreement is when the eyes, if you want to the product, you this agreement but is not very reliable,

CodePudding user response:

Many years ago wrote a simple example of VB.Net,
https://blog.csdn.net/CityBird/article/details/44229025? SPM=1001.2014.3001.5501
Consider a simple change
  • Related