summaryrefslogtreecommitdiff
path: root/altosui/AltosSerial.java
Commit message (Collapse)AuthorAge
* altosui: Create abstract AltosDevice classKeith Packard2011-04-14
| | | | | | | This will wrap either USB or BT devices. The USB device constants have been moved to Altos.java Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Clean up packet link connecting dialogKeith Packard2011-03-28
| | | | | | | | | | | | | | Make sure the dialog is destroyed after use (otherwise, it hangs around on the screen sometimes). Switch timeout before showing dialog to 500ms -- that brings the dialog up less often when unnecessary. Use 'timeout_started' boolean to indicate whether the I/O thread has queued the dialog for display and whether it needs to queue a call to close it down. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Handle serial calls from swing threadKeith Packard2011-03-27
| | | | | | | | Calls from the swing thread cannot be canceled as there's no way to put up the cancel dialog. In this case, simply use the 5 second timeout and fail if no communication occurs within that amount of time. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Allow TM config connection to be canceled.Keith Packard2011-03-26
| | | | | | | | | This leaves the config UI connection attempt running and pops up a dialog box when it takes 'too long' in the remote case so that users with Tm or Tn devices can bring up the UI, and then boot the Tm/Tn without needing to time things carefully. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Add telemetry format menu and preferencesKeith Packard2011-03-24
| | | | | | | | Switches the TeleDongle between full and tiny telemetry packet formats, saving the last used format for each teledongle in the application preferences. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Use long input flush timeout when remote.Keith Packard2011-01-16
| | | | | | | 100ms isn't long enough to capture pending remote serial input, so use 300 ms in that mode. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Make serial debug more complete and accurateKeith Packard2011-01-16
| | | | | | | | Display all serial input, including telemetry. Wait to display serial output until flush time, to debug missing flushing. Show when devices are opened and closed. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Add preference for serial debugging.Keith Packard2011-01-14
| | | | | | This dumps serial input/output to stdout. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Ensure serial line is flushed after disabling remote linkKeith Packard2011-01-14
| | | | | | Flush the '~' character. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Add support for parsing list of flights from the 'l' commandKeith Packard2011-01-11
| | | | | | | This adds parsing support to enumerate the available flights, but does not yet provide any UI to use it. Signed-off-by: Keith Packard <keithp@keithp.com>
* Move altosui to the top level, placing libaltos inside it.Keith Packard2010-11-24
Signed-off-by: Keith Packard <keithp@keithp.com>