1
0
mirror of https://github.com/wjwwood/serial.git synced 2026-01-22 11:44:53 +08:00

55 Commits

Author SHA1 Message Date
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
fe61b346da Fixing timeouts, there were not functioning correctly. 2012-01-17 12:35:32 -06:00
William Woodall
214b763664 Merge branch 'boostless' of https://github.com/wjwwood/serial into boostless
Conflicts:
	include/serial/serial_listener.h
2012-01-15 16:19:51 -06:00
William Woodall
31d0913410 Removing dead code. 2012-01-15 16:18:42 -06:00
John Harrison
66036f21c2 Merge branch 'boostless' of github.com:wjwwood/serial into boostless
Conflicts:
	include/serial/serial_listener.h
	src/impl/unix.cc
2012-01-15 02:09:24 -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
5ec0707418 Changed the stopListening function, now it no longer removes filters, just stops listening and cleans the data buffer of partial messages. 2012-01-14 21:24:48 -06:00
William Woodall
ae3e4a1f51 Fixing compile errors with serial listener. 2012-01-14 21:01:55 -06:00
William Woodall
dc53f3d132 Fixing a warning. 2012-01-13 15:39:17 -06:00
John Harrison
50972cbf41 Correcting some bad logic and making my test run forever to try to judge some basic performance characteristics. 2012-01-13 11:58:33 -06:00
John Harrison
f81268fdf0 Changed how the memory is allocated in the read operation and changed how the timeouts function. If the timeout is -1, then it will block until it finishes the reads. 2012-01-13 11:33:55 -06:00
William Woodall
a870d49b10 Fixed all of the warnings from serial_listener 2012-01-13 10:09:49 -06:00
William Woodall
0046f3f61f Cleanup of code base 2012-01-13 09:08:09 -06:00
William Woodall
4cdb42987f Removing vestigial files. 2012-01-13 09:03:39 -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
48a30ec4ff Fixed some memory problems on destruction. Serial listener maybe working, serial's read doesn't seem to return anything or block at all. 2012-01-12 01:15:04 -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
dfd1837cfc Serial Listener changes compile against the example reference, time to merge with John. 2012-01-11 23:42:42 -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
51965cc57f Fixing to remove once type functions and re-implement them 2012-01-07 23:05:38 -06:00
William Woodall
9824eb1d4c Cleaning up binary inclusion. 2012-01-07 16:53:37 -06:00
William Woodall
318bce46bf Still working on SerialListener addition. 2012-01-07 15:24:30 -06:00
William Woodall
313b01985a Adding files for serial_listener. 2012-01-05 15:46:20 -06:00
William Woodall
93b8dfe27b Adding support to build as a ROS unary stack or as a standalone library. 2012-01-01 01:12:00 -06:00
William Woodall
7dbd1d53a6 Revamped the build system a bit to make it more friendly to embeding in other projects. 2011-06-22 00:05:11 -05:00
William Woodall
cbe669f756 Removed const's before the return type on the methods, this isn't correct and produced warnings in linux. 2011-04-18 16:40:37 -05:00
John Harrison
4eac4bf8c6 Made readline smarter and less complicated. 2011-04-01 14:18:24 -05:00
John Harrison
a6922147d7 Adding a read_until option where you can insert a deliminator. 2011-04-01 13:53:01 -05:00
William Woodall
5ef78ddefd More fixes related to non-blocking read. 2011-03-28 13:44:05 -05:00
William Woodall
1b2d29f6a7 Fixed nonblocking read problem. 2011-03-27 15:35:05 -05:00
William Woodall
3d69d04c86 Added the set and get port functions, probably should have been in there from the start... 2011-03-26 18:19:12 -05:00
William Woodall
4eb3e51aa2 Added isOpen, and credited John Harrison as an author as well. 2011-03-24 11:14:13 -05:00
William Woodall
30ae4847ab PARTY_* related fixes. Compiles and works on OS X and Windows, needs to be tested on Linux. 2011-03-24 10:59:56 -05:00
John Harrison
bf5fd97c56 Last merge undid some of the changes for windows compatability. 2011-03-24 10:21:03 -05:00
John Harrison
619fd31dd4 Merge branch 'master' of github.com:wjwwood/serial
Conflicts:
	include/serial.h
	src/serial.cpp
2011-03-24 10:17:02 -05:00
John Harrison
3b913101b1 Look ma, no pointers! (directly controlled, also now there are no memory leaks) 2011-03-24 10:04:39 -05:00
William Woodall
1b3b7aa132 Fixed some potential memory leaks. Also, added a possible fix for the PARTIY_NONE debackle. 2011-03-24 10:01:56 -05:00
William Woodall
1ca16c4701 More windows changes. 2011-03-22 13:43:49 -05:00
William Woodall
ef56594fb3 Changes to fix WINDOWSasdklfjal;sjkdfa;lsd 2011-03-22 13:34:28 -05:00
William Woodall
2f066f4e1c Disabled the copy constructor and made the return types all const. 2011-03-22 10:46:09 -05:00