ECU REPLACEMENT WITH ODOMETER
The secure odometer update method addresses tampering issues by comparing data blocks from a remote server and onboard ECUs, ensuring accurate mileage readings post-ECU replacement.
Patent Information
- Application Number
- DE102024106784
- Authority / Receiving Office
- DE · DE
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-10
- Filing Date
- 2024-03-08
- Publication Date
- 2024-09-12
AI Technical Summary
Existing methods for updating an odometer value in vehicles are susceptible to tampering during the replacement of an electronic control unit (ECU), leading to inaccurate mileage readings.
A secure method for updating the odometer value involves a first ECU saving a third data block to a second ECU onboard the vehicle, comparing it with a first data block received from a remote server, and only replacing the odometer value if a match is found, thereby detecting and preventing tampering.
Ensures the odometer value is accurate and tamper-proof, maintaining the correct mileage even after ECU replacement by verifying the integrity of the data blocks.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
FIELD OF TECHNOLOGY
[0001] This disclosure relates to techniques for updating an odometer value in a secure manner. GENERAL STATE OF THE ART
[0002] An odometer is an instrument used to measure the distance traveled by a vehicle. The odometer reading can be used as an estimate of a vehicle's wear and tear, for example, when selling a used vehicle. SUMMARY
[0003] This disclosure provides techniques for updating an odometer value in a secure manner that can prevent tampering, e.g., when installing an electronic control unit (ECU) containing the odometer value in a used vehicle. While onboard a vehicle, an original first ECU can save a third data block containing a third odometer value to a second ECU onboard the vehicle. During replacement, the original first ECU or the second ECU can send the third data block to the service center, which forwards the third data block to a remote server. A replaced first ECU can receive a first data block from the remote server, receive a second data block from the second ECU, and compare the first data block and the second data block.If both the first data block and the second data block were derived from the third data block, then the first data block and the second data block should have matching portions. Upon identifying a match between the first data block and the second data block, the replaced first ECU exchanges a stored odometer value on the replaced first ECU with a first odometer value from the first data block. Upon identifying a mismatch between the first data block and the second data block, the replaced first ECU retains the stored odometer value on the replaced first ECU. The replaced first ECU can thus detect an attempted tampering with the comparison between the first data block from the remote server and the second data block saved onboard the vehicle.The replaced first ECU can thus adopt an odometer reading that is correct for the vehicle, even if that odometer reading is lower than the odometer reading already on the replaced first ECU (e.g., when the replaced first ECU is in use). The present techniques facilitate the replacement of an ECU that serves as the vehicle's odometer.
[0004] A computer includes a processor and a memory, and the memory has stored therein instructions executable by the processor to receive a first block of data from a server remote from the computer and remote from a vehicle; while the computer is installed on board the vehicle, receive a second block of data from an electronic control unit (ECU) in the vehicle; compare the first block of data and the second block of data; upon identifying a match between the first block of data and the second block of data, replace a stored odometer value on the computer with the first odometer value; and upon identifying a mismatch between the first block of data and the second block of data, maintain the stored odometer value on the computer.The first data block contains a first odometer value and the second data block contains a second odometer value.
[0005] In one example, the instructions may further include instructions to increment the stored odometer value by the distance traveled by the vehicle.
[0006] In one example, the instructions may further include instructions to transmit a third data block to the ECU, the third data block including the stored odometer value. In another example, the instructions may further include instructions to periodically transmit the third data block to the ECU.
[0007] In another further example, the instructions may further include instructions to, when the vehicle has traveled a preset distance since a previous transmission of the third data block to the ECU, transmit the third data block to the ECU.
[0008] In another further example, the instructions may further include instructions to calculate a security feature and apply the security feature to the third data block before transmitting the third data block to the ECU.
[0009] In one example, the first odometer value may be less than the stored odometer value.
[0010] In one example, the match may be an equality between the first odometer value and the second odometer value, and the mismatch may be an inequality between the first odometer value and the second odometer value.
[0011] In one example, the first data block may include a first vehicle identification number (VIN), the second data block may include a second VIN, the match may be an equality between the first VIN and the second VIN, and the mismatch may be a disparity between the first VIN and the second VIN. In another example, the instructions may further include instructions to, if the first VIN does not match a third VIN of the vehicle, maintain the stored odometer value on the computer. In yet another example, the instructions may further include instructions to determine the third VIN from a vehicle network of the vehicle.
[0012] In another further example, the instructions may further include instructions to maintain the stored odometer value on the computer if the second VIN does not match a third VIN of the vehicle.
[0013] In one example, the instructions may further include instructions to, upon identifying the mismatch between the first data block and the second data block, instruct a component of the vehicle to disable operation of the component.
[0014] In one example, the instructions may further include instructions to, upon identifying the mismatch between the first data block and the second data block, issue a request for a fourth data block, the fourth data block previously downloaded from the vehicle, the fourth data block including a fourth odometer value. In another example, the instructions may further include instructions to: compare the first data block and the fourth data block; upon identifying a second match between the first data block and the fourth data block, replace the stored odometer value on the computer with the first odometer value; and upon identifying a second mismatch between the first data block and the fourth data block, maintain the stored odometer value on the computer.In yet another example, the first data block may include a first security feature, the fourth data block may include a fourth security feature, the second match may be an equality between the first security feature and the fourth security feature, and the second mismatch may be an inequality between the first security feature and the fourth security feature. In even another example, the first security feature may be calculated from the first odometer value, and the fourth security feature may be calculated from the fourth odometer value.
[0015] In another further example, the instructions may further include instructions to maintain the stored odometer value on the computer if the fourth data block is not received.
[0016] In one example, the instructions may further include instructions to decrypt the first data block and decrypt the second data block.
[0017] A method includes receiving a first data block from a server that is remote from a computer and remote from a vehicle; receiving, by the computer, a second data block from an electronic control unit (ECU) in the vehicle; comparing the first data block and the second data block; upon identifying a match between the first data block and the second data block, replacing a stored odometer value on the computer with the first odometer value; and upon identifying a mismatch between the first data block and the second data block, retaining the stored odometer value on the computer. The first data block includes a first odometer value and the second data block includes a second odometer value. The computer receives the second data block from the ECU while the computer is installed on board the vehicle. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1A is a block diagram of an exemplary system for replacing an electronic control unit (ECU) including an odometer in a vehicle prior to replacing the ECU. Fig. Figure 1B is a block diagram of the system after replacing the ECU. Fig. 2A is an illustration of an exemplary third data block containing an odometer value. Fig. 2B is an illustration of an example second data block containing an odometer value. Fig. 2C is an illustration of an example first data block containing an odometer value. The Fig. 3A-C together are a sequence diagram of an example sequence for replacing the ECU. Fig. 4 is a flowchart of an example process for the ECU to replace the ECU. Fig. 5 is a flowchart of an exemplary process for a second ECU to replace the ECU. Fig. 6 is a flowchart of an example process for a remote server to replace the ECU. DETAILED DESCRIPTION
[0018] Referring to the figures, wherein like reference numerals indicate like parts throughout the several views, a first electronic control unit (ECU) 105 includes a processor and a memory, and stored in the memory are instructions executable by the processor to receive a first data block 250 from a remote server 125 remote from the first ECU 105 and remote from a vehicle 100; while the first ECU 105 is installed on board the vehicle 100, receive a second data block 225 from a second ECU 110 in the vehicle 100; compare the first data block 250 and the second data block 225; upon identifying a match between the first data block 250 and the second data block 225, replace a stored odometer value 205 on the first ECU 105 with a first odometer value 255;and upon identifying a mismatch between the first data block 250 and the second data block 225, maintain the stored odometer value 205 on the first ECU 105. The first data block 250 includes the first odometer value 255, and the second data block 225 includes a second odometer value 230.
[0019] With reference to the Fig. 1A-B, the vehicle 100 may be any passenger vehicle or any commercial vehicle, such as a car, a truck, an SUV, a crossover, a van, a minivan, a taxi, a bus, etc.
[0020] The first ECU 105 is a microprocessor-based computing device, e.g., a generic computing device including a processor and memory, an electronic controller or the like, a field-programmable gate array (FPGA), an application-specific integrated circuit (ASIC), a combination of the above, etc. Typically, a hardware description language such as VHDL (VHSIC (Very High Speed Integrated Circuit) Hardware Description Language) is used in electronic design automation to describe digital and mixed-signal systems such as FPGAs and ASICs. For example, an ASIC is manufactured based on VHDL programming provided prior to manufacturing, whereas logical components inside an FPGA may be configured based on VHDL programming, e.g.,stored in a memory electrically connected to the FPGA circuit. The first ECU 105 may thus include a processor, a memory, etc. The memory of the first ECU 105 may include media for storing instructions executable by the processor, as well as for electronically storing data and / or databases, and / or the first ECU 105 may include structures, such as those above, by which programming is provided.
[0021] This disclosure relates to techniques for replacing the first ECU 105 on board the vehicle 100. The first ECU 105 on board the vehicle 100 before replacement is referred to as the original first ECU 105a, and the first ECU 105 on board the vehicle 100 after replacement is referred to as the replaced first ECU 105b. Fig. 1A illustrates the vehicle 100 before replacement, with the original first ECU 105a installed on board the vehicle 100. Fig. 1B illustrates the vehicle 100 after replacement, with the replaced first ECU 105b installed on board the vehicle 100. The original first ECU 105a and the replaced first ECU 105b may both include all or part of the programming described herein.
[0022] When installed on board the vehicle 100, the first ECU 105 can transmit and receive data via a vehicle network 115, such as a controller area network (CAN) bus, Ethernet, Wi-Fi, a local interconnect network (LIN), an on-board diagnostic port (OBD-II), and / or any other wired or wireless communication network. The first ECU 105 can be communicatively coupled to the second ECU 110, a transceiver 120, and other components via the vehicle network 115.
[0023] The second ECU 110 is a microprocessor-based computing device, e.g., a generic computing device including a processor and memory, an electronic controller or the like, a field-programmable gate array (FPGA), an application-specific integrated circuit (ASIC), a combination of the above, etc. Typically, a hardware description language such as VHDL (Very High Speed Integrated Circuit (VHSIC) Hardware Description Language) is used in electronic design automation to describe digital and mixed-signal systems such as FPGAs and ASICs. For example, an ASIC is manufactured based on VHDL programming provided prior to manufacturing, whereas logical components inside an FPGA may be configured based on VHDL programming stored, e.g., in memory electrically connected to the FPGA circuitry.The second ECU 110 may thus include a processor, memory, etc. The memory of the second ECU 110 may include media for storing instructions executable by the processor, as well as for electronically storing data and / or databases, and / or the second ECU 110 may include structures, such as those above, through which programming is provided. The second ECU 110 may be a gateway module of the vehicle 100. The gateway module is an ECU that interconnects and transfers data between buses of different domains of the vehicle network 115, e.g., the CAN bus, Ethernet, LIN, OBD-II, etc., which may have different baud rates.
[0024] The transceiver 120 may be configured to transmit signals wirelessly using any suitable wireless communication protocol, such as cellular, Bluetooth®, Bluetooth® Low Energy (BLE), ultra-wideband (UWB), WLAN, IEEE 802.11a / b / g / p, Cellular-V2X (CV2X), dedicated short-range communications (DSRC), other RF (radio frequency) communications, etc. The transceiver 120 may be configured to communicate with the remote server 125 and / or other servers remote from the vehicle 100. For example, a server may be associated with another vehicle (e.g., car-to-car communication), an infrastructure component (e.g., V2I communication), an emergency responder, a mobile device associated with the owner of the vehicle 100, etc. The transceiver 120 may be a single device or may include a separate transmitter and receiver.
[0025] The replacement of the first ECU 105 may take place at a service center 130. The service center 130 may be a facility such as a repair shop or a car dealership. The service center 130 may communicate with the replaced first ECU 105b before installation or the original first ECU 105a after replacement by plugging equipment directly into the first ECU 105. The service center 130 may communicate with components onboard the vehicle 100 via the transceiver 120 or by plugging equipment directly into the vehicle network 115, e.g., via an OBD-II port.
[0026] The transceiver 120 and / or the service center 130 may be connected to the remote server 125 via a network 135. The network 135 represents one or more mechanisms by which the transceiver 120 or other components may communicate with the remote server 125. Accordingly, the network 135 may be one or more of various wired or wireless communication mechanisms, including any desired combination of wired (e.g., cable and fiber optic) and / or wireless (e.g., cellular, wireless, satellite, microwave, and radio frequency) communication mechanisms and any desired network topology (or network topologies if multiple communication mechanisms are utilized). Example communication networks include wireless communication networks (e.g., using Bluetooth, IEEE 802.11, etc.).), local area networks (LAN) and / or wide area networks (WAN), including the Internet, that provide data communication services.
[0027] The remote server 125 is remote from the vehicle 100, that is, separated and spaced apart from the vehicle 100. The remote server 125 is located outside the vehicle 100. The remote server 125 is also remote from the replaced first ECU 105b before the replaced first ECU 105b is installed in the vehicle 100, as well as from the service center 130. The remote server 125 may, for example, be associated with a manufacturer of the vehicle 100.
[0028] With reference to Fig. 2A, the third data block 200 is a data block output by the first ECU 105. The third data block 200 may include the stored odometer value 205, a third vehicle identification number (VIN) 210, a third part number 215, and a third security feature 220.
[0029] The stored odometer value 205 is stored in the memory of the first ECU 105. The first ECU 105 may be programmed to generate the stored odometer value 205 by incrementing the stored odometer value 205 by the distance traveled by the vehicle 100 (starting at zero, e.g., when the vehicle 100 has just been assembled or when the first ECU 105 is new). In other words, the first ECU 105 may operate as the odometer of the vehicle 100. When the first ECU 105 receives data via the vehicle network 115 indicating that the vehicle 100 is moving, the first ECU 105 may increment the stored odometer 205 accordingly. For example, the first ECU 105 may receive data indicating a number of revolutions of the wheels of the vehicle 100 and multiply the number of revolutions by a circumference of the tires of the vehicle 100, e.g.Δd = πDN, where Δd is a change in the stored odometer value 205, D is a diameter of the tires, and N is a number of revolutions of the tires, e.g., an average of the numbers of revolutions of each of the tires.
[0030] A VIN is a number that encodes specific information about a specific vehicle, such as make and model, manufacturer, year, manufacturing plant, etc. The VIN is unique to a vehicle and thus identifies the vehicle 100. For example, according to National Highway Traffic Safety Administration (NHTSA) regulations, the VIN is seventeen characters long and consists of letters and numbers. The third VIN 210 may be stored in the memory of the first ECU 105.
[0031] A part number is a number that uniquely identifies a component of the vehicle 100. The part number may be unique for the component among components of the same type. For example, the third part number 215 may identify the first ECU 105. The third part number 215 may be unique among ECUs of the same model as the first ECU 105. The third part number 215 may be stored in the memory of the first ECU 105.
[0032] The first ECU 105 may be programmed to calculate the third security feature 220. The third security feature 220 may be, for example, a hash value (as shown in the figures), a digital signature, a cipher-based message authentication code (CMAC), etc. A hash value is a fixed-length numeric value that uniquely identifies data. The first ECU 105 may calculate the hash value by applying a hash function to one or more other parts of the third data block 200, such as the stored odometer value 205, the third VIN 210, and / or the third part number 215. A hash function maps data of any size to a fixed-size hash value. The hash function may be any suitable secure hash function, such as SHA-256. A digital signature verifies a sender of a message and is determined using a private key and one or more other parts of the third data block 200.The digital signature can be verified using a public key. A CMAC is a message authentication code constructed from a block cipher. The CMAC can be determined using a secret key and one or more other parts of the third data block 200. The CMAC can be verified using the secret key. The third security feature 220 is then applied to the third data block 200, e.g., appended to the third data block 200, before the third data block 200 is transmitted to another entity.
[0033] The first ECU 105 may be programmed to transmit the third data block 200 to the second ECU 110, e.g., via the vehicle network 115, while the first ECU 105 is installed on board the vehicle 100. For example, the first ECU 105 may transmit the third data block 200 to the second ECU 110 periodically, i.e., repeatedly transmit the third data block 200 at regular time intervals. The time intervals may be measured as the distance traveled by the vehicle 100 or as time, i.e., the time period may be a preset distance or a preset time. For example, the first ECU 105 may transmit the third data block 200 to the second ECU 110 when the vehicle 100 has traveled the preset distance since a previous transmission of the third data block 200 to the second ECU 110. The preset distance may, for example, B. be ten miles.The first ECU 105 can track the progress to the preset distance using the stored odometer value 205.
[0034] The first ECU 105 may encrypt the third data block 200 before transmitting the third data block 200 to the second ECU 110, e.g., using any suitable encryption algorithm. The second ECU 110, as well as the other ECUs on board the vehicle 100, may lack the decryption key. Therefore, the third data block 200 may not be accessible to anyone without the decryption key, even though the third data block 200 is located on the second ECU 110. The decryption key may be stored on the remote server 125.
[0035] With reference to Fig. 2B, the second data block 225 is a data block output by the second ECU 110. The second data block 225 may be the last third data block 200 received by the second ECU 110. The second ECU 110 may be programmed to transmit the second data block 225 to an entity when a request for the second data block 225 is received from the entity. The second data block 225 may include the second odometer value 230, a second VIN 235, a second part number 240, and a second security feature 245. If the last third data block 200 received by the second ECU 110 originated from the original first ECU 105a and the replaced first ECU 105b was installed, then the second part number 240 will be different from the third part number 215 of the third data block 200 output by the replaced first ECU 105b.
[0036] With reference to Fig. 2C, the first data block 250 is a data block output by the remote server 125. The first data block 250 includes the first odometer value 255, a first VIN 260, a first part number 265, a third block security feature 275, and a first security feature 270. The remote server 125 may be programmed to receive the third data block 200 or the second data block 225, decrypt the third data block 200 or the second data block 225, and generate the first data block 250 from the decrypted third data block 200 or second data block 225. For example, the service center 130 may download the third data block 200 or the second data block 225 and the remote server 125 may receive the third data block 200 or the second data block 225 from the service center 130 via the network 135.The service center 130 may send the third data block 200 if the original first ECU 105a is operational and the second data block 225 if the original first ECU 105a is inoperative. The remote server 125 decrypts the third data block 200 or the second data block 225 using the decryption key stored on the remote server 125. The remote server 125 may use the stored odometer value 205 or the second odometer value 230 as the first odometer value 255, the second VIN 235 or the third VIN 210 as the first VIN 260, the second part number 240 or the third part number 215 as the first part number 265, and the second security feature 245 or the third security feature 220 as the security feature 275 of the third block. The service center 130 may transmit the VIN of the vehicle 100 for use as the first VIN 260.The remote server 125 may be programmed to calculate the first security feature 270, e.g., by applying the same algorithm used by the first ECU 105 to determine the third security feature 220, to one or more parts of the first data block 250, e.g., the equivalent parts as the first ECU 105 uses when calculating the third security feature 220, e.g., the first odometer value 255, the first VIN 260, and / or the first part number 265, as well as possibly the security feature 275 of the third block.
[0037] The first ECU 105 after installation, i.e., the replaced first ECU 105b, may be programmed to compare the first data block 250 received from the remote server 125 and the second data block 225 received from the second ECU 110. The first ECU 105 identifies either a match or a mismatch between equivalent portions of the first data block 250 and the second data block 225. A match means that the portions are the same or identical, and a mismatch means that the portions are different or different. For example, the match may be an equality between the first security feature 275 or the security feature 270 of the third block and the second security feature 245. The first ECU 105 may also validate the security features 245, 270, 275 upon receiving the respective data blocks 225, 250 before the data blocks 225, 250 are compared.In another example, the match may be an equality between the first odometer value 255 and the second odometer value 230, and the mismatch may be a disparity between the first odometer value 255 and the second odometer value 230. As another example, the match may be an equality between the first VIN 260 and the second VIN 235, and the mismatch may be a disparity between the first VIN 260 and the second VIN 235. The first ECU 105 may also compare the first VIN 260 and the second VIN 235 to a VIN received via the vehicle network 115.
[0038] The first ECU 105 may be programmed to issue a request for a fourth data block upon identifying the mismatch between the first data block 250 and the second data block 225. The fourth data block may be previously downloaded from the vehicle 100. For example, the fourth data may be the copy of the third data block 200 or the second data block 225 downloaded at the service center 130 and sent to the remote server 125. The service center 130 may transmit the fourth data block to the first ECU 105 upon receiving the request for the fourth data block. The fourth data block may include a fourth odometer value, a fourth VIN, a fourth part number, and a fourth security feature, as described above for the equivalent portions of the second data block 225 and the third data block 200.
[0039] The first ECU 105 may be programmed to compare the first data block 250 and the fourth data block. The first ECU 105 identifies either a match or a mismatch between equivalent portions of the first data block 250 and the fourth data block (hereinafter referred to as a second match and a second mismatch to distinguish them from the comparison between the first data block 250 and the second data block 225 described above). For example, the second match may be an equality between the first security feature 270 or the security feature 275 of the third block and the fourth security feature, and the second mismatch may be an inequality between the first security feature 270 or the security feature 275 of the third block and the fourth security feature.The first ECU 105 may also validate the security features 270, 275 from the first data block 250 upon receiving the first data block 250 and the fourth security feature upon receiving the fourth data block before comparing the first data block 225 and the fourth data block.
[0040] The first ECU 105 may be programmed to replace the stored odometer value 205 on the first ECU 105 with the first odometer value 255 when either the match between the first data block 250 and the second data block 225 is identified or the second match between the first data block 250 and the fourth data block is identified. The first ECU 105 may be programmed to replace the stored odometer value 205 with the first odometer value 255 even if the first odometer value 255 is less than the stored odometer value 205.
[0041] The first ECU 105 may be programmed to maintain the stored odometer value 205 on the first ECU 105 if the mismatch is identified and either the second mismatch or a failure to receive the fourth data block is identified. The first ECU 105 may thus prevent unauthorized decrementing of the stored odometer value 205.
[0042] The first ECU 105 may be programmed to instruct a component of the vehicle 100 to disable operation of the component under the same conditions as for maintaining the stored odometer value 205. In other words, the first ECU 105 instructs the component to disable operation of the component when the mismatch is identified and either the second mismatch or a failure to receive the fourth data block is identified. For example, the component may be an infotainment center, and the operation may be, for example, navigation and / or media input. Thus, the first ECU 105 may instruct the infotainment center to disable navigation or audio entertainment functionality. The infotainment center may be selected to make operating the vehicle 100 less desirable while not impacting the operation of the vehicle 100. Fig. 3A-C together are a sequence diagram illustrating an exemplary sequence 300 of steps for replacing the first ECU 105. The sequence 300 may be performed by the original first ECU 105a, the replaced first ECU 105b, the second ECU 110, the service center 130, and the remote server 125. Executable instructions for performing the respective steps of the sequence 300 may be stored in the memories of the original first ECU 105a, the replaced first ECU 105b, the second ECU 110, the service center 130, and the remote server 125 and / or programming may be implemented in structures such as those listed above. The steps in the service center 130 may be performed manually by a technician at the service center 130.
[0043] In step 302, the original first ECU 105a encrypts the third data block 200 prior to the replacement and during regular operation of the vehicle 100 and transmits it to the second ECU 110 as described above.
[0044] Next, the vehicle 100 can be taken to the service center 130 to replace the original first ECU 105a with the replaced first ECU 105b. An alternative box 304 includes a first alternative in which the original first ECU 105a is still operational and a second alternative in which the original first ECU 105a is no longer operational. For the first alternative, steps 306-308 are performed. For the second alternative, steps 310-312 are performed.
[0045] In step 306, the service center 130 requests the third data block 200 from the original first ECU 105a. The original first ECU 105a may still be on board the vehicle 100 or may be removed from the vehicle 100 and attached to equipment of the service center 130. Next, in step 308, the original first ECU 105a encrypts the third data block 200 and transmits it to the service center 130.
[0046] In step 310, the service center 130 requests the second data block 225 from the second ECU 110. Next, in step 312, the second ECU 110 transmits the second data block 225 to the service center 130.
[0047] Following alternative box 304, the service center 130 transmits either the second data block 225 or the third data block 200 to the remote server 125 at a step 314. The service center 130 may include the VIN of the vehicle 100 in the transmission.
[0048] Next, at step 316, the remote server 125 decrypts the third data block 200 or the second data block 225 as described above.
[0049] Next, an alternative box 318 includes a first alternative in which decryption failed and a second alternative in which decryption was successful. For the first alternative, a step 320 is performed. For the second alternative, steps 322-364, ie, the remainder of sequence 300, are performed.
[0050] At step 320, the remote server 125 transmits a message to the service center 130 indicating that decryption failed. Sequence 300 ends.
[0051] In step 322, the remote server 125 generates and encrypts the first data block 250 as described above. Next, in step 324, the remote server 125 transmits the first data block 250 to the service center 130.
[0052] Next, in step 326, the service center 130 transmits the first data block 250 to the replaced first ECU 105b. The first data block 250 may remain encrypted. The replaced first ECU 105b may or may not yet be installed in the vehicle 100. Next, in step 328, the replaced first ECU 105b decrypts the first data block 250. Next, in step 330, the replaced first ECU 105b transmits an acknowledgment indicating that the decryption was successful or a negative acknowledgment indicating that the decryption was unsuccessful.
[0053] Next, at step 332, the replaced first ECU 105b determines the VIN from the vehicle network 115. Transmissions from other ECUs over the vehicle network 115 may include the VIN. From this point on, the replaced first ECU 105b is installed on board the vehicle 100 for the remainder of sequence 300.
[0054] Next, in step 334, the replaced first ECU 105b requests the second data block 225 from the second ECU 110 via the vehicle network 115. Next, in step 336, the second ECU 110 transmits the second data block 225 to the replaced first ECU 105b via the vehicle network 115, and the replaced first ECU 105b receives the second data block 225.
[0055] Next, the replaced first ECU 105b decrypts the second data block 225 at step 338.
[0056] Next, at step 340, the replaced first ECU 105b compares the first data block 250 and the second data block 225 as described above.
[0057] Next, an alternative box 342 includes a first alternative and a second alternative. The first alternative occurs if decryption fails at step 338 or if the replaced first ECU 105b identifies a mismatch between the first data block 250 and the second data block 225 at step 340, as described above. The first alternative may also occur if the first VIN 260 or the second VIN 235 does not match the VIN received at step 332 above. The second alternative occurs if decryption is successful and the replaced first ECU 105b identifies a match between the first data block 250 and the second data block 225. In the first alternative, steps 344-362 are performed. In the second alternative, step 364 is performed.
[0058] At step 344, the replaced first ECU 105b issues a request for a fourth data block to the service center 130, as described above. The fourth data block was previously downloaded from the vehicle 100 at the above step 308 or step 312.
[0059] Next, an alternative box 346 includes a first alternative in which the replaced first ECU 105b receives the fourth data block from the service center 130, and a second alternative in which the replaced first ECU 105b does not receive the fourth data block from the service center 130. In the first alternative, steps 348-360 are performed. In the second alternative, a step 362 is performed.
[0060] In step 348, the replaced first ECU 105b decrypts the fourth data block, as described above. Next, in step 350, the replaced first ECU 105b compares the first data block 250 and the fourth data block, e.g., the first security feature 270 and the fourth security feature, as described above.
[0061] Next, an alternative box 352 includes a first alternative in which the replaced first ECU 105b identifies a second mismatch between the first data block 250 and the fourth data block, and a second alternative in which the replaced first ECU 105b identifies a second match between the first data block 250 and the fourth data block. In the first alternative, a step 354 is performed. In the second alternative, steps 356-360 are performed.
[0062] At step 354, the replaced first ECU 105b retains the stored odometer value 205 on the replaced first ECU 105b and instructs a component of the vehicle 100 to disable operation of the component, as described above. The replaced first ECU 105b may also log the third data block 200 with the unchanged stored odometer value 205 to the remote server 125 by encrypting the third data block 200 and transmitting it to the remote server 125. After step 354, the sequence 300 ends.
[0063] At step 356, the replaced first ECU 105b replaces the stored odometer value 205 on the replaced first ECU 105b with the first odometer value 255, as described above. Next, at step 358, the replaced first ECU 105b logs the first data block 250 to the remote server 125 by encrypting the third data block 200 generated after the stored odometer value 205 was replaced with the first odometer value 255 and transmitting it to the remote server 125. Next, at step 360, the replaced first ECU 105b encrypts the third data block 200 and transmits it to the second ECU 110, as described above. This is the first transmission as part of the periodic transmission of the third data block 200 to the second ECU 110. After step 360, the sequence 300 ends.
[0064] At step 362, the replaced first ECU 105b retains the stored odometer value 205 on the replaced first ECU 105b and instructs a component of the vehicle 100 to disable operation of the component, as described above. The replaced first ECU 105b may also log the third data block 200 with the unchanged stored odometer value 205 to the remote server 125 by encrypting the third data block 200 and transmitting it to the remote server 125. After step 362, the sequence 300 ends.
[0065] In step 364, the replaced first ECU 105b encrypts the third data block 200 and transmits it to the second ECU 110, as described above. This is the first transmission as part of the periodic transmission of the third data block 200 to the second ECU 110. After step 364, the sequence 300 ends.
[0066] Fig. 4 is a process flow diagram illustrating an exemplary process 400 for the first ECU 105 to facilitate the replacement of the first ECU 105. Executable instructions for performing the steps of process 400 are stored in the memory of the first ECU 105 and / or programming may be implemented in structures such as those listed above. As a general overview of the process 400, the first ECU 105 increments the stored odometer value 205 and periodically transmits the third data block 200 to the second ECU 110. Upon receiving a request for the third data block 200 from the service center 130, the first ECU 105 transmits the third data block 200 to the service center 130.Next, upon receiving the first data block 250 from the remote server 125, the first ECU 105 determines the VIN, requests and receives the second data block 225 from the second ECU 110, requests the fourth data block from the service center 130 if a mismatch is identified between the first data block 250 and the second data block 225, and replaces the stored odometer value 205 with the first odometer value 255 if a match is identified between the first data block 250 and the second data block 225 or if a second match is identified between the first data block 250 and the fourth data block. Upon identifying a second mismatch between the first data block 250 and the fourth data block, the first ECU 105 maintains the stored odometer value 205 and instructs a component to disable operation of the component.Finally, the first ECU 105 transmits an update indicating whether the first odometer value 255 has replaced the stored odometer value 205.
[0067] The process 400 begins at a block 405 where the first ECU 105 increments the stored odometer value 205 by the distance traveled by the vehicle 100, as described above.
[0068] Next, at decision block 410, the first ECU 105 determines whether the time period has elapsed since a previous transmission of the third data block 200 to the second ECU 110, e.g., whether the vehicle 100 has traveled the preset distance since the previous transmission. If the time period has elapsed, the process 400 proceeds to block 415. Otherwise, the process 400 proceeds to decision block 420.
[0069] At block 415, the first ECU 105 encrypts the third data block 200 and transmits it to the second ECU 110, as described above. After block 415, the process 400 proceeds to decision block 420.
[0070] At decision block 420, the first ECU 105 determines whether the service center 130 has requested the third data block 200. If so, the process 400 proceeds to block 425. If not, the process 400 returns to block 405 to further increment the stored odometer value 205.
[0071] At block 425, the first ECU 105 encrypts the third data block 200 and transmits it to the service center 130, as described above.
[0072] Next, at a decision block 430, the first ECU 105 determines whether the first ECU 105 has received the first data block 250 from the remote server 125. After receiving the first data block 250 from the remote server 125, the process 400 proceeds to a block 435. Otherwise, the process 400 returns to block 405 to further increment the stored odometer value 205.
[0073] At block 435, the first ECU 105 determines the VIN from the vehicle network 115, as described above.
[0074] Next, at a block 440, the first ECU 105 requests and receives the second data block 225 from the second ECU 110 while the first ECU 105 is installed on board the vehicle 100, e.g., via the vehicle network 115, as described above. Next, at a decision block 445, the first ECU 105 compares the first data block 250 and the second data block 225, as described above. Upon identifying a match between the first data block 250 and the second data block 225, the process 400 proceeds to a block 450. Upon identifying a mismatch between the first data block 250 and the second data block 225, or if the first VIN 260 or the second VIN 235 does not match the VIN determined at block 435, the process 400 proceeds to a block 455.
[0075] At block 450, the first ECU 105 replaces the stored odometer value 205 on the first ECU 105 with the first odometer value 255, as described above. After block 450, the process 400 proceeds to a block 475.
[0076] At block 455, the first ECU 105 issues a request for the fourth data block to the service center 130, as described above. The fourth data block was previously downloaded from the vehicle 100, either as the third data block 200 at block 425 or as the second data block 225 from the second ECU 110.
[0077] Next, at a decision block 460, the first ECU 105 compares the first data block 250 and the fourth data block, as described above. Upon identifying a second match between the first data block 250 and the fourth data block, the process 400 proceeds to block 450. Upon identifying a second mismatch between the first data block 250 and the fourth data block, or upon not receiving the fourth data block, the process 400 proceeds to block 465. At block 465, the first ECU 105 maintains the stored odometer value 205 on the first ECU 105, as described above.
[0078] Next, at block 470, the first ECU 105 instructs a component of the vehicle 100 to disable operation of the component, as described above. After block 470, the process 400 proceeds to block 475.
[0079] At block 475, the first ECU 105 logs the third data block 200 to the remote server 125, either replacing the stored odometer value 205 with the first odometer value or not, as described above. After block 475, the process 400 ends.
[0080] Fig. 5 is a process flow diagram illustrating an exemplary process 500 for the second ECU 110 to replace the first ECU 105. Executable instructions for performing the steps of process 500 are stored in the memory of the second ECU 110 and / or programming may be implemented in structures such as those listed above. As a general overview of the process 500, upon receiving the third data block 200, the second ECU 110 stores the third data block 200, thereby referred to as the second data block 225. Upon receiving a request for the second data block 225, the second ECU 110 transmits the second data block 225 to the requestor.
[0081] The process 500 begins at a decision block 505, where the second ECU 110 determines whether the second ECU 110 has received the third data block 200 from the first ECU 105. Upon receiving the third data block 200, the process 500 proceeds to a block 510. If the second ECU 110 has not received a new third data block 200, the process 500 proceeds to a decision block 515.
[0082] At block 510, the second ECU 110 stores the third data block 200, now referred to as the second data block 225. The second data block 225 is already encrypted. The second ECU 110 does not decrypt the second data block 225 and may not be able to decrypt the second data block 225, i.e., the decryption key may be missing. After block 510, the process 500 proceeds to decision block 515.
[0083] At decision block 515, the second ECU 110 determines whether a request for the second data block 225 has been received. The request may originate from the first ECU 105, as described above with respect to block 440 of process 400 and steps 334-336 of sequence 300. Alternatively, the request may originate from the service center 130, as described above with respect to steps 310-312 of sequence 300. Upon receiving the request for the second data block 225, the process 500 proceeds to block 520. If no request has been received, the process 500 ends.
[0084] At block 520, the second ECU 110 transmits the second data block 225 to the requestor, either the first ECU 105 or the service center 130. After block 520, the process 500 ends.
[0085] Fig.6 is a process flow diagram illustrating an exemplary process 600 for the remote server 125 to replace the first ECU 105 in the vehicle 100. Executable instructions for performing the steps of process 600 are stored in the memory of the remote server 125 and / or programming may be implemented in structures such as those listed above. As a general overview of the process 600, the remote server 125 receives the second data block 225 or the third data block 200 from the service center 130. Upon successful decryption of the third data block 200 or the second data block 225, the remote server 125 generates the first data block 250 and transmits the first data block 250 to the first ECU 105.If an attempt to decrypt the third data block 200 or the second data block 225 is unsuccessful, the remote server 125 requests the service center 130 to retransmit the third data block 200 or the second data block 225.
[0086] The process 600 begins at a block 605, where the remote server 125 receives the third data block 200 or the second data block 225, as described above. The service center 130 transmits the third data block 200 if the original first ECU 105a is operational and transmits the second data block 225 if the original first ECU 105a is not operational.
[0087] Next, at a decision block 610, the remote server 125 decrypts the third data block 200 or the second data block 225. If the attempt to decrypt the third data block 200 or the second data block 225 is unsuccessful, the process 600 proceeds to a block 615. If the third data block 200 or the second data block 225 is successfully decrypted, the process 600 proceeds to a block 620.
[0088] At block 615, the remote server 125 transmits a request to the service center 130 to retransmit the third data block 200 or the second data block 225. After block 615, the process 600 ends.
[0089] At block 620, the remote server 125 generates the first data block 250 as described above.
[0090] Next, at block 625, the remote server 125 transmits the first data block 250 to the first ECU 105, as described above. After block 625, the process 600 ends.
[0091] In general, the described computing systems and / or devices may employ any of a variety of computer operating systems, including, but not limited to, versions and / or variants of Ford's Sync® application, AppLink / Smart Device Link middleware, the Microsoft Automotive® operating systems, Microsoft Windows®, Unix (e.g., the Solaris® operating system distributed by Oracle Corporation of Redwood Shores, California), AIX UNIX distributed by International Business Machines of Armonk, New York, Linux, Mac OSX and iOS distributed by Apple Inc. of Cupertino, California, BlackBerry OS distributed by Blackberry, Ltd. of Waterloo, Canada, and Android developed by Google, Inc. and the Open Handset Alliance, or the QNX® CAR platform for infotainment offered by QNX Software Systems.Examples of computing devices include, without limitation, an on-board vehicle computer, a computer workstation, a server, a desktop, notebook, laptop, or handheld computer, or other computing system and / or device.
[0092] Computing devices generally include computer-executable instructions, where the instructions may be executable by one or more computing devices, such as those listed above. Computer-executable instructions may be compiled or interpreted by computer programs created using a variety of programming languages and / or technologies, including, but not limited to, Java™, C, C++, Matlab, Simulink, Stateflow, Visual Basic, Java Script, Perl, HTML, etc. Some of these applications may be compiled and executed on a virtual machine, such as the Java Virtual Machine, the Dalvik Virtual Machine, or the like. Generally, a processor (e.g., a microprocessor) receives instructions, e.g., from memory, a computer-readable medium, etc., and executes those instructions, thereby performing one or more processes, including one or more of the processes described in this document. Such instructions and other data may be stored and transmitted using a variety of computer-readable media. A file in a computing device is generally a collection of data stored on a computer-readable medium, such as a storage medium, random access memory, etc.
[0093] A computer-readable medium (also referred to as a processor-readable medium) includes any non-transitory (e.g., physical) medium involved in providing data (e.g., instructions) that can be read by a computer (e.g., by a processor of a computer). Such a medium can take many forms, including, without limitation, non-transitory media and volatile media. Instructions can be transmitted through one or more transmission media, including fiber optics, wires, wireless communications, and internal structural elements comprising a system bus coupled to a processor of a computer. Common forms of computer-readable media include, for example, RAM, a PROM, an EPROM, a FLASH EEPROM, any other memory chip or cartridge, or any other medium from which a computer can read.Databases, datasets, or other data stores described in this document may include various types of mechanisms for storing, accessing, and retrieving various types of data, including a hierarchical database, a set of files in a file system, an application database in a proprietary format, a relational database management system (RDBMS), a non-relational database (NoSQL), a graph database (GDB), etc. Each such data store is generally included within a computing device employing a computer operating system, such as one of those mentioned above, and is accessed in one or more of a variety of ways over a network. A file system may be accessed by a computer operating system and may include files stored in various formats.An RDBMS generally uses the Structured Query Language (SQL) in addition to a language for creating, storing, editing, and executing stored procedures, such as the PL / SQL language mentioned above.
[0094] In some examples, system elements may be implemented as computer-readable instructions (e.g., software) on one or more computing devices (e.g., servers, PCs, etc.) stored on computer-readable media (e.g., disks, memory, etc.) associated with the computing devices. A computer program product may include such instructions stored on computer-readable media for performing the functions described herein.
[0095] In the drawings, the same reference numerals indicate the same elements. Furthermore, some or all of these elements could be changed. With respect to the media, processes, systems, methods, heuristics, etc., described in this specification, it is understood that although the steps of such processes, etc., have been described as occurring according to a certain ordered sequence, such processes could be practiced with the described steps performed in an order that differs from the order described in this specification. Further, it is understood that certain steps could be performed at the same time, other steps could be added, or certain steps described in this specification could be omitted.
[0096] All terms used in the claims are intended to have their general and ordinary meaning as understood by one skilled in the art, unless expressly stated otherwise herein. In particular, the use of the singular articles such as "a," "an," "the," "the," etc., is to be construed to recite one or more of the listed elements, unless a claim contains an express limitation to the contrary. The adjectives "first," "second," "third," and "fourth" are used herein as identifiers and are not intended to indicate meaning, order, or quantity. The use of "in response to," "upon determining," "upon receiving," etc., indicates a causal relationship, not just a purely temporal one.
[0097] The disclosure has been described in an illustrative manner, and it is understood that the terminology used is intended to be in the nature of description rather than limitation. Many modifications and variations of the present disclosure are possible in light of the above teachings, and the disclosure may be practiced other than as specifically described.
[0098] According to the present invention, there is provided a computer including a processor and a memory, the memory storing instructions executable by the processor to: receive a first block of data from a server remote from the computer and remote from a vehicle, the first block of data including a first odometer value; while the computer is installed on board the vehicle, receive a second block of data from an electronic control unit (ECU) in the vehicle, the second block of data including a second odometer value; compare the first block of data and the second block of data; upon identifying a match between the first block of data and the second block of data, replace a stored odometer value on the computer with the first odometer value;and upon identifying a mismatch between the first data block and the second data block, maintaining the stored odometer value on the computer.;
[0099] According to one embodiment, the instructions further include instructions to increment the stored odometer value by the distance traveled by the vehicle.
[0100] According to one embodiment, the instructions further include instructions to transmit a third data block to the ECU, wherein the third data block includes the stored odometer value.
[0101] According to one embodiment, the instructions further include instructions to periodically transmit the third data block to the EU.
[0102] According to one embodiment, the instructions further include instructions for transmitting the third data block to the ECU if the vehicle has traveled a preset distance since a previous transmission of the third data block to the ECU. According to one embodiment, the instructions further include instructions for calculating a security feature and applying the security feature to the third data block before transmitting the third data block to the ECU.
[0103] According to one embodiment, the first odometer value is smaller than the stored odometer value.
[0104] According to one embodiment, the match is an equality between the first odometer value and the second odometer value and the mismatch is an inequality between the first odometer value and the second odometer value.
[0105] According to one embodiment, the first data block includes a first vehicle identification number (VIN), the second data block includes a second VIN, the match is an equality between the first VIN and the second VIN, and the mismatch is an inequality between the first VIN and the second VIN. According to one embodiment, the instructions further include instructions for maintaining the stored odometer value on the computer if the first VIN does not match a third VIN of the vehicle.
[0106] According to one embodiment, the instructions further include instructions to determine the third VIN from a vehicle network of the vehicle.
[0107] According to one embodiment, the instructions further include instructions to maintain the stored odometer value on the computer if the second VIN does not match a third VIN of the vehicle.
[0108] According to one embodiment, the instructions further include instructions for, upon identifying the mismatch between the first data block and the second data block, instructing a component of the vehicle to disable operation of the component.
[0109] According to one embodiment, the instructions further include instructions for, upon identifying the mismatch between the first data block and the second data block, issuing a request for a fourth data block, the fourth data block having been previously downloaded from the vehicle, the fourth data block including a fourth odometer value.
[0110] According to one embodiment, the instructions further include instructions for: comparing the first data block and the fourth data block; upon identifying a second match between the first data block and the fourth data block, replacing the stored odometer value on the computer with the first odometer value; and upon identifying a second mismatch between the first data block and the fourth data block, maintaining the stored odometer value on the computer.
[0111] According to one embodiment, the first data block includes a first security feature, the fourth data block includes a fourth security feature, the second match is an equality between the first security feature and the fourth security feature, and the second mismatch is an inequality between the first security feature and the fourth security feature.
[0112] According to one embodiment, the first security feature is calculated from the first odometer value and the fourth security feature is calculated from the fourth odometer value.
[0113] According to one embodiment, the instructions further include instructions for maintaining the stored odometer value on the computer if the fourth data block is not received.
[0114] According to one embodiment, the instructions further include instructions to decrypt the first data block and to decrypt the second data block.
[0115] According to the present invention, a method includes: receiving a first data block from a server remote from a computer and remote from a vehicle, the first data block including a first odometer value; receiving a second data block from an electronic control unit (ECU) in the vehicle, the second data block including a second odometer value, wherein the computer receives the second data block from the ECU while the computer is installed on board the vehicle; comparing the first data block and the second data block; upon identifying a match between the first data block and the second data block, replacing a stored odometer value on the computer with the first odometer value; and upon identifying a mismatch between the first data block and the second data block, maintaining the stored odometer value on the computer.
Claims
[1] Method comprising: Receiving a first data block from a server remote from a computer and remote from a vehicle, the first data block including a first odometer value; receiving a second data block from an electronic control unit (ECU) in the vehicle by the computer, the second data block including a second odometer value, the computer receiving the second data block from the ECU while the computer is installed on board the vehicle; Comparing the first data block and the second data block; upon identifying a match between the first data block and the second data block, replacing a stored odometer value on the computer with the first odometer value; and If a mismatch is identified between the first data block and the second data block, retain the stored odometer value on the computer. [2] The method of claim 1, further comprising incrementing the stored odometer value by a distance traveled by the vehicle. [3] The method of claim 1, further comprising transmitting a third data block to the ECU, the third data block including the stored odometer value. [4] The method of claim 3, further comprising periodically transmitting the third data block to the ECU. [5] The method of claim 3, further comprising, if the vehicle has traveled a preset distance since a previous transmission of the third data block to the ECU, transmitting the third data block to the ECU. [6] The method of claim 3, further comprising calculating a security feature and applying the security feature to the third data block before transmitting the third data block to the ECU. [7] The method of claim 1, wherein the first odometer value is less than the stored odometer value. [8] The method of claim 1, wherein the match is an equality between the first odometer value and the second odometer value and the mismatch is an inequality between the first odometer value and the second odometer value. [9] The method of claim 1, wherein the first data block includes a first vehicle identification number (VIN), the second data block includes a second VIN, the match is an equality between the first VIN and the second VIN, and the mismatch is an inequality between the first VIN and the second VIN. [10] The method of claim 1, further comprising, upon identifying the mismatch between the first data block and the second data block, instructing a component of the vehicle to disable operation of the component. [11] The method of claim 1, further comprising, upon identifying the mismatch between the first data block and the second data block, issuing a request for a fourth data block, the fourth data block having been previously downloaded from the vehicle, the fourth data block including a fourth odometer value. [12] The method of claim 11, further comprising: Comparing the first data block and the fourth data block; upon identifying a second match between the first data block and the fourth data block, replacing the stored odometer value on the computer with the first odometer value; and If a second mismatch is identified between the first data block and the fourth data block, retain the stored odometer value on the computer. [13] The method of claim 12, wherein the first data block includes a first security feature calculated from the first odometer value, the fourth data block includes a fourth security feature calculated from the fourth odometer value, the second match is an equality between the first security feature and the fourth security feature, and the second mismatch is an inequality between the first security feature and the fourth security feature. [14] The method of claim 1, further comprising decrypting the first data block and decrypting the second data block. [15] A computer comprising a processor and a memory, wherein the memory stores instructions executable by the processor to perform the method of any one of claims 1-14.
