RS232 communication

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
michalm
Earned some good credits
Earned some good credits
Posts: 122
Joined: Wed Dec 13, 2006 3:25 pm

RS232 communication

Post by michalm » Tue Sep 29, 2009 4:52 pm

Hello,

I need simple application listening on com port (linux). Is there any wx built in classes I can use to do this?

timg
Earned some good credits
Earned some good credits
Posts: 148
Joined: Mon Jan 23, 2006 6:52 pm

Post by timg » Tue Sep 29, 2009 6:27 pm


michalm
Earned some good credits
Earned some good credits
Posts: 122
Joined: Wed Dec 13, 2006 3:25 pm

Post by michalm » Tue Sep 29, 2009 8:08 pm

Yes, I know it, but it seems to be too big and complicated, without any documentation (dead links)... and I was unable to compile it. I'm going to implement communication from scratch using open/write/read from C standard library, but I thought there are some built-in class in wxWidgets that will allow to do this more quickly.

jfouche
Super wx Problem Solver
Super wx Problem Solver
Posts: 442
Joined: Tue May 06, 2008 4:52 pm
Location: France

Post by jfouche » Thu Oct 01, 2009 7:19 am

You can either have a look to boost::asio (look at serial_port)
Jérémie

lukas0815
In need of some credit
In need of some credit
Posts: 6
Joined: Thu Sep 03, 2009 10:00 am

Post by lukas0815 » Mon Oct 12, 2009 6:20 am

michalm wrote:
Yes, I know it, but it seems to be too big and complicated, without any documentation (dead links)... and I was unable to compile it. I'm going to implement communication from scratch using ....
Hello,
after a while I could compile this library. If you get it to work, it does a good job, because it has all you need. With buffer, waiting for chars without blocking and so on. My opinion: Try further to get compile it, write the solution here and invest time in you application, not rewriting a class.

Links to documetation can be found in http://forums.wxwidgets.org/viewtopic.p ... ight=wxctb

Best regards!

Post Reply