DE102022214193A1 - Method and device for operating an error counter in a technical system - Google Patents

Method and device for operating an error counter in a technical system Download PDF

Info

Publication number
DE102022214193A1
DE102022214193A1 DE102022214193.8A DE102022214193A DE102022214193A1 DE 102022214193 A1 DE102022214193 A1 DE 102022214193A1 DE 102022214193 A DE102022214193 A DE 102022214193A DE 102022214193 A1 DE102022214193 A1 DE 102022214193A1
Authority
DE
Germany
Prior art keywords
error
counter
error event
memory
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
DE102022214193.8A
Other languages
German (de)
Inventor
Petr Pfeifer
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Robert Bosch GmbH
Original Assignee
Robert Bosch GmbH
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Robert Bosch GmbH filed Critical Robert Bosch GmbH
Priority to DE102022214193.8A priority Critical patent/DE102022214193A1/en
Publication of DE102022214193A1 publication Critical patent/DE102022214193A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

Die Erfindung betrifft ein Verfahren zum Betreiben eines Fehlerspeichers in einem technischen System, mit folgenden Schritten:- Regelmäßiges Durchführen (S1) einer Überprüfung zum Erkennen eines Fehlerereignisses;- Inkrementieren (S2) eines Fehlerereigniszählers (FE) und eines Fehleranzahlzählers (FA) in einem Fehlerspeicher (24) bei Erkennen des Fehlerereignisses;- Dekrementieren (S5) des Fehlerereigniszählers (FE), wenn dieser ungleich 0 ist und die Überprüfung kein Fehlerereignis ergeben hat, wobei der Fehlerspeicher (24) einer durch einen Prozessor des technischen Systems (1) gemeinsam verarbeitbaren Dateneinheit mit mehreren Bits entspricht, so dass jedem der Zähler eine Anzahl von Bits zugeordnet sind, wobei das Inkrementieren des Fehlerereigniszählers (FE) und des Fehleranzahlzählers (FA) durchgeführt wird, indem zu dem Wert des Fehlerspeichers (24) ein Wert addiert wird, der sich aus den Wertigkeiten der niederwertigen Bitpositionen des Fehlerereigniszählers (FE) und des Fehleranzahlzählers (FA) ergeben;- Bei Erreichen eines Fehlerereignisschwellenwerts (S) durch den Fehlerereigniszähler (FE), Durchführen einer Fehlerbehandlung;- Durchführen (S4) einer Diagnose mithilfe des Werts des Fehleranzahlzählers (FA).The invention relates to a method for operating an error memory in a technical system, with the following steps:- Regularly carrying out (S1) a check to detect an error event;- Incrementing (S2) an error event counter (FE) and an error count counter (FA) in an error memory (24) when the error event is detected;- Decrementing (S5) the error event counter (FE) if it is not equal to 0 and the check has not resulted in an error event, wherein the error memory (24) corresponds to a data unit with several bits that can be processed jointly by a processor of the technical system (1), so that a number of bits are assigned to each of the counters, wherein the incrementing of the error event counter (FE) and the error count counter (FA) is carried out by adding a value to the value of the error memory (24), which value results from the values of the low-order bit positions of the error event counter (FE) and the error count counter (FA);- When a error event threshold (S) by the error event counter (FE), performing error handling;- performing (S4) a diagnosis using the value of the error count counter (FA).

Description

Technisches GebietTechnical area

Die Erfindung betrifft technische Systeme mit Diagnoseeinrichtungen zum Erkennen von Fehlern, und insbesondere Verfahren zum Signalisieren einer Fehlerbehandlung.The invention relates to technical systems with diagnostic devices for detecting errors, and in particular to methods for signaling error handling.

Technischer HintergrundTechnical background

Technische Systeme weisen in der Regel Diagnosefunktionen auf, mit denen verschiedene Sicherheitsmechanismen implementiert werden. Steuereinheiten, in denen die Diagnosefunktionen implementiert sind, können dazu eine Frage/Antwort-Kommunikation als Sicherheitsmechanismus implementieren, wie er beispielsweise zwischen einer Steuereinheit und einem externen Watchdog besteht. Der externe Watchdog sichert den Übergang zu einem sicheren Zustand des technischen Systems, wenn ein Fehler in der Steuereinheit festgestellt wird.Technical systems usually have diagnostic functions that are used to implement various safety mechanisms. Control units in which the diagnostic functions are implemented can implement question/answer communication as a safety mechanism, such as that which exists between a control unit and an external watchdog. The external watchdog ensures the transition to a safe state of the technical system if an error is detected in the control unit.

In realen Systemen können interne und externe Einflüsse und Störungen zu dem Erkennen eines Fehlers führen. Um auszuschließen, dass fälschlicherweise ein Fehler erkannt wird (false positive), wird daher die Fehlerbehandlung nicht direkt bei einem erstmaligen Erkennen eines bestimmten Fehlerereignisses gestartet, sondern erst nach Erkennen des Auftretens einer bestimmten Zahl von aufeinanderfolgenden Fehlerereignissen. Dazu wird in der Regel ein Fehlerereigniszähler implementiert. Der Fehlerereigniszähler wird betrieben, indem dieser inkrementiert wird, wenn Fehlerereignisse bei entsprechenden aufeinanderfolgenden Überprüfungen erkannt werden, und indem dieser dekrementiert wird, wenn dieser einen Wert ungleich 0 aufweist und eine Überprüfung keinen Fehler ergeben hat. Somit wird der Fehlerereigniszähler inkrementiert, wenn ein Fehlerereignis festgestellt wird, und dekrementiert, wenn der Fehlerereigniszähler nicht null ist und eine Überprüfung keinen Fehler ergeben hat.In real systems, internal and external influences and disturbances can lead to the detection of an error. To prevent an error from being detected incorrectly (false positive), error handling is not started immediately when a specific error event is detected for the first time, but only after the occurrence of a certain number of consecutive error events has been detected. An error event counter is usually implemented for this purpose. The error event counter is operated by incrementing it when error events are detected in corresponding consecutive checks, and by decrementing it if it has a value other than 0 and a check has not revealed an error. The error event counter is therefore incremented when an error event is detected and decremented if the error event counter is not zero and a check has not revealed an error.

Offenbarung der ErfindungDisclosure of the invention

Erfindungsgemäß ist ein Verfahren zum Betreiben eines Fehlerereigniszählers gemäß Anspruch 1 sowie eine Vorrichtung mit einem Fehlerereigniszähler gemäß dem nebengeordneten Anspruch vorgesehen.According to the invention, a method for operating an error event counter according to claim 1 and a device with an error event counter according to the independent claim are provided.

Weitere Ausgestaltungen sind in den abhängigen Ansprüchen angegeben.Further embodiments are specified in the dependent claims.

Gemäß einem ersten Aspekt ist ein Verfahren zum Betreiben eines Fehlerspeichers in einem technischen System vorgesehen, mit folgenden Schritten:

  • - Regelmäßiges Durchführen einer Überprüfung zum Erkennen eines Fehlerereignisses;
  • - Inkrementieren eines Fehlerereigniszählers und eines Fehleranzahlzählers in einem Fehlerspeicher bei Erkennen des Fehlerereignisses;
  • - Dekrementieren des Fehlerereigniszählers, wenn dieser ungleich 0 ist und die Überprüfung kein Fehlerereignis ergeben hat, wobei der Fehlerspeicher einer durch einen Prozessor gemeinsam verarbeitbaren Dateneinheit, insbesondere in einem Byte, einem Wort oder einem Doppelwort, entspricht, so dass jedem der Zähler eine Anzahl von Bits zugeordnet sind, wobei das Inkrementieren des Fehlerereigniszählers und des Fehleranzahlzählers durchgeführt wird, indem zu dem Wert des Fehlerspeichers ein Wert addiert wird, der sich aus den Wertigkeiten der niederwertigen Bitpositionen des Fehlerereigniszählers und des Fehleranzahlzählers ergeben;
  • - Bei Erreichen eines Fehlerereignisschwellenwerts durch den Fehlerereigniszähler, Durchführen einer Fehlerbehandlung;
  • - Durchführen einer Diagnose mithilfe des Werts des Fehleranzahlzählers.
According to a first aspect, a method for operating an error memory in a technical system is provided, comprising the following steps:
  • - Performing a check regularly to detect an error event;
  • - Incrementing an error event counter and an error count counter in an error memory when the error event is detected;
  • - decrementing the error event counter if it is not equal to 0 and the check has not resulted in an error event, wherein the error memory corresponds to a data unit that can be processed jointly by a processor, in particular in a byte, a word or a double word, so that a number of bits are assigned to each of the counters, wherein the incrementing of the error event counter and the error count counter is carried out by adding to the value of the error memory a value that results from the values of the least significant bit positions of the error event counter and the error count counter;
  • - When the error event counter reaches an error event threshold, perform error handling;
  • - Performing a diagnosis using the value of the error count counter.

Wie oben beschrieben, dienen Fehlerereigniszähler dazu, die Anzahl einzelner Fehlerereignisse zu akkumulieren und bei Feststellen einer Fehlerfreiheit zu dekrementieren. Das Feststellen einzelner Fehlerereignisse führt daher nicht sofort zum Auslösen einer Fehlerbehandlung. Der Fehlerereigniszähler wird entsprechend genutzt, Fehlerereignisse zu akkumulieren und bei Überschreiten oder Erreichen eines Fehlerereignisschwellenwerts eine zugeordnete Fehlerbehandlung auszulösen. Jedoch sind die Diagnosefähigkeiten durch einen einzelnen Fehlerereigniszähler beschränkt, da nicht erkannt werden kann, wie viele Fehlerereignisse insgesamt, d.h. z.B. über die gesamte Lebensdauer des Systems hinweg, aufgetreten sind, die nicht zu einem Auslösen einer Fehlerbehandlung führen.As described above, error event counters are used to accumulate the number of individual error events and to decrement them when no errors are detected. The detection of individual error events therefore does not immediately trigger error handling. The error event counter is used accordingly to accumulate error events and to trigger an associated error handling when an error event threshold is exceeded or reached. However, the diagnostic capabilities are limited by a single error event counter because it cannot be determined how many error events have occurred in total, i.e., for example, over the entire lifespan of the system, that do not trigger error handling.

Der Fehlerereigniszähler wird zur Erkennung von Problemen in System und Diagnose verwendet. Der Wert des Fehlerereigniszählers kann periodisch oder nur am Ende einer Systemaktivarbeitszeit ausgelesen werden, um Informationen über Probleme im Sicherheitssystem zu erhalten. Vorzugsweise muss der Wert des Fehlerereigniszählers niedrig und stabil sein (idealerweise die dauerhafte Null), wenn keine Probleme im System erkannt werden.The fault event counter is used for detecting problems in the system and for diagnostics. The value of the fault event counter can be read periodically or only at the end of a system active working time to obtain information about problems in the safety system. Preferably, the value of the fault event counter must be low and stable (ideally the permanent zero) when no problems are detected in the system.

Daher liefert ein periodisches bzw. kontinuierliches Auslesen des Fehlerereigniszählers eine aktuelle Information über mögliche oder kommende Sicherheitsprobleme in einem System. Wenn der Zählerwert am Ende der Systemaktivarbeitszeit niedrig ist, zeigt dies, dass das System in einem guten Zustand ist.Therefore, a periodic or continuous reading of the error event counter provides current information about possible or upcoming safety problems in a system. If the counter value is low at the end of the system active working time, rig, this indicates that the system is in good condition.

Sporadische Fehlerereignisse, die nur einzeln auftreten, führen so in der Regel nicht zum Auslösen der Fehlerbehandlung, können jedoch auf ein Problem in dem technischen System, insbesondere auf einen sich langsamen entwickelnden Fehler hinweisen.Sporadic error events that only occur individually do not usually trigger error handling, but can indicate a problem in the technical system, in particular a slowly developing error.

Die Fehlerbehandlung wird ausgelöst, wenn der Fehlerereigniszähler den Fehlerereignisschwellenwert übersteigt, d.h. eine Häufigkeit des Feststellens eines Fehlers zu hoch ist. Die Fehlerbehandlung kann Sicherheitsmaßnahmen umfassen, bei denen das System stoppt oder in einen sicheren Zustand gebracht wird.Error handling is triggered when the error event counter exceeds the error event threshold, i.e. the frequency of detecting an error is too high. Error handling can include safety measures where the system stops or is brought into a safe state.

Der Fehlerereigniszähler kann eine Bittiefe von 1 bis 3 und der Fehleranzahlzähler eine Bittiefe in Anzahl der übrigen Bits aufweisen.The error event counter can have a bit depth of 1 to 3 and the error count counter can have a bit depth in the number of remaining bits.

Der Fehlerereignisschwellenwert wird in der Regel als eine einstellige Anzahl von zwischen 2 und 7 Fehlerereignissen gewählt, so dass in einem 8-, 16- oder 32-Bit-System ein entsprechendes Fehlerregister oder einen Fehlerspeicher für den Fehlerereigniszähler nicht vollständig genutzt wird. Insbesondere werden bei einem Fehlerereignisschwellenwert für den Fehlerereigniszähler lediglich ein bis drei Bits benötigt, um den Zähler zu realisieren. Die übrigen Bits werden dabei herkömmlich nicht weiter genutzt.The error event threshold is usually chosen as a single-digit number of between 2 and 7 error events, so that in an 8-, 16- or 32-bit system, a corresponding error register or error memory for the error event counter is not fully used. In particular, with an error event threshold for the error event counter, only one to three bits are needed to implement the counter. The remaining bits are not used further in the usual way.

Diesbezüglich ist vorgesehen, die weiteren Bits des Fehlerregisters bzw. des Fehlerspeichers für die Akkumulation der Anzahl der insgesamt detektierten Fehlerereignisse als Fehleranzahl zu nutzen. Somit kann eine weitere Diagnosemöglichkeit bereitgestellt werden, ohne dass ein zusätzlicher Speicherplatz in einer Steuereinheit des technischen Systems erforderlich ist bzw. vorgesehen werden muss.In this regard, it is intended to use the additional bits of the error register or the error memory to accumulate the total number of detected error events as the number of errors. This makes it possible to provide an additional diagnostic option without additional memory space being required or having to be provided in a control unit of the technical system.

Gemäß dem obigen Verfahren ist dazu vorgesehen, ein Fehlerregister bzw. einen Fehlerspeicher so zu betreiben, dass sowohl die Anzahl aufeinanderfolgender Fehlerereignisse mit Hilfe eines Fehlerereigniszählers ermittelt werden kann, um diese regelmäßig mit dem Fehlerereignisschwellenwert zu vergleichen, und andererseits die gesamte Fehleranzahl der aufgetretenen Fehlerereignisse zu Diagnosezwecken in einem Fehleranzahlzähler bereitzustellen. Dies wird dadurch erreicht, dass bei Auftreten eines Fehlerereignisses eine einzige Manipulation des Fehlerspeichers, der sowohl den Fehlerereigniszähler als auch den Fehleranzahlzähler implementiert, ausreicht bzw. vorgenommen werden kann. Zu dem in dem Fehlerspeicher gespeicherten Wert wird ein Wert addiert, der sich aus der Wertigkeit der niederwertigsten Bitposition des Fehlerereigniszählers und der niederwertigsten Bitposition des Fehleranzahlzählers ergibt.According to the above method, an error register or error memory is operated in such a way that the number of consecutive error events can be determined using an error event counter in order to regularly compare this with the error event threshold value, and on the other hand the total number of errors of the error events that have occurred is made available in an error count counter for diagnostic purposes. This is achieved in that when an error event occurs, a single manipulation of the error memory, which implements both the error event counter and the error count counter, is sufficient or can be carried out. A value that results from the significance of the least significant bit position of the error event counter and the least significant bit position of the error count counter is added to the value stored in the error memory.

Wenn beispielsweise die ersten drei Bits (B0, B1, B2) eines 8-bitigen Fehlerspeichers einem Fehlerereigniszähler zugeordnet sind und die sich daran anschließenden Bits (B3, B4, B5, B6, B7) einem Fehleranzahlzähler zugeordnet sind, so ergibt sich der zu addierende Wert bei Auftreten eines Fehlerereignisses als 23 + 20= 9, wobei 3 und 0 den entsprechenden niederwertigsten Bitpositionen des Fehleranzahlzählers bzw. des Fehlerereigniszählers entsprechen.For example, if the first three bits (B0, B1, B2) of an 8-bit error memory are assigned to an error event counter and the subsequent bits (B3, B4, B5, B6, B7) are assigned to an error count counter, the value to be added when an error event occurs is 2 3 + 2 0 = 9, where 3 and 0 correspond to the corresponding least significant bit positions of the error count counter and the error event counter, respectively.

Diese Vorgehensweise ist auch bei anderer Anordnung der Bits für den Fehlerereigniszähler und den Fehleranzahlzähler innerhalb des Fehlerspeichers möglich. Auf diese Weise können die gesamte Fehlerereignisanzahl und die Anzahl der unmittelbar aufeinanderfolgenden Fehlerereignisse innerhalb eines einzelnen Fehlerspeichers überwacht werden, so dass zusätzliche Diagnosemöglichkeiten bereitgestellt werden, um das sporadische Auftreten von Fehlerereignissen auswerten zu können.This approach is also possible with a different arrangement of the bits for the error event counter and the error count counter within the error memory. In this way, the total number of error events and the number of immediately consecutive error events can be monitored within a single error memory, providing additional diagnostic options to evaluate the sporadic occurrence of error events.

Die Fehlerbehandlung kann ein Bringen einer oder mehreren Komponenten des technischen Systems in einen sicheren Zustand oder ein Abschalten einer oder mehreren der Komponenten des technischen Systems abhängig von dem Zählerwert des Fehlerereigniszählers umfassen.The error handling may include bringing one or more components of the technical system into a safe state or shutting down one or more of the components of the technical system depending on the counter value of the error event counter.

Insbesondere kann das durch die Fehlerbehandlung ausgelöste Ereignis (sicherer Zustand, Abschalten, usw.) abhängig von dem Zählerwert des Fehleranzahlzählers bestimmt werden.In particular, the event triggered by the error handling (safe state, shutdown, etc.) can be determined depending on the counter value of the error count counter.

Das Durchführen der Diagnose kann einen Schwellenwertvergleich der gesamten Fehleranzahl des Fehleranzahlzählers umfassen, wobei bei Überschreiten eines Schwellenwerts durch die Fehleranzahl eine Warnung signalisiert wird.Performing the diagnosis may include a threshold comparison of the total number of errors in the error count counter, whereby a warning is signaled if the number of errors exceeds a threshold.

Kurzbeschreibung der ZeichnungenShort description of the drawings

Ausführungsformen werden nachfolgend anhand der beigefügten Zeichnungen näher erläutert. Es zeigen:

  • 1 eine schematische Darstellung eines technischen Systems mit einer Steuereinheit;
  • 2 ein Flussdiagramm zur Veranschaulichung eines Verfahrens zur Diagnose von Funktionen in dem technischen System und zum Betreiben und Auswerten eines Fehlerzählers; und
  • 3 eine schematische Darstellung eines Fehlerspeichers mit einem Fehlerereigniszähler und einem Fehleranzahlzähler.
Embodiments are explained in more detail below with reference to the attached drawings. They show:
  • 1 a schematic representation of a technical system with a control unit;
  • 2 a flow chart illustrating a method for diagnosing functions in the technical system and for operating and evaluating an error counter; and
  • 3 a schematic representation of an error memory with an error event counter and an error count counter.

Beschreibung von AusführungsformenDescription of embodiments

1 zeigt schematisch ein technisches System 1, wie beispielsweise ein Fahrzeugsystem, mit einer Steuereinheit 2, in der ein Mikroprozessor 21 oder Mikrocontroller eingesetzt ist. In der Steuereinheit 1 sind Diagnosefunktionen zum Diagnostizieren von Systemfunktionen des technischen Systems 1 implementiert. Systemfunktionen des technischen Systems 1 können Hardwarefunktionen von Steuereinheit-externen Hardwarekomponenten 3, wie von Sensoren oder Aktuatoren, als Softwarefunktionen, die in der Steuereinheit 2 implementiert sind und zur Ausführung in dem Mikroprozessor oder Mikrocontroller vorgesehen sind, und Funktionalitäten von in der Steuereinheit 2 implementierten sonstigen Hardwarekomponenten, wie Speicherkomponenten 21, Analog/Digital-Wandler 22, Prozessor 23 und dergleichen, umfassen. 1 shows schematically a technical system 1, such as a vehicle system, with a control unit 2 in which a microprocessor 21 or microcontroller is used. Diagnostic functions for diagnosing system functions of the technical system 1 are implemented in the control unit 1. System functions of the technical system 1 can include hardware functions of hardware components 3 external to the control unit, such as sensors or actuators, as software functions that are implemented in the control unit 2 and are intended for execution in the microprocessor or microcontroller, and functionalities of other hardware components implemented in the control unit 2, such as memory components 21, analog/digital converter 22, processor 23 and the like.

Die Diagnosefunktionen überprüfen in geeigneter Weise einzelne Systemfunktionen und ordnen jeder überwachten Systemfunktion einen Fehlerspeicher 24 zu. Der Fehlerspeicher kann in Form eines Registers vorgesehen sein, um eine Dateneinheit, z.B. in Form eines Bytes, eines Worts oder eines Doppelworts zu speichern.The diagnostic functions check individual system functions in a suitable manner and assign an error memory 24 to each monitored system function. The error memory can be provided in the form of a register in order to store a data unit, e.g. in the form of a byte, a word or a double word.

Wie in 3 anhand eines Byte-großen Fehlerspeichers dargestellt, ist der Fehlerspeicher in zwei Bereiche unterteilt, denen jeweils eine Anzahl von Bits zugeordnet ist. Der Fehlerspeicher weist einen Fehlerereigniszähler FE auf, der im vorliegenden Ausführungsbeispiel durch die Bits 0, 1, 2 realisiert ist. Die drei Bits des Fehlerspeichers 24 ermöglichen ein Zählen von aufeinanderfolgenden Fehlerereignissen bis zu dem Wert 7. Mit Hilfe eines vorgegebenen Fehlerereignisschwellenwerts S kann in einer Vergleichseinheit 25 erkannt werden, ob eine bestimmte Anzahl von aufeinanderfolgenden Fehlerereignissen den vorgegebenen Fehlerereignisschwellenwert S erreicht hat oder übersteigt.As in 3 Represented using a byte-sized error memory, the error memory is divided into two areas, each of which is assigned a number of bits. The error memory has an error event counter FE, which in the present embodiment is implemented by bits 0, 1, 2. The three bits of the error memory 24 enable consecutive error events to be counted up to the value 7. With the aid of a predetermined error event threshold value S, it can be recognized in a comparison unit 25 whether a certain number of consecutive error events has reached or exceeded the predetermined error event threshold value S.

Der Fehlerspeicher kann weiterhin einen Fehleranzahlzähler FA aufweisen, um die Gesamtanzahl festgestellter Fehlerereignisse zu akkumulieren. Dieser wird durch die Bits 3 - 7 repräsentiert.The error memory may also have an error count counter FA to accumulate the total number of detected error events. This is represented by bits 3 - 7.

In 2 ist ein Verfahren anhand eines Flussdiagramms dargestellt, wie es zum Betreiben der Diagnosefunktion in der Steuereinheit 2 vorgesehen werden kann.In 2 A method is shown in a flow chart as it can be provided for operating the diagnostic function in the control unit 2.

In Schritt S1 wird überprüft, ob eine Überprüfung ein Fehlerereignis erkannt hat. Wird ein Fehlerereignis erkannt (Alternative: Ja), so wird in Schritt S2 ein vorgegebener Wert dem Eintrag des Fehlerspeicher addiert. Der Wert entspricht einer Summe der Wertigkeiten der Bitpositionen im Fehlerspeicher, an denen für den Fehlerereigniszähler FE und den Fehleranzahlzähler FA jeweils das niedrigstwertige Bit befindet. Im vorliegenden Ausführungsbeispiel weist der Fehlerereigniszähler FE drei Bits und der Fehleranzahlzähler FA die verbleibenden fünf Bits auf. Somit kann durch Addition des Wertes 9 sowohl der Fehlerereigniszähler FE als auch der Fehleranzahlzähler FA inkrementiert werden.In step S1, it is checked whether a check has detected an error event. If an error event is detected (alternative: yes), a predetermined value is added to the entry in the error memory in step S2. The value corresponds to a sum of the values of the bit positions in the error memory at which the least significant bit is located for the error event counter FE and the error count counter FA. In the present exemplary embodiment, the error event counter FE has three bits and the error count counter FA has the remaining five bits. Thus, by adding the value 9, both the error event counter FE and the error count counter FA can be incremented.

In Schritt S3 wird überprüft, ob der Fehlerereigniszähler FE einen vorgegebenen Fehlerereignisschwellenwert S erreicht hat. Ist dies der Fall (Alternative: Ja), so wird in Schritt S4 eine Fehlerbehandlung gestartet. Andernfalls (Alternative: Nein) wird zu Schritt S1 zurückgesprungen.In step S3, it is checked whether the error event counter FE has reached a predefined error event threshold value S. If this is the case (alternative: yes), error handling is started in step S4. Otherwise (alternative: no), the system returns to step S1.

Die Fehlerbehandlung des Schritts S4 kann vorsehen, alle oder einzelne Systemkomponenten in einen sicheren Zustand zu bringen oder zu deaktivieren.The error handling of step S4 may include bringing all or individual system components into a safe state or deactivating them.

Wird im Schritt S1 festgestellt, dass die Diagnosefunktion keinen Fehler ergeben hat (Alternative: Nein), so wird in Schritt S5 der Fehlerereigniszähler um einen Rücksetzwert von 1 dekrementiert, wenn dieser einen Wert größer 0 aufweist. D.h. es wird nur das niederwertigste Bit des Fehlerereigniszähler dekrementiert. Das Subtrahieren des Rücksetzwerts reduziert nur den Wert des Fehlerereigniszählers FE, nicht jedoch den Wert des Fehleranzahlzählers FA. Somit steht als Fehleranzahlzähler FA ein Wert zur Verfügung, der die Gesamtanzahl von aufgetretenen Fehlerereignissen angibt, auch wenn diese nicht zu einer Fehlerbehandlung führen.If it is determined in step S1 that the diagnostic function has not resulted in an error (alternative: no), the error event counter is decremented by a reset value of 1 in step S5 if this has a value greater than 0. This means that only the least significant bit of the error event counter is decremented. Subtracting the reset value only reduces the value of the error event counter FE, but not the value of the error count counter FA. A value is therefore available as the error count counter FA that indicates the total number of error events that have occurred, even if these do not lead to error handling.

Anschließend wird zu Schritt S1 zurückgesprungen.The process then returns to step S1.

Claims (9)

Verfahren zum Betreiben eines Fehlerspeichers in einem technischen System, mit folgenden Schritten: - Regelmäßiges Durchführen (S1) einer Überprüfung zum Erkennen eines Fehlerereignisses; - Inkrementieren (S2) eines Fehlerereigniszählers (FE) und eines Fehleranzahlzählers (FA) in einem Fehlerspeicher (24) bei Erkennen des Fehlerereignisses; - Dekrementieren (S5) des Fehlerereigniszählers (FE), wenn dieser ungleich 0 ist und die Überprüfung kein Fehlerereignis ergeben hat, wobei der Fehlerspeicher (24) einer durch einen Prozessor des technischen Systems (1) gemeinsam verarbeitbaren Dateneinheit mit mehreren Bits entspricht, so dass jedem der Zähler eine Anzahl von Bits zugeordnet sind, wobei das Inkrementieren des Fehlerereigniszählers (FE) und des Fehleranzahlzählers (FA) durchgeführt wird, indem zu dem Wert des Fehlerspeichers (24) ein Wert addiert wird, der sich aus den Wertigkeiten der niederwertigen Bitpositionen des Fehlerereigniszählers (FE) und des Fehleranzahlzählers (FA) ergeben; - Bei Erreichen eines Fehlerereignisschwellenwerts (S) durch den Fehlerereigniszähler (FE), Durchführen einer Fehlerbehandlung; - Durchführen (S4) einer Diagnose mithilfe des Werts des Fehleranzahlzählers (FA).Method for operating an error memory in a technical system, with the following steps: - Regularly carrying out (S1) a check to detect an error event; - Incrementing (S2) an error event counter (FE) and an error count counter (FA) in an error memory (24) when the error event is detected; - Decrementing (S5) the error event counter (FE) if it is not equal to 0 and the check has not resulted in an error event, wherein the error memory (24) corresponds to a data unit with several bits that can be processed jointly by a processor of the technical system (1), so that a number of bits are assigned to each of the counters, wherein the incrementing of the error event counter (FE) and the error count counter (FA) is carried out by adding to the value of the error memory (24) a value which results from the significances of the least significant bit positions of the error event counter (FE) and the error count counter (FA); - When an error event threshold value (S) is reached by the error event counter (FE), carrying out an error treatment; - carrying out (S4) a diagnosis using the value of the error count counter (FA). Verfahren nach Anspruch 1, wobei der Fehlerereigniszähler (FE) eine Bittiefe von 1 bis 4, insbesondere von 2 oder 3, aufweist und der Fehleranzahlzähler (FA) eine Bittiefe in Anzahl der übrigen Bits der Dateneinheit aufweist.Procedure according to Claim 1 , wherein the error event counter (FE) has a bit depth of 1 to 4, in particular 2 or 3, and the error number counter (FA) has a bit depth in the number of remaining bits of the data unit. Verfahren nach Anspruch 1 oder 2, wobei der Fehlerspeicher (24) als Fehlerregister ausgebildet ist.Procedure according to Claim 1 or 2 , wherein the error memory (24) is designed as an error register. Verfahren nach einem der Ansprüche 1 bis 3, wobei der die Fehlerbehandlung ein Bringen einer oder mehreren Komponenten des technischen Systems (1) in einen sicheren Zustand oder ein Abschalten einer oder mehreren der Komponenten des technischen Systems (1) umfasst.Method according to one of the Claims 1 until 3 , wherein the error handling comprises bringing one or more components of the technical system (1) into a safe state or switching off one or more of the components of the technical system (1). Verfahren nach einem der Ansprüche 1 bis 4, wobei das Durchführen einer Diagnose einen Schwellenwertvergleich der gesamten Fehleranzahl des Fehleranzahlzählers (FA) umfasst, wobei bei Überschreiten eines Schwellenwerts durch die Fehleranzahl eine Warnung signalisiert wird.Method according to one of the Claims 1 until 4 , wherein performing a diagnosis comprises a threshold value comparison of the total number of errors of the error count counter (FA), wherein a warning is signaled if the number of errors exceeds a threshold value. Verfahren nach einem der Ansprüche 1 bis 5, wobei die durch den Prozessor gemeinsam verarbeitbare Dateneinheit einem Byte, einem Wort oder einem Doppelwort entspricht.Method according to one of the Claims 1 until 5 , where the data unit that can be processed jointly by the processor corresponds to a byte, a word or a double word. Vorrichtung, insbesondere Steuereinheit (2), die ausgebildet ist, um ein Verfahren nach einem der Ansprüche 1 bis 6 auszuführen.Device, in particular control unit (2), which is designed to carry out a method according to one of the Claims 1 until 6 to execute. Computerprogrammprodukt, umfassend Befehle, die bei der Ausführung des Programms durch mindestens eine Datenverarbeitungseinrichtung diese veranlassen, die Schritte des Verfahrens nach einem der Ansprüche 1 bis 6 auszuführen.Computer program product comprising instructions which, when the program is executed by at least one data processing device, cause the device to carry out the steps of the method according to one of the Claims 1 until 6 to execute. Maschinenlesbares Speichermedium, umfassend Befehle, die bei der Ausführung durch mindestens eine Datenverarbeitungseinrichtung diese veranlassen, die Schritte des Verfahrens nach einem der Ansprüche 1 bis 6 auszuführen.Machine-readable storage medium comprising instructions which, when executed by at least one data processing device, cause the device to carry out the steps of the method according to one of the Claims 1 until 6 to execute.
DE102022214193.8A 2022-12-21 2022-12-21 Method and device for operating an error counter in a technical system Pending DE102022214193A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
DE102022214193.8A DE102022214193A1 (en) 2022-12-21 2022-12-21 Method and device for operating an error counter in a technical system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
DE102022214193.8A DE102022214193A1 (en) 2022-12-21 2022-12-21 Method and device for operating an error counter in a technical system

Publications (1)

Publication Number Publication Date
DE102022214193A1 true DE102022214193A1 (en) 2024-06-27

Family

ID=91434344

Family Applications (1)

Application Number Title Priority Date Filing Date
DE102022214193.8A Pending DE102022214193A1 (en) 2022-12-21 2022-12-21 Method and device for operating an error counter in a technical system

Country Status (1)

Country Link
DE (1) DE102022214193A1 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102008001780B4 (en) 2008-05-15 2018-03-08 Robert Bosch Gmbh Method of error handling for a personal protection system control unit and a personal protection system control unit

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102008001780B4 (en) 2008-05-15 2018-03-08 Robert Bosch Gmbh Method of error handling for a personal protection system control unit and a personal protection system control unit

Similar Documents

Publication Publication Date Title
EP0011685B1 (en) Programmable memory protection arrangement for microprocessors and circuitry with such an arrangement
DE19723079C1 (en) Fault diagnosis device for automobile
DE102007042353B4 (en) A method for detecting faults in a vehicle system of an active front steering
DE3702006A1 (en) STORAGE DEVICE
DE3382810T2 (en) Microprocessor systems for franking machine arrangements
DE19944991A1 (en) Procedure for securing a program run
DE2210325A1 (en) Data processing system
DE2810421C2 (en) Memory protection device
DE102008004205A1 (en) Circuit arrangement for error treatment in real-time system e.g. controller, for motor vehicle, has processing units reporting result of inherent error diagnosis by monitoring unit that activates arithmetic units in dependence of result
EP3073333B1 (en) Burner assembly with a safety device
WO2007057270A1 (en) Program-controlled unit and method for the operation thereof
DE102019131865A1 (en) METHOD AND DEVICE FOR SELF-DIAGNOSTICING THE RAM ERROR DETECTION LOGIC OF A DRIVELINE CONTROLLER
EP2203795B1 (en) Vehicle control unit having a microcontroller the supply voltage of which is monitored and associated method
DE102022214193A1 (en) Method and device for operating an error counter in a technical system
EP3139354B1 (en) Method for adjusting an operating mode of a security system
DE102010002309B4 (en) Method for checking the functionality of a memory element
EP2902905B1 (en) Method for checking the processing of software
DE102021109088A1 (en) ANOMALY DETECTOR
DE102013202961A1 (en) Method for monitoring stack memory in operating system of control unit of motor vehicle, involves carrying out predefined action if characteristic parameters of stack memory before and after execution of program codes are not identical
DE102005040917A1 (en) Data processing system and operating method therefor
DE102018219700B4 (en) Control device
DE10148157B4 (en) Program controlled unit
DE112018002612T5 (en) Vehicle control device
DE10128996B4 (en) Method and device for monitoring memory cells of a volatile data memory
DE102022212287A1 (en) Method and system for determining releases of control unit functions in a control unit of a technical device

Legal Events

Date Code Title Description
R163 Identified publications notified
R084 Declaration of willingness to licence