|
From: | Jamie Yuen |
Subject: | Re: [Paparazzi-devel] Logomatic with 2 UART? |
Date: | Fri, 6 Jul 2012 11:46:43 -0600 |
Hi Jamie,
the USE_UART0/1_RX_ONLY only disables the initialization of the UART transmit pins (it was needed as we simply crossed rx/tx in our setup). These pins are initialized by the bootloader code if you just downloaded.
Martin
On 07/03/2012 08:34 PM, Jamie Yuen wrote:
Ooops, my mistake!
Another question for you:
For my application I need to transmit a byte out of the UART before
logging. If I put a Uart0Transmit(CHAR) into the logging loop, load the
code with the bootloader which starts the software, all is good and I
get the character out of UART0. As soon as I reset the board (power from
an external source) I no longer get anything out of the UART.
If I remove the USE_UART0_RX_ONLY define, then it works (as you would
expect). I was just wondering what is causing this behaviour where
starting the software from the code flash causes a different result than
resetting the board.
Thanks,
Jamie
On Thu, Jun 21, 2012 at 12:38 PM, Martin Mueller <address@hiddenunfortunately not, currently the code only supports non-SDHC cardsJamie Yuen <address@hidden <mailto:address@hidden>> schrieb:
(means <= 2GB).
Martin
>Hi,
>
>No - it is actually a 4GB card that I was making a <2GB partition
on (don't
>have a 2GB card right now). Will this not work?
>
>Thanks,
>Jamie
>
>On Thu, Jun 21, 2012 at 3:32 AM, Martin Mueller <address@hidden<mailto:address@hidden>> wrote:
>
>> Hi Jamie,
>>
>> have you tried without any partition table?
>>
>> Martin
>>
>>
>> On 06/21/2012 12:35 AM, Jamie Yuen wrote:
>>
>>> 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 <mailto:address@hidden>>>> address@hidden <mailto:Paparazzi-devel@nongnu.org>>>> <mailto:address@hidden <mailto: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>
>>> <mailto:address@hidden <mailto:address@hidden>>
>>> <mailto:address@hidden <mailto:address@hidden>
<mailto: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
<mailto:Paparazzi-devel@ <mailto:Paparazzi-devel@>**nongnu.org
<http://nongnu.org><Paparazzi-address@hidden
<mailto:Paparazzi-devel@nongnu.org>>
>>> >
>>> <mailto:Paparazzi-devel@
<mailto:Paparazzi-devel@>__nong**nu.org <http://nu.org>
<http://nongnu.org>
>>> <mailto:Paparazzi-devel@
<mailto:Paparazzi-devel@>**nongnu.org <http://nongnu.org>
<address@hidden <mailto:Paparazzi-devel@nongnu.org>>>>> address@hidden <mailto:Paparazzi-devel@nongnu.org>
>>> >>
>>>
https://lists.nongnu.org/__**mailman/listinfo/paparazzi-__**devel<https://lists.nongnu.org/__mailman/listinfo/paparazzi-__devel>
>>>
<https://lists.nongnu.org/**mailman/listinfo/paparazzi-**devel<https://lists.nongnu.org/mailman/listinfo/paparazzi-devel>
>>> >
>>>
>>>
>>>
>>>
>>>
>>> ______________________________**___________________
>>>
>>> Paparazzi-devel mailing list
<mailto:Paparazzi-devel@ <mailto:Paparazzi-devel@>**nongnu.org
<http://nongnu.org><Paparazzi-address@hidden
<mailto:Paparazzi-devel@nongnu.org>>>>> address@hidden <mailto:Paparazzi-devel@nongnu.org>
>>> >
>>>
https://lists.nongnu.org/__**mailman/listinfo/paparazzi-__**devel<https://lists.nongnu.org/__mailman/listinfo/paparazzi-__devel>
>>>
<https://lists.nongnu.org/**mailman/listinfo/paparazzi-**devel<https://lists.nongnu.org/mailman/listinfo/paparazzi-devel>
>>> >
>>>
>>>
>>>
>>> ______________________________**___________________
>>>
>>> Paparazzi-devel mailing list
<mailto:Paparazzi-devel@ <mailto:Paparazzi-devel@>**nongnu.org
<http://nongnu.org><Paparazzi-address@hidden
<mailto:Paparazzi-devel@nongnu.org>>>>> address@hidden <mailto:Paparazzi-devel@nongnu.org>
>>> >
>>>
https://lists.nongnu.org/__**mailman/listinfo/paparazzi-__**devel<https://lists.nongnu.org/__mailman/listinfo/paparazzi-__devel>
>>>
>>>
<https://lists.nongnu.org/**mailman/listinfo/paparazzi-**devel<https://lists.nongnu.org/mailman/listinfo/paparazzi-devel>
>>> >
>>>
>>>
>>>
>>>
>>> ______________________________**_________________
>>> Paparazzi-devel mailing list>> address@hidden <mailto:Paparazzi-devel@nongnu.org>
>>>
https://lists.nongnu.org/**mailman/listinfo/paparazzi-**devel<https://lists.nongnu.org/mailman/listinfo/paparazzi-devel>
>>>
>>
>>
>> ______________________________**_________________
>> Paparazzi-devel mailing list>address@hidden <mailto:Paparazzi-devel@nongnu.org>
>>
https://lists.nongnu.org/**mailman/listinfo/paparazzi-**devel<https://lists.nongnu.org/mailman/listinfo/paparazzi-devel>
>>
>>
>
>_______________________________________________
>Paparazzi-devel mailing listaddress@hidden <mailto:Paparazzi-devel@nongnu.org>
>https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
_______________________________________________
Paparazzi-devel mailing list
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
[Prev in Thread] | Current Thread | [Next in Thread] |