Engineering vehicle control method, electronic equipment and computer readable storage medium
By using the comparison mechanism of random codes and encryption algorithms in the control system of engineering vehicles, the problem of how to effectively control the vehicle when the on-board terminal is disassembled or blocked is solved, and higher vehicle management convenience and safety are achieved.
Patent Information
- Application Number
- CN202411754577.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-02
- Publication Date
- 2025-03-28
AI Technical Summary
How to effectively and safely control engineering vehicles, especially if the on-board terminal is disassembled or shielded.
The controller periodically sends random codes to the on-board terminal, and uses a preset encryption algorithm to generate a response code, compare the first response code and the second response code. If the same is true, perform preset security protection operations to ensure the safety of the vehicle and the convenience of management.
It realizes that the vehicle can be effectively controlled even when the vehicle terminal is disassembled or shielded, which improves the convenience and effectiveness of vehicle management and improves the safety of the vehicle.
Smart Images

Figure CN119728093A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of engineering vehicles, and in particular to a control method, electronic equipment and computer-readable storage medium for an engineering vehicle. Background Art
[0002] With the rapid progress of mining machinery and equipment, the electrification and intelligent functions of wide-body dump trucks are constantly increasing. This development is not only reflected in the strict control of the generator by the vehicle controller, but also in many electrical equipment, the upgrading of the working characteristics of wide-body dump trucks, the digital transformation of diesel electronic injection engine functions, and the upgrading of the relay control of the power distribution system. However, how to effectively and safely control engineering vehicles has been under research. Summary of the invention
[0003] The purpose of this application is to provide a control method for an engineering vehicle, an electronic device and a computer-readable storage medium, which improve the convenience and effectiveness of vehicle management and enhance vehicle safety.
[0004] To achieve the above objectives:
[0005] In a first aspect, an embodiment of the present application provides a control method for an engineering vehicle, which is applied to a controller in an engineering vehicle, comprising:
[0006] Generate a random code according to a preset period and send the random code to the vehicle terminal;
[0007] Receiving a first response code returned by the vehicle-mounted terminal based on the random code; the first response code is generated by the vehicle-mounted terminal encrypting the random code and its own identification code based on a preset encryption algorithm;
[0008] When the first reply code is different from the second reply code, a first preset safety protection operation is performed on the engineering vehicle; the second reply code is generated by the controller encrypting the random code and the locally stored target identification code based on the preset encryption algorithm.
[0009] Optionally, the encryption process of the preset encryption algorithm includes:
[0010] Calculate the first value A according to the formula A=ID_Byte1+256*ID_Byte2+65536*ID_Byte3;
[0011] The second value B is calculated according to the formula B=Random_Byte2+256*Random_Byte3+65536*Random_Byte1;
[0012] Calculate the answer code Password according to the formula Password=A+B+65536*ID_Byte4;
[0013] Among them, ID_Byte1, ID_Byte2, ID_Byte3 and ID_Byte4 are respectively the first byte data, second byte data, third byte data and fourth byte data determined in the identification code according to the low byte first and the high byte last, and are expressed in decimal; Random_Byte1, Random_Byte2 and Random_Byte3 are respectively the first byte data, second byte data, third byte data determined in the random code according to the low byte first and the high byte last, and are expressed in decimal.
[0014] Optionally, the method further comprises:
[0015] In response to not receiving a heartbeat message sent by the vehicle-mounted terminal within a preset time period, performing a second preset safety protection operation on the engineering vehicle.
[0016] Optionally, the first preset safety protection operation includes: controlling the instrument display of the engineering vehicle to be black, and displaying a prompt message of vehicle passive locking;
[0017] The second preset safety protection operation includes: controlling the instrument display of the engineering vehicle to be black, and displaying a prompt message that the vehicle-mounted terminal is lost.
[0018] Optionally, the method further comprises:
[0019] Receiving a vehicle locking instruction sent by the cloud platform through the vehicle terminal;
[0020] A vehicle control operation corresponding to the type of the vehicle lock instruction is performed.
[0021] Optionally, the executing a vehicle control operation corresponding to the type of the vehicle locking instruction includes:
[0022] If the type of the vehicle locking instruction is the first preset type, stop outputting the high level to make the hydraulic lift electronically locked;
[0023] If the type of the vehicle lock instruction is the second preset type, a prohibit start instruction is sent to the power device of the engineering vehicle.
[0024] In a second aspect, an embodiment of the present application provides a control method for an engineering vehicle, which is applied to an on-board terminal in an engineering vehicle, comprising:
[0025] The receiving controller generates and sends a random code according to a preset period;
[0026] Generate a first response code based on a preset encryption algorithm according to the identification code of the vehicle terminal and the random code;
[0027] The first reply code is sent to the controller so that the controller performs a first preset safety protection operation on the engineering vehicle when the first reply code is inconsistent with the second reply code; the second reply code is generated by the controller by encrypting the random code and the locally stored target identification code based on the preset encryption algorithm.
[0028] Optionally, the method further comprises:
[0029] Receive the car lock command issued by the cloud platform;
[0030] The vehicle locking instruction is sent to the controller so that the controller performs a vehicle control operation corresponding to the type of the vehicle locking instruction.
[0031] Optionally, the encryption process of the preset encryption algorithm includes:
[0032] Calculate the first value A according to the formula A=ID_Byte1+256*ID_Byte2+65536*ID_Byte3;
[0033] The second value B is calculated according to the formula B=Random_Byte2+256*Random_Byte3+65536*Random_Byte1;
[0034] Calculate the answer code Password according to the formula Password=A+B+65536*ID_Byte4;
[0035] Among them, ID_Byte1, ID_Byte2, ID_Byte3 and ID_Byte4 are respectively the first byte data, second byte data, third byte data and fourth byte data determined in the identification code according to the low byte first and the high byte last, and are expressed in decimal; Random_Byte1, Random_Byte2 and Random_Byte3 are respectively the first byte data, second byte data, third byte data determined in the random code according to the low byte first and the high byte last, and are expressed in decimal.
[0036] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory storing a computer program, and when the processor runs the computer program, the control method of the above-mentioned engineering vehicle is implemented.
[0037] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the control method of the engineering vehicle described above is implemented.
[0038] The control method, electronic device and computer-readable storage medium of an engineering vehicle provided in the embodiment of the present application are applied to the controller in the engineering vehicle, including: generating a random code according to a preset period, and sending the random code to the vehicle-mounted terminal; receiving a first response code returned by the vehicle-mounted terminal based on the random code; the first response code is generated by encrypting the random code and its own identification code by the vehicle-mounted terminal based on a preset encryption algorithm; when the first response code is different from the second response code, a first preset safety protection operation is performed on the engineering vehicle; the second response code is generated by encrypting the random code and the locally stored target identification code by the controller based on a preset encryption algorithm. In this way, the controller periodically sends the random code to the vehicle-mounted terminal, and compares the response codes encrypted by the vehicle-mounted terminal and the controller respectively, so that when the first response code is different from the second response code, the first preset safety protection operation is performed on the engineering vehicle, which can achieve the purpose of effectively controlling the vehicle even when the vehicle-mounted terminal is disassembled or shielded, thereby improving the convenience and effectiveness of vehicle management and improving vehicle safety. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A flow chart of a control method for an engineering vehicle provided in an embodiment of the present invention Figure 1 ;
[0040] Figure 2 A flow chart of a control method for an engineering vehicle provided in an embodiment of the present invention Figure 2 ;
[0041] Figure 3 This is a schematic diagram of encryption calculation in an embodiment of the present invention;
[0042] Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0043] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0044] It should be noted that, in this article, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element. In addition, components, features, and elements with the same name in different embodiments of the present application may have the same meaning or different meanings, and their specific meanings need to be determined by their explanation in the specific embodiment or further combined with the context of the specific embodiment.
[0045] It should be understood that, although the terms first, second, third, etc. may be used to describe various information in this article, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this article, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein can be interpreted as "at the time of..." or "when..." or "in response to determination". Furthermore, as used in this article, the singular forms "one", "one" and "the" are intended to also include plural forms, unless there is an opposite indication in the context. It should be further understood that the terms "comprising", "including" indicate that there are described features, steps, operations, elements, components, projects, kinds, and / or groups, but do not exclude the existence, occurrence or addition of one or more other features, steps, operations, elements, components, projects, kinds, and / or groups. The terms "or" and "and / or" used herein are interpreted as inclusive, or mean any one or any combination. Thus, “A, B, or C” or “A, B and / or C” means “any of the following: A; B; C; A and B; A and C; B and C; A, B, and C.” An exception to this definition will occur only when a combination of elements, functions, steps, or operations are inherently mutually exclusive in some manner.
[0046] It should be understood that, although the various steps in the flowchart in the embodiment of the present application are displayed in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and it can be performed in other orders. Moreover, at least a portion of the steps in the figure may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and their execution order is not necessarily performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0047] It should be noted that, in this article, step codes such as S101, S102, etc. are used for the purpose of expressing the corresponding content more clearly and concisely, and do not constitute a substantial limitation on the sequence. When implementing the step, those skilled in the art may execute S102 first and then S101, etc., but these should all be within the scope of protection of this application.
[0048] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0049] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present application and have no specific meaning. Therefore, "module", "component" or "unit" can be used in a mixed manner.
[0050] See also Figure 1 , is a control method for an engineering vehicle provided in an embodiment of the present application. The control method for an engineering vehicle can be executed by a control device for an engineering vehicle provided in an embodiment of the present application. The control device for an engineering vehicle can be implemented in software and / or hardware, such as an electronic device such as a controller. In this embodiment, the execution subject of the control method for an engineering vehicle is a controller, which can be a whole vehicle controller. The control method for an engineering vehicle provided in this embodiment includes:
[0051] Step S101: Generate a random code according to a preset period and send the random code to the vehicle terminal.
[0052] Among them, engineering vehicles are engineering vehicles that need to be controlled, and can be set according to actual needs, such as mine cars and other vehicles. The preset period can be set according to actual needs, such as 1 minute, 3 minutes, etc. The length of the random code should include multiple bytes, such as at least three bytes, etc. The generation method of the random code can refer to the prior art and will not be repeated here. The controller can send the random code to the vehicle-mounted terminal by broadcasting the random code to the CAN field bus. Here, the vehicle-mounted terminal may have positioning function and communication function.
[0053] Step S102: receiving a first response code returned by the vehicle-mounted terminal based on the random code; the first response code is generated by the vehicle-mounted terminal by encrypting the random code and its own identification code based on a preset encryption algorithm.
[0054] After sending the random code to the vehicle terminal, the controller can receive the first response code returned by the vehicle terminal based on the random code through the CAN field bus. The length of the first response code may include multiple bytes, such as four bytes.
[0055] Step S103: When the first reply code and the second reply code are different, a first preset safety protection operation is performed on the engineering vehicle; the second reply code is generated by the controller by encrypting the random code and the locally stored target identification code based on a preset encryption algorithm.
[0056] Among them, the target identification code stored locally in the controller is the identification code of the vehicle-mounted terminal pre-bound to the controller, and the vehicle-mounted terminal pre-bound to the controller may be safe or authorized by default. It can be understood that when it is necessary to manage the safety of the engineering vehicle, the vehicle-mounted terminal of the engineering vehicle can be pre-bound to the controller, so that the identification code of the vehicle-mounted terminal pre-bound to the controller can be stored locally in the controller as the target identification code. Here, when the vehicle-mounted terminal of the engineering vehicle is replaced, such as being maliciously disassembled or shielded, the target identification code stored locally in the controller is still the identification code of the pre-bound vehicle-mounted terminal, and when the controller is replaced, the target identification code stored locally in the controller may be defaulted to not existing, etc.
[0057] Among them, the controller will encrypt the random code and the locally stored target identification code based on the preset encryption algorithm to generate a second response code, and detect whether the first response code returned by the vehicle terminal is the same as the second response code. If the first response code is the same as the second response code, it is considered that the vehicle terminal is normal or the instruction sent by the vehicle terminal is valid, so as to proceed to the next step; if the first response code is different from the second response code, it means that the verification has failed, and it can be considered that the vehicle terminal has been replaced or the controller has been replaced, etc., and the first preset safety protection operation is performed on the engineering vehicle. The first preset safety protection operation can be set according to actual needs. In one embodiment, the first preset safety protection operation includes: controlling the instrument display of the engineering vehicle to be black, and displaying a prompt message of the vehicle passive lock.
[0058] Here, the controller can periodically perform a handshake check with the vehicle terminal. A set of 4-byte data (i.e., a random code) can be randomly generated inside the controller and a response code can be obtained through the encryption calculation module. After the vehicle terminal receives the random code sent by the controller, it obtains the response code with the same encryption calculation module and sends it to the controller. If the controller obtains the same two response codes after comparison, it considers that the vehicle terminal is normal or the instruction is valid, and then proceeds to the next step, and this mode is continuously cycled; if the two response codes are different, it means that the verification has failed, then the display will immediately go black and prompt the vehicle to passively lock the machine.
[0059] In one embodiment, the encryption process of the preset encryption algorithm includes:
[0060] Calculate the first value A according to the formula A=ID_Byte1+256*ID_Byte2+65536*ID_Byte3;
[0061] The second value B is calculated according to the formula B=Random_Byte2+256*Random_Byte3+65536*Random_Byte1;
[0062] Calculate the answer code Password according to the formula Password=A+B+65536*ID_Byte4;
[0063] Among them, ID_Byte1, ID_Byte2, ID_Byte3 and ID_Byte4 are respectively the first byte data, second byte data, third byte data and fourth byte data determined in the identification code according to the low byte first and the high byte last, and are expressed in decimal; Random_Byte1, Random_Byte2 and Random_Byte3 are respectively the first byte data, second byte data, third byte data determined in the random code according to the low byte first and the high byte last, and are expressed in decimal.
[0064] Specifically, for the first byte data, second byte data, and third byte data determined in the identification code according to the low byte first and the high byte last, first convert them into decimal data, then multiply them by the corresponding values and sum them to obtain the first value A; for the first byte data, second byte data, and third byte data determined in the random code according to the low byte first and the high byte last, first convert them into decimal data, then multiply them by the corresponding values and sum them to obtain the second value B; finally, the first value A, the second value B, and the decimal data represented by the fourth byte data of the highest byte in the identification code are summed with the corresponding values to obtain the response code Password.
[0065] The answer code Password obtained in the above manner is a 4-byte hexadecimal data. The above answer code can be split into 4 data of one byte in length, namely Word_Byte1, Word_Byte2, Word_Byte3 and Word_Byte4. The specific calculation formula is as follows:
[0066] Word_Byte1=Password MOD 256
[0067] Word_Byte2=((Password MOD 65536) / 256)
[0068] Word_Byte3=((Password / 65536)MOD 256)
[0069] Word_Byte4=(Password / 1677721) 。
[0070] In this way, the above-mentioned dynamic interactive encryption algorithm can make up for the collision shortcomings of the existing encryption algorithm and the large amount of computation required, and the algorithm has a high degree of irreversibility, which further improves vehicle safety.
[0071] In summary, in the control method for engineering vehicles provided in the above embodiments, the controller periodically sends a random code to the vehicle-mounted terminal, and compares the response codes encrypted by the vehicle-mounted terminal and the controller respectively, so that when the first response code is different from the second response code, the first preset safety protection operation is performed on the engineering vehicle, which can achieve the purpose of effectively controlling the vehicle even when the vehicle-mounted terminal is disassembled or shielded, and can effectively prevent the vehicle from being controlled by unauthorized personnel, thereby improving the convenience and effectiveness of vehicle management and enhancing vehicle safety.
[0072] In one embodiment, the method further comprises:
[0073] In response to not receiving a heartbeat message sent by the vehicle-mounted terminal within a preset time period, performing a second preset safety protection operation on the engineering vehicle.
[0074] Among them, the vehicle terminal needs to send a heartbeat message to the controller regularly to facilitate the controller to detect the status of the vehicle terminal based on the heartbeat message. If the heartbeat message sent by the vehicle terminal is not received within the preset time, it means that the vehicle terminal may be maliciously dismantled, replaced or shielded, etc. At this time, the controller can perform a second preset safety protection operation on the engineering vehicle. The second preset safety protection operation can be set according to the actual situation. In one embodiment, the second preset safety protection operation includes: controlling the instrument display of the engineering vehicle to be black, and displaying a prompt message that the vehicle terminal is lost. Among them, the preset time can be set according to the actual situation, such as 3 minutes, 5 minutes, etc. In addition, if the instrument controller corresponding to the instrument display does not detect the signal of the controller within a certain time, it can be considered that the controller is lost, and a prompt message that the controller is lost can be displayed. In this way, by performing the second preset safety protection operation on the engineering vehicle when the heartbeat message sent by the vehicle terminal is not received within the preset time, the convenience and effectiveness of vehicle management are further improved, and the vehicle safety is further improved.
[0075] In one embodiment, the method further comprises:
[0076] Receive the vehicle lock command sent by the cloud platform through the vehicle terminal;
[0077] A vehicle control operation corresponding to the type of the vehicle lock instruction is performed.
[0078] Among them, when an engineering vehicle encounters a situation that affects safety, the user can send a lock command to the vehicle terminal through the cloud platform, or the cloud platform automatically sends a lock command to the vehicle terminal, and after receiving the lock command, the vehicle terminal sends the lock command to the controller. Correspondingly, after receiving the lock command sent by the cloud platform through the vehicle terminal, the controller performs a vehicle control operation corresponding to the type of lock command. In this way, by responding to the received lock command in a timely manner, the operability of remote control of the vehicle is ensured, the problem of difficulty in remotely locking the vehicle is solved, the vehicle management work is facilitated, and the convenience and effectiveness of vehicle management are further improved.
[0079] In one embodiment, executing a vehicle control operation corresponding to the type of the vehicle locking instruction includes:
[0080] If the type of the vehicle locking instruction is the first preset type, the high level output is stopped to make the hydraulic lift electronically locked;
[0081] If the type of the vehicle lock instruction is the second preset type, a prohibit start instruction is sent to the power device of the engineering vehicle.
[0082] Among them, the type of the vehicle lock instruction can be divided according to the content of the vehicle lock instruction. For example, when the vehicle lock instruction needs to control components other than the power unit, such as the cargo box, the type of the vehicle lock instruction can be determined as the first preset type; and when the vehicle lock instruction requires the power unit, such as the engine, to be controlled, the type of the vehicle lock instruction can be determined as the second preset type. When the type of the vehicle lock instruction is the first preset type, the controller stops outputting a high level to lock the hydraulic lifting electronic control, thereby controlling the cargo box of the engineering vehicle to be unable to lift. When the type of the vehicle lock instruction is the second preset type, the controller sends a prohibition start instruction to the power unit of the engineering vehicle, thereby controlling the power unit of the engineering vehicle to be unable to start. In this way, effective control of engineering vehicles based on different needs can be achieved, further improving the convenience and effectiveness of vehicle management, and further improving vehicle safety.
[0083] For example, taking the vehicle-mounted terminal as a GPS terminal, the electrical control logic of the cargo box lifting of the engineering vehicle is as follows: the output end of the power take-off rocker switch is connected to the input end of the controller, the output end of the controller is used as a high-level output, and then the power take-off solenoid valve is powered to keep the gas circuit open. In order to remotely control the cargo box lifting of the engineering vehicle and protect the vehicle, when the engineering vehicle encounters a safety situation or requires control, the cloud platform can send a first-level lock vehicle instruction to the GPS terminal. After receiving the first-level lock vehicle instruction, the GPS terminal immediately sends a first-level lock vehicle instruction to the controller. After receiving the first-level lock vehicle instruction, the controller's output end stops outputting a high level. At this time, the power take-off solenoid valve is powered off, the gas circuit is disconnected, and the cargo box cannot be lifted.
[0084] For example, taking the vehicle-mounted terminal as a GPS terminal and the power unit as an engine, the electrical control logic for starting an engineering vehicle is as follows: the controller sends a start message to the engine, and after the engine receives the start message command, the engine ignites and starts. In order to achieve remote control and protect the vehicle, when the engineering vehicle encounters a safety situation or requires control, a second-level lock vehicle command can be sent to the GPS terminal through the cloud platform. After the GPS terminal receives the second-level lock vehicle command, it immediately sends the command to the controller. After receiving the second-level lock vehicle command, the controller sends a prohibition start command to the engine to prevent the engine from starting.
[0085] Based on the same inventive concept as the above-mentioned embodiment, an embodiment of the present invention provides a control method for an engineering vehicle. The control method for an engineering vehicle can be executed by a control device for an engineering vehicle provided in an embodiment of the present application. The control device for the engineering vehicle can be implemented in software and / or hardware, such as an electronic device such as a vehicle-mounted terminal. In this embodiment, the execution subject of the control method for the engineering vehicle is an on-board terminal as an example. The on-board terminal can have a positioning function and a communication function. Figure 2 The control method of the engineering vehicle provided in this embodiment includes:
[0086] Step S201: receiving a random code generated and sent by a controller according to a preset period.
[0087] The controller periodically sends the generated random code on the CAN field bus to request the vehicle terminal such as the GPS terminal to perform password calculation, and the vehicle terminal receives the random code generated and sent by the controller according to the preset period.
[0088] Step S202: Generate a first response code based on a preset encryption algorithm according to the identification code and random code of the vehicle-mounted terminal.
[0089] The encryption process of the preset encryption algorithm includes:
[0090] Calculate the first value A according to the formula A=ID_Byte1+256*ID_Byte2+65536*ID_Byte3;
[0091] The second value B is calculated according to the formula B=Random_Byte2+256*Random_Byte3+65536*Random_Byte1;
[0092] Calculate the answer code Password according to the formula Password=A+B+65536*ID_Byte4;
[0093] Among them, ID_Byte1, ID_Byte2, ID_Byte3 and ID_Byte4 are respectively the first byte data, second byte data, third byte data and fourth byte data determined in the identification code according to the low byte first and the high byte last, and are expressed in decimal; Random_Byte1, Random_Byte2 and Random_Byte3 are respectively the first byte data, second byte data, third byte data determined in the random code according to the low byte first and the high byte last, and are expressed in decimal.
[0094] The answer code Password obtained in the above manner is a 4-byte hexadecimal data. The above answer code can be split into 4 data of one byte in length, namely Word_Byte1, Word_Byte2, Word_Byte3 and Word_Byte4. The specific calculation formula is as follows:
[0095] Word_Byte1=Password MOD 256
[0096] Word_Byte2=((Password MOD 65536) / 256)
[0097] Word_Byte3=((Password / 65536)MOD 256)
[0098] Word_Byte4=(Password / 1677721) 。
[0099] See also Figure 3 Taking ID_Byte as GPS_IDByte, Random_Byte as random code Byte, and Word_Byte as response code Byte as an example, after receiving the random code sent by the controller on the CAN field bus, the on-board terminal can calculate the corresponding response code data through the encryption calculation module and broadcast it to the CAN field bus.
[0100] Step S203: Send a first response code to the controller so that the controller performs a first preset security protection operation when the first response code is inconsistent with the second response code; the second response code is generated by the controller by encrypting the random code and the locally stored target identification code based on a preset encryption algorithm.
[0101] Here, the vehicle-mounted terminal may broadcast the first response code to the CAN field bus to send the first response code to the controller.
[0102] In summary, in the control method for engineering vehicles provided in the above embodiments, the on-board terminal encrypts the random code sent by the controller, and sends the generated first response code to the controller, so that when the first response code is different from the second response code generated by the controller itself, the controller performs the first preset safety protection operation on the engineering vehicle. This can achieve the purpose of effectively controlling the vehicle even when the on-board terminal is disassembled or shielded, thereby improving the convenience and effectiveness of vehicle management and enhancing vehicle safety.
[0103] In one embodiment, the method further comprises:
[0104] Receive the car lock command issued by the cloud platform;
[0105] The vehicle locking instruction is sent to the controller so that the controller performs a vehicle control operation corresponding to the type of the vehicle locking instruction.
[0106] Specifically, after receiving the vehicle locking command issued by the cloud platform, the vehicle terminal sends the vehicle locking command to the controller, so that the controller performs a vehicle control operation corresponding to the type of vehicle locking command, thereby enabling the controller to respond to the received vehicle locking command in a timely manner, further improving the convenience and effectiveness of vehicle management.
[0107] Based on the same inventive concept as the above embodiments, an embodiment of the present invention provides an electronic device, such as Figure 4 As shown, the electronic device includes: a processor 310 and a memory 311 storing a computer program; wherein, Figure 4 The processor 310 shown in the figure is not used to indicate that the number of the processor 310 is one, but is only used to indicate the positional relationship of the processor 310 relative to other devices. In actual applications, the number of the processor 310 may be one or more; similarly, Figure 4 The memory 311 shown in the figure has the same meaning, that is, it is only used to refer to the position relationship of the memory 311 relative to other devices. In practical applications, the number of memories 311 can be one or more. When the processor 310 runs the computer program, the control method of the engineering vehicle described above is implemented.
[0108] The electronic device may also include: at least one network interface 312. The various components in the electronic device are coupled together via a bus system 313. It is understood that the bus system 313 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 313 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, the bus system 313 is not used in the following examples. Figure 4 Various buses are labeled as bus system 313.
[0109] The memory 311 may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. The nonvolatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM); the magnetic surface memory may be a disk memory or a tape memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The memory 311 described in the embodiments of the present invention is intended to include but is not limited to these and any other suitable types of memories.
[0110] Based on the same inventive concept as the above-mentioned embodiment, this embodiment further provides a computer storage medium, in which a computer program is stored. The computer storage medium may be a ferromagnetic random access memory (FRAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); it may also be various devices including one or any combination of the above-mentioned memories, such as a mobile phone, a computer, a tablet device, a personal digital assistant, etc. When the computer program stored in the computer storage medium is executed by the processor, the control method of the engineering vehicle described above is implemented. For the specific steps implemented when the computer program is executed by the processor, please refer to Figure 1 or Figure 2 The description of the illustrated embodiment will not be repeated here.
[0111] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0112] In this document, the terms "comprises," "comprising," or any other variations thereof, are intended to cover a non-exclusive inclusion of elements other than those listed and may also include additional elements not expressly listed.
[0113] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A control method for an engineering vehicle, applied to a controller in an engineering vehicle, characterized in that: include: Generate a random code according to a preset period and send the random code to the vehicle terminal; Receiving a first response code returned by the vehicle-mounted terminal based on the random code; The first response code is generated by the vehicle-mounted terminal by encrypting the random code and its own identification code based on a preset encryption algorithm; When the first reply code is different from the second reply code, performing a first preset safety protection operation on the engineering vehicle; The second response code is generated by the controller encrypting the random code and the locally stored target identification code based on the preset encryption algorithm.
2. The method according to claim 1, characterized in that The encryption process of the preset encryption algorithm includes: Calculate the first value A according to the formula A=ID_Byte1+256*ID_Byte2+65536*ID_Byte3; The second value B is calculated according to the formula B=Random_Byte2+256*Random_Byte3+65536*Random_Byte1; Calculate the answer code Password according to the formula Password=A+B+65536*ID_Byte4; Among them, ID_Byte1, ID_Byte2, ID_Byte3 and ID_Byte4 are respectively the first byte data, second byte data, third byte data and fourth byte data determined in the identification code according to the low byte first and the high byte last, and are expressed in decimal; Random_Byte1, Random_Byte2 and Random_Byte3 are respectively the first byte data, second byte data, third byte data determined in the random code according to the low byte first and the high byte last, and are expressed in decimal.
3. The method according to claim 1, characterized in that The method further comprises: In response to not receiving a heartbeat message sent by the vehicle-mounted terminal within a preset time period, performing a second preset safety protection operation on the engineering vehicle.
4. The method according to claim 3, characterized in that The first preset safety protection operation includes: controlling the instrument display of the engineering vehicle to be black and displaying a prompt message of vehicle passive locking; The second preset safety protection operation includes: controlling the instrument display of the engineering vehicle to be black, and displaying a prompt message that the vehicle-mounted terminal is lost.
5. The method according to claim 1, characterized in that The method further comprises: Receiving a vehicle locking instruction sent by the cloud platform through the vehicle terminal; A vehicle control operation corresponding to the type of the vehicle lock instruction is performed.
6. The method according to claim 4, characterized in that The executing of the vehicle control operation corresponding to the type of the vehicle locking instruction includes: If the type of the vehicle locking instruction is the first preset type, stop outputting the high level to make the hydraulic lift electronically locked; If the type of the vehicle lock instruction is the second preset type, a prohibit start instruction is sent to the power device of the engineering vehicle.
7. A control method for an engineering vehicle, applied to an on-board terminal in an engineering vehicle, characterized in that: include: The receiving controller generates and sends a random code according to a preset period; Generate a first response code based on a preset encryption algorithm according to the identification code of the vehicle terminal and the random code; sending the first reply code to the controller, so that the controller performs a first preset safety protection operation on the engineering vehicle when the first reply code is inconsistent with the second reply code; The second response code is generated by the controller encrypting the random code and the locally stored target identification code based on the preset encryption algorithm.
8. The method according to claim 7, characterized in that The method further comprises: Receive the car lock command issued by the cloud platform; The vehicle locking instruction is sent to the controller so that the controller performs a vehicle control operation corresponding to the type of the vehicle locking instruction.
9. An electronic device, characterized in that: include: A processor and a memory storing a computer program, when the processor runs the computer program, implements the control method of the engineering vehicle according to any one of claims 1 to 6 or 7 to 8.
10. A computer-readable storage medium, characterized in that: A computer program is stored, and when the computer program is executed by a processor, the control method of the engineering vehicle according to any one of claims 1 to 6 or 7 to 8 is implemented.