Difference between revisions of "Openlog"
(Created page with "== Openlog == === Hardware === === Software === Category:Software Category:User_Documentation") |
|||
Line 1: | Line 1: | ||
== Openlog == | == Openlog == | ||
In general OpenLog is a Module from Sparkfun that contains an Atmega324 and a Micro-SD-Slot. It can handle FAT-formated files-systems up to 2GB. Once installed into the wiring (parallel to the dataradio) it records every message the UAS sends. That is very handy for using it as some kind of blackbox or for data-logging purposes if no Modem was involved. It is also nice for reconstructing what happened after a crash, since the radio-communication is gone, once the plane is near the ground. 2GB is enough to log a comlete season (several hundred flights). | |||
The general logging is done in two steps: First you record your log using the telemtry in transparent mode, with the openlog-module loaded. the normal paparazzi-protocal does not contain timestamps and the openlog-module adds timestamps to the datastream to have a reference for the time. | |||
Second the recorded logs are extracted from the SD-Card to the normal logfiles. For doing so, there is a tool calles openlog2tlm to convert the recorded files to the TLM-format of the SD-logger. Next the created TLM-file is added to the logs by sd2log. | |||
There is a helper-script that does this job. | |||
=== Hardware === | |||
[[File:openlog.jpg|300px]] | |||
The OpenLog is simply connected to the TX-Line of the AP. Once the AP is powered, it starts to record. | |||
=== Software === | === Software === | ||
First of all the OpenLog needs to be configured. If it was powered one time without being configured, but with SD-Card plugged, it creates a file named CONFIG.txt or CONFIG.TXT (depends on the version of the firmware). You need to configure the Baudrate, it defaults to 9600-8-N1. In case you use 57600 Baud it should look like: | |||
{{Box Code|CONFIG.TXT| | |||
<source lang="xml"> | |||
57600,26,3,0 | |||
</source> | |||
}} | |||
Furthermore you need to add the OpenLog-module to your airframe. | |||
{{Box Code|conf/airframes/yourairframe.xml| | |||
<source lang="xml"> | |||
[...] | |||
<modules> | |||
<load name="openlog.xml"/> | |||
[...] | |||
</modules> | |||
[...] | |||
</source> | |||
}} | |||
Then compile, flash your AP and do your flight. Afterwards take the SD-Card from the logger and import the logs: | |||
[[Category:Software]] [[Category:User_Documentation]] | [[Category:Software]] [[Category:User_Documentation]] |
Revision as of 04:07, 24 June 2012
Openlog
In general OpenLog is a Module from Sparkfun that contains an Atmega324 and a Micro-SD-Slot. It can handle FAT-formated files-systems up to 2GB. Once installed into the wiring (parallel to the dataradio) it records every message the UAS sends. That is very handy for using it as some kind of blackbox or for data-logging purposes if no Modem was involved. It is also nice for reconstructing what happened after a crash, since the radio-communication is gone, once the plane is near the ground. 2GB is enough to log a comlete season (several hundred flights). The general logging is done in two steps: First you record your log using the telemtry in transparent mode, with the openlog-module loaded. the normal paparazzi-protocal does not contain timestamps and the openlog-module adds timestamps to the datastream to have a reference for the time. Second the recorded logs are extracted from the SD-Card to the normal logfiles. For doing so, there is a tool calles openlog2tlm to convert the recorded files to the TLM-format of the SD-logger. Next the created TLM-file is added to the logs by sd2log. There is a helper-script that does this job.
Hardware
The OpenLog is simply connected to the TX-Line of the AP. Once the AP is powered, it starts to record.
Software
First of all the OpenLog needs to be configured. If it was powered one time without being configured, but with SD-Card plugged, it creates a file named CONFIG.txt or CONFIG.TXT (depends on the version of the firmware). You need to configure the Baudrate, it defaults to 9600-8-N1. In case you use 57600 Baud it should look like:
File: CONFIG.TXT |
57600,26,3,0
|
Furthermore you need to add the OpenLog-module to your airframe.
File: conf/airframes/yourairframe.xml |
[...]
<modules>
<load name="openlog.xml"/>
[...]
</modules>
[...]
|
Then compile, flash your AP and do your flight. Afterwards take the SD-Card from the logger and import the logs: