This is simpli communication between two uC. On this video show two version. First version without transceivers IC. Sceond version implementing two transceivers TJA1050. Code written in C with support HAL library.
If you need more details, visit link below (presentation in PL lang.):
https://www.scribd.com/document/53869...
Enjoy!