cancel
Showing results for 
Search instead for 
Did you mean: 

Communication between STM32 and Raspberry Pi Ethernet

polram
Visitor

Hello

I am working in a project where I'm connecting 2 boards STM32 with FDCAN Bus, one board has all the sensors connected, and the other one receives the data, basically I send floats (measures of the sensors) and It is done!, but now, I would like to transmit from my second STM32 (receiver) to a Raspberry Pi 3 via Ethernet. Honestly, I don't know where to start or what configuratios should I try

 

Thanks

1 REPLY 1
STackPointer64
ST Employee

Hello @polram, and welcome to ST Community!

For your case, I recommend starting by downloading one of ST’s LwIP examples, specifically the UDP echo client. You can then adapt it to your use case by creating a UDP protocol control block (PCB), copying your payload to it, and sending it on a port of your choice. On the Raspberry Pi side, you can create a UDP server script that listens on that port, receives the datagrams, and extracts the sent data.

Best regards,

To improve visibility of answered topics, please click 'Accept as Solution' on the reply that resolved your issue or answered your question.