Click here to Skip to main content
15,845,912 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I'm still noob in c++ programming.
Every day I learn something new, but now I need your help.

I want write program ( in console aplication c++) for read and send informations
to RS232 port in my computer.

I don't know how I can do this.
I would like to use ModbusRTU protocol.
I dont any idea how start it....

I know only basic C++ :(

Could you say me which library will be good? and how I can use it step by step??

Every information will be for me very helpful. :)


PS: Finally I would like to create program like message communicator which can comunicate throw RS232 between two computers :)
Posted
Comments
[no name] 28-Jun-13 13:00pm    
http://msdn.microsoft.com/en-us/library/ms810467.aspx
Sebastian M 30-Jun-13 17:21pm    
Thank you, it is helpful for first steps.
zlogdan 1-Jul-13 13:46pm    
Check this serial port emulator http://com0com.sourceforge.net/. I used it a lot for simulating serial ports. You will probably need a sniffer. Modbus protocol is pretty straight forward to implement these days, specially if you only need to handle two end points communications. The above link given by Phantom is the canonical article for the serial port communication software design at windows.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900