wjwwood / serial

Cross-platform, Serial Port library written in C++
http://wjwwood.github.com/serial/
MIT License
2.13k stars 1.04k forks source link

Trouble connecting at 500kbps #120

Closed mikepurvis closed 8 years ago

mikepurvis commented 8 years ago

I have limited access to the hardware producing this stream, so I need to do some more experimenting, but my experience so far is that connecting fails (on both Linux and OS X) when I specify a baud of 500000.

It appears that there's some intent to support non-standard baud rates, but I don't know when this was last tested. :confused:

wjwwood commented 8 years ago

Typically this doesn't have anything to do with this library, but rather support for the baudrate in the serial hardware and driver. For example, when testing this I have success with some USB-serial converters but not others. I have a encoder that hooked up at 500000 baud in college (when I wrote this), and I remember it working, but I think I was using the serial port on a motherboard and not a converter.

mikepurvis commented 8 years ago

Upon further investigation, it looks like it is actually working— I was getting an error related to something in my program. Sorry for the noise.