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: Jamie Yuen
Subject: Re: [Paparazzi-devel] Logomatic with 2 UART?
Date: Wed, 20 Jun 2012 16:35:33 -0600

Thanks for the info, it was very helpful. I have a logomatic board and have been trying get the code running but have run into an issue initializing the SD card. I have tried formatting with FAT16 and 32 with one partition 1GB or less, but the efs_init function is returning -1 because the SD interface is failing to initialize. Just wondering if there is a special way the SD card has to be formatted?

Thanks,
Jamie

On Tue, Jun 19, 2012 at 2:08 AM, Martin Mueller <address@hidden> wrote:
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:Paparazzi-devel@nongnu.org>
   https://lists.nongnu.org/mailman/listinfo/paparazzi-devel





_______________________________________________
Paparazzi-devel mailing list
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]