Signal processing method and electronic equipment

By adding an instruction processing module to the mobile terminal, pre-store the correspondence between MIPI instructions and the operation to be executed, the problems of restricted antenna deployment and long MIPI instructions processing time are solved, and faster instruction processing and better tight timing scenario applications are achieved.

CN120091460AActive Publication Date: 2025-06-03HONOR DEVICE CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202311593815.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-24
Publication Date
2025-06-03
Estimated Expiration
2043-11-24

AI Technical Summary

Technical Problem

The antenna deployment in mobile terminals is limited, and the MIPI instruction processing time is long, which affects the application of tight timing scenarios.

Method used

Add an instruction processing module to the electronic device, pre-store the corresponding relationship between MIPI instructions and the operation to be executed, directly execute target operations, and reduce dependence on the MCU and processing time.

Benefits of technology

It shortens the processing time of MIPI instructions, improves the application ability of electronic devices in tight timing scenarios, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120091460A_ABST
    Figure CN120091460A_ABST
Patent Text Reader

Abstract

The invention provides a signal processing method and electronic equipment, and relates to the technical field of communication. The signal processing method comprises the steps that a first MIPI instruction sent by a modulation-demodulation processor is received, information of a target operation matched with the first MIPI instruction is acquired through the first MIPI instruction and a stored first set of corresponding relations, and the first set of corresponding relations comprise the corresponding relations between N MIPI instructions and information of N to-be-executed operations; and the instruction processing module executes the target operation according to the information of the target operation. By the adoption of the method, the electronic equipment can accelerate the processing speed of the MIPI instruction and shorten the processing duration of the MIPI instruction, and due to the fact that the processing duration of the MIPI instruction is shortened, the electronic equipment can be applied to various scenes with close time sequence requirements, and the application scenes of the electronic equipment are increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technologies, and in particular, to a signal processing method and an electronic device. Background Art

[0002] With the application of full-screen displays in mobile terminals, the space available for deploying antennas in mobile terminals has decreased, resulting in limited antenna deployment in mobile terminals; moreover, the increase in communication frequency bands has also increased the number of antennas, further increasing the difficulty of antenna deployment. To minimize antenna deployment as much as possible, in different communication scenarios, the modem (MDM) in a mobile terminal can generate different Mobile Industry Processor Interface (MIPI) instructions. The modem transmits the generated MIPI instructions to the microcontroller unit (MCU) in the mobile terminal. The MCU identifies the MIPI instructions and processes the identified MIPI instructions. By processing the MIPI instructions through the MCU in the mobile terminal, different radio frequency front-end devices (FEMs) in different scenarios can be controlled, achieving efficient control of the radio frequency front-end (RFFE) or efficient reuse of antennas. Such communication scenarios may include cellular communication scenarios, Bluetooth communication scenarios, dual-SIM dual-standby scenarios, etc.

[0003] However, uploading MIPI instructions from the mobile terminal to the MCU and transmitting the processing results from the MCU to the corresponding modules takes a long time, and there is a large amount of information to be processed by the MCU, which exacerbates the processing time of MIPI instructions by the MCU, making it difficult for the mobile terminal to be applied in some scenarios with tight timing requirements. For example, in a scenario where the main card communication and the secondary card communication are switched, the long MIPI instruction processing time may lead to a long switching time between the main and secondary cards, affecting the user experience. Summary of the Invention

[0004] To solve the above technical problems, this application provides a signal processing method and an electronic device, enabling the electronic device to accelerate the processing speed of MIPI instructions and shorten the processing time of MIPI instructions; since the processing time of MIPI instructions is shortened, the electronic device can be applied to various scenarios with tight timing requirements, increasing the application scenarios of the electronic device.

[0005] In a first aspect, the present application provides a signal processing method, which is applied to an electronic device. The electronic device includes a modem processor and an instruction processing module electrically connected to the modem processor. The method includes: the modem processor generates a first Mobile Industry Processor Interface (MIPI) instruction and transmits the first MIPI instruction to the instruction processing module; when receiving the first MIPI instruction, the instruction processing module obtains information about a target operation that matches the first MIPI instruction according to a first set of corresponding relationships stored in the instruction processing module. The first set of corresponding relationships includes N corresponding relationships, and each corresponding relationship is used to indicate the correspondence between the MIPI instruction and the information of the operation to be executed. N is an integer greater than 0. The information of the operation to be executed includes: the operation type of the operation to be executed and the parameter information of the operation to be executed; the instruction processing module executes the target operation according to the information of the target operation.

[0006] In this way, the electronic device can be a device with communication functions, such as a mobile phone, a smart watch, a tablet computer, a vehicle-mounted device, etc. By adding an instruction processing module to the electronic device, the instruction processing module directly determines the target operation corresponding to the first MIPI instruction according to the pre-stored first set of corresponding relationships, and the instruction processing module executes the target operation. Since the instruction processing module is a hardware module, the processing speed of the MIPI instruction is faster than that of software for the MIPI instruction. In addition, since the corresponding relationships between N MIPI instructions and the information of the operations to be executed are pre-stored, the MIPI instruction can be processed without the participation of software in different communication scenarios, improving the flexibility of the instruction processing module in processing different MIPI instructions. And there is no need to upload the first MIPI instruction to the microcontroller unit in the electronic device for software processing, further shortening the processing speed of the first MIPI instruction. Since the electronic device shortens the processing speed of the first MIPI instruction, the electronic device can be applied to scenarios with tight timing, such as the scenario of primary card switching.

[0007] According to the first aspect, when receiving the first MIPI instruction, the instruction processing module obtains information about a target operation that matches the first MIPI instruction according to the first set of corresponding relationships stored in the instruction processing module, including: the instruction processing module obtains first query information in the first MIPI instruction, and the query information is used to identify the MIPI instruction; the instruction processing module detects whether there is a MIPI instruction that matches the first query information in the first set of corresponding relationships; when detecting that there is a MIPI instruction that matches the first query information, the MIPI instruction that matches the first query information is obtained as the target MIPI instruction; the information of the operation to be executed corresponding to the target MIPI instruction is obtained as the information of the target operation.

[0008] In this way, the instruction processing module does not have the function of recognizing MIPI instructions. In this example, after the instruction processing module obtains the stored first set of corresponding relationships, it matches the query information in the first MIPI instruction with the stored MIPI instructions, so that it can quickly detect whether there is an MIPI instruction in the stored first set of corresponding relationships that is the same as the first MIPI instruction, and then quickly find the information of the operation to be executed corresponding to the first MIPI instruction.

[0009] According to the first aspect, the query information includes one or more of the following: register address, instruction type, user service identifier, data volume, or data content. In this way, the query information can include one kind of information or a combination of multiple kinds of information in the MIPI instruction, so that the instruction processing module can use the query information to accurately recognize the same MIPI instruction; and using multiple kinds of information in the MIPI instruction as the query information increases the accuracy of detecting whether there is an instruction in the first set of corresponding relationships that is the same as the first MIPI instruction.

[0010] According to the first aspect, the instruction processing module includes: a first storage unit and a second storage unit; before obtaining the information of the target operation that matches the first MIPI instruction according to the first set of corresponding relationships stored in the instruction processing module, the method further includes: the micro control unit of the electronic device sends the N MIPI instructions in the first set of corresponding relationships to the first storage unit; the micro control unit sends the information of the N operations to be executed in the first set of corresponding relationships to the second storage unit for storage, where the identification information of the MIPI instruction stored in the first storage unit is the same as the identification information of the corresponding information of the operation to be executed stored in the second storage unit.

[0011] In this way, the first storage unit in the instruction processing module is used to store the MIPI instructions in the first set of corresponding relationships, and the second storage unit stores the information of the operations to be executed in the first set of corresponding relationships. The MIPI instruction and the information of the operation to be executed in each corresponding relationship are bound by the same identification information; storing the MIPI instruction and the information of the operation to be executed separately can speed up the subsequent speed of obtaining the information of the operation to be executed. The first storage unit and the second storage unit can be a Random Access Memory (RAM).

[0012] According to the first aspect, the instruction processing module further includes: a matching unit, which is electrically connected to the first storage unit and the second storage unit; the instruction processing module detects whether there is a MIPI instruction that matches the first query information in the first set of corresponding relationships, including: when the matching unit receives the first MIPI instruction, the matching unit obtains the MIPI instruction in the first set of corresponding relationships from the first storage unit; the matching unit detects whether there is a MIPI instruction that is the same as the first MIPI instruction according to the query information of the obtained MIPI instruction and the first query information of the first MIPI instruction, and obtains the detection result.

[0013] In this way, the matching unit in the instruction processing module obtains the MIPI instruction in the first set of corresponding relationships from the first storage unit. Through the first query information of the first MIPI instruction and the query information of the MIPI instruction in the first set of corresponding relationships, it can quickly query whether the MIPI instruction in the first set of corresponding relationships matches the first MIPI instruction. In addition, in this example, only when the matching unit needs to perform matching, it obtains the first set of corresponding relationships from the first storage unit. The matching unit does not need to store a large number of MIPI instructions in real time. After the matching is completed, the obtained MIPI instruction can be released, thereby improving the operation speed of the matching unit.

[0014] According to the first aspect, the instruction processing module stores m sets of corresponding relationships, and the m sets of corresponding relationships correspond to m working modes one by one, where m is an integer greater than 1. In this way, the instruction storage module can store multiple sets of corresponding relationships. Each set of corresponding relationships corresponds to a working mode, and the corresponding relationships of different working modules are stored, which is convenient for subsequently obtaining a corresponding set of corresponding relationships according to the working mode and accelerating the matching speed of the matching unit.

[0015] According to the first aspect, the instruction processing module further includes: a matching unit and a working mode obtaining unit. The matching unit is electrically connected to the first storage unit and the second storage unit; the input end of the working module obtaining unit is connected to the system-on-chip of the electronic device and the matching unit, and the output end of the working module obtaining unit is connected to the first storage unit; when the matching unit receives the first MIPI instruction, the matching unit obtains the MIPI instruction in the first set of corresponding relationships from the first storage unit, including: when the matching unit receives the first MIPI instruction, the matching unit generates first indication information; the working mode obtaining unit uploads the information of the working mode of the current instruction processing module to the first storage unit according to the first indication information, where the information of the working mode of the instruction processing module stored in the working mode obtaining unit is sent by the system-on-chip; the first storage unit obtains the MIPI instruction in the first set of corresponding relationships that matches the current working mode according to the information of the current working mode, and transmits the MIPI instruction in the first set of corresponding relationships to the matching unit.

[0016] In this way, the system-on-chip in the electronic device sends the current working mode of the instruction processing module to the working mode acquisition unit. After receiving the first MIPI instruction, the matching unit instructs the working mode acquisition unit to transmit the information of the current working mode of the instruction processing module to the first storage unit, so that the first storage unit can obtain a set of corresponding relationships corresponding to the current working mode of the instruction processing module, reducing the number of MIPI instructions for the matching unit to perform matching, thereby accelerating the speed of the first MIPI instruction matched by the matching unit.

[0017] According to the first aspect, the instruction processing module further includes an operation execution unit electrically connected to the output end of the second storage unit; the instruction processing module executes the target operation according to the information of the target operation, including: the operation execution unit generates a target instruction according to the operation type of the target operation and the parameter information of the target operation; the operation execution unit runs the target instruction. In this way, the operation type and parameter information obtained by the operation execution unit can generate the target instruction of the target operation, and there is no need for software to provide the target instruction, enabling the operation execution unit to quickly execute the target operation.

[0018] According to the first aspect, obtaining the information of the operation to be executed corresponding to the target MIPI instruction as the information of the target operation includes: when the detection result indicates that there is a MIPI instruction identical to the first MIPI instruction, the matching unit instructs the second storage unit to obtain the information of the operation to be executed corresponding to the target MIPI instruction as the information of the target operation according to the identification information of the target MIPI instruction. In this way, the MIPI instruction and the information of the operation to be executed in each set of corresponding relationships are bound by the same identification information, and the matching unit can instruct the second storage unit to obtain the corresponding information of the operation to be executed through the identification information of the matched MIPI instruction, which enables the second storage unit to quickly and accurately obtain the corresponding information of the operation to be executed.

[0019] According to the first aspect, obtaining the information of the operation to be executed corresponding to the target MIPI instruction as the information of the target operation includes: when the detection result indicates that there is a MIPI instruction identical to the first MIPI instruction, the matching unit instructs the working mode acquisition unit to transmit the information of the working mode of the instruction processing module to the second storage unit; the matching unit instructs the second storage unit to obtain the information of the operation to be executed corresponding to the target MIPI instruction as the information of the target operation according to the identification information of the target MIPI instruction and the information of the working mode of the instruction processing module. In this way, the second storage unit can accurately obtain the information of the target operation corresponding to the target MIPI instruction according to the identification information of the target MIPI instruction and the working mode of the instruction processing module.

[0020] According to the first aspect, the instruction processing module further includes: a counter, the input end of the counter is electrically connected to the output end of the matching unit, and the output end of the counter is electrically connected to the second storage unit; before the matching unit instructs the second storage unit to obtain the information of the operation to be executed corresponding to the target MIPI instruction as the information of the target operation according to the identification information of the target MIPI instruction when the detection result indicates that there is a MIPI instruction identical to the first MIPI instruction, the method further includes: after the matching unit completes one matching of the MIPI instruction and the stored MIPI instructions each time, it instructs the counter to increment the current value by one, where the counter is used to record the identification information of each MIPI instruction matched with the first MIPI instruction; when the matching unit detects that there is a MIPI instruction identical to the first MIPI instruction, it instructs the counter to transmit the counting result of the counter to the second storage unit for the second storage unit to use the counting result as the identification information of the target MIPI instruction. In this way, the instruction processing module can record the identification information of each matched MIPI instruction through the counter, and in this way, the hardware module can accurately obtain the identification information of the successfully matched MIPI instruction, so that the identification information of the successfully matched MIPI instruction can be transmitted to the second storage unit subsequently, and the operation execution unit can accurately obtain the information of the target operation.

[0021] According to the first aspect, the microcontroller unit issues m groups of corresponding relationships to the instruction processing module through the advanced high-performance bus. In this way, the MCU can configure new corresponding relationships through the advanced high-performance bus, improving the flexibility of MIPI instruction processing.

[0022] According to the first aspect, the electronic device is a device that supports the dual-card and dual-standby mode and shares the transmitting antenna; the instruction processing module executes the target operation according to the information of the target operation, including: when the information of the target operation indicates to switch the primary card from the first subscriber identity module (SIM) card to the second SIM card, the instruction processing module switches the primary card from the first SIM card to the second SIM card and transfers the authorization permission of the first SIM card to the second SIM card; the instruction processing module transmits the processing result to the radio frequency front-end device. In this way, when the electronic device switches the primary card from the first SIM card to the second SIM card, there is no need for the MCU to perform the switching process, reducing the time for the primary card to switch SIM cards and accelerating the switching speed, so that the primary card of the electronic device switches quickly and reduces the duration of inability to communicate during the SIM card switching process.

[0023] According to the first aspect, the electronic device is a device that supports the dual-SIM and dual-standby mode and shares a transmitting antenna. Before the instruction processing module executes the target operation according to the information of the target operation, the method further includes: the instruction processing module determines that the utilization rate of the Bluetooth antenna of the electronic device exceeds the utilization rate threshold and there is an idle cellular antenna; the instruction processing module executes the target operation according to the information of the target operation, including: when the information of the target operation indicates an interception operation, the instruction processing module intercepts the first MIPI instruction; the instruction processing module replaces the intercepted first MIPI instruction with a second instruction, and the second instruction is an instruction for instructing the idle cellular antenna to perform Bluetooth communication; the instruction processing module transmits the second instruction to the radio frequency front-end device. In this way, for an electronic device that supports the dual-SIM and dual-standby mode, the system-on-chip of the electronic device can detect that the utilization rate of the Bluetooth antenna exceeds the utilization rate threshold, and the system-on-chip can transmit the first detection result to the MCU, which is then transmitted to the instruction processing module by the MCU. The MCU can also detect whether there is an idle cellular antenna. If so, it can transmit the second detection result to the instruction processing module; when the instruction processing module determines that the utilization rate of the Bluetooth antenna of the electronic device exceeds the utilization rate threshold and there is an idle cellular antenna, the instruction processing module can intercept redundant MIPI instructions (i.e., successfully matched MIPI instructions), replace the redundant MIPI instructions with the second instruction, so as to realize Bluetooth communication through the idle cellular antenna and improve the speed of Bluetooth data transmission. In this example, there is no need for the MCU to intercept and replace redundant MIPI instructions, reducing the time for intercepting and replacing instructions, so that the speed of Bluetooth communication through the cellular antenna will not be affected, and the speed of Bluetooth communication using the cellular antenna by the electronic device is improved. In addition, the redundant MIPI instructions in this example are related instructions generated when the idle cellular antenna is started for indicating cellular communication.

[0024] According to a first aspect, the electronic device is a device that supports the dual-SIM and dual-standby mode and shares a transmitting antenna, and the electronic device is in the dual-SIM and dual-standby mode or the cellular antenna of the electronic device is in a tuned scenario; the instruction processing module executes a target operation according to the information of the target operation, including: when the information of the target operation indicates a filtering operation, the instruction processing module deletes the first MIPI instruction. In this way, for an electronic device that supports the dual-SIM and dual-standby mode and shares a transmitting antenna, in the case of cellular communication or in the dual-SIM and dual-standby mode, the electronic device needs to filter out some specific instructions. Usually, hardware modules such as Radio Frequency Integrated Circuit (RFIC) do not have the function of identifying MIPI instructions and need to be filtered by the MCU, resulting in a long time consumption for filtering specific instructions. In this example, through the first set of corresponding relationships, it can be quickly determined whether the first MIPI instruction is an instruction that needs to be filtered. When it is determined that the first MIPI instruction is an instruction that needs to be filtered, the first MIPI instruction is deleted, improving the speed of the electronic device for filtering specific instructions.

[0025] In a second aspect, the present application provides a processor for calling and running a computer program from a memory, so that an electronic device installed with the chip system executes the signal processing method corresponding to the first aspect and any implementation manner of the first aspect.

[0026] The second aspect and any implementation manner of the second aspect respectively correspond to the first aspect and any implementation manner of the first aspect. The technical effects corresponding to the second aspect and any implementation manner of the second aspect can refer to the technical effects corresponding to the first aspect and any implementation manner of the first aspect above, and will not be elaborated here.

[0027] In a third aspect, the present application provides an electronic device, including: one or more processors; a memory; and one or more computer programs, where one or more computer programs are stored on the memory, and when the computer programs are executed by one or more processors, the electronic device executes the signal processing method corresponding to the first aspect and any implementation manner of the first aspect.

[0028] The third aspect and any implementation manner of the third aspect respectively correspond to the first aspect and any implementation manner of the first aspect. The technical effects corresponding to the third aspect and any implementation manner of the third aspect can refer to the technical effects corresponding to the first aspect and any implementation manner of the first aspect above, and will not be elaborated here.

[0029] Fourthly, the present application provides a computer-readable medium for storing a computer program, which, when running on an electronic device, causes the electronic device to execute the signal processing method corresponding to the first aspect and any implementation manner of the first aspect as described above. Description of the Drawings

[0030] To more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0031] Figure 1 is a schematic diagram of a scenario for processing MIPI instructions shown by way of example;

[0032] Figure 2 is a schematic structural diagram of a module for processing MIPI instructions shown by way of example;

[0033] Figure 3 is a schematic structural diagram of an electronic device shown by way of example;

[0034] Figure 4 is a schematic structural diagram of a module for processing MIPI instructions shown by way of example;

[0035] Figure 5 is a flowchart of signal processing shown by way of example;

[0036] Figure 6 is a schematic diagram of a set of corresponding relationships shown by way of example;

[0037] Figure 7 is a schematic diagram of m groups of corresponding relationships corresponding to m working modes shown by way of example;

[0038] Figure 8 is a schematic hardware structure diagram of an instruction processing module shown by way of example;

[0039] Figure 9 is a schematic hardware structure diagram of an instruction processing module shown by way of example. Detailed Embodiments

[0040] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts fall within the scope of protection of the present application.

[0041] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0042] The terms "first" and "second" in the description and claims of the embodiments of the present application are used to distinguish different objects rather than to describe a specific order of objects. For example, a first target object and a second target object are used to distinguish different target objects rather than to describe a specific order of target objects.

[0043] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0044] In the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" refers to two or more than two. For example, multiple processing units refer to two or more processing units; multiple systems refer to two or more systems.

[0045] In the description of the embodiments of the present application, the names of the various indications and / or commands and / or instructions and / or information and / or signaling and / or messages are only examples and may be replaced with other names according to actual scenarios during the specific implementation process.

[0046] Before explaining the embodiments of the present application in detail, some technical terms involved in the present application are first explained.

[0047] (1) Dual SIM dual active (DSDA) mode: A mode in which a mobile terminal can support two numbers to be dialed and talk at the same time.

[0048] (2) TX sharing: In a mobile terminal supporting dual-SIM dual-pass mode, a first Subscriber Identity Module (SIM) card and a second SIM card usually share the same TX antenna.

[0049] (3) RF front-end modules (FEM): devices between the baseband and the antenna, usually integrating RF power amplifiers, RF low-noise amplifiers, and filtering / switching function circuits.

[0050] (4) Radio Frequency Front-End (RFFE): Also known as the FEM of the front-end module.

[0051] (5) Modem (MDM): A device that can implement the modulation and demodulation functions required for communication. This modem is part of a mobile terminal. The modem can be regarded as a conversion interface that enables digital data to be transmitted on an analog signal transmission line. In this example, the modem can also generate MIPI instructions required for the current communication scenario in different communication scenarios.

[0052] (6) Advanced High Performance Bus (AHB): AHB is mainly used for connecting high-performance modules. High-performance modules can be MCU, Direct Memory Access (DMA), and Digital Signal Processing (DSP), etc.

[0053] (7) None-Dedicated data subscription (NonDDS or nDDS) card: It can be understood as a non-dedicated data card, that is, a secondary card.

[0054] (8) Dedicated data subscription (DDS) card: It can be understood as a dedicated data card, that is, a primary card.

[0055] (9) Instruction queue (Sequence, SEQ): A queue formed by a series of instructions.

[0056] (10) Software Defined Radio (SDR): SDR is a radio broadcast communication technology that is based on software-defined wireless communication protocols rather than being implemented through hardwiring. In other words, the frequency band, air interface protocol, and functions can be upgraded through software downloads and updates without completely replacing the hardware.

[0057] (11) Exchange Termination - Digital to analog converter (ET DAC): A device used to convert digital signals in an exchange terminal into analog signals.

[0058] (12) First-In-First-Out (FIFO) is a common data buffering and communication principle used to cache and manage data during data transmission. That is, the data that first enters the buffer will be read and processed first, and the data that enters last will be read last.

[0059] (13) Radio Frequency Integrated Circuit (RFIC): A series of circuits, chips, components, etc. in a mobile terminal that are responsible for transmitting and receiving radio electromagnetic waves are collectively referred to as radio frequency integrated circuits (or radio frequency chips).

[0060] Figure 1 This is a schematic diagram of a scenario for processing MIPI instructions provided by an embodiment of this application. In different communication scenarios of an electronic device, the modulation and demodulation processor of the electronic device can generate MIPI instructions corresponding to each communication scenario. In one example, the modulation and demodulation processor can directly transmit the generated MIPI instructions to the RFIC, and the RFIC controls the FEM in the current scenario.

[0061] Optionally, the communication scenarios may include: cellular communication scenarios, scenarios where the primary card switches from the first SIM card to the second SIM card, Bluetooth communication scenarios, cellular antenna tuning scenarios, etc. Figure 1 In this, the electronic device is illustrated by taking mobile phone A as an example. As Figure 1 shown in 1a, mobile phone A is a device that supports the dual-SIM and dual-standby mode, and the primary card and the secondary card in this mobile phone A share the transmitting antenna. In response to the primary card switching operation input by the user (i.e., the operation of the primary card switching from the first SIM card to the second SIM card), the modulation and demodulation processor of this mobile phone A generates a switching instruction, and this switching instruction belongs to the MIPI instruction. The modulation and demodulation processor transmits the generated switching instruction to the RFIC, and the RFIC controls the FEM in mobile phone A according to the switching instruction. In this example, the connection relationship among the modulation and demodulation processor, the RFIC, and the FEM in this electronic device is as Figure 2As shown in 2a. The modem processor (MDM) is electrically connected to the RFIC, and the RFIC is electrically connected to the FEM. The MDM transmits the generated MIPI instructions to the RFIC, and the RFIC controls the FEM to switch according to the MIPI instructions generated by the MDM. The modem processor in the electronic device controls the FEM through the RFIC. This method has a fast control speed. However, since the RFIC is a hardware device and the processing method of the MIPI instructions by the RFIC is fixed, in some communication scenarios (such as the scenario where both cellular communication and Bluetooth communication use the cellular antenna), the RFIC cannot process, which affects the application of the electronic device. In order to improve the flexibility of the electronic device in processing MIPI instructions, the MIPI instructions can be transmitted to the MCU, and the MCU processes the MIPI instructions through a software program.

[0062] Figure 1 In the communication scenario shown in 1b, the mobile phone A includes multiple (such as 4) cellular antennas and Bluetooth antennas. In the scenario where the Bluetooth antenna of the mobile phone A is frequently used, it can also perform Bluetooth communication through the idle cellular antenna to improve the speed of Bluetooth data transmission and avoid the problem of Bluetooth transmission jamming. The SOC of the mobile phone A can detect whether the usage rate of the Bluetooth antenna exceeds the usage rate threshold. When the SOC detects that the usage rate of the Bluetooth antenna exceeds the usage rate threshold, it determines that the mobile phone A is in the scenario where the Bluetooth antenna is frequently used. The usage rate threshold can be preset. For example, the usage rate threshold can be 80%.

[0063] The mobile phone A also includes an MCU, a reception control module, and a transmission control module, as Figure 2 shown in 2b. The modem processor is electrically connected to the reception control module, the reception control module is electrically connected to the MCU, the MCU is electrically connected to the transmission control module, the transmission control module is electrically connected to the FEM, and the FEM is electrically connected to the antenna. When the mobile phone A is in the scenario where the Bluetooth antenna is frequently used, the modem processor of the mobile phone A transmits the generated MIPI instructions to the reception control module, and the reception control module uploads the MIPI instructions transmitted by the MDM to the MCU. The MCU continuously monitors the received MIPI instructions of each path. When it detects that there is an idle cellular antenna, the MCU issues a new MIPI instruction to the FEM. The new MIPI instruction is used to instruct the FEM to modify the FEM parameters of the cellular antenna so that the cellular antenna can perform Bluetooth transmission. In the scenario where the Bluetooth antenna is frequently used, the MCU needs to spend a large amount of time detecting the MIPI instructions of each path, and the MCU also needs to spend time issuing the new MIPI instruction to the FEM, resulting in the problem of slow Bluetooth data transmission speed and the problem of data transmission jamming.

[0064] Optionally, the following hardware structures may exist simultaneously in the electronic device Figure 2 as shown in 2a, andFigure 2 The hardware structure shown in Figure 2b. In different communication scenarios, different hardware structures can be adopted to process MIPI instructions to meet the requirements of different communication scenarios.

[0065] When the MCU of the electronic device processes MIPI instructions through a software program, it needs to receive the MIPI instructions uploaded by the control module to the MCU, and then the MCU processes the received MIPI instructions through the software program. However, the MCU needs to process a lot of information, resulting in a slow speed of the MCU to process MIPI instructions; and the speed of the software program to process instructions is slower than that of the hardware device to process MIPI instructions, which also prolongs the processing time of MIPI instructions and affects the user experience. For example, in the scenario of Figure 1b, Figure 1 since the MCU needs to process MIPI instructions, the processing speed is slow, resulting in problems such as a long time for mobile phone A to establish a Bluetooth connection with smartwatch B and a large delay in data transmission.

[0066] The present application provides a signal processing method, which is applied to an electronic device. The electronic device includes a modulation and demodulation processor and an instruction processing module electrically connected to the modulation and demodulation processor; the modulation and demodulation processor generates a first MIPI instruction and transmits the first MIPI instruction to the instruction processing module; when the instruction processing module receives the first MIPI instruction, according to the first set of correspondences stored in the instruction processing module, it obtains information about the target operation that matches the first MIPI instruction. The first set of correspondences includes the correspondences between N MIPI instructions and information about N operations to be executed, where N is an integer greater than 0, and the information about the operation to be executed includes: the operation type of the operation to be executed and the parameter information of the operation to be executed; the instruction processing module executes the target operation according to the information about the target operation.

[0067] In this example, an instruction processing module is added to the electronic device. The first set of correspondences is pre-stored in the instruction processing module. The first set of correspondences includes the relationships between different MIPI instructions and the information about the corresponding operations to be executed, so that the instruction processing module does not need to report MIPI instructions to the MCU, nor does the MCU need to decide what operations to adopt; it saves the processing time of MIPI instructions by the electronic device; in addition, since the instruction processing module is a hardware module, the processing speed of the instruction processing module for MIPI instructions is faster than that of the MCU through the software program for MIPI instructions. Since the processing speed of the electronic device for different MIPI instructions is improved, the electronic device can be applied to scenarios with a short timing processing time, improving the user experience of using the electronic device.

[0068] Figure 3 This is a schematic structural diagram of an electronic device 100 shown in an embodiment of the present application. It should be understood that, Figure 3The illustrated electronic device 100 is merely an example of an electronic device, and the electronic device 100 may have more or fewer components than those shown in the figure, may combine two or more components, or may have a different component configuration. Figure 3 The various components shown in [the figure] may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and / or application specific integrated circuits. In this example, the electronic device 100 is taken as a mobile phone.

[0069] The electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor, a gyro sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.

[0070] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor (Modem, MDM), a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc.

[0071] In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be disposed in the same device as the mobile communication module 150 or other functional modules.

[0072] In some embodiments, the processor may include a System on Chip (SOC) and an MCU. The SOC may determine the operating mode of the current instruction processing module. The SOC may determine the operating mode of the instruction processing module according to the service scenario of the current electronic device. Different operating modes have their respective corresponding relationships; the electronic device may, according to the service scenario, divide the MIPI instructions generated under the same service scenario and the information of the operation to be executed into the corresponding operating mode. For example, if the current service scenario of the electronic device is a Bluetooth communication scenario, the corresponding operating mode for this Bluetooth communication scenario is Mode 0, and the electronic device may divide the MIPI instructions generated under the Bluetooth communication scenario and the corresponding operations to be executed into a set of corresponding relationships corresponding to Mode 0.

[0073] The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, and the baseband processor, etc. The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization rate of the antennas. For example, the antenna 1 can be multiplexed as the diversity antenna of the wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0074] Figure 5 This is a flowchart of signal processing provided by an embodiment of the present application. The method of signal processing is executed by an electronic device, and the electronic device can be a mobile phone, a watch, a vehicle-mounted device, etc.

[0075] The connection relationship between the instruction processing module and each component in the electronic device is as Figure 4 shown. The modulation and demodulation processor of the electronic device is electrically connected to the instruction processing module, and the instruction processing module is electrically connected to the MCU. The processing result obtained by the instruction processing module can be transmitted to the module corresponding to the current service for the module corresponding to the current service to use the processing result. For example, the instruction processing module is electrically connected to the FEM; when the current service scenario of the electronic device is Bluetooth communication (such as Figure 1 the scenario shown in 1b), the instruction processing module transmits the processed MIPI instruction to the FEM to achieve the purpose of Bluetooth communication through the cellular antenna.

[0076] In some embodiments, the MCU may pre-configure (or pre-define) the corresponding relationship between different MIPI instructions and the information of the operation to be executed, and send the configured corresponding relationship to the instruction processing module. Optionally, the MCU may also, according to the service requirements, add a new corresponding relationship between the MIPI instruction and the operation to be executed, and send the added corresponding relationship to the instruction processing module for storage by the instruction processing module.

[0077] In some other embodiments, the electronic device may also store the correspondence between different pre-configured MIPI instructions and the information of the operations to be executed in the instruction processing module in other ways.

[0078] In this example, the first set of correspondence relationships may include the relationships between N different MIPI instructions and the information of N corresponding operations to be executed, where N is an integer greater than 0. For example, N is 20, 30, 50, 100, etc. The first set of correspondence relationships may be stored in the form of a mapping table, such as Figure 6 the mapping table of the first set of correspondence relationships shown. In this table, Rule is used to indicate the MIPI instruction, and Action is used to indicate the information of the operation to be executed. The information of the operation to be executed includes: the operation type of the operation to be executed and the parameter information of the operation to be executed. The electronic device may generate an instruction for the operation to be executed according to the operation type of the operation to be executed and the parameter information of the operation to be executed. The parameter information of the operation to be executed may be the information of the parameters required in the instruction of the operation to be executed, such as the position where the interrupt instruction is executed.

[0079] Step 501: The modem processor generates a first Mobile Industry Processor Interface (MIPI) instruction and transmits the first MIPI instruction to the instruction processing module.

[0080] In some embodiments, in response to a service operation input by the user, the modem processor generates a MIPI instruction corresponding to the service operation as the first MIPI instruction. Examples of service operations include: the service operation input by the user is to turn on the Bluetooth function, switch the primary card, etc.

[0081] In some other embodiments, the modem processor may also generate a MIPI instruction corresponding to the service instruction in response to the service instruction transmitted by the upper-layer application, and use the generated MIPI instruction as the first MIPI instruction.

[0082] In this example, the MIPI instructions generated by the modem processor may all be used as the first MIPI instruction. After generating the first MIPI instruction, the modem processor may transmit the first MIPI instruction to the instruction processing module electrically connected to the modem processor.

[0083] Step 502: When the instruction processing module receives the first MIPI instruction, it obtains the information of the target operation that matches the first MIPI instruction according to the first set of correspondence relationships stored in the instruction processing module.

[0084] Exemplarily, when the instruction processing module receives the first MIPI instruction, it looks up whether there is a MIPI instruction identical to the first MIPI instruction in the stored first set of corresponding relationships. When the instruction processing module detects that there is a MIPI instruction identical to the first MIPI instruction in the first set of corresponding relationships, it obtains the MIPI instruction identical to the first MIPI instruction in the first set of corresponding relationships as the target MIPI instruction. The instruction processing module obtains the information of the operation to be executed corresponding to the target MIPI as the information of the target operation.

[0085] The MIPI instruction may include the following information: register address, instruction type, Unique Slave ID (USID), data volume, and data content. Optionally, the instruction processing module may obtain the first query information in the first MIPI instruction and match the first query information in the first MIPI instruction with the query information of each MIPI instruction stored in the instruction processing module. When the instruction processing module detects that there is query information identical to the first query information in the first set of corresponding relationships, the instruction processing module determines that there is a MIPI instruction identical to the first MIPI instruction in the first set of corresponding relationships. When the instruction processing module detects that there is no query information identical to the first query information in the first set of corresponding relationships, it determines that there is no MIPI instruction identical to the first MIPI instruction in the first set of corresponding relationships. In this example, the query information may be one or more of the register address, instruction type, user service identifier, data volume, or data content in the MIPI instruction. For example, the first query information includes: register address; the first query information may also include: register address and instruction type.

[0086] For example, as Figure 6 shown, the first set of corresponding relationships stored in the instruction processing module includes x corresponding relationships, each corresponding relationship includes a MIPI instruction and the information of the operation to be executed corresponding to the MIPI instruction, and Rule is used to indicate the MIPI instruction. Figure 6 In this, Action is used to indicate the information of the operation to be executed corresponding to the MIPI instruction. The MIPI instruction in Rule includes information such as register address, instruction type, user service identifier, data volume, or data content. Optionally, the Rule may also be information used to characterize the MIPI instruction. For example, the Rule includes the query information of the MIPI instruction, and the query information may include one or more of the register address, instruction type, user service identifier, data volume, or data content.

[0087] In this example, taking Rule as the representation of the MIPI instruction and the query information as the register address, the register address in the first MIPI instruction obtained by the instruction processing module is "00". The instruction processing module obtains the first query information (i.e., Rule0) in the first set of corresponding relationships. The register address in the first query information is "01". The instruction processing module detects that the register address in the first query information is inconsistent with the register address in the first MIPI instruction, and determines that the first MIPI instruction does not match the first corresponding relationship. The instruction processing module obtains the second query information (i.e., Rule1) and detects that the register address (such as "02") in the second query information is inconsistent with the first MIPI instruction, and determines that the first MIPI instruction does not match the second corresponding relationship. The instruction processing module obtains the third query information (i.e., Rule2) and detects that the register address (such as "00") in the second query information is consistent with the first MIPI instruction, determines that the first MIPI instruction matches the third corresponding relationship, and obtains the Action2 corresponding to the Rule2, and the Action2 is the information of the target operation.

[0088] In one example, the instruction processing module can read the information of the target operation. The information of the target operation may include the operation type and parameter information of the operation to be executed. The types of operations to be executed include: interrupt operation, delay operation, storing data in the FIFO, etc. The instruction processing module can obtain the parameter information from the information of the target operation and use the parameter information as the variable parameter required for the first operation instruction. The instruction processing module generates a target instruction according to the type and parameter information of the operation to be executed. For example, the instruction processing module determines that the operation to be executed is an interrupt operation according to the operation type of the operation to be executed, and the obtained parameter is the information indicating the interrupt occurrence position. The combination of the information of the interrupt occurrence position and the operation type to be executed (i.e., the interrupt operation) generates a target instruction (i.e., an interrupt instruction).

[0089] For example, as Figure 6 shown, when the instruction processing module determines that Rule2 in the first set of corresponding relationships matches the first MIPI instruction and obtains the Action2 corresponding to Rule2, that is, obtains the operation type and parameter information of the operation to be executed. The instruction processing module determines the target instruction of the target operation according to the operation type and parameter information of the operation to be executed. In this example, the types of operations to be executed may include: the operation of storing data in the FIFO, interrupt operation, discard operation, replacement operation, DMA operation, SEQ operation, GPIO, delay operation (Delay), insert operation (Insert), mode switching operation, etc. The functions of each operation are specifically described below:

[0090] Operations of the data storage FIFO: used to instruct the instruction processing module to store data in the queue according to the first-in, first-out principle.

[0091] The interrupt operation is used to instruct the instruction processing module to perform an interruption at a specified position. Among them, the parameter information includes the instruction position of the interruption.

[0092] The discard operation is used to instruct the instruction processing module to discard the current MIPI instruction. Among them, the parameter information can be empty.

[0093] The replacement operation is used to instruct the instruction processing module to replace the first MIPI instruction with a specified MIPI instruction. The parameter information can include the specified MIPI instruction.

[0094] The DMA operation is used to instruct the instruction processing module to read data from the source address and store the read data in a preset position. The parameter information can include the source address information and the information of the preset position. For example, the instruction processing module can batch load the MIPI instruction queue into the FIFO storage through the DMA operation.

[0095] The SEQ operation is used to instruct the instruction processing module to emit the instructions in the loaded MIPI instruction queue. Among them, the parameter information can be empty.

[0096] The GPIO operation is used to instruct the instruction processing module to configure the GPIO interface. The parameter information includes the configuration information of the GPIO interface.

[0097] The delay operation is used to instruct to add a delay between the currently successfully matched MIPI instruction and the previous MIPI instruction. By default, the instruction processing module stores the currently successfully matched MIPI instruction in the FIFO queue. The duration of the delay is a preset duration, and the parameter information includes the preset duration.

[0098] The insertion operation is used to instruct that after storing the currently successfully matched MIPI instruction in the FIFO queue, a new MIPI instruction is inserted into the FIFO queue. The parameter information includes the newly added MIPI instruction.

[0099] The mode switching operation is used to instruct the instruction processing module to switch to the target mode. The parameter information includes the target mode.

[0100] It should be noted that if the instruction processing module does not detect a register address identical to "00" after traversing each query information in the first set of corresponding relationships, the instruction processing module determines that there is no MIPI instruction in the first set of corresponding relationships that is the same as the first MIPI instruction, that is, there is no information on the operation to be executed corresponding to the first MIPI instruction. Optionally, the instruction processing module may upload the first MIPI instruction to the MCU for processing by the MCU through a software program. Optionally, the instruction processing module may also directly transmit the first MIPI instruction to the FEM, or directly discard the first MIPI instruction.

[0101] Step 503: The instruction processing module executes the target operation according to the information on the target operation.

[0102] Exemplarily, the instruction processing module obtains the instruction of the target operation and runs the instruction of the target operation. For example, the instruction processing module executes an interrupt operation, that is, pauses the currently running program.

[0103] It should be noted that there may be multiple pieces of information on the target operation corresponding to the first MIPI instruction, that is to say, the instruction processing module may execute multiple target operations.

[0104] In this example, the electronic device can determine the information on the target operation corresponding to the first MIPI instruction through the information on the operation to be executed stored in the instruction processing module. Furthermore, the instruction processing module can execute the target operation according to the information on the target operation. Since there is no need for the MCU to process the MIPI instruction through a software program, the processing speed of the MIPI instruction is improved.

[0105] Figure 8 This is the hardware structure of the instruction processing module shown exemplarily. As Figure 8 shown, the instruction processing module may include a first storage unit, a matching unit, a counter, a second storage unit, and an operation execution unit. The first storage unit is electrically connected to the matching unit, the matching unit is electrically connected to the input end of the counter, the output end of the counter is electrically connected to the second storage unit, and the second storage unit is electrically connected to the operation execution unit. Both the first storage unit and the second storage unit are electrically connected to the MCU. The electronic device may pre-configure N corresponding relationships in the MCU, where N is an integer greater than 1. For example, N is 200. When the electronic device is powered on, in the initialization stage, the MCU may send the MIPI instructions in the N corresponding relationships to the first storage unit through the AHB for the first storage unit to store the MIPI instructions. The MCU sends the information on the operation to be executed corresponding to the MIPI instruction to the second storage unit through the AHB for the second storage unit to store the information on the operation to be executed corresponding to the MIPI instruction.

[0106] Optionally, the mapping relationship between the MIPI instructions and the information of the corresponding operations to be executed among the N corresponding relationships is configured by the MCU through AHB. Specifically, the MCU can mark each corresponding relationship through the identification information of the corresponding relationship (also referred to as the second identification information hereinafter). That is to say, the second identification information of the MIPI instruction in the first storage space is the same as the second identification information of the information of the corresponding operation to be executed in the second storage space. For example, the MCU can instruct the identification "0" to mark the first corresponding relationship. The MCU instructs that the identification information of the MIPI instruction in the first corresponding relationship in the first storage unit is also "0". The MCU instructs that the identification information of the information of the operation to be executed corresponding to the MIPI instruction in the first corresponding relationship in the second storage unit is also "0". The MCU strongly binds the MIPI instruction and the information of the corresponding operation to be executed through the same second identification information.

[0107] After generating the MIPI instruction, the modem processor transmits the MIPI instruction to the instruction processing module. As Figure 8 shown, MIPIDATA is the MIPI instruction generated by the modem processor. The matching unit in the instruction processing module receives the MIPIDATA, and triggers the matching unit to obtain x MIPI instructions in the first set of corresponding relationships from the first storage unit. When the matching unit obtains x MIPI instructions in the first set of corresponding relationships, it can detect whether there is an instruction identical to MIPIDATA among the x MIPI instructions in the first set of corresponding relationships according to a preset matching rule (that is, matching the query information in the first MIPI instruction with the query information of each MIPI instruction in the first set of corresponding relationships). The matching unit can sequentially traverse the x MIPI instructions in ascending order of the second identification information. For example, as Figure 6 shown, there are x MIPI instructions and x corresponding Actions in the first set of corresponding relationships. The second identification information of the first MIPI instruction is "1", and the second identification information of the second MIPI instruction is "2". The order of the second identification information in this set of corresponding relationships from small to large is: 1, 2... x. The matching unit sequentially matches the first MIPI instruction, the second MIPI instruction... the xth MIPI instruction.

[0108] Each time the matching unit completes the matching of a MIPI instruction, the indication counter is incremented by 1, and the value recorded by this counter is the same as the second identification information of this MIPI instruction. The instruction processing module records the second identification information of the MIPI instruction that has completed the matching through the value of the counter. When the matching unit detects that Rule2 matches the first MIPI instruction, the value of the counter is incremented by 1 (the current value of the calculator is 2, that is, 2 + 1), and the resulting value is 3. The matching unit can instruct the counter to transmit the recorded counting result (i.e., "3") to the second storage unit.

[0109] Based on the counting result, the second storage unit obtains the corresponding Action2; the second storage unit transmits this Action2 to the operation execution unit. The operation execution unit may include a multiplexer and runs the target instruction through the multiplexer. As Figure 7 shown, the storage space corresponding to this Action2 stores Act_num and Act_para; the Act_num is the operation type of the operation to be executed. If the operation type is an interrupt operation, the Act_para can be used to indicate parameter information, such as the interrupt position. The operation execution unit obtains the type of the corresponding operation to be executed and the required parameters, generates the target instruction, and the operation execution unit runs this target instruction.

[0110] In some embodiments, the MCU configures a corresponding set of correspondences for different working scenarios, and the instruction processing module stores a corresponding set of correspondences for different working scenarios. The structure of the instruction processing module is as Figure 9 shown. The instruction processing module further includes a working mode acquisition unit. The first storage unit is electrically connected to the matching unit, the matching unit is electrically connected to the input end of the counter, the output end of the counter is electrically connected to the second storage unit, and the second storage unit is electrically connected to the operation execution unit. Both the first storage unit and the second storage unit are electrically connected to the MCU. The matching unit is also electrically connected to the working mode acquisition unit, and the working mode acquisition unit is electrically connected to the first storage unit.

[0111] The electronic device can pre-configure a set of correspondences for m working scenarios in the MCU. Each set of correspondences includes at least 1 correspondence, and the number of correspondences in each set of correspondences can be different or the same. In this example, the MCU can divide the working scenarios according to the service scenarios. The MCU can divide the MIPI instructions belonging to the same service scenario into the same working scenario, or can also divide the MIPI instructions of multiple service scenarios into the same working scenario.

[0112] For example, the MCU determines that each service scenario has its corresponding working scenario, and each working scenario corresponds to a set of corresponding relationships. The MCU can also divide corresponding working scenarios for specific service scenarios. That is to say, multiple service scenarios may correspond to the same working scenario, and each working scenario has a corresponding set of corresponding relationships. In this example, taking multiple service scenarios divided into the same working scenario as an example, as Figure 7 shown, the MCU determines that the first service scenario corresponds to working mode 0, the second and third service scenarios correspond to working mode 1, the third service scenario corresponds to working mode 2, and the fourth, fifth, and sixth service scenarios correspond to working mode m. As Figure 7 shown, the set of corresponding relationships corresponding to this working mode 1 includes x corresponding relationships. Optionally, the number of corresponding relationships included in each set of corresponding relationships can be the same or different.

[0113] When the electronic device is powered on, during the initialization phase, the MCU can send a set of corresponding relationships corresponding to each working scenario to the instruction processing module for storage through the AHB. Optionally, the MCU sends the MIPI instructions in a set of corresponding relationships corresponding to each working scenario to the first storage unit for storage, and the first storage unit stores the MIPI instructions. The MCU sends the information of the operation to be executed corresponding to the MIPI instruction in each set of corresponding relationships to the second storage unit through the AHB, and the second storage unit stores the information of the operation to be executed corresponding to the MIPI instruction.

[0114] Combined with Figure 9 Specifically illustrate the process of sending each set of corresponding relationships. Assume that working mode 0 corresponds to the first set of corresponding relationships, the first set of corresponding relationships includes n1 corresponding relationships, working mode 1 corresponds to the second set of corresponding relationships, the second set of corresponding relationships includes n2 corresponding relationships, working mode 2 corresponds to the third set of corresponding relationships, the third set of corresponding relationships includes n3 corresponding relationships, and n1, n2, and n3 are all integers greater than 1. The MCU marks each set of corresponding relationships with the first identification information. As Figure 9As shown, the MCU stores n1 MIPI instructions in the first group of corresponding relationships in the first storage unit through AHB, and identifies the n1 MIPI instructions in the first group of corresponding relationships with the identification information of working mode 0 (such as WorkMode0). The MCU stores n2 MIPI instructions in the second group of corresponding relationships in the first storage unit through AHB, and identifies the n2 MIPI instructions in the second group of corresponding relationships with the identification information of working mode 1 (such as WorkMode1). The MCU stores n3 MIPI instructions in the third group of corresponding relationships in the first storage unit through AHB, and identifies the n3 MIPI instructions in the third group of corresponding relationships with the identification information of working mode 2 (such as WorkMode2). Among them, the identification information of each working mode in the first storage unit is called the first identification information. Among them, WorkMode0 is recorded as the identification information of the second group of corresponding relationships, that is, the first identification information.

[0115] The MCU stores the information of n1 operations to be executed in the first group of corresponding relationships in the second storage unit through AHB, and identifies the information of n1 operations to be executed in the second group of corresponding relationships with the identification information of working mode 0 (such as WorkMode0). The MCU stores the information of n2 operations to be executed in the second group of corresponding relationships in the first storage unit through AHB, and identifies the information of n2 operations to be executed in the second group of corresponding relationships with the identification information of working mode 1 (such as WorkMode1). The MCU stores the information of n3 operations to be executed in the third group of corresponding relationships in the first storage unit through AHB, and identifies the information of n3 operations to be executed in the third group of corresponding relationships with the identification information of working mode 2 (such as WorkMode2).

[0116] Continue to refer to Figure 9 , the mapping relationship between the MIPI instructions and the corresponding information of the operations to be executed in the n1 corresponding relationships in the first group is configured by the MCU through AHB. Specifically, the MCU can mark each corresponding relationship through the identification information of the corresponding relationship (referred to as the second identification information), that is to say, the second identification information of the MIPI instruction in the first storage space is the same as the second identification information of the corresponding information of the operation to be executed in the second storage space.

[0117] In addition, since the MIPI instructions corresponding to different working modes are stored in the first storage space, the second storage space is also stored separately according to different working modes. Specifically, the MCU can store the information of each group of corresponding operations to be executed according to the first identification information, and use the second identification information to identify the information of each operation to be executed in the corresponding relationship of this group. For example, the second storage unit marks the second group of corresponding relationships with "WorkMode2", and marks the information of the first operation to be executed in the second group of corresponding relationships with the second identification information "0" (i.e., Action0). The MCU instructs that the identification information of the first MIPI instruction in the first group of corresponding relationships in the first storage unit is also "0". The MCU strongly binds the MIPI instruction to the information of the corresponding operation to be executed through the first identification information and the second identification information. Therefore, the instruction processing module can obtain the MIPI instruction in the corresponding working mode through the first identification information, and obtain the information of the corresponding operation to be executed through the first identification information and the second identification information.

[0118] After the modem processor generates the MIPI instruction, it transmits the MIPI instruction to the instruction processing module. As Figure 9 shown, MIPIDATA is the MIPI instruction generated by the modem processor. The matching unit in the instruction processing module receives the MIPIDATA, and the matching unit instructs the working mode acquisition unit to transmit the information of the working mode of the current instruction processing module to the first storage unit. The working mode acquisition unit obtains that the working mode of the current instruction processing module is working mode 1. The working mode acquisition unit obtains the identification information "WorkMode1" of working mode 1 and transmits it to the first storage unit. The first storage unit finds the MIPI instructions (i.e., n2 MIPI instructions) in the corresponding group of corresponding relationships (i.e., the second group of corresponding relationships) according to "WorkMode1" and transmits them to the matching unit. When the matching unit obtains the n2 MIPI instructions in the second group of corresponding relationships, it can detect whether there is an instruction identical to MIPIDATA among the n2 MIPI instructions in the second group of corresponding relationships according to the preset matching rules. The matching unit can perform matching operations on the n2 MIPI instructions in turn according to the arrangement order of the second identification information.

[0119] Each time a match for the MIPI instruction is completed, the matching unit instructs the value of the counter to be incremented by 1, and the value recorded by this counter is the same as the identification information of this MIPI instruction. The instruction processing module records the MIPI instruction in the second set of corresponding relationships that has been matched through the value of the counter. When the matching unit detects that Rule2 matches the first MIPI instruction, the value of the counter is incremented by 1, and the resulting value is 3. The matching unit can instruct the counter to transmit the recorded counting result to the second storage unit. Additionally, the matching unit can instruct the working mode acquisition unit to transmit the first identification information to the second storage unit. The second storage unit obtains Action2 corresponding to the counting result based on the counting result and the first identification information; the second storage unit transmits the Action2 to the operation execution unit. The operation execution unit may include a multiplexer and runs the target instruction through the multiplexer. As Figure 7 shown, Act_num and Act_para in the Action2; the Act_num is the operation type of the operation to be executed, used to indicate the type of the operation to be executed, and the Act_para can be used to indicate parameters, such as the interrupt position. The operation execution unit generates a target instruction based on the type and parameters of the operation to be executed, and the operation execution unit runs the target instruction.

[0120] It should be noted that if the instruction processing module does not detect an instruction that matches the first MIPI instruction after traversing each query information in the second set of corresponding relationships, the instruction processing module determines that there is no MIPI instruction in the second set of corresponding relationships that is the same as the first MIPI instruction, that is, there is no information on the operation to be executed corresponding to the first MIPI instruction. Optionally, the instruction processing module can determine the processing method for the first MIPI instruction according to the working mode of the instruction processing module. For example, the MCU can be pre-set that when the instruction processing module is in working mode 1 and no instruction that matches the first MIPI instruction is detected, the operation corresponding to the first MIPI is to transmit the first MIPI instruction to the MCU for processing by the software program. Another example is that the MCU can be pre-set that when the instruction processing module is in working mode 0 and no instruction that matches the first MIPI instruction is detected, the operation corresponding to the first MIPI is to directly transmit the first MIPI instruction to the FEM, or directly discard the first MIPI instruction.

[0121] The following lists the processes of the electronic device adopting the signal processing method in this application in 4 working scenarios.

[0122] Scenario 1:

[0123] In this example, the electronic device is a mobile phone that supports the TX-Sharing DSDA mode. The primary card of the mobile phone at time T1 is the first SIM card. In response to an operation by the user to switch the primary card (such as clicking a button to switch the primary card), the mobile phone instructs the modem processor to generate a MIPI command for switching the primary card. This MIPI command for switching the primary card can be used to trigger the transfer of the transmission authorization permission of the transmitting antenna and the switching of the antenna operating mode. Optionally, the MIPI commands generated by the modem processors of different models of mobile phones may be different, and there may also be multiple MIPI commands for switching the primary card. For example, the MIPI commands "PA ON / OFF" and "ET ON" generated by the modem processor in a mobile phone of model A can both be used to trigger the transfer of the transmission authorization permission of the transmitting antenna and the switching of the antenna operating mode.

[0124] The modem processor of the mobile phone transmits the MIPI command "PA ON / OFF" to the matching unit of the instruction processing module. After receiving the MIPI command "PA ON / OFF", the matching unit instructs the working mode acquisition unit to transmit the identification information of the working mode of the current instruction processing module (such as WorkMode1) to the first storage unit. Based on the received identification information of the working mode, the first storage unit retrieves the MIPI commands in a set of corresponding relationships labeled as "WorkMode1", that is, retrieves a set of MIPI commands labeled as "WorkMode1" and transmits them to the matching unit.

[0125] The matching unit sequentially matches each MIPI command in the set of MIPI commands with the MIPI command "PA ON / OFF" according to each second identification information in the set of MIPI commands. Each time the matching unit completes a matching operation, it instructs the counter to increment by 1, and the initial value of this counter is 0. Optionally, when the matching unit receives a MIPI command transmitted by the MDM, it instructs the counter to be initialized.

[0126] When the matching unit detects that there is an instruction identical to "PA ON / OFF" in the set of MIPI commands labeled as "WorkMode1", it can instruct the counter to transmit the recorded value to the second storage unit. The matching unit also instructs the working mode acquisition unit to transmit the information of the working mode of the instruction processing module to the second storage unit. In this example, it is assumed that the matching unit detects that the MIPI command with the second identification information of "5" in the set of MIPI commands labeled as "WorkMode1" is identical to "PA ON / OFF", the value recorded by the counter changes from 4 to 5, and the recorded value (i.e., 5) is transmitted to the second storage unit.

[0127] The second storage unit obtains the information of a set of operations to be executed labeled as "WorkMode1", and according to the value "5" transmitted by the counter, obtains the information of the operation to be executed with the identification information "5" from the information of the operations to be executed in the set labeled as "WorkMode1", denoted as Information_1. The second storage unit transmits the Information_1 to the operation execution unit. The information of the operation to be executed may include multiple operation types and corresponding parameter information. For example, the Information_1 includes: the operation type of the transfer of the transmission authorization permission of the transmitting antenna, and the target object (i.e., parameter information) of the transfer of the transmission authorization permission. The operation execution unit transfers the transmission authorization permission from the first SIM card to the second SIM card according to the parameter information and the first operation instruction. The Information_1 may also include: the operation type of the parameter information change, and the information of the target parameter. The operation execution unit updates the parameter to be changed to the information of the target parameter.

[0128] Optionally, the Information_1 further includes: the operation type for instructing the instruction processing module to switch the working mode and the working mode to be switched (parameter information); the operation execution unit switches the working mode of the instruction processing module from the first working mode to the target working mode.

[0129] Scenario 2:

[0130] Taking a mobile phone as an example of the electronic device, the mobile phone includes a cellular antenna (such as a 4G / 5G antenna). Currently, the utilization rate of the cellular antenna is low. In this example, when the electronic device detects that the utilization rate of the current Bluetooth antenna exceeds the utilization rate threshold, it can detect whether there is an idle cellular antenna. When the electronic device detects that there is an idle cellular antenna, it uses the cellular antenna for Bluetooth communication. Among them, the priority of using the cellular antenna for cellular communication is higher than that of using the cellular antenna for Bluetooth communication. When the mobile phone uses the cellular antenna for Bluetooth communication, it is necessary to intercept and replace redundant MIPI instructions to ensure that the cellular antenna can perform Bluetooth communication. In this example, the MIPI instructions related to cellular communication received by the idle cellular antenna can be used as the redundant MIPI instructions of the idle cellular antenna.

[0131] Specifically, when the electronic device detects that the usage rate of the current Bluetooth antenna exceeds the usage rate threshold and detects that there is an idle cellular antenna, the modem processor transmits the generated MIPI instruction to the matching unit of the instruction processing module. The matching unit receives the MIPI instruction (denoted as MIPI_1), and instructs the working mode acquisition unit to transmit the identification information of the working mode of the current instruction processing module (such as WorkMode1) to the first storage unit. The first storage unit obtains the MIPI instruction in a set of corresponding relationships marked as "WorkMode1" according to the received identification information of the working mode, that is, obtains a set of MIPI instructions marked as "WorkMode1" and transmits them to the matching unit.

[0132] The matching unit sequentially matches each MIPI instruction with MIPI_1 according to each second identification information in the set of MIPI instructions. Each time the matching unit completes a matching operation, it instructs the counter to increment by 1, and the initial value of the counter is 0. When the matching unit detects that there is an instruction in the set of MIPI instructions marked as "WorkMode1" that is the same as MIPI_1, it can instruct the counter to increment the recorded value by 1 and transmit the updated value to the second storage unit. The matching unit also instructs the working mode acquisition unit to transmit the information of the working mode of the instruction processing module to the second storage unit. For example, the matching unit detects that the MIPI instruction with the second identification information of "7" in the set of MIPI instructions marked as "WorkMode1" is the same as MIPI_1, the recorded value of the counter changes from 6 to 7, and the recorded value (i.e., 7) is transmitted to the second storage unit.

[0133] The second storage unit obtains the information of the operation to be executed in a set marked as "WorkMode1", and according to the value "7" transmitted by the counter, obtains the information of the operation to be executed with the identification information of "7" from the information of the operation to be executed in a set marked as "WorkMode1", denoted as information_2. The second storage unit transmits the information_2 to the operation execution unit, and the information_2 includes: an interception operation and the identification information (parameter information) of the instruction to be intercepted, a replacement operation, and the MIPI instruction to be replaced. The instruction to be intercepted may include one or more of the following information: the register address of the instruction, the instruction type, the data content, the data volume, the usid, etc.

[0134] The operation execution unit identifies redundant MIPI instructions based on the interception operation and the identification information of the instructions to be intercepted, and intercepts the redundant MIPI instructions. The operation execution unit obtains the instructions to be replaced (i.e., the instructions related to Bluetooth communication), and replaces the redundant MIPI instructions with the instructions related to Bluetooth communication. The operation execution unit transmits the replaced instructions to the FEM to instruct the idle cellular antenna to operate.

[0135] Scenario Three:

[0136] In this example, the electronic device is a mobile phone that supports the TX-Sharing DSDA mode. When the mobile phone is in the TX-Sharing DSDA mode or in the cellular antenna tuning working scenario, the instruction processing module needs to filter specific MIPI instructions to reduce interruptions to the software or achieve protection of the hardware.

[0137] When the mobile phone is in the TX-Sharing DSDA mode or in the cellular antenna tuning working scenario, the modem processor generates corresponding MIPI instructions. In this example, this MIPI instruction is denoted as MIPI_2.

[0138] The modem processor of the mobile phone transmits MIPI_2 to the matching unit of the instruction processing module. The matching unit receives the MIPI_2 and instructs the working mode acquisition unit to transmit the identification information of the current working mode of the instruction processing module (such as WorkMode2) to the first storage unit. The first storage unit obtains the MIPI instructions in a set of corresponding relationships labeled as "WorkMode2" according to the received identification information of the working mode, that is, obtains a set of MIPI instructions labeled as "WorkMode2" and transmits them to the matching unit.

[0139] The matching unit performs a matching operation on each MIPI instruction in the set of MIPI instructions with the MIPI_2 instruction in turn, and the initial value of the counter is 0. When the matching unit detects that there is an instruction in the set of MIPI instructions labeled as "WorkMode2" that is the same as MIPI_2, it can instruct the counter to increment the recorded value by 1 and transmit the updated value to the second storage unit. The matching unit also instructs the working mode acquisition unit to transmit the information of the working mode of the instruction processing module to the second storage unit. For example, when the matching unit detects that the MIPI instruction with the second identification information of "9" in the set of MIPI instructions labeled as "WorkMode2" is the same as MIPI_2, the recorded value of the counter changes from 8 to 9, and the recorded value (i.e., 9) is transmitted to the second storage unit.

[0140] The second storage unit obtains the information of the operations to be executed in a group labeled "WorkMode2", and according to the value "9" transmitted by the counter, obtains the information of the operation to be executed with the identification information "9" from the information of the operations to be executed in a group labeled "WorkMode1", denoted as Information_3. The second storage unit transmits the Information_3 to the operation execution unit. The Information_3 includes: a filtering operation and parameter information, and the parameter information can be empty. The operation execution unit filters the MIPI_2 according to the filtering operation. In this example, the instruction processing module can filter specific MIPI instructions through the stored corresponding relationship, thereby reducing the interruptions to the MCU. And since the instruction processing module filters specific MIPI instructions, there is no need for the MCU to identify and then perform the filtering process, thus improving the filtering speed and reducing the number of interruptions of the MCU.

[0141] Scenario Four:

[0142] In this example, the electronic device takes a mobile phone supporting the TX-Sharing DSDA mode as an example. When the nDDS card (secondary card) preempts the transmission authorization permission of the DDS card (i.e., the primary card) through a preemption instruction (such as QET ON), when receiving this preemption instruction, the following operations are simultaneously performed:

[0143] S1: The instruction processing module executes an interrupt instruction to achieve TX-Sharing DSDA dynamic tuning.

[0144] Exemplarily, the modulation and demodulation processor generates a preemption instruction, and this preemption instruction is transmitted to the instruction processing module. The matching unit of the instruction processing module receives this preemption instruction and instructs the working mode acquisition unit to transmit the identification information of the current working mode of the instruction processing module (such as WorkMode2) to the first storage unit. The first storage unit obtains the MIPI instructions corresponding to a group labeled "WorkMode2" according to the received identification information of the working mode, that is, obtains the MIPI instructions in a group labeled "WorkMode2" and transmits them to the matching unit.

[0145] The matching unit sequentially performs a matching operation between each MIPI instruction and the preemption instruction according to each second identification information in this group of MIPI instructions, and the initial value of the counter is 0. When the matching unit detects that there is an instruction in the group of MIPI instructions labeled "WorkMode2" that is the same as the preemption instruction, it can instruct the counter to increment the recorded value by 1 and transmit the updated value to the second storage unit. The matching unit also instructs the working mode acquisition unit to transmit the information of the working mode of the instruction processing module to the second storage unit.

[0146] The second storage unit obtains the information of the operations to be executed in a group labeled "WorkMode2", and according to the value "2" transmitted by the counter, obtains the information of the operation to be executed with the identification information "2" from the information of the operations to be executed in the group labeled "WorkMode2", denoted as Information_4. The second storage unit transmits the Information_4 to the operation execution unit, and the Information_4 includes: an interrupt operation and the location where the interrupt occurs. The operation execution unit executes the interrupt operation at the interrupt occurrence location.

[0147] S2: The instruction processing module loads the instruction queue, enables SEQ to implement the FEM state transition and the switching of the SDR signal and ETDAC signal channels.

[0148] Exemplarily, the modulation and demodulation processor sends a load instruction to the instruction processing module. The matching unit of the instruction processing module receives the load instruction and instructs the working mode acquisition unit to transmit the identification information (such as WorkMode2) of the current working mode of the instruction processing module to the first storage unit. The first storage unit obtains the MIPI instruction in the corresponding relationship with the group labeled "WorkMode2" according to the received identification information of the working mode, that is, obtains the group of MIPI instructions labeled "WorkMode2" and transmits them to the matching unit.

[0149] The matching unit sequentially matches each MIPI instruction with the load instruction according to each second identification information in the group of MIPI instructions, and the initial value of the counter is 0. When the matching unit detects that there is an instruction identical to the load instruction in the group of MIPI instructions labeled "WorkMode2", it can instruct the counter to increment the recorded value by 1 and transmit the updated value to the second storage unit. The matching unit also instructs the working mode acquisition unit to transmit the information of the working mode of the instruction processing module to the second storage unit.

[0150] The second storage unit obtains the information of the operations to be executed in a group labeled "WorkMode2", and according to the value "4" transmitted by the counter, obtains the information of the operation to be executed with the identification information "4" from the information of the operations to be executed in the group labeled "WorkMode2", denoted as Information_5. The second storage unit transmits the Information_5 to the operation execution unit, and the Information_5 includes: a DMA operation, the data source address information, and the information of a preset location (such as the location information of the FIFO). The operation execution unit batch-loads SEQ from the data source address to the FIFO. The operation execution unit batch-loads SEQ and sends the loaded MIPI data to the FEM to modify the parameters in the FEM, implement the FEM state transition, and the switching of the SDR signal and ETDAC signal channels.

[0151] S3: The instruction processing module switches its working mode to transfer the emission authorization privilege.

[0152] After detecting the completion of SEQ loading, the operation execution unit of the instruction processing module switches its own working mode.

[0153] S4: The instruction processing module sends an interruption to the software to notify the completion of mode switching.

[0154] After switching its own working mode, the operation execution unit of the instruction processing module can send an interruption instruction to the MCU to notify the MCU that the mode switching of the instruction processing module is completed.

[0155] It can be understood that, in order to implement the above functions, the electronic device includes the corresponding hardware and / or software modules for executing each function. Combining the algorithm steps of each example described in the embodiments disclosed in this article, this application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the way of hardware or computer software driving the hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to exceed the scope of this application.

[0156] The embodiment of this application further provides a chip system, which includes at least one processor and at least one interface circuit. The processor and the interface circuit can be interconnected through lines. For example, the interface circuit can be used to receive signals from other devices (such as the memory of an electronic device). For another example, the interface circuit can be used to send signals to other devices (such as a processor). Exemplarily, the interface circuit can read the instructions stored in the memory and send the instructions to the processor. When the instructions are executed by the processor, the electronic device can execute each step in the above embodiments. Of course, the chip system can also include other discrete devices, and the embodiments of this application do not make specific limitations on this.

[0157] This embodiment further provides a computer storage medium, in which computer instructions are stored. When the computer instructions run on an electronic device, the electronic device executes the above related method steps to implement the signal processing method in the above embodiments. The storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read only memory (ROM), random access memory (RAM), magnetic disks, or optical discs.

[0158] This embodiment also provides a computer program product. When the computer program product runs on a computer, it causes the computer to execute the above-related steps to implement the signal processing method in the above embodiment.

[0159] Among them, the electronic device, computer storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding signal processing method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be elaborated here.

[0160] Any content of each embodiment of this application, as well as any content of the same embodiment, can be freely combined. Any combination of the above content is within the scope of this application.

[0161] The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all belong to the protection scope of the present application.

Claims

1. A method for signal processing, characterized in that, applied to an electronic device, the electronic device includes a modem processor and an instruction processing module electrically connected to the modem processor; the method includes: The modem processor generates a first Mobile Industry Processor Interface (MIPI) instruction and transmits the first MIPI instruction to the instruction processing module; When receiving the first MIPI instruction, the instruction processing module obtains information about a target operation that matches the first MIPI instruction according to a first set of corresponding relationships stored in the instruction processing module. The first set of corresponding relationships includes N corresponding relationships, and each corresponding relationship is used to indicate the correspondence between the MIPI instruction and the information of the operation to be executed. N is an integer greater than 0. The information of the operation to be executed includes: the operation type of the operation to be executed and the parameter information of the operation to be executed; The instruction processing module executes the target operation according to the information of the target operation.

2. The method according to claim 1, characterized in that, When receiving the first MIPI instruction, the instruction processing module obtains information about a target operation that matches the first MIPI instruction according to a first set of corresponding relationships stored in the instruction processing module, including: The instruction processing module obtains first query information in the first MIPI instruction, and the query information is used to identify the MIPI instruction; The instruction processing module detects whether there is a MIPI instruction that matches the first query information in the first set of corresponding relationships; When it is detected that there is a MIPI instruction that matches the first query information, the MIPI instruction that matches the first query information is obtained as the target MIPI instruction; The information of the operation to be executed corresponding to the target MIPI instruction is obtained as the information of the target operation.

3. The method according to claim 2, characterized in that, The query information includes one or more of the following: register address, instruction type, user service identifier, data volume or data content.

4. The method according to claim 2, characterized in that, The instruction processing module includes: a first storage unit and a second storage unit; Before obtaining information about a target operation that matches the first MIPI instruction according to a first set of corresponding relationships stored in the instruction processing module, the method further includes: The microcontroller unit of the electronic device issues the N MIPI instructions in the first set of corresponding relationships to the first storage unit; The microcontroller unit issues the information of the N operations to be executed in the first set of corresponding relationships to the second storage unit for storage, where the identification information of the MIPI instruction stored in the first storage unit is the same as the identification information of the corresponding information of the operation to be executed stored in the second storage unit.

5. The method according to claim 4, characterized in that, The instruction processing module further includes: a matching unit, and the matching unit is electrically connected to the first storage unit and the second storage unit; The instruction processing module detects whether there is a MIPI instruction matching the first query information in the first set of corresponding relationships, including: When the matching unit receives the first MIPI instruction, it obtains the MIPI instructions in the first set of corresponding relationships from the first storage unit; The matching unit detects whether there is a MIPI instruction identical to the first MIPI instruction according to the query information of the obtained MIPI instruction and the first query information of the first MIPI instruction, and obtains the detection result.

6. The method according to claim 4, wherein, The instruction processing module stores m sets of corresponding relationships, and the m sets of corresponding relationships correspond one-to-one to m working modes, and m is an integer greater than 1.

7. The method according to claim 6, wherein, The instruction processing module further includes: a matching unit and a working mode obtaining unit, and the matching unit is electrically connected to the first storage unit and the second storage unit; the input end of the working mode obtaining unit is connected to the system-on-chip of the electronic device and the matching unit, and the output end of the working mode obtaining unit is connected to the first storage unit; When the matching unit receives the first MIPI instruction, obtaining the MIPI instructions in the first set of corresponding relationships from the first storage unit includes: When the matching unit receives the first MIPI instruction, it generates first indication information; The working mode obtaining unit uploads the information of the current working mode of the instruction processing module to the first storage unit according to the first indication information, wherein the information of the working mode of the instruction processing module stored in the working mode obtaining unit is sent by the system-on-chip; The first storage unit obtains the MIPI instructions in the first set of corresponding relationships matching the current working mode according to the information of the current working mode, and transmits the MIPI instructions in the first set of corresponding relationships to the matching unit.

8. The method according to any one of claims 4-7, wherein, The instruction processing module further includes an operation execution unit electrically connected to the output end of the second storage unit; The instruction processing module executes the target operation according to the information of the target operation, including: The operation execution unit generates a target instruction according to the operation type of the target operation and the parameter information of the target operation; The operation execution unit runs the target instruction.

9. The method according to claim 5, wherein, Obtaining the information of the operation to be executed corresponding to the target MIPI instruction as the information of the target operation includes: When the detection result indicates that there is a MIPI instruction identical to the first MIPI instruction, the matching unit instructs the second storage unit to obtain the information of the operation to be executed corresponding to the target MIPI instruction as the information of the target operation according to the identification information of the target MIPI instruction.

10. The method according to claim 7, wherein, Obtaining the information of the operation to be executed corresponding to the target MIPI instruction as the information of the target operation includes: When the detection result indicates that there is a MIPI instruction identical to the first MIPI instruction, the matching unit instructs the working mode acquisition unit to transmit the information of the working mode of the instruction processing module to the second storage unit; The matching unit instructs the second storage unit to obtain the information of the operation to be executed corresponding to the target MIPI instruction as the information of the target operation according to the identification information of the target MIPI instruction and the information of the working mode of the instruction processing module.

11. The method according to claim 9 or 10, wherein, The instruction processing module further includes: a counter, an input end of the counter is electrically connected to an output end of the matching unit, and an output end of the counter is electrically connected to the second storage unit; Before the matching unit instructs the second storage unit to obtain the information of the operation to be executed corresponding to the target MIPI instruction as the information of the target operation according to the identification information of the target MIPI instruction when the detection result indicates that there is a MIPI instruction identical to the first MIPI instruction, the method further includes: After the matching unit completes each match between the MIPI instruction and the stored MIPI instructions, it instructs the counter to increment the current value by one, where the counter is used to record the identification information of each MIPI instruction matched with the first MIPI instruction; When the matching unit detects that there is a MIPI instruction identical to the first MIPI instruction, it instructs the counter to transmit the counting result of the counter to the second storage unit for the second storage unit to use the counting result as the identification information of the target MIPI instruction.

12. The method according to claim 6, wherein, The micro control unit issues the m groups of corresponding relationships to the instruction processing module through an advanced high-performance bus.

13. The method according to claim 1, wherein, The electronic device is a device that supports the dual-SIM dual-standby mode and shares a transmitting antenna; The instruction processing module executes the target operation according to the information of the target operation, including: When the information of the target operation indicates switching the primary card from the first subscriber identity module (SIM) card to the second SIM card, the instruction processing module switches the primary card from the first SIM card to the second SIM card and transfers the authorization permission of the first SIM card to the second SIM card; The instruction processing module transmits the processing result to the radio frequency front-end device.

14. The method according to claim 1, wherein, The electronic device is a device that supports the dual-SIM dual-standby mode and shares a transmitting antenna; Before the instruction processing module executes the target operation according to the information of the target operation, the method further includes: The instruction processing module determines that the usage rate of the Bluetooth antenna of the electronic device exceeds the usage rate threshold and there is an idle cellular antenna; The instruction processing module executes a target operation according to the information of the target operation, including: When the information of the target operation indicates an interception operation, the instruction processing module intercepts a first MIPI instruction; The instruction processing module replaces the intercepted first MIPI instruction with a second instruction, where the second instruction is an instruction for instructing the idle cellular antenna to perform Bluetooth communication; The instruction processing module transmits the second instruction to the radio frequency front-end device.

15. According to the method described in claim 1, wherein, the electronic device is a device that supports the dual-SIM and dual-standby mode and shares a transmitting antenna, and the electronic device is in the dual-SIM and dual-standby mode or the cellular antenna of the electronic device is in a tuned scenario; The instruction processing module executes a target operation according to the information of the target operation, including: When the information of the target operation indicates a filtering operation, the instruction processing module deletes the first MIPI instruction.

16. A chip system, wherein, it includes a processor for calling and running a computer program from a memory, so that an electronic device installed with the chip system executes the signal processing method described in any one of claims 1 to 14.

17. An electronic device, wherein, it includes: a memory and a processor, the memory is coupled to the processor; The memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the signal processing method described in any one of claims 1 to 15.

18. A computer-readable storage medium, including a computer program, wherein, when the computer program runs on an electronic device, the electronic device executes the signal processing method described in any one of claims 1 to 15.

Citation Information

Patent Citations

  • Display control method and related product

    CN109348055A

  • Electronic device for supporting data communication and method therefor

    CN110830936A

  • Neural network model operation chip, method and device, equipment and medium

    CN111651207A

  • Electronic device and method for transmitting uplink reference signal

    CN112913150A

  • Circuit board detection method, electronic device and chip system

    CN116541895A