Anti-interference processing method and device for key signal, terminal equipment and storage medium

By inserting random numbers into the frame data of the RF key signal and using a unique identification code, the problem of insufficient anti-interference ability of the RF key signal is solved, and the signal reliability and user experience are improved.

CN119544150APending Publication Date: 2025-02-28SAIC GM WULING AUTOMOBILE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411592255.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-08
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

The prior art is difficult to effectively anti-interference when processing RF key signals, resulting in failure of signal resolution, affecting user experience and vehicle reliability.

Method used

By presetting the frame data format of the key signal, each frame data contains a unique identification code and inserting a random number between the frame data to increase the randomness and complexity of the signal.

Benefits of technology

It improves the anti-interference ability of the key signal, reduces the possibility of misjudgment, enhances the real-time nature of communication, and ensures the reliability and user experience of the signal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119544150A_ABST
    Figure CN119544150A_ABST
Patent Text Reader

Abstract

The invention provides an anti-interference processing method and device for a key signal, terminal equipment and a storage medium. The method comprises the following steps: presetting a frame data format of the key signal; wherein each frame data comprises a unique identification code; sending the key signal based on a user instruction; wherein the key signal comprises a preset number of frame data; performing insertion in the interval of each frame data through a random number; controlling the receiving end to perform signal matching on the received first key signal; wherein when a first identification code contained in the first key signal is consistent with a unique identification code pre-stored in the receiving end, it is judged that the receiving end is successfully matched with the first key signal. According to the invention, the effectiveness and convenience of anti-interference processing of the key signal can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of wireless communication technology, and in particular to an anti-interference processing method, device, terminal equipment and storage medium for a key signal. Background Art

[0002] With the development of automobile intelligence, remote control radio frequency keys (such as keyless entry systems, remote start, anti-theft systems, etc.) have become standard equipment for modern cars. However, the application of radio frequency keys also brings the problem of signal interference. Car radio frequency keys usually operate in the range of 433.05 to 434.79MHz. When multiple car owners use keys at the same location at the same time, the interference of the same frequency signal is particularly obvious. This interference may cause signal analysis failure, making the door unable to unlock, start failure and other functions invalid. In dense areas such as parking lots and underground garages, the number of keys used by multiple vehicles at the same time is greater, increasing the probability of signal interference. Users may need to press the key multiple times to complete the unlocking or starting operation, which not only affects the user experience, but may also cause users to doubt the safety and reliability of the vehicle. In an emergency, repeatedly pressing the key may lead to misoperation or miss the best operation time, bringing unnecessary pressure and risks to users. In order to ensure the reliability and user experience of the remote control key, it is crucial to perform anti-interference processing on the key signals of the same model.

[0003] In the existing technology, signal interference is often reduced by means of frequency hopping spread spectrum and coding optimization. Frequency hopping spread spectrum technology disperses the bandwidth occupied by the signal by quickly switching the operating frequency, avoiding occupying the same frequency for a long time and thus reducing interference. However, frequency hopping spread spectrum technology requires complex algorithms and hardware support, which increases the complexity and cost of the system. At the same time, high technical requirements are also put forward for the design and implementation of frequency hopping sequences. The coding optimization method increases the anti-interference ability of the signal by improving the encoding and decoding algorithms of the radio frequency key. For example, a more complex encryption algorithm is used to make it difficult for the interference signal to imitate the legitimate signal. However, coding optimization requires higher computing resources, which may increase battery power consumption and hardware costs. In addition, the complexity of the encryption algorithm may also affect the real-time performance of the communication. How to improve the effectiveness and convenience of anti-interference processing of key signals is a technical problem that needs to be solved urgently. Summary of the invention

[0004] The present invention aims to provide a method, device, terminal equipment and storage medium for anti-interference processing of key signals to solve the above-mentioned technical problems and improve the effectiveness and convenience of anti-interference processing of key signals.

[0005] In order to solve the above technical problems, the present invention provides an anti-interference processing method for a key signal, comprising:

[0006] Presetting the frame data format of the key signal; wherein each frame data contains a unique identification code;

[0007] Sending the key signal based on a user instruction; wherein the key signal includes a preset number of frame data;

[0008] Inserting a space between each frame of data by using a random number;

[0009] The receiving end is controlled to perform signal matching on the received first key signal; wherein, when the first identification code included in the first key signal is consistent with the unique identification code pre-stored in the receiving end, it is determined that the receiving end matches the first key signal successfully.

[0010] In the above scheme, the frame data format of the key signal is pre-set. The unified frame data format ensures the consistency and easy parsability of the signal, reduces the dependence on complex algorithms, simplifies the parsing and processing of the signal, and facilitates the receiving end to quickly process the signal. Each frame data contains a unique identification code, which helps to improve the accuracy of identification and reduce the possibility of misjudgment. Random numbers are inserted between each frame data to increase the randomness and complexity of the signal. The interpolation technology increases the unpredictability of the key signal, making it difficult for attackers to imitate or interfere with legitimate signals. And the interpolation reduces the continuity of each frame data, reduces the probability of signal interference, and increases resistance to interference signals. For the matching of the unique identification code, through a simple comparison operation, the receiving end can quickly give feedback to determine whether to continue subsequent processing, ensure that only valid signals are processed, and enhance the real-time nature of communication.

[0011] In one implementation, the presetting of the frame data format of the key signal specifically includes:

[0012] The frame data format includes a guide header, a synchronization header, the unique identification code and ciphertext information in sequence; wherein the guide header is used to instruct the receiving end that receives the user instruction to start sending the key signal, the synchronization header is used to indicate the frame data content to be received by the receiving end next, the unique identification code is used to match the signal with the receiving end, and the ciphertext information is used to indicate the specific instruction operation content of the receiving end.

[0013] In one implementation, before inserting a blank at each interval of the frame data by using a random number, the method further includes:

[0014] generating a data transmission time required to send a single frame of data based on the number of bits of the frame data and the transmission rate of the key signal;

[0015] Based on the data transmission time, the data transmission time is expanded and contracted by a preset multiple to generate n-1 random numbers; wherein n is the number of frame data in the key signal.

[0016] In one implementation, inserting a space between each frame of data by using a random number specifically includes:

[0017] Generate a gap filling strategy according to the combination of each random number inserted at the interval of different frame data; wherein the occurrence frequency of each random number in the gap filling strategy is 1;

[0018] Numbering each of the gap filling strategies and mapping them to a timer;

[0019] Whenever the user instruction is detected, a random number is obtained based on the timer, and the corresponding gap filling strategy is called according to the obtained number to insert gaps in the intervals of the frame data.

[0020] In one implementation, the randomly obtaining a number based on the timer whenever the user instruction is detected specifically includes:

[0021] Whenever the user instruction is detected, triggering the timer interrupt;

[0022] Reading a count value of the timer, and using the count value as a serial number of the gap filling strategy;

[0023] When the number of triggering times of the timer reaches the total number of the gap filling strategy, the timer is cleared.

[0024] In a second aspect, the present application also provides an anti-interference processing device for a key signal, comprising: a data setting module, a signal sending module, a random insertion module and a signal matching module;

[0025] The data setting module is used to pre-set the frame data format of the key signal; wherein each frame data contains a unique identification code;

[0026] The signal sending module is used to send the key signal based on a user instruction; wherein the key signal includes a preset number of frame data;

[0027] The random interpolation module is used to interpolate between each frame of data using a random number;

[0028] The signal matching module is used to control the receiving end to perform signal matching on the received first key signal; wherein, when the first identification code included in the first key signal is consistent with the unique identification code pre-stored in the receiving end, it is determined that the receiving end successfully matches the first key signal.

[0029] In the above scheme, the frame data format of the key signal is pre-set. The unified frame data format ensures the consistency and easy parsability of the signal, reduces the dependence on complex algorithms, simplifies the parsing and processing of the signal, and facilitates the receiving end to quickly process the signal. Each frame data contains a unique identification code, which helps to improve the accuracy of identification and reduce the possibility of misjudgment. Random numbers are inserted between each frame data to increase the randomness and complexity of the signal. The interpolation technology increases the unpredictability of the key signal, making it difficult for attackers to imitate or interfere with legitimate signals. And the interpolation reduces the continuity of each frame data, reduces the probability of signal interference, and increases resistance to interference signals. For the matching of the unique identification code, through a simple comparison operation, the receiving end can quickly give feedback to determine whether to continue subsequent processing, ensure that only valid signals are processed, and enhance the real-time nature of communication.

[0030] In one implementation, the data setting module is used to pre-set the frame data format of the key signal, specifically including:

[0031] The frame data format includes a guide header, a synchronization header, the unique identification code and ciphertext information in sequence; wherein the guide header is used to instruct the receiving end that receives the user instruction to start sending the key signal, the synchronization header is used to indicate the frame data content to be received by the receiving end next, the unique identification code is used to match the signal with the receiving end, and the ciphertext information is used to indicate the specific instruction operation content of the receiving end.

[0032] In one implementation, before inserting a blank at each interval of the frame data by using a random number, the method further includes:

[0033] generating a data transmission time required to send a single frame of data based on the number of bits of the frame data and the transmission rate of the key signal;

[0034] Based on the data transmission time, the data transmission time is expanded and contracted by a preset multiple to generate n-1 random numbers; wherein n is the number of frame data in the key signal.

[0035] In one implementation, the random insertion module is used to insert a gap at the interval of each frame data by using a random number, specifically including:

[0036] Generate a gap filling strategy according to the combination of each random number inserted at the interval of different frame data; wherein the occurrence frequency of each random number in the gap filling strategy is 1;

[0037] Numbering each of the gap filling strategies and mapping them to a timer;

[0038] Whenever the user instruction is detected, a random number is obtained based on the timer, and the corresponding gap filling strategy is called according to the obtained number to insert gaps in the intervals of the frame data.

[0039] In one implementation, the randomly obtaining a number based on the timer whenever the user instruction is detected specifically includes:

[0040] Whenever the user instruction is detected, triggering the timer interrupt;

[0041] Reading a count value of the timer, and using the count value as a serial number of the gap filling strategy;

[0042] When the number of triggering times of the timer reaches the total number of the gap filling strategy, the timer is cleared.

[0043] In a third aspect, the present application also provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, the anti-interference processing method of the key signal as described above is implemented.

[0044] In a fourth aspect, the present application further provides a computer-readable storage medium, the computer-readable storage medium including a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the anti-interference processing method of the key signal as described above. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 A schematic flow chart of an anti-interference processing method for a key signal provided in one embodiment of the present invention;

[0046] Figure 2 The module diagram of a key signal anti-interference processing device provided in one embodiment of the present invention. DETAILED DESCRIPTION

[0047] The specific implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0048] The terms "first" and "second" and the like in the specification, claims and drawings of this application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.

[0049] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0050] Example 1

[0051] See also Figure 1 , Figure 1 The flowchart of a method for anti-interference processing of a key signal provided in an embodiment of the present invention is shown in FIG. The method for anti-interference processing of a key signal provided in an embodiment of the present invention comprises steps 101 to 104, and each step is specifically as follows:

[0052] Step 101: pre-set the frame data format of the key signal; wherein each frame data contains a unique identification code.

[0053] In one embodiment, the frame data format of the key signal is pre-set, specifically including:

[0054] The frame data format includes a guide header, a synchronization header, the unique identification code and ciphertext information in sequence; wherein the guide header is used to instruct the receiving end that receives the user instruction to start sending the key signal, the synchronization header is used to indicate the frame data content to be received by the receiving end next, the unique identification code is used to match the signal with the receiving end, and the ciphertext information is used to indicate the specific instruction operation content of the receiving end.

[0055] In an embodiment of the present invention, the frame data format in the key signal is set in advance to ensure the reliability and security of the key signal during transmission. The guide header is used to inform the receiving end that the key signal is about to be transmitted. It is usually a fixed bit sequence that can help the receiving end confirm the start of the signal and prepare for reception. Preferably, in an embodiment of the present invention, the guide header is set to 0xAA. 0xAA is a hexadecimal value, which is converted to binary as 10101010. The synchronization header is used to indicate the end of the guide header and identify that the next data segment is a UUID. Its function is to ensure that the receiving end can accurately identify the starting position of different data fields. Preferably, in an embodiment of the present invention, the synchronization header is set to 0x2DD4, which is a 16-bit value in hexadecimal and is converted to binary as 00101101 11010100. It is often used for format definition of synchronization timing and data layout. Further, the unique identification code UUID is an identifier for key and receiving device identity authentication, ensuring that each key is unique and specifies its corresponding device (such as a car, door lock, etc.). The UUID is generated based on a standard algorithm to ensure its global uniqueness. The receiver can verify the UUID to determine whether the signal comes from a legitimate key, thereby preventing unauthorized access. The ciphertext information contains specific key instructions, such as unlocking, locking, and starting the vehicle. During the transmission process, the ciphertext is usually encrypted to ensure security and prevent it from being stolen or forged by attackers. The format and content of the ciphertext information may vary depending on the application scenario. Usually, the ciphertext contains compressed or encrypted data, and symmetric / asymmetric encryption technology may be used to ensure the security of data during transmission.

[0056] Step 102: Send the key signal based on a user instruction; wherein the key signal includes a preset number of frame data.

[0057] When the RF transmitting chip in the key transmitting end sends the key signal, the signal may be distorted due to various reasons such as RF interference, noise, and attenuation. Through a large number of experimental verifications, it was found that the fault tolerance of continuously sending single-frame, two-frame, and three-frame data is insufficient, while the continuous sending of four or five frames of data greatly reduces the probability of parsing failure caused by signal distortion. Continuously sending multiple frames of data can increase the fault tolerance of the receiving end, because even if a frame of data is distorted due to interference, the receiving end can still correctly parse the instruction from other frames. In the system time efficiency evaluation, executing a RF transmission instruction to continuously send five frames of data can significantly improve the reliability of data transmission without affecting the overall performance of the system. Based on this, in the embodiment of the present invention, in order to ensure the reliability of the signal and the correct execution of the instruction in the complex environment of RF transceiver, a strategy of continuously sending multiple frames of data is adopted. Through in-depth analysis of signal distortion and system evaluation, it is finally decided that 5 frames of data are included in each key signal sent.

[0058] Step 103: inserting spaces between each frame of data using random numbers.

[0059] In one embodiment, the data transmission time required to send a single frame of data is generated based on the number of bits of the frame data and the transmission rate of the key signal; the data transmission time is scaled by a preset multiple to generate n-1 random numbers; wherein n is the number of frame data in the key signal.

[0060] In the embodiment of the present invention, x bit represents the number of bits of a frame data, and y bps represents the transmission rate of the frame data. The transmission rate of the frame data generally depends on the RF communication rate of the RF transmission chip in the transmitting end. Then the data transmission time required to send a single frame data is x / ys. Taking the example of sending 5 frames of data in a key signal, the data transmission time required for a complete key signal is 5x / ys, that is, there are 4 time intervals between the 5 frames of data. Generally, the response time of about 1s after pressing the key once will not affect the user's experience. After obtaining the data transmission time required to send the entire key signal according to the data transmission time x / ys required to send a single frame of data, an integer multiple of 5x / ys is selected in the embodiment of the present invention to generate random delays, which are 0 5x / ys, 1 5x / ys, 2 5x / ys and 3 5x / ys.

[0061] In one embodiment, the inserting gaps in the intervals of each frame data by using random numbers specifically includes: generating a gap filling strategy based on a combination of inserting gaps in the intervals of different frame data by each random number; wherein the frequency of occurrence of each random number in the gap filling strategy is 1; numbering each of the gap filling strategies and mapping it to a timer; and whenever the user instruction is detected, randomly obtaining a number based on the timer, and calling the corresponding gap filling strategy according to the obtained number to insert gaps in the intervals of the frame data.

[0062] In the embodiment of the present invention, a single key signal contains 5 frames of data, and four random numbers are used for interpolation as an example. According to the foregoing, generally no filling is performed between the first frame of data and the second frame of data. One of the 4 random numbers is randomly selected and filled between the second and third frames of data, and one of the remaining 3 random numbers is randomly selected and filled between the third and fourth frames, and one of the remaining 2 random numbers is randomly selected and filled between the fourth and fifth frames. There are 4 options for the first filling (4 time periods); there are 3 options for the second filling (the remaining 3 time periods); there are 2 options for the third filling (the remaining 2 time periods), so a total of 4×3×2=24 interpolation filling strategies can be generated. The generated interpolation filling strategies are numbered and mapped to the timer. The timer is randomly retrieved. Whenever a user instruction is detected to send a key signal, the key interrupt of the timer is triggered, and the value of the timer is read, that is, the number of the interpolation filling strategy is obtained, and the corresponding interpolation filling strategy is called according to the number to interpolate the frame data to generate a complete key signal. This random selection method can effectively improve the reliability of data transmission and ensure that at least one frame of data is not interfered with. This flexible strategy helps to cope with uncertainties in RF communications and improve overall performance.

[0063] In one embodiment, whenever the user instruction is detected, random number acquisition is performed based on the timer, specifically including: whenever the user instruction is detected, triggering the timer interrupt; reading the count value of the timer, and using the count value as the number of the gap filling strategy; when the cumulative number of triggering of the timer reaches the total number of the gap filling strategy, clearing the timer.

[0064] In the embodiment of the present invention, whenever a user instruction is detected, a timer interrupt is triggered. In the interrupt processing function, the count value of the timer is read and used as the number of the gap filling strategy, and the number of triggers is accumulated. When the number of timer triggers reaches the total number of gap filling strategies, the timer is cleared. Timer resources can be effectively managed and utilized to ensure the randomness of the filling strategy and the stability of the system.

[0065] Step 104: Control the receiving end to perform signal matching on the received first key signal; wherein, when the first identification code included in the first key signal is consistent with the unique identification code pre-stored in the receiving end, it is determined that the receiving end matches the first key signal successfully.

[0066] It should be noted that each key will be learned and matched with the receiving module before leaving the factory, and the corresponding matching information (such as the unique identification code UUID) will be saved. When the receiving end receives the first key signal, it will first parse the unique identification code UUID therein. The parsed first identification code is compared with the unique identification code pre-stored by the receiving end. If the identification code matches successfully, the receiving end further parses the ciphertext information in the first key signal. If the identification code does not match, the receiving end waits for the next key signal. This method ensures that only the key signal that has been successfully matched can further process the ciphertext information, thereby improving the security and reliability of the system.

[0067] In an embodiment of the present invention, there is also provided an anti-interference processing device for key signals, comprising 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 above-mentioned anti-interference processing method for key signals is implemented.

[0068] In an embodiment of the present invention, a computer-readable storage medium is further provided. The computer-readable storage medium includes a stored computer program. When the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the above-mentioned anti-interference processing method for key signals.

[0069] Exemplarily, the computer program may be divided into one or more modules, one or more modules are stored in a memory and executed by a processor to implement the present invention. One or more modules may be a series of computer program instruction segments capable of implementing specific functions, and the instruction segments are used to describe the execution process of the computer program in the anti-interference processing device applied to the key signal.

[0070] The anti-interference processing device applied to the key signal can be a computing device such as a desktop computer, a notebook, a PDA, and a cloud server. The anti-interference processing device applied to the key signal may include, but is not limited to, a processor, a memory, and a display. Those skilled in the art can understand that the above components are merely examples of anti-interference processing devices applied to key signals, and do not constitute a limitation on the anti-interference processing device applied to the key signal. It may include more or fewer components than the components, or a combination of certain components, or different components. For example, the anti-interference processing device applied to the key signal may also include input and output devices, network access devices, buses, etc.

[0071] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the anti-interference processing device applied to the key signal, and uses various interfaces and lines to connect the various parts of the anti-interference processing device applied to the key signal.

[0072] The memory can be used to store computer programs and / or modules. The processor realizes various functions of the anti-interference processing device for key signals by running or executing the computer programs and / or modules stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, a text conversion function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, text message data, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0073] Among them, if the module based on the anti-interference processing applied to the key signal is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the 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. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0074] The embodiment of the present invention provides an anti-interference processing method for a key signal, and pre-sets the frame data format of the key signal. The unified frame data format ensures the consistency and easy parsability of the signal, reduces the dependence on complex algorithms, simplifies the parsing and processing of the signal, and facilitates the receiving end to quickly process the signal. Each frame data contains a unique identification code, which helps to improve the accuracy of identification and reduce the possibility of misjudgment. Random numbers are inserted between each frame data to increase the randomness and complexity of the signal. The interpolation technology increases the unpredictability of the key signal, making it difficult for attackers to imitate or interfere with legitimate signals. And the interpolation reduces the continuity of each frame data, reduces the probability of signal interference, and increases the resistance to interference signals. For the matching of the unique identification code, through a simple comparison operation, the receiving end can quickly give feedback to determine whether to continue subsequent processing, ensure that only valid signals are processed, and enhance the real-time nature of communication.

[0075] Example 2

[0076] See also Figure 2 , Figure 2 The module diagram of a key signal anti-interference processing device provided in an embodiment of the present invention. The present invention provides a key signal anti-interference processing device, including: a data setting module 201, a signal sending module 202, a random insertion module 203 and a signal matching module 204;

[0077] The data setting module 201 is used to pre-set the frame data format of the key signal; wherein each frame data contains a unique identification code;

[0078] The signal sending module 202 is used to send the key signal based on a user instruction; wherein the key signal includes a preset number of frame data;

[0079] The random interpolation module 203 is used to interpolate between each frame of data using a random number;

[0080] The signal matching module 204 is used to control the receiving end to perform signal matching on the received first key signal; wherein, when the first identification code included in the first key signal is consistent with the unique identification code pre-stored in the receiving end, it is determined that the receiving end matches the first key signal successfully.

[0081] In one embodiment, the data setting module 201 is used to pre-set the frame data format of the key signal, specifically including: the frame data format includes a guide header, a synchronization header, the unique identification code and ciphertext information in sequence; wherein, the guide header is used to instruct the receiving end that receives the user instruction to start sending the key signal, the synchronization header is used to indicate the frame data content to be received by the receiving end next, the unique identification code is used to match the signal with the receiving end, and the ciphertext information is used to indicate the specific instruction operation content of the receiving end.

[0082] In one embodiment, before inserting a random number between each frame of data, the method further includes:

[0083] The data transmission time required to send a single frame of data is generated based on the number of bits of the frame data and the transmission rate of the key signal; the data transmission time is scaled by a preset multiple to generate n-1 random numbers; wherein n is the number of frame data in the key signal.

[0084] In one embodiment, the random insertion module 203 is used to insert gaps in the intervals of each frame data through random numbers, specifically including: generating a gap filling strategy based on the combination of each random number inserted in the intervals of different frame data; wherein the frequency of occurrence of each random number in the gap filling strategy is 1; numbering each of the gap filling strategies and mapping it to a timer; and whenever the user instruction is detected, randomly obtaining a number based on the timer, and calling the corresponding gap filling strategy according to the obtained number to insert gaps in the intervals of the frame data.

[0085] In one embodiment, whenever the user instruction is detected, random number acquisition is performed based on the timer, specifically including: whenever the user instruction is detected, triggering the timer interrupt; reading the count value of the timer, and using the count value as the number of the gap filling strategy; when the cumulative number of triggering of the timer reaches the total number of the gap filling strategy, clearing the timer.

[0086] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0087] The embodiment of the present invention provides an anti-interference processing device for a key signal, and the frame data format of the key signal is pre-set. The unified frame data format ensures the consistency and easy parsability of the signal, reduces the dependence on complex algorithms, simplifies the parsing and processing of the signal, and facilitates the receiving end to quickly process the signal. Each frame data contains a unique identification code, which helps to improve the accuracy of identification and reduce the possibility of misjudgment. Random numbers are inserted between each frame data to increase the randomness and complexity of the signal. The interpolation technology increases the unpredictability of the key signal, making it difficult for attackers to imitate or interfere with legitimate signals. And the interpolation reduces the continuity of each frame data, reduces the probability of signal interference, and increases the resistance to interference signals. For the matching of the unique identification code, through a simple comparison operation, the receiving end can quickly give feedback to determine whether to continue subsequent processing, ensure that only valid signals are processed, and enhance the real-time nature of communication.

[0088] The above are only preferred embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and substitutions can be made without departing from the technical principles of the present invention. These improvements and substitutions should also be regarded as the scope of protection of the present invention.

Claims

1. A method for anti-interference processing of key signals, characterized in that: include: Presetting the frame data format of the key signal; wherein each frame data contains a unique identification code; Sending the key signal based on a user instruction; wherein the key signal includes a preset number of frame data; Inserting a space between each frame of data by using a random number; The receiving end is controlled to perform signal matching on the received first key signal; wherein, when the first identification code included in the first key signal is consistent with the unique identification code pre-stored in the receiving end, it is determined that the receiving end matches the first key signal successfully.

2. The anti-interference processing method of a key signal according to claim 1, characterized in that: The frame data format of the key signal is pre-set, specifically including: The frame data format includes a guide header, a synchronization header, the unique identification code and ciphertext information in sequence; wherein the guide header is used to instruct the receiving end that receives the user instruction to start sending the key signal, the synchronization header is used to indicate the frame data content to be received by the receiving end next, the unique identification code is used to match the signal with the receiving end, and the ciphertext information is used to indicate the specific instruction operation content of the receiving end.

3. The anti-interference processing method of a key signal according to claim 1, characterized in that: Before inserting a random number into each interval of the frame data, the method further comprises: generating a data transmission time required to send a single frame of data based on the number of bits of the frame data and the transmission rate of the key signal; Based on the data transmission time, the data transmission time is expanded and contracted by a preset multiple to generate n-1 random numbers; wherein n is the number of frame data in the key signal.

4. The anti-interference processing method of a key signal according to claim 1, characterized in that: The inserting of a space between each frame of data by using a random number specifically includes: Generate a gap filling strategy according to the combination of each random number inserted at the interval of different frame data; wherein the occurrence frequency of each random number in the gap filling strategy is 1; Numbering each of the gap filling strategies and mapping them to a timer; Whenever the user instruction is detected, a random number is obtained based on the timer, and the corresponding gap filling strategy is called according to the obtained number to insert gaps in the intervals of the frame data.

5. The anti-interference processing method of a key signal as claimed in claim 4, characterized in that: The randomly obtaining a number based on the timer whenever the user instruction is detected specifically includes: Whenever the user instruction is detected, triggering the timer interrupt; Reading a count value of the timer, and using the count value as a serial number of the gap filling strategy; When the number of triggering times of the timer reaches the total number of the gap filling strategy, the timer is cleared.

6. A key signal anti-interference processing device, characterized in that: include: Data setting module, signal sending module, random insertion module and signal matching module; The data setting module is used to pre-set the frame data format of the key signal; wherein each frame data contains a unique identification code; The signal sending module is used to send the key signal based on a user instruction; wherein the key signal includes a preset number of frame data; The random interpolation module is used to interpolate between each frame of data using a random number; The signal matching module is used to control the receiving end to perform signal matching on the received first key signal; wherein, when the first identification code included in the first key signal is consistent with the unique identification code pre-stored in the receiving end, it is determined that the receiving end successfully matches the first key signal.

7. The anti-interference processing device for key signals as claimed in claim 6, characterized in that: The data setting module is used to pre-set the frame data format of the key signal, specifically including: The frame data format includes a guide header, a synchronization header, the unique identification code and ciphertext information in sequence; wherein the guide header is used to instruct the receiving end that receives the user instruction to start sending the key signal, the synchronization header is used to indicate the frame data content to be received by the receiving end next, the unique identification code is used to match the signal with the receiving end, and the ciphertext information is used to indicate the specific instruction operation content of the receiving end.

8. The anti-interference processing device for key signals as claimed in claim 6, characterized in that: Before inserting a random number into each interval of the frame data, the method further comprises: generating a data transmission time required to send a single frame of data based on the number of bits of the frame data and the transmission rate of the key signal; Based on the data transmission time, the data transmission time is expanded and contracted by a preset multiple to generate n-1 random numbers; wherein n is the number of frame data in the key signal.

9. A terminal device, characterized in that: The invention comprises a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, the anti-interference processing method for a key signal as claimed in any one of claims 1 to 5 is implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the anti-interference processing method for the key signal as claimed in any one of claims 1 to 5.