Method of initializing a control unit connected to a diagnostic bus
First Claim
1. A method of using a trigger word to initialize a control unit including a microcontroller and coupled to a diagnostic bus for communicating signals over an RxD line of the microcontroller, the microcontroller including a port register and a receive buffer register, the method comprising the steps of:
- sampling information from the port register for one of a low logic state and a high logic state as a function of a predetermined sampling cycle to detect the trigger word;
analyzing status information read out from the receive buffer register;
performing a test at a sampling time during an input of the trigger word to determine one of;
whether the receive buffer register is full, and whether a transition from a high logic signal level to a low logic signal level is present on a K line of the diagnostic bus, wherein the trigger word causes a framing error communicated as a stop bit of the receive buffer register; and
performing one of the following;
accepting an initialization of the control unit when the framing error is present, and discarding the initialization of the control unit and waiting for another transition from the high logic signal level to the low logic signal level.
1 Assignment
0 Petitions
Accused Products
Abstract
A method of initializing a control unit connected to a diagnostic bus by a trigger word using signals on the diagnostic bus over the RXD line of a microcontroller having a port register and a receive buffer register. According to this method, information is sampled from the port register for the low/high logic state with a predetermined sampling cycle to detect the trigger word, and a readout of the receive buffer register and an analysis of the status information are performed. To prevent unintentional initialization or triggering of the control unit, a check at the sampling time during input of the trigger word is performed to determine whether the receive buffer register is full or whether there is a transition from the high logic signal level to the low logic signal level on the K line of the diagnostic bus, in which case a trigger word causes a framing error in this test. Further, an initialization of the control unit is accepted if there is a framing error; otherwise, the initialization is discarded and another transition from, for example, a high logic signal level to a low logic signal level is waited for.
-
Citations
6 Claims
-
1. A method of using a trigger word to initialize a control unit including a microcontroller and coupled to a diagnostic bus for communicating signals over an RxD line of the microcontroller, the microcontroller including a port register and a receive buffer register, the method comprising the steps of:
-
sampling information from the port register for one of a low logic state and a high logic state as a function of a predetermined sampling cycle to detect the trigger word;
analyzing status information read out from the receive buffer register;
performing a test at a sampling time during an input of the trigger word to determine one of;
whether the receive buffer register is full, and whether a transition from a high logic signal level to a low logic signal level is present on a K line of the diagnostic bus, wherein the trigger word causes a framing error communicated as a stop bit of the receive buffer register; and
performing one of the following;
accepting an initialization of the control unit when the framing error is present, and discarding the initialization of the control unit and waiting for another transition from the high logic signal level to the low logic signal level. - View Dependent Claims (2, 3, 4, 5, 6)
inserting a monitoring interval after an end of the trigger word and before a transmission of a speed synchronization pattern;
performing a check to determine whether the transition from the high logic signal level to the low logic signal level is received during the monitoring interval; and
discarding the initialization of the control unit when the transition from the high logic signal level to the low logic signal level is received.
-
-
3. The method according to claim 2, wherein the monitoring interval has a duration of 100 ms to 400 ms.
-
4. The method according to claim 1, further comprising the step of switching an initialization module to an inactive status when the initialization of the control unit is concluded and a communication has started.
-
5. The method according to claim 1, wherein the trigger word includes a 5-baud trigger word.
-
6. The method according to claim 1, wherein the predetermined sampling cycle is preset at 10 ms.
Specification