Send UDP frame containing CAN parameters to a controller that uses Cannelloni
In my application, I want to send a UDP frame from a microcontroller ( code written in C ) to another one that is using cannelloni in order to convert this UDP frames to CAN ones.
In what format should I send my UDP frame (without using cannelloni) to the other controller? I need to be able to en-decode the wire format of cannelloni
I will just close this issue after you respond me and excuse me for putting my question here because I didn't found any other way to do it.
The details depend on the microcontroller you are trying to send from. In general, the protocol is quite basic and the UDP version is even stateless. That means that you should be able to send frames from almost any IP-enabled platform to an host that actually runs a cannelloni binary. For a rather agnostic implementation you can check this repository which contains a lwip port of cannelloni, I am linking directly to the part that sends UDP frames: https://github.com/mguentner/cannelloni_ports/blob/master/lwip/cannelloni.c#L126
You can check the README if you happen to use an esp32 as others have created software that can interface with cannelloni: https://github.com/mguentner/cannelloni#ecosystem
If you have further questions, it would be helpful if you can explain your project in more detail.