Method, apparatus and electronic device for controlling interface state
By closing or opening the data interface after receiving instructions from the control interface, the problem of data interface usage when the main control module cannot communicate is solved, thus achieving resource conservation and normal use of functional modules when the control interface is normal or abnormal.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- VIVO MOBILE COMM CO LTD
- Filing Date
- 2024-09-25
- Publication Date
- 2026-07-03
Smart Images

Figure CN119441084B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of electronic equipment technology, and specifically relates to a method, device and electronic equipment for controlling interface state. Background Technology
[0002] In related technologies, functional modules of electronic devices have one or more data interfaces. The opening and closing of these data interfaces are controlled by the main control module of the electronic device. When a user needs to use a specific data interface, the main control module notifies the functional module to activate the corresponding specific data interface. However, in related technologies, after the functional module is powered on, all data interfaces of the functional module are closed. Therefore, when the main control module cannot communicate normally with the functional module, the user cannot use the specific data interface of the functional module. Summary of the Invention
[0003] The purpose of this application is to provide a method, apparatus, and electronic device for controlling interface status, which can solve the problem that when the main control module cannot communicate normally with the functional module, the user cannot use a specific data interface in the functional module.
[0004] In a first aspect, embodiments of this application provide a method for controlling interface states, applied to a first module of an electronic device. The first module includes multiple interfaces, including a control interface and a data interface, wherein the control interface is connected to a second module of the electronic device. The method includes:
[0005] Upon detecting that the first module is powered on, the plurality of interfaces are activated;
[0006] When the control interface receives a first instruction sent by the second module, all data interfaces are shut down, wherein the first instruction is used to instruct all data interfaces to be shut down;
[0007] When the control interface receives a second instruction sent by the second module, the first data interface in the data interface is opened, wherein the second instruction is used to instruct the first data interface to be opened.
[0008] Secondly, a control device for interface status is provided, applied to a first module of an electronic device. The first module includes multiple interfaces, including a control interface and a data interface. The control interface is connected to a second module of the electronic device. The device includes:
[0009] The first processing module is used to enable the plurality of interfaces when the first module is detected to be powered on.
[0010] The second processing module is used to shut down all data interfaces when the control interface receives a first instruction sent by the second module, wherein the first instruction is used to instruct all data interfaces to be shut down.
[0011] The third processing module is used to open the first data interface in the data interface when the control interface receives the second instruction sent by the second module, wherein the second instruction is used to instruct the opening of the first data interface.
[0012] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, the memory storing programs or instructions executable on the processor, the programs or instructions, when executed by the processor, implementing the steps of the method described in the first aspect.
[0013] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.
[0014] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.
[0015] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.
[0016] In this embodiment, when the control interface is normal, closing the data interface via the first instruction reduces unnecessary resource consumption. Furthermore, when the user needs to use a specific data interface, the second instruction enables that specific data interface, ensuring the user can normally use the data interface of the first module. Even when the control interface malfunctions, since all interfaces of the first module are enabled after power-on, the user can still use the data interface of the first module normally. Therefore, the above solution ensures the normal use of the data interface of the first module regardless of whether the control interface is normal, i.e., regardless of whether the first module can communicate normally with the second module. Attached Figure Description
[0017] Figure 1 This is one of the flowcharts illustrating the interface state control method according to an embodiment of this application;
[0018] Figure 2 This is an interface diagram of the first module in an embodiment of this application;
[0019] Figure 3 This is a second flowchart illustrating the interface state control method according to an embodiment of this application;
[0020] Figure 4 This is the third flowchart illustrating the interface state control method according to an embodiment of this application;
[0021] Figure 5 This is a schematic diagram of the interface state control device according to an embodiment of this application;
[0022] Figure 6 This is one of the structural block diagrams of the electronic device according to an embodiment of this application;
[0023] Figure 7 This is the second structural block diagram of the electronic device according to an embodiment of this application. Detailed Implementation
[0024] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0025] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0026] The interface state control method provided in this application embodiment will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.
[0027] like Figure 1 As shown in the figure, this application provides a method for controlling the state of an interface, applied to a first module of an electronic device. The first module includes multiple interfaces, including a control interface and a data interface, wherein the control interface is connected to a second module of the electronic device; the method includes:
[0028] Step 101: When the first module is detected to be powered on, the plurality of interfaces are turned on.
[0029] In this embodiment, the data interface includes at least one input interface and at least one output interface. Optionally, the input interface and the output interface correspond one-to-one.
[0030] For example, such as Figure 2 As shown, the first module includes input interface one, input interface two, output interface one, and output interface two. Input interface one corresponds to output interface one, and input interface two corresponds to output interface two; that is, data is input from input interface one and output from output interface one; or, data is input from input interface two and output from output interface two.
[0031] Step 102: When the control interface receives the first instruction sent by the second module, shut down all data interfaces, wherein the first instruction is used to instruct the shutdown of all data interfaces.
[0032] In this embodiment, after the second module detects that the first module is powered on, it sends a first instruction to the first module so that the first module shuts down all data interfaces according to the first instruction, thereby achieving the purpose of saving resources and power consumption.
[0033] Optionally, the second module is the main control module of the electronic device. For example, the main control module is an electronic controller. The main control module controls the opening or closing of various data interfaces of the first module by sending commands.
[0034] Step 103: When the control interface receives the second instruction sent by the second module, the first data interface in the data interface is opened, wherein the second instruction is used to instruct the first data interface to be opened.
[0035] In this embodiment of the application, when the second module receives a user's request to use the first data interface, it sends a second instruction to the first module. The first module then opens the first data interface according to the second instruction. For example, the first data interface includes a first access interface and a first output interface.
[0036] Optionally, the user may be a module other than the first module in the electronic device, or a user.
[0037] In this embodiment, when the control interface is normal, closing the data interface via the first instruction reduces unnecessary resource consumption. Furthermore, when the user needs to use a specific data interface, the second instruction enables that specific data interface, ensuring the user can normally use the data interface of the first module. Even when the control interface malfunctions, since all interfaces of the first module are enabled after power-on, the user can still use the data interface of the first module normally. Therefore, the above solution ensures the normal use of the data interface of the first module regardless of whether the control interface is normal, i.e., regardless of whether the first module can communicate normally with the second module.
[0038] Optionally, the method further includes:
[0039] When the control interface receives a third instruction sent by the second module, the first data interface is shut down, wherein the third instruction is used to shut down the first data interface.
[0040] In this embodiment, when the second module learns that the user no longer needs to use the first data interface of the first module, it sends the third instruction to the first module through the control interface. The first module then shuts down the first data interface according to the third instruction to avoid energy waste.
[0041] Optionally, the first instruction or the second instruction is an instruction transmitted via a serial communication protocol.
[0042] In this embodiment, the first module and the second module transmit a first instruction or a second instruction via a serial communication protocol, so that the first module can open or close the corresponding interface according to the corresponding instruction. For example, the serial communication protocol may be the Inter-Integrated Circuit (I2C) protocol, the Serial Peripheral Interface (SPI) protocol, etc.
[0043] Optionally, the first module includes, but is not limited to, at least one of a power management module and a multimedia processing module. The first module can be any functional module in an electronic device that includes multiple interfaces.
[0044] The solution proposed in this application ensures the normal operation of the interfaces of the power management module, multimedia processing module, etc., when the control interface is functioning normally, while avoiding unnecessary resource consumption. It also ensures the normal operation of the interfaces of the power management module, multimedia processing module, etc., when the control interface is malfunctioning.
[0045] The overall flow of the interface state control method of this application will be described below with reference to the embodiments.
[0046] In the embodiments of this application, such as Figure 3 As shown, the process includes:
[0047] Step 301: Power on the first module.
[0048] Step 302: Enable all interfaces in the first module.
[0049] After the power is connected, the first module will initialize. During the initialization process, the first module will enable all interfaces and prepare to receive communication commands from the second module. The second module is specifically the main control module of the electronic device.
[0050] Step 303: The second module sends a first instruction using the communication protocol, which is used to instruct all data interfaces to be shut down.
[0051] This communication protocol is used for direct data exchange between the first and second modules, such as I2C or SPI.
[0052] Step 304: The first module shuts down all data interfaces.
[0053] Step 305: The second module learns that the user needs to use the first data interface, and sends a second instruction to the first module using the communication protocol. The second instruction is used to instruct the first data interface to be opened.
[0054] The user is another module connected to the corresponding input or output of the first module, and the user's output or input depends on the first module's input or output interface being in the open state.
[0055] Step 306: The first module starts the first data interface.
[0056] After receiving the second instruction from the second module to open the first data interface via the communication protocol, the first module executes the instruction. At this time, the first data interface has its corresponding function to ensure that the functions participated in by the user and the first module are normal.
[0057] Step 307: The first data interface is working normally.
[0058] At this time, the corresponding function of the first data interface is working normally.
[0059] Step 308: When the second module learns that the user no longer needs to use the first data interface, it sends a third instruction through the communication protocol, the third instruction being used to close the first data interface.
[0060] Step 309: The first module closes the first data interface.
[0061] After receiving the instruction from the second module to close the first data interface via the communication protocol, the first module executes the instruction. At this time, the first data interface no longer has its corresponding function, and the functions participated in by the user and the first module no longer run.
[0062] Step 310: Power off the first module.
[0063] After the first module is powered off, all interfaces are shut down.
[0064] In the above process, the control interface works normally. The first and second instructions mentioned above can ensure the normal use of the interface of the first module without unnecessary resource consumption.
[0065] In the embodiments of this application, such as Figure 4 As shown, the process includes:
[0066] Step 401: Power on the first module.
[0067] Step 402: Enable all interfaces in the first module.
[0068] After the power is connected, the first module will initialize. During the initialization process, the first module will open all interfaces and prepare to receive communication commands from the main control module.
[0069] Step 403: The second module sends a first instruction using the communication protocol, which is used to instruct all data interfaces to be shut down.
[0070] This communication protocol is used for direct data exchange between the first and second modules, such as I2C or SPI.
[0071] Step 404: Control interface error, all data interfaces of the first module remain open.
[0072] Due to a control interface malfunction, the first module was unable to receive the aforementioned first instruction, and all data interfaces of the first module remained open.
[0073] Step 405: The second module learns that the user needs to use the first data interface, and sends a second instruction to the first module using the communication protocol. The second instruction is used to instruct the first data interface to be opened.
[0074] The user is another module connected to the corresponding input or output of the first module, and the user's output or input depends on the first module's input or output interface being in the open state.
[0075] Step 406: Control interface error, all data interfaces of the first module remain open.
[0076] Due to the abnormality of the control interface, the first module cannot receive the aforementioned second instruction. All data interfaces of the first module remain open. At this time, the first data interface has its corresponding function, which can ensure that the functions participated in by the user and the first module are normal.
[0077] Step 407: The first data interface is working normally.
[0078] At this time, the corresponding function of the first data interface is working normally.
[0079] Step 408: When the second module learns that the user no longer needs to use the first data interface, it sends a third instruction through the communication protocol, the third instruction being used to close the first data interface.
[0080] Step 409: Control interface error, all data interfaces of the first module remain open.
[0081] Due to a control interface malfunction, the first module was unable to receive the aforementioned third instruction, and all data interfaces of the first module remained open.
[0082] Step 410: Power off the first module.
[0083] After the first module is powered off, all interfaces are shut down.
[0084] In the above process, the control interface malfunctions, and the first module and the second module cannot communicate normally. However, since all interfaces of the first module are in the open state after the first module is powered on, the user can still use the data interface of the first module normally even when the first module and the second module cannot communicate normally.
[0085] The interface state control method provided in this application can be executed by an interface state control device. This application uses an interface state control device executing the interface state control method as an example to illustrate the interface state control device provided in this application.
[0086] like Figure 5 As shown, this application embodiment provides an interface state control device 500, applied to a first module of an electronic device. The first module includes multiple interfaces, including a control interface and a data interface. The control interface is connected to a second module of the electronic device. The device includes:
[0087] The first processing module 501 is used to enable the plurality of interfaces when the first module is detected to be powered on.
[0088] The second processing module 502 is used to shut down all data interfaces when the control interface receives a first instruction sent by the second module, wherein the first instruction is used to instruct all data interfaces to be shut down.
[0089] The third processing module 503 is used to open the first data interface in the data interface when the control interface receives the second instruction sent by the second module, wherein the second instruction is used to instruct the opening of the first data interface.
[0090] Optionally, the apparatus in this application embodiment further includes:
[0091] The fourth processing module is used to close the first data interface when the control interface receives a third instruction sent by the second module, wherein the third instruction is used to close the first data interface.
[0092] Optionally, the first instruction or the second instruction is an instruction transmitted via a serial communication protocol.
[0093] Optionally, the first module includes at least one of a power management module and a multimedia processing module.
[0094] Optionally, the second module is the main control module of the electronic device.
[0095] In this embodiment, when the control interface is normal, closing the data interface via the first instruction reduces unnecessary resource consumption. Furthermore, when the user needs to use a specific data interface, the second instruction enables that specific data interface, ensuring the user can normally use the data interface of the first module. Even when the control interface malfunctions, since all interfaces of the first module are enabled after power-on, the user can still use the data interface of the first module normally. Therefore, the above solution ensures the normal use of the data interface of the first module regardless of whether the control interface is normal, i.e., regardless of whether the first module can communicate normally with the second module.
[0096] The interface state control device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television set (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the scope of the device.
[0097] The interface state control device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit it.
[0098] The interface state control device provided in this application embodiment can achieve... Figures 1 to 4 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.
[0099] Optionally, such as Figure 6 As shown, this application embodiment also provides an electronic device 600, including a processor 601 and a memory 602. The memory 602 stores a program or instructions that can run on the processor 601. When the program or instructions are executed by the processor 601, they implement the various steps of the above-mentioned interface state control method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0100] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.
[0101] Figure 7 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.
[0102] The electronic device 700 includes, but is not limited to, components such as: radio frequency unit 701, network module 702, audio output unit 703, input unit 704, sensor 705, display unit 706, user input unit 707, interface unit 708, memory 709, and processor 710.
[0103] Those skilled in the art will understand that the electronic device 700 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 710 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 7 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0104] The processor 710 is configured to: enable the plurality of interfaces when the first module is detected to be powered on; disable all data interfaces when the control interface receives a first instruction from the second module, wherein the first instruction instructs the disabling of all data interfaces; and enable a first data interface when the control interface receives a second instruction from the second module, wherein the second instruction instructs the disabling of the first data interface. Optionally, the processor 710 is further configured to disable the first data interface when the control interface receives a third instruction from the second module, wherein the third instruction instructs the disabling of the first data interface.
[0105] Optionally, the first instruction or the second instruction is an instruction transmitted via a serial communication protocol.
[0106] Optionally, the first module includes at least one of a power management module and a multimedia processing module.
[0107] Optionally, the second module is the main control module of the electronic device.
[0108] In this embodiment, when the control interface is normal, closing the data interface via the first instruction reduces unnecessary resource consumption. Furthermore, when the user needs to use a specific data interface, the second instruction enables that specific data interface, ensuring the user can normally use the data interface of the first module. Even when the control interface malfunctions, since all interfaces of the first module are enabled after power-on, the user can still use the data interface of the first module normally. Therefore, the above solution ensures the normal use of the data interface of the first module regardless of whether the control interface is normal, i.e., regardless of whether the first module can communicate normally with the second module.
[0109] It should be understood that, in this embodiment, the input unit 704 may include a graphics processing unit (GPU) 7041 and a microphone 7042. The GPU 7041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 706 may include a display panel 7061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 707 includes at least one of a touch panel 7071 and other input devices 7072. The touch panel 7071 is also called a touch screen. The touch panel 7071 may include a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.
[0110] The memory 709 can be used to store software programs and various data. The memory 709 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 709 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 709 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.
[0111] Processor 710 may include one or more processing units; optionally, processor 710 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 710.
[0112] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described interface state control method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0113] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0114] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described interface state control method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0115] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0116] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the control method embodiment of the interface state described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0117] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0118] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0119] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A method for controlling interface states, applied to a first module of an electronic device, the first module including multiple interfaces, the multiple interfaces including a control interface and a data interface, the control interface being connected to a second module of the electronic device; characterized in that, The method includes: When the first module is detected to be powered on, the plurality of interfaces are turned on so that all data interfaces of the first module remain on in the event of an abnormality in the control interface. When the control interface is working normally and the control interface receives a first instruction sent by the second module, all data interfaces are shut down, wherein the first instruction is used to instruct all data interfaces to be shut down. When the control interface is working normally and the control interface receives a second instruction sent by the second module, the first data interface in the data interface is opened, wherein the second instruction is used to instruct the first data interface to be opened.
2. The method according to claim 1, characterized in that, Also includes: When the control interface receives a third instruction sent by the second module, the first data interface is shut down, wherein the third instruction is used to shut down the first data interface.
3. The method according to claim 1, characterized in that, The first instruction or the second instruction is an instruction transmitted via a serial communication protocol.
4. The method according to claim 1, characterized in that, The first module includes at least one of a power management module and a multimedia processing module.
5. The method according to claim 1, characterized in that, The second module is the main control module of the electronic device.
6. A control device for interface status, applied to a first module of an electronic device, the first module including multiple interfaces, the multiple interfaces including a control interface and a data interface, the control interface being connected to a second module of the electronic device, characterized in that, The device includes: The first processing module is configured to enable the plurality of interfaces when the first module is detected to be powered on, so that all data interfaces of the first module remain enabled in the event of an abnormality in the control interface. The second processing module is used to shut down all data interfaces when the control interface is working normally and the control interface receives a first instruction sent by the second module, wherein the first instruction is used to instruct all data interfaces to be shut down. The third processing module is used to enable the first data interface in the data interface when the control interface is working normally and the control interface receives the second instruction sent by the second module, wherein the second instruction is used to instruct the first data interface to be enabled.
7. The apparatus according to claim 6, characterized in that, Also includes: The fourth processing module is used to close the first data interface when the control interface receives a third instruction sent by the second module, wherein the third instruction is used to close the first data interface.
8. The apparatus according to claim 6, characterized in that, The first instruction or the second instruction is an instruction transmitted via a serial communication protocol.
9. The apparatus according to claim 6, characterized in that, The first module includes at least one of a power management module and a multimedia processing module.
10. The apparatus according to claim 6, characterized in that, The second module is the main control module of the electronic device.
11. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the interface state control method as described in any one of claims 1-5.
12. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the interface state control method as described in any one of claims 1-5.
13. A computer program product, characterized in that, It includes computer instructions, which, when executed by a processor, implement the steps of the interface state control method as described in any one of claims 1-5.