paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] Logomatic with 2 UART?


From: Martin Mueller
Subject: Re: [Paparazzi-devel] Logomatic with 2 UART?
Date: Tue, 19 Jun 2012 10:08:44 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1

Hi Jamie,

the two serial ports are completely symmetrical and can both log xbee or paparazzi frames.

The big issue with the current code is that the serial buffer only has teh standard 128 bytes size. The (micro) SD card can take up to 400ms (200ms usually for a 2GB card) for internal processes. If more than 128 bytes are received in that time the buffer overruns and you lose data (think that was what Cedric saw some time ago).

We need the serial port processing to be done in interrupt code and the SD card code to run in the normal while() loop to have it independently.

Martin

On 06/19/2012 12:35 AM, Christophe De Wagter wrote:
The logger actually already logs both serial ports. The idea is to use
port 1 to read the data from autopilot -> ground and the other port for
logging the data from ground -> autopilot.

There is even code to log an extra external analog sensor I believe.

For now, the logger tries to decode paparazzi messages. So you either
need to send your data using the paparazzi header and footer or need to
change that bit of the logger code and do your own decoding. Obviously
you will not be able to log the uplink telemetry anymore if you use one
of the 2 serials for another purpose.

-Christophe



On Tue, Jun 19, 2012 at 12:09 AM, Jamie Yuen <address@hidden
<mailto:address@hidden>> wrote:

    Hello,

    I don't have much experience with embedded programming and have a
    general question about the logomatic code. After looking through it
    a little, I am not sure how much effort would be involved in using
    the logomatic board to log data from 2 UART simultaneously. One
    would be to log the paparazzi telemetry messages, and the other to
    log data from an independent onboard sensor (spectrometer). It looks
    like there is support for multiple UART interfaces, but I am not
    sure about running two at once. Would this require a lot of new
    development (once I understand the code)?

    Thanks,
    Jamie

    _______________________________________________
    Paparazzi-devel mailing list
    address@hidden <mailto:address@hidden>
    https://lists.nongnu.org/mailman/listinfo/paparazzi-devel




_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]