CN114268412B - Vehicle communication method, device, storage medium and equipment - Google Patents

Vehicle communication method, device, storage medium and equipment Download PDF

Info

Publication number
CN114268412B
CN114268412B CN202111370174.3A CN202111370174A CN114268412B CN 114268412 B CN114268412 B CN 114268412B CN 202111370174 A CN202111370174 A CN 202111370174A CN 114268412 B CN114268412 B CN 114268412B
Authority
CN
China
Prior art keywords
message
parameters
generate
processing
ordering
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111370174.3A
Other languages
Chinese (zh)
Other versions
CN114268412A (en
Inventor
贺仕杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lantu Automobile Technology Co Ltd
Original Assignee
Lantu Automobile Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lantu Automobile Technology Co Ltd filed Critical Lantu Automobile Technology Co Ltd
Priority to CN202111370174.3A priority Critical patent/CN114268412B/en
Publication of CN114268412A publication Critical patent/CN114268412A/en
Application granted granted Critical
Publication of CN114268412B publication Critical patent/CN114268412B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Small-Scale Networks (AREA)

Abstract

The application discloses a vehicle communication method, a device, a storage medium and equipment, relates to the field of vehicle communication, and mainly aims to solve the problem that messages can only be communicated in a clear text mode during vehicle communication and the safety of information transmission is low. The method comprises the following steps: processing an original message based on a message counter to generate a first message; processing the first message based on CRC to generate a second message; and carrying out-of-order processing on the second message process according to preset parameters, and generating a target message so as to encrypt the original message, wherein the preset parameters are communication parameters which are pre-configured in each controller of the vehicle. The application is used for the vehicle communication process.

Description

Vehicle communication method, device, storage medium and equipment
Technical Field
The present application relates to the field of vehicle communications, and in particular, to a vehicle communication method, device, storage medium, and apparatus.
Background
With the high-speed development of electronic information technology, the vehicle-mounted communication system applies an advanced wireless communication technology on vehicles on the basis of the development of intelligent traffic systems and sensor network technologies, so that a means of highly informationizing and intelligentizing traffic is realized, and wireless signals can be transmitted along with the movement of vehicles. The vehicle-mounted communication system organically combines traffic participants, vehicles and environments thereof through vehicle-to-vehicle and road communication, thereby improving the safety and efficiency of the traffic system. In the vehicle-mounted communication process, CAN bus communication and LIN bus communication are most widely used, and because the maximum length of CAN and LIN messages is relatively short, the message transmission CAN only be plaintext communication, which causes great safety problem of vehicle transmission information.
Disclosure of Invention
In view of the above problems, the present application provides a vehicle communication method, device, storage medium and apparatus, and aims to solve the problem that the message can only be in clear text communication during vehicle communication, and the security of information transmission is low.
To solve the above technical problem, in a first aspect, the present application provides a vehicle communication method, including:
processing an original message based on a message counter to generate a first message;
processing the first message based on CRC to generate a second message;
and carrying out disorder processing on the second message process according to preset parameters to generate a target message so as to encrypt the original message, wherein the preset parameters are communication parameters which are pre-configured in each controller of the vehicle.
Optionally, the processing the original message based on the message counter to generate a first message includes:
the first message is generated based on the message Wen Jishu by adding a count field to the original message.
Optionally, the method further includes processing the first message based on CRC check to generate a second message:
and adding a CRC check code field into the first message based on CRC check to generate a second message.
Optionally, the predetermined parameter includes an ordering parameter, and the generating the target packet by performing out-of-order processing on the second packet according to the predetermined parameter includes:
and re-ordering the second message according to the ordering parameters to generate a target message.
Optionally, the predetermined parameters further include an encrypted segment length and an encrypted segment start bit, and the performing out-of-order processing on the second message according to the predetermined parameters to generate a target message includes:
determining a specific field based on the encrypted segment length and the encrypted segment start bit;
and reordering the specific fields in the second message according to the ordering parameters to generate a target message.
Optionally, the predetermined parameter further includes a preset ordering cycle number, and the generating the target packet includes:
and re-ordering the specific fields of the second message based on the preset ordering cycle times and the ordering parameters to generate a target message.
Optionally, the method further comprises:
receiving the target message;
and carrying out reverse processing on the target message based on the preset parameters so as to verify the message.
In a second aspect, an embodiment of the present application further provides a vehicle communication device, including:
the first generation unit is used for processing the original message based on the message counter to generate a first message;
the second generating unit is used for processing the first message based on CRC check to generate a second message;
and the processing unit is used for carrying out disorder processing on the second message process according to preset parameters to generate a target message so as to encrypt the original message, wherein the preset parameters are communication parameters which are preset in each controller of the vehicle.
In order to achieve the above object, according to a third aspect of the present application, there is provided a storage medium including a stored program, wherein the above-described vehicle communication method is implemented when the program is executed by a processor.
In order to achieve the above object, according to a fourth aspect of the present application, there is provided an electronic device including at least one processor, and at least one memory connected to the processor; the processor is used for calling the program instructions in the memory and executing the vehicle communication method.
By means of the technical scheme, the vehicle communication method, the device, the storage medium and the equipment provided by the application have the advantages that in the existing vehicle communication process, messages can only be communicated in the clear text, the problem of low information transmission safety exists, and the original messages are processed based on the message counter to generate the first messages; processing the first message based on CRC to generate a second message; and carrying out disorder processing on the second message process according to preset parameters to generate a target message so as to encrypt the original message, wherein the preset parameters are communication parameters which are pre-configured in each controller of the vehicle. In the above scheme, the first message is generated through the message counter, so that the frame loss condition can be detected in the message transmission process, the second message Wen Zhunque generated by the first message is checked whether errors occur in the message transmission process through CRC check, and finally, the second message is encrypted through disorder processing, so that the safety of the message is ensured, the secret leakage risk in the vehicle communication process is reduced, and the safety coefficient of the vehicle communication is greatly improved.
The foregoing description is only an overview of the present application, and is intended to be implemented in accordance with the teachings of the present application in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present application more readily apparent.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 shows a flow chart of a vehicle communication method provided by an embodiment of the application;
FIG. 2 shows a block diagram of a vehicle communication device provided by an embodiment of the present application;
fig. 3 shows a block diagram of a communication device for a vehicle according to an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the application to those skilled in the art.
In order to solve the problem that a message can only be subjected to clear text communication during vehicle communication and has low information transmission safety, an embodiment of the application provides a vehicle communication method, as shown in fig. 1, which comprises the following steps:
101. and processing the original message based on the message counter to generate a first message.
The above-mentioned message counter is located in the CAN message data segment, and 1 is added to each message counter sent to determine whether frame loss occurs in the message transmission process, and the message is accumulated from 0 to 15, and then the cycle is continuously performed, where if the situation that the counter is discontinuous or the head and tail values do not correspond to each other occurs, the receiver considers that the frame is lost, and at the same time, the message is lost or overtime fault code is reported.
Illustratively, the first message, the R-PDU, is generated based on the message counter. If the message counter is received continuously, continuing to execute operation to generate a first message; if interruption or discontinuity occurs, a message is returned to be lost or an error code is returned, so that the replay of the message is prevented, the message sending accuracy is improved, the message is prevented from being attacked by replay, and the message security is improved.
102. And processing the first message based on CRC to generate a second message.
The above CRC check (Cyclic Redundancy Check ) is located in a packet data segment, and is used for determining whether the transmission of the CAN packet is in error, where the sender calculates the CRC check code according to a specific check algorithm and places the CRC check code in the CAN packet and sends the CRC check code to the CAN bus together with other signals in the packet, and the receiver calculates the CRC check code according to the received CAN packet (except for the CRC check bit) by using the same algorithm, compares the CRC check code with the check code in the received CAN packet, and if the two are consistent, it indicates that no error occurs in the transmission process of the packet, and if the two are inconsistent, it considers that the transmission of the packet is in error, the packet is not trusted, and meanwhile, reports the CRC error fault code. And processing the first message generated based on the message count based on the CRC check, namely the cyclic redundancy check, and adding a character string generated through the CRC check, so as to generate a second message, namely the C-PDU.
103. And carrying out disorder processing on the second message process according to preset parameters to generate a target message so as to encrypt the original message, wherein the preset parameters are communication parameters which are pre-configured in each controller of the vehicle.
The predetermined parameter is a communication parameter configured in advance in each controller of the vehicle, and the target message is encrypted based on the second message according to the communication parameter configured in advance in each controller of the vehicle. By setting preset parameters, the signal can be effectively prevented from being tampered, and the message security is improved.
By means of the technical scheme, in the vehicle communication method, when the existing vehicle is in communication, the message can only be in clear text communication, and the problem of low information transmission safety exists; processing the first message based on CRC to generate a second message; and carrying out disorder processing on the second message process according to preset parameters to generate a target message so as to encrypt the original message, wherein the preset parameters are communication parameters which are pre-configured in each controller of the vehicle. In the above scheme, the first message is generated through the message counter, so that the frame loss condition can be detected in the message transmission process, the second message Wen Zhunque generated by the first message is checked whether errors occur in the message transmission process through CRC check, and finally, the second message is encrypted through disorder processing, so that the safety of the message is ensured, the secret leakage risk in the vehicle communication process is reduced, and the safety coefficient of the vehicle communication is greatly improved.
In one embodiment, the processing the original message based on the message counter to generate a first message includes:
the first message is generated based on the message Wen Jishu by adding a count field to the original message.
The sender sends a message as an original message, generates a segment of character string based on the message counter, performs first processing on the original message, and increases the character string generated by the message counter for the original message, thereby generating the first message for preventing replay of the message.
In one embodiment, the method further includes processing the first packet based on a CRC check to generate a second packet:
and adding a CRC check code field into the first message based on CRC check to generate a second message.
The first message is subjected to CRC check, a segment of character string is generated based on the CRC check, the first message is processed for the second time, and the character string generated by the CRC check is added to the first message, so that the second message is generated, and the second message is used for ensuring that the message is not tampered.
In one embodiment, the predetermined parameter includes an ordering parameter, and the generating the target packet includes:
and re-ordering the second message according to the ordering parameters to generate a target message.
TABLE 1
Illustratively, as shown in table 1, the predetermined parameter includes the sorting parameter as operator a for sorting. Operator a may be a comprehensive period and vehicle condition update by distributing nodes; or a part of the distribution nodes or the rest part of the plaintext or ciphertext transmission operators a in the vehicle can be configured in advance by the diagnostic instrument when the vehicle goes off line. When other controllers request to acquire an operator a in a message period, the distribution node immediately sends the message. Distributing node comprehensive period and vehicle condition updating operator a, and sending the message to other controllers; after receiving the message of the replacing operator a, the other controllers immediately terminate sending the message calculated by the former operator, and update the operator a to send the generated message.
Illustratively, as shown in table 1, after the receiving party receives the second message, the receiving party reorders the second message according to the operator a to generate the target message. Since the third party does not know the value of the operator a, the specific value of the signal transmitted by the message on the bus cannot be known, and therefore, the message is sent by ciphertext.
In one embodiment, the predetermined parameters further include an encrypted segment length and an encrypted segment start bit, and the processing the second packet out of order according to the predetermined parameters to generate a target packet includes:
determining a specific field based on the encrypted segment length and the encrypted segment start bit;
and reordering the specific fields in the second message according to the ordering parameters to generate a target message.
For example, as shown in table 1, the predetermined parameters further include two parameters of a configuration b, where the two parameters are also configured in the vehicle in advance when the vehicle goes offline, and are used to configure the second message encryption parameter. The length of the encrypted section is b.length; another parameter is the encrypted segment start bit, b.startbit. That is, the operator a may reorder the length of the encrypted segment and the start bit of the encrypted segment in the second packet to generate a target packet.
Illustratively, as shown in table 1, the target packet is generated by reordering the encrypted segment length and the encrypted segment start bit in the second packet according to the operator a. For example, assuming that arr1 points to the bit initial ordering array of the first packet, such as b.startbit=0, b.length=64, the ordering is [0,1 … 63]; when startbit=5 and b.length=32, the sequence is [5,6 … ], and the positions of the elements of the array are exchanged one by one in a mode of the operator a and the serial numbers of the elements of the array are calculated; declaring an array variable arr2, assigning the value of arr1 to arr2; declaring arr as a pointer to arr2; the simple calculation function of the loop generated for each ordering relationship is as follows:
after a function is called through a sort_message (arr 2, b.lengh), the array of arr2 is referred to as an encrypted segment length variable, the value of i is defined as len, j is defined, temp is defined as a temporary variable for exchanging data, a loop is entered, and in the case that-i >0, the following operations are executed until the following is not satisfied: assigning a value (i+1) to j, namely assigning a remainder obtained by dividing the value of a by i+1 to j; and exchanging the value of arr [ i ] with the value of arr [ j ] through a temporary variable temp, performing sequence number remainder of an operator a and array elements, and performing one-by-one interaction on the positions of the array elements, so as to reorder the length of the encrypted segment and the starting bit of the encrypted segment in the second message according to the operator a, and generate an ordering relation array arr2 of the target message.
In one embodiment, the predetermined parameter further includes a preset ordering cycle number, and the generating the target packet includes:
and re-ordering the specific fields of the second message based on the preset ordering cycle times and the ordering parameters to generate a target message.
Exemplary, as shown in table 1, the predetermined parameters further include a third parameter in configuration b, which is a preset ordering cycle number, where the third parameter in configuration b is also configured in the vehicle in advance when the vehicle is off line, and the preset ordering cycle number is different, and the complexity of the finally formed target message is also different, and the greater the preset ordering cycle number is, the higher the complexity of the finally formed target message is; the smaller the preset sequencing cycle number is, the lower the complexity of the finally formed target message is.
In one embodiment, the method further comprises:
receiving the target message;
and carrying out reverse processing on the target message based on the preset parameters so as to verify the message.
The method further includes the steps of receiving the target message, performing reverse processing on the target message based on the predetermined parameter after the target message is received, comparing the message generated by the reverse processing with the second message, if the message is the same, continuing to perform secondary reverse processing, comparing the message after the secondary reverse processing with the first message, if the message is the same, proving that the receiving is successful, and if the message is different, failing to receive. For example, through the above example calculation, a new array arr2 is formed, if arr1 is [0,1,2,3 … 7], and arr2 is [2,3,5,7 … 0], and through b.cycle time, a correspondence between the original message and the encrypted message bit ordering is obtained, and by using the correspondence, the encrypted message is ordered during sending, and the reverse ordering is performed during receiving, so as to decrypt the message.
Further, as an implementation of the method shown in fig. 1, an embodiment of the present application further provides a vehicle communication device, which is configured to implement the method shown in fig. 1. The embodiment of the device corresponds to the embodiment of the method, and for convenience of reading, details of the embodiment of the method are not repeated one by one, but it should be clear that the device in the embodiment can correspondingly realize all the details of the embodiment of the method. As shown in fig. 2, the apparatus includes: a first generation unit 21, a second generation unit 22, a processing unit 23, wherein
A first generating unit 21, configured to process an original message based on the message counter, and generate a first message;
a second generating unit 22, configured to process the first packet based on CRC check, and generate a second packet;
and a processing unit 23, configured to perform out-of-order processing on the second packet according to a predetermined parameter, and generate a target packet to encrypt the original packet, where the predetermined parameter is a communication parameter preconfigured in each controller of the vehicle.
Exemplary, the processing the original message based on the message counter to generate a first message includes:
the first message is generated based on the message Wen Jishu by adding a count field to the original message.
The method further includes, for example, processing the first packet based on the CRC check to generate a second packet:
and adding a CRC check code field into the first message based on CRC check to generate a second message.
The method for generating the target message includes:
and re-ordering the second message according to the ordering parameters to generate a target message.
The predetermined parameters further include an encrypted segment length and an encrypted segment start bit, and the processing the second message out of order according to the predetermined parameters to generate a target message includes:
determining a specific field based on the encrypted segment length and the encrypted segment start bit;
and reordering the specific fields in the second message according to the ordering parameters to generate a target message.
The method further includes the step of performing out-of-order processing on the second message process according to the predetermined parameter to generate a target message, where the method includes:
and re-ordering the specific fields of the second message based on the preset ordering cycle times and the ordering parameters to generate a target message.
Illustratively, the above method further comprises:
receiving the target message;
and carrying out reverse processing on the target message based on the preset parameters so as to verify the message.
By means of the technical scheme, the vehicle communication device provided by the application has the advantages that for the existing vehicle communication process, when the vehicle is in communication, the message can only be in clear text communication, and the problem of low information transmission safety exists; processing the first message based on CRC to generate a second message; and carrying out disorder processing on the second message process according to preset parameters to generate a target message so as to encrypt the original message, wherein the preset parameters are communication parameters which are pre-configured in each controller of the vehicle. In the above scheme, the first message is generated through the message counter, so that the frame loss condition can be detected in the message transmission process, the second message Wen Zhunque generated by the first message is checked whether errors occur in the message transmission process through CRC check, and finally, the second message is encrypted through disorder processing, so that the safety of the message is ensured, the secret leakage risk in the vehicle communication process is reduced, and the safety coefficient of the vehicle communication is greatly improved.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more, and the vehicle communication method is realized by adjusting kernel parameters, so that the problem that messages can only be communicated in the clear when the vehicles are communicated and the information transmission safety is low can be solved.
An embodiment of the present application provides a storage medium including a stored program that when executed by a processor implements the vehicle communication method described above.
The embodiment of the application provides a processor, which is used for running a program, wherein the program runs to execute the vehicle communication method.
The embodiment of the application provides equipment, which comprises at least one processor and at least one memory connected with the processor; wherein the processor is configured to call the program instructions in the memory to perform the vehicle communication method as described above
The embodiment of the application provides a device 30, as shown in fig. 3, comprising at least one processor 301, and at least one memory 302 and a bus 303 connected with the processor; wherein, the processor 301 and the memory 302 complete communication with each other through the bus 303; the processor 301 is configured to invoke the program instructions in the memory to perform the vehicle communication method described above.
The smart device herein may be a PC, PAD, cell phone, etc.
The application also provides a computer program product adapted to perform, when executed on a flow management device, a program initialized with the method steps of: processing an original message based on a message counter to generate a first message; processing the first message based on CRC to generate a second message; and carrying out disorder processing on the second message process according to preset parameters to generate a target message so as to encrypt the original message, wherein the preset parameters are communication parameters which are pre-configured in each controller of the vehicle.
Further, the processing the original message based on the message counter to generate a first message includes:
the first message is generated based on the message Wen Jishu by adding a count field to the original message.
Further, the method further includes processing the first message based on CRC check to generate a second message:
and adding a CRC check code field into the first message based on CRC check to generate a second message.
Further, the predetermined parameter includes a sorting parameter, and the generating the target message by performing out-of-order processing on the second message according to the predetermined parameter includes:
and re-ordering the second message according to the ordering parameters to generate a target message.
Further, the predetermined parameters further include an encrypted segment length and an encrypted segment start bit, and the performing out-of-order processing on the second message according to the predetermined parameters to generate a target message includes:
determining a specific field based on the encrypted segment length and the encrypted segment start bit;
and reordering the specific fields in the second message according to the ordering parameters to generate a target message.
Further, the predetermined parameter further includes a preset ordering cycle number, and the performing out-of-order processing on the second message process according to the predetermined parameter to generate a target message includes:
and re-ordering the specific fields of the second message based on the preset ordering cycle times and the ordering parameters to generate a target message.
Further, the method further comprises the following steps:
receiving the target message;
and carrying out reverse processing on the target message based on the preset parameters so as to verify the message.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable flow management device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable flow management device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, the device includes one or more processors (CPUs), memory, and a bus. The device may also include input/output interfaces, network interfaces, and the like.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.

Claims (9)

1. A vehicle communication method, comprising:
processing an original message based on a message counter to generate a first message;
processing the first message based on CRC to generate a second message;
the second message process is processed out of order according to preset parameters, a target message is generated, so that the original message is encrypted, wherein the preset parameters are communication parameters which are pre-configured in each controller of the vehicle, the preset parameters comprise sequencing parameters, the sequencing parameters are operators a, one part of the operators a are pre-configured in the vehicle, and the other part of the operators a are sent by a distributing node through plaintext or ciphertext;
the processing the original message based on the message counter to generate a first message comprises the following steps:
the first message is generated based on the message Wen Jishu by adding a count field to the original message, wherein the message is sent in ciphertext.
2. The method of claim 1, wherein the processing the first message based on the CRC check generates a second message:
and adding a CRC check code field into the first message based on CRC check to generate a second message.
3. The method according to claim 2, wherein the predetermined parameters include ordering parameters, and the generating the target message by performing out-of-order processing on the second message according to the predetermined parameters includes:
and re-ordering the second message according to the ordering parameters to generate a target message.
4. The method of claim 3, wherein the predetermined parameters further include an encrypted segment length and an encrypted segment start bit, and wherein the performing out-of-order processing on the second message according to the predetermined parameters generates the target message comprises:
determining a specific field based on the encrypted segment length and the encrypted segment start bit;
and reordering the specific fields in the second message according to the ordering parameters to generate a target message.
5. The method of claim 4, wherein the predetermined parameters further comprise a predetermined number of ordering cycles, and wherein the out-of-order processing of the second message process according to the predetermined parameters generates the target message, comprising:
and re-ordering the specific fields of the second message based on the preset ordering cycle times and the ordering parameters to generate a target message.
6. The method according to any one of claims 1 to 5, further comprising:
receiving the target message;
and carrying out reverse processing on the target message based on the preset parameters so as to verify the message.
7. A vehicle communication device, characterized by comprising:
the first generation unit is used for processing the original message based on the message counter to generate a first message;
the second generating unit is used for processing the first message based on CRC check to generate a second message;
the processing unit is used for carrying out disorder processing on the second message process according to preset parameters to generate a target message so as to encrypt the original message, wherein the preset parameters are communication parameters which are preset in each controller of the vehicle; the predetermined parameters comprise ordering parameters, wherein the ordering parameters are operators a, one part of the operators a is preconfigured in a vehicle, and the other part of the operators a is sent by a distributing node through plaintext or ciphertext;
the processing the original message based on the message counter to generate a first message comprises the following steps:
the first message is generated based on the message Wen Jishu by adding a count field to the original message.
8. A storage medium comprising a stored program, wherein the program when executed by a processor implements the vehicle communication method of any one of claims 1 to 6.
9. An electronic device comprising at least one processor and at least one memory coupled to the processor; wherein the processor is configured to invoke program instructions in the memory to perform the vehicle communication method of any of claims 1 to 6.
CN202111370174.3A 2021-11-18 2021-11-18 Vehicle communication method, device, storage medium and equipment Active CN114268412B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111370174.3A CN114268412B (en) 2021-11-18 2021-11-18 Vehicle communication method, device, storage medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111370174.3A CN114268412B (en) 2021-11-18 2021-11-18 Vehicle communication method, device, storage medium and equipment

Publications (2)

Publication Number Publication Date
CN114268412A CN114268412A (en) 2022-04-01
CN114268412B true CN114268412B (en) 2023-10-13

Family

ID=80825216

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111370174.3A Active CN114268412B (en) 2021-11-18 2021-11-18 Vehicle communication method, device, storage medium and equipment

Country Status (1)

Country Link
CN (1) CN114268412B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010016794A (en) * 1999-08-04 2001-03-05 정선종 Atm cell multiplexer and demultiplexer
WO2015186825A1 (en) * 2014-06-05 2015-12-10 Kddi株式会社 Communication network system, transmission node, reception node, message checking method, and computer program
WO2017092465A1 (en) * 2015-11-30 2017-06-08 深圳市中兴微电子技术有限公司 Broadcast packet encryption method, olt, onu, and computer storage medium
CN107592306A (en) * 2017-09-08 2018-01-16 四川省绵阳太古软件有限公司 Information security monitoring management method and system based on environment of internet of things big data
WO2019148884A1 (en) * 2018-01-31 2019-08-08 深圳市民泰科电子有限公司 Packet transmission method, storage medium, and computer device
CN111181874A (en) * 2018-11-09 2020-05-19 深圳市中兴微电子技术有限公司 Message processing method, device and storage medium
CN113381918A (en) * 2020-08-04 2021-09-10 长城汽车股份有限公司 In-vehicle signal transmission method and system
CN113452520A (en) * 2021-06-25 2021-09-28 北京经纬恒润科技股份有限公司 Communication data processing method, device and communication system
CN113602090A (en) * 2021-08-03 2021-11-05 岚图汽车科技有限公司 Vehicle control method, device and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010016794A (en) * 1999-08-04 2001-03-05 정선종 Atm cell multiplexer and demultiplexer
WO2015186825A1 (en) * 2014-06-05 2015-12-10 Kddi株式会社 Communication network system, transmission node, reception node, message checking method, and computer program
WO2017092465A1 (en) * 2015-11-30 2017-06-08 深圳市中兴微电子技术有限公司 Broadcast packet encryption method, olt, onu, and computer storage medium
CN107592306A (en) * 2017-09-08 2018-01-16 四川省绵阳太古软件有限公司 Information security monitoring management method and system based on environment of internet of things big data
WO2019148884A1 (en) * 2018-01-31 2019-08-08 深圳市民泰科电子有限公司 Packet transmission method, storage medium, and computer device
CN111181874A (en) * 2018-11-09 2020-05-19 深圳市中兴微电子技术有限公司 Message processing method, device and storage medium
CN113381918A (en) * 2020-08-04 2021-09-10 长城汽车股份有限公司 In-vehicle signal transmission method and system
CN113452520A (en) * 2021-06-25 2021-09-28 北京经纬恒润科技股份有限公司 Communication data processing method, device and communication system
CN113602090A (en) * 2021-08-03 2021-11-05 岚图汽车科技有限公司 Vehicle control method, device and system

Also Published As

Publication number Publication date
CN114268412A (en) 2022-04-01

Similar Documents

Publication Publication Date Title
CN113114621B (en) Communication method for bus dispatching system and bus dispatching system
CN113726774B (en) Client login authentication method, system and computer equipment
CN112906037A (en) Communication encryption system, method and device
CN112632521A (en) Request response method and device, electronic equipment and storage medium
CN112953802B (en) Data communication method and device
CN111401904A (en) Consensus method and system in alliance chain
CN107248910A (en) Method for security protection and equipment
EP3613184B1 (en) A method for managing the reputation level of a communication device
CN114268412B (en) Vehicle communication method, device, storage medium and equipment
CN102158856B (en) Mobile terminal identification code authentication system and method, server and terminal
CN111404674B (en) Method and equipment for generating and receiving session key
CN110213252A (en) Communication means, terminal device and the network equipment
CN114172639B (en) Quantum encryption communication method based on block chain
CN114095277A (en) Power distribution network secure communication method, secure access device and readable storage medium
CN110769010B (en) Data management authority processing method and device and computer equipment
CN110784317A (en) Data encryption interaction method, device and system
CN114553428B (en) Trusted verification system, trusted verification device, trusted verification storage medium and electronic equipment
CN111917734B (en) Method and device for managing public key, electronic equipment and computer readable storage medium
CN111917775B (en) Unit control method, air conditioning unit system and storage medium
CN104660403A (en) Equipment authorization method and server
CN114449514B (en) Key generation method, device, equipment and medium
CN117407905B (en) Data encryption method, vehicle-mounted electronic system, electronic equipment and storage medium
CN114282232A (en) Vehicle communication key management method and device, storage medium and equipment
CN115967905A (en) Data transmission system and method
CN117979283A (en) Data transmission method and system based on wireless connection

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant