summaryrefslogtreecommitdiff
path: root/ao-tools/altosui/AltosSerial.java
Commit message (Collapse)AuthorAge
* altosui: Serial line is in UTF-8 encoding. Deal with it.Keith Packard2010-08-26
| | | | | | | | We read bytes from the serial line and need to convert each line into a string. So, save the bytes and at EOL, pass the whole mess to the string constructor with the appropriate encoding info. 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: flush serial output before waiting for replyKeith Packard2010-08-23
|
* 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>
* altosui: Make teledongle callsign configurableKeith Packard2010-08-21
| | | | | | | Teledongle uses the callsign in packet mode; this provides a way to set that. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Close serial, join reader thread, free altos_fileKeith Packard2010-07-29
| | | | | | | | | Separating out the close and free actions ensures that the reader thread will not access freed memory or dereference a null pointer while shutting down the connection to the serial device. Otherwise, a race condition exists between the serial close and the thread join. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: check for closed serial device before readingKeith Packard2010-07-29
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Add eeprom data capture function. No UI yet.Keith Packard2010-07-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Make voice and channel menus work.Keith Packard2010-07-28
| | | | | | Stores voice and channel data to preferences. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Catch errors opening USB devices. Limit list to relevant devicesKeith Packard2010-07-28
| | | | | | | Avoids a segfault when failing to open a device. Limit listed telemetry devices to just TeleDongle units. Signed-off-by: Keith Packard <keithp@keithp.com>
* Java clean ups -- use varargs where possible, remove AltosSerialReaderKeith Packard2010-07-27
| | | | | | | | Add methods that format stuff using String.format for voice and serial link, remove AltosSerialReader class and just embed that in the AltosSerial class directly. Signed-off-by: Keith Packard <keithp@keithp.com>
* Switch AltosUI to libaltos for device accessKeith Packard2010-07-26
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* More ALtosUI changesKeith Packard2010-04-22
|
* serial port read function cannot be interrupted. poll every 1 secondKeith Packard2010-04-06
|
* Use RXTX for serial comm. Add logdir preference savingKeith Packard2010-04-04
|
* Add telem parsing codeKeith Packard2010-04-02
|
* Start adding java-based UIKeith Packard2010-03-31