Best C++ Serial Library?

General Robotics Forum - All aspects of robots and their applications. 

Page 1 of 2       1 2 > last >> Bookmark this page:  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
Best C++ Serial Library? Ibrahim Awwal 05-02-2008
If you were  Registered and logged in, you could reply and use other advanced thread options
Posted by Ibrahim Awwal on May 2, 2008, 1:09 am
Hi, I'm getting started with C++ because our school's robotics club
found last year that Java's (third party) serial libraries are a bit
slow for our needs, so we're intending to split our program into two
parts so that the more speed-critical parts are in C++. What would be
a good C++ serial library to use? My main requirements are just speed
and ease of use. Thanks for the help!

Posted by John Nagle on May 2, 2008, 2:52 am
Ibrahim Awwal wrote:
> Hi, I'm getting started with C++ because our school's robotics club
> found last year that Java's (third party) serial libraries are a bit
> slow for our needs, so we're intending to split our program into two
> parts so that the more speed-critical parts are in C++. What would be
> a good C++ serial library to use? My main requirements are just speed
> and ease of use. Thanks for the help!

How fast do you need to go?

                    John Nagle

Posted by BRW on May 2, 2008, 4:25 pm
> Hi, I'm getting started with C++ because our school's robotics club
> found last year that Java's (third party) serial libraries are a bit
> slow for our needs, so we're intending to split our program into two
> parts so that the more speed-critical parts are in C++. What would be
> a good C++ serial library to use? My main requirements are just speed
> and ease of use. Thanks for the help!

It's too bad you're not using C#. I've done serial comm with both. C+
+ is a nightmare to code for a serial port. C# was quite
straightforward. Let me know if you want my C++ sample code. I
should be able to dig it up.

BRW

Posted by D Herring on May 3, 2008, 12:35 am
BRW wrote:
>> Hi, I'm getting started with C++ because our school's robotics club
>> found last year that Java's (third party) serial libraries are a bit
>> slow for our needs, so we're intending to split our program into two
>> parts so that the more speed-critical parts are in C++. What would be
>> a good C++ serial library to use? My main requirements are just speed
>> and ease of use. Thanks for the help!
>
> It's too bad you're not using C#. I've done serial comm with both. C+
> + is a nightmare to code for a serial port. C# was quite
> straightforward. Let me know if you want my C++ sample code. I
> should be able to dig it up.

Its too bad you're using windows. Its a world easier on linux. ;)

- Daniel

Posted by Robin on May 3, 2008, 7:28 pm
> Hi, I'm getting started with C++ because our school's
> robotics club
> found last year that Java's (third party) serial libraries
> are a bit
> slow for our needs, so we're intending to split our
> program into two

Serial as in RS232?

Only ask because I had a frustrating time trying to connect
at 9600 baud to a PC. I started by sending to it from an
interrupt driven buffer, ended up sending against a timer
tick so I could slow it down.

Even tried writing an interrupt handler for the PC, enabled
the UART FIFO's, still lost data.

Worked under DOS but not under Windows, think I may need a
serial to USB adaptor.





Page 1 of 2       1 2 > last >>

The site map in XML format XML site map
other useful resources:
Official Robosapien Website
Lego Mindstorms Website

Contact Us | Privacy Policy