vanetza icon indicating copy to clipboard operation
vanetza copied to clipboard

Redirecting message to serial line

Open Krupass opened this issue 1 year ago • 1 comments

Hello, in nonofficial document I found out parametr for socktap --can-serial=/dev/ttyUSB0 . I think it should capture incoming messages and send them to serial line, but when I try to use it, it throws ERROR: unrecognised option '--can-serial=/dev/ttyUSB0'.

Any idea how to make it work or some solution with same function?

Krupass avatar Mar 25 '23 21:03 Krupass

Hi @Krupass,

Such a feature has never existed officially, and I am also unaware of it "unofficially". If you only want to forward a particular message type, such as CAMs, I suggest adding the forwarding logic to the application's indication method, e.g. CamApplication::indicate. If you want to capture and forward all incoming packets, you should have a look at BenchmarkApplication which is notified in BenchmarkApplication::tap_packet whenever a packet is received. You can use it as a template for creating a ForwardPacketsApplication.

riebl avatar Mar 26 '23 17:03 riebl