WO2022134947A1 - 一种初始化usid的方法、装置和电子设备 - Google Patents

一种初始化usid的方法、装置和电子设备 Download PDF

Info

Publication number
WO2022134947A1
WO2022134947A1 PCT/CN2021/131095 CN2021131095W WO2022134947A1 WO 2022134947 A1 WO2022134947 A1 WO 2022134947A1 CN 2021131095 W CN2021131095 W CN 2021131095W WO 2022134947 A1 WO2022134947 A1 WO 2022134947A1
Authority
WO
WIPO (PCT)
Prior art keywords
value
usid
mid
pid
original
Prior art date
Application number
PCT/CN2021/131095
Other languages
English (en)
French (fr)
Inventor
汪兴
Original Assignee
展讯通信(上海)有限公司
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 展讯通信(上海)有限公司 filed Critical 展讯通信(上海)有限公司
Publication of WO2022134947A1 publication Critical patent/WO2022134947A1/zh

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

Definitions

  • the present application relates to the field of communication technologies, and in particular, to a method, apparatus and electronic device for initializing a USID.
  • GPIO General-purpose input/output
  • MIPI Mobile Industry Processor Interface
  • the device matches the product identification code (Product ID, PID), manufacturer ID (Manufacturer ID, MID) and the factory value of the device;
  • the initialization register to rewrite the USID will be frequently operated, and this may cause the USID to be changed incorrectly.
  • there are still problems such as poor MIPI signal quality, incorrect identification of the device itself, interference, etc., which may also cause its USID to be wrongly written. If the USID is wrongly written, it may cause the device to hang up, and the restart will be invalid. You must shut down/unplug the battery to recover.
  • the present application provides a method, apparatus and electronic device for initializing the USID, and also provides a computer-readable storage medium.
  • the present application provides a method for initializing a USID, including:
  • the value of the erroneously written USID device is overwritten as the overwritten value.
  • the rewriting of the value of the wrongly written USID device to the rewritten value includes:
  • the rewriting of the value of the wrongly written USID device to the rewritten value includes:
  • the rewriting the value of the wrongly written USID device to the rewriting value further includes:
  • the value of the first USID device is kept unchanged.
  • the value of the second USID device is overwritten to the overwritten value.
  • the present application also provides a device for initializing the USID, including:
  • the RF driver configuration file reading module is used to read the RF driver configuration file before initializing the device MIPI register each time, and obtain the rewritten value of the USID device;
  • the rewriting module is used for rewriting the value of the wrongly written USID device to the rewriting value.
  • the present application provides an electronic device comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, The electronic device is triggered to execute the method steps described in the embodiments of the present application.
  • the application provides an electronic chip, the electronic chip is used to control MIPI radio frequency devices, and the electronic chip includes:
  • a processor for executing computer program instructions stored in a memory wherein when the computer program instructions are executed by the processor, the electronic chip is triggered according to the method according to any one of claims 1 to 8 Step, perform USID initialization on the MIPI radio frequency device.
  • the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer-readable storage medium runs on a computer, causes the computer to execute the method of the embodiments of the present application.
  • the wrong writing of the USID can be corrected, thereby effectively avoiding the problem of device hang caused by the wrong writing of the USID.
  • FIG. 1 is a flowchart of a method for initializing a USID according to an embodiment of the present application
  • FIG. 2 is a flowchart of a method for initializing a USID according to an embodiment of the present application
  • FIG. 3 shows a flowchart of a partial method of initializing a USID according to an embodiment of the present application
  • FIG. 4 is a flowchart of a part of a method for initializing a USID according to an embodiment of the present application.
  • the present application provides a method for initializing the USID.
  • the rewritten value of the USID device will be saved in the RF driver configuration file (MIPI device configuration information). If the value of the USID device is different from the rewritten value of the USID device saved in the RF driver configuration file, it means that the USID has been wrongly written. . Therefore, before initializing the device MIPI register each time, read the rewrite value of the USID device saved in the RF driver configuration file, correct the USID device based on the read rewrite value, and rewrite the wrongly written USID device to the correct value (override value). In this way, the device hang problem that may be caused by wrongly writing the USID can be effectively avoided.
  • FIG. 1 is a flowchart of a method for initializing a USID according to an embodiment of the present application. As shown in Figure 1:
  • Step 110 before initializing the device MIPI register each time, read the radio frequency drive configuration file to obtain the rewritten value of the USID device;
  • Step 120 rewriting the value of the wrongly written USID device to the rewriting value.
  • step 120 it is not judged whether there is a wrong writing, nor confirming the wrongly written USID device, but the values of all USID devices are rewritten as the rewriting of the USID device saved in the RF drive configuration file. value. This ensures that the value of the USID device must be the correct overridden value recorded in the RF driver configuration file.
  • step 120 it is first judged whether the value of the USID device is wrongly written, and if there is a wrong writing, the value of the wrongly written USID device is rewritten as a rewritten value; if there is no wrong writing, then There is no need to perform a correction operation on the value of the USID device, so that the writing frequency of the USID device can be reduced and the device consumption can be reduced.
  • the PID and MID of the USID device are recorded in the radio frequency drive configuration file. That is, if the values of the PID, MID and USID device of the USID device are consistent with those recorded in the RF drive configuration file, it means that there is no wrong writing. Therefore, in an embodiment of the present application, the PID and MID values corresponding to the rewritten value of the USID device are read from the RF drive configuration file. The PID and MID values corresponding to the rewritten value of the USID device recorded in the configuration file, then the USID device will not be wrongly written.
  • the USID device Conversely, if the value of the USID device is the PID and MID values of the USID device whose rewritten value is not the PID and MID values corresponding to the rewritten value of the USID device recorded in the RF driver configuration file, then the USID device has been miswritten. Or, if reading the PID and MID values of the USID device with the overwritten value of the USID device value fails, it also indicates that the USID device has been wrongly written.
  • FIG. 2 is a flowchart of a method for initializing a USID according to an embodiment of the present application. as shown in picture 2:
  • Step 210 before initializing the device MIPI register each time, read the radio frequency drive configuration file, obtain the rewrite value (N) of the USID device, and the PID value (PID_Original) and MID value (MID_Original) corresponding to the rewrite value (N);
  • Step 220 read the PID value (PID_Read) and the MID value (MID_Read) of the USID N device whose USID device value is N;
  • Step 221 judge whether reading PID value (PID_Read) and MID value (MID_Read) is successful;
  • step 230 is executed to determine whether PID_Original and MID_Original are consistent with PID_Read and MID_Read;
  • step 230 If in step 230, whether PID_Original and MID_Original are inconsistent with PID_Read and MID_Read (PID_Original is not equal to PID_Read, and/or, MID_Original is not equal to MID_Read), it means that the USID device is wrongly written, and step 240 is executed, and the PID value and MID value are changed to The value of the USID device of PID_Original and MID_Original is rewritten to the rewritten value N.
  • step 240 is executed.
  • step 240 the wrongly written USID device is not confirmed, but the values of all USID devices are rewritten to the rewritten value N of the USID device saved in the RF drive configuration file. This ensures that the value of the USID device must be the correct overridden value recorded in the RF driver configuration file.
  • step 240 first confirm the wrongly written USID device (the PID value and the MID value are the USID device with the PID original value and the MID original value), and then rewrite the value of the wrongly written USID device. to overwrite the value N. In this way, the rewriting operation can be made more targeted and the USID device to be rewritten can be reduced.
  • FIG. 3 is a flowchart of part of a method for initializing a USID according to an embodiment of the present application.
  • step 240 as shown in FIG. 3:
  • Step 310 search for a USID M device, wherein the PID value and MID value of the USID M device are the same as PID_Original and MID_Original;
  • Step 320 rewriting the value of the USID M device to the rewriting value N.
  • step 310 based on the preset value logic, one by one, the PID value and the MID value of all USID devices are read and judged to search for USID M devices.
  • the PID value and the MID value of all USID devices are read and judged one by one, so as to search for the USID M device.
  • the PID value and MID value of the USID 0 device are inconsistent with PID_Original and MID_Original, or, if reading the PID value and MID value for the USID 0 device fails, read the PID value and MID value for the USID 1 device.
  • the PID value and MID value of the USID 1 device are inconsistent with PID_Original and MID_Original, or, if reading the PID value and MID value of the USID 1 device fails, read the PID value and MID value of the USID 2 device.
  • the USID 5 device is the final search result USID M device.
  • step 130 after confirming the USID M device, a PID will be performed on the USID N device.
  • the reading and judgment of the value and the MID value, and in steps 220, 221, and 230, the reading and judgment of the PID value and the MID value have been performed on the USID N device once. Therefore, in order to avoid repeating the 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 the initial device, and the USID N device is arranged one by one after the USID N device according to the value of the USID device. Search the USID devices one by one. When the search target value is greater than the maximum value of the USID device, the USID 0 device is returned, and the USID 0 device and the USID device after the USID 0 device are sorted one by one according to the value of the USID device. search.
  • the possible values of USID are 16 values from 0 to F
  • the PID value and MID value of the USID 9 device are the same as PID_Original and MID_Original
  • the rewrite value recorded on the RF driver configuration file is 4.
  • the PID value and MID value of the USID 5 device are inconsistent with PID_Original and MID_Original, or, if reading the PID value and MID value for the USID 5 device fails, read the PID value and MID value for the USID 6 device.
  • the PID value and MID value of the USID 6 device are inconsistent with PID_Original and MID_Original, or, if reading the PID value and MID value for the USID 6 device fails, read the PID value and MID value for the USID 7 device.
  • the USID 9 device is the final search result USID M device.
  • the possible values of USID are 16 values from 0 to F
  • the PID value and MID value of the USID 9 device are the same as PID_Original and MID_Original
  • the rewritten value recorded on the RF driver configuration file is E.
  • the PID value and MID value of the USID F device are inconsistent with PID_Original and MID_Original, or, if reading the PID value and MID value for the USID F device fails, read the PID value and MID value for the USID 0 device.
  • the PID value and MID value of the USID 0 device are inconsistent with PID_Original and MID_Original, or, if reading the PID value and MID value for the USID 0 device fails, read the PID value and MID value for the USID 1 device.
  • the USID 9 device is the final search result USID M device.
  • step 310 the USID devices are searched one by one in a remainder manner to confirm the USID M devices.
  • FIG. 4 shows a flowchart of a part of a method for initializing a USID according to an embodiment of the present application.
  • step 310 as shown in Figure 4:
  • Step 400 taking N as an initial value
  • Step 410 take the remainder (Mod(N++, m)) from the total number of possible USID values (for example, 16 values from 0 to F) after the initial value is incremented by 1 to obtain the retrieved value, Mod(N++, m) flag The remainder obtained by N++ taking the remainder of m, where m is the total number of possible USID values;
  • Step 420 for the USID device whose value of the USID device is the retrieval value (Mod(N++, m)), read the PID value and the MID value to obtain the PID read value and the MID read value;
  • Step 430 judge whether reading PID value and MID value is successful
  • Step 440 when reading the PID value and the MID value is successful, determine whether the PID reading value and the MID reading 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 original PID value, and/or when the MID read value obtained in step 420 is different from the original MID value, the current retrieval value is used for the next execution of step 410. initial value, return to step 410;
  • Step 460 when the PID read value obtained in step 420 is the same as the original PID value, and/or the MID read value obtained in step 420 is the same as the original MID value, it is determined that the value of M is the value obtained by the most recent execution of step 410. retrieve the value, thereby confirming the final search result USID M device.
  • PLD Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • HDL Hardware Description Language
  • ABEL Advanced Boolean Expression Language
  • AHDL Altera Hardware Description Language
  • HDCal JHDL
  • Lava Lava
  • Lola MyHDL
  • PALASM RHDL
  • VHDL Very-High-Speed Integrated Circuit Hardware Description Language
  • Verilog Verilog
  • the present application also proposes a device for initializing the USID, the device comprising:
  • the RF driver configuration file reading module is used to read the RF driver configuration file before initializing the device MIPI register each time, and obtain the rewritten value of the USID device;
  • the rewriting module is used to rewrite the value of the wrongly rewritten USID device to the rewriting value in the RF driver configuration file.
  • the apparatuses proposed in the embodiments of the present application may be fully or partially integrated into a physical entity during actual implementation, or may be physically separated.
  • these modules can all be implemented in the form of software calling through processing elements; they can also all be implemented in hardware; some modules can also be implemented in the form of software calling through processing elements, and some modules can be implemented in hardware.
  • the detection module may be a separately established processing element, or may be integrated in a certain chip of the electronic device.
  • the implementation of other modules is similar.
  • all or part of these modules can be integrated together, and can also be implemented independently.
  • each step of the above-mentioned method or each of the above-mentioned modules can be completed by an integrated logic circuit of hardware in the processor element or an instruction in the form of software.
  • the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more specific integrated circuits (Application Specific Integrated Circuit, ASIC), or, one or more digital signal processors ( Digital Singnal Processor, DSP), or, one or more Field Programmable Gate Array (Field Programmable Gate Array, FPGA), etc.
  • ASIC Application Specific Integrated Circuit
  • DSP Digital Singnal Processor
  • FPGA Field Programmable Gate Array
  • these modules can be integrated together and implemented in the form of an on-chip device (System-On-a-Chip, SOC).
  • an embodiment of the present application also proposes an electronic chip, the electronic chip is used to control a MIPI radio frequency device, and the electronic chip includes:
  • the processor is configured to execute 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 embodiments of the present application.
  • the memory for storing the computer program instructions may be the internal memory of the electronic chip itself, or may be an external memory.
  • an embodiment of the present application further provides a baseband chip, and the baseband chip is used to control a MIPI radio frequency device.
  • the baseband chip has a built-in memory and a processor.
  • the memory of the baseband chip is loaded with program codes that can implement the method flow described in the embodiments of the present application.
  • the processor of the baseband chip invokes and runs the program code loaded in the memory, and can perform USID initialization on the MIPI radio frequency device according to the method flow described in the embodiment of the present application.
  • An embodiment of the present application also provides an electronic device, the electronic device includes a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the electronic device is triggered The device executes the method steps described in the embodiments of the present application.
  • the above-mentioned one or more computer programs are stored in the above-mentioned memory, and the above-mentioned one or more computer programs include instructions.
  • the above-mentioned instructions are executed by the above-mentioned device, the above-mentioned device is made to execute the application. The method steps described in the examples.
  • the processor of the electronic device may be an on-chip device SOC, and the processor may include a central processing unit (Central Processing Unit, CPU), and may further include other types of processors.
  • the processor of the electronic device may be a PWM control chip.
  • the involved processor may include, for example, a CPU, a DSP, a microcontroller, or a digital signal processor, and may also include a GPU, an embedded Neural-network Process Units (NPU, NPU) ) and an image signal processor (Image Signal Processing, ISP), the processor may also include necessary hardware accelerators or logic processing hardware circuits, such as ASICs, or one or more integrated circuits for controlling the execution of programs in the technical solution of the present application Wait. Furthermore, the processor may have the function of operating one or more software programs, which may be stored in a storage medium.
  • the memory of the electronic device may be a read-only memory (ROM), other types of static storage devices that can store static information and instructions, random access memory (random access memory) memory, RAM) or other types of dynamic storage devices that can store information and instructions, also can be electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), compact disc read-only memory, CD-ROM) or other optical disk storage, optical disk storage (including compact disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage medium or other magnetic storage device, or can also be used for portable or Any computer-readable medium that stores desired program code in the form of instructions or data structures and can be accessed by a computer.
  • ROM read-only memory
  • RAM random access memory
  • dynamic storage devices that can store information and instructions
  • EEPROM electrically erasable programmable read-only memory
  • CD-ROM compact disc read-only memory
  • optical disk storage including compact disk, laser disk, optical disk, digital versatile disk
  • a processor may be combined with a memory to form a processing device, which is more commonly an independent component.
  • the processor is used to execute program codes stored in the memory to implement the method described in the embodiment of the present application.
  • the memory can also be integrated in the processor, or be independent of the processor.
  • devices, devices, and modules described in the embodiments of the present application may be specifically implemented by computer chips or entities, or by products with certain functions.
  • the embodiments of the present application may be provided as a method, an apparatus, or a 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 therein.
  • any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution, and the computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when it runs on a computer, the computer executes the method provided by the embodiment of the present application.
  • An embodiment of the present application further provides a computer program product, where the computer program product includes a computer program that, when running on a computer, causes the computer to execute the method provided by the embodiment of the present application.
  • These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions
  • the apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.
  • 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, where a, b, c may be single, or Can be multiple.
  • the terms “comprising”, “comprising” or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements not only includes those elements, but also includes Other elements not expressly listed, or which are inherent to such a process, method, article of manufacture, or apparatus are also included.
  • an element qualified by the phrase “comprising a" does not preclude the presence of additional identical elements in the process, method, article of manufacture, or device that includes the element.
  • the application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer.
  • 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.
  • program modules may be located in both local and remote computer storage media including storage devices.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

提供了一种初始化USID的方法、装置和电子设备。方法包括:在每次初始化器件MIPI寄存器前,读取射频驱动配置文件,获取USID器件的改写值(110);将错写的USID器件的值改写为所述改写值(120)。

Description

一种初始化USID的方法、装置和电子设备 技术领域
本申请涉及通信技术领域,特别涉及一种初始化USID的方法、装置和电子设备。
背景技术
由于射频器件复杂度日益提高,通用型输入输出(General-purpose input/output,GPIO)控制的射频器件逐步被淘汰,移动产业处理器接口(Mobile Industry Processor Interface,MIPI)控制的射频器件已被广泛应用。
在实际应用场景中,为了更好的控制和避免冲突,一般会对每一个MIPI器件做改写身份识别码(USID)的操作。改写USID的操作通常分为两步:
1)器件匹配产品识别码(Product ID,PID)、厂商编号(Manufacturer ID,MID)和器件出厂值匹配;
2)通过寄存器完成对USID的改写操作。
在MIPI控制射频器件实际使用的过程中,初始化寄存器改写USID会被频繁的操作,而这就有可能导致USID被改错。并且,在射频器件实际使用的过程中,还存在如MIPI信号质量不佳、器件本身识别错误、干扰等问题,也可能会导致其USID被错写的情况的发生。而USID被错写则有可能导致器件挂死,重启无效,必须关机/拔出电池才能恢复。
发明内容
针对现有技术下USID被错写的问题,本申请提供了一种初始化USID的方法、装置和电子设备,本申请还提供一种计算机可读存储介质。
本申请实施例采用下述技术方案:
第一方面,本申请提供一种初始化USID的方法,包括:
在每次初始化器件MIPI寄存器前,读取射频驱动配置文件,获取USID器件的改写值;
将错写的USID器件的值改写为所述改写值。
在上述第一方面的一种可行的实现方式中,所述将错写的USID器件的值改写为所述改写值,包括:
将所有USID器件的值改写为所述改写值。
在上述第一方面的一种可行的实现方式中,所述将错写的USID器件的值改写为所述改写值,包括:
读取射频驱动配置文件中所述改写值对应的PID值以及MID值,以获取PID原始值以及MID原始值;
对USID器件的值为所述改写值的第一USID器件,读取PID值以及MID值,当读取所述PID值以及所述MID值成功时,获取第一PID读取值以及第一MID读取值;
当所述第一PID读取值与所述PID原始值不同,和/或,所述第一MID读取值与所述 MID原始值不同时,将PID值以及MID值为所述PID原始值以及所述MID原始值的USID器件的值,改写为所述改写值。
在上述第一方面的一种可行的实现方式中,在所述对USID器件的值为所述改写值的第一USID器件,读取PID值以及MID值的过程中,当读取所述PID值以及所述MID值失败时,将PID值以及MID值为所述PID原始值以及所述MID原始值的USID器件的值,改写为所述改写值。
在上述第一方面的一种可行的实现方式中,所述将错写的USID器件的值改写为所述改写值,还包括:
当所述第一PID读取值与所述PID原始值相同,并且,所述第一MID读取值与所述MID原始值相同时,保持所述第一USID器件的值不变。
在上述第一方面的一种可行的实现方式中,所述当所述第一PID读取值与所述PID原始值不同,和/或,所述第一MID读取值与所述MID原始值不同时,将PID值以及MID值为所述PID原始值以及所述MID原始值的USID器件的值,改写为所述改写值,包括:
将所有USID器件的值改写为所述改写值。
在上述第一方面的一种可行的实现方式中,所述当所述第一PID读取值与所述PID原始值不同,和/或,所述第一MID读取值与所述MID原始值不同时,将PID值以及MID值为所述PID原始值以及所述MID原始值的USID器件的值,改写为所述改写值,包括:
搜索第二USID器件,其中,所述第二USID器件的PID值以及MID值与所述PID原始值以及所述MID原始值相同;
将所述第二USID器件的值改写为所述改写值。
第二方面,本申请还提供一种初始化USID的装置,包括:
射频驱动配置文件读取模块,其用于在每次初始化器件MIPI寄存器前,读取射频驱动配置文件,获取USID器件的改写值;
改写模块,其用于将错写的USID器件的值改写为所述改写值。
第三方面,本申请提供了一种电子设备,所述电子设备包括用于存储计算机程序指令的存储器和用于执行程序指令的处理器,其中,当该计算机程序指令被该处理器执行时,触发所述电子设备执行如本申请实施例所述的方法步骤。
第四方面,本申请提供了一种电子芯片,所述电子芯片用于控制MIPI射频器件,所述电子芯片包括:
处理器,其用于执行存储器存储的计算机程序指令,其中,当所述计算机程序指令被所述处理器执行时,触发所述电子芯片按照如权利要求1~8中任一项所述的方法步骤,对所述MIPI射频器件进行USID初始化。
第五方面,本申请提供了一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行本申请实施例的方法。
根据本申请实施例所提出的上述技术方案,至少可以实现下述技术效果:
根据本申请一实施例的方法,可以修正USID的错写,从而有效避免USID错写导致的器件挂死问题。
附图说明
图1所示为根据本申请一实施例的初始化USID的方法流程图;
图2所示为根据本申请一实施例的初始化USID的方法流程图;
图3所示为根据本申请一实施例的初始化USID的部分方法流程图;
图4所示为根据本申请一实施例的初始化USID的部分方法流程图。
具体实施方式
为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请具体实施例及相应的附图对本申请技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的实施方式部分使用的术语仅用于对本申请的具体实施例进行解释,而非旨在限定本申请。
针对现有技术下USID被错写的问题,本申请提供了一种初始化USID的方法。具体的,USID器件的改写值会保存在射频驱动配置文件中(MIPI器件配置信息),如果USID器件的值与射频驱动配置文件中所保存的USID器件的改写值不同,则说明USID被错写。因此,在每次初始化器件MIPI寄存器前,读取射频驱动配置文件中所保存的USID器件的改写值,基于读取到的改写值对USID器件进行修正,将错写的USID器件改写成正确值(改写值)。这样,就可以有效避免USID被错写可能导致的器件挂死问题。
图1所示为根据本申请一实施例的初始化USID的方法流程图。如图1所示:
步骤110,在每次初始化器件MIPI寄存器前,读取射频驱动配置文件,获取USID器件的改写值;
步骤120,将错写的USID器件的值改写为改写值。
具体的,在实际应用场景中,USID的可能性有限,一般为0~F 16个值。因此,在步骤120的一种实现方式中,不判断是否存在错写,也不确认错写的USID器件,而是将所有USID器件的值改写为射频驱动配置文件中所保存的USID器件的改写值。这样,就可以确保USID器件的值一定是射频驱动配置文件中所记录的正确的改写值。
进一步的,在步骤120的一种实现方式中,首先判断USID器件的值是否存在错写,如果存在错写,则将错写的USID器件的值改写为改写值;如果不存在错写,则不需要进行USID器件的值的修正操作,这样就可以降低USID器件的写入频率,降低器件消耗。
进一步的,在实际应用场景中,USID器件的PID、MID与USID器件的值存在对应关系,其被记录在射频驱动配置文件中。即,如果USID器件的PID、MID与USID器件的值与射频驱动配置文件中所记录的一致,则说明不存在错写。因此,在本申请一实施例中,从射频驱动配置文件中读取USID器件的改写值对应的PID、MID值,如果USID器件的值为改写值的USID器件的PID、MID值,为射频驱动配置文件中所记录的USID器件的改写值对应的PID、MID值,那么USID器件就不存在错写。反之,如果USID器件的值为改写值的USID器件的PID、MID值,不为射频驱动配置文件中所记录的USID器件的改写值对应的PID、MID值,那么USID器件就存在错写。或者,如果对USID器件的值为改写值的USID器件,读取PID、MID值失败,也说明USID器件存在错写。
具体的,图2所示为根据本申请一实施例的初始化USID的方法流程图。如图2所示:
步骤210,在每次初始化器件MIPI寄存器前,读取射频驱动配置文件,获取USID器件的改写值(N),以及该改写值(N)对应的PID值(PID_Original)以及MID值(MID_Original);
步骤220,对USID器件的值为N的USID N器件读取PID值(PID_Read)以及MID值(MID_Read);
步骤221,判断读取PID值(PID_Read)以及MID值(MID_Read)是否成功;
如果读取成功,执行步骤230,判断PID_Original以及MID_Original是否与PID_Read以及MID_Read一致;
如果一致(PID_Original等于PID_Read,并且MID_Original等于MID_Read),则说明USID器件不存在错写,则保持USID N器件的值不变,初始化流程结束。
如果在步骤230中,PID_Original以及MID_Original是否与PID_Read以及MID_Read不一致(PID_Original不等于PID_Read,和/或,MID_Original不等于MID_Read),则说明USID器件存在错写,执行步骤240,将PID值以及MID值为PID_Original以及MID_Original的USID器件的值,改写为改写值N。
进一步的,如果读取PID值(PID_Read)以及MID值(MID_Read)失败,则也说明USID器件存在错写,执行步骤240。
进一步的,由于USID的可能性有限,一般为0~F 16个值。因此,在步骤240的一种实现方式中,不确认错写的USID器件,而是将所有USID器件的值改写为射频驱动配置文件中所保存的USID器件的改写值N。这样,就可以确保USID器件的值一定是射频驱动配置文件中所记录的正确的改写值。
进一步的,在步骤240的另一种实现方式中,首先确认错写的USID器件(PID值以及MID值为PID原始值以及MID原始值的USID器件),然后将错写的USID器件的值改写为改写值N。这样,就可以使改写操作更具有针对性,减少改写的USID器件。
具体的,图3所示为根据本申请一实施例的初始化USID的部分方法流程图。在步骤240的一种实现方式中,如图3所示:
步骤310,搜索USID M器件,其中,USID M器件的PID值以及MID值与PID_Original以及MID_Original相同;
步骤320,将USID M器件的值改写为改写值N。
具体的,在步骤310的一种实现方式中,基于预设的取值逻辑,对所有USID器件进行逐一的PID值以及MID值读取判断,以搜索USID M器件。
例如,按照USID器件的值的大小逐个对所有USID器件进行逐一的PID值以及MID值读取判断,以搜索USID M器件。
例如,假设,USID的可能取值为0~F 16个值,USID 5器件的PID值以及MID值与PID_Original以及MID_Original相同。
首先对USID 0器件读取PID值以及MID值。
USID 0器件的PID值以及MID值与PID_Original以及MID_Original不一致,或者,对USID 0器件读取PID值以及MID值失败,则对USID 1器件读取PID值以及MID值。
USID 1器件的PID值以及MID值与PID_Original以及MID_Original不一致,或者,对USID 1器件读取PID值以及MID值失败,则对USID 2器件读取PID值以及MID值。
以此类推,直到对USID 5器件读取PID值以及MID值后,确认USID 5器件的PID值以及MID值与PID_Original以及MID_Original相同。USID 5器件即为最终的搜索结果USID M器件。
进一步的,在上述按照USID器件的值的大小逐个对所有USID器件进行逐一搜索的方案中,假设N小于M,则在在步骤130中,在确认USID M器件,会对USID N器件进行一次PID值以及MID值的读取以及判断,而在步骤220、221、230中,已对USID N器件进行了一次PID值以及MID值的读取以及判断。因此,为了避免重复执行PID值以及MID值的读取以及判断,在步骤310的一种实现方式中,以USID N器件为初始器件,按照USID器件的值的大小逐个对排在USID N器件之后的USID器件进行逐一搜索,在搜索目标取值大于USID器件的最大取值时,返回USID 0器件,按照USID器件的值的大小逐个对USID 0器件以及排在USID 0器件之后的USID器件进行逐一搜索。
例如,假设,USID的可能取值为0~F 16个值,USID 9器件的PID值以及MID值与PID_Original以及MID_Original相同,射频驱动配置文件上记录的改写值为4。
首先对USID 5器件读取PID值以及MID值(4+1)。
USID 5器件的PID值以及MID值与PID_Original以及MID_Original不一致,或者,对USID 5器件读取PID值以及MID值失败,则对USID 6器件读取PID值以及MID值。
USID 6器件的PID值以及MID值与PID_Original以及MID_Original不一致,或者,对USID 6器件读取PID值以及MID值失败,则对USID 7器件读取PID值以及MID值。
以此类推,直到对USID 9器件读取PID值以及MID值后,确认USID 9器件的PID值以及MID值与PID_Original以及MID_Original相同。USID 9器件即为最终的搜索结果USID M器件。
又例如,假设,USID的可能取值为0~F 16个值,USID 9器件的PID值以及MID值与PID_Original以及MID_Original相同,射频驱动配置文件上记录的改写值为E。
首先对USID F器件读取PID值以及MID值(F+1)。
USID F器件的PID值以及MID值与PID_Original以及MID_Original不一致,或者,对USID F器件读取PID值以及MID值失败,则对USID 0器件读取PID值以及MID值。
USID 0器件的PID值以及MID值与PID_Original以及MID_Original不一致,或者,对USID 0器件读取PID值以及MID值失败,则对USID 1器件读取PID值以及MID值。
以此类推,直到对USID 9器件读取PID值以及MID值后,确认USID 9器件的PID值以及MID值与PID_Original以及MID_Original相同。USID 9器件即为最终的搜索结果USID M器件。
在步骤310的一种实现方式中,采用取余的方式逐个搜索USID器件以确认USID M器件。具体的,图4所示为根据本申请一实施例的初始化USID的部分方法流程图。在步骤310的一种实现方式中,如图4所示:
步骤400,以N为初始值;
步骤410,对初始值自加1后与USID的可能取值总数(例如,0~F 16个值)取余(Mod(N++,m)),以获取检索值,Mod(N++,m)标志N++对m取余得到的余数,m为USID的可能取值总数;
步骤420,对USID器件的值为检索值(Mod(N++,m))的USID器件,读取PID 值以及MID值,以获取PID读取值以及MID读取值;
步骤430,判断读取PID值以及MID值是否成功;
步骤440,当读取PID值以及MID值成功时,判断步骤420获取的PID读取值以及MID读取值与PID_Original以及MID_Original是否相同;
步骤450,当步骤420获取的PID读取值与PID原始值不同,和/或,步骤420获取的MID读取值与MID原始值不同时,以当前的检索值为下一次执行步骤410时的初始值,返回步骤410;
步骤460,当步骤420获取的PID读取值与PID原始值相同,和/或,步骤420获取的MID读取值与MID原始值相同时,判定M的值为最近一次执行步骤410所获取的检索值,从而确认最终的搜索结果USID M器件。
进一步的,在20世纪90年代,对于一个技术的改进可以很明显地区分是硬件上的改进(例如,对二极管、晶体管、开关等电路结构的改进)还是软件上的改进(对于方法流程的改进)。然而,随着技术的发展,当今的很多方法流程的改进已经可以视为硬件电路结构的直接改进。设计人员几乎都通过将改进的方法流程编程到硬件电路中来得到相应的硬件电路结构。因此,不能说一个方法流程的改进就不能用硬件实体模块来实现。例如,可编程逻辑器件(Programmable Logic Device,PLD)(例如现场可编程门阵列(Field Programmable Gate Array,FPGA))就是这样一种集成电路,其逻辑功能由访问方对器件编程来确定。由设计人员自行编程来把一个数字装置“集成”在一片PLD上,而不需要请芯片制造厂商来设计和制作专用的集成电路芯片。而且,如今,取代手工地制作集成电路芯片,这种编程也多半改用“逻辑编译器(logic compiler)”软件来实现,它与程序开发撰写时所用的软件编译器相类似,而要编译之前的原始代码也得用特定的编程语言来撰写,此称之为硬件描述语言(Hardware Description Language,HDL),而HDL也并非仅有一种,而是有许多种,如ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language)等,目前最普遍使用的是VHDL(Very-High-Speed Integrated Circuit Hardware Description Language)与Verilog。本领域技术人员也应该清楚,只需要将方法流程用上述几种硬件描述语言稍作逻辑编程并编程到集成电路中,就可以很容易得到实现该逻辑方法流程的硬件电路。
因此,根据本申请的方法,本申请还提出了一种初始化USID的装置,装置包括:
射频驱动配置文件读取模块,其用于在每次初始化器件MIPI寄存器前,读取射频驱动配置文件,获取USID器件的改写值;
改写模块,其用于将错写的USID器件的值改写为射频驱动配置文件中的改写值。
在本申请实施例的描述中,为了描述的方便,描述装置时以功能分为各种模块分别描述,各个模块的划分仅仅是一种逻辑功能的划分,在实施本申请实施例时可以把各模块的功能在同一个或多个软件和/或硬件中实现。
具体的,本申请实施例所提出的装置在实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。且这些模块可以全部以软件通过处理元件调用的形式实现;也可以全部以硬件的形式实现;还可以部分模块以软件通过处理元件调用的形式实现, 部分模块通过硬件的形式实现。例如,检测模块可以为单独设立的处理元件,也可以集成在电子设备的某一个芯片中实现。其它模块的实现与之类似。此外这些模块全部或部分可以集成在一起,也可以独立实现。在实现过程中,上述方法的各步骤或以上各个模块可以通过处理器元件中的硬件的集成逻辑电路或者软件形式的指令完成。
例如,以上这些模块可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(Application Specific Integrated Circuit,ASIC),或,一个或多个数字信号处理器(Digital Singnal Processor,DSP),或,一个或者多个现场可编程门阵列(Field Programmable Gate Array,FPGA)等。再如,这些模块可以集成在一起,以片上装置(System-On-a-Chip,SOC)的形式实现。
例如,本申请一实施例还提出了一种电子芯片,该电子芯片用于控制MIPI射频器件,该电子芯片包括:
处理器,其用于执行存储器存储的计算机程序指令,其中,当所述计算机程序指令被处理器执行时,触发电子芯片按照本申请实施例所述的方法步骤,对MIPI射频器件进行USID初始化。
进一步的,存储计算机程序指令的存储器可以是电子芯片自身的内部存储器,也可以是外部存储器。
例如,本申请一实施例还提出了一种基带芯片,该基带芯片用于控制MIPI射频器件。该基带芯片内置有存储器以及处理器。基带芯片的存储器中加载有可实现本申请实施例所述的方法流程的程序代码。基带芯片的处理器调用并运行存储器所加载的程序代码,即可按照本申请实施例所述的方法流程,对MIPI射频器件进行USID初始化。
本申请一实施例还提出了一种电子设备,电子设备包括用于存储计算机程序指令的存储器和用于执行程序指令的处理器,其中,当该计算机程序指令被该处理器执行时,触发电子设备执行如本申请实施例所述的方法步骤。
具体的,在本申请一实施例中,上述一个或多个计算机程序被存储在上述存储器中,上述一个或多个计算机程序包括指令,当上述指令被上述设备执行时,使得上述设备执行本申请实施例所述的方法步骤。
具体的,在本申请一实施例中,电子设备的处理器可以是片上装置SOC,该处理器中可以包括中央处理器(Central Processing Unit,CPU),还可以进一步包括其他类型的处理器。具体的,在本申请一实施例中,电子设备的处理器可以是PWM控制芯片。
具体的,在本申请一实施例中,涉及的处理器可以例如包括CPU、DSP、微控制器或数字信号处理器,还可包括GPU、嵌入式神经网络处理器(Neural-network Process Units,NPU)和图像信号处理器(Image Signal Processing,ISP),该处理器还可包括必要的硬件加速器或逻辑处理硬件电路,如ASIC,或一个或多个用于控制本申请技术方案程序执行的集成电路等。此外,处理器可以具有操作一个或多个软件程序的功能,软件程序可以存储在存储介质中。
具体的,在本申请一实施例中,电子设备的存储器可以是只读存储器(read-only memory,ROM)、可存储静态信息和指令的其它类型的静态存储设备、随机存取存储器(random access memory,RAM)或可存储信息和指令的其它类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory, EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其它磁存储设备,或者还可以是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何计算机可读介质。
具体的,在本申请一实施例中,处理器可以和存储器可以合成一个处理装置,更常见的是彼此独立的部件,处理器用于执行存储器中存储的程序代码来实现本申请实施例所述方法。具体实现时,该存储器也可以集成在处理器中,或者,独立于处理器。
进一步的,本申请实施例阐明的设备、装置、模块,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。
本领域内的技术人员应明白,本申请实施例可提供为方法、装置、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质上实施的计算机程序产品的形式。
在本申请所提供的几个实施例中,任一功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。
具体的,本申请一实施例中还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行本申请实施例提供的方法。
本申请一实施例还提供一种计算机程序产品,该计算机程序产品包括计算机程序,当其在计算机上运行时,使得计算机执行本申请实施例提供的方法。
本申请中的实施例描述是参照根据本申请实施例的方法、设备(装置)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
还需要说明的是,本申请实施例中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示单独存在A、同时存在A和B、单独存在B的情况。其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项”及其类似表达,是指的这些项中的任意组合,包括单项或复数项的任意组合。例如,a,b和c中的至少一项可以表示:a,b,c,a和b,a和c,b和c或a和b和c,其中a,b,c可以是单个,也可以是多个。
本申请实施例中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。
本申请可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本申请,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。
本申请中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
本领域普通技术人员可以意识到,本申请实施例中描述的各单元及算法步骤,能够以电子硬件、计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
以上所述,仅为本申请的具体实施方式,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。本申请的保护范围应以所述权利要求的保护范围为准。

Claims (11)

  1. 一种初始化USID的方法,其特征在于,包括:
    在每次初始化器件MIPI寄存器前,读取射频驱动配置文件,获取USID器件的改写值;
    将错写的USID器件的值改写为所述改写值。
  2. 根据权利要求1所述的方法,其特征在于,所述将错写的USID器件的值改写为所述改写值,包括:
    将所有USID器件的值改写为所述改写值。
  3. 根据权利要求1所述的方法,其特征在于,所述将错写的USID器件的值改写为所述改写值,包括:
    读取射频驱动配置文件中所述改写值对应的PID值以及MID值,以获取PID原始值以及MID原始值;
    对USID器件的值为所述改写值的第一USID器件,读取PID值以及MID值,当读取所述PID值以及所述MID值成功时,获取第一PID读取值以及第一MID读取值;
    当所述第一PID读取值与所述PID原始值不同,和/或,所述第一MID读取值与所述MID原始值不同时,将PID值以及MID值为所述PID原始值以及所述MID原始值的USID器件的值,改写为所述改写值。
  4. 根据权利要求3所述的方法,其特征在于,在所述对USID器件的值为所述改写值的第一USID器件,读取PID值以及MID值的过程中,当读取所述PID值以及所述MID值失败时,将PID值以及MID值为所述PID原始值以及所述MID原始值的USID器件的值,改写为所述改写值。
  5. 根据权利要求3或4所述的方法,其特征在于,所述将错写的USID器件的值改写为所述改写值,还包括:
    当所述第一PID读取值与所述PID原始值相同,并且,所述第一MID读取值与所述MID原始值相同时,保持所述第一USID器件的值不变。
  6. 根据权利要求3或4所述的方法,其特征在于,所述当所述第一PID读取值与所述PID原始值不同,和/或,所述第一MID读取值与所述MID原始值不同时,将PID值以及MID值为所述PID原始值以及所述MID原始值的USID器件的值,改写为所述改写值,包括:
    将所有USID器件的值改写为所述改写值。
  7. 根据权利要求3或4所述的方法,其特征在于,所述当所述第一PID读取值与所述PID原始值不同,和/或,所述第一MID读取值与所述MID原始值不同时,将PID值以及MID值为所述PID原始值以及所述MID原始值的USID器件的值,改写为所述改写值,包括:
    搜索第二USID器件,其中,所述第二USID器件的PID值以及MID值与所述PID原始值以及所述MID原始值相同;
    将所述第二USID器件的值改写为所述改写值。
  8. 一种初始化USID的装置,其特征在于,包括:
    射频驱动配置文件读取模块,其用于在每次初始化器件MIPI寄存器前,读取射频驱 动配置文件,获取USID器件的改写值;
    改写模块,其用于将错写的USID器件的值改写为所述改写值。
  9. 一种电子设备,其特征在于,所述电子设备包括用于存储计算机程序指令的存储器和用于执行程序指令的处理器,其中,当该计算机程序指令被该处理器执行时,触发所述电子设备执行如权利要求1-7中任一项所述的方法步骤。
  10. 一种电子芯片,其特征在于,所述电子芯片用于控制MIPI射频器件,所述电子芯片包括:
    处理器,其用于执行存储器存储的计算机程序指令,其中,当所述计算机程序指令被所述处理器执行时,触发所述电子芯片按照如权利要求1-7中任一项所述的方法步骤,对所述MIPI射频器件进行USID初始化。
  11. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行如权利要求1-7中任一项所述的方法。
PCT/CN2021/131095 2020-12-24 2021-11-17 一种初始化usid的方法、装置和电子设备 WO2022134947A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011549162.2A CN112732342B (zh) 2020-12-24 2020-12-24 一种初始化usid的方法、装置和电子设备
CN202011549162.2 2020-12-24

Publications (1)

Publication Number Publication Date
WO2022134947A1 true WO2022134947A1 (zh) 2022-06-30

Family

ID=75605297

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/131095 WO2022134947A1 (zh) 2020-12-24 2021-11-17 一种初始化usid的方法、装置和电子设备

Country Status (2)

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

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112732342B (zh) * 2020-12-24 2022-12-30 展讯通信(上海)有限公司 一种初始化usid的方法、装置和电子设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289415A (zh) * 2010-06-15 2011-12-21 英特尔移动通信技术有限公司 用于识别总线上的设备的方法和装置
US20120303836A1 (en) * 2011-05-23 2012-11-29 Rf Micro Devices, Inc. Slave id configuration
CN103226536A (zh) * 2012-01-30 2013-07-31 英飞凌科技股份有限公司 用于总线接口的系统和方法
CN107257294A (zh) * 2017-05-31 2017-10-17 宇龙计算机通信科技(深圳)有限公司 一种器件配置方法及装置
CN108718192A (zh) * 2018-06-12 2018-10-30 江苏卓胜微电子股份有限公司 数据信号检测装置、mipi rffe设备及系统
CN112732342A (zh) * 2020-12-24 2021-04-30 展讯通信(上海)有限公司 一种初始化usid的方法、装置和电子设备

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9602464B2 (en) * 2014-12-12 2017-03-21 Intel Corporation Apparatus, system and method for allocating identifiers to components of a control system
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289415A (zh) * 2010-06-15 2011-12-21 英特尔移动通信技术有限公司 用于识别总线上的设备的方法和装置
US20120303836A1 (en) * 2011-05-23 2012-11-29 Rf Micro Devices, Inc. Slave id configuration
CN103226536A (zh) * 2012-01-30 2013-07-31 英飞凌科技股份有限公司 用于总线接口的系统和方法
CN107257294A (zh) * 2017-05-31 2017-10-17 宇龙计算机通信科技(深圳)有限公司 一种器件配置方法及装置
CN108718192A (zh) * 2018-06-12 2018-10-30 江苏卓胜微电子股份有限公司 数据信号检测装置、mipi rffe设备及系统
CN112732342A (zh) * 2020-12-24 2021-04-30 展讯通信(上海)有限公司 一种初始化usid的方法、装置和电子设备

Also Published As

Publication number Publication date
CN112732342B (zh) 2022-12-30
CN112732342A (zh) 2021-04-30

Similar Documents

Publication Publication Date Title
US7711918B2 (en) Apparatus and method for operating flash memory according to priority order
US8843911B2 (en) Utilizing special purpose elements to implement a FSM
WO2015165232A1 (zh) 一种加载驱动程序的方法及嵌入式设备
US8015344B2 (en) Apparatus and method for processing data of flash memory
EP1313028A2 (en) System-on-chip architecture that utilizes feram and re-configurable hardware
EP3198417B1 (en) Booting a system-on-a-chip device
WO2022134947A1 (zh) 一种初始化usid的方法、装置和电子设备
US20230084523A1 (en) Data Processing Method and Device, and Storage Medium
US20040194070A1 (en) Apparatus and method for reproduction of a source ISA application state corresponding to a target ISA application state at an execution stop point
US10353816B2 (en) Page cache in a non-volatile memory
US9766866B2 (en) Techniques for determining instruction dependencies
US20030084232A1 (en) Device and method capable of changing codes of micro-controller
CN110489167B (zh) 双内核码流下载方法、装置、计算机设备及存储介质
JP7355876B2 (ja) プログラム起動方法及び機器、記憶媒体
EP3944174A1 (en) Methods and processors for performing resource deduction for execution of smart contract
WO2021233187A1 (zh) 一种在存储器中为数据分配存储地址的方法和设备
TWI726524B (zh) 電子處理裝置及記憶體控制方法
US7203867B2 (en) Processor system, processor and arithmetic processing method
JP3691435B2 (ja) プログラマブルコントローラ
US7421595B2 (en) Device and method for managing a standby state of a microprocessor
US9772827B2 (en) Techniques for determining instruction dependencies
US20210263750A1 (en) Method and apparatus for efficient programming of electronic payment processing
CN115878665A (zh) 一种分布式极大独立集查找方法、装置和存储介质
JP2003203486A (ja) 半導体記憶装置及びその制御方法
CN117668543A (zh) 一种模型训练方法、装置、存储介质及电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21908947

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21908947

Country of ref document: EP

Kind code of ref document: A1