paparazzi-devel
[Top][All Lists]
Advanced

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

Re: [Paparazzi-devel] paparazzi secure datalink compile errors.


From: Gautier Hattenberger
Subject: Re: [Paparazzi-devel] paparazzi secure datalink compile errors.
Date: Thu, 14 Jan 2021 14:21:20 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

Hello Michal,

I made a correction in pprzlink-rust for some new field types (fixed size arrays) and now everything is compiling on the ground side. I have also implemented the RNG driver for ChibiOS (PR soon) and it is also compiling on board (and led is blinking).

But I can't get the telemetry working, it seems to be stuck in init phase:

Value for ivy_bus: 127.255.255.255:2010
Value for ping_period: 1000
Value for status_period: 5000
Value for baudrate: 57600
Value for port: "/dev/ttyACM0"
Use UDP: false
Use UDP broadcast: false
Value for remote_addr: 127.0.0.1
Value for pprzlink version: v2.0
Global message class is set to Telemetry
Sender id: ground_dl
Link name: Value for aircraft name: Some("TEST")
Value for aircraft ID: 199
Enable GEC: true
Opening /home/gautier/dev/paparazzi/var/aircrafts/TEST/ap/generated/keys_gcs.h
Starting encrypted datalink...
Broadcasting on network 127.255.255.255, port 2010
returning msg1, waiting msg2 again
returning msg1, waiting msg2 again
returning msg1, waiting msg2 again

Is it suppose to work with pprzlink v2 ? With an oscilloscope, I can see some uplink message from rustlink, but no reply at all from the autopilot apparently.

Any idea ?

Thanks

Gautier

Le 14/01/2021 à 00:59, Michal Podhradsky a écrit :
Hi Gautier,
make sure to delete Cargo.lock and do cargo clean before cargo build

Rusthacl clones hacl-c and compiles it: https://github.com/podhrmic/rusthacl/blob/master/build.rs#L9

Are you able to compile the key-generator from the command line?
Michal

On Wed, Jan 13, 2021 at 2:23 PM Gautier Hattenberger <gautier.hattenberger@gmail.com> wrote:

Hello Michal,

Thanks for your help.

It seems that the rustlink tool don't compile and install hacl-c automatically. Maybe the build.rs script is not called. Any idea ?

Gautier

Le 13/01/2021 à 22:00, Michal Podhradsky a écrit :
Hi Chris, Gautier,

the key generator was depending on a repo that no longer exists. I fixed it in this PR: https://github.com/paparazzi/paparazzi/pull/2645

I haven't used paparazzi in a while, and all the secure telemetry modules seem to be missing something (or they haven't been updated to compile), so if you are able to test it end to end, that would be great.

Regards
Michal

On Wed, Jan 13, 2021 at 9:32 AM Chris <hendrixgr@gmail.com> wrote:
After reading a little about rust i think the warnings are fixed if we
replace

Err(why) => panic!("couldn't write to {}: {}", display, why.description()),

with

Err(why) => panic!("couldn't create {}: {}", display, why.to_string()),

and comment out line 33 "use std::error::Error;"

I haven't tried it yet but the description method will be hard
deprecated and must be replaced in order "why" to return a string.

Chris


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

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

_______________________________________________
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]