Data excluding device
10017158 ยท 2018-07-10
Assignee
Inventors
Cpc classification
B60R25/307
PERFORMING OPERATIONS; TRANSPORTING
H04L67/12
ELECTRICITY
B60R25/24
PERFORMING OPERATIONS; TRANSPORTING
International classification
B60R25/30
PERFORMING OPERATIONS; TRANSPORTING
H04L12/413
ELECTRICITY
B60R25/04
PERFORMING OPERATIONS; TRANSPORTING
B60R25/24
PERFORMING OPERATIONS; TRANSPORTING
Abstract
ECU 2 has a function for discarding data when continuous dominant equal to or greater than 6 bits is received during data reception. A data excluding device 5 is connected to a bus 3 to which the ECU 2 is connected. When ID of data received through the bus 3 matches ID of an illegal ECU detected by a theft sensor 4, the data excluding device 5 outputs 7 bits continuous dominant to the bus 3, and then stops output of the dominant.
Claims
1. An in-vehicle communication system, comprising: a data excluding device connected to a bus connecting a plurality of nodes; and the plurality of nodes configured to discard data when receiving continuous dominant bits equal to or greater than a prescribed number during data reception, wherein the data excluding device outputs the continuous dominant bits equal to or greater than the prescribed number to the bus when an ID of data received via the bus matches the specific ID; and subsequently stops outputting of the continuous dominant bits, and the data excluding device transmits RTR (Remote Transmission Request) for distinguishing whether the data denotes a data frame or a remote frame requesting to send the data frame when the ID of data received via the bus matches the specific ID, and subsequently outputs the continuous dominant bits equal to or greater than the prescribed number to the bus.
2. A data excluding method, comprising: preparing a data excluding device connected to a bus connecting a plurality of nodes configured to discard data when receiving continuous dominant bits equal to or greater than a prescribed number during data reception; outputting continuous dominant bits equal to or greater than a prescribed number to a bus from the data excluding device when an ID of data received in the data excluding device via the bus matches the specific ID; and subsequently stopping outputting of the continuous dominant bits from the data excluding device; and transmitting RTR (Remote Transmission Request) for distinguishing whether the data denotes a data frame or a remote frame requesting to send the data frame when the ID of data received via the bus matches the specific ID, and subsequently outputting the continuous dominant bits equal to or greater than the prescribed number to the bus.
Description
BRIEF DESCRIPTION OF DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
DESCRIPTION OF EMBODIMENTS
(10) Hereafter, a data excluding device of the present invention will be explained with reference to
(11) The above ECU 2 includes an immobilizer ECU for performing authentication of an electronic key, an engine ECU for performing control of engine, and so on, and performs CAN communication with each other. In those ECU 2, each different ID is assigned.
(12) Next, CAN communication adopted with the embodiment of the present invention will be explained before explaining about the theft sensor 4 and the data excluding device 5 of the present invention. The above ECU 2 performs CAN communication each other by transmitting and receiving digital data consisting of H-level signal and L-level signal.
(13) In the embodiment of the present invention, H-level signal is recessive, and L-level signal is dominant For example, when the recessive and the dominant are simultaneously output from two ECUs, the dominant is the priority, an electrical potential of the bus 3 is the dominant, and the dominant is transmitted.
(14) As shown in
(15) The ID includes ID assigned to each ECU 2 mentioned above. The RTR is to identify whether the data is a data frame or a remote frame for requesting transmission of the data frame.
(16) In CAN communication, bit stuffing rule is adopted. The bit stuffing rule is intended to synchronize, and is a mechanism that one bit of a signal opposite to the transmitted signal is inserted when the same signal is continuous for example 6 bits on the bus 3.
(17) The data excluding device 5 of the present invention eliminates data of illegal ECU using an error processing performed in this CAN communication. First, this error processing will be explained with reference to
(18) The ECU 2 performs operation as shown in
(19) When the other ECUs B and C receives the 7 bits (a prescribed bit) continuous dominant, they detects as a bit stuffing rule violation, transmits an error flag (secondary) of 7 bits continuous dominant, and eliminates the data received before now (
(20) Furthermore, if the ECU 2 detects an error when receiving data, the error flag (secondary) of 7 bits continuous dominant is output. The ECU 2 of the transmitting side transmits the error flan (secondary) of 7 bits continuous dominant as a form error that the bus is dominant even if data is output, and then retransmits data.
(21) The theft sensor 4 is a sensor for detecting that each ECU 2 is illegally replaced, and outputs ID (=specific ID) of illegal ECU illegally replaced to a data excluding device 5. As a method for detecting an illegal replacement, for example, detecting that connection between the ECU 2 and the bus 3 is separated is considered.
(22) Next, the data excluding device 5 will be explained. The data excluding device 5 consists of a non-volatile memory (not shown) in which ID of the illegal ECU is set, and a control circuit (not shown) for performing elimination of the ID of the illegal ECU. In the memory, ID of the illegal ECU from the theft sensor 4 is stored. Also, it is possible to set ID of the illegal ECU by using a resistor without using a memory. The control circuit may be composed of a predetermined logic circuit (hard circuit), microcomputer, or combination of them.
(23) An operation of the in-vehicle communication system 1 will be explained with reference to
(24) Thereby, as shown in
(25) In the illegal ECU, since the bus 3 is dominant despite transmitting data, the error flag (secondary) of 7 bits continuous dominant is transmitted, and then data is retransmitted. For this reason, since the illegal ECU continues to retransmit data, there is a concern that communication of the other ECU 2 can not be performed. However, the ECU 2 in CAN communication counts the number of transmission of the error flag, is moved to an error-passive state when the number of transmission is equal to or greater than a predetermined number of times, and becomes in a transmission standby state. Thus, the illegal ECU becomes in a transmission standby state at the same time, and data transmission from the other ECU 2 is given priority. As a result, the above concern is resolved.
(26) Further, in the above embodiment, when ID of data matches ID of the illegal ECU, the data excluding device 5 output dominant after RTR is transmitted. Thereby, it is possible to properly eliminate data from the illegal ECU.
(27) Also, in the above embodiment, a case that data is normal frame is explained, but it is not limited thereto. As shown in
(28) Furthermore, in the above embodiment, the data excluding device 5 outputs 7 bits dominant after transmitting RTR, but it is not limited thereto. As shown in
(29) Further, in the above embodiment, the data excluding device 5 outputs 7 bits dominant when matching ID of the illegal ECU, but it is not limited thereto. A bit length of dominant is not limited to 7 bits. For example, a bit length of dominant may be a bit length such as a bit stuffing rule violation is detected.
(30) Furthermore, in the above embodiment, the theft sensor 4 detects the illegal ECU, and only data of the illegal ECU is eliminated, but it is not limited thereto. For example, in a case that it is hardly possible that which ECU is replaced, when situations that it is suspect such as theft, for example, a big impact, entry into the vehicle, opening of the door and so on is detected, it is possible to eliminate only data of a specific ECU 2 such as immobilizer ECU, or engine ECU etc. from a plurality of ECUs.
(31) Furthermore, according to the above embodiment, only data of the illegal ECU which is detected by the theft sensor 4 is excluded, but it is not limited thereto. According to the data excluding device 5 of the present invention, it is possible to eliminate only data from a specific ECU 2. For this reason, for example, it is considered that it is possible to exclude data from the ECU 2 transmitting data which is not to be delivered to the other party.
(32) The illustrated embodiments of the present invention have been described for illustrative purposes only, and not by way of limiting the invention. Accordingly, the present invention can be implemented with various modifications made thereto within the scope of the present invention.
REFERENCE SIGNS LIST
(33) 2 ECU (node) 3 bus 5 data excluding device