Working code that can be used to troubleshoot CAN