It is done for my robot but can be used everywhere else.
The link: https://github.com/an-dr/zklib_espidf_canbus
Using a system of descriptors, you can easily:
- send data to the bus periodically
- automatically store data with specific IDs
- send data in response to the RTR request frame
The developer should specify Store, Response, and Transmit (with a period in ms) descriptors and the library will do the rest.
The only missing and important thing is a mechanism to check which device is online. It will be implemented soon:
https://github.com/an-dr/zklib_espidf_canbus/issues/5
As always, any contribution is welcome. See the opened issues (https://github.com/an-dr/zklib_espidf_canbus/issues) or create a new one.
Join the group on Facebook! https://www.facebook.com/groups/zakhar
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.