Best C++ Serial Library?

 comp.robotics.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Best C++ Serial Library? Ibrahim Awwal 05-02-2008
Posted by Ibrahim Awwal on May 2, 2008, 1:09 am
Please log in for more thread options
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
Please log in for more thread options
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
Please log in for more thread options
> 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
Please log in for more thread options
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
Please log in for more thread options
> 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.





Similar ThreadsPosted
Ronnie closes tax off library August 19, 2007, 1:26 am
anyone used the CMUCAM with the Intel OpenCV library ? December 18, 2005, 4:29 am
Rachel situates tailor prior to library August 19, 2007, 2:34 am
CGAL 3.3 Released, Computational Geometry Algorithms Library June 2, 2007, 9:15 am
Library for laser acquisition in mapping problems. [Question] January 13, 2007, 6:01 pm
CGAL 3.3.1 Released, Computational Geometry Algorithms Library September 5, 2007, 5:19 am
OT: PicBASIC Pro. Writing Own Functions, INCLUDE, Target Header, Library Files December 12, 2005, 7:28 pm
Serial SRAMs August 16, 2006, 3:40 am
SC16IS752 I2C/serial anyone? October 1, 2006, 4:14 pm
Re: Help, my cat is a serial killer! December 27, 2007, 1:40 pm

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

Contact Us | Privacy Policy