Add can bridge
Hello,
it might be useful to have the possibility to use the RedirectReader in a script so that one can connect two can busses with a single cli program. This is extremly helpful if one would like to connect e.g. socketcand with a proprietary hardware interface.
Comments are appreciated
I think this is may be very useful 👍
Not a review yet, but a few notes:
- New code should have type annotations, at least for the function signatures.
- The other CLI tools have tests in
test_scripts.pyand e.g.test_player.py,test_logger.pyetc., i think this bridge could also be tested with two virtual buses. - Minor: I think the plural of bus is usually buses, not busses 🤷♂️
Ok. I will work on all those three
I addes some very basic tests now. I do not know at the moment how to test that a message that was received on one bus is forwarded to the other bus. Maybe i can try this again in the next days
Closing in favor of #1961