I have two MCP2515 stand-alone CAN controllers with an SPI interface, two TJA1042 CAN transceivers, and two Arduino Uno boards. As you may know, TJA1042 has two operational modes:
- sleep mode
- normal mode.
If I want to change the mode of operation of one transceiver from sleep mode to normal mode (wake it up), I should send a wake up pattern waves from the other transceiver over the CAN bus which is in normal mode. For example, one of the wake up patterns is: 5.5 microseconds low, 5.5 microseconds high and again 5.5 microseconds low. Now I don't know how to send these patterns with an Arduino, because MCP2515 has an SPI interface.
I use library: Seeed-Studio/CAN_BUS_Shield
How can I do this?