Commit Graph

740 Commits

Author SHA1 Message Date
akwizgran
19106ae044 Log exceptions with stack traces. 2012-12-07 15:22:34 +00:00
akwizgran
90978fa9c6 Removed verbose logging that was added for debugging. 2012-12-07 15:21:32 +00:00
akwizgran
c4bf931b80 Ensure the reliability layer is stopped when the modem is stopped. 2012-12-07 15:03:54 +00:00
akwizgran
9528a8b6d6 Minor refactoring and logging for reliability layer. 2012-12-07 15:00:16 +00:00
akwizgran
28086e1a7f Abort connection attempt if NO CARRIER is received from modem. 2012-12-07 14:43:23 +00:00
akwizgran
64a8fb1888 Wait for all data to be acked when flushing output stream. Logging. 2012-12-06 18:20:55 +00:00
akwizgran
7759c10d23 Don't let references to this escape the constructor. 2012-12-06 16:57:31 +00:00
akwizgran
5516503f67 Removed broken code for flushing the output stream. 2012-12-06 16:56:08 +00:00
akwizgran
0b7ecde4c8 Wait for writes to complete before closing the serial port. 2012-12-06 16:36:51 +00:00
akwizgran
bfbcdfa5a7 Don't send and receive invitations unless the plugin supports it. 2012-12-06 16:13:54 +00:00
akwizgran
1786b39d6e Don't overwrite the first frame's header with data. 2012-12-06 16:09:15 +00:00
akwizgran
d3062a992d Increased connection timeout to 2 minutes, more logging. 2012-12-06 16:05:57 +00:00
akwizgran
058323c6c2 Log at Level.INFO instead of Level.FINE. 2012-12-06 16:01:31 +00:00
akwizgran
940f362a97 More logging to debug the reliability layer. 2012-12-06 15:55:14 +00:00
akwizgran
706d3ea3cf Initialise the reliability layer. 2012-12-06 15:55:00 +00:00
akwizgran
e9ebec44cd More logging to debug the reliability layer. 2012-12-06 15:45:14 +00:00
akwizgran
78953289f7 Flush the output stream after writing. 2012-12-06 15:44:58 +00:00
akwizgran
4c9c49fa55 Logging to debug reliability layer. 2012-12-06 15:36:51 +00:00
akwizgran
f9ec483791 If the modem is off the hook when it's stopped, hang up. 2012-12-06 15:33:51 +00:00
akwizgran
584f7de0ab Wait a long time for a connection (modems take a while to connect). 2012-12-06 15:27:26 +00:00
akwizgran
cdc89f5cba Recompiled jSSC for Java 1.5 (again). 2012-12-06 15:20:16 +00:00
akwizgran
a4712140e6 Made serial port's state volatile, added method for stopping modem. 2012-12-06 15:09:04 +00:00
akwizgran
25fa4decfb Include /dev/ttyusbmodem* in serial port list on OS X. 2012-12-06 14:34:10 +00:00
akwizgran
f0c61a9b25 Find Linux serial ports by exploring /dev rather than executing dmesg. 2012-12-06 14:17:03 +00:00
akwizgran
80f5e0a7ff Don't try to close the serial port if it wasn't opened. 2012-12-06 14:07:19 +00:00
akwizgran
4ece151df8 Include stack traces in logs. 2012-12-06 14:00:31 +00:00
akwizgran
56e7f459e8 Allow the modem to respond OK more than once. 2012-12-06 13:56:14 +00:00
akwizgran
c13c01a114 Recompiled jSSC for Java 1.5. 2012-12-06 13:46:16 +00:00
akwizgran
12765ee173 Patched jSSC to recognise /dev/tty.modem as a serial port on OS X. 2012-12-06 13:43:30 +00:00
akwizgran
aec43d6de7 Enabled logging in non-JUnit modem tests. 2012-12-06 13:36:10 +00:00
akwizgran
51a4f2fd62 Updated non-JUnit plugin tests and added tests for the modem plugin. 2012-12-06 13:10:14 +00:00
akwizgran
dca9470c28 Updated ant build files for multi-project structure. 2012-12-05 23:15:35 +00:00
akwizgran
f5626bee05 Moved API classes into a separate project to enforce dependency rules. 2012-12-05 22:19:12 +00:00
akwizgran
5204e0b907 Fixed ant build files for Android project. 2012-12-05 21:31:13 +00:00
akwizgran
b995a2dce8 Set Eclipse compilation target to Java 1.5. 2012-12-05 21:02:30 +00:00
akwizgran
29d25cce6b Fixed classpaths of Android and test projects. 2012-12-05 21:00:47 +00:00
akwizgran
fa295da4dd Merged prototype-test repo into prototype repo, as a separate Eclipse project. 2012-12-05 20:41:01 +00:00
akwizgran
f4f7b96d50 Separated Android code and core code into distinct Eclipse projects.
This should make it possible to develop the core in Eclipse without the ADT.
2012-12-05 20:39:31 +00:00
akwizgran
366d391d89 Removed Java 1.6 API call. 2012-11-30 12:53:03 +00:00
akwizgran
4050c17a9a Recompiled jSSC for Java 1.5. 2012-11-30 12:50:03 +00:00
akwizgran
79aee8141a Logging for modem plugin. 2012-11-30 12:11:49 +00:00
akwizgran
7afd2d8f74 Don't accept an unreasonably large window size. 2012-11-27 15:38:55 +00:00
akwizgran
80543984be Use whole buffers for reads and writes. 2012-11-27 15:16:56 +00:00
akwizgran
705b87b97c Writes to the reliability layer should be asynchronous.
The flow control window will limit the amount of buffered data.
2012-11-27 14:51:34 +00:00
akwizgran
f8210e1b13 Wake any readers that are waiting for data when the modem hangs up. 2012-11-27 14:40:21 +00:00
akwizgran
4869a8034b Removed unnecessary synchronization. 2012-11-27 00:09:33 +00:00
akwizgran
116e194185 Replace the modem instance if an exception occurs. 2012-11-27 00:05:25 +00:00
akwizgran
14f2fd1995 Code cleanup, fixed potential NullPointerException if never connected. 2012-11-27 00:00:52 +00:00
akwizgran
a0c015352d Reliability layer for the modem plugin (untested). 2012-11-26 23:54:17 +00:00
akwizgran
38a8799a7c Removed stack traces. 2012-11-26 23:53:15 +00:00