1
0
mirror of https://github.com/wjwwood/serial.git synced 2026-01-22 19:54:57 +08:00

78 Commits

Author SHA1 Message Date
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
William Woodall
7e46129f7d Adding explicit keyword to Timeout constructor to prevent accidental conversion from int types. 2012-07-30 18:56:16 -05:00
William Woodall
2ae490b3ac Fixes to flowcontrol that solve a wierd bug on Linux and fix an oversight on Windows. 2012-06-12 16:55:11 -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
e12955a560 Fixed some issues with the copy constructors 2012-06-07 18:09:51 -05:00
William Woodall
088fcda295 Disabling copy constructors on the expections 2012-06-07 17:52:14 -05:00
William Woodall
565ba66271 Sorted out the stdint stuff by including a header from the v8 project. 2012-06-07 17:49:05 -05:00
William Woodall
ead96705dd Still working on std types 2012-06-07 16:44:35 -05:00
William Woodall
520ccb54f4 Merge branch 'new_api' of github.com:wjwwood/serial into new_api
Conflicts:
	.gitignore
2012-06-06 18:58:51 -05:00
William Woodall
6fac95d633 Adding initial windows support. 2012-06-06 18:56:44 -05:00
William Woodall
3039acbab9 Adding a convenience function for generating simple Timeouts based purely on the total time until a timeout occurs with no regard to inter byte timeout or timeout multipliers. 2012-05-07 13:06:28 -05:00
William Woodall
ba0c648119 Fixes #16. 2012-05-07 13:04:34 -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
a8259fcda2 Changing the throw to add file and line number 2012-02-07 14:11:17 -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
34ce959672 wtf: 'Users/william/devel/atrv_ws/serial/include/serial/serial.h:82: error: stray ‘\303’ in program', fixed... 2012-02-04 21:18:26 -06:00
William Woodall
6cdd3fe795 Merge branch 'boostless' of https://github.com/wjwwood/serial into boostless
Conflicts:
	include/serial/serial.h
2012-02-04 21:17:27 -06:00
William Woodall
aa59c9517f Some style changes 2012-02-04 21:15:23 -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
William Woodall
05fa4b8d77 Removing serial listener, next make sure I can compile without boost completely. 2012-02-02 23:35:40 -06:00
John Harrison
7b027d39ef Merge branch 'stringbuffer' into boostless 2012-01-30 14:44:43 -06:00
William Woodall
cea751402e Adding some linux specific fixes. fixes #13 2012-01-29 15:41:38 -06:00
William Woodall
dc556c9f25 Merge branch 'boostless' into stringbuffer 2012-01-28 15:36:28 -06:00
William Woodall
c3a82750e6 Some small changes to fix things discovered while testing serial listener. 2012-01-28 14:39:55 -06:00
John Harrison
d8874120a5 Change the buffer to a generic C++ std::string 2012-01-27 20:21:10 -06:00
William Woodall
f610fb79ff fixing empty token bug, and adding some debugging stuff. 2012-01-24 23:05:28 -06:00
William Woodall
0d464469cc Serial listener tests complete and working 2012-01-24 14:19:09 -06:00
William Woodall
20f552bc80 Got some serial listener tests working 2012-01-24 12:20:46 -06:00
William Woodall
35c93caf42 Still working on the tests 2012-01-23 15:28:01 -06:00
John Harrison
8b2c7d4359 Updating the error handling. 2012-01-23 13:09:14 -06:00
William Woodall
241daf3073 working on tests and stuff 2012-01-23 09:54:31 -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
William Woodall
04f81f23ed Fixing another issue with the default handler setter. 2012-01-15 20:54:39 -06:00
William Woodall
1bceb66e0e Fixing serial manifest.xml for ROS and replacing an accidental missing function 2012-01-15 20:48:21 -06:00
William Woodall
154ef46c20 Fixing exception handler setting function 2012-01-15 17:32:33 -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
ae3e4a1f51 Fixing compile errors with serial listener. 2012-01-14 21:01:55 -06:00
William Woodall
4afa6e2e7c Fixing Findserial.cmake and updating serial_listener.h to remove unused functions. 2012-01-14 20:52:50 -06:00
William Woodall
760784e730 Updating ROS make system. 2012-01-13 11:40:59 -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
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