Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirecting message to serial line #185

Open
Krupass opened this issue Mar 25, 2023 · 1 comment
Open

Redirecting message to serial line #185

Krupass opened this issue Mar 25, 2023 · 1 comment

Comments

@Krupass
Copy link

Krupass commented Mar 25, 2023

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?

@riebl
Copy link
Owner

riebl commented Mar 26, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants