Rimco
22dce33fa4
Updated serial.cc for FreeBSD 9 compatibility.
2015-11-26 22:15:48 +01:00
William Woodall
de704369db
fixup removal of read_cache_
2014-07-02 15:17:02 -07:00
William Woodall
72af8435c5
fix usage of scoped locks
...
previously they were getting destroyed
immediately because they were not stored in a
temporary scope variable
2014-06-23 11:23:27 -07:00
William Woodall
2df3499e81
Merge pull request #49 from clearpathrobotics/wait-functions
...
Wait functions
2014-04-28 10:58:55 -07:00
William Woodall
4e5f143121
fix compile on VS2013
2014-04-16 14:32:28 -07:00
dawid
780f76c40d
support for mingw (mxe.cc)
2014-01-05 18:29:04 +01:00
Mike Purvis
28025034bd
Add waitReadable and waitByteTimes stubs.
2013-11-19 12:27:56 -05:00
William Woodall
e11abb04f2
Fix compiler warnings on Windows
2013-08-02 21:20:25 -07:00
William Woodall
2b4bafbfd2
fix, by Thomas Hoppe <thomas.hoppe@cesys.com>
...
For SerialException's:
- The name was misspelled…
- Use std::string's for error messages to prevent corruption of messages on some platforms
2013-05-08 13:52:28 -07:00
Anthony J. Bentley
b95b797de7
alloca.h does not exist on OpenBSD either.
2012-10-29 09:46:29 -06:00
William Woodall
da1207609f
Fixing a bug in the unix write code which may have prevented it from writing in some cases, and updating some of the comments and error messages in the write function that still read like the read function
2012-06-14 18:51:24 -05:00
William Woodall
94eac90d7c
Fixing a compile problem in Linux that got introduced in the Windows testing.
2012-06-12 00:23:39 -05:00
William Woodall
e9999c9c7c
Changes after testing on Windows. Everything seems to work, but it could use some more vetting.
2012-06-07 19:26:55 -05:00
William Woodall
ef8265a535
A small change to quiet warnings in linux
2012-06-07 18:01:18 -05:00
William Woodall
7714615af7
Disabling more copy constructors
2012-06-07 17:54:11 -05:00
William Woodall
6fac95d633
Adding initial windows support.
2012-06-06 18:56:44 -05:00
William Woodall
194169e5e6
More updates to the documentation and new api after comments from john and michael.
2012-05-02 21:49:09 -05:00
William Woodall
8022c1b1ea
Updating the API to fix some inconsistencies
2012-05-02 00:45:23 -05:00
William Woodall
81fc77dd47
Fixed some warnings from clang
2012-04-02 21:20:45 -05:00
John Harrison
6138aceedf
Removing a Clang specific compiler warning.
2012-02-06 18:31:06 -06:00
John Harrison
9734f943cb
Fixing bad C++ constructors.
...
I am not sure if this is related to the random crashes on Linux, but the wrong C++ std::string constructors were being called because of bad use of c-style array dereferencing. The correct C++ std::string constructors are being called now.
2012-02-06 18:22:14 -06:00
William Woodall
2978386696
Read/write seem to be working on linux, need to test on OS X.
2012-02-04 21:14:22 -06:00
William Woodall
c429b0eede
Removed serial listener, reworking the example, completely removed boost. Builds on my laptop with boost uninstalled.
2012-02-03 01:43:42 -06:00
John Harrison
f7cee5e175
Testing my changes to make sure they are consistant.
2012-01-30 16:33:58 -06:00
John Harrison
d8874120a5
Change the buffer to a generic C++ std::string
2012-01-27 20:21:10 -06:00
John Harrison
49ae058770
Found an error in my buffering code and added a timeout
...
to write
2012-01-23 14:28:16 -06:00
John Harrison
8b2c7d4359
Updating the error handling.
2012-01-23 13:09:14 -06:00
John Harrison
976307626d
Trying to do a first pass to make this thread safe… not sure…
2012-01-17 15:52:57 -06:00
John Harrison
8f4b34cc03
Adding in an internal buffer to Serial, this is independent of the SerialImpl and buffers reads to help performance.
...
Also correcting my styles to match the style guide and adding in some documentation.
2012-01-15 02:06:38 -06:00
William Woodall
0046f3f61f
Cleanup of code base
2012-01-13 09:08:09 -06:00
John Harrison
c2ad2721f3
Fixing a number of warnings in the serial library. The SerialListener still needs some love.
2012-01-12 16:44:19 -06:00
John Harrison
8273b7e153
Correcting the behavior of Serial::setPort and anything that modifies stuff related to baud/parity/etc.
2012-01-12 13:03:26 -06:00
John Harrison
923cf7d14f
Merge branch 'boostless' of github.com:wjwwood/serial into boostless
...
Conflicts:
include/serial/impl/unix.h
src/impl/unix.cc
src/serial.cc
2012-01-12 12:54:45 -06:00
John Harrison
11807e407b
Fixed some issues I found while testing my code, also implemented the drain, flush, set/send Break, get {CTS, RI, CD, DSR}, set {RTS, DTR}
2012-01-12 12:46:08 -06:00
William Woodall
2f36f14e1a
Everything builds, but haven't tested it on a serial device.
2012-01-12 00:11:43 -06:00
William Woodall
65fc8fb2a4
Merge branch 'boostless' of github.com:wjwwood/serial into boostless
...
Conflicts:
include/serial/impl/unix.h
include/serial/serial.h
serial.cmake
src/impl/unix.cc
src/serial.cc
2012-01-11 23:53:10 -06:00
William Woodall
7c0c976033
Still working on Serial listener refactor, not working, fixing to make big changes.
2012-01-11 23:07:58 -06:00
John Harrison
99bf74faae
Removing some unenessacary repetition
2012-01-11 22:03:32 -06:00
John Harrison
f14ac390bf
Implemented write, readline, readlines and available
2012-01-11 21:53:26 -06:00
John Harrison
0a6aabe719
Adding in my unix implementation. reconfigurePort and read should probably work, but I haven't tested them yet. I am going to work on write later.
2012-01-11 17:48:31 -06:00
William Woodall
c8e7841223
Working on pimpl implementation of serial.
2012-01-10 15:08:57 -06:00
William Woodall
18284ae764
working on new boostless serial with a pimpl setup
2012-01-10 14:19:56 -06:00
William Woodall
709fa5e174
Finished serial_listener. But serial is seriously inefficient, I need to investigate this before moving on.
2012-01-09 22:25:34 -06:00
William Woodall
318bce46bf
Still working on SerialListener addition.
2012-01-07 15:24:30 -06:00