IP Library › Granted Patent US 12,332,727
Granted Patent B2
US 12,332,727 · App. 18/309,397 · Granted Jun 17, 2025

Device and method for checking frames from a communication bus

Inventor: Fred Rennig (Nandlstadt, DE)
Assignee: STMicroelectronics Application GMBH
G06F11/0739H04L43/08H04L12/40H04L2012/40215
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,332,727
App. No.
18/309,397
Granted
Jun 17, 2025
Kind
B2
Abstract

In accordance with an embodiment, a method includes determining whether a frame received from a communication bus is encoded according to a particular communication protocol and is addressed to a particular electronic device; increasing a frame count value when the frame is encoded according to the particular communication protocol and is addressed to the particular electronic device based on the determination, wherein increasing the frame count value comprises increasing a count of a modular arithmetic counter circuit having a first bit depth, and the frame count value is constrained to a modulus value of the modular arithmetic counter circuit; setting a frame count status bit based on comparing the frame count value to threshold values, and transmitting a frame comprising the frame counter status bit over the communication bus, and resetting the frame count value at an end of a monitoring time interval.

Claims (55)

1. An electronic device configured to be coupled to a communication bus to receive therefrom digital signals arranged in frames comprising frames encoded according to a particular communication protocol, the electronic device comprising:

a comparator circuit configured to, during a monitoring time interval:

compare a frame count value to a first frame count threshold value and, as a result of the frame count value being equal to the first frame count threshold value, set a frame counter status bit to a first value indicative of a first operating status of the electronic device, wherein the frame count value is a function of a number of frames received during the monitoring time interval that are encoded according to the communication protocol and are addressed to the electronic device, and

compare the frame count value to a second frame count threshold value different from the first frame count threshold value and, as a result of the frame count value being equal to the second frame count threshold value, set the frame counter status bit to a second value indicative of a second operating status of the electronic device, wherein the frame counter status bit is set to either the first value based on comparing the frame count value to the first frame count threshold value or to the second value based on comparing the frame count value to the second frame count threshold; and

a controller circuit configured to transmit over the communication bus a frame comprising the frame counter status bit at an end of the monitoring time interval, and to reset the frame count value at the end of the monitoring time interval.

2. The electronic device of claim 1 , wherein the electronic device further comprises:

a frame counter circuit configured to produce the frame count value and comprising a modular arithmetic counter circuit having a certain bit depth.

3. The electronic device of claim 2 , wherein the electronic device is configured to receive a number j of frames during the monitoring time interval, and the modular arithmetic counter circuit has a non-zero bit depth equal to or lower than an integer part of log 2 (j).

4. The electronic device of claim 2 , wherein the comparator circuit has a bit depth equal to the certain bit depth of the modular arithmetic counter circuit.

5. The electronic device of claim 1 , further comprising at least one register configured to store the first frame count threshold value and the second frame count threshold value, wherein the at least one register is accessible via the communication bus in read mode and write mode.

6. The electronic device of claim 1 , further comprising watchdog sensing circuitry configured to sense watchdog events occurring at certain time intervals and comprising a watchdog event counter circuit configured to provide a watchdog count value of sensed watchdog events, wherein the watchdog sensing circuitry is configured to produce, as a result of a watchdog event being sensed:

a transmission over the communication bus of a frame comprising the frame counter status bit,

an increase in the watchdog count value,

a comparison of the watchdog count value to a watchdog count threshold value, and

as a result of the watchdog count value being equal to the watchdog count threshold value, a reset of the frame count value and of the watchdog count value.

7. The electronic device of claim 6 , comprising at least one register configured to store the watchdog count threshold value, wherein the at least one register is accessible via the communication bus in read mode and write mode.

8. The electronic device of claim 6 , comprising an oscillator circuit configured to generate the watchdog events at regular time intervals.

9. The electronic device of claim 6 , wherein sensing watchdog events occurring at the certain time intervals comprises receiving watchdog frames via the communication bus at regular time intervals.

10. The electronic device of claim 1 , wherein the controller circuit is configured to reset the frame count value as a result of receiving a reset command frame via the communication bus.

11. The electronic device of claim 1 , wherein the controller circuit is configured to switch the electronic device to a fail-safe operating mode as a result of the frame counter status bit having the second value indicative of the second operating status of the electronic device at the end of the monitoring time interval.

12. A system comprising:

the communication bus according to claim 1 ;

at least one electronic device according to claim 1 , the at least one electronic device coupled to the communication bus; and

a further electronic device coupled to the communication bus and configured to send over the communication bus frames addressed to the at least one electronic device.

13. A vehicle comprising the system according to claim 12 .

14. An integrated circuit comprising:

a receiver configured to be coupled to a communication bus, and to receive a digital signal arranged in frames encoded according to a particular communication protocol;

a comparator circuit configured to, during a monitoring time interval:

compare a frame count value to a first frame count threshold value, wherein the frame count value is a function of a number of frames received during the monitoring time interval that are encoded according to the communication protocol and are addressed to a particular electronic device,

set a frame counter status bit to a first value indicative of a first operating status of the particular electronic device when the frame count value is equal to the first frame count threshold value,

compare the frame count value to a second frame count threshold value different from the first frame count threshold value, and

set the frame counter status bit to a second value indicative of a second operating status of the particular electronic device when the frame count value is equal to the second frame count threshold value, wherein the frame counter status bit is set to either the first value based on comparing the frame count value to the first frame count threshold value or to the second value based on comparing the frame count value to the second frame count threshold; and

a controller circuit configured to transmit a frame comprising the frame counter status bit over the communication bus at an end of the monitoring time interval, and to reset the frame count value at the end of the monitoring time interval.

15. The integrated circuit of claim 14 , wherein:

the communication bus is a Controller Area Network (CAN) communication bus; and

the particular communication protocol is a CAN Flexible Data Rate (FD) communication protocol.

16. A method, comprising:

determining whether a frame received from a communication bus is encoded according to a particular communication protocol and is addressed to a particular electronic device;

increasing a frame count value when the frame is encoded according to the particular communication protocol and is addressed to the particular electronic device based on the determination;

during a monitoring time interval:

comparing the frame count value to a first frame count threshold value,

setting a frame counter status bit to a first value indicative of a first operating status of the particular electronic device when the frame count value is equal to the first frame count threshold value,

comparing the frame count value to a second frame count threshold value different from the first frame count threshold value, and

setting the frame counter status bit to a second value indicative of a second operating status of the particular electronic device when the frame count value is equal to the second frame count threshold value, wherein the frame counter status bit is set to either the first value based on comparing the frame count value to the first frame count threshold value or to the second value based on comparing the frame count value to the second frame count threshold; and

transmitting a frame comprising the frame counter status bit over the communication bus at an end of the monitoring time interval, and resetting the frame count value at the end of the monitoring time interval.

17. The method of claim 16 , further comprising:

monitoring watchdog events occurring at certain time intervals; and

transmitting a frame comprising the frame counter status bit upon sensing a monitored watchdog event.

18. The method of claim 17 , further comprising:

providing a count of the sensed monitored watchdog events; and

when the count of the sensed monitored watchdog events reaches a predetermined threshold,

resetting the frame count value, and

resetting the count of the sensed watchdog events.

19. The method of claim 16 , further comprising switching the particular electronic device into a fail-safe mode when the frame counter status bit has the second value indicative of the second operating status of the particular electronic device at the end of the monitoring time interval.

20. The method of claim 19 , wherein the communication bus is a control bus of a vehicle.

Priority Claims (1)
IT 102020000004978 · Mar 9, 2020 · national
Continuity (2)
Continuation 17182914 · Feb 23, 2021
Related Publication 20230269150A1 · Aug 24, 2023
References Cited (24)
US 9389949B1 · Campbell · 2016 [cited by applicant]
US 10678726B2 · Rennig et al. · 2020 [cited by applicant]
US 11677648B2 · Rennig · 2023 [cited by examiner]
US 20060107154A1 · Bansal et al. · 2006 [cited by applicant]
US 20080285690A1 · Kwon et al. · 2008 [cited by applicant]
US 20150286198A1 · Sugeno et al. · 2015 [cited by applicant]
US 20160308887A1 · Jung · 2016 [cited by examiner]
US 20180007076A1 · Galula et al. · 2018 [cited by applicant]
US 20180173579A1 · Potlapally et al. · 2018 [cited by applicant]
US 20180234248A1 · Imamoto et al. · 2018 [cited by applicant]
US 20190294488A1 · Marui et al. · 2019 [cited by applicant]
US 20190344088A1 · Fishler et al. · 2019 [cited by applicant]
US 20200065175A1 · Hoegberg · 2020 [cited by applicant]
US 20210226872A1 · Ujiie · 2021 [cited by examiner]
CN 106093673A · 2016 [cited by applicant]
CN 106123476A · 2016 [cited by applicant]
CN 106790053A · 2017 [cited by applicant]
CN 108965082A · 2018 [cited by applicant]
CN 109309598A · 2019 [cited by applicant]
EP 3547620A1 · 2019 [cited by applicant]
JP H10107805A · 1998 [cited by applicant]
WO 2019122589A1 · 2019 [cited by applicant]
Wang, Jinling, “The standardized design and testing of the Dedicated test point based on the CAN-bus node”, TN431.2, Oct. 15, 2013, 62 pages. [cited by applicant]
Khan, Sultan Daud et al., “DISAM: Density Independent and Scale Aware Model for Crowd Counting and Localization”, IEEE International Conference on Image Processing (ICIP), Sep. 22-25, 2019, 5 pages. [cited by applicant]