-
Hi, We are trying to use lighthouse deck and AI deck together, while being able to send custom data between crazyflie and lighthouse deck. We understand that currently this is a bit problematic as they both use UART1 to communicate with crazyflie. I am aware that one solution is to use https://github.com/neoamos/Lighthouse-and-AI-Deck-Compatibility (in essence routing communication via Nina). While this works great, it introduces some issues when trying to find a way to communicate custom data from AI deck to crazyflie. I suppose my question can be split into two
Thank you for all the help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi, Yes, when using the AI deck and Lighthouse deck together the UART1 will be the problem. But the UART1 is only a problem for the GAP8<>STM32 link, the UART2 which is used for ESP32<>STM32 can still be used. We've made an implementation of a protocol we've named CPX which is able to send data back and forth between the GAP8 and STM32 by going though the ESP32. This will add latency, but will make it possible to communicate. Here's the doc
wifi-img-streamer.c - Using CPX to send and receive data to/from the PC, but this could be redirected to the STM32 by just changing the target cpx.h - Using CPX on the STM32. This still needs some improvements to it's possible to route the data to an app instead of using it directly from inside the firmware. But hooking in here will allow you to receive the messages. |
Beta Was this translation helpful? Give feedback.
Hi,
Yes, when using the AI deck and Lighthouse deck together the UART1 will be the problem. But the UART1 is only a problem for the GAP8<>STM32 link, the UART2 which is used for ESP32<>STM32 can still be used. We've made an implementation of a protocol we've named CPX which is able to send data back and forth between the GAP8 and STM32 by going though the ESP32. This will add latency, but will make it possible to communicate. Here's the doc
wifi-img-streamer.c - Using CPX to send and receive data to/from the PC, but this could be redirected to the…