summaryrefslogtreecommitdiff
path: root/ao-tools/altosui/AltosDebug.java
Commit message (Collapse)AuthorAge
* Move altosui to the top level, placing libaltos inside it.Keith Packard2010-11-24
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: switch channel selector to combo box. Shorten displayed device namesKeith Packard2010-11-19
| | | | | | | | | A combo box displays the current value, which is quite nice to have. Add a 'toShortString' for AltosDevice so that the window frames and error messages don't have extra spaces generated by the altos_device toString method. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Open serial device at 'new' time. Prohibit duplicate opens.Keith Packard2010-11-13
| | | | | | | | | | | With the per-serial UI, there's never a reason to create a serial device without opening it right away. This eliminates the bug caused by not opening the serial device for telemetry reception. Serial devices can now be opened only once; this eliminates errors when trying to reflash or configure devices while receiving telemetry. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Eliminate unncessary import altosui linesKeith Packard2010-11-13
| | | | | | | Java appears to automatically import every module from the current package. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: provide separate flush_input/flush_output for serial. deal with ↵Keith Packard2010-08-29
| | | | | | | | | | | | | | | | | monitor automatically (yes, this should be two patches, but the diffs in AltosSerial were merged together). First, this replaces the existing flush/flush_reply mess with two simple functions, one to flush output to the serial device, making sure that all data written will be seen while we wait for input. The other sucks any pending input off of the serial line and discards it. Second, AltosSerial now tracks whether the serial line is being used for telemetry monitoring. If so, it enables monitoring, otherwise it disables it. Eliminates a bunch of manual state tracking elsewhere. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Move number parsing code to Altos general classKeith Packard2010-08-26
| | | | | | This moves these shared functions to the global shared class. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: flush replies from serial link when entering debug modeKeith Packard2010-08-24
| | | | | | | | | | | We use replies in debug mode a lot and depend on them matching the expected parameters. The case which caused trouble was using TeleMetrum to reprogram TeleDongle -- sending the 'm 0' command (to disable telemetry monitoring on TeleDongle) to the TeleMetrum caused it to reply 'Syntax Error' which confused the subsequent flashing operation. Flushing that reply gets things back in sync. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: disable radio monitoring while using serial line for debuggingKeith Packard2010-08-24
|
* altosui: Add lots more cc1111 debug interface functionsKeith Packard2010-08-23
| | | | | | These are sufficient to program the flash. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Add debug dongle API, split flash UI outKeith Packard2010-08-23
Create an API to talk through the debug port on another AltOS device. Split the flash UI out from the flash implementation so that a command line flash utility can be written. Signed-off-by: Keith Packard <keithp@keithp.com>