Community discussion forum

Regarding Serial port communication

  • 7 months 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 was edited on 27/03/2009 15:13:13 Report abuse

Post a reply

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

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

Want to stay in touch with what's going on? Follow us on twitter!