paparazzi-devel
[Top][All Lists]
Advanced

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

Re: [Paparazzi-devel] telemetry stream redirection?


From: Gautier Hattenberger
Subject: Re: [Paparazzi-devel] telemetry stream redirection?
Date: Sun, 23 May 2021 21:41:55 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

Hello Chris,

An option for that is to create a kind of virtual device that implement
the structure 'link_device':
https://github.com/paparazzi/pprzlink/blob/master/tools/generator/C/include_v2.0/pprzlink_device.h

This device can act as a buffer to store the data (implement 'put_byte'
and 'put_buffer' for that purpose) and only load when the 'send_message'
is called.

You can check the UDP driver, which is working with this principle:
https://github.com/paparazzi/paparazzi/blob/master/sw/airborne/mcu_periph/udp.c

Gautier

Le 22/05/2021 à 07:39, Chris a écrit :
> Hi.
>
> I am almost done writting the code for the si4432 (rfm22b) so it can
> be used as a modem and a rc receiver running openlrsng firmware but  i
> have a small problem.
>
> Is there any simple way to send the telemetry stream to a buffer
> (which i will use to load the serial data to the si4432 radio) instead
> of the UART?
>
> i am thinking to hijack the uart's buffer but i won't be a clean way
> like say instead of
>
>     <module name="telemetry" type="transparent">
>       <configure  name="MODEM_BAUD" value="B57600"/>
>       <configure  name="MODEM_PORT" value="UART6 "/>
>     </module>
>
> we could have
>
>     <module name="telemetry" type="transparent">
>       <configure  name="MODEM_BAUD" value="B57600"/>
>       <configure  name="MODEM_PORT" value="buffer_name"/>
>     </module>
>
> Chris
>
>
> _______________________________________________
> Paparazzi-devel mailing list
> Paparazzi-devel@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/paparazzi-devel




reply via email to

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