Communication system

The communication system uses identifiers and relays to control bus access, ensuring selective program rewriting by preventing unintended changes in non-target devices, thus achieving targeted program updates.

JP2024122530AInactive Publication Date: 2024-09-09TOYOTA JIDOSHA KK
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023030110
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-28
Publication Date
2024-09-09
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When multiple information processing devices are connected to the same bus, data with a predetermined identifier causes all devices to rewrite their programs, leading to unintended program changes in some devices.

Method used

A communication system that stops non-target devices from accessing the bus by using identifiers and relays to control power supply, allowing selective program rewriting by transmitting data only to the intended devices.

Benefits of technology

Ensures that only specific devices receive the program update data, preventing unintended program changes in other devices, thus enabling targeted program rewriting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

To rewrite a program stored in some information processing devices of a plurality of information processing devices when the plurality of information processing devices is connected to the same bus.SOLUTION: A communication system includes a plurality of information processing devices that is connected to the same bus and when receiving predetermined data including a predetermined identifier via the bus, uses the predetermined data to rewrite a program, and a transmission device that transmits the predetermined data to the bus. The transmission device, when a program stored in some information processing devices of the plurality of information processing devices is rewritten, transmits the predetermined data to the bus after stopping access to the bus by the residual information processing devices.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to communication systems. [Background technology]

[0002] Conventionally, as this type of communication system, a system in which a plurality of information processing devices are connected to the same bus has been proposed (see, for example, Patent Document 1). [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2009-124480 A Summary of the Invention [Problem to be solved by the invention]

[0004] Incidentally, an information processing device has been proposed that, when data including a specific identifier is received via a bus, rewrites a stored program using the data. When multiple such information processing devices are connected to the same bus, when data including a specific identifier is transmitted to the bus, all of the information processing devices receive the specific data and rewrite the program. Therefore, it is not possible to rewrite the program stored in some of the multiple information processing devices.

[0005] The main purpose of the communication system of the present invention is to rewrite programs stored in some of the information processing devices when the multiple information processing devices are connected to the same bus. [Means for solving the problem]

[0006] In order to achieve the above-mentioned main object, the communication system of the present invention employs the following means.

[0007] In the communication system of the present invention, a plurality of information processing devices connected to the same bus, and rewriting a stored program using predetermined data when predetermined data including a predetermined identifier is received via the bus; a transmitting device for transmitting the predetermined data to the bus; A communication system comprising: When rewriting the program stored in some of the information processing devices, the transmitting device transmits the predetermined data to the bus after stopping access to the bus by the remaining information processing devices. The gist of the present invention is as follows.

[0008] In the communication system of the present invention, when rewriting a program stored in some of the multiple information processing devices, the remaining information processing devices are stopped from accessing the bus, and then predetermined data is transmitted to the bus. As a result, the remaining information processing devices do not receive the predetermined data and therefore do not rewrite the program. As a result, it is possible to rewrite the program stored in some of the multiple information processing devices.

[0009] In such a communication system of the present invention, when the plurality of information processing devices receive data including an address set for each of the information processing devices via the bus, and the corresponding address is included in the data, the transmitting device may stop access to the bus, and when rewriting the program stored in some of the information processing devices, the transmitting device may transmit the data including the addresses corresponding to the remaining information processing devices to the bus, and then transmit the predetermined data to the bus. Since the predetermined data is transmitted to the bus while the remaining information processing devices are prevented from accessing the bus, the remaining information processing devices do not receive the predetermined data, and the predetermined data is received by some of the information processing devices. This makes it possible to rewrite the program stored in some of the information processing devices.

[0010] In addition, the communication system of the present invention includes a plurality of relays provided for each of the plurality of information processing devices, which connect and disconnect the corresponding one of the plurality of information processing devices to a power source, and a plurality of relay control devices connected to the bus and controlling the plurality of relays, and when the plurality of relay control devices receive data including an address set for each of the relay control devices via the bus, if the data includes the address corresponding to the data, the corresponding relay is turned off, and when the transmitting device rewrites the program stored in some of the information processing devices, the transmitting device may transmit the predetermined data to the bus after transmitting data including the address corresponding to the relay control device that controls the relay that connects and disconnects the remaining information processing devices to the power source. The relay control device that receives the data including the corresponding address turns off the relay that connects and disconnects the remaining information processing devices to the power source. This stops the supply of power from the power source to the remaining information processing devices, and stops the access of the remaining information processing devices to the bus. Since the predetermined data is transmitted to the bus in this state, it is possible to rewrite the program stored in some of the information processing devices among the plurality of information processing devices. [Brief description of the drawings]

[0011] [Figure 1] 1 is a diagram showing an outline of the configuration of a communication system 20 according to an embodiment of the present invention. [Diagram 2] 10 is a flowchart showing an example of a processing routine executed by a transmitting device 24. [Diagram 3] 13 is an explanatory diagram for explaining an example of a state in which a relay R that connects and disconnects a remaining ECU 22a to and from a power source is turned off. FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] Next, a mode for carrying out the present invention will be described using examples. EXAMPLES

[0013] 1 is a diagram showing an outline of the configuration of a communication system 20 according to an embodiment of the present invention. As shown in the figure, the communication system 20 includes a plurality of control systems 22 and a transmission device 24.

[0014] Each control system 22 is used, for example, to control a corresponding inverter or manage a corresponding battery, and includes electronic control units (hereinafter, referred to as "ECU") 22a, 22b and a relay R.

[0015] The ECU 22a is configured as a microcomputer including, for example, a memory that stores various control programs and a CPU that executes the control programs stored in the memory. The ECU 22a is connected to a power supply line Lps via a relay R, and is supplied with operating power from the power supply line Lps. The ECU 22a is connected to a bus B, and communicates with a transmitter 24 via the bus B using a CAN (Controller Area Network) protocol. Different addresses are set to the ECUs 22a. Regardless of the set address, when the ECUs 22a receive data (predetermined data) having an identifier (predetermined identifier) ​​IDrep that is predetermined as a CANID (identifier) ​​for program rewriting via the bus B, the ECUs 22a execute a process of rewriting the control program stored in the memory using the received data. Note that the identifier IDref is the same in each ECU 22a.

[0016] The ECU (relay control device) 22b is configured as a microcomputer including, for example, a memory that stores various control programs and a CPU that executes the control programs stored in the memory. The ECU 22b is connected to a power supply line Lps, and is supplied with operating power from the power supply line Lps. The ECU 22b is connected to a bus B, and communicates with the transmitter 24 via the bus B using the CAN protocol. Each ECU 22b is assigned a different address. When the ECU 22b receives data having a relay-off identifier IDroff including its own address via the bus B, it turns off the corresponding relay R, and when the ECU 22b receives data having a relay-on identifier IDron including its own address via the bus B, it turns on the corresponding relay R.

[0017] The transmitting device 24 is configured as a microcomputer including a CPU, etc. As described above, the transmitting device 24 is connected to the bus B, and communicates with the ECUs 22a and 22b via the bus B using the CAN protocol.

[0018] Next, the operation of the communication system 20 of the embodiment thus configured, in particular the operation when rewriting the programs stored in some of the ECUs 22a of the plurality of control systems 22, will be described.

[0019] Prior to the program rewriting operation, a program is pre-installed in the ECU 22a of each control system 22, which causes the ECU 22a to stop access to the bus B when it receives data via the bus B having a communication stop identifier IDsc including a corresponding address.

[0020] 2 is a flowchart showing an example of a processing routine executed by the transmitting device 24. This routine is executed when rewriting a program stored in one of the ECUs 22a of the multiple control systems 22. At this time, it is assumed that all of the relays R are ON.

[0021] When this routine is executed, data having a communication stop identifier IDsc including the address of the ECU 22a that is not the rewrite target is transmitted to the bus B (step S100). The ECU 22a of the control system 22 that receives the data having the communication stop identifier IDsc including its own address via the bus B, i.e., the ECU 22a that is not the rewrite target, stops accessing the bus B. The ECU 22a of the control system 22 that receives the data having the communication stop identifier IDsc not including its own address via the bus B, i.e., the ECU 22a that is the rewrite target, continues accessing the bus B.

[0022] Next, data including the identifier IDrep is transmitted to the bus B (step S110), and this routine ends. When each ECU 22a receives the data including the identifier IDrep, the ECU 22a executes a process of rewriting the control program stored in the memory using the received data. Therefore, if all the ECUs 22a can access the bus B, the control programs are rewritten in all the ECUs 22a. In the embodiment, since the ECUs 22a that are not the rewrite target stop accessing the bus B in step S100, only the ECUs 22a that are the rewrite target receive the data including the identifier IDrep. Therefore, in step S110, the programs stored in the ECUs 22a that are the rewrite target, i.e., some of the ECUs 22a among the multiple ECUs 22a, are rewritten. Through such a process, it is possible to rewrite the programs stored in some of the ECUs 22a among the multiple ECUs 22a of the control system 22.

[0023] According to the communication system 20 of the embodiment described above, when rewriting a program stored in some of the multiple ECUs 22a, the transmitting device 24 stops access to the bus B by the remaining ECUs 22a and then transmits data for rewriting the program to the bus B. This makes it possible to rewrite the program stored in some of the multiple ECUs 22a when multiple ECUs 22a are connected to the same bus B.

[0024] In addition, when the multiple ECUs 22a receive data including an address set for each ECU 22a via bus B, if the data includes a corresponding address, the transmitting device 24 stops accessing bus B, and when rewriting a program stored in some of the ECUs 22a, the transmitting device 24 transmits data including addresses corresponding to the remaining ECUs 22a to bus B, and then transmits data for rewriting the program to bus B, thereby rewriting the program stored in some of the multiple ECUs 22a.

[0025] In the communication system 20 of the embodiment, prior to the program rewriting operation, a program is pre-installed in the ECU 22a of each control system 22, which causes the ECU 22a to stop access to the bus B when data including a corresponding address is received from the bus B. However, instead of pre-installing such a program in the ECU 22a, when a plurality of ECUs 22b receive data including an address set for each ECU 22b via the bus B, and when the data includes the corresponding address of the ECU 22b, the corresponding relay R may be turned off. In this case, when rewriting the programs stored in some of the ECUs 22a, the transmitting device 24 may transmit data including an address corresponding to the ECU 22b that controls the relay R that connects and disconnects the remaining ECUs 22a to and from the power source to the bus B, and then transmit data for program rewriting to the bus B.

[0026] FIG. 3 is an explanatory diagram for explaining an example of a state in which the relay R that connects and disconnects the remaining ECU 22a to the power source is turned off. Of the three ECUs 22a shown in the figure, the program of the ECU 22a at the right end as viewed in the figure is to be rewritten. In this case, the relay R connected to the two ECUs 22a other than the right end ECU 22a is turned off, so that the power supply to the two ECUs 22a is stopped, and the access of the ECUs 22a to the bus B is stopped, and only the ECU 22a connected to the on-relay R continues communication via the bus B. In this state, data for rewriting the program is transmitted to the bus B, so that only the ECU 22a connected to the on-relay R rewrites the control program stored therein. Through such processing, it is possible to rewrite the programs stored in some of the ECUs 22a among the multiple ECUs 22a.

[0027] In the communication system 20 of the embodiment, the ECU 22b is connected to the bus B. However, the ECU 22b does not have to be connected. In this case, the relay R may be controlled by the ECU 22a.

[0028] In the communication system 20 of the embodiment, the ECU 22a is connected to the power supply line Lps via a relay R. However, the ECU 22a may be connected to the power supply line Lps without the relay R.

[0029] In the communication system 20 of the embodiment, the ECUs 22a and 22b communicate with the transmitter 24 using the CAN protocol via the bus B. However, the communication protocol is not limited to the CAN protocol, and may be another protocol.

[0030] In the communication system 20 of the embodiment, the control ECUs 22a and 22b are connected to the bus B. However, what is connected to the bus B is not limited to the control ECUs, and any information processing device that performs various calculations may be connected.

[0031] The correspondence between the main elements of the embodiment and the main elements of the invention described in the section on solving the problem will be described. In the embodiment, the multiple ECUs 22a correspond to the "multiple information processing devices", and the transmission device 24 corresponds to the "transmission device".

[0032] The correspondence between the main elements of the Examples and the main elements of the invention described in the Summary of the Problem column does not limit the elements of the invention described in the Summary of the Problem column, since the Examples are examples for specifically explaining the mode for implementing the invention described in the Summary of the Problem column. In other words, the interpretation of the invention described in the Summary of the Problem column should be based on the description in that column, and the Examples are merely a specific example of the invention described in the Summary of the Problem column.

[0033] Although the form for carrying out the present invention has been described above using examples, the present invention is not limited to these examples in any way, and it goes without saying that the present invention can be carried out in various forms without departing from the scope of the gist of the present invention. [Industrial Applicability]

[0034] The present invention can be used in the manufacturing industry of communication systems. [Explanation of symbols]

[0035] 20 communication system, 22 control system, 22a, 22b electronic control unit (ECU), 24 transmitter, B bus, Lps power line, R relay.

Claims

1. a plurality of information processing devices connected to the same bus, and rewriting a stored program using predetermined data when predetermined data including a predetermined identifier is received via the bus; a transmitting device for transmitting the predetermined data to the bus; A communication system comprising: When rewriting the program stored in some of the information processing devices, the transmitting device transmits the predetermined data to the bus after stopping access to the bus by the remaining information processing devices. Communication systems.

2. The communication system according to claim 1, When the information processing devices receive data including an address set for each of the information processing devices via the bus, if the corresponding address is included in the data, the information processing devices stop accessing the bus; When rewriting the program stored in a part of the information processing devices, the transmitting device transmits the data including the addresses corresponding to the remaining information processing devices to the bus, and then transmits the predetermined data to the bus. Communication systems.

3. 2. The communication system of claim 1, a plurality of relays provided for each of the plurality of information processing devices, each relay connecting and disconnecting a corresponding one of the plurality of information processing devices to and from a power source; a plurality of relay control devices connected to the bus and controlling a plurality of the relays; Equipped with When the relay control devices receive data including an address set for each of the relay control devices via the bus, if the data includes a corresponding address, the relay control devices turn off the corresponding relay; When rewriting the programs stored in some of the information processing devices, the transmitting device transmits to the bus data including the address corresponding to the relay control device that controls the relay that connects and disconnects the remaining information processing devices to and from the power source, and then transmits the predetermined data to the bus. Communication systems.

Citation Information

Patent Citations

  • Onboard gateway and vehicle communication system

    JP2009124480A