Storage device, communication system, storage method, and computer program

By arranging a multi-input unit in the storage device, the control program update process is optimized, the efficiency problem in wirelessly receiving data updates is solved, and more efficient control program updates and data management are achieved.

CN118760460APending Publication Date: 2024-10-11AUTONETWORKS TECH LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410720259.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2018-03-05
Filing Date
2019-03-04
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

When updating the control program using a diagnostic tool in the prior art, the dealer needs to wait for the update data received wirelessly to be completed before using the diagnostic tool to update, resulting in unnecessary update of the control program and affecting efficiency.

Method used

By arranging a first input part and a second input part in the storage device, respectively used for loading and unloading and receiving data wirelessly, the storage of wired data is stopped when update data is received wirelessly, and the wired data is saved when data is received wired, Prevent unnecessary updates, and output the remaining data after determining that the control program versions are consistent, optimizing the processing flow of updated data.

Benefits of technology

It effectively prevents unnecessary control program updates, improves the processing efficiency of update data, reduces the repeated sending and storage of wireless data, and shortens the time to obtain update data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118760460A_ABST
    Figure CN118760460A_ABST
Patent Text Reader

Abstract

Provided are a storage device, a communication system, a storage method, and a computer program, in a relay device (10), when partial data, which is a part of update data for controlling program update, is input to a second input / output unit (42), a control unit (44) stores the partial data in a storage unit (43). When partial data is input to the first input / output unit (41) while the partial data is repeatedly input to the second input / output unit (42), the control unit (44) wirelessly outputs, to the wireless device, transmission stop data that instructs to stop repeatedly transmitting the partial data wirelessly. The partial data input to the first input / output unit (41) is stored in a storage unit (43).
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the application with application date of March 4, 2019, application number 201980013922.7, and invention name “Storage device, communication system, storage method and computer program”. Technical Field

[0002] The present disclosure relates to a storage device, a communication system, a storage method, and a computer program.

[0003] This application claims the priority based on Japanese application No. 2018-038859 for which it applied on March 5, 2018, and all the contents described in the said Japanese application are cited. Background Art

[0004] Patent Document 1 discloses a vehicle processing device that executes processing by executing a control program. The processing device is detachably connected to a diagnostic tool. Update data used for updating the control program is input from the diagnostic tool, and update data received wirelessly is input.

[0005] The processing device described in Patent Document 1 prohibits input of update data received wirelessly while inputting update data from a diagnostic tool, and prohibits input of update data from the diagnostic tool while inputting update data received wirelessly. The control program is updated using the update data input from the diagnostic tool or the update data received wirelessly.

[0006] Prior art literature Patent Literature Patent Document 1: Japanese Patent Application Publication No. 2017-105309 Summary of the invention

[0007] A storage device according to one embodiment of the present disclosure comprises: a first input unit that is detachably connectable to an external device and inputs partial data, which is a part of update data for controlling program updates, from the external device; a second input unit to which the partial data received wirelessly is input; a storage unit that stores the partial data; and a storage unit that, when the partial data is input to the second input unit, stores the partial data input to the second input unit in the storage unit, and, when the partial data is input to the first input unit during repeated input of the partial data to the second input unit, stops storing the partial data input to the second input unit and stores the partial data input to the first input unit in the storage unit.

[0008] A communication system according to one embodiment of the present disclosure comprises: a storage device for storing partial data which is a part of update data for updating a control program; and a processing device connected to the storage device for performing processing by executing the control program, wherein the storage device comprises: a first input unit which is detachably connected to an external device and inputs the partial data from the external device; a second input unit to which the partial data received wirelessly is input; a storage unit for storing the partial data; a storage unit which, when the partial data is input to the second input unit, stores the partial data input to the second input unit in the storage unit, and, when the partial data is input to the first input unit during repeated input of the partial data to the second input unit, stops storing the partial data input to the second input unit and stores the partial data input to the first input unit in the storage unit; and a sending unit which sends the partial data to the processing device.

[0009] A saving method involved in one embodiment of the present invention includes the following steps: when a part of update data for controlling program update, i.e., partial data, is received wirelessly, the received partial data is saved; when the partial data is input via wired during repeated wireless reception of the partial data, the saving of the partial data received wirelessly is stopped; and when the partial data is input via wired during repeated wireless reception of the partial data, the partial data input via wired is saved.

[0010] A computer program involved in one embodiment of the present invention causes a computer to execute the following steps: when a part of update data for controlling program update, i.e., partial data, is received wirelessly, the received partial data is saved; when the partial data is input via wired during repeated wireless reception of the partial data, the saving of the partial data received wirelessly is stopped; and when the partial data is input via wired during repeated wireless reception of the partial data, the partial data received via wired is saved.

[0011] Furthermore, the present disclosure can be implemented not only as a storage device having such a characteristic processing unit, but also as a storage method having the characteristic processing as steps, or as a computer program for causing a computer to execute the steps. In addition, the present disclosure can be implemented as a semiconductor integrated circuit that implements a part or all of the storage device, or as a communication system including the storage device. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 This is a block diagram showing the main part structure of the communication system in Implementation Example 1.

[0013] Figure 2 This is a block diagram showing the main structure of the relay device.

[0014] Figure 3 This is a flowchart showing the procedure of the first update data saving process according to the control program.

[0015] Figure 4 This is a flowchart showing the procedure of the second update data saving process according to the control program.

[0016] Figure 5 It is a sequence diagram showing an example of the operation of the communication system.

[0017] Figure 6 This is a sequence diagram showing another example of the operation of the communication system.

[0018] Figure 7 This is a flowchart showing the procedure of update data transmission processing related to the control program.

[0019] Figure 8 This is a flowchart showing the procedure of the first update data storage process in the second embodiment.

[0020] Fig. 9 It is a sequence diagram showing an example of the operation of the communication system.

[0021] Fig.10 This is a schematic diagram of the structure of update data. DETAILED DESCRIPTION [Problems to be Solved by the Invention]

[0022] Generally, the diagnostic tool is operated by a dealer. In a sales store or factory where the vehicle is brought in, for example, the dealer is likely to update the control program using the update data input from the diagnostic tool in order to find the cause of a malfunction. On the other hand, for example, the control program is likely to be updated using the update data received wirelessly at an unspecified location with the permission of the vehicle occupant. In consideration of the above, the update of the control program using the update data input from the diagnostic tool is more important than the update of the control program using the update data received wirelessly.

[0023] Assume that at the time point when the dealer updates the control program using the diagnostic tool, the control program is updated using the update data received wirelessly. In this case, the dealer needs to wait until the update data received wirelessly is input and the update of the control program is completed. After the update of the control program is completed, the dealer re-updates the control program using the diagnostic tool. In this case, unnecessary update of the control program is performed using the update data received wirelessly.

[0024] Therefore, an object of the present invention is to provide a storage device, a communication system, a storage method, and a computer program capable of preventing unnecessary updating of a control program using update data received wirelessly. [Effects of the present disclosure]

[0025] According to the present disclosure, it is possible to prevent unnecessary updating of the control program using update data received wirelessly. [Description of Embodiments of the Present Disclosure]

[0026] First, embodiments of the present disclosure will be listed and described. At least a part of the embodiments described below may be arbitrarily combined.

[0027] (1) A storage device according to one embodiment of the present disclosure comprises: a first input unit that is detachably connected to an external device and inputs partial data, which is a part of update data for controlling program update, from the external device; a second input unit to which the partial data received wirelessly is input; a storage unit that stores the partial data; and a storage unit that, when the partial data is input to the second input unit, stores the partial data input to the second input unit in the storage unit, and, when the partial data is input to the first input unit during repeated input of the partial data to the second input unit, stops storing the partial data input to the second input unit and stores the partial data input to the first input unit in the storage unit.

[0028] (2) A storage device according to one aspect of the present disclosure includes an output unit configured to output transmission stop data instructing to stop repetitive wireless transmission of the partial data when the partial data is input to the first input unit while the partial data is repeatedly input to the second input unit.

[0029] (3) A storage device according to one aspect of the present disclosure includes a deleting unit that deletes, from the storage unit, partial data input to the second input unit and stored in the storage unit when the partial data is input to the first input unit while the partial data is repeatedly input to the second input unit.

[0030] (4) A storage device according to one embodiment of the present disclosure comprises: a determination unit, which determines whether a version of a control program updated using update data related to the partial data input to the first input unit is the same as a version of a control program updated using update data related to the partial data input to the second input unit, when the partial data is input to the first input unit during repeated input of the partial data to the second input unit; and a second output unit, which outputs output request data requesting output of the remaining partial data constituting the update data to the external device, when the determination unit determines that the version of the control program updated using update data related to the partial data input to the first input unit is the same as a version of the control program updated using update data related to the partial data input to the second input unit.

[0031] (5) A communication system according to one embodiment of the present disclosure comprises: a storage device for storing partial data which is a part of update data for updating a control program; and a processing device connected to the storage device for executing the control program to perform processing, wherein the storage device comprises: a first input unit which is detachably connected to an external device and inputs the partial data from the external device; a second input unit to which the partial data received wirelessly is input; a storage unit for storing the partial data; a storage unit which, when the partial data is input to the second input unit, stores the partial data input to the second input unit in the storage unit, and, when the partial data is input to the first input unit during repeated input of the partial data to the second input unit, stops storing the partial data input to the second input unit and stores the partial data input to the first input unit in the storage unit; and a sending unit which sends the partial data to the processing device.

[0032] (6) A storage method according to one aspect of the present disclosure includes the following steps: when a part of update data for controlling program update, that is, partial data, is received wirelessly, the received partial data is stored; when the partial data is input via wired during repeated wireless reception of the partial data, the storage of the partial data received wirelessly is stopped; and when the partial data is input via wired during repeated wireless reception of the partial data, the partial data input via wired is stored.

[0033] (7) According to an embodiment of the present disclosure, a computer program causes a computer to execute the following steps: when partial data, which is a part of update data for controlling program update, is received wirelessly, the computer saves the received partial data; when the partial data is input via wired during repeated wireless reception of the partial data, the computer stops saving the partial data received wirelessly; and when the partial data is input via wired during repeated wireless reception of the partial data, the computer saves the partial data received via wired.

[0034] In the storage device, storage method, and computer program according to the above-mentioned aspect, when partial data is inputted via wired during repeated inputting of partial data received wirelessly, the storage of the partial data received wirelessly to the storage unit is stopped, and the partial data inputted via wired is stored in the storage unit. Therefore, it is possible to prevent unnecessary updating of the control program using update data composed of a plurality of partial data received wirelessly.

[0035] In the storage device according to the above aspect, when partial data is input via wire while partial data received wirelessly is repeatedly input, transmission stop data is output, thereby stopping repeated transmission of partial data wirelessly.

[0036] In the storage device according to the above aspect, when partial data is input via wire while partial data received wirelessly is repeatedly input, partial data stored in the storage unit by wireless reception is deleted from the storage unit.

[0037] In the storage device according to one embodiment, it is assumed that partial data is inputted via wired connection during the period of repeatedly inputting partial data received via wireless connection. In this case, it is determined whether the version of the control program updated using the update data related to the partial data inputted via wired connection is the same as the version of the control program updated using the update data related to the partial data received via wireless connection. If it is determined that the versions are the same, output request data is outputted to the external device, so that the remaining partial data of the plurality of partial data constituting the update data is outputted to the external device via wired connection. Therefore, the time required to obtain the update data is short.

[0038] In the communication system according to the above aspect, the storage device transmits the partial data to the processing device. The processing device updates the control program using the update data composed of the received plurality of partial data. [Details of the embodiments of the present disclosure]

[0039] Hereinafter, specific examples of the communication system according to the embodiment of the present disclosure will be described with reference to the drawings. In addition, the present invention is not limited to these examples, but is indicated by the claims, and is intended to include all changes within the meaning and scope equivalent to the claims. (Implementation method 1)

[0040] Figure 1 1 is a block diagram showing a main part structure of a communication system 1 in Embodiment 1. The communication system 1 is preferably mounted on a vehicle 100 and includes a relay device 10, ECUs 11a and 11b, a connector 12, and a wireless device 13. The ECUs 11a and 11b, the connector 12, and the wireless device 13 are connected to the relay device 10, respectively.

[0041] The connector 12 is detachably connected to a connector 21 connected to a diagnostic tool 20. The diagnostic tool 20 is a portable device. When the connector 12 is connected to the connector 21, the relay device 10 is connected to the diagnostic tool 20. When the connection between the connectors 12 and 21 is released, the connection between the diagnostic tool 20 and the relay device 10 is released.

[0042] ECU11a and 11b are respectively connected to electrical equipment (not shown) mounted on vehicle 100. ECU11a and 11b respectively have one or more CPUs (Central Processing Units) (not shown). A control program Pa is stored in ECU11a. The one or more CPUs of ECU11a execute control processing for controlling the operation of the electrical equipment connected to ECU11a by executing the control program Pa. Similarly, a control program Pb is stored in ECU11b. The one or more CPUs of ECU11b execute control processing for controlling the operation of the electrical equipment connected to ECU11b by executing the control program Pb.

[0043] The relay device 10 functions as a storage device. The ECUs 11a and 11b each function as a processing device.

[0044] ECU11a, 11b respectively transmit data to the relay device 10. The relay device 10 transmits the data received from ECU11a to ECU11b, and transmits the data received from ECU11b to ECU11a. Thus, ECU11a, 11b communicate with each other via the relay device 10, so that a plurality of electrical devices connected to ECU11a, 11b perform coordinated operations. In this communication, as a communication protocol, a protocol corresponding to Ethernet (registered trademark) or a CAN (Controller Area Network) protocol is used.

[0045] The update data used to update the control program Pa is composed of Na partial data (refer to Fig.10 ). Therefore, the partial data is a part of the update data. Na is an integer greater than 2. In the partial data, in addition to the program information indicating a part of the updated control program Pa, the version information indicating the version of the updated control program Pa and the number information indicating the configuration number are also included. The update data is realized by configuring Na partial data in the order of the configuration numbers.

[0046] The relay device 10 repeatedly sends the partial data to the ECU 11a. When receiving the partial data received from the relay device 10, the ECU 11a stores the received partial data. When storing Na partial data, i.e., update data, the ECU 11a waits until the state of the vehicle 100 becomes a state in which the control program Pa can be updated. When the state of the vehicle 100 becomes a state in which the control program Pa can be updated, the one or more CPUs of the ECU 11a use the update data to update the control program Pa.

[0047] In addition, the state in which the control program Pa can be updated is, for example, the state in which the ignition switch of the vehicle 100 is off.

[0048] Furthermore, while the relay device 10 repeatedly sends partial data to the ECU 11a, when there is no need to update the control program Pa using the update data related to the sent partial data, the relay device 10 sends deletion instruction data instructing the ECU 11a to delete the partial data. Upon receiving the deletion instruction data, the ECU 11a deletes all partial data received from the relay device 10.

[0049] Similarly, the update data used for updating the control program Pb is composed of Nb partial data. Nb is an integer greater than 2. The partial data includes, in addition to program information indicating a part of the updated control program Pb, version information indicating the version of the updated control program Pb and number information indicating the configuration number.

[0050] The updating of the control program Pb and the deletion of some data performed by ECU11b are respectively the same as the updating of the control program Pa and the deletion of some data performed by ECU11a. Specifically, in the description of the updating of the control program Pa and the deletion of some data performed by ECU11a, ECU11a, the control program Pa, and the integer Na are replaced by ECU11b, the control program Pb, and the integer Nb, respectively. In this way, the updating of the control program Pb and the deletion of some data performed by ECU11b can be described.

[0051] The diagnostic tool 20 has an operation unit (not shown) operated by a user, such as a dealer. The diagnostic tool 20 operates according to the operation of the operation unit. When the connector 21 is connected to the connector 12, the diagnostic tool 20 outputs first request data requesting its own authentication to the relay device 10. The first request data includes information such as identification information or a password. When the first request data is input, the relay device 10 authenticates the diagnostic tool 20 based on the information included in the input first request data. When the authentication is successful, the relay device 10 outputs output permission data for outputting permission data to the diagnostic tool 20.

[0052] After the output permission data is input, the diagnostic tool 20 outputs various data to the relay device 10. Specifically, the diagnostic tool 20 repeatedly outputs partial data related to the update data of the control program Pa to the relay device 10 via the connectors 21 and 12. Similarly, the diagnostic tool 20 repeatedly outputs partial data related to the update data of the control program Pb to the relay device 10 via the connectors 21 and 12.

[0053] When the wireless device 13 receives data wirelessly from the server 30 installed outside the vehicle 100, it outputs the received data to the relay device 10. Furthermore, when the wireless device 13 receives data from the relay device 10, it transmits the input data to the server 30 wirelessly.

[0054] When the transmission condition of the update data of the control program Pa or the control program Pb is satisfied, the server 30 transmits the second request data requesting the authentication of itself to the wireless device 13. The second request data includes information such as identification information or a password. When the wireless device 13 receives the second request data, it outputs the received second request data to the relay device 10. When the second request data is input, the relay device 10 authenticates the server 30 based on the information included in the input second request data.

[0055] When the authentication is successful, the relay device 10 outputs transmission permission data for permitting transmission of the data to the wireless device 13. The wireless device 13 transmits the transmission permission data to the server 30 via wireless. When the server 30 receives the transmission permission data from the wireless device 13, it repeatedly transmits partial data related to the update data of the control program Pa or the control program Pb to the wireless device 13 via wireless. Whenever the wireless device 13 receives partial data related to the update data of the control program Pa or the control program Pb from the server 30 via wireless, the wireless device 13 outputs the received partial data to the relay device 10.

[0056] The server 30 repeatedly transmits partial data related to the update data of the control program Pa to the wireless device 13 via wireless, and repeatedly transmits partial data related to the update data of the control program Pb to the wireless device 13 via wireless.

[0057] The relay device 10 outputs transmission stop data for instructing to stop repeatedly transmitting partial data by wireless to the wireless device 13. When the transmission stop data is input from the relay device 10, the wireless device 13 transmits the input transmission stop data to the server 30 by wireless. When the server 30 receives the transmission stop data from the wireless device 13 during the period of repeatedly transmitting partial data related to the update data of the control program Pa or the control program Pb to the wireless device 13, the server 30 stops repeatedly transmitting the partial data. Thereafter, when the transmission condition of the update data of the control program Pa or the control program Pb is satisfied, the server 30 transmits the second request data to the wireless device 13 again and repeatedly transmits the partial data to the wireless device 13.

[0058] Figure 2 1 is a block diagram showing the main structure of the relay device 10. The relay device 10 has two communication units 40a and 40b, a first input / output unit 41, a second input / output unit 42, a storage unit 43, and a control unit 44. These are connected to an internal bus 45. The communication unit 40a is also connected to the ECU 11a. The communication unit 40b is also connected to the ECU 11b. The first input / output unit 41 is also connected to the connector 12. The second input / output unit 42 is also connected to the wireless device 13.

[0059] When the connector 12 and the connector 21 are connected, the diagnostic tool 20 is connected to the first input / output unit 41. When the connectors 12 and 21 are disconnected, the diagnostic tool 20 and the first input / output unit 41 are also disconnected. In this way, the first input / output unit 41 is detachably connected to the diagnostic tool 20. The diagnostic tool 20 is equivalent to an external device.

[0060] The communication unit 40a transmits data to the ECU 11a according to the instruction of the control unit 44. One of the data transmitted by the communication unit 40a to the ECU 11a is partial data related to the update data of the control program Pa. The communication unit 40a receives data from the ECU 11a.

[0061] Similarly, the communication unit 40b transmits data to the ECU 11b according to the instruction of the control unit 44. One of the data transmitted by the communication unit 40b to the ECU 11b is partial data related to the update data of the control program Pb. The communication unit 40b receives data from the ECU 11b.

[0062] The first input / output unit 41 outputs the output permission data to the diagnostic tool 20 via the connectors 12 and 21 according to the instruction of the control unit 44. In addition, partial data related to the update data of the control program Pa is repeatedly input from the diagnostic tool 20 to the first input / output unit 41 via the connectors 21 and 12. Similarly, partial data related to the update data of the control program Pb is repeatedly input from the diagnostic tool 20 to the first input / output unit 41 via the connectors 21 and 12. The first input / output unit 41 functions as a first input unit.

[0063] The second input / output unit 42 outputs the transmission permission data and the transmission stop data to the wireless device 13 according to the instruction of the control unit 44. As described above, when data is input to the wireless device 13, the wireless device 13 transmits the input data to the server 30 by wireless. When the server 30 receives the transmission permission data from the wireless device 13, it starts to repeatedly transmit the partial data related to the update data of the control program Pa or the control program Pb. Furthermore, when the server 30 receives the transmission stop data from the wireless device 13, it stops the repeated transmission of the partial data.

[0064] In addition, the second request data received by the wireless device 13 from the server 30 is input to the second input / output unit 42. Furthermore, partial data received by the wireless device 13 from the server 30 via wireless is repeatedly input to the second input / output unit 42 from the wireless device 13. Therefore, partial data related to the update data of the control program Pa and partial data related to the update data of the control program Pb are input to the second input / output unit 42. The second input / output unit 42 functions as a second input unit.

[0065] The storage unit 43 is a nonvolatile memory and stores partial data related to update data of each of the control programs Pa and Pb through the control unit 44 in the storage unit 43 .

[0066] The storage unit 43 also stores a control program Pr. The control unit 44 has one or more CPUs. The one or more CPUs of the control unit 44 execute the relay process, the tool authentication process, the server authentication process, the first update data storage process, the second update data storage process, and the update data transmission process by executing the control program Pr. The first update data storage process, the second update data storage process, and the update data transmission process have processes related to the control program Pa and processes related to the control program Pb, respectively. The control unit 44 executes the relay process, the tool authentication process, the server authentication process, the first update data storage process, the second update data storage process, and the update data transmission process in parallel in a time-sharing manner.

[0067] The relay process is a process of relaying the communication between the ECUs 11 a and 11 b. The tool authentication process is a process of authenticating the diagnostic tool 20. The server authentication process is a process of authenticating the server 30 communicating with the wireless device 13.

[0068] The first update data saving process related to the control program Pa is a process for saving the update data of the control program Pa input from the diagnostic tool 20 to the first input / output unit 41. The second update data saving process related to the control program Pa is a process for saving the update data of the control program Pa input from the wireless device 13 to the second input / output unit 42. The update data sending process related to the control program Pa is a process for sending the update data related to the control program Pa to the ECU 11a.

[0069] Similarly, the first update data saving process involving the control program Pb is a process for saving the update data of the control program Pb input from the diagnostic tool 20 to the first input / output unit 41. The second update data saving process involving the control program Pb is a process for saving the update data of the control program Pb input from the wireless device 13 to the second input / output unit 42. The update data sending process involving the control program Pb is a process for sending the update data of the control program Pb to the ECU 11b.

[0070] The control program Pr is a computer program for causing one or more CPUs included in the control unit 44 to execute relay processing, tool authentication processing, server authentication processing, first update data storage processing, second update data storage processing, and update data transmission processing.

[0071] In addition, the control program Pr can also be stored in the storage medium E1 in a manner that can be read by one or more CPUs of the control unit 44. In this case, the control program Pr read from the storage medium E1 by a reading device not shown in the figure is stored in the storage unit 43. The storage medium E1 is an optical disk, a floppy disk, a magnetic disk, a magneto-optical disk, or a semiconductor memory, etc. The optical disk is a CD (Compact Disc)-ROM (Read Only Memory), a DVD (Digital Versatile Disc)-ROM, or a BD (Blu-ray (registered trademark) Disc), etc. The magnetic disk is, for example, a hard disk. In addition, the control program Pr can also be downloaded from an external device not shown in the figure connected to a communication network not shown in the figure, and the downloaded control program Pr can be stored in the storage unit 43.

[0072] When one of the communication units 40a and 40b receives data, the control unit 44 performs relay processing. The control unit 44 selects a communication unit that transmits data from the communication units 40a and 40b based on information included in the received data, and instructs the selected communication unit to transmit the received data. As a result, the communication unit selected by the control unit 44 transmits the received data. After instructing the transmission of the received data, the control unit 44 ends the relay processing.

[0073] The control unit 44 performs a tool authentication process when the first request data is input from the diagnostic tool 20 to the first input / output unit 41. In the tool authentication process, the control unit 44 authenticates the diagnostic tool 20 based on the information included in the input first request data. When the authentication of the diagnostic tool 20 is successful, the control unit 44 instructs the first input / output unit 41 to output the output permission data. As a result, the first input / output unit 41 outputs the output permission data to the diagnostic tool 20, and the diagnostic tool 20 outputs various data to the first input / output unit 41. When the authentication of the diagnostic tool 20 fails, or after instructing the output of the output permission data, the control unit 44 ends the tool authentication process.

[0074] The control unit 44 performs a server authentication process when the second request data is input from the wireless device 13 to the second input / output unit 42. In the server authentication process, the control unit 44 authenticates the server 30 based on the information included in the input second request data. When the authentication of the server 30 is successful, the control unit 44 instructs the second input / output unit 42 to output the transmission permission data. As a result, the second input / output unit 42 outputs the transmission permission data to the wireless device 13, and the wireless device 13 transmits the transmission permission data to the server 30. As described above, when the server 30 receives the transmission permission data, it starts to repeatedly transmit the partial data. When the authentication of the server 30 fails, or after instructing the transmission of the transmission permission data, the control unit 44 ends the server authentication process.

[0075] Figure 3 4 is a flowchart showing the procedure of the first update data storage process related to the control program Pa. When partial data related to the update data of the control program Pa is input to the first input / output unit 41 , the control unit 44 executes the first update data storage process related to the control program Pa.

[0076] The value of a flag (hereinafter referred to as Pa flag) related to the control program Pa is stored in the storage unit 43. The value of the Pa flag is set to 0 or 1 by the control unit 44. The value of the Pa flag is 0, which indicates that the partial data related to the update data of the control program Pa is not repeatedly input from the diagnostic tool 20 to the first input / output unit 41. The value of the Pa flag is 1, which indicates that the partial data related to the update data of the control program Pa is repeatedly input from the diagnostic tool 20 to the first input / output unit 41.

[0077] In the first update data saving process related to the control program Pa, first, the control unit 44 sets the value of the Pa flag to 1 (step S1), and deletes all partial data stored in the storage unit 43 regarding the update data of the control program Pa (step S2). Next, the control unit 44 stores the partial data input to the first input / output unit 41 at the start of the first update data saving process in the storage unit 43 (step S3), and determines whether the partial data related to the update data of the control program Pa is further input to the first input / output unit 41 (step S4).

[0078] When the control unit 44 determines that the partial data is not input to the first input / output unit 41 (S4: No), the control unit 44 executes step S4 and waits until the partial data related to the update data of the control program Pa is re-input to the first input / output unit 41. When the control unit 44 determines that the partial data is input to the first input / output unit 41 (S4: Yes), the control unit 44 stores the partial data input to the first input / output unit 41 in the storage unit 43 (step S5), and determines whether Na partial data related to the update data of the control program Pa is stored in the storage unit 43 (step S6).

[0079] When the control unit 44 determines that Na partial data is not saved (S6: No), the control unit 44 executes step S4 and waits again until the partial data related to the update data of the control program Pa is re-input to the first input / output unit 41. When the control unit 44 determines that Na partial data is saved (S6: Yes), the value of the Pa flag is set to 0 (step S7), and the first update data saving process related to the control program Pa is terminated.

[0080] As described above, when partial data related to the update data of the control program Pa is input to the first input / output unit 41, the control unit 44 executes the first update data saving process related to the control program Pa. In the first update data saving process, the control unit 44 deletes all partial data related to the update data of the control program Pa stored in the storage unit 43, and then saves Na partial data, i.e., update data, input to the first input / output unit 41 in the storage unit 43. Until Na partial data is input to the first input / output unit 41, the value of the Pa flag is set to 1.

[0081] When partial data related to update data of the control program Pb is input to the first input / output unit 41 , the control unit 44 executes a first update data storage process related to the control program Pb.

[0082] The value of a flag (hereinafter referred to as a Pb flag) related to the control program Pb is stored in the storage unit 43. The value of the Pb flag is set to 0 or 1 by the control unit 44. The value of the Pb flag is 0, which indicates that the partial data related to the update data of the control program Pb is not repeatedly input from the diagnostic tool 20 to the first input / output unit 41. The value of the Pb flag is 1, which indicates that the partial data related to the update data of the control program Pb is repeatedly input from the diagnostic tool 20 to the first input / output unit 41.

[0083] The first update data saving process involved in the control program Pb is the same as the first update data saving process involved in the control program Pa. In the description of the first update data saving process involved in the control program Pa, the first update data saving process involved in the control program Pb can be described by changing the control program Pa, the Pa flag, and the integer Na to the control program Pb, the Pb flag, and the integer Nb, respectively.

[0084] Figure 4 4 is a flowchart showing the procedure of the second update data storage process related to the control program Pa. When partial data related to the update data of the control program Pa is input from the wireless device 13 to the second input / output unit 42 , the control unit 44 executes the second update data storage process related to the control program Pa.

[0085] In the second update data storage process related to the control program Pa, first, the control unit 44 determines whether the value of the Pa flag is 0 (step S11). As described above, the value of the Pa flag is 0, which means that the partial data related to the update data of the control program Pa is not repeatedly input to the first input / output unit 41. The value of the Pa flag is 1, which means that the partial data related to the update data of the control program Pa is repeatedly input to the first input / output unit 41.

[0086] Since the control unit 44 repeatedly inputs partial data related to the update data of the control program Pa to the first input / output unit 41 when it is determined that the value of the Pa flag is not 0, that is, the value of the Pa flag is 1 (S11: No), the second input / output unit 42 is instructed to output the transmission stop data (step S12). As a result, the second input / output unit 42 outputs the transmission stop data to the wireless device 13, and the wireless device 13 transmits the transmission stop data to the server 30 via wireless. When receiving the transmission stop data, the server 30 stops the repeated transmission of partial data related to the update data of the control program Pa. After executing step S12, the control unit 44 does not store the partial data input to the second input / output unit 42 at the start of the second update data storage process in the storage unit 43, but ends the second update data storage process related to the control program Pa.

[0087] When the control unit 44 determines that the value of the Pa flag is 0 (S11: Yes), it stores the partial data input to the second input / output unit 42 in the storage unit 43 (step S13), and determines again whether the value of the flag is 0 (step S14). Thus, the control unit 44 monitors whether the diagnostic tool 20 has started outputting the partial data related to the update data of the control program Pa.

[0088] When the control unit 44 determines that the value of the Pa flag is not 0, that is, the value of the Pa flag is 1 (S14: No), the control unit 44 executes step S12, and the server 30 stops the repeated transmission of the partial data related to the update data of the control program Pa. In addition, in the first update data storage process related to the control program Pa, after the value of the Pa flag is set to 1, all data stored in the second update data storage process related to the control program Pa is deleted from the storage unit 43.

[0089] When the control unit 44 determines that the value of the Pa flag is 0 (S14: Yes), it determines whether the partial data related to the update data of the control program Pa is input to the second input / output unit 42 (step S15). When the control unit 44 determines that the partial data is not input (S15: No), it executes step S14 and waits until the value of the Pa flag is changed to 1 or the partial data related to the update data of the control program Pa is input to the second input / output unit 42.

[0090] When the control unit 44 determines that partial data has been input (S15: Yes), the control unit 44 stores the partial data input to the second input / output unit 42 in the storage unit 43 (step S16), and determines whether Na partial data related to the update data of the control program Pa is stored in the storage unit 43 (step S17). When the control unit 44 determines that Na partial data is not stored (S17: No), the control unit 44 executes step S14 and waits again until the value of the Pa flag is changed to 1 or the partial data related to the update data of the control program Pa is re-input to the second input / output unit 42.

[0091] When the control unit 44 determines that Na partial data is stored ( S17 : Yes), it ends the second update data storage process related to the control program Pa.

[0092] When partial data related to the update data of the control program Pb is input from the wireless device 13 to the second input / output unit 42, the control unit 44 performs a second update data saving process related to the control program Pb. The second update data saving process related to the control program Pb is the same as the second update data saving process related to the control program Pa. In the description of the second update data saving process related to the control program Pa, the second update data saving process related to the control program Pb can be described by changing the control program Pa, the Pa flag, and the integer Na to the control program Pb, the Pb flag, and the integer Nb, respectively.

[0093] Figure 5 1 is a timing diagram showing an example of the operation of the communication system 1. It is assumed that the diagnostic tool 20 repeatedly outputs partial data related to the update data of the control program Pa to the first input / output unit 41 of the relay device 10. Whenever partial data is input to the first input / output unit 41, the control unit 44 of the relay device 10 stores the partial data input to the first input / output unit 41 in the storage unit 43.

[0094] In this situation, it is assumed that the server 30 transmits partial data related to the update data of the control program Pa to the wireless device 13, and the wireless device 13 outputs the partial data to the second input / output unit 42. In this case, the control unit 44 instructs the second input / output unit 42 to cause the wireless device 13 to output the transmission stop data, and the wireless device 13 transmits the transmission stop data to the server 30 via wireless. As a result, the server 30 stops the repeated transmission of the partial data related to the update data of the control program Pa.

[0095] The diagnostic tool 20 repeatedly outputs the partial data related to the update data of the control program Pa until the output of Na partial data is completed. The control unit 44 stores Na partial data in the storage unit 43 .

[0096] Figure 6 1 is a sequence diagram showing another example of the operation of the communication system 1. It is assumed that the server 30 repeatedly transmits partial data related to the update data of the control program Pa to the wireless device 13, and the wireless device 13 repeatedly outputs partial data related to the update data of the control program Pa to the second input / output unit 42 of the relay device 10. Whenever partial data is input to the second input / output unit 42, the control unit 44 of the relay device 10 stores the partial data input to the second input / output unit 42 in the storage unit 43.

[0097] Assume that, during the period when partial data related to the update data of the control program Pa is repeatedly input to the second input / output unit 42, partial data related to the update data of the control program Pa is input to the first input / output unit 41 of the relay device 10 from the diagnostic tool 20 via wire. In this case, the control unit 44 deletes from the storage unit 43 all partial data input from the wireless device 13 to the second input / output unit 42 and stored in the storage unit 43, and stops the storage of the partial data input to the second input / output unit 42. In addition, the control unit 44 instructs the second input / output unit 42 to output the transmission stop data. As a result, the wireless device 13 transmits the transmission stop data to the server 30 via wireless, and the server 30 stops the repeated transmission of the partial data related to the update data of the control program Pa. The control unit 44 functions as a deletion unit. The second input / output unit 42 also functions as an output unit.

[0098] Until the output of Na partial data is completed, the diagnostic tool 20 repeatedly outputs partial data related to the update data of the control program Pa. Whenever partial data related to the update data of the control program Pa is input from the diagnostic tool 20 to the first input / output unit 41, the control unit 44 stores the partial data input from the diagnostic tool 20 to the first input / output unit 41 via the wire in the storage unit 43. The control unit 44 also functions as a storage unit.

[0099] use Figure 5 and Figure 6 The description is for the case where the partial data output by the wireless device 13 and the diagnostic tool 20 is the partial data related to the update data of the control program Pa. The operation when the partial data output by the wireless device 13 and the diagnostic tool 20 is the partial data related to the update data of the control program Pb is the same as the operation when the partial data output by the wireless device 13 and the diagnostic tool 20 is the partial data related to the update data of the control program Pa.

[0100] Furthermore, when the control program corresponding to the partial data input from the diagnostic tool 20 to the first input / output unit 41 and the control program corresponding to the partial data input from the wireless device 13 to the second input / output unit 42 are different from each other, the control unit 44 does not stop the server 30 from repeatedly sending the partial data. That is, the control unit 44 saves the partial data related to the update data of the control program Pa and saves the partial data related to the update data of the control program Pb.

[0101] Figure 7 The flowchart shows the order of the update data transmission process involved in the control program Pa. As described above, the partial data includes number information indicating the configuration number. The configuration number of the partial data involved in the update data of the control program Pa is an integer greater than 1 and less than Na. As described above, the update data is realized by configuring Na partial data in the order of the configuration numbers. In the following, the partial data with the configuration number k (k: natural number) is recorded as the kth partial data.

[0102] The server 30 sequentially transmits partial data from the first partial data to the wireless device 13 according to the configuration number. The diagnostic tool 20 sequentially outputs partial data from the first partial data to the first input / output unit 41 according to the configuration number. The communication units 40a and 40b sequentially transmit partial data from the first partial data to the ECUs 11a and 11b, respectively, according to the configuration number.

[0103] When the first partial data related to the update data of the control program Pa is stored in the storage unit 43 , the control unit 44 executes the update data transmission process related to the control program Pa.

[0104] In the update data transmission process related to the control program Pa, first, the control unit 44 instructs the communication unit 40a to transmit the partial data stored in the storage unit 43 (step S21). As a result, the communication unit 40a transmits the partial data to the ECU 11a. Next, the control unit 44 determines whether the next partial data related to the update data of the control program Pa is stored in the storage unit 43 before a predetermined time has passed since the execution of step S21 (step S22). For example, when the first partial data is stored, the next partial data is the second partial data.

[0105] The predetermined time is longer than the time interval for the server 30 to send partial data to the wireless device 13, and longer than the time interval for the diagnostic tool 20 to output partial data to the first input / output unit 41. Therefore, as long as all partial data are deleted in step S2 of the first update data saving process involved in the control program Pa, or the saving of that partial data is not completed, the next partial data is saved in the storage unit 43 before the predetermined time has passed since the execution of step S21.

[0106] When the control unit 44 determines that the next partial data is stored (S22: Yes), the communication unit 40a transmits the next partial data to the ECU 11a in step S21. When the control unit 44 determines that the next partial data is not stored (S22: No), the control unit 44 determines whether the communication unit 40a has transmitted Na partial data (step S23).

[0107] When the control unit 44 determines that Na partial data has been sent (S23: Yes), the control unit 44 deletes the update data composed of Na partial data from the storage unit 43 (step S24). When the control unit 44 determines that Na partial data has not been sent (S23: No), the control unit 44 regards that the server 30 has stopped repeatedly sending partial data, and instructs the communication unit 40a to send the deletion instruction data (step S25).

[0108] Thus, the communication unit 40a transmits the deletion instruction data to the ECU 11a. As described above, when the ECU 11a receives the deletion instruction data, it deletes all the partial data transmitted by the communication unit 40a. Therefore, the ECU 11a does not update the control program Pa using the update data related to the partial data transmitted by the server 30.

[0109] After executing step S24 or step S25 , the control unit 44 ends the update data transmission process related to the control program Pa.

[0110] When the first partial data related to the update data of the control program Pb is stored in the storage unit 43, the control unit 44 executes the update data transmission process related to the control program Pb. The update data transmission process related to the control program Pb is the same as the update data transmission process related to the control program Pa. In the description of the update data transmission process related to the control program Pa, the control program Pa, the communication unit 40a, and the integer Na are respectively changed to the control program Pb, the communication unit 40b, and the integer Nb, so that the update data transmission process related to the control program Pb can be described. The communication units 40a and 40b each function as a transmission unit.

[0111] As described above, whenever the control unit 44 stores partial data related to update data of the control program Pa (or control program Pb), the communication unit 40a (or communication unit 40b) sends the partial data to the ECU 11a (or ECU 11b), and the ECU 11a (or ECU 11b) stores the received partial data. When receiving the deletion instruction data, the ECU 11a and 11b delete all the received partial data. As described above, when the update data is stored in the ECU 11a (or ECU 11b) and the state of the vehicle 100 is a state in which the control program Pa (or control program Pb) can be updated, the control program Pa (or control program Pb) is updated using the update data.

[0112] Generally, the update using the update data received from the server 30 is performed at an unspecified location with the permission of the occupant of the vehicle 100, and the update using the update data input from the diagnostic tool 20 is performed by a dealer operating the operation unit of the diagnostic tool 20 at a sales store or factory, etc. When considering the above, the update using the update data input from the diagnostic tool 20 is more important than the update using the update data received from the server 30.

[0113] In the relay device 10, when partial data related to update data of the control program Pa is input from the diagnostic tool 20 to the first input / output unit 41 while partial data related to update data of the control program Pa is repeatedly input from the wireless device 13 to the second input / output unit 42, the control unit 44 stops saving the partial data input to the second input / output unit 42. In addition, the partial data repeatedly input to the first input / output unit 41 is saved. Therefore, it is possible to prevent the server 30 from updating the control program Pa unnecessarily using the update data transmitted to the wireless device 13.

[0114] Regarding the control program Pb as well, the same effects as those described regarding the control program Pa can be obtained.

[0115] In addition, when there is no storage capacity for storing update data in ECU11a, 11b, the control unit 44 of the relay device 10 performs update data transmission processing when the update data is stored in the storage unit 43 and the state of the vehicle 100 is a state that can be updated. In this update data transmission processing, the control unit 44 instructs the communication unit 40a (or the communication unit 40b) to send partial data in sequence. Whenever ECU11a (or ECU11b) receives partial data, it partially updates the control program Pa (or control program Pb) using the received partial data and deletes the received partial data. ECU11a (or ECU11b) updates the entire control program Pa (or control program Pb) by repeatedly updating the partial data and deleting the received partial data. (Implementation method 2)

[0116] In the relay device 10 in the first embodiment, when partial data is input from the diagnostic tool 20 to the first input / output unit 41 while partial data is repeatedly input to the second input / output unit 42, the control unit 44 unconditionally deletes all partial data input to the second input / output unit 42. However, the control unit 44 may not unconditionally delete all partial data input to the second input / output unit 42.

[0117] The following describes the differences between Embodiment 2 and Embodiment 1. Since the configuration other than the configuration described below is common to Embodiment 1, the same reference numerals as in Embodiment 1 are given to the common configuration parts to avoid descriptions thereof.

[0118] In the communication system 1 of the second embodiment, the first input / output unit 41 of the relay device 10 outputs the designated data that designates the partial data output by the diagnostic tool 20 to the diagnostic tool 20. The designated data designates the configuration number for the update data of the control program Pa or the control program Pb. For example, the designated data designates the Na-th partial data from the tenth partial data constituting the update data of the control program Pa. When the designated data is input, the diagnostic tool 20 sequentially outputs one or more partial data designated by the input designated data to the first input / output unit 41.

[0119] Figure 8 This is a flowchart showing the procedure of the first update data storage process in the second embodiment. Figure 8 The first update data storage process shown is a process related to the control program Pa. As in the first embodiment, the control unit 44 executes the first update data storage process related to the control program Pa when partial data related to the update data of the control program Pa is input to the first input / output unit 41 .

[0120] In addition, as described in the description of Embodiment 1, the partial data includes version information and number information. The version information of the partial data related to the update data of the control program Pa indicates the version of the control program Pa after the update.

[0121] Steps S31, S33, S34, S38 to S41 of the first update data storage process in Embodiment 2 are respectively the same as S1, S2, S3, S4 to S7, and therefore, detailed description of steps S31, S33, S34, S38 to S41 will be omitted.

[0122] In the first update data storage process according to the control program Pa, after executing step S31 , the control unit 44 determines whether partial data having the same version as that indicated by the version information of the partial data input to the first input / output unit 41 is stored in the storage unit 43 (step S32 ).

[0123] Assuming that the partial data related to the update data of the control program Pa is input to the first input / output unit 41 during the period in which the partial data related to the update data of the control program Pa is repeatedly input from the wireless device 13 to the second input / output unit 42, the first update data storage process related to the control program Pa is started. In this case, the control unit 44 determines in step S32 whether the version indicated by the version information of the partial data input to the first input / output unit 41 is the same as the version indicated by the version information of the partial data stored in the storage unit 43, that is, the partial data input to the second input / output unit 42. The control unit 44 also functions as a determination unit.

[0124] When the control unit 44 determines that the partial data of the same version is not stored (S32: No), the control unit 44 executes steps S33 and S34. As a result, all partial data stored in the storage unit 43 are deleted for the update data of the control program Pa, and the partial data input to the first input / output unit 41 is stored in the storage unit 43 when the first update data storage process is started.

[0125] When the control unit 44 determines that partial data of the same version is stored (S32: Yes), it instructs the first input / output unit 41 to output designated data that specifies the remaining partial data not stored in the storage unit 43 among the partial data (step S35). Thus, the first input / output unit 41 outputs the designated data. When designated data is input from the first input / output unit 41, the diagnostic tool 20 sequentially outputs the partial data represented by the input designated data, i.e., the remaining partial data constituting the update data, to the first input / output unit 41. The designated data is equivalent to output request data requesting the output of the remaining partial data constituting the update data. The first input / output unit 41 also functions as a second output unit.

[0126] Furthermore, when the control unit 44 determines that partial data of the same version is stored, the control unit 44 does not store the partial data input to the first input / output unit 41 at the start of the first update data storage process in the storage unit 43 .

[0127] Next, the control unit 44 determines whether one of the partial data specified by the designation data is input to the first input / output unit 41 (step S36). When the control unit 44 determines that none of the partial data specified by the designation data is input to the first input / output unit 41 (S36: No), the control unit 44 executes step S36 again and waits until one of the partial data specified by the designation data is input to the first input / output unit 41.

[0128] When the control unit 44 determines that one of the partial data designated by the designation data is input to the first input / output unit 41 (S36: Yes), the control unit 44 stores the partial data input to the first input / output unit 41 in the storage unit 43 (step S37). After executing step S34 or step S37, the control unit 44 executes step S38.

[0129] Thereafter, the control unit 44 waits for input of partial data from the diagnostic tool 20 until Na partial data related to the update data of the control program Pa are stored in the storage unit 43 .

[0130] In the second embodiment, the first update data saving process involved in the control program Pb is also the same as the first update data saving process involved in the control program Pa. In the description of the first update data saving process involved in the control program Pa, the first update data saving process involved in the control program Pb can be described by changing the control program Pa, the Pa flag, and the integer Na to the control program Pb, the Pb flag, and the integer Nb, respectively.

[0131] Fig. 9 1 is a sequence diagram showing an example of the operation of the communication system 1. It is assumed that the server 30 repeatedly transmits partial data related to the update data of the control program Pa to the wireless device 13, and the wireless device 13 repeatedly outputs partial data related to the update data of the control program Pa to the second input / output unit 42 of the relay device 10. Whenever partial data is input to the second input / output unit 42, the control unit 44 of the relay device 10 stores the partial data input to the second input / output unit 42 in the storage unit 43.

[0132] Assume that, while partial data related to the update data of the control program Pa is repeatedly input to the second input / output unit 42, partial data related to the update data of the control program Pa is input from the diagnostic tool 20 to the first input / output unit 41 of the relay device 10 via wire. In this case, the control unit 44 stops saving the partial data input to the second input / output unit 42, and instructs the second input / output unit 42 to cause the wireless device 13 to output transmission stop data. As a result, the server 30 stops repeatedly transmitting the partial data related to the update data of the control program Pa.

[0133] Next, the control unit 44 determines whether the version indicated by the version information of the partial data input to the first input / output unit 41 is the same as the version indicated by the version information of the partial data input to the second input / output unit 42. When the control unit 44 determines that the versions indicated by the version information of the partial data input to the first input / output unit 41 are the same, the control unit 44 instructs the first input / output unit 41 to output the designated data and requests the diagnostic tool 20 to output the remaining partial data constituting the update data of the control program Pa. When the designated data is input from the first input / output unit 41, the diagnostic tool 20 sequentially outputs the remaining partial data designated by the input designated data to the first input / output unit 41.

[0134] Until the storage of Na partial data is completed, the diagnostic tool 20 repeatedly outputs the partial data related to the update data of the control program Pa. Whenever the partial data related to the update data of the control program Pa is input from the diagnostic tool 20 to the first input / output unit 41, the control unit 44 stores the partial data input from the diagnostic tool 20 to the first input / output unit 41 via the wire in the storage unit 43.

[0135] Fig.10 4 is a schematic diagram of the structure of update data. It is assumed that the version indicated by the version information of the partial data input to the first input / output unit 41 is the same as the version indicated by the version information of the partial data input to the second input / output unit 42. In this case, Fig.10 As shown, for example, among Na partial data constituting the update data, the first to twentieth partial data are constituted by partial data input from the wireless device 13, and the twenty-first to Nath partial data are constituted by partial data input from the diagnostic tool 20. Therefore, in the relay device 10 of the second embodiment, the time required to obtain the update data is short.

[0136] The communication system 1 and the relay device 10 in the second embodiment also achieve the same effects as those achieved by the communication system 1 and the relay device 10 in the first embodiment, respectively.

[0137] Furthermore, in the first update data saving process of the second embodiment, when the control unit 44 determines that partial data of the same version is saved, it may instruct the first input / output unit 41 to output data for stopping repeated output of partial data to the diagnostic tool 20 and terminate the process.

[0138] In this configuration, when the version indicated by the version information of the partial data input to the first input / output unit 41 is the same as the version indicated by the version information of the partial data input to the second input / output unit 42, update data is obtained from the server 30 instead of the diagnostic tool 20. In this configuration, since it is necessary to continuously obtain partial data from the server 30, the value of the flag is set toward 1 when it is determined that partial data of the same version is not stored after the version determination. When it is determined that partial data of the same version is stored, the control unit 44 maintains the value of the flag at 0.

[0139] In addition, in the first and second embodiments, the number of ECUs connected to the relay device 10 is not limited to two, and may be three or more. In addition, a structure in which a plurality of communication buses are connected to the relay device 10, and one or more ECUs are connected to each communication bus may be adopted. In this case, the relay device 10 relays the communication between the ECU connected to one communication bus and the ECU connected to another communication bus according to the CAN protocol, for example.

[0140] In addition, it is assumed that partial data is input from the diagnostic tool 20 to the first input / output unit 41 while partial data is repeatedly input from the wireless device 13 to the second input / output unit 42 of the relay device 10. In this case, the control unit 44 may stop saving the partial data input to the second input / output unit 42 regardless of the control program composed of update data related to the partial data input to the second input / output unit 42.

[0141] Specifically, while partial data related to update data of the control program Pb is repeatedly input from the wireless device 13 to the second input / output unit 42, when partial data related to update data of the control program Pa is input from the diagnostic tool 20 to the first input / output unit 41, the control unit 44 may stop storing the partial data input to the second input / output unit 42. In this case, the control unit 44 also deletes all partial data input to the second input / output unit 42 and stored in the storage unit 43, and stops the server 30 from repeatedly sending the partial data.

[0142] The partial data output by the diagnostic tool 20 and the partial data transmitted by the server 30 are not limited to partial data as a part of update data used for updating the control programs Pa and Pb, and may be, for example, partial data as a part of update data used for updating the control program Pr of the relay device 10. In this case, when the state of the vehicle 100 is a state in which the control program Pr can be updated, for example, when the ignition switch of the vehicle 100 is turned off, the control unit 44 updates the control program Pr by executing an update program not shown.

[0143] The device to which this configuration can be applied is not limited to a relay device that relays communications, and any device may be a control device that performs control by executing a control program through a CPU.

[0144] The disclosed embodiments 1 and 2 are illustrative in all aspects and are not restrictive. The scope of the present invention is indicated by the claims rather than the above meaning, and is intended to include all modifications within the meaning and scope equivalent to the claims.

[0145] Description of Reference Numerals 1 Communication system 10 Relay device (storage device) 11a, 11b ECU (processing unit) 12, 21 Connectors 13 Wireless 20 Diagnostic tools (external devices) 30 Servers 40a, 40b Communication unit (sending unit) 41 First input / output unit (first input unit, second output unit) 42 Second input / output unit (second input unit, output unit) 43 Storage 44 Control unit (deletion unit, storage unit, judgment unit) 45 Internal bus 100 Vehicles E1 storage media Pa, Pb control program Pr Control program (computer program).

Claims

1. A storage device comprising: a first input unit for inputting partial data, which is a part of update data for updating the control program, from a diagnostic tool that operates according to an operation of the operating unit; A second input unit to which the partial data received wirelessly is input; A storage unit for storing the partial data; a storage unit that stores the partial data input to the second input unit in the storage unit when the partial data is input to the second input unit; and an output unit that outputs, to the wireless device, transmission stop data for instructing to stop repeatedly transmitting the partial data via wireless, when the partial data is input to the first input unit during the period when the partial data is repeatedly input to the second input unit, The transmission stop data outputted by the output unit to the wireless device is transmitted wirelessly, The saving unit saves part of the data input to the first input unit in the storage unit.

2. The storage device according to claim 1, wherein: The storage device includes a deleting unit that deletes, from the storage unit, partial data input to the second input unit and stored in the storage unit when the partial data is input to the first input unit while the partial data is repeatedly input to the second input unit.

3. The storage device according to claim 1 or 2, comprising: a determination unit that determines whether a version of a control program updated using update data related to the partial data input to the first input unit is the same as a version of a control program updated using update data related to the partial data input to the second input unit, when the partial data is input to the first input unit during the period in which the partial data is repeatedly input to the second input unit; and A second output unit outputs output request data to the diagnostic tool requesting output of remaining partial data constituting the update data, when the determination unit determines that the version of the control program updated using the update data involving the partial data input to the first input unit is the same as the version of the control program updated using the update data involving the partial data input to the second input unit.

4. A communication system comprising: The storage device according to any one of claims 1 to 3; and a processing device, connected to the storage device, for performing processing, The control program is executed by the processing device, The storage device includes a transmission unit that transmits the partial data to the processing device.

5. A storage method, wherein a computer executes the following steps: When receiving a part of update data for controlling program update by wireless, namely partial data, storing the received partial data; When the partial data is input from a diagnostic tool operated by an operation of an operating unit during repeated wireless reception of the partial data, instructing the wireless device to output transmission stop data, the transmission stop data instructing to stop repeated wireless transmission of the partial data; and saving a portion of the data input from said diagnostic tool, The transmission stop data output to the wireless device is transmitted wirelessly.

6. A computer program for causing a computer to perform the following steps: When receiving a part of update data for controlling program update by wireless, namely partial data, storing the received partial data; When the partial data is input from a diagnostic tool that operates according to an operation of an operating unit during repeated wireless reception of the partial data, instructing the wireless device to output transmission stop data, the transmission stop data instructing to stop repeated wireless transmission of the partial data; and saving a portion of the data input from said diagnostic tool, The transmission stop data output to the wireless device is transmitted wirelessly.