Regarding Serial port communication

cpp , visual studio India
  • 11 years ago
    Hi Friends..... while communicating through serial port .....send the data through a port which is available among a set of ports by open_port and and issues read request on the requested port after opening and initializing it. On completion of a read request, the received bytes are appended to a circular receive buffer, overwriting the oldest bytes if needed. Re-issues read request. There must be outstanding read request all the time. The delay between the time when bytes arrive and the time when these are actually read, should be kept to the minimum. Provides the GetCharCom function(own), which retrieves the oldest byte (if available) from the circular receive buffer and returns to the caller (Modbus). Provides the PutMsgCom function(own), which transmits a message as requested I'm new to this environment ....dont know how to do it.....can any one please help me.......i'm very thankful if any one provide the code.... please....help me..........

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“The greatest performance improvement of all is when a system goes from not-working to working.” - John Ousterhout