Data communication system, data communication method, server and vehicle

By using multiple hash value generators and comparators in the data communication system to generate and compare hash values ​​to determine data validity, the problem of data security when the hash value is attacked is solved and the security of data transmission is improved. sex.

CN111193587BActive Publication Date: 2024-09-10HYUNDAI MOTOR CO LTD +1
View PDF 17 Cites 0 Cited by

Patent Information

Application Number
CN201910269727.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-11-14
Filing Date
2019-04-04
Publication Date
2024-09-10
Estimated Expiration
2039-04-04

AI Technical Summary

Technical Problem

When the existing hash value generation is used for data communication, it cannot reliably protect data security if it is attacked by hackers.

Method used

The first hash value and the second hash value are generated by using multiple previous hash values ​​as seed numbers in the data sending device and the receiving device, and the consistency of the two is compared to determine the validity of the data.

Benefits of technology

It improves data security in data communication and ensures the integrity and validity of data during transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111193587B_ABST
    Figure CN111193587B_ABST
Patent Text Reader

Abstract

The present invention relates to a data communication system, a data communication method, a server and a vehicle. The data communication system may include: a data transmission device configured to generate a first hash value using one of a plurality of previous hash values ​​as a first seed number, encrypt data using the first hash value, and transmit the encrypted data; and a data receiving device configured to receive data transmitted from the data transmission device, separate the first hash value generated by the data transmission device from the data, calculate a second hash value using one of a plurality of previous hash values ​​as a second seed number, and determine the validity of the data based on whether the calculated second hash value is consistent with the first hash value separated from the data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to a vehicle, and in particular to data communication between a vehicle and a server. Background Art

[0002] Data security is one of the most important factors in communication between vehicles and servers. Usually, data is constructed by adding a hash value to the content to be sent, thereby enhancing the security of data communication. However, if the hash function used to generate the hash value is made public due to hacking or other malicious attacks, data security technology based on the use of such hash values ​​cannot reliably protect the content being sent. Summary of the invention

[0003] One aspect of the present invention is to improve data security in data communication between a data transmitting device and a data receiving device.

[0004] Additional aspects of the present invention are set forth in part in the description which follows, in part will be apparent from the description, or may be learned through practice of the present invention.

[0005] According to an embodiment of the present invention, a data communication system may include: a data sending device, configured to generate a first hash value using one of multiple previous hash values ​​as a first seed number, encrypt data using the first hash value, and send the encrypted data; and a data receiving device, configured to receive data sent from the data sending device, separate the first hash value generated by the data sending device from the data, calculate a second hash value using one of the multiple previous hash values ​​as a second seed number, and determine the validity of the data based on whether the calculated second hash value is consistent with the first hash value separated from the data.

[0006] The data transmitting device may include a first delay function generator configured to generate a first seed number using one of a plurality of previous hash values.

[0007] The data receiving device may include a second delay function generator configured to calculate a second seed number using one of the plurality of previous hash values.

[0008] The data receiving device may include a comparator configured to compare a second hash value calculated using one of the plurality of previous hash values ​​as a second seed number with a first hash value separated from the data, and determine whether the calculated second hash value is consistent with the first hash value separated from the data.

[0009] When the data transmitting device generates the first hash value, the first seed number may use a predetermined initial value.

[0010] In addition, according to an embodiment of the present invention, a data communication method may include: generating a first hash value by a data sending device using one of multiple previous hash values ​​as a first seed number; encrypting data by the data sending device using the first hash value; sending the encrypted data by the data sending device; receiving data sent from the data sending device by a data receiving device; separating the first hash value generated by the data sending device from the data by the data receiving device; calculating a second hash value by the data receiving device using one of multiple previous hash values ​​as a second seed number; and determining the validity of the data by the data receiving device based on whether the calculated second hash value is consistent with the first hash value separated from the data.

[0011] The method may also include generating, by the data transmitting device, a first seed number using one of the plurality of previous hash values.

[0012] The method may further include generating, by the data receiving device, a second seed number using one of the previous hash values.

[0013] The method may also include comparing, by the data receiving device, a second hash value calculated using one of the previous hash values ​​as a second seed number with the first hash value separated from the data, and determining, by the data receiving device, whether the calculated second hash value is consistent with the first hash value separated from the data.

[0014] When the data transmitting device generates the first hash value, the first seed number may use a predetermined initial value.

[0015] In addition, according to an embodiment of the present invention, a data communication system may include: a server, configured to generate a first hash value using one of a plurality of previous hash values ​​as a first seed number, encrypt data using the first hash value, and send the encrypted data; and a vehicle, configured to receive data sent from a data sending device, separate the first hash value generated by the data sending device from the data, calculate a second hash value using one of a plurality of previous hash values ​​as a second seed number, and determine the validity of the data based on whether the calculated second hash value is consistent with the first hash value separated from the data.

[0016] In addition, according to an embodiment of the present invention, the server may include: a delay function generator configured to generate a previous hash value; a hash value generator configured to generate a new hash value using the previous hash value as a seed number; a data configurator configured to encrypt data using the new hash value; and a transmitter configured to send the encrypted data.

[0017] When the hash value generator generates a new hash value, the seed number may use a predetermined initial value.

[0018] In addition, according to an embodiment of the present invention, a vehicle may include: a receiver configured to receive data encrypted using a first hash value; a data separator configured to separate the first hash value from the data; a delay function generator configured to calculate a seed number using a previous hash value and calculate a second hash value using the calculated seed number; and a comparator configured to determine the validity of the data based on whether the calculated second hash value is consistent with the first hash value separated from the data.

[0019] When generating the first hash value, the seed number may use a predetermined initial value. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] These and / or other aspects of the present invention will become apparent and more easily understood from the following description of the embodiments in conjunction with the following drawings:

[0021] Figure 1 is a view showing communication between a vehicle and a telematics center (server) according to an embodiment of the present invention;

[0022] Figure 2 is a diagram showing a control system of each vehicle and a server according to an embodiment of the present invention;

[0023] Figure 3A and Figure 3B is a view showing a vehicle control method according to an embodiment of the present invention; and

[0024] Figure 4 It specifically shows Figure 3A and Figure 3B A view of the mutual update confirmation process of the vehicle control method is shown.

[0025] It should be understood that the above-mentioned views are not necessarily to scale, but rather present somewhat simplified representations of various preferred features that illustrate the basic principles of the present invention. The specific design features of the present invention (including, for example, specific dimensions, orientations, locations, and shapes) will be determined to some extent by the specific intended application and use environment. DETAILED DESCRIPTION

[0026] Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. As will be appreciated by those skilled in the art, the embodiments described can be changed in various ways without departing from the spirit or scope of the present invention. In addition, throughout the specification, the same reference numerals refer to the same elements.

[0027] The terms used herein are only used to describe specific embodiments and are not intended to limit the present invention. As used herein, the singular forms "a", "a kind of" and "said" are also intended to include plural forms unless the context clearly indicates otherwise. It is further understood that when used in this specification, the words "include" and / or "comprise" specify the presence of the features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or their groups. As used herein, the word "and / or" includes any and all combinations of one or more related listed items.

[0028] It should be understood that the term "vehicle" or "vehicle-related" or other similar terms used herein generally include motor vehicles, such as passenger cars including sports utility vehicles (SUVs), buses, trucks, various commercial vehicles; ships including various boats, vessels, aircraft, etc., and include hybrid vehicles, electric vehicles, plug-in hybrid electric vehicles, hydrogen-powered vehicles and other alternative fuel vehicles (e.g., fuels from non-petroleum resources). As mentioned herein, a hybrid vehicle is a vehicle with two or more power sources, such as a vehicle that has both gasoline power and electric power.

[0029] Additionally, it should be understood that one or more of the following methods, or aspects thereof, may be performed by at least one control unit. The term "control unit" may refer to a hardware device including a memory and a processor. The memory is configured to store program instructions, and the processor is specifically programmed to execute program instructions for implementing one or more processes further described below. The control unit may control the operation of the units, modules, components, devices, etc. described herein. In addition, it should be understood that the following methods may be performed by a device including a control unit in combination with one or more other components, as understood by a person of ordinary skill in the art.

[0030] In addition, the control unit of the present invention may be embodied as a non-transitory computer-readable medium containing executable program instructions executed by a processor. Examples of computer-readable media include, but are not limited to, ROM, RAM, compact disk (CD)-ROM, magnetic tape, floppy disk, flash drive, smart card, and optical data storage device. The computer-readable recording medium may also be distributed throughout a computer network so that program instructions are stored and executed in a distributed manner, for example, by a telematics server or a controller area network (CAN).

[0031] Now, referring to the embodiments disclosed in the present invention, Figure 1 is a view showing communication between a vehicle and a telematics center (server) according to an embodiment of the present invention.

[0032] like Figure 1As shown, the vehicle 100 can communicate with a server 104 of a remotely located telematics center 102. The server 104 of the telematics center 102 can support the update of software or firmware of various devices of the vehicle 100 through wireless communication. The server 104 and the vehicle 100 are elements constituting a data communication system as a data transmitting device (i.e., a server) for transmitting data and a data receiving device (i.e., a vehicle) for receiving data, respectively.

[0033] Figure 2 is a view showing a control system of each vehicle and a server according to an embodiment of the present invention.

[0034] The server 104 may add a hash value to the content required to update the software or firmware of the vehicle 100 and transmit the added hash value to the vehicle 100. The server 104 may include a content storage 212, a data configurator 214, a hash value generator 216, a delay function generator 218 (ie, a first delay function generator), and a transmitter 220.

[0035] The content storage section 212 of the server 104 may store content (i.e., data) transmitted from the server 104 to the vehicle 100. The content stored in the content storage section 212 may be, for example, software, firmware, setting values, etc. driven by an electronic control unit (ECU) installed in the vehicle 100. Alternatively, the content stored in the content storage section 212 may be, for example, map data for navigation.

[0036] The data configurator 214 may combine the hash value with the content (ie, data) to be transmitted from the server 104 to the vehicle 100 and construct the data to be transmitted. As described below, the hash value (alternatively referred to herein as a "first hash value") is generated by the hash value generator 216.

[0037] The hash value generator 216 can generate a hash value and send the generated hash value to the data configurator 214 and the delay function generator 218. To this end, the hash value generator 216 can have a function for generating a hash value. The content of the content storage unit 212 and the seed number of the delay function generator 218 can be used as inputs to the hash value generator 216. The seed number (alternatively, referred to as a "first seed number" herein) can be used to generate a hash value as a random number.

[0038] The delay function generator 218 may store a previous seed number (i.e., an initial value or a hash value). The delay function generator 218 may receive an initial value. The initial value may be a seed number initially set in the delay function generator 218. When generating a first seed number, the initial value may be used. When generating a subsequent second seed number, a new seed number may be generated by using a hash value generated in the past (e.g., a hash value just generated before or a hash value generated at a specific time in the past). The initial value of the delay function generator 218 may vary from vehicle to vehicle.

[0039] That is, when generating the (m+1)th hash value, the generated mth hash value can be used as the seed number. When generating the (m+2)th hash value, the generated (m+1)th hash value can be used as the seed number. The generation of the seed number is not limited to using the previous hash value, and any one of the previous hash values ​​can be selected according to the agreed rules and used to generate a new seed number. For example, the seed number before the 5th seed number can be used instead of the most recently generated seed number. Alternatively, the vehicle number can be used to generate a new seed number.

[0040] The transmitter 220 may be configured to transmit data from the server 104 to the vehicle 100. The transmitter 220 may encrypt and transmit the data.

[0041] The vehicle 100 may receive data (including content and hash value) required for updating software or firmware from the server 104, and perform the update after confirming the hash value comparison. To this end, the vehicle 100 may include a receiver 250, a data separator 252, a content storage unit 254, a hash value generator (i.e., a hash function) 256, a comparator 258, and a delay function generator 260 (i.e., a second delay function generator).

[0042] The receiver 250 may be configured to receive data sent from the server 104 to the vehicle 100. The receiver 250 may decrypt the received data if necessary.

[0043] The data separator 252 may separate the content and the hash value in the data received through the receiver 250 .

[0044] The content storage unit 254 may store content in which a hash value is separated from received data. The content stored in the content storage unit 254 may be used to update the software or firmware of the vehicle 100.

[0045] The hash value generator (i.e., hash function) 256 of the vehicle 100 may generate a hash value (alternatively, referred to herein as a "second hash value") and send the generated hash value to the comparator 258 and the delay function generator 260. To this end, the hash value generator 256 may have a function for generating a hash value. The content of the content storage unit 254 and the seed number of the delay function generator 260 may serve as inputs to the hash value generator 256. The seed number (alternatively, referred to herein as a "second seed number") may be used to generate a hash value as a random number.

[0046] The comparator 258 can compare the two hash values ​​and confirm a match. One of the two hash values ​​can be a hash value separated from the content in the data separator 252 (i.e., a first hash value). The other of the two hash values ​​can be a hash value generated by applying a hash function in the hash value generator 256 (i.e., a second hash value). When the two hash values ​​are consistent, it can be seen that the content sent from the server 104 is secure, is received normally by the vehicle 100, and satisfies integrity and validity.

[0047] The delay function generator 260 of the vehicle 100 can store a previous seed number (i.e., an initial value or a hash value) and generate a new seed number using the previous seed number (i.e., an initial value or a hash value). The delay function generator 260 can receive an initial value. The initial value can be a seed number initially set in the delay function generator 260. When generating a first hash value, the initial value can be used. When generating a subsequent second hash value, a new hash value can be generated using a hash value generated previously (in some cases, just before). The initial value of the delay function generator 260 can be different from vehicle to vehicle.

[0048] The delay function generators 218 and 260 may be configured to further enhance the security of data transmitted from the server 104 to the vehicle 100 together with the hash value generators 216 and 256. When the hash value generators 216 and 256 generate hash values ​​based on the seed numbers generated by the delay function generators 218 and 260, a higher level of security can be ensured compared to the case where the hash value generators 216 and 256 generate hash values ​​alone. That is, primary security is ensured in the process of generating seed numbers in the delay function generators 218 and 260, and secondary security is ensured in the process of generating hash values ​​based on the seed numbers of the delay function generators 218 and 260 in the hash value generators 216 and 256, so that a higher level of security can be ensured compared to the case where the hash value generators 216 and 256 generate hash values ​​alone.

[0049] Figure 3A and Figure 3B is a view showing a vehicle control method according to an embodiment of the present invention. Figure 3Ais a view showing the control in the server 104, and Figure 3B is a diagram showing control in the vehicle 100 . Figure 3A The operations 306, 310 and 356 of the server 104 are respectively related to Figure 3B The operations 324, 340 and 374 of the vehicle 100 are combined. That is, Figure 3A and Figure 3B The control operations are not separate from each other, but include a series of processes such as sending, receiving and confirming software and / or firmware updates that are interrelated. Therefore, reference will be made to Figure 3A and Figure 3B A vehicle control method according to an embodiment of the present invention is described.

[0050] like Figure 3A As shown, the server 104 can add a hash value to the content to be sent to the vehicle 100, construct and send the data, and store the hash value in the delay function generator 218.

[0051] First, the server 104 may select first content to be sent to the vehicle 100 as a client (302). For example, the first content may be the current version (version 1.0) of the software for driving the ECU. The selection of the first content may be based on a predetermined software and / or firmware update plan or may be a user's selection.

[0052] When the first content to be transmitted to the vehicle 100 is selected, the hash value generator 216 may generate a hash value using a hash function (304). The hash value generator 216 may use an initial value (e.g., '1234') provided by the delay function generator 218 when generating a hash value for the first time, and use a previously (just before) generated hash value to generate a new hash value when generating a subsequent second hash value. In this example, the hash value first generated using the initial value is assumed to be '5678'.

[0053] Since the content to be transmitted (i.e., the first content) and the hash value '5678' are ensured, the data configurator 214 can combine the first content and the hash value '5678' to construct the data to be transmitted (306). That is, data of the type <first content+5678> can be configured by the data configurator 214. The data is transmitted to the vehicle 100 as a client through the transmitter 220.

[0054] The hash value generator 216 of the server 104 may also send the generated hash value '5678' to the delay function generator 218. The delay function generator 218 may store the hash value '5678' received from the hash value generator 216. The hash value '5678' stored in the delay function generator 218 may be used to generate the next hash value.

[0055] Through this process, the first content (version 1.0) may be transmitted from the server 104 to the vehicle 100 .

[0056] Next, we will refer to Figure 3B A process of updating the vehicle 100 using data sent from the server 104 is described.

[0057] like Figure 3B As shown, the data separator 252 of the vehicle 100 can receive the data sent from the server 104 through the receiving end 250, and separate the content and the hash value in the received data (326). That is, through the separation process of the data separator 252, the received data can be separated into <first content (version 1.0)> and <hash value '5678'>.

[0058] When the reception and separation of the data are completed, the hash value generator 256 of the vehicle 100 can generate a hash value based on the received first content (version 1.0) (330). At this time, the hash value generated by the hash value generator 256 of the vehicle 100 can be generated based on the first content and the initial value '1234', just like in the hash value generator 216 of the server 104. Therefore, when data transmission is normally performed from the server 104 to the vehicle 100, the hash value of the data sent from the server 104 to the vehicle 100 should be equal to the hash value generated by the hash value generator 256 of the vehicle 100, and is equal to '5678'.

[0059] The comparator 258 of the vehicle 100 may compare the hash value of the data sent from the server 104 to the vehicle 100 with the hash value generated by the hash value generator 256 of the vehicle 100 (334). The comparison by the comparator 258 is to confirm whether the hash value of the data sent from the server 104 to the vehicle 100 is consistent with the hash value generated by the hash value generator 256 of the vehicle 100.

[0060] When the hash value of the data sent from the server 104 to the vehicle 100 is consistent with the hash value generated by the hash value generator 256 of the vehicle 100 and is equal to '5678' (match in 334), the vehicle 100 can perform an update using the received first content (version 1.0), and the hash value '5678' is stored in the delay function generator 260 of the vehicle 100 (336). The stored hash value '5678' can be used to generate the next hash value.

[0061] Through this series of processes, the server 104 can send data for updating to the vehicle 100 and receive data from the vehicle 100 to perform the update. Next, a process of confirming whether the hash values ​​stored in the delay function generators 218 of the server 104 and the vehicle 100 are consistent (i.e., synchronization) can be performed. To this end, Figure 3A Mutual update confirmation 310 and Figure 3B Mutual update confirmation 340.

[0062] Figure 3A Mutual update confirmation 310 and Figure 3B The details of the mutual update confirmation 340 will be released later. Figure 4 Described in detail in.

[0063] Back to Figure 3A , after updating the main software and / or firmware in the vehicle 100 by transmitting the first content from the server 104 to the vehicle 100, an update request from the existing first content to the new first content may be generated. Figure 3A As shown, the server 104 may select a second content to be sent to the vehicle 100 as a client (352). For example, the second content may be a new version (version 2.0) of the software driving the ECU. The selection of the second content may be based on a predetermined software and / or firmware update plan, or may be a user's selection.

[0064] When the second content to be transmitted to the vehicle 100 is selected, the hash value generator 216 may generate a hash value using a hash function (354). The hash value generator 216 of the server 104 generates a hash value '5678' using the initial value '1234' for transmitting the first content. When transmitting the second content, a new hash value for transmitting the second content may be generated using the hash value '5678' generated in the previous step and stored in the delay function generator 218. In an embodiment, the new hash value generated using the existing hash value '5678' is assumed to be '9743'.

[0065] Since the content to be transmitted (i.e., the second content) and the hash value '9743' are ensured, the data configurator 214 can combine the second content with the hash value '9743' to construct the data to be transmitted (356). That is, data of the type <second content+9743> can be configured by the data configurator 214. The data is transmitted to the vehicle 100 as a client through the transmitter 220.

[0066] The hash value generator 216 of the server 104 may also send the generated hash value '9743' to the delay function generator 218. The delay function generator 218 may store the hash value '9743' received from the hash value generator 216. The hash value '9743' stored in the delay function generator 218 may be used to generate the next hash value.

[0067] Through this process, the transmission of the second content (version 2.0) from the server 104 to the vehicle 100 may be completed.

[0068] The vehicle 100 that has completed the update using the first content (version 1.0) can perform the update again using the new data (version 2.0) transmitted from the server 104. Figure 3B The process of further updating the vehicle 100 with new content sent from the server 104 is described.

[0069] like Figure 3B As shown, the data separator 252 of the vehicle 100 can receive the data sent from the server 104 through the receiving end 250, and separate the content and the hash value in the received data (376). That is, through the separation process of the data separator 252, the received data can be separated into <second content (version 2.0)> and <hash value '9743'>.

[0070] When the reception and separation of the data are completed, the hash value generator 256 of the vehicle 100 can generate a hash value based on the received second content (version 2.0) (380). At this time, the hash value generated by the hash value generator 256 of the vehicle 100 can be generated based on the second content and the previous hash value '5678' stored in the delay function generator 260, just like in the hash value generator 216 of the server 104. Therefore, when data transmission is normally performed from the server 104 to the vehicle 100, the hash value of the data sent from the server 104 to the vehicle 100 should be equal to the hash value generated by the hash value generator 256 of the vehicle 100, and equal to '9743'.

[0071] The comparator 258 of the vehicle 100 may compare the hash value of the data sent from the server 104 to the vehicle 100 with the hash value generated by the hash value generator 256 of the vehicle 100 (334). The comparison by the comparator 258 is to confirm whether the hash value of the data sent from the server 104 to the vehicle 100 is consistent with the hash value generated by the hash value generator 256 of the vehicle 100.

[0072] When the hash value of the data sent from the server 104 to the vehicle 100 is consistent with the hash value generated by the hash value generator 256 of the vehicle 100 and is equal to '9743' (match in 384), the vehicle 100 can perform an update using the received second content (version 2.0), and the hash value '9743' is stored in the delay function generator 260 of the vehicle 100 (386). The stored hash value '9743' can be used to generate the next hash value.

[0073] Through this series of processes, the server 104 can send data for updating to the vehicle 100 and receive data from the vehicle 100 to perform the update. Next, a process of confirming whether the hash values ​​stored in the delay function generators 218 of the server 104 and the vehicle 100 are consistent (i.e., synchronization) can be performed. To this end, Figure 3A Mutual update confirmation 310 and Figure 3B Mutual update confirmation 340.

[0074] Figure 3A Mutual update confirmation 310 and Figure 3B The details of the mutual update confirmation 340 will be released later. Figure 4 Described in detail in.

[0075] When Figure 3B When the two hash values ​​compared in the comparison operations 334 and 384 are inconsistent with each other (do not match in 334 and 384), it is determined that the data transmission from the server 104 to the vehicle 100 is not performed normally, and the user is notified of the data transmission failure to inform the user that the update of the software and / or firmware has not been performed normally (338).

[0076] Figure 4 It specifically shows Figure 3A and Figure 3B 1 is a view of a mutual update confirmation process in a vehicle control method shown in . After the update of the software and / or firmware in the vehicle 100 is completed using the content of the data sent from the server 104 to the vehicle 100, the server 104 and the vehicle 100 may perform a series of processes to confirm whether the update is completed normally. When the server 104 does not normally respond to the confirmation request from the vehicle 100 to the server 104, both the server 104 and the vehicle 100 perform a mutual update confirmation process to match the hash value.

[0077] like Figure 4 As shown, the vehicle 100 may send an update confirmation message to the server 104 to notify the server 104 that the update has been completed (412).

[0078] The server 104 can recognize that the software and / or firmware in the vehicle 100 has been normally updated by receiving the update confirmation message sent from the vehicle 100. Accordingly, when the update confirmation message sent from the vehicle 100 arrives at the server 104 normally (“Yes” in 416), the server 104 can generate an arrival confirmation message and send it to the vehicle 100 (418).

[0079] In addition, since the update of the software and / or firmware has been completed normally and the server 104 has responded to the confirmation request of the vehicle 100, the server 104 can keep the hash value stored in the delay function generator 218 of the server 104 unchanged (420).

[0080] In step 416, in order to determine whether the update confirmation message has arrived, when the update confirmation message has not arrived ("No" in 416), the new specific function may be stored in the delay function generator 218 of the server 104 (424).

[0081] The vehicle 100 may confirm whether an arrival confirmation message is received from the server 104 ( 432 ).

[0082] Since the update of the software and / or firmware has been completed normally and the server 104 has responded to the confirmation request of the vehicle 100, when the arrival confirmation information is received from the server 104 ("Yes" in 432), the vehicle 100 can keep the hash value stored in the delay function generator 218 of the vehicle 100 unchanged (434).

[0083] When arrival confirmation information is not received from the server 104 (“No” and n retries in 432 ), the vehicle 100 may retry the confirmation process a predetermined number of times (eg, n times) to accurately confirm whether arrival confirmation information is received from the server 104 .

[0084] Alternatively, when no arrival confirmation information is received from the server 104 despite n attempts ("No" in 432 and n+1 retries), the vehicle 100 can set a specific hash value and the hash value stored in the delay function generator 260 as a candidate seed number for generating the next hash value (436).

[0085] When the next hash value is generated, a new hash value is generated using the previous hash value (i.e., the hash value stored in the current delay function generator 260 as the seed number), and it is confirmed whether the new hash value matches the hash value generated in the server 104. When the hash values ​​do not match, a new hash value may be generated using a specific hash value set as a candidate for the seed number.

[0086] The specific hash value mentioned in step 424 of the server 104 described above and the specific hash value set as a candidate in the vehicle 100 should be set in advance in the same method predetermined between the server 104 and the vehicle 100. For example, an initial value may be set as the specific hash value. Alternatively, a hash value before a hash value stored most recently may be set as the specific hash value. In addition, a value generated by applying a predetermined predetermined function to the vehicle identification number may be set as the specific hash value.

[0087] Through this process, synchronization between the server 104 for generating a hash value and the vehicle 100 is performed, and a predetermined type of hash value can be generated.

[0088] It can be clearly seen from the above description that the application of the embodiments of the present invention can improve the security of data in data communication between a data sending device and a data receiving device.

[0089] The above description of the present invention is for illustrative purposes, and those of ordinary skill in the art should recognize that other specific changes can be easily made without departing from the technical spirit or basic features of the present invention. Therefore, the above embodiments should be regarded as illustrative rather than restrictive in all aspects. The scope of the present invention is not limited to the above detailed description, but is accompanied by the claims of the present invention, and it should also be understood that all changes or modifications derived from the definition and scope of the claims and their equivalents fall within the scope of the present invention.

Claims

1. A data communication system, include: a data transmission device configured to: generate a first hash value using one of a plurality of previous hash values ​​as a first seed number, encrypt data using the first hash value, and transmit the encrypted data; and a data receiving device configured to: receive data transmitted from the data transmitting device, separate a first hash value generated by the data transmitting device from the data, calculate a second hash value using one of the plurality of previous hash values ​​as a second seed number, and determine validity of the data according to whether the calculated second hash value is consistent with the first hash value separated from the data, and when it is determined that the data is valid, perform an update using the data, and store the first hash value and the second hash value as stored hash values; The data receiving device is further configured to: send an update confirmation message to the data sending device to notify the data receiving device that the update has been completed, and the data sending device is further configured to: send an arrival confirmation message to the data receiving device when receiving the update confirmation message; wherein, when the arrival confirmation message is not received from the data receiving device despite predefined attempts, the data receiving device sets the stored hash value and the specific hash value as seed number candidates for generating a next hash value for a next encrypted data transmission; wherein, when generating a next hash value, the data receiving device is configured to: generate a new hash value by using a plurality of previous hash values, and confirm whether the new hash value matches the first hash value generated in the data sending device; and when the hash values ​​do not match, generate a new hash value by setting the specific hash value as a candidate for a seed number; and The data receiving device is configured to set a hash value before a most recently stored hash value as the specific hash value or a value generated by applying a predetermined function to the vehicle identification number as the specific hash value.

2. The data communication system according to claim 1, in, The data sending device comprises: A first delay function generator is configured to generate the first seed number using one of the plurality of previous hash values.

3. The data communication system according to claim 1, in, The data receiving device comprises: A second delay function generator is configured to calculate the second seed number using one of the plurality of previous hash values.

4. The data communication system according to claim 1, in, The data receiving device comprises: A comparator is configured to compare a second hash value calculated using one of the plurality of previous hash values ​​as the second seed number with a first hash value separated from the data, and determine whether the calculated second hash value is consistent with the first hash value separated from the data.

5. The data communication system according to claim 1, in, When the first hash value is generated by the data transmission device, the first seed number uses a predetermined initial value.

6. A data communication method, The following steps are involved: generating, by the data transmitting device, a first hash value using one of the plurality of previous hash values ​​as a first seed number; encrypting data using the first hash value by the data sending device; Sending the encrypted data through the data sending device; receiving, by a data receiving device, data transmitted from the data transmitting device; separating the first hash value generated by the data sending device from the data by the data receiving device; calculating, by the data receiving device, a second hash value using one of the plurality of previous hash values ​​as a second seed number; as well as determining, by the data receiving device, the validity of the data according to whether the calculated second hash value is consistent with the first hash value separated from the data; When it is determined that the data is valid, performing an update using the data by the data receiving device, and storing the first hash value and the second hash value as stored hash values ​​by the data receiving device; Sending an update confirmation message to the data sending device through the data receiving device to notify the data sending device that the update has been completed; When the update confirmation message is received, sending an arrival confirmation message to the data receiving device through the data sending device; wherein, when the arrival confirmation message is not received from the data receiving device despite predefined attempts, the data receiving device sets the stored hash value and the specific hash value as seed number candidates for generating a next hash value for a next encrypted data transmission; wherein, when generating a next hash value, the data receiving device generates a new hash value by using a plurality of previous hash values, and confirms whether the new hash value matches the first hash value generated in the data sending device; when the hash values ​​do not match, a new hash value is generated by setting the specific hash value as a candidate for a seed number; The data receiving device sets a hash value before a most recently stored hash value as the specific hash value or sets a value generated by applying a predetermined function to the vehicle identification number as the specific hash value.

7. The method according to claim 6, further comprising: The following steps are involved: The first seed number is generated by the data transmission device using one of the plurality of previous hash values.

8. The method according to claim 6, further comprising: The following steps are involved: The second seed number is calculated by the data receiving device using one of the previous hash values.

9. The method according to claim 6, further comprising: The following steps are involved: comparing, by the data receiving device, a second hash value calculated using one of the previous hash values ​​as the second seed number with the first hash value separated from the data; and It is determined by the data receiving device whether the calculated second hash value is consistent with the first hash value separated from the data.

10. The method according to claim 6, in, When the first hash value is generated by the data transmission device, the first seed number uses a predetermined initial value.

11. A data communication system, include: A server configured to: generate a first hash value using one of a plurality of previous hash values ​​as a first seed number, encrypt data using the first hash value, and send the encrypted data; and a vehicle configured to: receive data transmitted from the server, separate a first hash value generated by the server from the data, calculate a second hash value using one of the plurality of previous hash values ​​as a second seed number, and determine validity of the data according to whether the calculated second hash value is consistent with the first hash value separated from the data, when it is determined that the data is valid, perform an update using the data, and store the first hash value and the second hash value as stored hash values; The vehicle is configured to send an update confirmation message to the server to notify the server that the update has been completed, and the server is configured to send an arrival confirmation message to the vehicle when receiving the update confirmation message; and wherein, when the arrival confirmation message is not received from the vehicle despite predefined attempts, the vehicle sets the stored hash value and the specific hash value as seed number candidates for generating a next hash value for a next encrypted data transmission; Wherein, when generating the next hash value, the vehicle is configured to: generate a new hash value by using multiple previous hash values, and confirm whether the new hash value matches the first hash value generated in the data sending device; when the hash values ​​do not match, generate a new hash value by setting the specific hash value as a candidate for the seed number, wherein the vehicle sets the hash value before the most recently stored hash value to the specific hash value or sets the value generated by applying a predetermined predetermined function to the vehicle identification number to the specific hash value.

Citation Information

Patent Citations

  • Vehicle remote firmware updating method and device based on information security technology

    CN106685653A

  • Rewrite detection system and information processing device

    CN106716919A

  • Communication control device and communication system

    CN107005447A

  • Cloud establishment and data secure transmission method of privacy protection in vehicle-mounted cloud

    CN108234445A

  • Methods and nodes for verification of data

    EP2918057A1