Method and device for automatically repairing receiving chip

By detecting and repairing anomalies in the target register of the receiving chip, the problem of register value changes in high-frequency receiving chips under extreme conditions is solved, automatic repair is achieved, and the stability and efficiency of the receiving function are ensured.

CN120994434APending Publication Date: 2025-11-21BEIJING JINGWEI HIRAIN TECH CO INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510998371.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-18
Publication Date
2025-11-21

AI Technical Summary

Technical Problem

In extreme cases, the register values ​​of high-frequency receiver chips can be easily altered, causing the ECU module to lose its remote control function. Current technology cannot recover this function on its own, which affects the automotive customer experience.

Method used

By determining the target register corresponding to the receiving function in the receiving chip, initializing the register error count value, and sequentially detecting and repairing according to the error count value, including restoring or resetting the chip, automatic repair is achieved.

Benefits of technology

Automatic repair of the receiving chip is achieved without power interruption and re-powering, improving the efficiency of anomaly repair and ensuring the normal operation of the receiving function.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120994434A_ABST
    Figure CN120994434A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an automatic repair method and device for a receiving chip. The method comprises the following steps: determining a target register corresponding to a receiving function in the receiving chip; initializing register error count values, and taking the first target register as a current register according to a preset query sequence of each target register; detecting whether the current register is abnormal or not; when the current register is abnormal, updating the register error count value, and repairing the receiving chip by adopting a corresponding processing mode according to the register error count value; and when the current register is not abnormal, judging whether the current register is the last register or not, if not, taking the next register as the current register according to the query sequence, and returning to execute the step of detecting whether the current register is abnormal or not. By applying the scheme provided by the embodiment of the invention, automatic repair of the receiving chip can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of receiver chip technology, and more specifically, to a method and apparatus for automatic repair of receiver chips. Background Technology

[0002] High-frequency receiver chips require configuration registers to set up the chip, which determines the frequency band, rate, format, and other attributes of the received radio frequency signals. Therefore, for vehicle remote control ECUs (Electronic Control Units), ensuring the accuracy of the register values ​​within the chip is crucial, as it will affect whether the chip's receiving function is normal.

[0003] The registers of a high-frequency receiver chip remain unchanged when there is no power loss and no operation. However, in practical applications, under extreme conditions such as high and low temperatures and electromagnetic interference, the register values ​​may be altered, causing the ECU module to lose its remote control function. Furthermore, it lacks an automatic recovery function; it can only fully recover by powering off and on again. This is accompanied by symptoms such as the vehicle not responding when the remote control is pressed, and abnormal tire pressure monitoring, resulting in a poor user experience for automotive end-users. Therefore, how to automatically repair the receiver chip has become a pressing technical problem to be solved. Summary of the Invention

[0004] This application provides an automatic repair method and apparatus for receiver chips, for automatically repairing receiver chips. The specific technical solution is as follows.

[0005] In a first aspect, embodiments of this application provide an automatic repair method for a receiver chip, the method comprising:

[0006] Determine the target register corresponding to the receiving function in the receiving chip;

[0007] Initialize the register error count value, and according to the preset query order of each of the target registers, use the first target register as the current register;

[0008] Detect whether there is an anomaly in the current register;

[0009] When the current register is abnormal, the register error count is updated, and the receiving chip is repaired according to the corresponding processing method based on the register error count.

[0010] If the current register does not have any abnormalities, determine whether the current register is the last register. If not, take the next register as the current register according to the query order, and return to execute the step of detecting whether the current register has any abnormalities.

[0011] As one embodiment of this application, the step of repairing the receiving chip using a corresponding processing method based on the register error count value includes:

[0012] When the register error count is less than or equal to a preset threshold, the current register is restored; and it is determined whether the current register is the last register. If not, the next register is taken as the current register according to the query order, and the process returns to the step of detecting whether the current register has an anomaly.

[0013] When the register error count value is greater than the preset threshold, the receiver chip is reset and initialized.

[0014] As one embodiment of this application, after determining whether the current register is the last register, the method further includes:

[0015] If so, query the receiving status of the receiving chip, and repair the receiving chip if the receiving status is abnormal.

[0016] As one embodiment of this application, the step of querying the reception status of the receiving chip and repairing the receiving chip when the reception status is abnormal includes:

[0017] Query the receiving status of the receiving chip. If the receiving status is not Receive, reset and initialize the receiving chip.

[0018] As one embodiment of this application, the step of detecting whether the current register is abnormal includes:

[0019] Obtain the correct value of the pre-stored current register and determine the current value of the current register;

[0020] When the current value and the correct value are inconsistent, it is determined that there is an anomaly in the current register.

[0021] Secondly, embodiments of this application provide an automatic repair device for a receiver chip, the device comprising:

[0022] The register determination module is used to determine the target register corresponding to the receiving function in the receiving chip;

[0023] An initialization module is used to initialize the register error count value and, according to the preset query order of the target registers, to use the first target register as the current register;

[0024] An anomaly detection module is used to detect whether there is an anomaly in the current register;

[0025] The anomaly repair module is used to update the register error count value when the current register has an anomaly, and to repair the receiving chip by adopting the corresponding processing method according to the register error count value;

[0026] The register lookup module is used to determine whether the current register is the last register when there is no abnormality in the current register. If not, the next register is taken as the current register according to the lookup order, and the abnormality detection module is triggered.

[0027] As one embodiment of this application, the anomaly repair module is specifically used for:

[0028] When the register error count is less than or equal to a preset threshold, the current register is restored; and it is determined whether the current register is the last register. If not, the next register is taken as the current register according to the query order, and the anomaly detection module is triggered.

[0029] When the register error count value is greater than the preset threshold, the receiver chip is reset and initialized.

[0030] As one embodiment of this application, the apparatus further includes:

[0031] The chip status query module is used to query the receiving status of the receiving chip after the anomaly repair module or the register query module determines that the current register is the last register, and to repair the receiving chip if there is an anomaly in the receiving status.

[0032] As one embodiment of this application, the chip status query module is specifically used for:

[0033] Query the receiving status of the receiving chip. If the receiving status is not Receive, reset and initialize the receiving chip.

[0034] As one embodiment of this application, the anomaly detection module is specifically used for:

[0035] Obtain the correct value of the pre-stored current register and determine the current value of the current register;

[0036] When the current value and the correct value are inconsistent, it is determined that there is an anomaly in the current register.

[0037] In this embodiment, anomaly detection can be performed sequentially on the target registers corresponding to the receiving function in the receiving chip. When an abnormal register is detected, the receiving chip is repaired in a corresponding manner according to the number of abnormal registers. In other words, automatic repair can be achieved without powering the receiving chip back on and off. Furthermore, after anomaly detection of the registers, the receiving status of the receiving chip can be queried, thereby enabling a comprehensive inspection of the receiving chip and ensuring the normal operation of its receiving function. Attached Figure Description

[0038] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are merely some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without any creative effort.

[0039] Figure 1 A flowchart illustrating an automatic repair method for a receiver chip provided in an embodiment of this application is shown.

[0040] Figure 2 This is a schematic diagram of the overall process of the automatic repair method for the receiving chip provided in the embodiments of this application;

[0041] Figure 3 A schematic diagram of the structure of an automatic repair device for a receiver chip provided in an embodiment of this application is shown. Detailed Implementation

[0042] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.

[0043] It should be noted that the terms "comprising" and "having," and any variations thereof, in the embodiments and accompanying drawings of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the steps or units listed, 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.

[0044] This application discloses an automatic repair method and apparatus for receiver chips, which can automatically repair receiver chips. The embodiments of this application are described in detail below.

[0045] Figure 1 This document illustrates a flowchart of an automatic repair method for a receiver chip provided in an embodiment of this application. Figure 1 As shown, the method includes the following steps:

[0046] S110: Determine the target register for the corresponding receiving function in the receiving chip.

[0047] Typically, a receiver chip may include multiple registers, and each register has a slightly different function. It is understood that only the register corresponding to the receiving function affects the receiver chip's receiving capability. Therefore, in this embodiment, each register in the receiver chip corresponding to the receiving function can be identified as a target register. Anomalies in each target register can be detected and repaired, thereby restoring the receiver chip's receiving capability. For example, multiple target registers affecting the RF receiving function can be identified by querying the chip configuration sheet.

[0048] S120: Initialize the register error count value and, according to the preset query order of each target register, use the first target register as the current register.

[0049] It is understandable that various abnormal situations may exist in multiple target registers. Specifically, only a few registers may be abnormal, or most registers may be abnormal. Correspondingly, the causes of the abnormalities are also different. When a few registers are abnormal, it may simply be due to abnormal data in the register itself, or a general chip problem caused by minor extreme conditions such as high or low temperatures or electromagnetic interference. However, when most registers are abnormal, it is very likely that the receiving chip has encountered a more serious extreme condition, resulting in a serious chip problem.

[0050] In this embodiment, to improve repair efficiency, different repair methods can be used to repair the receiving chip for different abnormal situations, i.e., different numbers of registers experiencing abnormalities. Therefore, while performing abnormality detection on each target register sequentially, the number of registers experiencing abnormalities can be counted simultaneously, which can be called the register error count.

[0051] Specifically, you can first initialize the register error count value, such as setting it to 0, and then, according to the preset query order of each target register, use the first target register as the current register to perform error detection on the first target register.

[0052] In one implementation, when the number of target registers is N, a query array Reg[n] can be generated in RAM (Random Access Memory), and the first register queried is Reg1.

[0053] S130: Check if there is an anomaly in the current register.

[0054] For each target register, there is a corresponding correct value. In this embodiment, the correct value of each target register can be pre-stored. Therefore, when performing anomaly detection on the current register, the pre-stored correct value of the current register can be obtained, and the current value of the current register can be determined. If the current value and the correct value are inconsistent, it is determined that the current register is abnormal.

[0055] S140: When there is an error in the current register, update the register error count and use the corresponding processing method to repair the receiving chip according to the register error count.

[0056] When an anomaly is detected in the current register, the register error count can be updated first, for example, by incrementing the register error count by 1. Furthermore, based on the register error count, a corresponding processing method can be used to repair the receiving chip. For instance, based on the pre-stored correct values ​​of each target register, if the register error count is low, only the current register can be reassigned; if the register error count is high, each target register can be reassigned.

[0057] In one implementation, when the register error count is less than or equal to a preset threshold, it indicates that there may only be an anomaly in the register data itself, or a general chip problem caused by minor extreme conditions such as high or low temperatures or electromagnetic interference. In this case, only the current register can be restored, and then the driver interface can be called to restore the chip's receiving function. After restoring the current register, it can be further determined whether the current register is the last register. If not, the next register is taken as the current register according to the query order, and the process of checking whether the current register has an anomaly is returned, until the current register is the last register, indicating that anomaly detection has been performed on all registers. In this case, the anomaly detection of the registers ends.

[0058] When the register error count exceeds a preset threshold, it indicates that the receiver chip may have encountered a serious problem due to a severe extreme condition. In this case, the receiver chip can be reset and initialized. In other words, when the receiver chip has a serious problem, it can be fully initialized to fix all issues.

[0059] S150: When there is no exception in the current register, determine whether the current register is the last register. If not, take the next register as the current register according to the query order, and return to step S130 to check whether there is an exception in the current register.

[0060] If there is no exception in the current register, it can be determined whether the current register is the last register. If not, it means that not all registers have been checked. In this case, the next register can be used as the current register according to the query order, and the process can return to step S130 to check whether there is an exception in the current register. If the current register is the last register, it means that all registers have been checked for exceptions, and the register exception check ends.

[0061] In this embodiment, anomaly detection can be performed sequentially on the target registers corresponding to the receiving function in the receiving chip. When an abnormal register is detected, the receiving chip is repaired in a corresponding manner based on the number of abnormal registers. In other words, automatic repair can be achieved without powering the receiving chip back on and off. Furthermore, repairing the receiving chip in a corresponding manner based on the number of abnormal registers improves the anomaly repair efficiency of the receiving chip while ensuring stable recovery. In addition, detecting one current register per cycle, i.e., performing anomaly detection in cycles, has minimal impact on the operating load rate. Moreover, the above diagnostic logic can be widely used for most RF chips, and it can also be applied to chips with internal state storage with slight modifications, thus improving the applicability of automatic repair of the receiving chip.

[0062] exist Figure 1 Based on the illustrated embodiment, as an implementation of this application, after determining that the current register is the last register, that is, after performing anomaly detection on all target registers, the receiving status of the receiving chip can be further detected to confirm whether the receiving status of the receiving chip is normal.

[0063] Specifically, the receiving chip's receiving status can be queried, and the receiving chip can be repaired if an anomaly is found. For example, in one implementation, if the Receive state is normal, then a non-Receive state indicates an abnormal receiving chip status. In this case, the receiving chip can be reset and initialized to restore its normal receiving function. After resetting and initializing the receiving chip, or when the receiving chip's receiving status is determined to be normal, it indicates that both the registers and the receiving chip have completed their checks in the current cycle, and the next cycle can begin.

[0064] In this embodiment, after performing anomaly detection on the register, the receiving status of the receiving chip can be further queried, thereby enabling a comprehensive test of the receiving chip and ensuring that the receiving function of the receiving chip operates normally.

[0065] The automatic repair method for the receiver chip provided in this application will be described below with reference to a specific embodiment.

[0066] The main anomalies of high-frequency receiver chips can be categorized into two types: register data anomalies and chip self-state anomalies. To address this, a background monitoring interface can be provided in the software to identify the cause of the fault and perform specific recovery measures based on the specific circumstances. In this embodiment, the registers and chip state can be read through the software interface and compared with the correct state stored in the software to determine the specific anomaly and repair it. Specifically, this may include the following situations:

[0067] Scenario 1: When more than 10% of registers are found to be faulty, the chip is considered to have a serious problem, and the corresponding handling method is to reinitialize the chip.

[0068] Scenario 2: When less than 10% of register errors are detected, the chip is considered to have a general problem. Only the faulty registers are repaired to restore the chip's receiving function.

[0069] Scenario 3: When an abnormal state of the chip is detected, it is considered that the chip has a serious problem, and the corresponding handling method is to reinitialize the chip.

[0070] For cases one and three, which are defined as serious problems, the software will allocate bus resources for reinitialization. The time required to restore each register one by one is Tcycle*N (where N is the total number of registers and Tcycle is the recovery cycle time of a single register). Reinitialization is faster, taking only 15% of the time required for individual restoration, that is, Tcycle*N*15% is enough to restore the high-frequency reception function.

[0071] For scenario two, a general problem, recovery can be achieved within m cycles (where m is the number of faulty registers), taking Tcycle*n time, resulting in faster and more targeted recovery.

[0072] refer to Figure 2 The overall repair process is as follows:

[0073] 1. The software identifies N key registers that affect the RF receiving function through the chip configuration sheet.

[0074] 2. Based on the key registers identified in step 1, generate a query array Reg[n] in RAM.

[0075] 3. Query the first register Reg1 and compare it with the preset correct value. If there is no problem, skip this cycle; if there is a problem, only restore that register, and the error count is recorded in the background. err It then calls the driver interface to restore the chip's receiving function.

[0076] 4. In the next software cycle, follow step 3 to query the second register Reg2, and so on.

[0077] 5. Monitor the error count every cycle. When the error count is detected... err When the value is greater than N*10%, the chip is reset and fully initialized.

[0078] 6. Following steps 4 and 5, the last register Reg of the data is detected sequentially. n .

[0079] 7. Check the status of the high-frequency receiver chip. Skip the normal receiving state; other states are considered chip malfunctions, and the chip is reset and reinitialized. This part is related to the specific high-frequency receiver chip mode and can be adjusted according to the actual situation. For example, in one implementation, the Receive state is the normal receiving state; the Idle state is the initial state after power-on, with no receiving function; and the Standby state is the low-power state, with no receiving function.

[0080] 8. Following steps 2-7, the chip will run for an extended period during its lifecycle to monitor the chip and restore its functionality.

[0081] The above register check process, running at the Fbasic clock frequency, takes approximately (1 / Fbasic)*400 seconds per cycle. The query operation within the Tcycle cycle has a load rate of (1 / Fbasic)*400 / Tcycle. Generally, a software load rate greater than 80% is considered a poor software state; however, the load rate of this function is far less than 80%.

[0082] Figure 3 This illustration shows a schematic diagram of an automatic repair device for a receiver chip according to an embodiment of this application. The device includes:

[0083] Register determination module 310 is used to determine the target register in the receiving chip corresponding to the receiving function;

[0084] The initialization module 320 is used to initialize the register error count value and, according to the preset query order of each of the target registers, to use the first target register as the current register;

[0085] Anomaly detection module 330 is used to detect whether there is an anomaly in the current register;

[0086] The anomaly repair module 340 is used to update the register error count value when the current register has an anomaly, and to repair the receiving chip by adopting the corresponding processing method according to the register error count value.

[0087] The register query module 350 is used to determine whether the current register is the last register when there is no abnormality in the current register. If not, the next register is used as the current register according to the query order, and the abnormality detection module 330 is triggered.

[0088] As one embodiment of this application, the anomaly repair module 340 is specifically used for:

[0089] When the register error count is less than or equal to a preset threshold, the current register is restored; and it is determined whether the current register is the last register. If not, the next register is taken as the current register according to the query order, and the anomaly detection module is triggered.

[0090] When the register error count value is greater than the preset threshold, the receiver chip is reset and initialized.

[0091] As one embodiment of this application, the apparatus further includes:

[0092] The chip status query module is used to query the receiving status of the receiving chip after the anomaly repair module 340 or the register query module 350 determines that the current register is the last register, and to repair the receiving chip if there is an anomaly in the receiving status.

[0093] As one embodiment of this application, the chip status query module is specifically used for:

[0094] Query the receiving status of the receiving chip. If the receiving status is not Receive, reset and initialize the receiving chip.

[0095] As one embodiment of this application, the anomaly detection module 330 is specifically used for:

[0096] Obtain the correct value of the pre-stored current register and determine the current value of the current register;

[0097] When the current value and the correct value are inconsistent, it is determined that there is an anomaly in the current register.

[0098] In this embodiment, anomaly detection can be performed sequentially on the target registers corresponding to the receiving function in the receiving chip. When an abnormal register is detected, the receiving chip is repaired in a corresponding manner according to the number of abnormal registers. In other words, automatic repair can be achieved without powering the receiving chip back on and off. Furthermore, after anomaly detection of the registers, the receiving status of the receiving chip can be queried, thereby enabling a comprehensive inspection of the receiving chip and ensuring the normal operation of its receiving function.

[0099] Those skilled in the art will understand that the accompanying drawings are merely schematic diagrams of one embodiment, and the modules or processes shown in the drawings are not necessarily essential for implementing this application.

[0100] Those skilled in the art will understand that the modules in the apparatus of the embodiments can be distributed in the apparatus of the embodiments as described in the embodiments, or they can be located in one or more devices different from this embodiment with corresponding changes. The modules of the above embodiments can be combined into one module, or they can be further divided into multiple sub-modules.

[0101] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. An automatic repair method for a receiver chip, characterized in that, The method includes: Determine the target register corresponding to the receiving function in the receiving chip; Initialize the register error count value, and according to the preset query order of each of the target registers, use the first target register as the current register; Detect whether there is an anomaly in the current register; When the current register is abnormal, the register error count is updated, and the receiving chip is repaired according to the corresponding processing method based on the register error count. If the current register does not have any abnormalities, determine whether the current register is the last register. If not, take the next register as the current register according to the query order, and return to execute the step of detecting whether the current register has any abnormalities.

2. The method according to claim 1, characterized in that, The step of repairing the receiving chip using the corresponding processing method based on the register error count value includes: When the register error count is less than or equal to a preset threshold, the current register is restored; and it is determined whether the current register is the last register. If not, the next register is taken as the current register according to the query order, and the process returns to the step of detecting whether the current register has an anomaly. When the register error count value is greater than the preset threshold, the receiver chip is reset and initialized.

3. The method according to claim 2, characterized in that, After determining whether the current register is the last register, the method further includes: If so, query the receiving status of the receiving chip, and repair the receiving chip if the receiving status is abnormal.

4. The method according to claim 3, characterized in that, The step of querying the reception status of the receiving chip and repairing the receiving chip when the reception status is abnormal includes: Query the receiving status of the receiving chip. If the receiving status is not Receive, reset and initialize the receiving chip.

5. The method according to any one of claims 1-4, characterized in that, The step of detecting whether the current register is abnormal includes: Obtain the correct value of the pre-stored current register and determine the current value of the current register; When the current value and the correct value are inconsistent, it is determined that there is an anomaly in the current register.

6. An automatic repair device for a receiver chip, characterized in that, The device includes: The register determination module is used to determine the target register corresponding to the receiving function in the receiving chip; An initialization module is used to initialize the register error count value and, according to the preset query order of the target registers, to use the first target register as the current register; An anomaly detection module is used to detect whether there is an anomaly in the current register; The anomaly repair module is used to update the register error count value when the current register has an anomaly, and to repair the receiving chip by adopting the corresponding processing method according to the register error count value; The register lookup module is used to determine whether the current register is the last register when there is no abnormality in the current register. If not, the next register is taken as the current register according to the lookup order, and the abnormality detection module is triggered.

7. The apparatus according to claim 6, characterized in that, The anomaly repair module is specifically used for: When the register error count is less than or equal to a preset threshold, the current register is restored; and it is determined whether the current register is the last register. If not, the next register is taken as the current register according to the query order, and the anomaly detection module is triggered. When the register error count value is greater than the preset threshold, the receiver chip is reset and initialized.

8. The apparatus according to claim 7, characterized in that, The device further includes: The chip status query module is used to query the receiving status of the receiving chip after the anomaly repair module or the register query module determines that the current register is the last register, and to repair the receiving chip if there is an anomaly in the receiving status.

9. The apparatus according to claim 8, characterized in that, The chip status query module is specifically used for: Query the receiving status of the receiving chip. If the receiving status is not Receive, reset and initialize the receiving chip.

10. The apparatus according to any one of claims 6-9, characterized in that, The anomaly detection module is specifically used for: Obtain the correct value of the pre-stored current register and determine the current value of the current register; When the current value and the correct value are inconsistent, it is determined that there is an anomaly in the current register.