RF drive intelligent identification method, electronic equipment and computer readable storage medium
By initializing the RF NV parameters and MIPI bus when the electronic device is turned on, scanning the RF device and saving the RF driver flag bits, the compatibility and cost issues when replacing the RF device in RF drive technology are solved, and the intelligent initialization and version of the RF card is realized. shared.
Patent Information
- Application Number
- CN202310638059.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-31
- Publication Date
- 2024-12-10
AI Technical Summary
Existing RF driver technologies are prone to problems such as increasing costs, incompatibility between new and old software versions, and the inability to share different client software versions when replacing RF devices.
By initializing the RF NV parameters and MIPI bus when the electronic device is turned on, scanning the RF device, confirming and saving the RF driver flag bits based on the scan results, and finally performing RF card initialization, the problem of compatibility between old and new software versions and sharing of client software versions is solved. .
It realizes intelligent identification and initialization of RF devices, avoiding the incompatibility of new and old software versions and the inability to share different client software versions, reducing costs and simplifying the process.
Smart Images

Figure CN119106693A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to an RF driving technology, and in particular to an RF driving intelligent identification method, an electronic device and a computer-readable storage medium. Background Art
[0002] With the development of society, electronic devices are becoming more and more popular and more powerful. Most electronic devices have RF (Radio Frequency) drivers to realize RF functions. Currently, RF drivers are configured according to RF hardware design. When the following requirements are encountered: 1. Replace RF devices to save costs; 2. Different customers have different RF requirements; 3. RF devices are discontinued and replaced, etc. RF drivers also need to be changed. It is easy to cause problems such as incompatibility between old and new software versions or inability to share different customer software versions, resulting in increased costs. Summary of the invention
[0003] In view of the above, it is necessary to provide an RF driven intelligent identification method, an electronic device and a computer readable storage medium, which can solve the above problems existing in the prior art.
[0004] An embodiment of the present invention provides an RF drive intelligent identification method, wherein the electronic device includes a plurality of RF devices, and the method includes: when the electronic device is turned on, initializing RF NV parameters; initializing a MIPI bus; scanning the RF devices; confirming and saving an RF drive flag according to the scanning result; and performing RF card initialization according to the RF drive flag.
[0005] Optionally, the step of confirming and saving the RF drive flag according to the scanning result specifically includes: pre-establishing a mapping relationship between the RF device and the RF drive flag; confirming the RF drive flag corresponding to the RF device according to the mapping relationship; and saving the RF drive flag corresponding to the RF device.
[0006] Optionally, before the step of initializing the MIPI bus, the method further includes: determining whether the RF drive flag exists; if the flag already exists, directly performing RF card initialization according to the RF drive flag.
[0007] Optionally, RF devices are scanned via the MIPI protocol.
[0008] An embodiment of the present invention also provides an electronic device, which includes a memory, a processor, and an RF drive intelligent identification method program stored in the memory and executable on the processor. When the RF drive intelligent identification method program is executed by the processor, the following steps are implemented: when the electronic device is turned on, the RF NV parameters are initialized; the MIPI bus is initialized; the RF device is scanned; the RF drive flag is confirmed and saved according to the scanning result; and the RF card is initialized according to the RF drive flag.
[0009] Optionally, the step of confirming and saving the RF drive flag according to the scanning result specifically includes: pre-establishing a mapping relationship between the RF device and the RF drive flag; confirming the RF drive flag corresponding to the RF device according to the mapping relationship; and saving the RF drive flag corresponding to the RF device.
[0010] Optionally, before the step of initializing the MIPI bus, the method further includes: determining whether the RF drive flag exists; if the flag already exists, directly performing RF card initialization according to the RF drive flag.
[0011] Optionally, RF devices are scanned via the MIPI protocol.
[0012] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the RF driven intelligent identification method described above are implemented.
[0013] Compared with the prior art, the uplink frequency hopping method, device and computer-readable storage medium, in this embodiment, first initialize the RF NV parameters and MIPI bus, then scan the RF device, confirm the RF drive flag corresponding to the RF device by scanning the RF device, and finally perform RF card initialization according to the RF drive flag. Performing RF card initialization by using the RF drive flag corresponding to the RF device solves the problems in the prior art that the old and new software versions are incompatible or different customer software versions cannot be shared. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 It is a program module diagram of an implementation mode of an electronic device of the present invention.
[0015] Figure 2 It is a flow chart of an implementation method of the RF driven intelligent identification method of the present invention.
[0016] Main component symbols
[0017] 10-Electronic equipment
[0018] 20-Memory
[0019] 30-Processor
[0020] 101-Initialize module
[0021] 102-Scanning Module
[0022] 103-Processing module
[0023] 104-Judgment module
[0024] S20~S28-Steps
[0025] The following specific implementation manner will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION
[0026] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of this application; the terms used in the specification of the application herein are only for the purpose of describing specific implementation methods and are not intended to limit this application; the terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of this application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0027] Reference to "embodiment" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0028] See also Figure 1 , is a program module diagram of an embodiment of an electronic device 10 of the present invention. The electronic device 10 includes an initialization module 101, a scanning module 102, and a processing module 103. The electronic device 10 also includes a memory 20 and a processor 30. The initialization module 101, the scanning module 102, and the processing module 103 of the present invention are computer program segments that complete a specific instruction. The memory 20 is used to store data such as program codes of the electronic device 10. The processor 30 is used to execute the program code stored in the memory 20.
[0029] The memory 20 includes at least one type of storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. The processor 30 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips, etc.
[0030] The initialization module 101 is used to initialize RF NV (Non-Valitile) parameters when the electronic device 10 is powered on.
[0031] Specifically, the electronic device 10 may be an electronic device including RF (Radio Frequency) devices, such as a feature phone, a smart phone, a tablet personal computer (PC), a laptop computer, etc. The RF NV parameters include NV parameters of the RF card and the RF device, and may specifically include calibration parameters (ADC, AFC, AGC, APC, etc.), logic control parameters for transmitting and receiving signals, temperature compensation, etc.
[0032] The initialization module 102 is also used to initialize the MIPI (Mobile Industry Processor Interface) bus.
[0033] Specifically, MIPI is an interface standard developed by the Alliance, and its purpose is to standardize the interfaces inside the electronic device 10, such as the camera, display interface, RF baseband interface, etc., so as to reduce the complexity of the design of the electronic device 10 and increase the design flexibility.
[0034] The scanning module 102 is used to scan the RF device.
[0035] Specifically, the RF device is scanned through the MIPI protocol. The RF device is a hardware device including an RF function, such as a coupler or other device.
[0036] The processing module 103 is used to confirm and save the RF driving flag according to the scanning result.
[0037] Specifically, the processing module 103 confirms the corresponding RF drive flag according to the type of the RF device. The electronic device 10 includes a plurality of RF devices, and the RF card includes a plurality of RF drivers of the RF devices, each RF driver corresponding to an RF drive flag. Different types of RF devices correspond to different RF drive flags. In this embodiment, the processing module 103 first pre-establishes a mapping relationship between the RF device and the RF drive flag; then confirms the RF drive flag corresponding to the RF device according to the mapping relationship; and finally saves the RF drive flag corresponding to the RF device.
[0038] The initialization module 101 is further used to execute RF card initialization according to the RF driving flag.
[0039] In this embodiment, the electronic device 10 may further include a judgment module 104. The judgment module 104 is used to judge whether the RF drive flag exists. Assuming that the RF drive flag already exists, the scanning module 102 and the processing module 103 do not work, and the initialization module 101 directly performs RF card initialization according to the RF drive flag. Assuming that the RF drive flag does not exist, the MIPI bus is then initialized through the initialization module 101. When the electronic device 10 is turned on for the second time, the judgment module 104 first determines whether the RF card flag exists, so that when the RF drive flag already exists, the electronic device 10 can directly perform RF card initialization through the initialization module 101, and the scanning module 102 does not need to perform RF device scanning, thereby simplifying the process.
[0040] The electronic device in this embodiment initializes the RF NV parameters and the MIPI bus through the initialization module, and then scans the RF device, confirms the RF drive flag corresponding to the RF device by scanning the RF device, and finally performs RF card initialization according to the RF drive flag. The RF card initialization is performed through the RF drive flag corresponding to the RF device, which solves the problems that the new and old software versions are incompatible or different customer software versions cannot be shared in the prior art.
[0041] See also Figure 2 FIG. 2 is a flow chart of an embodiment of the RF driven intelligent identification method of the present invention. The RF driven intelligent identification method can be executed by the processor 30 Figure 1 The module 101-104 shown is implemented.
[0042] Step S20: when the electronic device 10 is powered on, the RF NV parameters are initialized.
[0043] Specifically, the electronic device 10 may be an electronic device including RF (Radio Frequency) devices, such as a feature phone, a smart phone, a tablet personal computer (PC), a laptop computer, etc. The RF NV parameters include NV parameters of the RF card and the RF device, and may specifically include calibration parameters (ADC, AFC, AGC, APC, etc.), logic control parameters for transmitting and receiving signals, temperature compensation, etc.
[0044] Step S22, initializing the MIPI bus.
[0045] Specifically, MIPI is an interface standard developed by the Alliance, and its purpose is to standardize the interfaces inside the electronic device 10, such as the camera, display interface, RF baseband interface, etc., so as to reduce the complexity of the design of the electronic device 10 and increase the design flexibility.
[0046] Step S24, scanning RF devices.
[0047] Specifically, the RF device is scanned through the MIPI protocol. The RF device is a hardware device including an RF function, such as a coupler or other device.
[0048] Step S26, confirming and saving the RF driving flag according to the scanning result.
[0049] Specifically, the corresponding RF drive flag is confirmed according to the type of the RF device. The electronic device 10 includes a plurality of RF devices, and the RF card includes a plurality of RF drivers of the RF devices, and each RF driver corresponds to an RF drive flag. Different types of RF devices correspond to different RF drive flags. In this embodiment, step S26, confirming and saving the RF drive flag according to the scanning result specifically includes: first pre-establishing a mapping relationship between the RF device and the RF drive flag; then confirming the RF drive flag corresponding to the RF device according to the mapping relationship; and finally saving the RF drive flag corresponding to the RF device.
[0050] Step S28, performing RF card initialization according to the RF drive flag.
[0051] In this embodiment, the RF drive intelligent identification method step S initializes the MIPI bus and scans the RF device before: determining whether the RF drive flag exists. If the RF drive flag already exists, proceed to step S28; if the RF drive flag does not exist, proceed to step S22. When the electronic device 10 is powered on for the second time, by first determining whether the RFcard flag exists, when the RF flag already exists, the electronic device 10 can directly perform RF card initialization without performing the RF device scanning step, thereby simplifying the process.
[0052] The RF driver intelligent identification method in this embodiment first initializes the RF NV parameters and the MIPI bus, then scans the RF device, confirms the RF driver flag corresponding to the RF device by scanning the RF device, and finally performs RF card initialization according to the RF driver flag. Performing RF card initialization by using the RF driver flag corresponding to the RF device solves the problems in the prior art that the new and old software versions are incompatible or different customer software versions cannot be shared.
[0053] This embodiment also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the anti-addiction method as described above are implemented.
[0054] It is worth noting that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. An RF driven intelligent identification method, applied to an electronic device, wherein the electronic device includes an RF device, characterized in that: The method comprises the following steps: When the electronic device is powered on, initializing RF NV parameters; Initialize MIPI bus; Scanning the RF device; Confirm and save the RF drive flag according to the scan results; RF card initialization is performed according to the RF drive flag.
2. The RF driven intelligent identification method according to claim 1, characterized in that: The step of confirming and saving the RF drive flag according to the scanning result specifically includes the following steps: Pre-establishing a mapping relationship between a plurality of RF devices and a plurality of RF drive flag bits; Confirming the RF driving flag corresponding to the RF device according to the mapping relationship; The RF driving flag bit corresponding to the RF device is saved.
3. The RF driven intelligent identification method according to claim 1, characterized in that: Before the step of initializing the MIPI bus, the following steps are also included: Determine whether the RF drive flag exists; If the flag bit already exists, the RF card initialization is directly performed according to the RF drive flag bit.
4. The RF driven intelligent identification method according to claim 1, characterized in that: Scan RF devices via MIPI protocol.
5. An electronic device, characterized in that: The electronic device includes an RF device, a memory, a processor, and an RF driven intelligent recognition program stored in the memory and executable on the processor. When the RF driven intelligent recognition program is executed by the processor, the following steps are implemented: When the electronic device is powered on, initializing RF NV parameters; Initialize the MIPI bus and scan the RF device; Confirm and save the RF drive flag according to the scan results; RF card initialization is performed according to the RF drive flag.
6. The electronic device according to claim 5, characterized in that: The step of confirming and saving the RF drive flag according to the scanning result specifically includes the following steps: Pre-establishing a mapping relationship between a plurality of RF devices and a plurality of RF drive flag bits; Confirming the RF driving flag corresponding to the RF device according to the mapping relationship; The RF driving flag bit corresponding to the RF device is saved.
7. The electronic device according to claim 5, characterized in that: Before the step of initializing the MIPI bus and scanning the RF device, the following steps are also included: Determine whether the RF drive flag exists; If the flag bit already exists, the RF card initialization is directly performed according to the RF drive flag bit.
8. The electronic device according to claim 5, characterized in that: Scan RF devices via MIPI protocol.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the RF driven intelligent identification method according to any one of claims 1 to 4 are implemented.
