US 12,242,331 B2
Method and apparatus for determining controller area network (CAN) bus loading
Rahul Agrawal, Vasundhra Enclave (IN); Pradeep Singh, Greater Noida West (IN); Devendra Bahadur Singh, Lucknow (IN); and Arun Kumar Barman, Faridabad (IN)
Assigned to NXP USA, Inc., Austin, TX (US)
Filed by NXP USA, Inc., Austin, TX (US)
Filed on Jan. 24, 2023, as Appl. No. 18/158,686.
Claims priority of application No. 202221068835 (IN), filed on Nov. 29, 2022.
Prior Publication US 2024/0176690 A1, May 30, 2024
Int. Cl. G06F 11/07 (2006.01); H04L 12/40 (2006.01)
CPC G06F 11/0784 (2013.01) [H04L 12/4013 (2013.01); H04L 2012/40215 (2013.01); H04L 2012/40273 (2013.01)] 22 Claims
OG exemplary drawing
 
1. A method for determining by a controller area network (CAN) node coupled to a host processor a bus load on a CAN bus, the method comprising:
receiving from the host processor an indication of a time window duration of a time window and a threshold range for acceptable bus load in the time window;
defining a start time and an end time for determining the bus load based on the start time and the time window duration;
snooping states of a state machine in a protocol engine (PE) of the CAN node for each bit of one or more bits detected on the CAN bus between the start time and the end time;
determining the bus load over the time window based on the snooped states, the snooped states indicating whether the CAN bus is active or idle for each bit of the one or more bits detected on the CAN bus between the start time and the end time, wherein the CAN bus is active when the bit corresponds to the CAN frame and idle when the bit does not correspond to the CAN frame;
comparing the bus load to the threshold range; and
sending a signal to the host processor if the bus load exceeds or falls below the threshold range.