I am having trouble waking my Tracker One from sleep by CAN interrupt. The
CAN_INT pin is falling low whenever it detects activity. However, when the Tracker One is falling asleep it takes close to 10s to shutdown the modem and fall to sleep. If CAN traffic happens during that time the Tracker won't wake up via CAN since the
CAN_INT pin is already low and the falling edge cannot be detected by the hardware.
I tried to put a
digitalRead(CAN_INT) statement in the sleep callback function but it is executed before the modem shuts down.
Do you know if there is a way to read the CAN_INT pin right before the Tracker falls to sleep so that the interrupt hardware can detect a falling edge? Preferably from the application part of the firmware?
I appreciate your help.