Method and device for checking repetition of rolling codes inside coding chip

By increasing the mapping memory space, the computer operating system memory space is used to map scroll codes, which solves the problem of repeated checking of rolling codes in batch production of coded chips, and achieves fast and accurate repeated detection of rolling codes to ensure the consistency of batches of coded chips.

CN114691538BActive Publication Date: 2025-08-08SUZHOU HUAXIN MICROELECTRONICS
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210376549.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-12
Publication Date
2025-08-08
Estimated Expiration
2042-04-12

AI Technical Summary

Technical Problem

In the mass production process of coded chips, it is difficult for the prior art to quickly and effectively check whether the scroll code is repeated, resulting in the problem of repeated scroll codes in the same batch of coded chips.

Method used

By increasing the mapped memory space and using the memory space of the computer operating system for scroll code mapping, an algorithm that quickly checks the repetition of scroll codes is realized, including obtaining the scroll code, addressing the corresponding mapped memory space and determining whether it is duplicated, and setting bad products or marking the mapped memory space.

Benefits of technology

It realizes rapid and no additional equipment to check the repetition of the rolling code of the coded chip, ensuring that the rolling code of the same batch of coded chips does not repeat, and does not affect other test items.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114691538B_ABST
    Figure CN114691538B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and apparatus for checking for rolling code duplication within an encoding chip. The method comprises the following steps: obtaining the rolling code of the encoding chip; addressing the corresponding mapped memory space based on the rolling code; and determining whether the rolling code is repeated based on the mapped memory space. This method can implement an algorithm for quickly checking for rolling code duplication by increasing the memory space for rolling code mapping. This ensures that rolling codes within the same batch of encoding chips are free of duplication without requiring additional equipment, while also not affecting other test items.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of rolling codes of coding chips, and in particular to a method and device for checking the repetition of rolling codes inside coding chips. Background Art

[0002] Encoder chips are essential components in today's diverse electronic devices. Due to their mature technology and low cost, encoder chips are often used as control circuits for a variety of small and medium-sized electronic products. When encoder chips are used on a large scale, a rolling code is often required to be programmed into the chip to distinguish different instances of the same product. Typical applications include electric vehicle remote controls and garage door remote controls, which primarily utilize single-chip microcomputer control circuits. During mass production of electric vehicles, individual matching of the vehicles and remote controls is required to prevent a single remote control from simultaneously unlocking multiple vehicles or opening multiple remote-controlled doors. Therefore, checking for duplicate rolling codes is particularly important during the encoder chip production and testing phase.

[0003] The information disclosed in this background technology section is only intended to enhance understanding of the overall background of the invention and should not be regarded as an admission or any form of suggestion that the information constitutes the prior art already known to a person skilled in the art. Summary of the Invention

[0004] The purpose of the present invention is to provide a method and device for checking the repetition of rolling codes in an encoding chip, so as to solve the problem of rolling code repetition in existing encoding chips.

[0005] To achieve the above objectives, an embodiment of the present invention provides a method for checking the repetition of rolling codes inside an encoding chip.

[0006] In one or more embodiments of the present invention, the method includes: acquiring a rolling code of an encoding chip; addressing a corresponding mapping memory space according to the rolling code; and determining whether the rolling code is repeated according to the mapping memory space.

[0007] In one or more embodiments of the present invention, the method further includes: detecting whether the rolling code is within a preset detection range; if so, obtaining a mapping memory space of a preset capacity; and initializing the mapping memory space.

[0008] In one or more embodiments of the present invention, addressing the corresponding mapped memory space according to the rolling code includes: calculating the corresponding offset address according to the rolling code; and calculating the mapped memory space address bit corresponding to the encoding chip according to the offset address and the rolling code to address the corresponding mapped memory space.

[0009] In one or more embodiments of the present invention, the method further includes: when the rolling code is repeated, setting the encoding chip corresponding to the rolling code as a defective product; or, when the rolling code is not repeated, setting the mapping memory space to a preset value for marking the rolling code.

[0010] In one or more embodiments of the present invention, the method further includes: when the rolling code is not obtained, setting the encoding chip corresponding to the rolling code as a defective product.

[0011] In another aspect of the present invention, a device for checking the repetition of rolling codes inside an encoding chip is provided, which includes an acquisition module, an addressing module and a judgment module.

[0012] The acquisition module is used to obtain the rolling code of the encoding chip.

[0013] An addressing module is used to address the corresponding mapping memory space according to the rolling code.

[0014] A judging module is configured to judge whether the rolling code is repeated according to the mapped memory space.

[0015] In one or more embodiments of the present invention, the acquisition module is further configured to: detect whether the rolling code is within a preset detection range; if so, acquire a mapping memory space of a preset capacity; and initialize the mapping memory space.

[0016] In one or more embodiments of the present invention, the addressing module is further used to: calculate the corresponding offset address based on the rolling code; and calculate the mapped memory space address bit corresponding to the encoding chip based on the offset address and the rolling code to address the corresponding mapped memory space.

[0017] In one or more embodiments of the present invention, the judgment module is further used to: when the rolling code is repeated, set the encoding chip corresponding to the rolling code as a defective product; or, when the rolling code is not repeated, set the mapping memory space to a preset value for marking the rolling code.

[0018] In one or more embodiments of the present invention, the judgment module is further configured to: when the rolling code is not obtained, set the encoding chip corresponding to the rolling code as a defective product.

[0019] In another aspect of the present invention, an electronic device is provided, comprising: at least one processor; and a memory, wherein the memory stores instructions, which, when executed by the at least one processor, enable the at least one processor to execute the method for checking the repetition of rolling codes inside an encoding chip as described above.

[0020] In another aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for checking the repetition of rolling codes inside an encoding chip are implemented.

[0021] Compared with the prior art, the method and device for checking the repetition of rolling codes inside encoding chips according to the embodiments of the present invention can implement an algorithm for quickly checking the repetition of rolling codes by increasing the memory space for rolling code mapping, so that no additional equipment is required to ensure that the rolling codes of the same batch of encoding chips are not repeated, while not affecting other test items. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 is a flow chart of a method for checking the repetition of rolling codes inside an encoding chip according to an embodiment of the present invention;

[0023] Figure 2 This is a flow chart of a method for checking the repetition of rolling codes in an encoding chip according to an embodiment of the present invention when no rolling code is obtained;

[0024] Figure 3 2 is a structural diagram of a device for checking the repetition of rolling codes inside an encoding chip according to an embodiment of the present invention;

[0025] Figure 4 4 is a hardware structure diagram of a computing device for checking the repetition of rolling codes inside an encoding chip according to an embodiment of the present invention. DETAILED DESCRIPTION

[0026] The specific embodiments of the present invention are described in detail below with reference to the accompanying drawings, but it should be understood that the protection scope of the present invention is not limited by the specific embodiments.

[0027] Unless expressly stated otherwise, throughout the specification and claims, the term "comprise" or variations such as "include" or "comprising", etc., will be understood to include the stated elements or components but not to exclude other elements or other components.

[0028] The technical solutions provided by various embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0029] Example 1

[0030] like Figure 1 As shown, a method for checking the repetition of rolling codes inside an encoding chip in one embodiment of the present invention is introduced, and the method includes the following steps.

[0031] In step S101, the rolling code of the encoding chip is obtained.

[0032] Rolling codes refer to remote control encoding schemes in which a button emits a different code each time it is pressed. Microcontroller chips typically have a maximum rolling code capacity of 32 bits, so the rolling code range to be tested is typically 1 to 4294967296. For large data sets requiring duplicate verification, time-space conversion is required. Because computer memory and test systems can read chip rolling codes very quickly, sufficient memory space is sufficient.

[0033] The total allocated memory space is proportional to the capacity of each individual memory space. Clearly, under current 32 / 64-bit computer operating systems, 4,294,967,296 memory spaces must be allocated, which cannot be fully stored in the stack space and must be stored in the heap space. The minimum individual memory space in a computer system is 1,000 bits. Therefore, in this embodiment, the required mapped memory space is 512MB, which fully meets the capacity requirements.

[0034] Specifically, the system first checks whether the rolling code is within a preset detection range. If so, it obtains a mapped memory space with a preset capacity. The mapped memory space is then initialized, i.e., after the test system is initialized, the designated 512MB memory space is initialized to 0. The system then begins reading the rolling code after all test items have been completed.

[0035] std::vector<unsigned char> MapMem(1024 * 1024 * 512, 0x00).

[0036] In step S102, the corresponding mapping memory space is addressed according to the rolling code.

[0037] The corresponding offset address is calculated according to the rolling code; and the mapping memory space address bit corresponding to the encoding chip is calculated according to the offset address and the rolling code to address the corresponding mapping memory space.

[0038] int nOffSetAddr = (ToAddr - 1) % 8;

[0039] unsigned int nAddr = ((ToAddr - 1 - nOffSetAddr) / 8);

[0040] In step S103, it is determined whether the rolling code is repeated according to the mapped memory space.

[0041] if ((MapMem[nAddr] >> nOffSetAddr) & 0x01)

[0042] When the address bit corresponding to the rolling code has a corresponding mapping memory space, that is, the mapping memory space corresponding to the rolling code is 1, it indicates that the rolling code has been marked and the rolling code of the encoding chip is repeated. Therefore, the encoding chip corresponding to the rolling code is set as a defective product.

[0043] When the address bit corresponding to the rolling code does not have a corresponding mapped memory space, that is, the mapped memory space corresponding to the rolling code is not 1, it indicates that the rolling code is not marked, and the corresponding memory mapped address bit is written 1.

[0044] {MapMem[nAddr] |= (0x01 << nOffSetAddr);

[0045] Example 2

[0046] like Figure 2 As shown, a method for checking the repetition of rolling codes inside an encoding chip in one embodiment of the present invention is introduced, and the method includes the following steps.

[0047] In step S201, the rolling code of the encoding chip is obtained.

[0048] Rolling codes refer to remote control encoding schemes in which a button emits a different code each time it is pressed. Microcontroller chips typically have a maximum rolling code capacity of 32 bits, so the rolling code range to be tested is typically 1 to 4294967296. For large data sets requiring duplicate verification, time-space conversion is required. Because computer memory and test systems can read chip rolling codes very quickly, sufficient memory space is sufficient.

[0049] The total allocated memory space is proportional to the capacity of each individual memory space. Clearly, under current 32 / 64-bit computer operating systems, 4,294,967,296 memory spaces must be allocated, which cannot be fully stored in the stack space and must be stored in the heap space. The minimum individual memory space in a computer system is 1,000 bits. Therefore, in this embodiment, the required mapped memory space is 512MB, which fully meets the capacity requirements.

[0050] Specifically, the system first checks whether the rolling code is within a preset detection range. If so, it obtains a mapped memory space with a preset capacity. The mapped memory space is then initialized, i.e., after the test system is initialized, the designated 512MB memory space is initialized to 0. The system then begins reading the rolling code after all test items have been completed.

[0051] std::vector<unsigned char> MapMem(1024 * 1024 * 512, 0x00).

[0052] In step S202 , when the rolling code is not obtained, the encoding chip corresponding to the rolling code is set as a defective product.

[0053] The specific code is as follows. ToAddr is the rolling code. When the rolling code is not obtained, ToAddr == 0. At this time, the corresponding encoding chip is faulty and the encoding chip is set as a defective product.

[0054] if (ToAddr == 0)

[0055] {return true;}

[0056] like Figure 3 As shown, a device for checking the repetition of rolling codes inside an encoding chip according to a specific embodiment of the present invention is introduced.

[0057] In an embodiment of the present invention, the device for checking the repetition of rolling codes inside an encoding chip includes an acquisition module 301 , an addressing module 302 and a determination module 303 .

[0058] The acquisition module 301 is used to acquire the rolling code of the encoding chip.

[0059] The addressing module 302 is used to address the corresponding mapping memory space according to the rolling code.

[0060] The judging module 303 is configured to judge whether the rolling code has been marked according to the mapped memory space.

[0061] The acquisition module 301 is further configured to: detect whether the rolling code is within a preset detection range; if so, acquire a mapping memory space of a preset capacity; and initialize the mapping memory space.

[0062] The addressing module 302 is further used to: calculate the corresponding offset address according to the rolling code; and calculate the mapping memory space address bit corresponding to the encoding chip according to the offset address and the rolling code, so as to address the corresponding mapping memory space.

[0063] The judgment module 303 is further configured to: when the rolling code is repeated, set the encoding chip corresponding to the rolling code as defective; or when the rolling code is not repeated, set the mapping memory space to a preset value for marking the rolling code.

[0064] The judgment module 303 is further configured to: when the rolling code is not obtained, set the encoding chip corresponding to the rolling code as a defective product.

[0065] Figure 4 FIG. 4 shows a hardware structure diagram of a computing device 40 for checking the repetition of rolling codes inside an encoding chip according to an embodiment of the present specification. Figure 4As shown, the computing device 40 may include at least one processor 401, a memory 402 (e.g., a non-volatile memory), a storage 403, and a communication interface 404, and the at least one processor 401, the storage 402, the storage 403, and the communication interface 404 are connected together via a bus 405. The at least one processor 401 executes at least one computer-readable instruction stored or encoded in the storage 402.

[0066] It should be understood that the computer executable instructions stored in the memory 402, when executed, cause the at least one processor 401 to perform the above combined operations in the various embodiments of this specification. Figure 1-4 Describes the various operations and functions.

[0067] In the embodiments of the present specification, the computing device 40 may include, but is not limited to, a personal computer, a server computer, a workstation, a desktop computer, a laptop computer, a notebook computer, a mobile computing device, a smart phone, a tablet computer, a cellular phone, a personal digital assistant (PDA), a handheld device, a messaging device, a wearable computing device, a consumer electronic device, and the like.

[0068] According to one embodiment, a program product such as a machine-readable medium is provided. The machine-readable medium may have instructions (i.e., the above-mentioned elements implemented in software form), which, when executed by a machine, causes the machine to perform the above-mentioned combined embodiments of the present specification. Figure 1-4 Specifically, a system or device equipped with a readable storage medium can be provided, on which software program codes for implementing the functions of any of the above-mentioned embodiments are stored, and a computer or processor of the system or device can be enabled to read and execute the instructions stored in the readable storage medium.

[0069] According to the method and device for checking the repetition of rolling codes inside an encoding chip according to the embodiment of the present invention, it is possible to implement an algorithm for quickly checking the repetition of rolling codes by increasing the memory space for rolling code mapping, so that no additional equipment is required to ensure that the rolling codes of the same batch of encoding chips are not repeated, while not affecting other test items.

[0070] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0071] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0072] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0073] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0074] The foregoing descriptions of specific exemplary embodiments of the present invention are for purposes of illustration and description. These descriptions are not intended to limit the invention to the precise forms disclosed, and it is apparent that many variations and modifications are possible in light of the foregoing teachings. The exemplary embodiments have been selected and described for the purpose of explaining the specific principles of the invention and their practical application, thereby enabling those skilled in the art to realize and utilize a variety of exemplary embodiments of the invention and various options and modifications. The scope of the invention is intended to be defined by the claims and their equivalents.

Claims

1. A method for checking the repetition of rolling codes inside an encoding chip, characterized in that: The method comprises: Get the rolling code of the encoding chip; Addressing the corresponding mapping memory space according to the rolling code; and Determining whether the rolling code is repeated according to the state of the mapped memory space includes: when the address bit corresponding to the rolling code has a corresponding mapped memory space, that is, the state value of the mapped memory space corresponding to the rolling code is 1, indicating that the rolling code has been marked and the rolling code of the encoding chip is repeated; when the address bit corresponding to the rolling code does not have a corresponding mapped memory space, that is, the state value of the mapped memory space corresponding to the rolling code is not 1, indicating that the rolling code is not marked; Addressing the corresponding mapped memory space according to the rolling code includes: calculating the corresponding offset address according to the rolling code; and calculating the mapped memory space address bit corresponding to the encoding chip according to the offset address and the rolling code to address the corresponding mapped memory space.

2. The method for checking the repetition of rolling codes in an encoding chip according to claim 1, wherein: The method further comprises: Detect whether the rolling code is within the preset detection range; if so, Obtaining a mapped memory space of a preset capacity; and Initialize the mapped memory space.

3. The method for checking the repetition of rolling codes in an encoding chip according to claim 1, wherein: The method further comprises: When the rolling code is repeated, the coding chip corresponding to the rolling code is set as defective; or When the rolling code is not repeated, the mapping memory space state value is set to a preset value for marking the rolling code.

4. The method for checking the repetition of rolling codes in an encoding chip according to claim 1, wherein: The method further comprises: When the rolling code is not obtained, the encoding chip corresponding to the rolling code is set as a defective product.

5. A device for checking the repetition of rolling codes inside an encoding chip, characterized in that: The device comprises: An acquisition module is used to obtain the rolling code of the encoding chip; An addressing module is configured to address a corresponding mapped memory space according to the rolling code, comprising: when a corresponding mapped memory space exists at the address position corresponding to the rolling code, that is, a state value of the mapped memory space corresponding to the rolling code is 1, indicating that the rolling code has been marked and the rolling code of the encoding chip is repeated; when a corresponding mapped memory space does not exist at the address position corresponding to the rolling code, that is, a state value of the mapped memory space corresponding to the rolling code is not 1, indicating that the rolling code has not been marked; The addressing module is further used to: calculate the corresponding offset address according to the rolling code; and calculate the mapping memory space address bit corresponding to the encoding chip according to the offset address and the rolling code, so as to address the corresponding mapping memory space; A judging module is used to judge whether the rolling code is repeated according to the state of the mapped memory space.

6. The device for checking the repetition of rolling codes in an encoding chip according to claim 5, characterized in that: The acquisition module is further configured to: Detect whether the rolling code is within the preset detection range; if so, Obtaining a mapped memory space of a preset capacity; and Initialize the mapped memory space.

7. An electronic device, characterized in that: include: at least one processor; as well as A memory storing instructions, wherein when the instructions are executed by the at least one processor, the at least one processor executes the method for checking the repetition of rolling codes inside an encoding chip according to any one of claims 1 to 4.

8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the method for checking the repetition of rolling codes inside an encoding chip according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • SATA chip signal testing method and system and related assembly

    CN112527578A

  • Method and system for checking unique code verification in semiconductor test

    CN113434570A