An Offline Operation Method, System, Device and Medium for a Vehicle Terminal

By using dynamic encryption factors to encrypt the operation code source code in offline operation of the vehicle terminal, a unique and timely offline operation password is generated, and the security of operation is improved.

CN119966752BActive Publication Date: 2025-06-27SHAANXI CCCC TIANJIAN CAR NETWORKING INFORMATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510442973.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-04-10
Publication Date
2025-06-27
Estimated Expiration
2045-04-10

AI Technical Summary

Technical Problem

In the offline operation method of existing vehicle terminals, defects in fixed operation codes lead to insufficient security, and users can perform corresponding operations on any similar device at any time.

Method used

Before each time the vehicle terminal is offline, dynamic encryption factors are generated based on its ID, vehicle operation data and current system time to generate and encrypt the offline operation code source code to form a unique and timely offline operation password.

Benefits of technology

Ensure the privacy, uniqueness and timeliness of the operation code, avoid users reuse or deduce other operation codes, and improve operation security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119966752B_ABST
    Figure CN119966752B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of vehicle networking, and discloses an offline operation method, system, device and medium for a vehicle-mounted terminal. The method includes: for any vehicle-mounted terminal, before each time the vehicle-mounted terminal goes offline, the platform and the vehicle-mounted terminal negotiate to generate a dynamic encryption factor based on the ID of the vehicle-mounted terminal, the running data of the corresponding vehicle, and the current system time; the platform generates an offline operation code source for the vehicle-mounted terminal to perform corresponding offline operations according to different operation instructions of the vehicle-mounted terminal, and encrypts the offline operation code source with the dynamic encryption factor to obtain an offline operation password, so as to send the offline operation password to the vehicle-mounted terminal; after the vehicle-mounted terminal goes offline, the vehicle-mounted terminal decrypts the offline operation password with the dynamic encryption factor to obtain the offline operation password generated by the platform before the vehicle-mounted terminal goes offline this time, so as to perform offline operations through the offline operation password. The offline operation code in the present invention has timeliness and uniqueness, and is safer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vehicle networking, and particularly relates to an offline operation method, system, device and medium for an in-vehicle terminal. Background Art

[0002] In-vehicle terminals are widely used in the automotive industry. Common ones include heavy truck national standard equipment driving recorders, in-vehicle systems, etc. Such terminal devices usually have a human-computer interaction function, mainly to meet the business functions of the terminal itself. In addition to the business functions, users can also set channels locally through the device, such as the human-computer interaction interface, USB interface, Bluetooth, etc., to complete basic device operations such as device system information query and preference setting. To ensure the system stability and core data security of the terminal device, some high-level operations, such as device reset, factory reset, and parameter setting, are usually not directly open to users.

[0003] However, during the use of the device, due to the need for maintenance, customization, function upgrade, etc., it is inevitable to perform some high-level operations on the device. Device manufacturers usually can perform remote operations through the vehicle networking platform, or arrange service personnel to use special upper computer devices on-site to achieve high-level operations on the terminal device. The first method above is applicable when the vehicle has a networking function and the networking is normal. The second method requires service personnel to perform on-site operations with special diagnostic devices, which has a high service cost and poor timeliness.

[0004] In view of the above situation, some terminal device manufacturers also provide offline operation instructions based on codes. Just input the corresponding offline operation code on the terminal device to complete specific operations on the device. For example, some terminal device manufacturers set some operation codes with reference to the mobile phone industry, as shown in Table 1:

[0005] Table 1

[0006]

[0007] This method provides an operation method for terminal devices that does not depend on the networking of the terminal device and does not depend on the upper computer. However, the operation code is fixed and lacks security. Once the user masters it, they can perform corresponding operations on any similar device at any time. Summary of the Invention

[0008] The purpose of the present invention is to provide an offline operation method, system, device and medium for an in-vehicle terminal, where the operation code has timeliness and uniqueness, and is more secure.

[0009] To solve the above technical problems, an embodiment of the present invention provides an offline operation method for an in-vehicle terminal, including the following steps:

[0010] For any vehicle-mounted terminal, before each time the vehicle-mounted terminal goes offline, the platform and the vehicle-mounted terminal negotiate to generate a dynamic encryption factor based on the ID of the vehicle-mounted terminal, the operation data of the corresponding vehicle, and the current system time;

[0011] The platform generates an offline operation code source for the vehicle-mounted terminal to perform corresponding offline operations according to different operation instructions of the vehicle-mounted terminal, and encrypts the offline operation code source with the dynamic encryption factor to obtain an offline operation password, so as to send the offline operation password to the vehicle-mounted terminal;

[0012] After the vehicle-mounted terminal goes offline, it decrypts the offline operation password with the dynamic encryption factor to obtain the offline operation password generated by the platform before the vehicle-mounted terminal goes offline this time, so as to perform offline operations through the offline operation password.

[0013] Optionally, the platform generates an offline operation code source for the vehicle-mounted terminal to perform corresponding offline operations according to different operation instructions of the vehicle-mounted terminal, including:

[0014] If the operation instruction indicates that the vehicle-mounted terminal performs a single offline operation, and the value written in the operation instruction is an enumerated variable or the length of the value written in the operation instruction is less than a preset threshold, the platform generates an offline operation code source according to the ID of the operation instruction and the code of the value written in the operation instruction;

[0015] If the operation instruction indicates that the vehicle-mounted terminal performs multiple offline operations simultaneously, or the length of the value written in the operation instruction is greater than or equal to the preset threshold, the platform generates an offline operation code source according to the message body format of the vehicle networking protocol.

[0016] Optionally, after the vehicle-mounted terminal goes offline, it decrypts the offline operation password with the dynamic encryption factor to obtain the offline operation password generated by the platform before the vehicle-mounted terminal goes offline this time, so as to perform offline operations through the offline operation password, including:

[0017] If the operation instruction indicates that the vehicle-mounted terminal performs a single offline operation, and the value written in the operation instruction is an enumerated variable or the length of the value written in the operation instruction is less than a preset threshold, after the vehicle-mounted terminal goes offline, the offline operation password generated by the platform before the vehicle-mounted terminal goes offline this time is input through the human-machine interface of the vehicle-mounted terminal, so that the vehicle-mounted terminal performs offline operations;

[0018] If the operation instruction indicates that the vehicle-mounted terminal performs multiple offline operations simultaneously, or the length of the value written in the operation instruction is greater than or equal to the preset threshold, after the vehicle-mounted terminal goes offline, the offline operation password generated by the platform before the vehicle-mounted terminal goes offline this time is input through the local input channel of the vehicle-mounted terminal, so that the vehicle-mounted terminal performs offline operations.

[0019] Optionally, the encrypting the offline operation code source with the dynamic encryption factor includes:

[0020] A check code is obtained by performing a first preset mathematical operation on the offline operation code source code;

[0021] The offline operation code source code and the check code are combined, and the check code is placed at the first preset position of the combination result to generate a combined value;

[0022] The digest value of the dynamic encryption factor is calculated using a preset digest algorithm;

[0023] The character at the second preset position is extracted from the digest value as the interference value;

[0024] The combined value and the interference value are subjected to a second preset mathematical operation to obtain the encrypted offline operation code source code.

[0025] Optionally, after the vehicle-mounted terminal goes offline, the offline operation password is decrypted by the dynamic encryption factor to obtain the offline operation password generated by the platform before the vehicle-mounted terminal goes offline this time, so as to perform offline operations through the offline operation password, including:

[0026] The offline operation password is input on the vehicle-mounted terminal, and the vehicle-mounted terminal calculates the digest value according to the dynamic encryption factor using a preset digest algorithm;

[0027] The character at the second preset position is extracted from the digest value as the interference value in the offline operation password;

[0028] The interference value in the offline operation password is removed through the reverse operation of the second preset mathematical operation to obtain the combined value of the offline operation code source code and the check code;

[0029] The check code and the offline operation code source code are split from the combined value according to the first preset position;

[0030] The operation instruction is parsed through the extracted offline operation code source code, so that the vehicle-mounted terminal performs offline operations according to the parsed operation instruction.

[0031] Optionally, the parsing of the operation instruction through the extracted offline operation code source code includes:

[0032] For the combined value after removing the interference value, the check code and the offline operation code source code are split according to the first preset position;

[0033] The check code of the offline operation code source code is calculated using the first preset mathematical operation and compared with the check code split from the combined value;

[0034] When the two check codes are equal, the operation instruction is parsed from the offline operation code source code.

[0035] Optionally, the platform and the vehicle-mounted terminal negotiate to generate a dynamic encryption factor based on the ID of the vehicle-mounted terminal, the operation data of the corresponding vehicle, and the current system time, including:

[0036] The platform generates a dynamic key according to the ID of the vehicle-mounted terminal and the operation data of the corresponding vehicle, and sends the dynamic key to the vehicle-mounted terminal;

[0037] The vehicle-mounted terminal generates a dynamic encryption factor according to the dynamic key and the current system time, and sends the dynamic encryption factor to the platform, so that the platform and the vehicle-mounted terminal each save the dynamic encryption factor.

[0038] An embodiment of the present invention further provides an offline operating system for a vehicle-mounted terminal, including: a platform and a vehicle-mounted terminal;

[0039] The platform and the vehicle-mounted terminal are used to, for any vehicle-mounted terminal, negotiate to generate a dynamic encryption factor based on the ID of the vehicle-mounted terminal, the operation data of the corresponding vehicle, and the current system time before each offline of the vehicle-mounted terminal;

[0040] The platform is further used to generate an offline operation code source code for the vehicle-mounted terminal to perform corresponding offline operations according to different operation instructions of the vehicle-mounted terminal, and encrypt the offline operation code source code with the dynamic encryption factor to obtain an offline operation password, so as to send the offline operation password to the vehicle-mounted terminal;

[0041] The vehicle-mounted terminal is further used to decrypt the offline operation password with the dynamic encryption factor after offline to obtain the offline operation password generated by the platform before the vehicle-mounted terminal's current offline, so as to perform offline operations through the offline operation password.

[0042] An embodiment of the present invention further provides a computer device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein, instructions executable by the at least one processor are stored in the memory, and when the instructions are executed by the at least one processor, the at least one processor is enabled to execute the above-mentioned offline operation method of the vehicle-mounted terminal.

[0043] An embodiment of the present invention further provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the above-mentioned offline operation method of the vehicle-mounted terminal is implemented.

[0044] The offline operation method of the vehicle-mounted terminal provided by the present invention has at least the following beneficial effects:

[0045] Before each time the vehicle-mounted terminal goes offline, the platform generates an offline operation code source code (i.e., operation code) for the vehicle-mounted terminal to perform offline operations based on the operation instructions of the vehicle-mounted terminal. Different operation instructions correspond to different operation codes. After the vehicle-mounted terminal goes offline, if it is necessary to perform offline operations, the operation code generated by the platform before this offline is used. At the same time, the operation code is encrypted using the ID of the vehicle-mounted terminal, the running data of the corresponding vehicle, and the current system time. This makes the operation code used in the present invention not fixed. An operation code is only limited to performing specific offline operations on a specific vehicle-mounted terminal at a specific time, thereby ensuring the privacy, uniqueness, and timeliness of the operation code, avoiding users reusing the same operation code to perform the same offline operations on the same vehicle-mounted terminal or other vehicle-mounted terminals in the later stage, and also avoiding users deducing other operation codes by analyzing the rules of the operation code. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] One or more embodiments are exemplarily illustrated by the pictures in the corresponding drawings. These exemplary illustrations do not constitute limitations on the embodiments.

[0047] Figure 1 is a flowchart of a method for offline operation of a vehicle-mounted terminal according to an embodiment of the present invention;

[0048] Figure 2 is a flowchart for generating a dynamic encryption factor according to an embodiment of the present invention;

[0049] Figure 3 is a flowchart for generating an offline operation password according to an embodiment of the present invention;

[0050] Figure 4 is a flowchart for parsing an offline operation password according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0051] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, those of ordinary skill in the art can understand that in the embodiments of the present invention, many technical details are proposed to help readers better understand the present invention. However, even without these technical details and various changes and modifications based on the following embodiments, the technical solutions required to be protected by the present invention can still be implemented. The following division of each embodiment is for convenience of description and should not constitute any limitation on the specific implementation manner of the present invention. Each embodiment can be combined and cross-referenced with each other on the premise of not conflicting.

[0052] One embodiment of the present invention relates to an offline operation method for a vehicle-mounted terminal. The implementation details of the offline operation method for the vehicle-mounted terminal in this embodiment will be specifically described below. The following content is only the implementation details provided for convenience of understanding and is not necessary for implementing this solution.

[0053] The specific process of the offline operation method for the vehicle-mounted terminal in this embodiment can be as Figure 1 shown and includes:

[0054] Step 101, for any vehicle-mounted terminal, before each time the vehicle-mounted terminal goes offline, the platform and the vehicle-mounted terminal negotiate to generate a dynamic encryption factor based on the ID of the vehicle-mounted terminal, the operation data of the corresponding vehicle, and the current system time.

[0055] Specifically, the platform and the vehicle-mounted terminal negotiate to generate a dynamic encryption factor through the following steps: The platform generates a dynamic key based on the ID of the vehicle-mounted terminal and the operation data of the corresponding vehicle, and sends the dynamic key to the vehicle-mounted terminal; The vehicle-mounted terminal generates a dynamic encryption factor based on the dynamic key and the current system time, and sends the dynamic encryption factor to the platform, so that the platform and the vehicle-mounted terminal each save the dynamic encryption factor. Among them, the operation data of the vehicle includes: the total mileage of the vehicle instrument and the total running time of the engine.

[0056] In specific implementation, the process of the platform and the vehicle-mounted terminal negotiating to generate a dynamic encryption factor is as Figure 2 shown and includes: After the vehicle-mounted terminal logs in to the gateway, the platform generates a "dynamic key" based on three parameters: the ID of the vehicle-mounted terminal, the latest total mileage of the vehicle instrument, and the total running time of the engine, and sends it to the vehicle-mounted terminal. After receiving the "dynamic key", the vehicle-mounted terminal needs to combine the received "dynamic key" with the current system time to generate a dynamic encryption factor and report it to the platform. After the platform confirms that the "dynamic encryption factors" of both parties are the same, it replies with a positive response. Only then is a complete dynamic key exchange process completed. Otherwise, the platform and the vehicle-mounted terminal need to retry to ensure that the information of both parties is the same. When the "dynamic encryption factor" is completed, both the platform and the vehicle-mounted terminal update and save the latest "dynamic encryption factor" respectively. Otherwise, they give up saving and still maintain the original "dynamic encryption factor" until the "dynamic encryption factor" is negotiated again.

[0057] Step 102, the platform generates an offline operation code source for the vehicle-mounted terminal to perform the corresponding offline operation according to different operation instructions of the vehicle-mounted terminal, and encrypts the offline operation code source with the dynamic encryption factor to obtain an offline operation password, so as to send the offline operation password to the vehicle-mounted terminal.

[0058] Specifically, the generation process of the offline operation password can be referred to Figure 3In the shown flowchart, when an offline operation needs to be performed on the in-vehicle terminal, the platform first generates the source code of the offline operation code according to the content of the operation instruction (including the operation object and operation content). If the operation instruction of the in-vehicle terminal indicates a single offline operation on the in-vehicle terminal, and the value written in the operation instruction (i.e., the instruction assignment) is an enumeration class variable or the length of the value written in the operation instruction is less than the preset threshold, that is, the length of the value written in the operation instruction is short, then the platform generates the source code of the offline operation code according to the ID of the operation instruction and the code of the value written in the operation instruction (the structure shown in Table 2). If the operation instruction of the in-vehicle terminal indicates multiple offline operations to be performed on the in-vehicle terminal simultaneously, or the length of the value written in the operation instruction is greater than or equal to the preset threshold, that is, the length of the value written in the operation instruction is long, at this time, the platform generates the source code of the offline operation code according to the message body format of the vehicle networking protocol.

[0059] Table 2

[0060]

[0061] After obtaining the source code of the offline operation code, a dynamic encryption factor is used to encrypt the source code of the offline operation code in the following way to obtain the offline operation password: First, a first preset mathematical operation is performed on the source code of the offline operation code to obtain a check code, such as mathematical operations like addition and subtraction operations, shift operations, etc., so that the in-vehicle terminal can verify the authenticity and legality of the finally generated offline operation password. Then, the source code of the offline operation code and the check code are combined, and the check code is placed at the first preset position of the combined result (this first preset position requires the in-vehicle terminal and the platform to follow the same rules) to generate a combined value. Next, the platform calculates the digest value of the dynamic encryption factor saved in the database using a preset digest algorithm, extracts the character at the second preset position from the digest value as the interference value, and performs a second preset mathematical operation on the combined value and the interference value, such as addition and subtraction operations, shift operations, etc., to obtain the encrypted source code of the offline operation code.

[0062] Step 103, after the in-vehicle terminal goes offline, it decrypts the offline operation password using the dynamic encryption factor to obtain the offline operation password generated by the platform before the in-vehicle terminal went offline this time, so as to perform the offline operation through the offline operation password.

[0063] Specifically, if the operation instruction of the in-vehicle terminal indicates to perform a single offline operation on the in-vehicle terminal, and the value written in the operation instruction is an enumerated variable or the length of the value written in the operation instruction is less than the preset threshold, after the in-vehicle terminal goes offline, the offline operation password generated by the platform before the in-vehicle terminal goes offline this time is input through the human-machine interaction interface of the in-vehicle terminal, so that the in-vehicle terminal performs the offline operation. If the operation instruction of the in-vehicle terminal indicates to perform multiple offline operations on the in-vehicle terminal simultaneously, or the length of the value written in the operation instruction is greater than or equal to the preset threshold, and the length of the generated offline operation password will also be very large, after the in-vehicle terminal goes offline, the offline operation password generated by the platform before the in-vehicle terminal goes offline this time is input through the local input channel of the in-vehicle terminal, such as local input channels like USB interfaces and Bluetooth, so that the in-vehicle terminal performs the offline operation.

[0064] In a specific implementation, after the offline operation password is input on the in-vehicle terminal, the in-vehicle terminal needs to parse the operation instruction from the offline operation password, so as to perform the offline operation according to the operation instruction. The parsing process is as Figure 4 shown. The in-vehicle terminal first calculates the digest value using a preset digest algorithm according to the dynamic encryption factor, and then extracts the characters at the second preset position from the digest value according to a fixed rule as the interference value in the offline operation password (i.e., the interference value introduced during the encryption process). The interference value in the offline operation password is removed through the reverse operation of the second preset mathematical operation, and the check code and the source code of the offline operation code are split from the combined value according to the first preset position. At this time, the operation instruction of the in-vehicle terminal can be parsed from the extracted source code of the offline operation code, so as to perform the offline operation according to the parsed operation instruction.

[0065] In an example, for the combined value after removing the interference value, the check code and the source code of the offline operation code are split according to the first preset position. To ensure the authenticity and integrity of the operation instruction content, it is necessary to calculate the check code of the source code of the offline operation code using the first preset mathematical operation (i.e., the same mathematical operation as in the encryption process), and compare it with the check code split from the combined value. When the two check codes are equal, the verification passes, and the operation instruction of the in-vehicle terminal can be parsed from the source code of the offline operation code according to the operation instruction source code generation rule of the platform side and executed. Otherwise, the verification fails and the operation instruction is not executed.

[0066] It can be seen that the in-vehicle terminal will obtain an offline operation password generated by the platform every time it is in the online state, so that it can use this offline operation password to perform offline operations after going offline.

[0067] In this embodiment, before each time the vehicle-mounted terminal goes offline, the platform generates an offline operation code source code (i.e., the operation code) for the vehicle-mounted terminal to perform offline operations based on the operation instructions of the vehicle-mounted terminal. Different operation instructions correspond to different operation codes. After the vehicle-mounted terminal goes offline, if it is necessary to perform an offline operation, the operation code generated by the platform before this offline is used. At the same time, the operation code is encrypted using the running data of the vehicle corresponding to the vehicle-mounted terminal and the current system time. This makes the operation code used in this embodiment not fixed. An operation code is only limited to performing a specific offline operation on a specific vehicle-mounted terminal at a specific time, thereby ensuring the privacy, uniqueness, and timeliness of the operation code, avoiding the user from reusing the same operation code to perform the same offline operation on the same vehicle-mounted terminal or other vehicle-mounted terminals in the later stage, and also avoiding the user from deducing other operation codes by analyzing the rules of the operation code.

[0068] Furthermore, it can be seen that this embodiment can ensure that the operation time, object, and content are all subject to the management personnel. The offline operation password of the vehicle-mounted terminal meets the convenience of the vehicle-mounted terminal operation and also meets the information security management requirements of the vehicle-mounted terminal manufacturer.

[0069] In one embodiment, the offline operation method of the vehicle-mounted terminal of the present invention can be divided into: the process of negotiating and generating a dynamic encryption factor between the platform and the vehicle-mounted terminal, the process of generating an offline operation password on the platform side, and the process of parsing the offline operation password on the terminal side. Taking the vehicle-mounted terminal parameter setting instruction in 8-bit hexadecimal as an example, the above three processes are described in detail below:

[0070] (1) The process of negotiating and generating a dynamic encryption factor between the platform and the vehicle-mounted terminal is shown in Table 3:

[0071] Table 3

[0072]

[0073] Assume that after the platform and the terminal update and save the dynamic encryption factor, the network connection function of the terminal fails and it cannot be connected to the network. It is necessary to perform terminal operations through the offline operation password. Since the terminal cannot log in to the gateway, the platform and the terminal cannot negotiate the dynamic encryption factor again, and both parties maintain the current dynamic encryption factor, that is, "7EF918".

[0074] (2) The process of generating an offline operation password on the platform side is shown in Table 4:

[0075] Table 4

[0076]

[0077] (3) The process of parsing the offline operation password on the terminal side is shown in Table 5:

[0078] Table 5

[0079]

[0080] The step divisions of the above various methods are only for clear description. When implemented, they can be combined into one step or some steps can be split into multiple steps. As long as the same logical relationships are included, they are all within the protection scope of the present invention; adding insignificant modifications to the algorithm or process or introducing insignificant designs, but not changing the core design of the algorithm and process, are all within the protection scope of the invention.

[0081] Another embodiment of the present invention relates to an offline operating system for a vehicle-mounted terminal. The implementation details of the offline operating system for the vehicle-mounted terminal in this embodiment will be specifically described below. The following content is only the implementation details provided for convenient understanding and is not necessary for implementing the solution. The offline operating system for the vehicle-mounted terminal in this embodiment includes: a platform and a vehicle-mounted terminal;

[0082] Specifically, the platform and the vehicle-mounted terminal are used to, for any vehicle-mounted terminal, negotiate and generate a dynamic encryption factor based on the ID of the vehicle-mounted terminal, the running data of the corresponding vehicle, and the current system time before each offline of the vehicle-mounted terminal;

[0083] The platform is further used to generate an offline operation code source for the vehicle-mounted terminal to perform corresponding offline operations according to different operation instructions of the vehicle-mounted terminal, and encrypt the offline operation code source with the dynamic encryption factor to obtain an offline operation password, so as to send the offline operation password to the vehicle-mounted terminal;

[0084] The vehicle-mounted terminal is further used to decrypt the offline operation password with the dynamic encryption factor after going offline to obtain the offline operation password generated by the platform before the vehicle-mounted terminal goes offline this time, so as to execute the offline operation through the offline operation password.

[0085] It is not difficult to find that this embodiment is a system embodiment corresponding to the above method embodiment, and this embodiment can be implemented in cooperation with the above method embodiment. The relevant technical details and technical effects mentioned in the above embodiment are still valid in this embodiment. For the sake of reducing repetition, they will not be elaborated here. Correspondingly, the relevant technical details mentioned in this embodiment can also be applied to the above embodiment.

[0086] It is worth mentioning that each module involved in this embodiment is a logical module. In practical applications, a logical unit can be a physical unit, a part of a physical unit, or a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, units not closely related to solving the technical problems proposed by the present invention are not introduced in this embodiment, but this does not mean that there are no other units in this embodiment.

[0087] Another embodiment of the present invention relates to a computer device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and when the instructions are executed by the at least one processor, the at least one processor is enabled to execute the offline operation method of the in-vehicle terminal in the above embodiments.

[0088] Wherein, the memory and the processor are connected by a bus. The bus may include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors and the memory together. The bus may also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits, etc., which are well known in the art, and thus will not be further described herein. The bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or multiple elements, such as multiple receivers and transmitters, and provides a unit for communicating with various other devices on the transmission medium. The data processed by the processor is transmitted over the wireless medium through the antenna. Further, the antenna also receives data and transmits the data to the processor.

[0089] The processor is responsible for managing the bus and general processing, and may also provide various functions, including timing, peripheral interface, voltage regulation, power management, and other control functions. The memory may be used to store data used by the processor when executing operations.

[0090] Another embodiment of the present invention relates to a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the method embodiments described above are implemented.

[0091] That is, those skilled in the art can understand that all or part of the steps in implementing the above method embodiments can be completed by instructing relevant hardware through a program. The program is stored in a storage medium, including several instructions for enabling a device (which may be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks, or optical disks, etc., which can store program codes.

[0092] Those of ordinary skill in the art can understand that the above embodiments are specific embodiments for implementing the present invention, and in practical applications, various changes can be made in form and details without departing from the spirit and scope of the present invention.

Claims

1. An off-line operation method of a vehicle-mounted terminal, characterized in that: include: For any vehicle terminal, before the vehicle terminal goes offline each time, the platform and the vehicle terminal negotiate to generate a dynamic encryption factor based on the vehicle terminal ID, the corresponding vehicle's operating data, and the current system time; The platform generates an offline operation code source code for the vehicle terminal to perform corresponding offline operations according to different operation instructions of the vehicle terminal, and encrypts the offline operation code source code with a dynamic encryption factor to obtain an offline operation password, so as to send the offline operation password to the vehicle terminal; After the vehicle terminal goes offline, the offline operation password is decrypted by the dynamic encryption factor to obtain the offline operation password generated by the platform before the vehicle terminal goes offline this time, so as to perform offline operations by using the offline operation password; The platform generates offline operation code source code for the vehicle terminal to perform corresponding offline operations according to different operation instructions of the vehicle terminal, including: If the operation instruction instructs the vehicle terminal to perform a single offline operation, and the value written by the operation instruction is an enumeration class variable or the length of the value written by the operation instruction is less than the preset threshold, the platform generates an offline operation code source code based on the ID of the operation instruction and the code of the value written by the operation instruction; If the operation instruction instructs the vehicle terminal to perform multiple offline operations at the same time, or the length of the value written by the operation instruction is greater than or equal to the preset threshold, the platform generates the offline operation code source code according to the message body format of the Internet of Vehicles protocol.

2. The off-line operation method of the vehicle terminal according to claim 1, characterized in that: After the vehicle terminal goes offline, the offline operation password is decrypted by the dynamic encryption factor to obtain the offline operation password generated by the platform before the vehicle terminal goes offline this time, so as to perform offline operation by the offline operation password, including: If the operation instruction instructs the vehicle terminal to perform a single offline operation, and the value written in the operation instruction is an enumeration variable or the length of the value written in the operation instruction is less than the preset threshold, then after the vehicle terminal goes offline, the offline operation password generated by the platform before the vehicle terminal goes offline is input through the human-computer interaction interface of the vehicle terminal, so that the vehicle terminal performs the offline operation; If the operation instruction instructs the vehicle terminal to perform multiple offline operations at the same time, or the length of the value written in the operation instruction is greater than or equal to the preset threshold, then after the vehicle terminal goes offline, the offline operation password generated by the platform before the vehicle terminal goes offline this time is input through the local input channel of the vehicle terminal, so that the vehicle terminal performs the offline operation.

3. The off-line operation method of the vehicle-mounted terminal according to claim 1, characterized in that: The method of encrypting the offline operation code source code using a dynamic encryption factor includes: By performing a first preset mathematical operation on the offline operation code source code, a check code is obtained; Combining the offline operation code source code and the check code, and placing the check code at a first preset position of the combination result to generate a combination value; A preset digest algorithm is used to calculate a digest value of a dynamic encryption factor; Extracting characters at a second preset position from the summary value as interference values; The combined value and the interference value are subjected to a second preset mathematical operation to obtain an encrypted offline operation code source code.

4. The off-line operation method of the vehicle-mounted terminal according to claim 3, characterized in that: After the vehicle terminal goes offline, the offline operation password is decrypted by the dynamic encryption factor to obtain the offline operation password generated by the platform before the vehicle terminal goes offline this time, so as to perform offline operation by the offline operation password, including: Enter the offline operation password on the vehicle terminal, so that the vehicle terminal calculates the digest value using a preset digest algorithm according to the dynamic encryption factor; Extracting characters at a second preset position from the digest value as interference values ​​in the offline operation password; Remove the interference value in the offline operation password by performing the inverse operation of the second preset mathematical operation to obtain a combined value of the offline operation code source code and the check code; According to the first preset position, the check code and the offline operation code source code are separated from the combined value; The operation instructions are parsed from the extracted offline operation code source code, so that the vehicle-mounted terminal performs the offline operation according to the parsed operation instructions.

5. The off-line operation method of the vehicle-mounted terminal according to claim 4, characterized in that: The step of parsing the operation instruction from the extracted offline operation code source code includes: For the combined value after removing the interference value, according to the first preset position, the check code and the offline operation code source code are separated from the combined value; Calculate the check code of the offline operation code source code by using the first preset mathematical operation, and compare it with the check code separated from the combined value; When the two check codes are equal, the operation instruction is parsed from the offline operation code source code.

6. The off-line operation method of the vehicle-mounted terminal according to claim 1, characterized in that: The platform and the vehicle terminal negotiate to generate a dynamic encryption factor based on the ID of the vehicle terminal, the operation data of the corresponding vehicle, and the current system time, including: The platform generates a dynamic key based on the ID of the vehicle terminal and the operating data of the corresponding vehicle, and sends the dynamic key to the vehicle terminal; The vehicle terminal generates a dynamic encryption factor according to the dynamic key and the current system time, and sends the dynamic encryption factor to the platform, so that the platform and the vehicle terminal each save the dynamic encryption factor.

7. An offline operating system for a vehicle-mounted terminal, characterized in that: include: Platform and vehicle-mounted terminal; The platform and the vehicle terminal are used to negotiate and generate a dynamic encryption factor for any vehicle terminal based on the ID of the vehicle terminal, the operation data of the corresponding vehicle, and the current system time before the vehicle terminal goes offline each time; The platform is also used to generate an offline operation code source code for the vehicle terminal to perform corresponding offline operations according to different operation instructions of the vehicle terminal, and encrypt the offline operation code source code with a dynamic encryption factor to obtain an offline operation password, so as to send the offline operation password to the vehicle terminal; The vehicle terminal is also used to decrypt the offline operation password through the dynamic encryption factor after going offline, and obtain the offline operation password generated by the platform before the vehicle terminal goes offline this time, so as to perform offline operations through the offline operation password; If the operation instruction instructs the vehicle terminal to perform a single offline operation, and the value written by the operation instruction is an enumeration class variable or the length of the value written by the operation instruction is less than a preset threshold, the platform is also used to generate an offline operation code source code according to the ID of the operation instruction and the code of the value written by the operation instruction; If the operation instruction instructs the vehicle terminal to perform multiple offline operations at the same time, or the length of the value written by the operation instruction is greater than or equal to the preset threshold, the platform is also used to generate offline operation code source code according to the message body format of the Internet of Vehicles protocol.

8. A computer device, characterized in that: include: at least one processor; And, a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the offline operation method of the vehicle terminal as described in any one of claims 1 to 6.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the offline operation method of the vehicle-mounted terminal according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Offline payment code generation method and device, computer equipment and storage medium

    CN114782040A