A Secure Data Encryption Method and System for Wireless Communication of In-vehicle Devices

By generating wireless communication frequency points, performing frequency fine-tuning and bidirectional authentication, the problem of insufficient security caused by the same frequency and frequency points in wireless communication of on-board equipment is solved, and higher communication security and stability are achieved.

CN119865807BActive Publication Date: 2025-07-08SHENZHEN LTIME IN VEHICLE ENTERTAINMENT SYST CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510349701.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-03-24
Publication Date
2025-07-08
Estimated Expiration
2045-03-24

AI Technical Summary

Technical Problem

In the prior art, wireless communication of vehicle equipment is insufficient because the sender and receiver use the same carrier frequency and frequency points, resulting in insufficient security of wireless communication.

Method used

By obtaining the modulation frequency and frequency deviation range of both parties in the communication, generating wireless communication frequency points, and performing frequency fine-tuning, combining bidirectional authentication and signal frequency domain modulation and demodulation, ensuring the authenticity of the identity of both parties in the communication and increasing the difficulty of attack.

Benefits of technology

Improve the security of wireless communication of vehicle-mounted devices, prevent attackers from eavesdropping on communication content, and ensure the stability and reliability of communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119865807B_ABST
    Figure CN119865807B_ABST
Patent Text Reader

Abstract

The present invention discloses a secure data encryption method and system for wireless communication of in-vehicle devices. The method includes obtaining the modulation frequency, frequency deviation range, and communication data of both communication parties; generating a wireless communication frequency point according to the modulation frequency and the frequency deviation range; calculating a current frequency point deviation value according to the wireless communication frequency point; calculating baseband signal data according to the current frequency point deviation value; modulating the communication data and the baseband signal data to obtain modulated data; sending the modulated data by a sender to obtain transmitted data; receiving the transmitted data by a receiver to obtain received data; and separating the received data to obtain an original signal. This method can solve the problem of insufficient wireless communication security caused by the communication sender and the communication receiver using the same carrier frequency and frequency point for data communication.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data encryption, and particularly to a secure data encryption method and system for wireless communication of in-vehicle devices. Background Art

[0002] Currently, the GPRS data communication method is a data network communication based on a mobile system. This technology is mature and highly reliable, and has been widely commercialized in the communication industry. However, when GPRS data communication transmits data through a wireless channel, due to the openness of the wireless channel, the data is easily eavesdropped.

[0003] In an existing technology, the RSA algorithm is used to encrypt data, and the communication sender and the communication receiver use the same carrier frequency and frequency point for data communication.

[0004] In the existing technology, since the communication sender and the communication receiver use the same carrier frequency and frequency point for data communication, there is a problem of insufficient wireless communication security. Summary of the Invention

[0005] The present invention provides a secure data encryption method and system for wireless communication of in-vehicle devices to solve the problem of insufficient wireless communication security due to the communication sender and the communication receiver using the same carrier frequency and frequency point for data communication.

[0006] In a first aspect, to solve the above technical problem, the present invention provides a secure data encryption method for wireless communication of in-vehicle devices, including:

[0007] Obtain the modulation frequency, frequency deviation range, and communication data of both communication parties;

[0008] Generate according to the modulation frequency and the frequency deviation range to obtain a wireless communication frequency point;

[0009] Calculate according to the wireless communication frequency point to obtain the current frequency deviation value;

[0010] Calculate according to the current frequency deviation value to obtain baseband signal data;

[0011] Modulate according to the communication data and the baseband signal data to obtain modulated data;

[0012] Transmit according to the modulated data by the sender to obtain transmitted data;

[0013] Receive according to the transmitted data by the receiver to obtain received data;

[0014] Separate according to the received data to obtain the original signal.

[0015] In an alternative embodiment, the generation according to the modulation frequency and the frequency deviation range to obtain a wireless communication frequency point includes:

[0016] Transmit according to the modulation frequency and the frequency deviation range by the sender to obtain a transmission message;

[0017] Receive according to the transmission message by the receiver to obtain a received message;

[0018] Verify according to the received message to obtain a verification message;

[0019] Send an authentication request according to the verification message by the sender to obtain an authentication message;

[0020] Authenticate according to the authentication message by the receiver to obtain a return message of successful authentication;

[0021] Generate according to the return message to obtain a wireless communication frequency point.

[0022] In an alternative embodiment, the authentication according to the authentication message by the receiver to obtain a return message of successful authentication includes:

[0023] Obtain the two-way authentication code agreed upon by both communication parties and the random number randomly generated by the receiver;

[0024] Encrypt according to the two-way authentication code and the random number to obtain an encrypted authentication code;

[0025] Calculate according to the encrypted authentication code by the receiver to obtain a two-way authentication verification code;

[0026] Authenticate according to the two-way authentication verification code and the authentication message to obtain a return message of successful authentication.

[0027] In an alternative embodiment, the calculation according to the encrypted authentication code by the receiver to obtain a two-way authentication verification code includes:

[0028] Calculate the two-way authentication verification code in the following manner:

[0029] ,

[0030] wherein, is the two-way authentication verification code, is the verification result of the node for the encrypted authentication code, is the set of adjacent nodes of the receiver.

[0031] In an alternative embodiment, the calculation according to the wireless communication frequency point to obtain the current frequency deviation value includes:

[0032] Calculate the current frequency offset value in the following manner:

[0033] ,

[0034] wherein, is the current frequency offset value, is the modulation frequency, is an adjustment coefficient, is the degree centrality of the sender or receiver, is a random number.

[0035] In an alternative embodiment, the method further includes:

[0036] Calculate the degree centrality in the following manner:

[0037] ,

[0038] wherein, is the degree centrality of the sender or receiver, is the degree of node , is the wireless communication frequency point.

[0039] In an alternative embodiment, the separating the received data to obtain the original signal includes:

[0040] Demodulate the received data to obtain demodulated data;

[0041] Calculate based on the demodulated data to obtain the original signal.

[0042] In a second aspect, the present invention provides a secure data encryption device for wireless communication of in - vehicle equipment, including:

[0043] A data acquisition module, configured to acquire the modulation frequency, frequency deviation range and communication data of both communication parties;

[0044] A frequency point generation module, configured to generate a wireless communication frequency point according to the modulation frequency and the frequency deviation range;

[0045] A deviation value calculation module, configured to calculate a current frequency offset value according to the wireless communication frequency point;

[0046] A data calculation module, configured to calculate baseband signal data according to the current frequency offset value;

[0047] A data modulation module, configured to modulate according to the communication data and the baseband signal data to obtain modulated data;

[0048] A data sending module, configured to send according to the modulation data through a sender to obtain sent data;

[0049] A data receiving module, configured to receive according to the sent data through a receiver to obtain received data;

[0050] A data separation module, configured to separate according to the received data to obtain the original signal.

[0051] In a third aspect, the present invention further provides an electronic device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, the secure data encryption method for wireless communication of an in-vehicle device described in any one of the above is implemented.

[0052] In a fourth aspect, the present invention further provides a computer-readable storage medium, which includes a stored computer program. When the computer program runs, it controls the device where the computer-readable storage medium is located to execute the secure data encryption method for wireless communication of an in-vehicle device described in any one of the above.

[0053] Compared with the prior art, the present invention has the following beneficial effects: The present invention discloses a secure data encryption method for wireless communication of an in-vehicle device, including obtaining the modulation frequencies, frequency deviation ranges, and communication data of both communication parties; generating according to the modulation frequency and the frequency deviation range to obtain wireless communication frequency points; calculating according to the wireless communication frequency points to obtain the current frequency point deviation value; calculating according to the current frequency point deviation value to obtain baseband signal data; modulating according to the communication data and the baseband signal data to obtain modulation data; sending according to the modulation data through a sender to obtain sent data; receiving according to the sent data through a receiver to obtain received data; separating according to the received data to obtain the original signal. By adding fine-tuning of the frequency, the present invention enables an attacker to obtain the communication signal but unable to obtain the actual communication content of the communication signal; through the continuous change of the frequency, the encryption system adopts two-way authentication and modulation and demodulation in the signal frequency domain to ensure the authenticity of the identities of both communication parties and increase the difficulty for an attacker to crack the signal. Compared with the prior art where the RSA algorithm is used to encrypt data, and the communication sender and the communication receiver use the same carrier frequency and frequency points for data communication, the present invention can solve the problem of insufficient wireless communication security caused by the communication sender and the communication receiver using the same carrier frequency and frequency points for data communication. Description of the Drawings

[0054] Figure 1 It is a schematic diagram of the secure data encryption process for wireless communication of an in-vehicle device provided by the first embodiment of the present invention;

[0055] Figure 2 It is a schematic structural diagram of wireless communication data transmission of an in-vehicle device provided by the present invention;

[0056] Figure 3 It is a schematic structural diagram of secure data encryption for wireless communication of an in-vehicle device provided by the second embodiment of the present invention. Specific Embodiments

[0057] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0058] Refer to Figure 1 , the first embodiment of the present invention provides a method for secure data encryption of wireless communication of an in-vehicle device, including the following steps:

[0059] S11. Obtain the modulation frequency, frequency deviation range, and communication data of both communication parties;

[0060] S12. Generate according to the modulation frequency and the frequency deviation range to obtain a wireless communication frequency point;

[0061] S13. Calculate according to the wireless communication frequency point to obtain a current frequency point deviation value;

[0062] S14. Calculate according to the current frequency point deviation value to obtain baseband signal data;

[0063] S15. Modulate according to the communication data and the baseband signal data to obtain modulated data;

[0064] S16. Transmit the modulated data by the sender to obtain transmitted data;

[0065] S17. Receive the transmitted data by the receiver to obtain received data;

[0066] S18. Separate according to the received data to obtain the original signal.

[0067] In step S11, it is necessary to obtain the modulation frequency, frequency deviation range, and communication data of both communication parties.

[0068] The modulation frequency refers to the carrier frequency used to modulate signals in wireless communication. It is one of the fundamental parameters of wireless communication and determines the transmission characteristics of signals in the wireless channel. The carrier signal is a high-frequency signal used to modulate low-frequency communication data signals for long-distance transmission. The selection of the modulation frequency needs to consider multiple factors, including frequency band allocation, signal propagation characteristics, and anti-interference ability. Among them, different wireless communication technologies use different frequency bands. For example, Bluetooth technology typically operates in the 2.4 GHz frequency band, while 5G communication uses multiple frequency bands, including the Sub-6 GHz and millimeter-wave bands. Frequency band allocation is planned by the International Telecommunication Union (ITU) and national communication regulatory agencies based on communication requirements and the availability of spectrum resources. When determining the modulation frequency, the regulations on frequency band allocation must be complied with. For example, when Wi-Fi devices operate in the 2.4 GHz frequency band, their modulation frequencies are usually 2.412 GHz, 2.417 GHz, 2.422 GHz, etc., which are determined according to frequency band division and channel planning. The selection of the modulation frequency is also affected by signal propagation characteristics. High-frequency signals (such as millimeter waves) have higher data transmission rates but shorter propagation distances and are easily blocked by obstacles such as buildings. Low-frequency signals (such as the Sub-1 GHz frequency band) have a long propagation distance and strong penetration ability but relatively low data transmission rates. For example, in Internet of Things (IoT) applications, some low-power wide-area network (LPWAN) technologies (such as LoRa and NB-IoT) use the Sub-1 GHz frequency band because the signal propagation characteristics of these frequency bands are more suitable for long-distance and low-power communication. The selection of the modulation frequency also needs to consider anti-interference ability. In some frequency bands, there are many interference sources, such as other wireless communication devices and industrial equipment. Therefore, when selecting the modulation frequency, it is necessary to avoid these interference frequency bands as much as possible. For example, in the 2.4 GHz frequency band, due to the presence of a large number of interference sources such as Wi-Fi devices, Bluetooth devices, and microwave ovens, communication devices need to adopt certain anti-interference technologies (such as frequency hopping spread spectrum technology) to ensure the reliability of communication.

[0069] The modulation frequency can be obtained through protocol regulations and measurement using a spectrum analyzer. In many wireless communication systems, the modulation frequency is pre-specified by the communication protocol. For example, in Bluetooth communication, the modulation frequency is 2.4 GHz. During the design and manufacturing process of communication devices, hardware design and software configuration are carried out according to the modulation frequency specified by the protocol. For some systems that require dynamic adjustment of the modulation frequency (such as certain adaptive communication systems), the actual modulation frequency can be measured using a spectrum analyzer. The spectrum analyzer can monitor the spectral characteristics of wireless signals in real time, including the modulation frequency, signal strength, etc. For example, in the wireless quality assessment of 5G NR, the spectrum analyzer can be used to measure the actual modulation frequencies of base stations and terminal devices to ensure compliance with the protocol regulations.

[0070] The frequency deviation range refers to the allowable deviation range between the actual communication frequency and the modulation frequency in wireless communication. Frequency deviation is a common phenomenon in wireless communication, mainly due to the imperfections of hardware devices (such as the frequency drift of crystal oscillators), environmental factors (such as temperature changes), and multipath effects during signal propagation. The frequency deviation range is usually expressed in parts per million (ppm). Many wireless communication standards have clear regulations on the frequency deviation range. For example, in 2.4GHz WiFi communication, the frequency deviation requirements are usually ±20ppm or ±25ppm. These regulations are formulated based on the performance requirements of the communication system and the hardware capabilities of the devices. The hardware design of communication devices also affects the frequency deviation range. The crystal oscillator in a wireless communication device is a key component for generating the modulation frequency, but the frequency output of the crystal oscillator is not completely stable. The frequency drift of the crystal oscillator is mainly affected by factors such as temperature and aging. For example, a crystal oscillator with a nominal frequency of 2.4GHz will have its actual frequency deviate from the nominal value when the temperature changes. To reduce the impact of crystal oscillator frequency drift on communication, communication devices usually use temperature-compensated crystal oscillators (TCXOs) or voltage-controlled crystal oscillators (VCXOs). These crystal oscillators can reduce frequency drift through temperature compensation or external control signals. For example, a high-quality crystal oscillator can provide a more stable frequency output, thereby reducing the frequency deviation. Device manufacturers usually specify the frequency deviation range in the device specifications.

[0071] Communication data refers to the actual information content that needs to be transmitted through a wireless communication link. Such data can be voice, text, images, or any other form of digital or analog signals. In wireless communication, communication data usually needs to be modulated to enable efficient transmission over the wireless channel. The types of communication data include digital data and analog data, with digital data being the most common type in wireless communication. Digital data includes text information, digital images, digital audio, and video, etc. In a digital communication system, digital data is usually represented in binary form and encoded onto a carrier signal through modulation methods (such as QPSK, QAM, etc.). For example, in Wi-Fi communication, digital data is encoded onto multiple subcarriers through the OFDM modulation method to achieve efficient data transmission. Analog data refers to continuously varying signals, such as voice signals and analog video signals. In wireless communication, analog data usually needs to be digitized first and then transmitted through modulation. For example, in traditional wireless voice communication, the voice signal is first converted into a digital signal by an analog-to-digital converter (ADC) and then encoded onto a carrier signal through a modulation method (such as AM or FM). Communication data can be obtained through data acquisition devices, which are key components for obtaining communication data. For digital data, the data acquisition devices can be computers, smartphones, sensors, etc. These devices can transmit the data to wireless communication devices through various interfaces (such as USB, Bluetooth, Wi-Fi, etc.). For analog data, the data acquisition devices can be microphones and cameras.

[0072] In step S12, a wireless communication frequency point is generated according to the modulation frequency and the frequency deviation range.

[0073] In one implementation, it is sent by the sender according to the modulation frequency and the frequency deviation range to obtain a sending message; the receiving message is obtained by receiving according to the sending message by the receiver; a verification message is obtained by verifying according to the receiving message; an authentication request is sent by the sender according to the verification message to obtain an authentication message; the receiver authenticates according to the authentication message to obtain a returned message of successful authentication; a wireless communication frequency point is generated according to the returned message.

[0074] In one implementation, a two-way authentication code agreed upon by both communication parties and a random number randomly generated by the receiver are obtained; an encrypted authentication code is obtained by encrypting according to the two-way authentication code and the random number; a two-way authentication verification code is obtained by the receiver calculating according to the encrypted authentication code; the receiver authenticates according to the two-way authentication verification code and the authentication message to obtain a returned message of successful authentication.

[0075] In one implementation, the two-way authentication verification code is calculated in the following way:

[0076] ,

[0077] Among them, is the two-way authentication verification code, is the verification result of the node for the encrypted authentication code, is the set of adjacent nodes of the receiver.

[0078] The generation of wireless communication frequency points is based on the modulation frequency and the frequency deviation range. The modulation frequency is the basic frequency of wireless communication, and the frequency deviation range is the allowable frequency fluctuation range, which is used to adapt to frequency drift or interference in wireless communication. The generation process of wireless communication frequency points also involves the sending and receiving of messages, as well as the authentication mechanism. Sending messages During the message sending process, the sender generates wireless communication frequency points according to the modulation frequency and the frequency deviation range, and encapsulates the relevant parameters into the sent message. During the message receiving process, the receiver receives the sent message and extracts the modulation frequency and the frequency deviation range from it. It also includes message verification. The receiver verifies the received message to ensure the integrity and correctness of the message. The authentication mechanism is used to ensure the identity legality of both communication parties and the security of communication. Sending an authentication request: The sender sends an authentication request to the receiver according to the verification message. The specific authentication process is as follows. First, an authentication message is sent. After receiving the authentication request, the receiver generates an authentication message and sends it to the sender. Then, through the return message of successful authentication, the sender authenticates according to the authentication message. If the authentication is successful, a return message is generated and sent to the receiver. Finally, wireless communication frequency points are generated. After the receiver confirms successful authentication according to the return message, wireless communication frequency points are finally generated. The generation of wireless communication frequency points also involves two-way authentication and encryption mechanisms. Specifically, both communication parties agree on a two-way authentication code. The receiver randomly generates a random number, encrypts it according to the two-way authentication code and the random number to generate an encrypted authentication code. The receiver calculates according to the encrypted authentication code to generate a two-way authentication verification code. The sender authenticates according to the two-way authentication verification code and the authentication message. If the authentication is successful, a return message of successful authentication is generated. Finally, after confirming successful authentication according to the return message, wireless communication frequency points are generated.

[0079] In the 5G network, authentication technologies usually involve functions such as user identity recognition, authentication, and user identity confidentiality. For example, after a user completes the authentication of the operator's 5G network, secondary authentication for intranet access can be performed. The generation and verification process of the encrypted authentication code ensures the security of communication and prevents unauthorized access. This authentication mechanism is widely used in communication scenarios that require high security, such as intranet access for government, enterprises, and universities, and mobile office.

[0080] A two-way authentication code is a secret code agreed upon by both parties in advance. It is usually a string or a sequence of numbers with a fixed length. It is used to verify the identities of both parties during the communication process. A two-way authentication code can be static or dynamically generated, for example, by an algorithm or a key management system. A random number is a value randomly generated by the receiver during each communication process. The function of a random number is to increase the security of communication and prevent replay attacks. A random number is usually a sufficiently large random integer that is different for each communication. The generation of an encryption authentication code requires the selection of a suitable encryption algorithm. Common encryption algorithms include symmetric encryption algorithms (such as AES) and asymmetric encryption algorithms (such as RSA). Symmetric encryption algorithms use the same key for encryption and decryption, while asymmetric encryption algorithms use a pair of keys (public key and private key). In wireless communications, symmetric encryption algorithms are usually used to generate encryption authentication codes because symmetric encryption algorithms have faster encryption and decryption speeds. A two-way authentication code is a code used to verify the identities of both parties in communication. It is usually a hash value or an encrypted value that is used to ensure the legitimacy of the identities of both parties in communication and the security of communication. The generation of the two-way authentication verification code is based on the verification result of the encrypted authentication code and the information of the receiver's adjacent node set. The receiver's adjacent node set refers to the set of nodes adjacent to the receiver in the network topology. In wireless communications, adjacent nodes include base stations, routers, or other communication devices. This set of information can be used to enhance the security of authentication, such as preventing man-in-the-middle attacks by introducing network topology information. By combining network topology information, it is possible to prevent attackers from deceiving the receiver by forging identities or tampering with messages. In a distributed network, adjacent nodes can participate in the authentication process and provide additional verification information.

[0081] In step S13, a calculation is performed according to the wireless communication frequency to obtain a current frequency deviation value.

[0082] In one implementation, the current frequency deviation value is calculated in the following manner:

[0083] ,

[0084] in, is the current frequency deviation value, is the modulation frequency, is an adjustment factor, is the degree centrality of the sender or receiver, Is a random number.

[0085] In one implementation, degree centrality is calculated as follows:

[0086] ,

[0087] in, is the degree centrality of the sender or receiver, is the node degree, is the wireless communication frequency band.

[0088] The frequency offset value refers to the difference between the current wireless communication frequency band and the modulation frequency, reflecting the deviation degree between the actual communication frequency and the theoretical design frequency. In 5G communication, the calculation of the frequency offset value is crucial for ensuring the stability and reliability of the communication link. The 5G network uses multiple frequency bands and subcarrier spacings, so precise frequency control and offset correction are the keys to ensuring efficient data transmission. The adjustment coefficient is a system parameter used to adjust the magnitude of the frequency offset value according to actual needs. For example, in some systems, it is necessary to adjust the sensitivity of the frequency offset according to the environmental noise level or communication distance. Degree centrality is an important concept in network topology, indicating the connection degree of a node in the network. In wireless communication, degree centrality can reflect the communication ability and importance of a node. The degree of a node refers to the number of connections of this node with other nodes. Random numbers are used to increase the uncertainty and security of the system, preventing attackers from interfering with communication by predicting the frequency offset value. Random numbers can be generated by the random number generator of the communication device, usually a sufficiently large random integer.

[0089] In step S14, calculation is performed according to the current frequency offset value to obtain baseband signal data.

[0090] Baseband signal data (Baseband Signal Data) refers to the signal data that has been modulated but not yet subjected to radio frequency up-conversion in a wireless communication system. It contains all the information of the original communication data and is the basis of the modulation process. Baseband signal data is usually a low-frequency signal that contains all the information to be transmitted, such as voice, text, images, etc. The modulation process is the process of converting the original communication data (such as voice, text, images, etc.) into a signal suitable for wireless transmission. The modulation process includes the following steps. First, the original communication data is converted into a format suitable for modulation. For example, text data is converted into binary data. Then, a suitable modulation method is selected, such as amplitude modulation (AM), frequency modulation (FM), phase modulation (PM), or digital modulation methods (such as QPSK, QAM, etc.). Finally, according to the selected modulation method, the data-encoded signal is modulated onto the carrier signal to generate a modulated signal. In the calculation process of baseband signal data, the current frequency offset value is obtained from step S13, and the carrier frequency is adjusted according to the current frequency offset value. The modulated signal is converted into baseband signal data.

[0091] In step S15, modulation is performed according to the communication data and the baseband signal data to obtain modulated data.

[0092] Modulation is the process of superimposing an information signal (baseband signal) onto a high-frequency carrier signal. The basic function of modulation can shift the spectrum of the baseband signal to the high-frequency carrier, making it suitable for wireless transmission. Through multiplexing technology, more data can be transmitted in the same channel. The modulation process can improve the anti-interference ability of the signal by adding redundant information or adopting specific modulation methods. During the modulation process, first, a carrier signal needs to be selected. The carrier signal is a high-frequency signal whose frequency is much higher than that of the baseband signal. Selecting an appropriate carrier frequency is the first step in the modulation process, and this frequency determines the transmission characteristics of the information signal in the wireless channel. Then, the modulation method is selected. According to the application transmission requirements and signal characteristics, an appropriate modulation method is chosen; among them, the modulation methods include: amplitude modulation (AM), frequency modulation (FM), phase modulation (PM), and digital modulation. Amplitude modulation (AM) can transmit the information signal by changing the amplitude of the carrier signal. In AM, the information signal modulates the amplitude of the carrier signal. For example, the intensity of an audio signal affects the amplitude of a broadcast signal. Frequency modulation (FM) can transmit the information signal by changing the frequency of the carrier signal. In FM, the information signal modulates the frequency of the carrier signal. For example, radio stations use FM to improve the sound quality and reduce noise. Phase modulation (PM) can transmit the information signal by changing the phase of the carrier signal. In PM, the information signal changes the phase of the carrier signal. For example, PM is commonly used in radio communication and data transmission. Digital modulation includes binary phase shift keying (BPSK), quadrature phase shift keying (QPSK), and quadrature amplitude modulation (QAM), etc., which transmit information by changing the discrete state of the carrier signal. By making discrete changes to the carrier signal, different signal states are encoded to achieve efficient data transmission. Binary phase shift keying (BPSK) means transmitting binary data by changing the phase of the carrier signal. Quadrature phase shift keying (QPSK) means transmitting four-bit binary data by changing the phase of the carrier signal. Quadrature amplitude modulation (QAM) means transmitting multiple-bit binary data by changing the amplitude and phase of the carrier signal.

[0093] In step S16, the modulation data is sent by the sender to obtain the transmitted data.

[0094] Transmitted Data refers to the data that has been modulated and is the signal transmitted through the wireless channel. The transmitted data contains all the information to be transmitted and has undergone processes such as modulation, amplification, and radio frequency (RF) upconversion to make it suitable for transmission in the wireless channel. In step S15, the modulated data has been generated, which contains the information of the baseband signal data and the communication data. The modulated data is usually a complex signal that contains amplitude and phase information. RF upconversion is the process of converting the modulated baseband signal into an RF signal. Among them, for RF upconversion, according to the wireless communication protocol, a suitable carrier frequency is selected. The selection of the carrier frequency needs to consider frequency band allocation, signal propagation characteristics, and anti-interference ability. Multiply the modulated baseband signal by the carrier signal to generate the RF signal. To ensure that the signal can be transmitted over a sufficient distance in the wireless channel, the RF signal needs to be amplified. Signal amplification usually includes the following steps: First, use a low-noise amplifier (LNA) to amplify the signal. At the receiving end, the low-noise amplifier is used to amplify the weak signal while minimizing the introduction of noise. Then use a power amplifier (PA) to amplify the transmission power. At the transmitting end, the power amplifier is used to amplify the signal to a sufficient power for transmission in the wireless channel. The amplified RF signal is transmitted through the antenna. The selection and design of the antenna have a direct impact on the transmission efficiency and coverage of the signal. Common antenna types include: Omnidirectional antennas can be used to cover a wide area and are suitable for application scenarios such as base stations. Directional antennas can be used to cover a specific direction and are suitable for point-to-point communication. In 5G communication, the process of transmitting data is crucial for ensuring the stability and reliability of the communication link. The 5G network uses multiple modulation methods and frequency bands to achieve efficient data transmission. For example, the 5G NR (New Radio) standard supports multiple frequency bands, including the Sub-6GHz and millimeter wave bands. The millimeter wave band has a higher data transmission rate but a shorter propagation distance, so more precise RF processing and antenna design are required.

[0095] In step S17, the received data is obtained by the receiving party according to the transmitted data.

[0096] Received Data refers to the signal received by the receiving party through the wireless channel. The received data contains all the information sent by the sending party. However, due to the characteristics of the wireless channel (such as noise, interference, multipath effect, etc.), the received signal will be different from the transmitted signal. The receiving party needs to process the received signal to recover the original data. Signal capture is the first step in the receiving process. The receiving party needs to capture the signal in the wireless channel through the antenna. Similar to the transmitted data, the antenna types for signal capture include omnidirectional antennas and directional antennas. Among them, omnidirectional antennas are used to receive signals from multiple directions and are suitable for application scenarios such as base stations. Directional antennas are used to receive signals in a specific direction and are suitable for point-to-point communication. Radio frequency downconversion is the process of converting the received radio frequency signal into a baseband signal. According to the wireless communication protocol, a suitable carrier frequency is selected, and the received radio frequency signal is multiplied by the carrier signal to generate a baseband signal. In order to ensure that the signal can be correctly processed in the receiving device, the baseband signal needs to be amplified. Signal amplification usually includes, first at the receiving end, a low-noise amplifier is used to amplify the weak signal while minimizing the introduction of noise. Then, automatic gain control is used. Automatic gain control is used to dynamically adjust the amplification factor of the signal to ensure that the amplitude of the signal is within an appropriate range.

[0097] In step S18, separation is performed according to the received data to obtain the original signal.

[0098] In one implementation, demodulation is performed according to the received data to obtain demodulated data; calculation is performed according to the demodulated data to obtain the original signal.

[0099] Demodulation is the process of extracting the information in the baseband signal. The demodulation method depends on the modulation method used by the sending party. Common demodulation methods include amplitude demodulation (AM), frequency demodulation (FM), phase demodulation (PM), and digital demodulation. Amplitude demodulation can extract information by detecting the amplitude change of the signal. Frequency demodulation (FM) can extract information by detecting the frequency change of the signal. Phase demodulation (PM): extracts information by detecting the phase change of the signal. Digital demodulation includes binary phase shift keying (BPSK), quadrature phase shift keying (QPSK), and quadrature amplitude modulation (QAM), etc., and extracts information by detecting the discrete state of the signal. The demodulated signal still contains noise and interference and needs further processing to recover the original data. It can be processed by signal processing methods such as filtering, equalization, and decoding. Filtering refers to removing high-frequency noise and interference through a filter. Equalization refers to compensating for the frequency response of the channel through an equalizer to reduce the impact of the multipath effect. Decoding refers to decoding the demodulated signal into the original data, such as text, voice, or image.

[0100] Spectrum analysis is an important part of signal processing. Through the Fourier transform (FFT), a time-domain signal can be converted into a frequency-domain signal to analyze the frequency components of the signal. In the frequency domain, the noise components can be removed by setting a threshold, and then the processed frequency-domain signal can be converted back into the time-domain signal through the inverse Fourier transform (IFFT) to restore the original signal. Spectrum analysis refers to converting a time-domain signal into a frequency-domain signal through FFT to analyze the frequency components of the signal. Noise removal refers to removing the noise components in the frequency domain by setting a threshold, and the frequency components below the threshold can be removed by setting an amplitude threshold. Signal reconstruction refers to converting the processed frequency-domain signal back into the time-domain signal through IFFT to restore the original signal.

[0101] To facilitate the understanding of the present invention, some preferred embodiments of the present invention will be further described below.

[0102] The working process of the present invention will be described below by taking a relatively common scenario as an example. Please also refer to Figure 2 , which is Figure 1 a schematic diagram of the working scenario of the method.

[0103] In modern intelligent transportation systems, the wireless communication technology of in-vehicle devices is becoming increasingly important. For example, the newly released Wi-Fi 6 connection solution by Cypress Semiconductor Corporation further enhances the in-vehicle infotainment system experience. In practical applications, the in-vehicle device wireless communication system needs to go through the complete process from obtaining the modulation frequency, frequency deviation range, and communication data to finally separating the original signal. First, the system determines the modulation frequency, which is the center frequency of the wireless signal, usually 2.4 GHz or 5 GHz. For example, the center frequency of the 5 GHz band can be 5.2 GHz. At the same time, the frequency deviation range refers to the allowable deviation range between the actual communication frequency and the modulation frequency, usually determined by the hardware performance of the device, such as ±20 ppm. The communication data is the actual information to be transmitted, such as audio, video streams, or navigation data. Then, according to the modulation frequency and the frequency deviation range, the wireless communication frequency points are generated. Suppose the modulation frequency is 5.2 GHz, the frequency deviation range is ±20 ppm, and the actual frequency deviation is +10 ppm, then the wireless communication frequency point is 5.200052 GHz. Next, according to the wireless communication frequency point, the current frequency point deviation value is calculated, which is 52 kHz. After that, according to the current frequency point deviation value, the baseband signal data is calculated. Suppose the communication data is a segment of audio information and the modulation method is QAM (Quadrature Amplitude Modulation), then the baseband signal data is the modulated digital signal. Subsequently, modulation is performed according to the communication data and the baseband signal data to obtain the modulated data, which is the signal after QAM modulation and contains the information of the communication data and the baseband signal data. Then, according to the modulated data, it is sent by the sender to obtain the transmitted data. The sender (such as the in-vehicle infotainment system) sends the modulated data into the wireless channel through the antenna. Then, according to the transmitted data, it is received by the receiver to obtain the received data. The receiver (such as a mobile device) receives the signal in the wireless channel through the antenna and performs preliminary processing. Finally, according to the received data, the original signal is separated. First, demodulation is performed according to the modulation method (such as QAM) to obtain the demodulated data, then noise is removed through a filter, the frequency response of the channel is compensated through an equalizer, and finally, spectrum analysis and signal reconstruction are performed using FFT and IFFT to extract the original data. Through this process, in-vehicle devices can efficiently transmit and receive data, ensuring the stability and reliability of communication, and reflecting the complexity and efficiency of modern wireless communication technology.

[0104] In summary, the present invention discloses a method for secure data encryption in wireless communication of in-vehicle devices, including obtaining the modulation frequency, frequency deviation range, and communication data of both communication parties; generating a wireless communication frequency point according to the modulation frequency and the frequency deviation range; calculating a current frequency point deviation value according to the wireless communication frequency point; calculating baseband signal data according to the current frequency point deviation value; modulating the communication data and the baseband signal data to obtain modulated data; transmitting the modulated data through a sender to obtain transmitted data; receiving the transmitted data through a receiver to obtain received data; and separating the received data to obtain the original signal. By adding fine-tuning of the frequency, the present invention enables an attacker to obtain the communication signal but unable to obtain the actual communication content of the signal; through continuous change of the frequency, the encryption system adopts two-way authentication and modulation and demodulation in the signal frequency domain to ensure the authenticity of the identities of both communication parties and increase the difficulty for an attacker to crack the signal. Compared with the prior art that uses the RSA algorithm to encrypt data and the communication sender and receiver use the same carrier frequency and frequency point for data communication, the present invention can solve the problem of insufficient security in wireless communication due to the use of the same carrier frequency and frequency point by the communication sender and receiver for data communication.

[0105] Referring to Figure 3 , the second embodiment of the present invention provides a secure data encryption device for wireless communication of in-vehicle devices, including:

[0106] A data acquisition module, configured to acquire the modulation frequency, frequency deviation range, and communication data of both communication parties;

[0107] A frequency point generation module, configured to generate a wireless communication frequency point according to the modulation frequency and the frequency deviation range;

[0108] A deviation value calculation module, configured to calculate a current frequency point deviation value according to the wireless communication frequency point;

[0109] A data calculation module, configured to calculate baseband signal data according to the current frequency point deviation value;

[0110] A data modulation module, configured to modulate the communication data and the baseband signal data to obtain modulated data;

[0111] A data transmission module, configured to transmit the modulated data through a sender to obtain transmitted data;

[0112] A data reception module, configured to receive the transmitted data through a receiver to obtain received data;

[0113] A data separation module, configured to separate according to the received data to obtain an original signal.

[0114] It should be noted that the secure data encryption device for in-vehicle device wireless communication provided in the embodiments of the present invention is used to execute all the process steps of the secure data encryption method for in-vehicle device wireless communication in the above embodiments. The working principles and beneficial effects of the two correspond one by one, and thus will not be elaborated herein.

[0115] The embodiments of the present invention further provide an electronic device. The electronic device includes: a processor, a memory, and a computer program stored in the memory and executable on the processor, such as an algorithm program. When the processor executes the computer program, the steps in the embodiments of the above-mentioned secure data encryption methods for in-vehicle device wireless communication are implemented, such as Figure 1 the step S11 shown. Alternatively, when the processor executes the computer program, the functions of each module / unit in the above device embodiments are implemented, such as the data separation module.

[0116] Exemplarily, the computer program may be divided into one or more modules / units. The one or more modules / units are stored in the memory and executed by the processor to complete the present invention. The one or more modules / units may be a series of computer program instruction segments capable of performing specific functions, and these instruction segments are used to describe the execution process of the computer program in the electronic device.

[0117] The electronic device may be a computing device such as a desktop computer, a notebook, a palm computer, and a smart tablet. The electronic device may include, but is not limited to, a processor and a memory. Those skilled in the art can understand that the above components are only examples of the electronic device and do not constitute a limitation on the electronic device. It may include more or fewer components than the above, or combine some components, or different components. For example, the electronic device may further include input / output devices, network access devices, a bus, etc.

[0118] The so-called processor may be a Central Processing Unit (CPU), or may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate Arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The processor is the control center of the electronic device and connects various parts of the entire electronic device through various interfaces and circuits.

[0119] The memory can be used to store the computer program and / or module. The processor realizes various functions of the electronic device by running or executing the computer program and / or module stored in the memory, and by calling the data stored in the memory. The memory mainly includes a program storage area and a data storage area. Among them, the program storage area can store an operating system, application programs required for at least one function (such as a sound playback function, an image playback function, etc.); the data storage area can store data created according to the use of the mobile phone (such as audio data, phone book, etc.). In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0120] Among them, if the modules / units integrated in the electronic device are implemented in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, to implement all or part of the processes in the above-mentioned embodiment methods of the present invention, it can also be completed by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in the form of source code, object code, executable file, or some intermediate form, etc. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disc, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the content included in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electrical carrier signals and telecommunication signals.

[0121] It should be noted that the device embodiments described above are only illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the attached drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that they have a communication connection, which can be specifically implemented as one or more communication buses or signal lines. Those of ordinary skill in the art can understand and implement it without creative efforts.

[0122] The above-mentioned specific embodiments have further elaborated on the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above-mentioned are only specific embodiments of the present invention and are not used to limit the protection scope of the present invention. It is particularly pointed out that for those skilled in the art, any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A secure data encryption method for wireless communication of in-vehicle devices, characterized in that, Executed by a computer, including: Obtain the modulation frequency, frequency deviation range, and communication data of both communication parties; Generate based on the modulation frequency and the frequency deviation range to obtain a wireless communication frequency point; Calculate based on the wireless communication frequency point to obtain the current frequency point deviation value; Calculate based on the current frequency point deviation value to obtain baseband signal data; Modulate based on the communication data and the baseband signal data to obtain modulated data; Transmit the modulated data through the sender to obtain transmitted data; Receive the transmitted data through the receiver to obtain received data; Separate based on the received data to obtain the original signal; Among them, the generating based on the modulation frequency and the frequency deviation range to obtain a wireless communication frequency point includes: Transmit based on the modulation frequency and the frequency deviation range through the sender to obtain a transmission message; Receive the transmission message through the receiver to obtain a received message; Verify based on the received message to obtain a verification message; Send an authentication request to the sender based on the verification message to obtain an authentication message; Authenticate through the receiver based on the authentication message to obtain a return message of successful authentication; Generate based on the return message to obtain a wireless communication frequency point.

2. The security data encryption method for wireless communication of in-vehicle devices according to claim 1, characterized in that, The authenticating through the receiver based on the authentication message to obtain a return message of successful authentication includes: Obtain the two-way authentication code agreed upon by both communication parties and the random number randomly generated by the receiver; Encrypt based on the two-way authentication code and the random number to obtain an encrypted authentication code; Calculate through the receiver based on the encrypted authentication code to obtain a two-way authentication verification code; Authenticate based on the two-way authentication verification code and the authentication message to obtain a return message of successful authentication.

3. The secure data encryption method for in-vehicle device wireless communication according to claim 2, characterized in that The calculating through the receiver based on the encrypted authentication code to obtain a two-way authentication verification code includes: Calculate the two-way authentication verification code in the following manner: , Among them, is a two-way authentication verification code, is the verification result of the node for the encrypted authentication code, is the set of adjacent nodes of the receiver.

4. The secure data encryption method for wireless communication of in-vehicle devices according to claim 1, wherein The calculating based on the wireless communication frequency point to obtain the current frequency point deviation value includes: Calculate the current frequency point deviation value in the following manner: , Among them, is the current frequency offset value, is the modulation frequency, is an adjustment coefficient, is the degree centrality of the sender or receiver, is a random number.

5. The secure data encryption method for in-vehicle device wireless communication according to claim 4, wherein The method further includes: Calculate the degree centrality in the following manner: , Among them, is the degree centrality of the sender or receiver, is the node degree, is the wireless communication frequency point.

6. The secure data encryption method for wireless communication of in-vehicle devices according to claim 1, characterized in that, The separating based on the received data to obtain the original signal includes; Demodulate based on the received data to obtain demodulated data; Calculate based on the demodulated data to obtain the original signal.

7. A security data encryption device for wireless communication of vehicle-mounted devices, characterized in that, Implement the secure data encryption method for in-vehicle device wireless communication as described in any one of claims 1 to 6, including: A data acquisition module for obtaining the modulation frequency, frequency deviation range, and communication data of both communication parties; A frequency point generation module for generating based on the modulation frequency and the frequency deviation range to obtain a wireless communication frequency point; A deviation value calculation module for calculating based on the wireless communication frequency point to obtain the current frequency point deviation value; A data calculation module for calculating based on the current frequency point deviation value to obtain baseband signal data; A data modulation module for modulating based on the communication data and the baseband signal data to obtain modulated data; A data transmission module for transmitting the modulated data through the sender to obtain transmitted data; A data receiving module, configured to receive the transmitted data through a receiving party to obtain received data; A data separation module, configured to separate the received data to obtain an original signal.

8. An electronic device, characterized in that, It includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the secure data encryption method for in-vehicle device wireless communication according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored computer program, wherein when the computer program runs, it controls the device where the computer-readable storage medium is located to execute the secure data encryption method for in-vehicle device wireless communication according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Data transmission system, method and equipment

    CN111901005A