summaryrefslogtreecommitdiff
path: root/ao-tools/lib
Commit message (Collapse)AuthorAge
* ao-usbload: Check target device name to avoid mis-flashingKeith Packard2016-08-14
| | | | | | | | | Instead of blindly loading firmware, go get the old device's name and make sure it matches the new firmware. Add --force option to allow this to be overridden. Signed-off-by: Keith Packard <keithp@keithp.com>
* Switch from GPLv2 to GPLv2+Keith Packard2016-07-12
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: Add ao-makebinKeith Packard2016-03-18
| | | | | | | | This constructs a raw binary or DFU format file for use with dfu-util, which can be used with a bare STM processor to load code before the boot loader is available. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/lib: Add ao_hex_image_cat functionKeith Packard2016-03-18
| | | | | | | This takes two images and constructs a third containing the union of the contents along with 0xff bytes for any area between them. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/lib: Remove trailing whitespace from ao-elf.cKeith Packard2016-03-18
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-dump-up: Add --wait option to make testing µPusb easierKeith Packard2015-05-19
| | | | | | | | The --wait option hangs around until a suitable device appears, so that you can test a pile of µPusb devices without needing to constantly interact with the command line. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/ao-list: Show devices that have no TTYKeith Packard2015-03-10
| | | | | | | chaoskey doesn't advertise itself as a modem, so the kernel doesn't allocate a tty device. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: Add --wait option to ao-usbloadKeith Packard2015-01-25
| | | | | | | This waits forever for USB writes to complete, instead of timing out after five seconds. Useful when debugging the device. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/ao-send-telem: Support sending TM v2 and Tm v2 telemetryKeith Packard2014-08-17
| | | | | | Add state tracking so the telemetry sending code works. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: Add a few GPS telem/eeprom constantsKeith Packard2014-07-13
| | | | | | | These make it possible to encode/decode GPS data from telemetry and eeprom files Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: Provide altitude to temperature conversion functionKeith Packard2014-07-13
| | | | | | | This takes altitude and computes the 'normal' temperature for that. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: Add TMv2 and Tgps log formats to cc.hKeith Packard2014-07-13
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Revert "ao-tools: Parse TeleGPS state value from gps location packet"Keith Packard2014-06-10
| | | | This reverts commit 428d09294ba0395fedd71346ad00fd90a4cdde97.
* ao-tools: Parse TeleGPS state value from gps location packetKeith Packard2014-06-07
| | | | | | | TeleGPS encodes state in a spare gps location packet byte, masking in 0x80 to signify that the state value is valid Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: Add cc_usb_write functionKeith Packard2014-05-25
| | | | | | | This writes raw bytes to the USB port; useful for sending binary data for flashing or the upcoming flight test stuff. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: Clean up ao-sym structure an initializersKeith Packard2014-04-30
| | | | | | | Remove unused 'default_addr' field. Use named initializers when setting up the struct. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-telem: Dump orientation field from TeleMega sensor telemetry packetKeith Packard2014-04-30
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: Wait for device to become ready instead of failingKeith Packard2014-04-05
| | | | | | | | For some reason, USB devices take 'a while' to become usable; instead of bailing immediately, sit around waiting to see if the device becomes usable if we get an EBUSY or EACCES error. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: Split out altos symbol editing from ao-stmloadKeith Packard2013-11-28
| | | | | | to be shared with ao-usbload Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: Missing ao-selfload.hKeith Packard2013-11-28
|
* ao-tools: move 16/32-bit readers from ao-stmload to libKeith Packard2013-11-28
|
* ao-tools: Move ao-selfload into libraryKeith Packard2013-11-28
| | | | | | This needs to be shared between ao-stmload and ao-usbload Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: Add ao-elftohex and .ihx symbol supportKeith Packard2013-11-28
| | | | | | | ao-elftohex converts an elf file into a hex file so that we can load it with java. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: Add debug printf supportKeith Packard2013-11-28
|
* ao-tools: Create general elf and hex library routinesKeith Packard2013-11-27
| | | | | | | Pulls the elf stuff out of ao-stmload, change the hex stuff into ao_ routines. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/ao-telem: Parse new TM v2 packetsKeith Packard2013-09-05
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/ao-mega: Dump 'pyro' state from mega logKeith Packard2013-05-26
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: Add ao-mega tool to parse TeleMega eeprom filesKeith Packard2013-05-26
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/ao-stmload: Add --verbose flagKeith Packard2013-05-07
| | | | | | This dumps out the serial communication so you can see where things go wrong. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/lib: Add loading support for 32-bit ihx filesKeith Packard2013-05-07
| | | | | | | | | These place the upper 16 bits of the address in a special record. That requires handling records in file order, so don't sort them in address order anymore, instead find the bounds of the loaded data by scanning them all. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/lib: Deal with binary USB data in debugging outputKeith Packard2013-05-07
| | | | | | Dump non-ascii characters in hex format. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: Make library support µPusbKeith Packard2013-03-20
| | | | | | Set baud rate to 9600, look for FTDI-style names Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/lib: Add cc_telemetry_unparseKeith Packard2013-03-09
| | | | | | This takes a telemetry structure and generates a string version Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: Add ao-dumpflash programKeith Packard2013-03-03
| | | | | | | This program dumps the entire flash contents of an AltOS device to allow for external analysis. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools. Oops, let 'ao-mega' slip into build.Keith Packard2012-12-04
| | | | | | | This is a tool to parse ao-mega eeprom files; not sure it'll be that useful, and it's certainly not usable *yet*. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make skytraq reflashing code try both 9600 and 4800 baudKeith Packard2012-11-30
| | | | | | | This lets it communicate with the ROM code which boots at 4800 baud instead of 9600 baud. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: Support MM telemetry packets in ao-telemKeith Packard2012-06-21
| | | | | | Parse the new packet formats Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: add rudimentary support for MM telemetry to ao-telemKeith Packard2012-06-17
| | | | | | Just pretends they're TM packets for now Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: Add GPS and rssi printing to ao-telemKeith Packard2012-05-01
| | | | | | This prints all of the basic telemetrum messages now. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-telem: Add new program to convert telem data to asciiKeith Packard2011-10-08
| | | | | | | This reads telem files and displays them in ascii form. It's not done, and it's not documented, but it's a start. Signed-off-by: Keith Packard <keithp@keithp.com>
* Remove stale tools (ao-dumplog, ao-postflight, ao-view)Keith Packard2011-08-23
| | | | | | | These tools have all been supplanted by altosui at this point, and keeping them around increases the build dependencies by quite a lot. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: ao-list was crashing with more than 3 devices connectedKeith Packard2011-08-13
| | | | | | | the list of devices was getting realloced for each new device, but that realloc was too small. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-dumplog: add --channel option (for use with -R option)Keith Packard2010-08-07
| | | | | | Sets the channel when downloading data with the -R option. Signed-off-by: Keith Packard <keithp@keithp.com>
* Telemetry code was mis-computing RSSIKeith Packard2010-07-14
| | | | | | | The RSSI data from the hardware reports in 1/2 dBm increments, and so must be divided to report plain RSSI numbers. Signed-off-by: Keith Packard <keithp@keithp.com>
* Allow product names to have suffixes (like board revisions)Keith Packard2010-02-25
| | | | | | | | When looking for a board by product name, just look at the prefix of the name instead of requiring an exact match. This will allow products to have board version suffixes. Signed-off-by: Keith Packard <keithp@keithp.com>
* Pull in a bit more data for filtering the start of the boostKeith Packard2010-02-11
|
* Switch to using internal cc1111 temperature sensorKeith Packard2010-01-10
| | | | | | | | v0.2 has no temperature sensor, and several of the v0.1 boards didn't get a temperature sensor loaded. Use the internal temperature sensor on the cc1111 in all cases instead. Signed-off-by: Keith Packard <keithp@keithp.com>
* Automatically extract flight number for eeprom and telem filenames.Keith Packard2009-11-22
| | | | | | | | | | | | Extract flight number from either telemetry or eeprom files and use that in the resulting filenames. To ensure that files remain unique, add a new field, -seq-%03d. This is appended only when the sequence number is non-zero as it shouldn't occur in normal usage. This also eliminates some duplicate filename creation code in the library and aoview sources. Signed-off-by: Keith Packard <keithp@keithp.com>
* Convert telemetry file GPS satellite information in cc_log_readKeith Packard2009-11-21
| | | | | | | The satellite info wasn't being correctly converted from telemetry files to the data log structure, so ao-postflight was not seeing it. Signed-off-by: Keith Packard <keithp@keithp.com>
* Eliminate SiRF state values from ao-view.Keith Packard2009-11-20
| | | | | | | With Skytraq not having any visible GPS state information, just remove this from the display. Signed-off-by: Keith Packard <keithp@keithp.com>