Electronic device

文档序号:1936586 发布日期:2021-12-07 浏览:20次 中文

阅读说明:本技术 电子设备 (Electronic device ) 是由 王涛 于 2020-06-02 设计创作,主要内容包括:本申请实施例公开了一种电子设备,该电子设备包括电源管理模块、第一处理器和第二处理器,电源管理模块和第一处理器电性连接,第一处理器和第二处理器电性连接,电源管理模块用于对第一处理器进行电源分配;第一处理器包括控制模块,控制模块被配置为:当电源管理模块出现异常时,获取电源管理模块的异常信息;判断第一处理器和第二处理器中是否存在处于正常工作状态的处理器;若第一处理器处于正常工作状态,则将电源管理模块的异常信息发送至第一处理器的中央处理单元;若第二处理器处于正常工作状态,则将电源管理模块的异常信息发送至所述第二处理器。从而在电源管理模块出现异常时,及时处理电源管理模块的异常问题。(The embodiment of the application discloses electronic equipment, which comprises a power management module, a first processor and a second processor, wherein the power management module is electrically connected with the first processor, the first processor is electrically connected with the second processor, and the power management module is used for carrying out power distribution on the first processor; the first processor includes a control module configured to: when the power management module is abnormal, acquiring abnormal information of the power management module; judging whether a processor in a normal working state exists in the first processor and the second processor; if the first processor is in a normal working state, sending the abnormal information of the power management module to a central processing unit of the first processor; and if the second processor is in a normal working state, sending the abnormal information of the power management module to the second processor. Therefore, when the power management module is abnormal, the abnormal problem of the power management module is timely processed.)

1. An electronic device is characterized by comprising a power management module, a first processor and a second processor, wherein the power management module is electrically connected with the first processor, and the first processor is electrically connected with the second processor;

the power management module is used for performing power distribution on the first processor;

the first processor comprises a control module configured to:

when the power management module is abnormal, acquiring abnormal information of the power management module;

judging whether a processor in a normal working state exists in the first processor and the second processor;

if the first processor is in a normal working state, sending the abnormal information of the power management module to a central processing unit of the first processor;

and if the second processor is in a normal working state, sending the abnormal information of the power management module to the second processor.

2. The electronic device of claim 1, wherein the control module is further configured to:

receiving a first processing instruction sent by the first processor or a second processing instruction sent by the second processor;

generating a regulation and control instruction corresponding to the abnormal information according to the first processing instruction or the second processing instruction;

and sending the regulation and control instruction to the power management module.

3. The electronic device of claim 2, wherein the control module comprises a controller and a register;

the register is used for storing the first processing instruction or the second processing instruction;

the controller is used for generating the regulating instruction according to the first processing instruction or the second processing instruction.

4. The electronic device of claim 3, wherein the second processor is configured to:

if the central processing unit of the first processor is in a dormant state, acquiring the second processing instruction corresponding to the abnormal information according to the abnormal information;

and sending the second processing instruction to the control module.

5. The electronic device of claim 4, wherein the register is further configured to store an exception type of the exception information;

the second processor is configured to:

acquiring the exception type of exception information stored in the register;

acquiring the second processing instruction corresponding to the abnormal information according to the abnormal type of the abnormal information;

and sending the second processing instruction to the control module.

6. The electronic device of claim 2, wherein the first processor is configured to:

if the central processing unit of the first processor is in a normal working state, acquiring the first processing instruction corresponding to the abnormal information according to the abnormal information;

and sending the first processing instruction to the control module.

7. The electronic device of any of claims 1-6, wherein the power management module is configured to:

receiving a regulation and control instruction sent by the control module;

and regulating and controlling a circuit according to the regulating and controlling instruction so as to process the abnormal information.

8. An electronic device is characterized by comprising a power management module, a front image processor and an application processor, wherein the power management module is electrically connected with the front image processor, and the front image processor is electrically connected with the application processor;

the power supply management module is used for distributing power supply to the front image processor;

a control module configured to:

when the power management module is abnormal, acquiring abnormal information of the power management module;

if the electronic equipment is in a first mode, sending abnormal information to the front image processor;

and if the electronic equipment is in a second mode, the control module sends the abnormal information to the application processor.

9. The electronic device of claim 8, further comprising an image sensor for acquiring image data, the image sensor being connected to the front image processor via a first interface;

the image processor is connected with the application processor through a second interface, and the second interface is connected with the first interface;

the first mode comprises the steps that image data collected by the image sensor are sent to the front image processor and processed by the front image processor, and the image data processed by the front image processor are transmitted to the image processing unit of the application processor through the second interface;

the second mode comprises that the image data collected by the image sensor is transmitted to the application processor through the direct connection of the first interface and the second interface.

10. The electronic device of claim 9, wherein when the electronic device is in the second mode, the image processor is configured to:

transmitting the image data received from the first interface of the image processor to the application processor directly through the second interface of the image processor;

and in the second mode, the application processing chip processes the image data.

11. The electronic device of any of claims 8-10, wherein the first mode comprises at least one of a zero-latency photography mode, a play video mode, a record video mode, and an album picture viewing mode, and wherein the second mode comprises a non-zero-latency photography mode.

12. The electronic device of claim 11, wherein when the electronic device is in the second mode, the image processor is in a bypass mode;

the application processor is configured to:

receiving the abnormal information sent by the control module;

generating a corresponding processing instruction according to the abnormal information and sending the processing instruction to the control module;

the control module is configured to:

generating a regulation and control instruction corresponding to the abnormal information according to the processing instruction;

sending the regulation and control instruction to the power management module;

the power management module is configured to:

and powering off or powering on again according to the regulating and controlling instruction.

Technical Field

The application relates to the technical field of electronic circuits, in particular to an electronic device.

Background

The power management chip can distribute power to the processor and send feedback information to the processor when the power management chip works abnormally so as to remind the processor to process the abnormality. After the processor receives the feedback information, the processor processes the abnormity based on the feedback information, and the problem of abnormal work of the power management chip is solved. However, if the processor is in the sleep state, the feedback cannot be responded to in time, so that the exception cannot be solved in time.

Disclosure of Invention

The embodiment of the application provides an electronic device, which can timely handle the abnormal problem of a power management module when the power management module is abnormal.

In a first aspect, the present application provides an electronic device, including a power management module, a first processor and a second processor, where the power management module is electrically connected to the first processor, and the first processor is electrically connected to the second processor;

the power management module is used for performing power distribution on the first processor;

the first processor comprises a control module configured to:

when the power management module is abnormal, acquiring abnormal information of the power management module;

judging whether a processor in a normal working state exists in the first processor and the second processor;

if the first processor is in a normal working state, sending the abnormal information of the power management module to a central processing unit of the first processor;

and if the second processor is in a normal working state, sending the abnormal information of the power management module to the second processor.

In a second aspect, the present application provides another electronic device, including a power management module, a front image processor and an application processor, where the power management module is electrically connected to the front image processor, and the front image processor is electrically connected to the application processor;

the power supply management module is used for distributing power supply to the front image processor;

a control module configured to:

when the power management module is abnormal, acquiring abnormal information of the power management module;

if the electronic equipment is in a first mode, sending abnormal information to the front image processor;

and if the electronic equipment is in a second mode, the control module sends the abnormal information to the application processor.

The electronic device provided by the embodiment of the application comprises a power management module, a first processor and a second processor, wherein the power management module is electrically connected with the first processor, the first processor is electrically connected with the second processor, and the power management module is used for distributing power to the first processor; the first processor includes a control module configured to: when the power management module is abnormal, acquiring abnormal information of the power management module; judging whether a processor in a normal working state exists in the first processor and the second processor; if the first processor is in a normal working state, sending the abnormal information of the power management module to a central processing unit of the first processor; and if the second processor is in a normal working state, sending the abnormal information of the power management module to the second processor. Therefore, when the power management module is abnormal, the abnormal problem of the power management module is timely processed.

Drawings

In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.

Fig. 1 is a first structural schematic diagram of an electronic device provided in an embodiment of the present application.

Fig. 2 is a second schematic structural diagram of an electronic device according to an embodiment of the present application.

Fig. 3 is a third structural schematic diagram of an electronic device provided in the embodiment of the present application.

Fig. 4 is a fourth structural schematic diagram of an electronic device provided in the embodiment of the present application.

Fig. 5 is a fifth structural schematic diagram of an electronic device provided in an embodiment of the present application.

Fig. 6 is a sixth structural schematic diagram of an electronic device provided in an embodiment of the present application.

Detailed Description

The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

The embodiment of the application provides electronic equipment which can be used for timely processing the abnormal problem of a power management chip in the electronic equipment.

Referring to fig. 1, fig. 1 is a schematic view of a first structure of an electronic device according to an embodiment of the present disclosure. Wherein the electronic device includes an image sensor 110, a pre-image Signal Processing (pre-ISP) 210, and an Application Processor (AP) 310.

It is understood that the image sensor 110, the front image processor 210, and the application processor 310 are capable of processing image data, such as still image data and moving image data. The still image data may be understood as data of a still image, and the still image may be a frame of image obtained in the zero-delay photographing mode, that is, a frame of image is selected from the multiple frames of preview images. The still image may also be a frame image acquired in a non-zero time-lapse photographing mode. A static image may also be understood as an image displayed with an album open. The moving image data may be understood as data of a moving image, and the moving image may include a preview image, an image of a recorded video, and an image of a played video. It should be noted that the dynamic image may be understood as a video image, that is, the video image may include a preview image, a recorded video image, and a played video image.

The front image processor 210 includes a first interface 211 and a second interface 212. The image sensor 110 may be connected to the front image processor 210 through the first interface 211, and the application processor 310 may be connected to the front image processor through the second interface 212.

The first Interface 211 and the second Interface 212 may be Mobile Industry Processor interfaces (MI PI). The first interface 211 may receive image data such as RAW data, such as RAW data acquired from the image sensor 110. The image data such as RAW data received by the first interface 211 may be original image data, that is, the image data received by the first interface 211 is unprocessed image data, and specifically, the original image data may be understood as image data unprocessed by the image processor. The first interface 211 may transmit image data, such as raw image data, to the front image processor 210 after receiving the image data.

In some embodiments, the second interface 212 may receive results of the processing of the image data by the pre-image processor 210. The second interface 212 may be connected with the application processor 310 to transmit image data, such as video image data, received by the second interface 212 to the application processor 310.

In some embodiments, the first interface 211 and the second interface 212 are connected, the image data acquired by the image sensor 110 can be directly transmitted to the second interface 212 through the first interface 211, and then the second interface 212 transmits the image data to the application processor 310.

Please refer to fig. 2, wherein fig. 2 is a second schematic structural diagram of an electronic device according to an embodiment of the present disclosure. The electronic device includes an image sensor 110, a multimedia processing chip 200 and an application processing chip 300.

The image sensor 110 may acquire image data. The image sensor 110 may be a Complementary Metal-Oxide-Semiconductor (CMOS) image sensor, a Charge Coupled Device (CCD) image sensor, or the like. The image sensor 110 may be electrically connected with the multimedia processing chip 200, such as the image sensor 600 being electrically connected with the first interface 201 of the multimedia processing chip 200. The image sensor 600 may collect RAW image data such as RAW image data and transmit the RAW image data to the multimedia processing chip 200 through the first interface 211 for processing by the front image processor 210 inside the multimedia processing chip 200.

In some embodiments, the electronic device further provides a Neural-Network Processing Unit (NPU) 230, the NPU 230 may receive the image data sent by the image sensor 110, and the NPU 230 may process the image data.

The various components of the multimedia processing chip 200 may be connected by a system bus 220. Such as the pre-image signal processor 210 connected to the system bus 220, the neural network processor 230 connected to the system bus 220, the memory connected to the system bus 240, the memory access controller connected to the system bus 220, and so forth.

The multimedia Processing chip 200 may further include a Central Processing Unit (CPU) for controlling operations of the system of the multimedia Processing chip 200, such as configuring peripheral parameters, controlling interrupt responses, and the like.

The application processing chip 300 includes an application processor 310, a system bus 320, an image signal processor 330, and a third interface 311.

The various components of the application processing chip 300 may be connected by a system bus 320. Such as application processor 310 coupled to system bus 320, video signal processor coupled to system bus 320, memory access controller coupled to system bus 320, and so forth

The third interface 311 may be a mobile industry processor interface, and the third interface 311 is electrically connected to the second interface 212 and can receive data processed by the multimedia processing chip 200.

The image signal processor 330 may process the image data, for example, the image signal processor 330 may further process the data processed by the multimedia processing chip 200. Of course, the image signal processor 330 may also process raw image data collected by the image sensor 110.

In some embodiments, the result of the image data processing by the front image processor 210 in the multimedia processing chip 200 can be transmitted to the memory of the application processing chip 300 through the connection of the second interface 212 and the third interface 311. The result of the image data processing by the neural network processor 230 in the multimedia processing chip 200 can be transmitted to the memory of the application processing chip 300 through the connection of the second interface 212 and the third interface 311.

When the electronic device is in different modes, the hardware working state inside the electronic device is also changed. For example, when the electronic device is in a power saving mode, the electronic device may cause some working elements to be in a sleep state or cause the performance of a processor of the electronic device to be limited. For another example, when the electronic device is in a video shooting mode, in order to enable the electronic device to shoot a video with a picture effect, more devices inside the electronic device are called to process received moving image data.

In some embodiments, when the electronic device is in a first mode, such as a zero-latency photographing mode, a play video mode, a record video mode, an album picture viewing mode, and so forth. The multimedia processing chip 200 pre-processes the image data captured by the image sensor 110 and then processes the image data by the image signal processor of the application processing chip to improve the image quality.

For example, when the electronic device is in a recorded video mode or takes a picture with zero delay, the image sensor 110 receives the image data, and then transmits the image data to the front image processor 210 through the first interface 211, and the front image processor 210 processes the image data. Or the image data is transmitted to the memory of the multimedia processing chip 200, and the neural network processor 230 may obtain the image data from the memory and process the image data. The image data may be still image data or moving image data. Or the front image processor 210 processes the image data to obtain first data, then transmits the first data to the neural network processor 230 for processing to obtain second data, finally the neural network processor 230 transmits the second data to the application processing chip 300, and the application processing chip 300 processes the second image to obtain final image processing data.

The image data processed by the front image processor 210 or the image data processed by the neural network processor 230 may be transmitted to the application processing chip 300, and the application processing chip 300 processes the image data processed by the multimedia processing chip 200 again, thereby achieving better picture quality.

For another example, when the electronic device is in a video playing mode or an album picture viewing mode, the multimedia processing chip 200 may obtain the stored image data, then perform RAW image editing on the image data, and finally display the processed image data on a display screen, so as to improve the display effect of the still image, improve the resolution of the video playing, and solve the problem of particles occurring in the video playing process.

In some embodiments, when the electronic device is in the second mode, for example, a non-zero delay photographing mode. In the non-zero-delay photographing mode, the application processor 310 of the application processing chip 300 may determine that the image data in the mode does not need to be preprocessed by the multimedia processing chip 200, and when the image data, such as the image data collected by the image sensor, is transmitted to the first interface 211, the image data transmitted to the first interface 211 may be directly transmitted to the second interface 212 and transmitted to the application processing chip through the second interface 212.

It should be noted that, in the non-zero-delay photographing mode, which is actually photographing offline processing, such as photographing processing time of 30 milliseconds, 50 milliseconds, etc., the process is not strong to the user. It does not require real-time transmission of image data. Based on this, the image processing efficiency can be improved on the basis of improving the image quality. Some embodiments of the present application may be directed to some images with low real-time data transmission, which are not processed by the multimedia processing chip, but directly processed by the image signal processor 330 of the application processing chip 300. Of course, the image signal may also be directly processed by the image signal processor 330 of the application processing chip 300 for some other special cases.

It can be understood that, when the electronic device is in the second mode, some devices inside the electronic device are in a dormant state, and do not need to participate in processing image data or processing other data, so as to save the power of the electronic device.

However, when the electronic device is in the second mode, some devices have power management chips or power management circuits with abnormal conditions, such as over-temperature, over-voltage, over-current, etc. Because the device is in a sleep state, a bypass mode (bypass mode) or an inoperative state, abnormal information of the power management chip cannot be reported to the device, which may cause an error when the power management chip allocates power, and finally cause the device to have system breakdown, device damage and the like.

Therefore, when the electronic device is in the second mode, the device in the normal operation needs to take over the power management chip corresponding to the device in the sleep state, and when the power management chip of the device in the sleep state is abnormal, the device in the normal operation can handle the abnormality.

Referring to fig. 3 in detail, fig. 3 is a schematic diagram illustrating a third structure of an electronic device according to an embodiment of the present disclosure. The electronic device includes a power management module 400, a first processor 500 and a second processor 600.

The power management module 400 is electrically connected to the first processor 500, and the power management module 400 is configured to distribute power to the first processor 500. The Power Management module 400 may be a Power Management Integrated Circuit (PMIC) of the first processor 500, or may be understood as a Power Management chip of the first processor 500. The power management module 400 communicates with the first processor 500 through corresponding interfaces and buses, so as to realize data interaction.

The first processor 500 and the second processor 600 are electrically connected, and the first processor 500 and the second processor 600 can communicate through corresponding buses and interfaces, so as to realize data interaction.

It should be noted that the first processor 500 includes a Central Processing Unit (CPU), and the CPU 510 is used to control the operation of the system of the multimedia Processing chip 200, such as configuring peripheral parameters, controlling interrupt response, and the like.

In addition, the first processor 500 may be the pre-image processor 210 described in the embodiment of the present application, and the second processor 600 may be the application processor 310 described in the embodiment of the present application. The first processor 500 and the second processor 600 may be other types of processors, the first processor 500 may be a main processor, the second processor 600 may be a co-processor, and so on, without limitation.

Referring to fig. 4, fig. 4 is a fourth schematic structural diagram of an electronic device according to an embodiment of the present disclosure.

The first processor 500 further includes a control module 520, the central processing unit 510 is electrically connected to the control module 520, the control module 520 can upload data to the central processing unit 510 or download data from the central processing unit 510, and data interaction with the power management module 400 can be realized through the control module 520.

The control module 520 is electrically connected to the second processor 600, the second processor 600 may send a corresponding instruction to the control module 520, and the control module 520 may also send a corresponding request to the second processor 600.

In some embodiments, when the electronic device is in the first mode, the first processor 500 is in a normal operating state, and the central processing unit 510 of the first processor 500 is also operating, the control module 520 may perform data interaction with the central processing unit 510.

When the power management module 400 works, the working information of the power management module 400 is sent to the control module 520, if the control module 520 determines that the first processor 500 is in a normal working state, the control module 520 sends the working information to the central processing unit 510, the central processing unit 510 generates a corresponding processing instruction according to the working information and sends the processing instruction to the control module 520, and the control module 520 can generate a corresponding regulation instruction according to the processing instruction to control the work of the power management module 400.

For example, when the power management circuit of the power management module 400 is abnormal, such as over-high temperature, over-high voltage, over-high current, and the like, the power management module 400 sends the detected abnormal information to the control module 520, the control module 520 reports the abnormal information to the central processing unit 510, the central processing unit 510 makes a corresponding decision according to the abnormal information to generate a first processing instruction and sends the first processing instruction to the control module 520, the control module 520 generates a corresponding regulation instruction according to the first processing instruction and then transmits the regulation instruction to the power management module 400, and the power management module 400 processes the abnormal information according to the regulation instruction.

For example, when the temperature of the power management module 400 is too high, the power management module 400 may adjust the power of the load according to the regulation instruction, so as to reduce the heating value. When the current or voltage of the power management module 400 is too high, the power management module 400 may implement voltage division and shunt by adjusting the size of the resistor to reduce the voltage or current.

In some embodiments, when the electronic device is in the second mode, the first processor 500 is in a sleep state or a bypass mode, in which the central processing unit 510 of the first processor 500 is inactive, and the control module 520 cannot interact with the central processing unit 510.

When the power management module 400 works, the working information of the power management module 400 is sent to the control module 520, when the control module 520 determines that the first processor 500 is in the sleep state and the second processor 600 is in the normal working state, the control module 520 sends the working information to the second processor 600, the second processor 600 generates a corresponding processing instruction according to the working information and sends the processing instruction to the control module 520, and the control module 520 can generate a corresponding regulation instruction according to the processing instruction to control the work of the power management module 400.

For example, when the power management circuit of the power management module 400 is abnormal, such as over-high temperature, over-high voltage, over-high current, and the like, the power management module 400 sends the detected abnormal information to the control module 520, because the first processor 500 is not in a normal working state, the control module 520 reports the abnormal information to the second processor 600, the second processor 600 generates a corresponding second processing instruction according to the abnormal information, and sends the second processing instruction to the control module 520, the control module 520 generates a corresponding regulation instruction according to the second processing instruction, and transmits the regulation instruction to the power management module 400, and the power management module 400 processes the abnormal information according to the regulation instruction.

For example, when the temperature of the power management module 400 is too high, the power management module 400 may adjust the power of the load according to the regulation instruction, so as to reduce the heating value. When the current or voltage of the power management module 400 is too high, the power management module 400 may implement voltage division and shunt by adjusting the size of the resistor to reduce the voltage or current. Or the power management module 400 directly powers off and powers on again according to the regulation and control instruction to handle the abnormal problem of the power management module.

In some embodiments, after the control module 520 receives the operation information of the power management module 400, when the control module 520 determines that both the first processor 500 and the second processor 600 are in the normal operation state, the operation information may be directly sent to the first processor 500, and the first processor 500 generates a corresponding instruction to control the operation of the power management module 400.

Referring to fig. 5, fig. 5 is a fifth structural schematic diagram of an electronic device according to an embodiment of the disclosure. The control module 520 includes a register 521 and a controller 522, where the register 521 can store a processing instruction sent by the first processor 500 or the second processor 600, and meanwhile, when the power management module 400 sends work information, such as exception information of the power management module 400, to the control module 520, the register 521 can store the exception information, such as an exception type of the exception information.

In some embodiments, when the electronic device is in the second mode and the first processor 500 is in the sleep state, when the power management module 400 is abnormal, the power management module 400 sends the abnormal information to the control module 520, at this time, the control module 520 stores the acquired abnormal information and the type of the abnormal information in the register 521, and then the control module 520 sends a processing request to the second processor 600. Then, after receiving the processing request, the second processor 600 obtains the exception type of the exception information stored in the register 521, the second processor 600 generates a corresponding second processing instruction according to the exception type, and sends the second processing instruction to the control module 520, and the controller 522 of the control module 520 generates a regulation instruction according to the second processing instruction, and sends the regulation instruction to the power management module 400.

The power management module 400 processes the abnormal information according to the acquired regulation instruction, for example, power is turned on again or power is turned off.

In addition, when the electronic device is in the first mode, the first processor 500 is in a normal operating state, and when the power management module 400 is abnormal, the power management module 400 sends the abnormal information to the control module 520, at this time, the control module 520 stores the acquired abnormal information and the type of the abnormal information in the register 521, and then reports the abnormal information to the central processing unit 510, and the central processing unit 510 generates the first processing instruction according to the abnormal information and the type of the abnormal information. And sends the first processing instruction to the control module 520, the control module 520 generates a corresponding regulation instruction according to the first processing instruction, and then transmits the regulation instruction to the power management module 400, and the power management module 400 processes the abnormal information according to the regulation instruction.

It should be noted that the exception information and the exception type of the exception information sent by the power management module 400 to the control module 520 may also be stored in a memory corresponding to the first processor 500, where the memory may be a memory different from a register type, for example, the memory may be a static memory or a dynamic memory, such as a ddr (double Data Rate sdram). The number of the memories may be one or more.

Referring to fig. 6, fig. 6 is a sixth schematic structural diagram of an electronic device according to an embodiment of the present disclosure. The first processor 500 further includes a fourth interface 530, a fifth interface 540, and a sixth interface 550, the fourth interface 530, the fifth interface 540, and the sixth interface 550 are electrically connected to the control module 520, respectively, and the fourth interface 530, the fifth interface 540, and the sixth interface 550 can transmit different data or the same data.

The power management module 400 may be connected with a fourth interface 530. The second processor 600 may be connected to the fifth interface 540 and may also be connected to the sixth interface 550.

For example, the fourth Interface 530 may be a System Power Management Interface (SPMI), when the Power Management module 400 sends the operation information to the first processor 500 through the fourth Interface 530.

The fifth interface 540 may be a General Purpose Input Output (GPIO) interface, and the control module 520 may send an interrupt signal to the second processor 600 through the fifth interface 540, and notify the second processor 600 of the abnormal operation condition of the power management module 400 through the interrupt signal.

The sixth Interface 550 may be a Serial Peripheral Interface (SPI), which is a high-speed, full-duplex, synchronous communication bus. When the second processor 600 works normally, the data stored in the first processor 500 may be obtained through the sixth interface 550, for example, the second processor 600 obtains the type of the exception information stored in the register 521 of the control module 520 through the sixth interface 550. The second processor 600 may further transmit the second processing instruction to a register corresponding to the controller 522 of the control module through the sixth interface 550, and then the controller 522 generates a corresponding regulation instruction according to the second processing instruction.

The control module 520 may transmit the regulation instruction to the power management module 400 through the fourth interface 530, and the power management module 400 processes the abnormal information according to the regulation instruction, for example, the power management module 400 powers off or powers on again, so as to solve the abnormal problem of the power management module 400 in time.

The first mode and the second mode of the electronic device may correspond to different processing modes when the electronic device takes a picture, for example, in the first mode, the image data collected by the image sensor is sent to the front image processor and processed by the front image processor, and the image data processed by the front image processor is transmitted to the image processing unit of the application processor through the second interface.

When in a second mode, the second mode comprises that the image data acquired by the image sensor is transmitted to the application processor through the direct connection of the first interface and the second interface.

Specifically, in an actual scene, when the electronic device takes a picture, the picture taking mode of the electronic device is a non-zero-delay picture taking mode (a second mode), at this time, the first processor 500 (the front image processor 210) is in a sleep state and does not need to participate in processing of image data, at this time, the central processing unit 510 of the first processor 500 is inactive, when the power management module 400 of the first processor 500 is abnormally operated, the power management module 400 transmits abnormal information to the control module 520 through the fourth interface 530, the control module 520 transmits the abnormal information to the second processor 600 through the fifth interface 540, the second processor 600 generates a second processing instruction according to the abnormal information and transmits the second processing instruction to the control module 520 through the sixth interface 550, the control module 520 generates a corresponding regulation instruction according to the second processing instruction, and finally transmits the regulation instruction to the power management module 400, the power management module 400 processes the abnormal information in time according to the regulation and control instruction.

In summary, in the embodiment of the present application, when the power management module is abnormal, the control module obtains the abnormal information of the power management module; if the central processing unit of the first processor is in a normal working state, the control module sends the abnormal information to the central processing unit; if the central processing unit of the first processor is in a dormant state, the control module sends the abnormal information to the second processor in a normal working state. Therefore, when the power management module is abnormal, the abnormal problem of the power management module is timely processed.

It will be understood by those of ordinary skill in the art that all or part of the steps in the various embodiments of the above embodiments may be performed by instructions or by instructions controlling associated hardware, which may be stored in a computer readable storage medium and loaded and executed by a processor.

To this end, embodiments of the present application provide a storage medium having stored therein a plurality of instructions, which can be loaded by a processor to execute the instructions provided by the embodiments of the present application.

For example, when the electronic device is in the first mode, the control module is configured with instructions to:

when the power management module is abnormal, acquiring abnormal information of the power management module;

and sending the abnormal information of the power management module to the front image processor.

When the electronic device is in the second mode, the control module is configured with instructions to:

when the power management module is abnormal, acquiring abnormal information of the power management module;

the control module sends the exception information to the application processor.

The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.

Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.

Since the instructions stored in the storage medium may execute the method steps in any embodiment provided in the embodiments of the present application, beneficial effects that can be achieved by the electronic device provided in the embodiments of the present application may be achieved, for details, see the foregoing embodiments, and are not described herein again.

The electronic device provided by the embodiment of the present application is described in detail above, and the principle and the implementation of the present application are explained in this document by applying specific examples, and the description of the above embodiment is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:操作者目光在终端设备屏幕上落点位置的确定方法及装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!