<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mjb/altos/ao-tools/altosui/AltosSerial.java, branch gpio</title>
<subtitle>AltOS - the operating system for Altus Metrum products
</subtitle>
<id>https://git.ethernal.org/mjb/altos/atom?h=gpio</id>
<link rel='self' href='https://git.ethernal.org/mjb/altos/atom?h=gpio'/>
<link rel='alternate' type='text/html' href='https://git.ethernal.org/mjb/altos/'/>
<updated>2010-09-03T19:43:45+00:00</updated>
<entry>
<title>altosui: Catch I/O errors on telemetry device, report to user</title>
<updated>2010-09-03T19:43:45+00:00</updated>
<author>
<name>Keith Packard</name>
<email>keithp@keithp.com</email>
</author>
<published>2010-09-03T19:43:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ethernal.org/mjb/altos/commit/?id=59798c6fd11502a9c8b66090c23ba50eb250692e'/>
<id>urn:sha1:59798c6fd11502a9c8b66090c23ba50eb250692e</id>
<content type='text'>
This catches the USB device being unplugged and makes sure the
user sees an error dialog in this case.

Signed-off-by: Keith Packard &lt;keithp@keithp.com&gt;
</content>
</entry>
<entry>
<title>altosui: Must flush serial line after configuring for telemetry</title>
<updated>2010-09-03T19:41:06+00:00</updated>
<author>
<name>Keith Packard</name>
<email>keithp@keithp.com</email>
</author>
<published>2010-09-03T19:31:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ethernal.org/mjb/altos/commit/?id=16d8d6a8853d09f683b13f9cda3c3174a0aab130'/>
<id>urn:sha1:16d8d6a8853d09f683b13f9cda3c3174a0aab130</id>
<content type='text'>
Without flushing the configuration commands to the serial device, it
never sees them as the telemetry input thread doesn't flush.

Signed-off-by: Keith Packard &lt;keithp@keithp.com&gt;
</content>
</entry>
<entry>
<title>Revert "altosui: Deal with altos bug setting radio channel while monitoring"</title>
<updated>2010-09-03T18:48:55+00:00</updated>
<author>
<name>Keith Packard</name>
<email>keithp@keithp.com</email>
</author>
<published>2010-09-03T18:48:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ethernal.org/mjb/altos/commit/?id=d4f64e95e31e2335470efc15df2ab357b7d197f3'/>
<id>urn:sha1:d4f64e95e31e2335470efc15df2ab357b7d197f3</id>
<content type='text'>
This reverts commit ba65e4aeb952a1cf49a77f1e24e235508fcea71f.

Testing the old code
</content>
</entry>
<entry>
<title>altosui: Deal with altos bug setting radio channel while monitoring</title>
<updated>2010-09-03T14:04:28+00:00</updated>
<author>
<name>Keith Packard</name>
<email>keithp@keithp.com</email>
</author>
<published>2010-09-03T08:21:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ethernal.org/mjb/altos/commit/?id=ba65e4aeb952a1cf49a77f1e24e235508fcea71f'/>
<id>urn:sha1:ba65e4aeb952a1cf49a77f1e24e235508fcea71f</id>
<content type='text'>
If the monitoring thread is active, then setting the radio channel can
sometimes cause the monitoring thread to get stuck. I'm not entirely
sure why though. For now, work around the issue by making sure
monitoring is off, and the monitoring thread has stopped, before
changing the radio channel.

Signed-off-by: Keith Packard &lt;keithp@keithp.com&gt;
</content>
</entry>
<entry>
<title>altosui: Report telemetry CRC errors in UI</title>
<updated>2010-09-03T14:04:28+00:00</updated>
<author>
<name>Keith Packard</name>
<email>keithp@keithp.com</email>
</author>
<published>2010-09-03T08:12:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ethernal.org/mjb/altos/commit/?id=e5ef42c2b22c6639d90631dbbb588f9fd2494385'/>
<id>urn:sha1:e5ef42c2b22c6639d90631dbbb588f9fd2494385</id>
<content type='text'>
Telemetry CRC errors can signal problems with TeleMetrum or TeleDongle
units, so report them in the UI.

Signed-off-by: Keith Packard &lt;keithp@keithp.com&gt;
</content>
</entry>
<entry>
<title>altosui: provide separate flush_input/flush_output for serial. deal with monitor automatically</title>
<updated>2010-08-30T04:36:47+00:00</updated>
<author>
<name>Keith Packard</name>
<email>keithp@keithp.com</email>
</author>
<published>2010-08-30T04:36:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ethernal.org/mjb/altos/commit/?id=ae02b1590439d5c8dfb472cf1f83a14fdcfbaf11'/>
<id>urn:sha1:ae02b1590439d5c8dfb472cf1f83a14fdcfbaf11</id>
<content type='text'>
(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 &lt;keithp@keithp.com&gt;
</content>
</entry>
<entry>
<title>altosui: Serial line is in UTF-8 encoding. Deal with it.</title>
<updated>2010-08-27T06:50:51+00:00</updated>
<author>
<name>Keith Packard</name>
<email>keithp@keithp.com</email>
</author>
<published>2010-08-27T06:50:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ethernal.org/mjb/altos/commit/?id=a16db143fc7ca72dc91e7989420049192114642d'/>
<id>urn:sha1:a16db143fc7ca72dc91e7989420049192114642d</id>
<content type='text'>
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 &lt;keithp@keithp.com&gt;
</content>
</entry>
<entry>
<title>altosui: flush replies from serial link when entering debug mode</title>
<updated>2010-08-24T23:43:38+00:00</updated>
<author>
<name>Keith Packard</name>
<email>keithp@keithp.com</email>
</author>
<published>2010-08-24T23:43:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ethernal.org/mjb/altos/commit/?id=99400fdc0f19ef538fc362dde5c3ab5b7cdac409'/>
<id>urn:sha1:99400fdc0f19ef538fc362dde5c3ab5b7cdac409</id>
<content type='text'>
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 &lt;keithp@keithp.com&gt;
</content>
</entry>
<entry>
<title>altosui: flush serial output before waiting for reply</title>
<updated>2010-08-24T05:01:11+00:00</updated>
<author>
<name>Keith Packard</name>
<email>keithp@keithp.com</email>
</author>
<published>2010-08-24T05:01:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ethernal.org/mjb/altos/commit/?id=c3f57ffdb6c74de90d982eacd604e658ce9b00a5'/>
<id>urn:sha1:c3f57ffdb6c74de90d982eacd604e658ce9b00a5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>altosui: Add debug dongle API, split flash UI out</title>
<updated>2010-08-23T21:32:58+00:00</updated>
<author>
<name>Keith Packard</name>
<email>keithp@keithp.com</email>
</author>
<published>2010-08-23T21:32:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ethernal.org/mjb/altos/commit/?id=ebeb13688a9a5442c838641ede6ba0dc92c9a1a4'/>
<id>urn:sha1:ebeb13688a9a5442c838641ede6ba0dc92c9a1a4</id>
<content type='text'>
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 &lt;keithp@keithp.com&gt;
</content>
</entry>
</feed>
