<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mjb/altos/src, branch debian/1.2.1-2</title>
<subtitle>AltOS - the operating system for Altus Metrum products
</subtitle>
<id>https://git.ethernal.org/mjb/altos/atom?h=debian%2F1.2.1-2</id>
<link rel='self' href='https://git.ethernal.org/mjb/altos/atom?h=debian%2F1.2.1-2'/>
<link rel='alternate' type='text/html' href='https://git.ethernal.org/mjb/altos/'/>
<updated>2013-05-17T10:51:16+00:00</updated>
<entry>
<title>altos/cc1111: Hack on USB driver to make Windows happy</title>
<updated>2013-05-17T10:51:16+00:00</updated>
<author>
<name>Keith Packard</name>
<email>keithp@keithp.com</email>
</author>
<published>2013-05-17T10:21:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ethernal.org/mjb/altos/commit/?id=3b457ff8d43630c04e0cb22bb3a2765be5e188bd'/>
<id>urn:sha1:3b457ff8d43630c04e0cb22bb3a2765be5e188bd</id>
<content type='text'>
The Windows modem driver is quite chatty at startup time, getting and
setting the comm parameters each time the device is opened. Sometimes,
when setting the parameters, the cc1111 would STALL EP0.

Most of the time, Windows would happily pass this as an error back to
AltosUI which would then re-try the open (and succeed, most of the
time).

Sometimes, Windows would stall for 30 seconds before passing the error
back. This made the whole UI freeze, and I suspect most people assumed
our app had died.

A bit of analysis with the beagle USB sniffer and I discovered the
STALL settings, but there wasn't any correlation between the data on
the wire and when the STALL would be generated.

So, I found a couple of other cc1111 USB stacks on the net and just
looked to see how our driver differed. There wasn't anything clearly
related, but there were a list of small differences:

 1) Other drivers didn't bother waiting for the hardware to
    ack the USBADDR setting; doing it this way means we can set
    the address *before* acking the setup packet. It'll get
    set eventually, at which point the device will start responding to
    packets again.

    Easy to fix, and saves a bit of code space too.

 2) The other drivers set the STALL bit for setup packets which aren't
    understood. This shouldn't have any effect on 'good' systems as
    those shouldn't ever be generating bogus setup packets anyways.

    The driver already handled the STALL state in the interrupt
    handler, the only requirement was to figure out when to explicitly
    set the STALL bit.

    That required moving the state updating code from the start of the
    ep0 setup handling to the end, after the setup packet had been
    examined and data queued in or out as appropriate.

 3) Our driver explicitly queued an IN packet for any setup request
    that wasn't waiting for an OUT pack. This appears to tie in with
    the USBADDR change above as before I made that change, this change
    caused the driver to fail to respond to most setup packets.

    This was simple once the above change was made, just move the
    generation of the IN packet inside the code that switched to the
    IN state.

Signed-off-by: Keith Packard &lt;keithp@keithp.com&gt;
</content>
</entry>
<entry>
<title>altos: Set u-blox navigation settings</title>
<updated>2013-05-14T15:51:22+00:00</updated>
<author>
<name>Keith Packard</name>
<email>keithp@keithp.com</email>
</author>
<published>2013-05-14T15:51:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ethernal.org/mjb/altos/commit/?id=116d8570766fbd3ef529111171935637a2e466af'/>
<id>urn:sha1:116d8570766fbd3ef529111171935637a2e466af</id>
<content type='text'>
Airborne mode, &lt; 4g (as good as it gets)
Only use 3D fixes (2D isn't very useful)

Signed-off-by: Keith Packard &lt;keithp@keithp.com&gt;
</content>
</entry>
<entry>
<title>altos: Use symbolic names for ublox packet id</title>
<updated>2013-05-14T15:35:24+00:00</updated>
<author>
<name>Keith Packard</name>
<email>keithp@keithp.com</email>
</author>
<published>2013-05-14T15:35:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ethernal.org/mjb/altos/commit/?id=fb0fb6f4beab484e7fe55b39d18c1f19778f1211'/>
<id>urn:sha1:fb0fb6f4beab484e7fe55b39d18c1f19778f1211</id>
<content type='text'>
Signed-off-by: Keith Packard &lt;keithp@keithp.com&gt;
</content>
</entry>
<entry>
<title>altos/test: ao_gps_test_ublox uses ao_gps_blox.h</title>
<updated>2013-05-14T05:59:26+00:00</updated>
<author>
<name>Keith Packard</name>
<email>keithp@keithp.com</email>
</author>
<published>2013-05-14T05:59:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ethernal.org/mjb/altos/commit/?id=c88aa32b979f379e3cf316dcb651e264c32a5283'/>
<id>urn:sha1:c88aa32b979f379e3cf316dcb651e264c32a5283</id>
<content type='text'>
Signed-off-by: Keith Packard &lt;keithp@keithp.com&gt;
</content>
</entry>
<entry>
<title>altos: Struct used for u-blox testing had lat/lon swapped</title>
<updated>2013-05-14T05:58:18+00:00</updated>
<author>
<name>Keith Packard</name>
<email>keithp@keithp.com</email>
</author>
<published>2013-05-14T05:58:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ethernal.org/mjb/altos/commit/?id=61f5183fb6aff63c1133011b5625814ee56e96da'/>
<id>urn:sha1:61f5183fb6aff63c1133011b5625814ee56e96da</id>
<content type='text'>
The structs in ao_gps_ublox.h are used only by the test framework, but
it's useful to have that look right anyways.

Signed-off-by: Keith Packard &lt;keithp@keithp.com&gt;
</content>
</entry>
<entry>
<title>altos: Switch TeleMega v0.3 to u-blox</title>
<updated>2013-05-14T05:33:28+00:00</updated>
<author>
<name>Keith Packard</name>
<email>keithp@keithp.com</email>
</author>
<published>2013-05-14T05:33:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ethernal.org/mjb/altos/commit/?id=5a730dd7a78b5ae428bcfe809257dabedc4338f5'/>
<id>urn:sha1:5a730dd7a78b5ae428bcfe809257dabedc4338f5</id>
<content type='text'>
Signed-off-by: Keith Packard &lt;keithp@keithp.com&gt;
</content>
</entry>
<entry>
<title>altos: Provide a define for the number of sat infos in a telem packet</title>
<updated>2013-05-14T05:32:25+00:00</updated>
<author>
<name>Keith Packard</name>
<email>keithp@keithp.com</email>
</author>
<published>2013-05-14T05:32:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ethernal.org/mjb/altos/commit/?id=d2f0dcc73df612d10ed12d364fe661ccd831f037'/>
<id>urn:sha1:d2f0dcc73df612d10ed12d364fe661ccd831f037</id>
<content type='text'>
12 fit, but it's best to use a symbolic constant

Signed-off-by: Keith Packard &lt;keithp@keithp.com&gt;
</content>
</entry>
<entry>
<title>altos: Add U-Blox GPS driver</title>
<updated>2013-05-14T05:31:31+00:00</updated>
<author>
<name>Keith Packard</name>
<email>keithp@keithp.com</email>
</author>
<published>2013-05-14T05:31:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ethernal.org/mjb/altos/commit/?id=50457f9983ec0a432f1050464382749436e3da94'/>
<id>urn:sha1:50457f9983ec0a432f1050464382749436e3da94</id>
<content type='text'>
Uses binary mode.

Signed-off-by: Keith Packard &lt;keithp@keithp.com&gt;
</content>
</entry>
<entry>
<title>altos: Don't bother fixing telelco-v0.1, just disable it</title>
<updated>2013-05-14T05:29:22+00:00</updated>
<author>
<name>Keith Packard</name>
<email>keithp@keithp.com</email>
</author>
<published>2013-05-14T05:29:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ethernal.org/mjb/altos/commit/?id=125ff0b7c74af4db98a81439ee9f1b92fe8b8833'/>
<id>urn:sha1:125ff0b7c74af4db98a81439ee9f1b92fe8b8833</id>
<content type='text'>
Lots of stuff to do to make this old project build; just disable it
instead of fixing

Signed-off-by: Keith Packard &lt;keithp@keithp.com&gt;
</content>
</entry>
<entry>
<title>altos: Wait after configuring boot pin before testing it</title>
<updated>2013-05-08T04:30:27+00:00</updated>
<author>
<name>Keith Packard</name>
<email>keithp@keithp.com</email>
</author>
<published>2013-04-29T06:06:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ethernal.org/mjb/altos/commit/?id=ecb128579e7576fc27c8ca93708f316b9ac91630'/>
<id>urn:sha1:ecb128579e7576fc27c8ca93708f316b9ac91630</id>
<content type='text'>
Clearly the pin isn't quite ready just after it's been configured, so
hang around for a while (100 nops) to let things setting down before
testing the value of the pin. Makes booting a lot more reliable.

Signed-off-by: Keith Packard &lt;keithp@keithp.com&gt;
</content>
</entry>
</feed>
