CN112732342B - Method and device for initializing USID and electronic equipment - Google Patents

Method and device for initializing USID and electronic equipment Download PDF

Info

Publication number
CN112732342B
CN112732342B CN202011549162.2A CN202011549162A CN112732342B CN 112732342 B CN112732342 B CN 112732342B CN 202011549162 A CN202011549162 A CN 202011549162A CN 112732342 B CN112732342 B CN 112732342B
Authority
CN
China
Prior art keywords
value
usid
mid
pid
original
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011549162.2A
Other languages
Chinese (zh)
Other versions
CN112732342A (en
Inventor
汪兴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Spreadtrum Communications Shanghai Co Ltd
Original Assignee
Spreadtrum Communications Shanghai Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN202011549162.2A priority Critical patent/CN112732342B/en
Publication of CN112732342A publication Critical patent/CN112732342A/en
Priority to PCT/CN2021/131095 priority patent/WO2022134947A1/en
Application granted granted Critical
Publication of CN112732342B publication Critical patent/CN112732342B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers

Abstract

The embodiment of the application provides a method and a device for initializing a USID and electronic equipment. The method comprises the following steps: before initializing a device MIPI register each time, reading a radio frequency drive configuration file and obtaining a rewriting value of a USID device; and rewriting the value of the wrongly written USID device into the rewritten value. According to the method, the error writing of the USID can be corrected, and therefore the problem of device hang-up caused by the error writing of the USID is effectively avoided.

Description

Method and device for initializing USID and electronic equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for initializing a USID, and an electronic device.
Background
As the complexity of radio frequency devices is increasing, radio frequency devices controlled by General-purpose input/output (GPIO) are gradually eliminated, and radio frequency devices controlled by Mobile Industry Processor Interfaces (MIPI) are widely used.
In a practical application scenario, for better control and collision avoidance, an operation of rewriting an identity identification code (USID) is generally performed on each MIPI device. The operation of rewriting the USID is generally divided into two steps:
1) Matching a Product identification code (Product ID, PID), a Manufacturer ID (MID) and a device delivery value;
2) The rewrite operation of the USID is completed by the register.
In the practical use process of the MIPI control radio frequency device, the USID rewriting of the initialization register is frequently operated, and the USID is possibly changed by mistake. In addition, in the actual use process of the radio frequency device, problems such as poor quality of MIPI signals, wrong identification of the device itself, interference and the like also exist, and the USID of the radio frequency device may be wrongly written. And the error writing of the USID can cause the device to be hung up, the restart is invalid, and the battery can be recovered only by shutting down/pulling out the battery.
Disclosure of Invention
Aiming at the problem that the USID is wrongly written in the prior art, the application provides a method and a device for initializing the USID and electronic equipment, and also provides a computer readable storage medium.
The embodiment of the application adopts the following technical scheme:
in a first aspect, the present application provides a method for initializing a USID, including:
before initializing a device MIPI register each time, reading a radio frequency drive configuration file and obtaining a rewriting value of a USID device;
and rewriting the value of the wrongly written USID device into the rewritten value.
In a possible implementation manner of the first aspect, the rewriting the value of the misidentified USID device to the rewritten value includes:
rewriting the values of all USID devices to the rewritten value.
In a possible implementation manner of the first aspect, the rewriting the value of the misidentified USID device to the rewritten value includes:
reading a PID value and an MID value corresponding to the rewritten value in the radio frequency drive configuration file to obtain a PID original value and an MID original value;
reading a PID value and an MID value of a first USID device of which the value of the USID device is the rewritten value, and acquiring a first PID read value and a first MID read value when reading the PID value and the MID value is successful;
rewriting PID values and MID values as USID device values of the PID original values and the MID original values as the rewritten values when the first PID read value is different from the PID original value and/or the first MID read value is different from the MID original value.
In one possible implementation manner of the first aspect, in the reading of the PID value and the MID value by the first USID device whose value of the USID device is the rewritten value, when reading of the PID value and the MID value fails, the values of the USID device whose values are the PID original value and the MID original value are rewritten to the rewritten value.
In a feasible implementation manner of the first aspect, the rewriting the value of the misidentified USID device into the rewritten value further includes:
when the first PID read value is the same as the PID original value and the first MID read value is the same as the MID original value, the value of the first USID device is kept unchanged.
In one possible implementation manner of the first aspect, the overwriting values of the PID value and the MID value as USID devices of the PID original value and the MID original value as the overwritten values when the first PID read value is different from the PID original value and/or the first MID read value is different from the MID original value includes:
the values of all USID devices are rewritten to the rewritten value.
In one possible implementation manner of the first aspect, the rewriting the values of the USID device, in which the PID value and the MID value are the PID original value and the MID original value, as the rewritten values when the first PID read value is different from the PID original value and/or the first MID read value is different from the MID original value, includes:
searching for a second USID device, wherein PID and MID values of the second USID device are the same as the PID and MID original values;
rewriting the value of the second USID device to the rewritten value.
In a second aspect, the present application further provides an apparatus for initializing a USID, including:
the radio frequency drive configuration file reading module is used for reading the radio frequency drive configuration file and obtaining the rewriting value of the USID device before initializing the MIPI register of the device each time;
and the rewriting module is used for rewriting the value of the wrongly written USID device into the rewritten value.
In a third aspect, the present application provides an electronic device comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, trigger the electronic device to perform the method steps as described in embodiments of the present application.
In a fourth aspect, the present application provides an electronic chip for controlling a MIPI radio frequency device, the electronic chip including:
a processor for executing memory-stored computer program instructions, wherein the computer program instructions, when executed by the processor, trigger the electronic chip to perform USID initialization of the MIPI radio frequency device in accordance with the method steps of any one of claims 1 to 8.
In a fifth aspect, the present application provides a computer-readable storage medium having stored thereon a computer program, which, when run on a computer, causes the computer to perform the method of an embodiment of the present application.
According to the technical scheme provided by the embodiment of the application, at least the following technical effects can be realized:
according to the method, the error writing of the USID can be corrected, and therefore the problem of device hang-up caused by the error writing of the USID is effectively avoided.
Drawings
FIG. 1 is a flow diagram illustrating a method for initializing a USID according to one embodiment of the present application;
FIG. 2 is a flow diagram illustrating a method for initializing a USID according to one embodiment of the present application;
FIG. 3 is a flow diagram of a portion of a method for initializing USIDs according to an embodiment of the present application;
fig. 4 is a flowchart of a portion of a method for initializing a USID according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only a few embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terminology used in the description of the embodiments section of the present application is for the purpose of describing particular embodiments of the present application only and is not intended to be limiting of the present application.
Aiming at the problem that the USID is wrongly written in the prior art, the application provides a method for initializing the USID. Specifically, the rewritten value of the USID device may be stored in the radio frequency driver configuration file (MIPI device configuration information), and if the value of the USID device is different from the rewritten value of the USID device stored in the radio frequency driver configuration file, it indicates that the USID is wrongly written. Therefore, before initializing the device MIPI register each time, the rewrite value of the USID device stored in the radio frequency drive configuration file is read, the USID device is corrected based on the read rewrite value, and the wrongly written USID device is rewritten to a correct value (rewrite value). Therefore, the problem of device hang-up possibly caused by error writing of the USID can be effectively avoided.
Fig. 1 is a flowchart illustrating a method for initializing a USID according to an embodiment of the present application. As shown in fig. 1:
step 110, before initializing the MIPI register of the device each time, reading a radio frequency drive configuration file and obtaining a rewriting value of the USID device;
step 120, the value of the misidentified USID device is rewritten to a rewritten value.
Specifically, in an actual application scenario, the possibility of USID is limited, and the USID generally has 0 to F16 values. Thus, in one implementation of step 120, instead of determining whether there is an erroneous write, and not confirming the erroneously written USID device, the values of all USID devices are rewritten to the rewritten values of the USID devices stored in the rf drive profile. In this way, it is ensured that the USID device value must be the correct overwrite value recorded in the rf drive profile.
Further, in one implementation manner of step 120, it is first determined whether the value of the USID device has been wrongly written, and if so, the value of the USID device that has been wrongly written is rewritten to a rewritten value; if no error writing exists, the correction operation of the value of the USID device is not needed, so that the writing frequency of the USID device can be reduced, and the device consumption is reduced.
Further, in an actual application scenario, there is a corresponding relationship between the values of the USID device and the PID and MID of the USID device, which are recorded in the rf driver configuration file. That is, if the values of the USID device's PID, MID, and USID device are consistent with those recorded in the RF driver configuration file, then an indication is made that there is no miswrite. Therefore, in an embodiment of the present application, the values of PID and MID corresponding to the rewritten value of the USID device are read from the rf driver configuration file, and if the value of the USID device is the value of PID and MID of the USID device of the rewritten value and the value of PID and MID corresponding to the rewritten value of the USID device recorded in the rf driver configuration file, the USID device is not wrongly written. On the contrary, if the value of the USID device is the PID and MID values of the USID device with the rewritten value and is not the PID and MID values corresponding to the rewritten value of the USID device recorded in the rf driver configuration file, the USID device has an error writing. Or if the PID and MID values are failed to be read for the USID device with the USID device value as the rewriting value, the USID device is also indicated to have error writing.
Specifically, fig. 2 is a flowchart illustrating a method for initializing a USID according to an embodiment of the present application. As shown in fig. 2:
step 210, before initializing the device MIPI register each time, reading the radio frequency drive configuration file, and obtaining the rewritten value (N) of the USID device, and the PID value (PID _ Original) and the MID value (MID _ Original) corresponding to the rewritten value (N);
step 220, reading a PID value (PID _ Read) and an MID value (MID _ Read) for the USID N device with the value of the USID device being N;
step 221, judging whether reading the PID value (PID _ Read) and the MID value (MID _ Read) is successful;
if the reading is successful, go to step 230, determine whether PID _ origin and MID _ origin are consistent with PID _ Read and MID _ Read;
if the USID device is consistent (PID _ Original is equal to PID _ Read, and MID _ Original is equal to MID _ Read), the USID device is not wrongly written, the value of the USID N device is kept unchanged, and the initialization process is finished.
If PID _ Original and MID _ Original are not consistent with PID _ Read and MID _ Read (PID _ Original is not equal to PID _ Read, and/or MID _ Original is not equal to MID _ Read) in step 230, indicating that there is an error write to the USID device, step 240 is performed to rewrite the values of the USID devices with PID value and MID value as PID _ Original and MID _ Original to a rewritten value N.
Further, if the reading of the PID value (PID _ Read) and the MID value (MID _ Read) fails, it also indicates that the USID device has an error write, and step 240 is performed.
Further, the possibility of USID is limited, and the USID generally has values of 0 to F16. Thus, in one implementation of step 240, the erroneously written USID devices are not confirmed, but rather the values of all USID devices are rewritten to the rewritten value N of the USID devices stored in the rf drive profile. In this way it is ensured that the value of the USID device must be the correct overwrite value recorded in the rf drive profile.
Further, in another implementation of step 240, the erroneously written USID device (the USID device whose PID and MID values are PID and MID original values) is first identified, and then the value of the erroneously written USID device is rewritten to the rewritten value N. Therefore, the rewriting operation can be more pertinent, and the number of the rewritten USID devices is reduced.
Specifically, fig. 3 is a flowchart illustrating a part of a method for initializing a USID according to an embodiment of the present application. In one implementation of step 240, as shown in FIG. 3:
step 310, searching for a USID M device, wherein the PID value and the MID value of the USID M device are the same as the PID _ Original and the MID _ Original;
step 320, the value of the USID M device is rewritten to a rewritten value N.
Specifically, in an implementation manner of step 310, based on a preset value logic, PID values and MID values of all USID devices are read and determined one by one to search the USID M device.
For example, PID value and MID value reading judgment is performed one by one for all USID devices one by one according to the value of the USID device to search the USID M device.
For example, assume that the possible values of USID are 0 to F16 values, and the PID and MID values of USID 5 devices are the same as PID _ Original and MID _ Original.
The PID value and MID value are first read for the USID 0 device.
The PID value and MID value of the USID 0 device are not consistent with PID _ origin and MID _ origin, or if the PID value and MID value are read from the USID 0 device, the PID value and MID value are read from the USID 1 device.
The PID value and MID value of the USID 1 device are not consistent with PID _ origin and MID _ origin, or if the reading of PID value and MID value to the USID 1 device fails, the PID value and MID value are read to the USID 2 device.
By analogy, until after reading the PID and MID values for the USID 5 device, the PID and MID values of the USID 5 device are confirmed to be the same as PID _ Original and MID _ Original. The USID 5 device is the final search result USID M device.
Further, in the scheme of searching all USID devices one by one according to the value of the USID device, assuming that N is smaller than M, in step 130, in the case of confirming the USID M device, the USID N device is read and judged once for the PID value and the MID value, and in steps 220, 221 and 230, the USID N device is read and judged once for the PID value and the MID value. Therefore, in order to avoid repeatedly performing reading and judgment of the PID value and the MID value, in an implementation manner of step 310, the USID N device is used as an initial device, USID devices arranged behind the USID N device are searched one by one according to the value of the USID device, when the search target value is larger than the maximum value of the USID device, the USID 0 device is returned, and the USID 0 device and the USID devices arranged behind the USID 0 device are searched one by one according to the value of the USID device.
For example, assume that the possible values of USID are 0 to F16 values, the PID value and MID value of the USID 9 device are the same as PID _ Original and MID _ Original, and the overwrite value recorded on the rf drive profile is 4.
The PID value and the MID value are first read for the USID 5 device (4+1).
The PID value and MID value of the USID 5 device are not consistent with PID _ origin and MID _ origin, or if reading PID value and MID value of the USID 5 device fails, the PID value and MID value of the USID 6 device are read.
The PID value and MID value of the USID 6 device are not consistent with PID _ origin and MID _ origin, or if reading PID value and MID value of the USID 6 device fails, PID value and MID value are read from the USID 7 device.
By analogy, after reading the PID value and the MID value of the USID 9 device, the PID value and the MID value of the USID 9 device are confirmed to be the same as the PID _ Original and the MID _ Original. The USID 9 device is the final search result USID M device.
For another example, assume that the possible values of USID are 0 to F16 values, PID values and MID values of USID 9 devices are the same as PID _ Original and MID _ Original, and the rewritten value recorded on the rf drive profile is E.
The PID value and the MID value (F + 1) are first read for the USID F device.
The PID value and MID value of the USID F device are not consistent with PID _ origin and MID _ origin, or if the reading of PID value and MID value of the USID F device fails, the PID value and MID value of the USID 0 device are read.
The PID and MID values of the USID 0 device are not consistent with PID _ Original and MID _ Original, or if the PID and MID values are failed to be read from the USID 0 device, the PID and MID values are read from the USID 1 device.
By analogy, after reading the PID value and the MID value of the USID 9 device, the PID value and the MID value of the USID 9 device are confirmed to be the same as the PID _ Original and the MID _ Original. The USID 9 device is the final search result USID M device.
In one implementation of step 310, USID devices are searched one by one in a remainder fashion to confirm USID M devices. Specifically, fig. 4 is a flowchart illustrating a part of a method for initializing a USID according to an embodiment of the present application. In one implementation of step 310, as shown in FIG. 4:
step 400, taking N as an initial value;
step 410, adding 1 to the initial value, and then taking the remainder (Mod (N + +, m)) from the initial value to the total possible value of the USID (for example, 0 to F16 values) to obtain the retrieval value, where the Mod (N + +, m) marks the remainder obtained by taking the remainder from N + + to m, and m is the total possible value of the USID;
step 420, reading the PID value and the MID value of the USID device with the USID device value as the retrieval value (Mod (N + +, m)) to obtain a PID read value and a MID read value;
step 430, judging whether reading the PID value and the MID value is successful;
step 440, when reading the PID value and the MID value is successful, determining whether the PID read value and the MID read value obtained in step 420 are the same as PID _ Original and MID _ Original;
step 450, when the PID read value obtained in step 420 is different from the PID original value and/or the MID read value obtained in step 420 is different from the MID original value, taking the current retrieval value as the initial value when step 410 is executed next time, and returning to step 410;
and step 460, when the PID read value obtained in step 420 is the same as the PID original value and/or the MID read value obtained in step 420 is the same as the MID original value, determining that the value of M is the retrieval value obtained in the last execution of step 410, thereby confirming the final search result USID M device.
Further, in the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by an accessing party. A digital device is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate a dedicated integrated circuit chip. Furthermore, nowadays, instead of manually manufacturing an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as ABEL (Advanced Boolean Expression Language), AHDL (alternate Hardware Description Language), traffic, CUPL (core universal Programming Language), HDCal, jhddl (Java Hardware Description Language), lava, lola, HDL, PALASM, rhyd (Hardware Description Language), and vhigh-Language (Hardware Description Language), which is currently used in most popular applications. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
Therefore, according to the method of the present application, the present application further proposes an apparatus for initializing a USID, the apparatus comprising:
the radio frequency drive configuration file reading module is used for reading the radio frequency drive configuration file and obtaining the rewriting value of the USID device before initializing the MIPI register of the device each time;
and the rewriting module is used for rewriting the value of the wrongly written USID device into a rewritten value in the radio frequency drive configuration file.
In the description of the embodiments of the present application, for convenience of description, the device is described as being divided into various modules by functions, the division of each module is only a division of logic functions, and the functions of each module may be implemented in one or more pieces of software and/or hardware when the embodiments of the present application are implemented.
Specifically, the apparatuses proposed in the embodiments of the present application may be wholly or partially integrated into one physical entity or may be physically separated when actually implemented. And these modules can be realized in the form of software called by processing element; or may be implemented entirely in hardware; and part of the modules can be realized in the form of calling by the processing element in software, and part of the modules can be realized in the form of hardware. For example, the detection module may be a separate processing element, or may be integrated into a chip of the electronic device. Other modules are implemented similarly. In addition, all or part of the modules can be integrated together or can be independently realized. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in the form of software.
For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more Digital Signal Processors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), etc. For another example, these modules may be integrated together and implemented in the form of a System-On-a-Chip (SOC).
For example, an embodiment of the present application further provides an electronic chip, where the electronic chip is used to control a MIPI radio frequency device, and the electronic chip includes:
and a processor for executing the computer program instructions stored in the memory, wherein when the computer program instructions are executed by the processor, the electronic chip is triggered to perform USID initialization on the MIPI radio frequency device according to the method steps described in the embodiment of the present application.
Further, the memory storing the computer program instructions may be an internal memory of the electronic chip itself, or an external memory.
For example, an embodiment of the present application further provides a baseband chip, where the baseband chip is used to control the MIPI radio frequency device. The baseband chip has a memory and a processor built therein. The memory of the baseband chip is loaded with a program code that can implement the method flow described in the embodiments of the present application. The processor of the baseband chip calls and runs the program code loaded by the memory, and the USID initialization can be performed on the MIPI radio-frequency device according to the method flow described in the embodiment of the application.
An embodiment of the present application also proposes an electronic device comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, trigger the electronic device to perform the method steps as described in the embodiments of the present application.
In particular, in an embodiment of the present application, the one or more computer programs are stored in the memory, and the one or more computer programs include instructions that, when executed by the apparatus, cause the apparatus to perform the method steps described in the embodiment of the present application.
Specifically, in an embodiment of the present application, the processor of the electronic device may be an on-chip device SOC, and the processor may include a Central Processing Unit (CPU), and may further include other types of processors. Specifically, in an embodiment of the present application, the processor of the electronic device may be a PWM control chip.
Specifically, in an embodiment of the present application, the processors may include, for example, a CPU, a DSP, a microcontroller, or a digital Signal processor, and may further include a GPU, an embedded Neural-Network Processor (NPU), and an Image Signal Processing (ISP), and the processors may further include necessary hardware accelerators or logic Processing hardware circuits, such as an ASIC, or one or more integrated circuits for controlling the execution of the program according to the present application. Further, the processor may have the functionality to operate one or more software programs, which may be stored in the storage medium.
Specifically, in one embodiment of the present application, the memory of the electronic device may be a read-only memory (ROM), other types of static memory devices that can store static information and instructions, a Random Access Memory (RAM), or other types of dynamic memory devices that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), a magnetic disc storage medium, or other magnetic storage devices, or any computer-readable medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
In particular, in an embodiment of the present application, the processor and the memory may be combined into a processing device, and more generally, independent components, and the processor is configured to execute the program code stored in the memory to implement the method described in the embodiment of the present application. In particular implementations, the memory may be integrated within the processor or may be separate from the processor.
Further, the apparatuses, devices, and modules described in the embodiments of the present application may be implemented by a computer chip or an entity, or by a product with certain functions.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, 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 embodied on one or more computer-usable storage media having computer-usable program code embodied in the medium.
In the several embodiments provided in the present application, any function, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application.
Specifically, an embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the method provided by the embodiment of the present application.
An embodiment of the present application further provides a computer program product, which includes a computer program, when it runs on a computer, causes the computer to execute the method provided by the embodiment of the present application.
The embodiments herein are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices), and computer program products according to embodiments herein. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In the embodiments of the present application, "at least one" means one or more, "and" a plurality "means two or more. "and/or" describes the association relationship of the associated objects, and means that there may be three relationships, for example, a and/or B, and may mean that a exists alone, a and B exist simultaneously, and B exists alone. Wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" and similar expressions refer to any combination of these items, including any combination of singular or plural items. For example, at least one of a, b, and c may represent: a, b, c, a and b, a and c, b and c or a and b and c, wherein a, b and c can be single or multiple.
In the embodiments of the present application, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present application are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for relevant points.
Those of ordinary skill in the art will appreciate that the various elements and algorithm steps described in the embodiments disclosed herein may be implemented as electronic hardware, a combination of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The above description is only for the specific embodiments of the present application, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present disclosure, and all the changes or substitutions should be covered by the protection scope of the present application. The protection scope of the present application shall be subject to the protection scope of the claims.

Claims (9)

1. A method of initializing a USID, comprising:
before initializing a device MIPI register each time, reading a radio frequency drive configuration file and obtaining a rewriting value of a USID device;
rewriting the value of the misidentified USID device to the rewritten value, comprising:
reading a PID value and an MID value corresponding to the rewritten value in the radio frequency drive configuration file to obtain a PID original value and an MID original value; reading a PID value and an MID value for a first USID device of which the value of the USID device is the rewritten value, and acquiring a first PID read value and a first MID read value when reading the PID value and the MID value successfully; rewriting PID values and MID values as USID device values of the PID original values and the MID original values as the rewritten values when the first PID read value is different from the PID original value and/or the first MID read value is different from the MID original value.
2. The method according to claim 1, wherein in the reading of the PID value and the MID value by the first USID device whose value to the USID device is the rewritten value, when reading of the PID value and the MID value fails, the values of the USID device whose values are the PID original value and the MID original value are rewritten to the rewritten value.
3. The method of claim 1 or 2, wherein rewriting the value of the misidentified USID device to the rewritten value further comprises:
when the first PID read value is the same as the PID original value and the first MID read value is the same as the MID original value, the value of the first USID device is kept unchanged.
4. The method as claimed in claim 1 or 2, wherein the overwriting of the PID value and MID value as values of USID devices of the PID original value and MID original value as the overwritten values when the first PID read value is different from the PID original value and/or the first MID read value is different from the MID original value comprises:
the values of all USID devices are rewritten to the rewritten value.
5. The method according to claim 1 or 2, wherein the overwriting the PID value and the MID value as values of USID devices of the PID original value and the MID original value as the overwritten values when the first PID read value is different from the PID original value and/or the first MID read value is different from the MID original value comprises:
searching a second USID device, wherein the PID value and the MID value of the second USID device are the same as the PID original value and the MID original value;
rewriting the value of the second USID device to the rewritten value.
6. An apparatus for initializing a USID, comprising:
the radio frequency drive configuration file reading module is used for reading the radio frequency drive configuration file and obtaining the rewriting value of the USID device before initializing the MIPI register of the device each time;
a rewrite module for rewriting a value of an erroneously written USID device to the rewritten value, comprising:
reading a PID value and an MID value corresponding to the rewritten value in the radio frequency drive configuration file to obtain a PID original value and an MID original value; reading a PID value and an MID value for a first USID device of which the value of the USID device is the rewritten value, and acquiring a first PID read value and a first MID read value when reading the PID value and the MID value successfully; rewriting PID and MID values as the values of the USID devices of the PID original value and the MID original value as the rewritten values when the first PID read value is different from the PID original value and/or the first MID read value is different from the MID original value.
7. An electronic device, characterized in that the electronic device comprises a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, trigger the electronic device to perform the method steps of any of claims 1-5.
8. An electronic chip, wherein the electronic chip is used for controlling a MIPI radio-frequency device, and the electronic chip comprises:
a processor for executing memory-stored computer program instructions, wherein the computer program instructions, when executed by the processor, trigger the electronic chip to perform USID initialization of the MIPI radio frequency device in accordance with the method steps of any one of claims 1 to 5.
9. A computer-readable storage medium, in which a computer program is stored which, when run on a computer, causes the computer to carry out the method according to any one of claims 1-5.
CN202011549162.2A 2020-12-24 2020-12-24 Method and device for initializing USID and electronic equipment Active CN112732342B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011549162.2A CN112732342B (en) 2020-12-24 2020-12-24 Method and device for initializing USID and electronic equipment
PCT/CN2021/131095 WO2022134947A1 (en) 2020-12-24 2021-11-17 Method and apparatus for initializing usid, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011549162.2A CN112732342B (en) 2020-12-24 2020-12-24 Method and device for initializing USID and electronic equipment

Publications (2)

Publication Number Publication Date
CN112732342A CN112732342A (en) 2021-04-30
CN112732342B true CN112732342B (en) 2022-12-30

Family

ID=75605297

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011549162.2A Active CN112732342B (en) 2020-12-24 2020-12-24 Method and device for initializing USID and electronic equipment

Country Status (2)

Country Link
CN (1) CN112732342B (en)
WO (1) WO2022134947A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112732342B (en) * 2020-12-24 2022-12-30 展讯通信(上海)有限公司 Method and device for initializing USID and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3032752A1 (en) * 2014-12-12 2016-06-15 Intel Corporation Apparatus, system and method for allocating identifiers to components of a control system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8825908B2 (en) * 2010-06-15 2014-09-02 Intel Mobile Communications GmbH Method of identifying devices on a bus and apparatus
US20120303836A1 (en) * 2011-05-23 2012-11-29 Rf Micro Devices, Inc. Slave id configuration
US8775714B2 (en) * 2012-01-30 2014-07-08 Infineon Technologies Ag System and method for a bus interface
US10582359B2 (en) * 2016-03-07 2020-03-03 Matrics2, Inc. System, apparatus, and method for forming a secured network using tag devices having a random identification number associated therewith
CN107257294A (en) * 2017-05-31 2017-10-17 宇龙计算机通信科技(深圳)有限公司 A kind of device collocation method and device
CN108718192B (en) * 2018-06-12 2024-03-05 江苏卓胜微电子股份有限公司 Data signal detection device, MIPI RFFE equipment and system
CN112732342B (en) * 2020-12-24 2022-12-30 展讯通信(上海)有限公司 Method and device for initializing USID and electronic equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3032752A1 (en) * 2014-12-12 2016-06-15 Intel Corporation Apparatus, system and method for allocating identifiers to components of a control system

Also Published As

Publication number Publication date
WO2022134947A1 (en) 2022-06-30
CN112732342A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
US7565523B2 (en) Apparatus and method for restoring master boot record infected with virus
CN112732342B (en) Method and device for initializing USID and electronic equipment
US20230084523A1 (en) Data Processing Method and Device, and Storage Medium
EP4345611A1 (en) Bootloader loading method, apparatus and system, electronic device and medium
US6925522B2 (en) Device and method capable of changing codes of micro-controller
CN111797390A (en) Program running method and device, electronic equipment and computer readable storage medium
US6704865B1 (en) Microprocessor conditional deterministic reset vector method
CN110192178B (en) Program patching method and device, micro control unit and terminal equipment
US11307795B2 (en) Electronic processing devices and memory control methods thereof
US10162728B2 (en) Method and device for monitoring the execution of a program code
CN116107639A (en) Register renaming and instruction decoding method and device, processor and electronic equipment
US11681601B2 (en) Application program management method and apparatus, and storage medium
US7203867B2 (en) Processor system, processor and arithmetic processing method
US10289808B2 (en) Method and system for secure data processing
CN111930417A (en) Method, device, terminal and medium for identifying Flash by GPU firmware
CN109634766B (en) Method, device, equipment and storage medium for improving operation efficiency of data flow machine
CN112416444A (en) Board switching control method, device, equipment and medium
US7353343B2 (en) Memory management system for preventing program execution when CPU fetches execution code from unoccupied region of memory
CN107451050B (en) Function acquisition method and device and server
KR20080044652A (en) Method for debugging by using stack of cpu
CN107621940B (en) Method for updating initialization program and electronic equipment
KR102552666B1 (en) Electronic device and operation method thereof
CN114625403A (en) Application thermal recovery method, device, equipment and storage medium
CN115827347A (en) Control method of embedded equipment and embedded equipment
CN113127247A (en) Data acquisition method, system, device and medium

Legal Events

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