[go: up one dir, main page]

CN115080125A - Method and device for sharing hardware call, electronic equipment and storage medium - Google Patents

Method and device for sharing hardware call, electronic equipment and storage medium Download PDF

Info

Publication number
CN115080125A
CN115080125A CN202110272597.5A CN202110272597A CN115080125A CN 115080125 A CN115080125 A CN 115080125A CN 202110272597 A CN202110272597 A CN 202110272597A CN 115080125 A CN115080125 A CN 115080125A
Authority
CN
China
Prior art keywords
electronic device
call
shared hardware
event
hardware
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110272597.5A
Other languages
Chinese (zh)
Inventor
杨旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202110272597.5A priority Critical patent/CN115080125A/en
Publication of CN115080125A publication Critical patent/CN115080125A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • G06F9/4408Boot device selection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

The application discloses a calling method and device of shared hardware, electronic equipment and a storage medium, and relates to the technical field of electronic equipment. The method is applied to the electronic equipment, the electronic equipment comprises a first system, a second system and shared hardware of the first system and the second system, wherein the power consumption of the normal operation of the first system is higher than the power consumption of the normal operation of the second system, and the shared hardware is controlled by the second system, and the method comprises the following steps: when the operating system of the electronic equipment is a first system and monitors a first calling event of the first system to the shared hardware, first calling information corresponding to the first calling event is obtained and sent to a second system so as to instruct the second system to send the first calling information to the shared hardware and control the shared hardware to respond to the calling of the first system. The method and the device can realize sharing and calling of the double systems of the electronic equipment to the hardware as required, reduce the hardware cost of the electronic equipment and improve the use experience of a user.

Description

共用硬件调用的方法、装置、电子设备以及存储介质Method, apparatus, electronic device and storage medium for sharing hardware call

技术领域technical field

本申请涉及电子设备技术领域,更具体地,涉及一种共用硬件调用的方法、装置、电子设备以及存储介质。The present application relates to the technical field of electronic devices, and more particularly, to a method, an apparatus, an electronic device, and a storage medium for sharing hardware calls.

背景技术Background technique

双系统指的是为了满足不同操作需求或解决软件兼容性问题,可以在同一个电子设备上安装两个不同的操作系统。电子设备的两个操作系统都需要配合硬件执行各自对应的功能,由于电子设备的体积和重量受到限制,其上安装的硬件的数量也受到限制,如何在两个操作系统之间调用和分配硬件存在一定的困难。Dual systems refer to two different operating systems that can be installed on the same electronic device in order to meet different operational requirements or solve software compatibility issues. Both operating systems of electronic devices need to cooperate with hardware to perform their corresponding functions. Due to the limited size and weight of electronic devices, the number of hardware installed on them is also limited. How to call and allocate hardware between the two operating systems There are certain difficulties.

发明内容SUMMARY OF THE INVENTION

鉴于上述问题,本申请提出了一种共用硬件调用的方法、装置、电子设备以及存储介质,以解决上述问题。In view of the above problems, the present application proposes a method, an apparatus, an electronic device and a storage medium for sharing hardware calls to solve the above problems.

第一方面,本申请实施例提供了一种共用硬件的调用方法,应用于电子设备,所述电子设备包括第一系统、第二系统以及所述第一系统和第二系统的共用硬件,其中,所述第一系统正常运行的功耗高于所述第二系统正常运行的功耗,所述共用硬件由所述第二系统控制,所述方法包括:当所述电子设备的操作系统为所述第一系统且监听到所述第一系统对所述共用硬件的第一调用事件时,获取所述第一调用事件对应的第一调用信息;将所述第一调用信息发送至所述第二系统,以指示所述第二系统将所述第一调用信息发送至所述共用硬件,控制所述共用硬件响应所述第一系统的调用。In a first aspect, an embodiment of the present application provides a method for invoking shared hardware, which is applied to an electronic device, where the electronic device includes a first system, a second system, and shared hardware of the first system and the second system, wherein , the power consumption of the normal operation of the first system is higher than the power consumption of the normal operation of the second system, the shared hardware is controlled by the second system, and the method includes: when the operating system of the electronic device is When the first system monitors a first call event of the first system to the shared hardware, obtains first call information corresponding to the first call event; and sends the first call information to the The second system instructs the second system to send the first call information to the common hardware, and controls the common hardware to respond to the call of the first system.

第二方面,本申请实施例提供了一种共用硬件的调用装置,应用于电子设备,所述电子设备包括第一系统、第二系统以及所述第一系统和第二系统的共用硬件,其中,所述第一系统正常运行的功耗高于所述第二系统正常运行的功耗,所述共用硬件由所述第二系统控制,所述装置包括:调用信息获取模块,用于当所述电子设备的操作系统为所述第一系统且监听到所述第一系统对所述共用硬件的第一调用事件时,获取所述第一调用事件对应的第一调用信息;共用硬件调用模块,用于将所述第一调用信息发送至所述第二系统,以指示所述第二系统将所述第一调用信息发送至所述共用硬件,控制所述共用硬件响应所述第一系统的调用。In a second aspect, an embodiment of the present application provides an apparatus for invoking shared hardware, which is applied to an electronic device, where the electronic device includes a first system, a second system, and shared hardware of the first system and the second system, wherein , the power consumption of the normal operation of the first system is higher than the power consumption of the normal operation of the second system, the shared hardware is controlled by the second system, and the device includes: a call information acquisition module for when all the When the operating system of the electronic device is the first system and the first calling event of the first system to the shared hardware is monitored, the first calling information corresponding to the first calling event is obtained; the shared hardware calling module , for sending the first call information to the second system, to instruct the second system to send the first call information to the shared hardware, and to control the shared hardware to respond to the first system call.

第三方面,本申请实施例提供了一种电子设备,包括存储器和处理器,所述存储器耦接到所述处理器,所述存储器存储指令,当所述指令由所述处理器执行时所述处理器执行上述方法。In a third aspect, embodiments of the present application provide an electronic device, including a memory and a processor, the memory is coupled to the processor, and the memory stores instructions, which are stored when the instructions are executed by the processor. The processor executes the above method.

第四方面,本申请实施例提供了一种计算机可读取存储介质,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a program code is stored in the computer-readable storage medium, and the program code can be invoked by a processor to execute the above method.

本申请实施例提供的共用硬件的调用方法、装置、电子设备以及存储介质,应用于电子设备,该电子设备包括第一系统、第二系统以及第一系统和第二系统的共用硬件,其中,第一系统正常运行的功耗高于第二系统正常运行的功耗,共用硬件由第二系统控制。当电子设备的操作系统为第一系统且监听到第一系统对共用硬件的第一调用事件时,获取第一调用事件对应的第一调用信息,将第一调用信息发送至第二系统,以指示第二系统将第一调用信息发送至共用硬件,控制共用硬件响应第一系统的调用,从而可实现电子设备的双系统对硬件的共用和按需调用,降低电子设备的硬件成本以及提高用户的使用体验。The invoking method, device, electronic device, and storage medium for shared hardware provided by the embodiments of the present application are applied to the electronic device, and the electronic device includes a first system, a second system, and the shared hardware of the first system and the second system, wherein, The power consumption of the normal operation of the first system is higher than that of the normal operation of the second system, and the shared hardware is controlled by the second system. When the operating system of the electronic device is the first system and the first call event of the first system to the shared hardware is monitored, the first call information corresponding to the first call event is obtained, and the first call information is sent to the second system to Instruct the second system to send the first call information to the shared hardware, and control the shared hardware to respond to the call of the first system, so that the dual systems of the electronic equipment can share and call the hardware on demand, reduce the hardware cost of the electronic equipment and improve the user experience. user experience.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained from these drawings without creative effort.

图1示出了可用于本申请实施例提供的共用硬件的调用方法的应用环境示意图;FIG. 1 shows a schematic diagram of an application environment that can be used for the calling method for shared hardware provided by an embodiment of the present application;

图2示出了本申请一个实施例提供的共用硬件的调用方法的流程示意图;2 shows a schematic flowchart of a method for invoking shared hardware provided by an embodiment of the present application;

图3示出了本申请又一个实施例提供的共用硬件的调用方法的流程示意图;3 shows a schematic flowchart of a method for invoking shared hardware provided by another embodiment of the present application;

图4示出了本申请再一个实施例提供的共用硬件的调用方法的流程示意图;4 shows a schematic flowchart of a method for invoking shared hardware provided by yet another embodiment of the present application;

图5示出了本申请另一个实施例提供的共用硬件的调用方法的流程示意图;5 shows a schematic flowchart of a method for invoking shared hardware provided by another embodiment of the present application;

图6示出了本申请又再一个实施例提供的共用硬件的调用方法的流程示意图;6 shows a schematic flowchart of a method for invoking shared hardware provided by yet another embodiment of the present application;

图7示出了本申请又另一个实施例提供的共用硬件的调用方法的流程示意图;7 shows a schematic flowchart of a method for invoking shared hardware provided by yet another embodiment of the present application;

图8示出了本申请又又再一个实施例提供的共用硬件的调用方法的流程示意图;8 shows a schematic flowchart of a method for invoking shared hardware provided by yet another embodiment of the present application;

图9示出了本申请又又另一个实施例提供的共用硬件的调用方法的流程示意图;9 shows a schematic flowchart of a method for invoking shared hardware provided by yet another embodiment of the present application;

图10示出了本申请实施例提供的共用硬件的调用装置的模块框图;FIG. 10 shows a block diagram of a module of an invoking device for sharing hardware provided by an embodiment of the present application;

图11示出了本申请实施例用于执行根据本申请实施例的共用硬件调用的方法的电子设备的框图;FIG. 11 shows a block diagram of an electronic device for executing the method for sharing hardware invocation according to the embodiment of the present application;

图12示出了本申请实施例的用于保存或者携带实现根据本申请实施例的共用硬件调用的方法的程序代码的存储单元。FIG. 12 shows a storage unit for storing or carrying program codes for implementing the method for sharing hardware calls according to the embodiment of the present application according to the embodiment of the present application.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to make those skilled in the art better understand the solutions of the present application, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application.

双系统指的是为了满足不同操作需求或解决软件兼容性问题,可以在同一个电子设备上安装两个不同的操作系统。电子设备的两个操作系统都需要配合硬件执行各自对应的功能,由于电子设备的体积和重量受到限制,其上安装的硬件设备的数量也受到限制,如何在两个操作系统之间调用和分配硬件存在一定的困难。Dual systems refer to two different operating systems that can be installed on the same electronic device in order to meet different operational requirements or solve software compatibility issues. Both operating systems of electronic devices need to cooperate with hardware to perform their corresponding functions. Due to the limited size and weight of electronic devices, the number of hardware devices installed on them is also limited. How to call and allocate between the two operating systems There are certain difficulties with the hardware.

针对上述问题,发明人经过长期的研究发现并提出了本申请实施例提供的共用硬件的调用方法、装置、电子设备以及存储介质,可以实现电子设备的双系统对硬件的共用和按需调用,降低电子设备的硬件成本以及提高用户的使用体验。其中,具体的共用硬件的调用方法在后续的实施例中进行详细的说明。In view of the above problems, the inventor has discovered and proposed the method, device, electronic device and storage medium for sharing hardware provided by the embodiments of the present application after long-term research, which can realize the sharing and on-demand calling of hardware by dual systems of electronic devices, Reduce the hardware cost of electronic equipment and improve the user experience. The specific method for invoking shared hardware will be described in detail in the following embodiments.

下面将针对可用于本申请实施例提供的共用硬件的调用方法的应用环境进行描述。The following will describe an application environment applicable to the calling method for shared hardware provided by the embodiments of the present application.

在本实施例中,电子设备的操作系统可以包括第一系统和第二系统。操作系统依靠处理器进行运算。In this embodiment, the operating system of the electronic device may include a first system and a second system. The operating system relies on the processor to perform operations.

在一些实施方式中,第一系统和第二系统分别在不同的处理器中运行,例如,请参阅图1,电子设备100包括处理器和共用硬件130,其中,处理器包括第一处理器111和第二处理器112,第一处理器111与第二处理器112连接,第二处理器112与共用硬件130连接,也就是说,第二处理器112分别与第一处理器111和共用硬件130连接。其中,第一处理器111用于运行第一系统,第二处理器112用于运行第二系统,共用硬件130挂载在第二处理器112,运行于第二处理器112的第二系统可以正常调用共用硬件130,以对共用硬件130进行控制。其中,共用硬件130是指可以被第一系统或第二系统调用的硬件,即,第一系统或第二系统均可以通过调用共用硬件130执行某个操作。其中,共用硬件130可以但不限于包括:振动马达、屏幕、喇叭、摄像头。In some embodiments, the first system and the second system respectively run in different processors, for example, please refer to FIG. 1 , the electronic device 100 includes a processor and shared hardware 130 , wherein the processor includes the first processor 111 and the second processor 112, the first processor 111 is connected with the second processor 112, and the second processor 112 is connected with the shared hardware 130, that is, the second processor 112 is respectively connected with the first processor 111 and the shared hardware 130 connections. The first processor 111 is used to run the first system, the second processor 112 is used to run the second system, the shared hardware 130 is mounted on the second processor 112, and the second system running on the second processor 112 may Common hardware 130 is normally called to control common hardware 130 . The shared hardware 130 refers to hardware that can be called by the first system or the second system, that is, both the first system or the second system can perform a certain operation by calling the shared hardware 130 . The shared hardware 130 may include, but is not limited to, a vibration motor, a screen, a speaker, and a camera.

请参阅图2,图2示出了本申请一个实施例提供的共用硬件的调用方法的流程示意图。该共用硬件的调用方法用于实现电子设备的双系统对硬件的共用和按需调用,降低电子设备的硬件成本以及提高用户的使用体验。在具体的实施例中,所述共用硬件的调用方法应用于如图10所示的共用硬件的调用装置200以及配置有共用硬件的调用装置200的电子设备100(图11)。下面将以电子设备为例,说明本实施例的具体流程,可以理解的,本实施例所应用的电子设备可以包括智能手机、平板电脑、穿戴式电子设备(智能手表)等,在此不做限定。在本实施例中,该电子设备包括第一系统、第二系统以及第一系统和第二系统的共用硬件,其中,第一系统正常运行的功耗高于第二系统正常运行的功耗,共用硬件由第二系统控制,下面将针对图2所示的流程进行详细的阐述,所述共用硬件的调用方法具体可以包括以下步骤:Referring to FIG. 2, FIG. 2 shows a schematic flowchart of a method for invoking shared hardware provided by an embodiment of the present application. The method for invoking shared hardware is used to realize the sharing and on-demand invocation of hardware by dual systems of electronic devices, reduce hardware costs of electronic devices and improve user experience. In a specific embodiment, the method for invoking shared hardware is applied to the invoking apparatus 200 for sharing hardware as shown in FIG. 10 and the electronic device 100 ( FIG. 11 ) configured with the invoking apparatus 200 for sharing hardware. The following will take an electronic device as an example to describe the specific process of this embodiment. It can be understood that the electronic device applied in this embodiment may include a smart phone, a tablet computer, a wearable electronic device (smart watch), etc., which is not described here. limited. In this embodiment, the electronic device includes a first system, a second system, and common hardware of the first system and the second system, wherein the power consumption of the first system in normal operation is higher than the power consumption of the second system in normal operation, The shared hardware is controlled by the second system, and the flow shown in FIG. 2 will be described in detail below. The method for invoking the shared hardware may specifically include the following steps:

步骤S110:当所述电子设备的操作系统为所述第一系统且监听到所述第一系统对所述共用硬件的第一调用事件时,获取所述第一调用事件对应的第一调用信息。Step S110: When the operating system of the electronic device is the first system and the first call event of the first system to the shared hardware is monitored, obtain first call information corresponding to the first call event .

在本实施例中,第一系统正常运行的功耗高于第二系统正常运行的功耗,即,在相同的运行环境下,第一系统的运行给电子设备造成的功耗高于第二系统的运行给电子设备造成的功耗。另外,在本实施例中,共用硬件可以一直挂载在运行第二系统的第二处理器,即,共用硬件可以一直由正常运行功耗更小的第二系统控制,以降低电子设备的功耗。其中,该共用硬件可以包括屏幕、振动马达、喇叭、摄像头等,则屏幕、振动马达、喇叭、摄像头等可以一直挂载在运行第二系统的第二处理器。In this embodiment, the power consumption of the normal operation of the first system is higher than the power consumption of the normal operation of the second system, that is, under the same operating environment, the power consumption of the electronic device caused by the operation of the first system is higher than that of the second system. The power consumption of electronic equipment caused by the operation of the system. In addition, in this embodiment, the shared hardware can always be mounted on the second processor running the second system, that is, the shared hardware can always be controlled by the second system with lower power consumption during normal operation, so as to reduce the power consumption of the electronic device. consumption. Wherein, the shared hardware may include a screen, a vibration motor, a speaker, a camera, etc., and the screen, vibration motor, speaker, camera, etc. can always be mounted on the second processor running the second system.

在一些实施方式中,由于电子设备的操作系统包括第一系统和第二系统,因此,电子设备当前所使用的操作系统可以为第一系统,也可以为第二系统,在此不做限定。其中,当电子设备当前所使用的操作系统为第一系统时,则第二系统可以处于休眠状态,当电子设备当前所使用的操作系统为第二系统时,则第一系统可以处于休眠状态,也可以处于关闭状态,在此不做限定。In some embodiments, since the operating system of the electronic device includes the first system and the second system, the operating system currently used by the electronic device may be the first system or the second system, which is not limited herein. Wherein, when the operating system currently used by the electronic device is the first system, the second system can be in a dormant state, and when the operating system currently used by the electronic device is the second system, the first system can be in a dormant state, It can also be in a closed state, which is not limited here.

在本实施例中,可以对电子设备当前所使用的操作系统为第一系统还是第二系统进行检测,其中,当检测到电子设备当前所使用的操作系统为第一系统时,则可以对第一系统针对共用硬件的调用情况进行监听,当监听到第一系统对该共用硬件的第一调用事件时,则可以获取第一调用事件对应的第一调用信息。In this embodiment, it can be detected whether the operating system currently used by the electronic device is the first system or the second system, wherein when it is detected that the operating system currently used by the electronic device is the first system, the first system can be detected. A system monitors the invocation of the shared hardware, and when the first invocation event of the shared hardware is monitored by the first system, the first invocation information corresponding to the first invocation event can be obtained.

作为一种方式,电子设备可以预先设置所使用的操作系统对应的状态值,例如,电子设备可以预先设置使用操作系统为第一系统时处于第一状态值,预先设置使用操作系统为第二系统时处于第二状态时。那么,可以对电子设备所处的状态值进行检测,其中,当检测到电子设备处于第一状态值时,可以确定电子设备的操作系统为第一系统,当检测到电子设备处于第二状态值时,可以确定电子设备的操作系统为第二系统。作为又一种方式,可以对电子设备的系统桌面进行检测,当检测到电子设备的系统桌面由第一系统主导(与第一系统对应)时,可以确定电子设备的操作系统为第一系统,当检测到电子设备的系统桌面由第二系统主导(与第二系统对应)时,可以确定电子设备的操作系统为第二系统。当然,本实施例还可以包括其他更多检测电子设备的操作系统为第一系统还是第二系统的方式,在此不再赘述。As a way, the electronic device can preset the state value corresponding to the operating system used. For example, the electronic device can preset the operating system to be the first state value when the operating system is used as the first system, and preset the operating system to be the second system. when in the second state. Then, the state value of the electronic device can be detected, wherein when it is detected that the electronic device is in the first state value, it can be determined that the operating system of the electronic device is the first system, and when it is detected that the electronic device is in the second state value , it can be determined that the operating system of the electronic device is the second system. As another way, the system desktop of the electronic device can be detected, and when it is detected that the system desktop of the electronic device is dominated by the first system (corresponding to the first system), it can be determined that the operating system of the electronic device is the first system, When it is detected that the system desktop of the electronic device is dominated by the second system (corresponding to the second system), it can be determined that the operating system of the electronic device is the second system. Of course, this embodiment may also include other methods for detecting whether the operating system of the electronic device is the first system or the second system, which will not be repeated here.

在一些实施方式中,当共用硬件为摄像头时,则可以对第一系统对摄像头的调用进行检测,例如,当检测到第一系统触发拍照或触发扫描时,则可以确定监听到第一系统对摄像头的第一调用事件。当共用硬件为振动马达时,则可以对第一系统对振动马达的调用进行检测,例如,当检测到第一系统触发设备振动时(接收到通知消息、闹钟开始)时,则可以确定监听到第一系统对振动马达的第一调用事件。当共用硬件为喇叭时,则可以对第一系统对喇叭的调用进行检测,例如,当检测到第一系统触发音频输出(去电、来电、播放音频)时,则可以确定监听到第一系统对喇叭的第一调用事件。In some embodiments, when the shared hardware is a camera, the call to the camera by the first system can be detected. For example, when it is detected that the first system triggers a photograph or a scan is triggered, it can be determined that the first system is listening to the The camera's first call event. When the shared hardware is a vibration motor, the call of the first system to the vibration motor can be detected. For example, when it is detected that the first system triggers the device to vibrate (a notification message is received, the alarm clock is started), it can be determined that the monitoring The first call event of the first system to the vibration motor. When the shared hardware is a speaker, the call to the speaker by the first system can be detected. For example, when it is detected that the first system triggers an audio output (outgoing call, incoming call, and audio playback), it can be determined that the first system is monitored. The first call event to the horn.

在一些实施方式中,当第一调用事件针对摄像头时,获取第一调用事件对应的第一调用信息可以包括:获取第一调用事件对应的拍摄参数,其中,拍摄参数可以包括拍摄焦距、拍摄时长、拍摄范围等。当第一调用事件针对振动马达时,获取第一调用事件对应的第一调用信息可以包括:获取第一调用事件对应的振动信息,其中,振动信息可以包括振动时长、振动频率、振动大小等。当第一调用事件针对喇叭时,获取第一调用事件对应的第一调用信息可以包括:获取第一调用事件对应的音频输出参数,其中,音频输出参数可以音频输出大小、音频输出时长等。In some embodiments, when the first call event is directed to a camera, obtaining the first call information corresponding to the first call event may include: obtaining shooting parameters corresponding to the first call event, wherein the shooting parameters may include shooting focal length, shooting duration , shooting range, etc. When the first invocation event is for a vibration motor, acquiring the first invocation information corresponding to the first invocation event may include: acquiring vibration information corresponding to the first invocation event, where the vibration information may include vibration duration, vibration frequency, vibration magnitude, and the like. When the first invocation event is directed to a speaker, acquiring the first invocation information corresponding to the first invocation event may include: acquiring audio output parameters corresponding to the first invocation event, where the audio output parameters may include audio output size, audio output duration, and the like.

步骤S120:将所述第一调用信息发送至所述第二系统,以指示所述第二系统将所述第一调用信息发送至所述共用硬件,控制所述共用硬件响应所述第一系统的调用。Step S120: Send the first call information to the second system to instruct the second system to send the first call information to the shared hardware, and control the shared hardware to respond to the first system call.

在本实施例中,由于共用硬件由第二系统控制,因此,当第一系统需要调用共用硬件时,则可以将所获得的第一调用信息发送至第二系统,以指示第二系统将第一调用信息发送至共用硬件,以控制共用硬件响应第一系统的调用。作为一种方式,在获得第一调用信息后,可以通过SPI通道将第一调用信息发送至第二系统,第二系统可以通过gpio信号将第一调用信息发送至共用硬件。In this embodiment, since the shared hardware is controlled by the second system, when the first system needs to call the shared hardware, the obtained first call information can be sent to the second system to instruct the second system to call the shared hardware. A call message is sent to the common hardware to control the common hardware to respond to the call of the first system. In one way, after obtaining the first call information, the first call information may be sent to the second system through the SPI channel, and the second system may send the first call information to the shared hardware through a gpio signal.

在一些实施方式中,当第一调用信息为第一拍摄参数时,则可以将第一拍摄参数发送至第二系统,以指示第二系统将第一拍摄参数发送至摄像头,控制摄像头进行拍摄或扫描。当第一调用信息为第一振动信息时,则可以将第一振动信息发送至第二系统,以指示第二系统将第一振动信息发送至振动马达,控制振动马达进行振动。当第一调用信息为第一音频输出参数时,则可以将第一音频输出参数发送至第二系统,以指示第二系统将第一音频输出参数发送至喇叭,控制喇叭进行音频输出。In some embodiments, when the first call information is the first shooting parameter, the first shooting parameter may be sent to the second system to instruct the second system to send the first shooting parameter to the camera, control the camera to shoot or scanning. When the first calling information is the first vibration information, the first vibration information may be sent to the second system to instruct the second system to send the first vibration information to the vibration motor to control the vibration motor to vibrate. When the first invocation information is the first audio output parameter, the first audio output parameter may be sent to the second system to instruct the second system to send the first audio output parameter to the speaker to control the speaker to output audio.

本申请一个实施例提供的共用硬件的调用方法,当电子设备的操作系统为第一系统且监听到第一系统对共用硬件的第一调用事件时,获取第一调用事件对应的第一调用信息,将第一调用信息发送至第二系统,以指示第二系统将第一调用信息发送至共用硬件,控制共用硬件响应第一系统的调用,从而可实现电子设备的双系统对硬件的共用和按需调用,降低电子设备的硬件成本以及提高用户的使用体验。In the method for invoking shared hardware provided by an embodiment of the present application, when the operating system of the electronic device is the first system and the first invocation event of the first system to the shared hardware is monitored, the first invocation information corresponding to the first invocation event is obtained. , send the first invocation information to the second system to instruct the second system to send the first invocation information to the shared hardware, and control the shared hardware to respond to the invocation of the first system, so that the dual systems of the electronic equipment can share and share the hardware. Call on demand, reduce the hardware cost of electronic equipment and improve the user experience.

请参阅图3,图3示出了本申请又一个实施例提供的共用硬件的调用方法的流程示意图。下面将针对图3所示的流程进行详细的阐述,在本实施例中,该电子设备包括第一系统、第二系统以及第一系统和第二系统的共用硬件,其中,第一系统正常运行的功耗高于第二系统正常运行的功耗,共用硬件由第二系统控制,于本实施例中,该共用硬件包括振动马达,所述共用硬件的调用方法具体可以包括以下步骤:Referring to FIG. 3 , FIG. 3 shows a schematic flowchart of a method for invoking shared hardware provided by another embodiment of the present application. The flow shown in FIG. 3 will be described in detail below. In this embodiment, the electronic device includes a first system, a second system, and the shared hardware of the first system and the second system, wherein the first system operates normally The power consumption of the second system is higher than that of the normal operation of the second system, and the shared hardware is controlled by the second system. In this embodiment, the shared hardware includes a vibration motor, and the method for invoking the shared hardware may specifically include the following steps:

步骤S210:当所述电子设备的操作系统为所述第一系统且所述第一系统接收到第一通知消息时,确定监听到所述第一系统对所述振动马达的第一调用事件。Step S210: When the operating system of the electronic device is the first system and the first system receives the first notification message, it is determined that the first calling event of the vibration motor by the first system is monitored.

在本实施例中,共用硬件为振动马达。其中,可以对电子设备当前所使用的操作系统为第一系统还是第二系统进行检测,当检测到电子设备当前所使用的操作系统为第一系统时,则可以对第一系统针对振动马达的调用进行检测监听,当监听到第一系统接收到第一通知消息时,则可以确定监听到第一系统对振动马达的第一调用事件。其中,该第一通知消息可以包括即时通讯消息、新闻推送消息、外卖推送消息、购物推送消息等,在此不做限定。In this embodiment, the shared hardware is a vibration motor. Wherein, it is possible to detect whether the operating system currently used by the electronic device is the first system or the second system, and when it is detected that the operating system currently used by the electronic device is the first system, the first system can be used for the vibration motor. The call is performed to detect and monitor, and when it is monitored that the first system receives the first notification message, it can be determined that the first call event of the first system to the vibration motor is monitored. Wherein, the first notification message may include an instant messaging message, a news push message, a takeaway push message, a shopping push message, etc., which are not limited herein.

在一些实施方式中,电子设备可以设置并存储有第一系统对应的第一预设通知消息类型,并将满足该第一预设通知消息类型的通知消息确定为第一通知消息,其中,电子设备在第一系统接收到对应的第一通知消息时,会触发振动提示。In some embodiments, the electronic device may set and store a first preset notification message type corresponding to the first system, and determine a notification message satisfying the first preset notification message type as the first notification message, wherein the electronic device When the first system receives the corresponding first notification message, the device will trigger a vibration prompt.

步骤S220:获取所述第一通知消息对应的第一振动信息。Step S220: Obtain first vibration information corresponding to the first notification message.

在一些实施方式中,在获得第一通知消息后,可以获取第一通知消息对应的第一振动信息,例如,可以获取第一通知消息对应的第一振动频率、第一振动时长、第一振动大小等,在此不做限定。In some embodiments, after obtaining the first notification message, the first vibration information corresponding to the first notification message may be obtained, for example, the first vibration frequency, the first vibration duration, the first vibration corresponding to the first notification message may be obtained Size, etc., are not limited here.

步骤S230:将所述第一振动信息发送至所述第二系统,以指示所述第二系统将所述第一振动信息发送至所述共用硬件,控制所述共用硬件响应所述第一系统的调用。Step S230: Send the first vibration information to the second system to instruct the second system to send the first vibration information to the shared hardware, and control the shared hardware to respond to the first system call.

其中,步骤S230的具体描述请参阅步骤S120,在此不再赘述。For the specific description of step S230, please refer to step S120, which will not be repeated here.

本申请又一个实施例提供的共用硬件的调用方法,当电子设备的操作系统为第一系统且第一系统接收到第一通知消息时,确定监听到第一系统对振动马达的第一调用事件,获取第一通知消息对应的第一振动信息,将第一振动信息发送至第二系统,以指示第二系统将第一振动信息发送至共用硬件,控制共用硬件响应第一系统的调用。相较于图2所示的共用硬件的调用方法,本实施例还在第一系统接收到第一通知消息时,控制振动马达响应第一系统的调用振动,提升电子设备的双系统应用效果。In the method for invoking shared hardware provided by another embodiment of the present application, when the operating system of the electronic device is the first system and the first system receives the first notification message, it is determined to monitor the first invocation event of the vibration motor by the first system , obtain the first vibration information corresponding to the first notification message, and send the first vibration information to the second system to instruct the second system to send the first vibration information to the shared hardware, and control the shared hardware to respond to the call of the first system. Compared with the calling method of shared hardware shown in FIG. 2 , this embodiment also controls the vibration motor to respond to the calling vibration of the first system when the first system receives the first notification message, thereby improving the dual-system application effect of the electronic device.

请参阅图4,图4示出了本申请再一个实施例提供的共用硬件的调用方法的流程示意图。下面将针对图4所示的流程进行详细的阐述,在本实施例中,该电子设备包括第一系统、第二系统以及第一系统和第二系统的共用硬件,其中,第一系统正常运行的功耗高于第二系统正常运行的功耗,共用硬件由第二系统控制,于本实施例中,该共用硬件包括振动马达,所述共用硬件的调用方法具体可以包括以下步骤:Please refer to FIG. 4. FIG. 4 shows a schematic flowchart of a method for invoking shared hardware provided by still another embodiment of the present application. The flow shown in FIG. 4 will be described in detail below. In this embodiment, the electronic device includes a first system, a second system, and common hardware of the first system and the second system, wherein the first system operates normally The power consumption of the second system is higher than that of the normal operation of the second system, and the shared hardware is controlled by the second system. In this embodiment, the shared hardware includes a vibration motor, and the method for invoking the shared hardware may specifically include the following steps:

步骤S310:当所述电子设备的操作系统为所述第一系统时,获取当前时间。Step S310: When the operating system of the electronic device is the first system, obtain the current time.

在本实施例中,共用硬件为振动马达。其中,可以对电子设备当前所使用的操作系统为第一系统还是第二系统进行检测,当检测到电子设备当前所使用的操作系统为第一系统时,则可以获取当前时间。作为一种方式,可以通过电子设备内置的时钟获取当前时间。In this embodiment, the shared hardware is a vibration motor. Wherein, it is possible to detect whether the operating system currently used by the electronic device is the first system or the second system, and when it is detected that the operating system currently used by the electronic device is the first system, the current time can be obtained. As a way, the current time can be obtained through a clock built into the electronic device.

步骤S320:当所述当前时间满足第一预设时间时,确定监听到所述第一系统对所述振动马达的第一调用事件,其中,所述第一预设时间为所述第一系统预设的闹钟事件的开始时间。Step S320: when the current time satisfies a first preset time, it is determined that a first call event of the vibration motor by the first system is monitored, wherein the first preset time is the first system The preset start time of the alarm event.

在一些实施方式中,电子设备可以预先设置并存储有第一预设时间,该第一预设时间用于作为电子设备的操作系统为第一系统时所获取的当前时间的判断依据,其中,该第一预设时间为第一系统预设的闹钟事件的开始时间。因此,在本实施例中,在获取电子设备的操作系统为第一系统时所获取的当前时间后,可以将电子设备的操作系统为第一系统时所获取的当前时间与第一预设时间进行比较,获得第一比较结果,其中,当该第一比较结果表征电子设备的操作系统为第一系统时所获取的当前时间满足第一预设时间时,表征触发第一系统设置的闹钟事件,则会触发振动马达振动,即,可以确定监听到第一系统对所述振动马达的第一调用事件。In some embodiments, the electronic device may preset and store a first preset time, and the first preset time is used as a basis for judging the current time obtained when the operating system of the electronic device is the first system, wherein, The first preset time is the start time of the alarm event preset by the first system. Therefore, in this embodiment, after obtaining the current time obtained when the operating system of the electronic device is the first system, the current time obtained when the operating system of the electronic device is the first system and the first preset time can be Perform a comparison to obtain a first comparison result, wherein when the first comparison result indicates that the current time obtained when the operating system of the electronic device is the first system satisfies the first preset time, it indicates that the alarm event set by the first system is triggered , the vibration motor will be triggered to vibrate, that is, it can be determined that the first calling event of the vibration motor by the first system is monitored.

步骤S330:获取所述第一系统的闹钟事件对应的第一振动信息。Step S330: Acquire first vibration information corresponding to the alarm clock event of the first system.

在本实施例中,在确定电子设备的操作系统为第一系统时所获取的当前时间满足第一预设时间后,可以获取第一系统的闹钟事件对应的第一振动信息,例如,可以获取第一系统的闹钟事件对应的第一振动频率、第一振动时长、第一振动大小等,在此不做限定。In this embodiment, after it is determined that the current time obtained when the operating system of the electronic device is the first system satisfies the first preset time, the first vibration information corresponding to the alarm event of the first system can be obtained, for example, the The first vibration frequency, the first vibration duration, the first vibration magnitude, etc. corresponding to the alarm event of the first system are not limited herein.

步骤S340:将所述第一振动信息发送至所述第二系统,以指示所述第二系统将所述第一振动信息发送至所述共用硬件,控制所述共用硬件响应所述第一系统的调用。Step S340: Send the first vibration information to the second system to instruct the second system to send the first vibration information to the shared hardware, and control the shared hardware to respond to the first system call.

其中,步骤S340的具体描述请参阅步骤S120,在此不再赘述。For the specific description of step S340, please refer to step S120, which will not be repeated here.

本申请再一个实施例提供的共用硬件的调用方法,当电子设备的操作系统为第一系统时,获取当前时间,当当前时间满足第一预设时间时,确定监听到第一系统对振动马达的第一调用事件,其中,第一预设时间为第一系统预设的闹钟事件的开始时间,获取第一系统的闹钟事件对应的第一振动信息,将第一振动信息发送至第二系统,以指示第二系统将第一振动信息发送至共用硬件,控制共用硬件响应第一系统的调用。相较于图2所示的共用硬件的调用方法,本实施例还在当前时间满足第一系统的闹钟事件的开始时间时,控制振动马达响应第一系统的调用振动,提升电子设备的双系统应用效果。In the method for invoking shared hardware provided by yet another embodiment of the present application, when the operating system of the electronic device is the first system, the current time is obtained, and when the current time meets the first preset time, it is determined that the first system's response to the vibration motor is detected. The first call event, wherein the first preset time is the start time of the alarm clock event preset by the first system, obtain the first vibration information corresponding to the alarm clock event of the first system, and send the first vibration information to the second system. , to instruct the second system to send the first vibration information to the shared hardware, and control the shared hardware to respond to the call of the first system. Compared with the calling method of the shared hardware shown in FIG. 2 , the present embodiment also controls the vibration motor to vibrate in response to the calling of the first system when the current time meets the start time of the alarm event of the first system, so as to improve the dual system of the electronic device. Apply the effect.

请参阅图5,图5示出了本申请另一个实施例提供的共用硬件的调用方法的流程示意图。下面将针对图5所示的流程进行详细的阐述,在本实施例中,该电子设备包括第一系统、第二系统以及第一系统和第二系统的共用硬件,其中,第一系统正常运行的功耗高于第二系统正常运行的功耗,共用硬件由第二系统控制,所述共用硬件的调用方法具体可以包括以下步骤:Referring to FIG. 5, FIG. 5 shows a schematic flowchart of a method for invoking shared hardware provided by another embodiment of the present application. The flow shown in FIG. 5 will be described in detail below. In this embodiment, the electronic device includes a first system, a second system, and the shared hardware of the first system and the second system, wherein the first system operates normally The power consumption of the second system is higher than the power consumption of the normal operation of the second system, the shared hardware is controlled by the second system, and the invoking method of the shared hardware may specifically include the following steps:

步骤S410:当所述电子设备的操作系统为所述第一系统且监听到所述第一系统对所述共用硬件的第一调用事件时,获取所述第一调用事件对应的第一调用信息。Step S410: When the operating system of the electronic device is the first system and the first call event of the first system to the shared hardware is monitored, obtain first call information corresponding to the first call event .

步骤S420:将所述第一调用信息发送至所述第二系统,以指示所述第二系统将所述第一调用信息发送至所述共用硬件,控制所述共用硬件响应所述第一系统的调用。Step S420: Send the first call information to the second system to instruct the second system to send the first call information to the shared hardware, and control the shared hardware to respond to the first system call.

其中,步骤S410-步骤S420的具体描述请参阅步骤S110-步骤S120,在此不再赘述。The specific description of steps S410-step S420 can refer to steps S110-step S120, which will not be repeated here.

步骤S430:当所述电子设备的操作系统为所述第二系统且监听到所述第二系统对所述共用硬件的第二调用事件时,获取所述第二调用事件对应的第二调用信息。Step S430: When the operating system of the electronic device is the second system and a second call event of the second system to the shared hardware is monitored, obtain second call information corresponding to the second call event .

在本实施例中,可以对电子设备当前所使用的操作系统为第一系统还是第二系统进行检测,其中,当检测到电子设备当前所使用的操作系统为第二系统时,则可以对第二系统针对共用硬件的调用情况进行监听,当监听到第二系统对该共用硬件的第二调用事件时,则可以获取第二调用事件对应的第二调用信息。In this embodiment, it is possible to detect whether the operating system currently used by the electronic device is the first system or the second system. When it is detected that the operating system currently used by the electronic device is the second system, the first system can be detected. The second system monitors the invocation of the shared hardware, and when the second invocation event of the shared hardware is monitored by the second system, the second invocation information corresponding to the second invocation event can be obtained.

在一些实施方式中,当共用硬件为摄像头时,则可以对第二系统对摄像头的调用进行检测,例如,当检测到第二系统触发拍照或触发扫描时,则可以确定监听到第二系统对摄像头的第二调用事件。当共用硬件为振动马达时,则可以对第二系统对振动马达的调用进行检测,例如,当检测到第二系统触发设备振动时(接收到通知消息、闹钟开始)时,则可以确定监听到第二系统对振动马达的第二调用事件。当共用硬件为喇叭时,则可以对第二系统对喇叭的调用进行检测,例如,当检测到第二系统触发音频输出(去电、来电、播放音频)时,则可以确定监听到第二系统对喇叭的第二调用事件。In some implementations, when the shared hardware is a camera, the call to the camera by the second system can be detected. For example, when it is detected that the second system triggers a photo or scan, it can be determined that the second system is listening to the camera. The second invocation event of the camera. When the shared hardware is a vibration motor, the call of the second system to the vibration motor can be detected. For example, when it is detected that the second system triggers the device to vibrate (a notification message is received, the alarm clock is started), it can be determined that the monitoring A second call event for the vibration motor by the second system. When the shared hardware is a speaker, the call of the second system to the speaker can be detected. For example, when it is detected that the second system triggers the audio output (outgoing call, incoming call, and audio playback), it can be determined that the second system is monitored. Second call event to horn.

在一些实施方式中,当第二调用事件针对摄像头时,获取第二调用事件对应的第二调用信息可以包括:获取第二调用事件对应的拍摄参数,其中,拍摄参数可以包括拍摄焦距、拍摄时长、拍摄范围等。当第二调用事件针对振动马达时,获取第二调用事件对应的第二调用信息可以包括:获取第二调用事件对应的振动信息,其中,振动信息可以包括振动时长、振动频率、振动大小等。当第二调用事件针对喇叭时,获取第二调用事件对应的第二调用信息可以包括:获取第二调用事件对应的音频输出参数,其中,音频输出参数可以音频输出大小、音频输出时长等。In some embodiments, when the second invocation event is directed to a camera, acquiring the second invocation information corresponding to the second invocation event may include: acquiring shooting parameters corresponding to the second invocation event, where the shooting parameters may include a shooting focal length and a shooting duration , shooting range, etc. When the second invocation event is directed to a vibration motor, acquiring the second invocation information corresponding to the second invocation event may include: acquiring vibration information corresponding to the second invocation event, where the vibration information may include vibration duration, vibration frequency, vibration magnitude, and the like. When the second invocation event is directed to a speaker, acquiring the second invocation information corresponding to the second invocation event may include: acquiring audio output parameters corresponding to the second invocation event, where the audio output parameters may include audio output size, audio output duration, and the like.

步骤S440:将所述第二调用信息发送至所述共用硬件,控制所述共用硬件响应所述第二系统的调用。Step S440: Send the second invocation information to the shared hardware, and control the shared hardware to respond to the invocation of the second system.

在本实施例中,由于共用硬件由第二系统控制,因此,当第二系统需要调用共用硬件时,则可以直接将所获得的第二调用信息发送至共用硬件,以控制共用硬件响应第二系统的调用。作为一种方式,在获得第二调用信息后,第二系统可以通过gpio信号将第二调用信息发送至共用硬件。In this embodiment, since the shared hardware is controlled by the second system, when the second system needs to call the shared hardware, it can directly send the obtained second invocation information to the shared hardware to control the shared hardware to respond to the second system. system call. In one way, after obtaining the second call information, the second system may send the second call information to the shared hardware through a gpio signal.

在一些实施方式中,当第二调用信息为第二拍摄参数时,则可以将第二拍摄参数发送至摄像头,控制摄像头进行拍摄或扫描。当第二调用信息为第二振动信息时,则可以将第二振动信息发送至振动马达,控制振动马达进行振动。当第二调用信息为第二音频输出参数时,则可以将第一音频输出参数发送至喇叭,控制喇叭进行音频输出。In some embodiments, when the second calling information is the second shooting parameter, the second shooting parameter can be sent to the camera, and the camera can be controlled to shoot or scan. When the second calling information is the second vibration information, the second vibration information can be sent to the vibration motor, and the vibration motor is controlled to vibrate. When the second calling information is the second audio output parameter, the first audio output parameter can be sent to the speaker to control the speaker to output audio.

本申请另一个实施例提供的共用硬件的调用方法,当电子设备的操作系统为第一系统且监听到第一系统对共用硬件的调用事件时,获取第一调用事件对应的第一调用信息,将第一调用信息发送至第二系统,以指示第二系统将第一调用信息发送至共用硬件,控制共用硬件响应第一系统的调用,当电子设备的操作系统为第二系统且监听到第二系统对共用硬件的第二调用事件时,获取第二调用事件对应的第二调用信息,将第二调用信息发送至共用硬件,控制共用硬件响应第二系统的调用。相较于图2所示的共用硬件的调用方法,本实施例还在电子设备的操作系统为第二系统且监听到第二系统对共用硬件的调用时,直接由第二系统控制共用硬件进行调用响应,降低电子设备的硬件成本以及提高用户的使用体验。In the method for invoking shared hardware provided by another embodiment of the present application, when the operating system of the electronic device is the first system and an invocation event of the shared hardware by the first system is monitored, first invocation information corresponding to the first invocation event is obtained, Send the first call information to the second system to instruct the second system to send the first call information to the common hardware, and control the common hardware to respond to the call of the first system, when the operating system of the electronic device is the second system and monitors the first system. When the two systems make a second invocation event of the shared hardware, obtain the second invocation information corresponding to the second invocation event, send the second invocation information to the shared hardware, and control the shared hardware to respond to the invocation of the second system. Compared with the method for invoking the shared hardware shown in FIG. 2 , in this embodiment, when the operating system of the electronic device is the second system and the second system monitors the invocation of the shared hardware by the second system, the second system directly controls the shared hardware to perform the operation. Invoke responses to reduce hardware costs of electronic devices and improve user experience.

请参阅图6,图6示出了本申请又再一个实施例提供的共用硬件的调用方法的流程示意图。下面将针对图6所示的流程进行详细的阐述,在本实施例中,该电子设备包括第一系统、第二系统以及第一系统和第二系统的共用硬件,其中,第一系统正常运行的功耗高于第二系统正常运行的功耗,共用硬件由第二系统控制,于本实施例中,共用硬件包括振动马达,所述共用硬件的调用方法具体可以包括以下步骤:Please refer to FIG. 6. FIG. 6 shows a schematic flowchart of a method for invoking shared hardware provided by yet another embodiment of the present application. The flow shown in FIG. 6 will be described in detail below. In this embodiment, the electronic device includes a first system, a second system, and the shared hardware of the first system and the second system, wherein the first system operates normally The power consumption of the second system is higher than that of the normal operation of the second system, and the shared hardware is controlled by the second system. In this embodiment, the shared hardware includes a vibration motor, and the invoking method of the shared hardware may specifically include the following steps:

步骤S510:当所述电子设备的操作系统为所述第一系统且监听到所述第一系统对所述共用硬件的第一调用事件时,获取所述第一调用事件对应的第一调用信息。Step S510: When the operating system of the electronic device is the first system and a first call event of the first system to the shared hardware is monitored, obtain first call information corresponding to the first call event .

步骤S520:将所述第一调用信息发送至所述第二系统,以指示所述第二系统将所述第一调用信息发送至所述共用硬件,控制所述共用硬件响应所述第一系统的调用。Step S520: Send the first call information to the second system to instruct the second system to send the first call information to the shared hardware, and control the shared hardware to respond to the first system call.

其中,步骤S510-步骤S520的具体描述请参阅步骤S110-步骤S120,在此不再赘述。The specific description of steps S510-step S520 can refer to steps S110-step S120, which will not be repeated here.

步骤S530:当所述电子设备的操作系统为所述第二系统且所述第二系统接收到第二通知消息时,确定监听到所述第二系统对所述振动马达的第二调用事件。Step S530: When the operating system of the electronic device is the second system and the second system receives the second notification message, determine to monitor the second calling event of the vibration motor by the second system.

在本实施例中,共用硬件为振动马达。其中,可以对电子设备当前所使用的操作系统为第一系统还是第二系统进行检测,当检测到电子设备当前所使用的操作系统为第二系统时,则可以对第二系统针对振动马达的调用进行检测监听,当监听到第二系统接收到第二通知消息时,则可以确定监听到第二系统对振动马达的第二调用事件。其中,该第二通知消息可以包括即时通讯消息、新闻推送消息、外卖推送消息、购物推送消息等,在此不做限定。In this embodiment, the shared hardware is a vibration motor. Wherein, it is possible to detect whether the operating system currently used by the electronic device is the first system or the second system, and when it is detected that the operating system currently used by the electronic device is the second system, the second system can be used to detect the vibration motor. The call is performed to detect and monitor, and when it is monitored that the second system receives the second notification message, it can be determined that the second call event of the vibration motor by the second system is monitored. Wherein, the second notification message may include instant messaging messages, news push messages, takeaway push messages, shopping push messages, etc., which are not limited herein.

在一些实施方式中,电子设备可以设置并存储有第二系统对应的第二预设通知消息类型,并将满足该第二预设通知消息类型的通知消息确定为第二通知消息,其中,电子设备在第二系统接收到对应的第二通知消息时,会触发振动提示。In some embodiments, the electronic device may set and store a second preset notification message type corresponding to the second system, and determine a notification message satisfying the second preset notification message type as the second notification message, wherein the electronic device When the second system receives the corresponding second notification message, the device will trigger a vibration prompt.

步骤S540:获取所述第二通知消息对应的第二振动信息。Step S540: Acquire second vibration information corresponding to the second notification message.

在一些实施方式中,在获得第二通知消息后,可以获取第二通知消息对应的第二振动信息,例如,可以获取第二通知消息对应的第二振动频率、第二振动时长、第二振动大小等,在此不做限定。In some embodiments, after the second notification message is obtained, the second vibration information corresponding to the second notification message may be obtained, for example, the second vibration frequency, the second vibration duration, the second vibration corresponding to the second notification message may be obtained Size, etc., are not limited here.

步骤S550:将所述第二振动信息发送至所述共用硬件,控制所述共用硬件响应所述第二系统的调用。Step S550: Send the second vibration information to the shared hardware, and control the shared hardware to respond to the call of the second system.

其中,步骤S550的具体描述请参阅步骤S440,在此不再赘述。For the specific description of step S550, please refer to step S440, which will not be repeated here.

本申请又再一个实施例提供的共用硬件的调用方法,当电子设备的操作系统为第一系统且监听到第一系统对共用硬件的第一调用事件时,获取第一调用事件对应的第一调用信息,将第一调用信息发送至第二系统,以指示第二系统将第一调用信息发送至共用硬件,控制共用硬件响应第一系统的调用,当电子设备的操作系统为第二系统且第二系统接收到第二通知消息时,确定监听到第二系统对振动马达的第二调用事件,获取第二通知消息对应的第二振动信息,将第二振动信息发送至共用硬件,控制共用硬件响应第二系统的调用。相较于图2所示的共用硬件的调用方法,本实施例还在第二系统接收到第二通知消息时,控制振动马达响应第二系统的调用振动,提升电子设备的双系统应用效果。In the method for invoking shared hardware provided by yet another embodiment of the present application, when the operating system of the electronic device is the first system and the first invocation event of the shared hardware by the first system is monitored, the first invocation event corresponding to the first invocation event is obtained. Call information, send the first call information to the second system to instruct the second system to send the first call information to the shared hardware, and control the shared hardware to respond to the call of the first system, when the operating system of the electronic device is the second system and When the second system receives the second notification message, it determines to monitor the second calling event of the vibration motor by the second system, obtains the second vibration information corresponding to the second notification message, sends the second vibration information to the shared hardware, and controls the shared hardware. The hardware responds to the second system call. Compared with the calling method of shared hardware shown in FIG. 2 , this embodiment also controls the vibration motor to respond to the calling vibration of the second system when the second system receives the second notification message, thereby improving the dual-system application effect of the electronic device.

请参阅图7,图7示出了本申请又另一个实施例提供的共用硬件的调用方法的流程示意图。下面将针对图7所示的流程进行详细的阐述,在本实施例中,该电子设备包括第一系统、第二系统以及第一系统和第二系统的共用硬件,其中,第一系统正常运行的功耗高于第二系统正常运行的功耗,共用硬件由第二系统控制,于本实施例中,共用硬件包括振动马达,所述共用硬件的调用方法具体可以包括以下步骤:Referring to FIG. 7 , FIG. 7 shows a schematic flowchart of a method for invoking shared hardware provided by yet another embodiment of the present application. The flow shown in FIG. 7 will be described in detail below. In this embodiment, the electronic device includes a first system, a second system, and the shared hardware of the first system and the second system, wherein the first system operates normally The power consumption of the second system is higher than that of the normal operation of the second system, and the shared hardware is controlled by the second system. In this embodiment, the shared hardware includes a vibration motor, and the invoking method of the shared hardware may specifically include the following steps:

步骤S610:当所述电子设备的操作系统为所述第一系统且监听到所述第一系统对所述共用硬件的第一调用事件时,获取所述第一调用事件对应的第一调用信息。Step S610: When the operating system of the electronic device is the first system and the first call event of the first system to the shared hardware is monitored, obtain first call information corresponding to the first call event .

步骤S620:将所述第一调用信息发送至所述第二系统,以指示所述第二系统将所述第一调用信息发送至所述共用硬件,控制所述共用硬件响应所述第一系统的调用。Step S620: Send the first call information to the second system to instruct the second system to send the first call information to the shared hardware, and control the shared hardware to respond to the first system call.

其中,步骤S610-步骤S620的具体描述请参阅步骤S110-步骤S120,在此不再赘述。Wherein, the specific description of steps S610-step S620 can refer to steps S110-step S120, and details are not repeated here.

步骤S630:当所述电子设备的操作系统为所述第二系统时,获取当前时间。Step S630: When the operating system of the electronic device is the second system, obtain the current time.

在本实施例中,共用硬件为振动马达。其中,可以对电子设备当前所使用的操作系统为第一系统还是第二系统进行检测,当检测到电子设备当前所使用的操作系统为第二系统时,则可以获取当前时间。作为一种方式,可以通过电子设备内置的时钟获取当前时间。In this embodiment, the shared hardware is a vibration motor. Wherein, whether the operating system currently used by the electronic device is the first system or the second system can be detected, and when it is detected that the operating system currently used by the electronic device is the second system, the current time can be obtained. As a way, the current time can be obtained through a clock built into the electronic device.

步骤S640:当所述当前时间满足第二预设时间时,确定监听到所述第二系统对所述振动马达的第二调用事件,其中,所述第二预设时间为所述第二系统预设的闹钟事件的开始时间。Step S640: When the current time satisfies a second preset time, it is determined that a second calling event of the vibration motor by the second system is monitored, wherein the second preset time is the second system The preset start time of the alarm event.

在一些实施方式中,电子设备可以预先设置并存储有第二预设时间,该第二预设时间用于作为电子设备的操作系统为第二系统时所获取的当前时间的判断依据,其中,该第二预设时间为第二系统预设的闹钟事件的开始时间。因此,在本实施例中,在获取电子设备的操作系统为第二系统时所获取的当前时间后,可以将电子设备的操作系统为第二系统时所获取的当前时间与第二预设时间进行比较,获得第二比较结果,其中,当该第二比较结果表征电子设备的操作系统为第二系统时所获取的当前时间满足第二预设时间时,表征触发第二系统设置的闹钟事件,则会触发振动马达振动,即,可以确定监听到第二系统对所述振动马达的第二调用事件。In some embodiments, the electronic device may preset and store a second preset time, and the second preset time is used as a basis for judging the current time obtained when the operating system of the electronic device is the second system, wherein, The second preset time is the start time of the alarm event preset by the second system. Therefore, in this embodiment, after obtaining the current time obtained when the operating system of the electronic device is the second system, the current time obtained when the operating system of the electronic device is the second system and the second preset time can be Perform a comparison to obtain a second comparison result, wherein, when the second comparison result indicates that the current time obtained when the operating system of the electronic device is the second system satisfies the second preset time, it indicates that the alarm event set by the second system is triggered , the vibration motor will be triggered to vibrate, that is, it can be determined that the second invocation event of the vibration motor by the second system is monitored.

步骤S650:获取所述第二系统的闹钟事件对应的第二振动信息。Step S650: Acquire second vibration information corresponding to the alarm clock event of the second system.

在本实施例中,在确定电子设备的操作系统为第二系统时所获取的当前时间满足第二预设时间后,可以获取第二系统的闹钟事件对应的第二振动信息,例如,可以获取第二系统的闹钟事件对应的第二振动频率、第二振动时长、第二振动大小等,在此不做限定。In this embodiment, after it is determined that the current time obtained when the operating system of the electronic device is the second system satisfies the second preset time, the second vibration information corresponding to the alarm event of the second system can be obtained, for example, the second vibration information can be obtained. The second vibration frequency, second vibration duration, second vibration magnitude, etc. corresponding to the alarm event of the second system are not limited herein.

步骤S660:将所述第二振动信息发送至所述共用硬件,控制所述共用硬件响应所述第二系统的调用。Step S660: Send the second vibration information to the shared hardware, and control the shared hardware to respond to the call of the second system.

其中,步骤S660的具体描述请参阅步骤S440,在此不再赘述。For the specific description of step S660, please refer to step S440, which will not be repeated here.

本申请又另一个实施例提供的共用硬件的调用方法,当电子设备的操作系统为第一系统且监听到第一系统对共用硬件的第一调用事件时,获取第一调用事件对应的第一调用信息,将第一调用信息发送至第二系统,以指示第二系统将第一调用信息发送至共用硬件,控制共用硬件响应第一系统的调用,当电子设备的操作系统为第二系统时,获取当前时间,当当前时间满足第二预设时间时,确定监听到第二系统对振动马达的第二调用事件,其中,第二预设时间为第二系统预设的闹钟事件的开始时间,获取第二系统的闹钟事件对应的第二振动信息,将第二振动信息发送至共用硬件,控制共用硬件响应第二系统的调用。相较于图2所示的共用硬件的调用方法,本实施例还在当前时间满足第二系统的闹钟事件的开始时间时,控制振动马达响应第二系统的调用振动,提升电子设备的双系统应用效果。In the method for invoking shared hardware provided by yet another embodiment of the present application, when the operating system of the electronic device is the first system and the first invocation event of the shared hardware by the first system is monitored, the first invocation event corresponding to the first invocation event is obtained. Call information, send the first call information to the second system to instruct the second system to send the first call information to the shared hardware, and control the shared hardware to respond to the call of the first system, when the operating system of the electronic device is the second system , obtain the current time, and when the current time satisfies the second preset time, determine to monitor the second calling event of the vibration motor by the second system, where the second preset time is the start time of the alarm event preset by the second system , obtain the second vibration information corresponding to the alarm event of the second system, send the second vibration information to the shared hardware, and control the shared hardware to respond to the call of the second system. Compared with the calling method of the shared hardware shown in FIG. 2 , the present embodiment also controls the vibration motor to vibrate in response to the calling of the second system when the current time meets the start time of the alarm event of the second system, so as to improve the dual system of the electronic device. Apply the effect.

请参阅图8,图8示出了本申请又又再一个实施例提供的共用硬件的调用方法的流程示意图。下面将针对图8所示的流程进行详细的阐述,在本实施例中,该电子设备包括第一系统、第二系统以及第一系统和第二系统的共用硬件,其中,第一系统正常运行的功耗高于第二系统正常运行的功耗,共用硬件由第二系统控制,于本实施例中,电子设备还包括触摸屏,所述共用硬件的调用方法具体可以包括以下步骤:Please refer to FIG. 8. FIG. 8 shows a schematic flowchart of a method for invoking shared hardware provided by still another embodiment of the present application. The flow shown in FIG. 8 will be described in detail below. In this embodiment, the electronic device includes a first system, a second system, and the shared hardware of the first system and the second system, wherein the first system operates normally The power consumption of the electronic device is higher than that of the normal operation of the second system, and the shared hardware is controlled by the second system. In this embodiment, the electronic device further includes a touch screen, and the method for invoking the shared hardware may specifically include the following steps:

步骤S710:当所述电子设备的操作系统为所述第一系统且监听到所述第一系统对所述共用硬件的第一调用事件时,获取所述第一调用事件对应的第一调用信息。Step S710: When the operating system of the electronic device is the first system and the first call event of the first system to the shared hardware is monitored, obtain first call information corresponding to the first call event .

步骤S720:将所述第一调用信息发送至所述第二系统,以指示所述第二系统将所述第一调用信息发送至所述共用硬件,控制所述共用硬件响应所述第一系统的调用。Step S720: Send the first call information to the second system to instruct the second system to send the first call information to the shared hardware, and control the shared hardware to respond to the first system call.

其中,步骤S710-步骤S720的具体描述请参阅步骤S110-步骤S120,在此不再赘述。The specific description of steps S710-step S720 may refer to steps S110-step S120, which will not be repeated here.

步骤S730:检测所述触摸屏的状态信息,其中,所述状态信息包括亮屏状态和息屏状态。Step S730: Detect state information of the touch screen, wherein the state information includes a screen-on state and a screen-off state.

在本实施例中,触摸屏的状态信息包括亮屏状态和息屏状态,即可以对触摸屏是处于亮屏状态还是处于息屏状态进行检测。In this embodiment, the state information of the touch screen includes a screen-on state and a screen-off state, that is, it can be detected whether the touch-screen is in a screen-on state or a screen-off state.

在一些实施方式中,可以检测获取电子设备的触摸屏的亮度,将获取的触摸屏的亮度与预设亮度进行对比,以判断该触摸屏的亮度是否大于预设亮度,具体地,电子设备可以预先设置并存储有预设亮度作为待对比亮度值,该第一预设亮度可以在电子设备出厂设置时配置完成,可以在使用时根据用户的喜好和需求进行设置,也可以为电子设备根据属性或环境自行进行调整设置,例如,可以根据电子设备的剩余电量进行预设亮度的设置,剩余电量较高时的预设亮度可以设置为大于剩余电量较低时的预设亮度等。其中,当触摸屏的亮度大于预设亮度时,则可以确定触摸屏处于亮屏状态,当触摸屏的亮度不大于预设亮度时,则可以确定触摸屏处于息屏状态。In some embodiments, the brightness of the touch screen of the electronic device can be detected and obtained, and the obtained brightness of the touch screen can be compared with the preset brightness to determine whether the brightness of the touch screen is greater than the preset brightness. Specifically, the electronic device can preset and The preset brightness is stored as the brightness value to be compared. The first preset brightness can be configured when the electronic device is factory-set, and can be set according to the user's preferences and needs during use, or can be set by the electronic device according to the properties or the environment. Adjust settings, for example, the preset brightness can be set according to the remaining power of the electronic device, and the preset brightness when the remaining power is high can be set to be greater than the preset brightness when the remaining power is low, etc. Wherein, when the brightness of the touch screen is greater than the preset brightness, it can be determined that the touch screen is in a bright screen state, and when the brightness of the touch screen is not greater than the preset brightness, it can be determined that the touch screen is in a screen off state.

步骤S740:当检测到所述状态信息从所述亮屏状态切换为所述息屏状态时,将所述电子设备的操作系统从所述第一系统切换为所述第二系统。Step S740: When it is detected that the state information is switched from the bright screen state to the closed screen state, switch the operating system of the electronic device from the first system to the second system.

在本实施例中,当检测到状态信息从亮屏状态切换为息屏状态,例如,当检测到触摸屏的亮度从大于预设亮度切换为不大于预设亮度时,则可以将电子设备的操作系统从第一系统切换为第二系统,从而使得电子设备在息屏的过程中,其操作系统可以始终处于额定功耗更小的第二系统,以降低电子设备的功耗。In this embodiment, when it is detected that the state information is switched from the bright screen state to the off screen state, for example, when it is detected that the brightness of the touch screen is switched from greater than the preset brightness to not greater than the preset brightness, the operation of the electronic device can be changed. The system is switched from the first system to the second system, so that the operating system of the electronic device can always be in the second system with lower rated power consumption during the process of turning off the screen, so as to reduce the power consumption of the electronic device.

在一些实施方式中,在将电子设备的操作系统从第一系统切换为第二系统后,可以检测电子设备的触摸屏的状态信息,当检测到触摸屏的状态信息从息屏状态切换为亮屏状态时,则可以将电子设备的操作系统从第二系统切换为第一系统。In some embodiments, after the operating system of the electronic device is switched from the first system to the second system, the state information of the touch screen of the electronic device can be detected, and when it is detected that the state information of the touch screen is switched from the closed screen state to the bright screen state When the operating system of the electronic device is switched from the second system to the first system.

本申请又又再一个实施例提供的共用硬件的调用方法,当电子设备的操作系统为第一系统且监听到第一系统对共用硬件的第一调用事件时,获取第一调用事件对应的第一调用信息,将第一调用信息发送至第二系统,以指示第二系统将第一调用信息发送至共用硬件,控制共用硬件响应第一系统的调用,检测触摸屏的状态信息,其中,状态信息包括亮屏状态和息屏状态,当检测到状态信息从亮屏状态切换为息屏状态时,将电子设备的操作系统从第一系统切换为第二系统。相较于图2所示的共用硬件的调用方法,本实施例还在电子设备的操作系统处于第一系统的过程中,检测到触摸屏的状态信息从亮屏状态切换为系统状态时,将操作系统从第一系统切换为第二系统,提升系统切换的效果以及降低电子设备的功耗。Still another embodiment of the present application provides a method for invoking shared hardware. When the operating system of the electronic device is the first system and the first invocation event of the first system to the shared hardware is monitored, the first invocation event corresponding to the first invocation event is obtained. a call information, send the first call information to the second system to instruct the second system to send the first call information to the shared hardware, control the shared hardware to respond to the call of the first system, and detect the status information of the touch screen, wherein the status information It includes a screen-on state and a screen-off state. When it is detected that the state information is switched from the screen-on state to the screen-off state, the operating system of the electronic device is switched from the first system to the second system. Compared with the calling method of the shared hardware shown in FIG. 2 , in this embodiment, when the operating system of the electronic device is in the first system, when it is detected that the state information of the touch screen is switched from the bright screen state to the system state, the operation is performed. The system is switched from the first system to the second system, which improves the effect of system switching and reduces the power consumption of the electronic device.

请参阅图9,图9示出了本申请又又再一个实施例提供的共用硬件的调用方法的流程示意图。下面将针对图9所示的流程进行详细的阐述,在本实施例中,该电子设备包括第一系统、第二系统以及第一系统和第二系统的共用硬件,其中,第一系统正常运行的功耗高于第二系统正常运行的功耗,共用硬件由第二系统控制,所述共用硬件的调用方法具体可以包括以下步骤:Please refer to FIG. 9. FIG. 9 shows a schematic flowchart of a method for invoking shared hardware provided by yet another embodiment of the present application. The flow shown in FIG. 9 will be described in detail below. In this embodiment, the electronic device includes a first system, a second system, and the common hardware of the first system and the second system, wherein the first system operates normally The power consumption of the second system is higher than the power consumption of the normal operation of the second system, the shared hardware is controlled by the second system, and the invoking method of the shared hardware may specifically include the following steps:

步骤S810:当所述电子设备的操作系统为所述第一系统且监听到所述第一系统对所述共用硬件的第一调用事件时,获取所述第一调用事件对应的第一调用信息。Step S810: When the operating system of the electronic device is the first system and the first call event of the first system to the shared hardware is monitored, obtain first call information corresponding to the first call event .

步骤S820:将所述第一调用信息发送至所述第二系统,以指示所述第二系统将所述第一调用信息发送至所述共用硬件,控制所述共用硬件响应所述第一系统的调用。Step S820: Send the first call information to the second system to instruct the second system to send the first call information to the shared hardware, and control the shared hardware to respond to the first system call.

其中,步骤S810-步骤S820的具体描述请参阅步骤S110-步骤S120,在此不再赘述。The specific description of steps S810-step S820 can refer to steps S110-step S120, and details are not repeated here.

步骤S830:获取所述电子设备的当前剩余电量。Step S830: Obtain the current remaining power of the electronic device.

在本实施例中,可以在电子设备的后台实时检测电子设备的当前剩余电量,或每隔预定时间(如5分钟)检测电子设备的当前剩余电量,也可以通过对电子设备的显示界面进行图像识别,获取电子设备的当前剩余电量,具体的当前剩余电量获取方式,在此不做限定。In this embodiment, the current remaining power of the electronic device can be detected in real time in the background of the electronic device, or the current remaining power of the electronic device can be detected every predetermined time (for example, 5 minutes), or the display interface of the electronic device can be imaged. Identify and obtain the current remaining power of the electronic device, and the specific method for obtaining the current remaining power is not limited here.

在一些实施方式中,可以根据电子设备运行的应用程序确定针对电子设备的当前剩余电量的检测频率。其中,电子设备运行视频类应用程序时的检测频率高于电子设备运行文本类应用程序时的检测频率。In some embodiments, the detection frequency for the current remaining power of the electronic device may be determined according to an application program running by the electronic device. Wherein, the detection frequency when the electronic device runs a video application is higher than the detection frequency when the electronic device runs a text application.

步骤S840:当所述当前剩余电量小于预设电量时,将所述电子设备的操作系统从所述第一系统切换为所述第二系统。Step S840: When the current remaining power is less than a preset power, switch the operating system of the electronic device from the first system to the second system.

在一些实施方式中,电子设备可以预先设置并存储有预设电量,该预设电量用于作为电子设备的当前剩余电量的判断依据。因此,在本实施例中,在获得电子设备的当前剩余电量时,可以将电子设备的操作系统从第一系统切换为第二系统,从而使得电子设备在剩余电量较低时,其操作系统可以始终处于额定功耗更小的第二系统,以降低电子设备的功耗。In some embodiments, the electronic device may be preset and stored with a preset power level, and the preset power level is used as a basis for judging the current remaining power level of the electronic device. Therefore, in this embodiment, when the current remaining power of the electronic device is obtained, the operating system of the electronic device can be switched from the first system to the second system, so that when the remaining power of the electronic device is low, its operating system can Always be in a second system with a lower power consumption rating to reduce power consumption of the electronics.

在一些实施方式中,在将电子设备的操作系统从第一系统切换为第二系统后,可以检测电子设备的当前剩余电量,当检测到触摸屏的当前剩余电量不小于预设电量或者电子设备开始充电时,则可以将电子设备的操作系统从第二系统切换为第一系统。In some embodiments, after the operating system of the electronic device is switched from the first system to the second system, the current remaining power of the electronic device can be detected. When it is detected that the current remaining power of the touch screen is not less than the preset power or the electronic device starts When charging, the operating system of the electronic device can be switched from the second system to the first system.

本申请又又再一个实施例提供的共用硬件的调用方法,当电子设备的操作系统为第一系统且监听到第一系统对共用硬件的第一调用事件时,获取第一调用事件对应的第一调用信息,将第一调用信息发送至第二系统,以指示第二系统将第一调用信息发送至共用硬件,控制共用硬件响应第一系统的调用,获取电子设备的当前剩余电量,当当前剩余电量小于预设电量时,将电子设备的操作系统从第一系统切换为第二系统。相较于图2所示的共用硬件的调用方法,本实施例还在电子设备的当前剩余电量小于预设电量时,将电子设备的操作系统从第一系统切换为第二系统,提升系统切换的效果以及降低电子设备的功耗。Still another embodiment of the present application provides a method for invoking shared hardware. When the operating system of the electronic device is the first system and the first invocation event of the first system to the shared hardware is monitored, the first invocation event corresponding to the first invocation event is obtained. a call information, send the first call information to the second system to instruct the second system to send the first call information to the shared hardware, control the shared hardware to respond to the call of the first system, and obtain the current remaining power of the electronic device. When the remaining power is less than the preset power, the operating system of the electronic device is switched from the first system to the second system. Compared with the calling method of the shared hardware shown in FIG. 2 , the present embodiment also switches the operating system of the electronic device from the first system to the second system when the current remaining power of the electronic device is less than the preset power, so as to improve the system switching. effect and reduce the power consumption of electronic equipment.

请参阅图10,图10示出了本申请实施例提供的共用硬件的调用装置的模块框图。该共用硬件的调用装置200应用于电子设备,该电子设备包括第一系统、第二系统以及第一系统和第二系统的共用硬件,其中,第一系统正常运行的功耗高于第二系统正常运行的功耗,共用硬件由所述第二系统控制。下面将针对图10所示的框图进行阐述,所述共用硬件的调用装置200包括:调用信息获取模块210和共用硬件调用模块220,其中:Referring to FIG. 10, FIG. 10 shows a block diagram of a module of an invoking apparatus for sharing hardware provided by an embodiment of the present application. The device 200 for invoking shared hardware is applied to an electronic device, the electronic device includes a first system, a second system, and shared hardware of the first system and the second system, wherein the power consumption of the first system in normal operation is higher than that of the second system Power consumption for normal operation, shared hardware is controlled by the second system. The block diagram shown in FIG. 10 will be described below. The invocation device 200 of the shared hardware includes: an invocation information acquisition module 210 and a shared hardware invocation module 220, wherein:

调用信息获取模块210,用于当所述电子设备的操作系统为所述第一系统且监听到所述第一系统对所述共用硬件的第一调用事件时,获取所述第一调用事件对应的第一调用信息。The calling information obtaining module 210 is configured to obtain the corresponding first calling event when the operating system of the electronic device is the first system and the first calling event of the first system to the shared hardware is monitored. 's first call information.

进一步地,所述共用硬件包括振动马达,所述调用信息获取模块210包括:第一通知消息接收子模块和第一振动信息获取子模块,其中:Further, the shared hardware includes a vibration motor, and the invocation information acquisition module 210 includes: a first notification message receiving sub-module and a first vibration information acquiring sub-module, wherein:

第一通知消息接收子模块,用于当所述电子设备的操作系统为所述第一系统且所述第一系统接收到第一通知消息时,确定监听到所述第一系统对所述振动马达的第一调用事件。A first notification message receiving sub-module, configured to determine that the first system has monitored the vibration of the first system when the operating system of the electronic device is the first system and the first system has received the first notification message. The first call event of the motor.

第一振动信息获取子模块,用于获取所述第一通知消息对应的第一振动信息。The first vibration information acquisition sub-module is configured to acquire the first vibration information corresponding to the first notification message.

进一步地,所述共用硬件包括振动马达,所述调用信息获取模块210包括:第一当前时间获取子模块、第一调用事件确定子模块以及第二振动信息获取子模块,其中:Further, the shared hardware includes a vibration motor, and the invocation information acquisition module 210 includes: a first current time acquisition sub-module, a first invocation event determination sub-module and a second vibration information acquisition sub-module, wherein:

第一当前时间获取子模块,用于当所述电子设备的操作系统为所述第一系统时,获取当前时间。The first current time acquisition sub-module is configured to acquire the current time when the operating system of the electronic device is the first system.

第一调用事件确定子模块,用于当所述当前时间满足第一预设时间时,确定监听到所述第一系统对所述振动马达的第一调用事件,其中,所述第一预设时间为所述第一系统预设的闹钟事件的开始时间。A first call event determination sub-module, configured to determine to listen to the first call event of the vibration motor by the first system when the current time meets a first preset time, wherein the first preset time The time is the start time of the alarm clock event preset by the first system.

第二振动信息获取子模块,用于获取所述第一系统的闹钟事件对应的第一振动信息。The second vibration information acquisition sub-module is configured to acquire the first vibration information corresponding to the alarm clock event of the first system.

进一步地,所述共用硬件的调用装置200还包括:第二调用事件获取模块和共用硬件调用控制模块,其中:Further, the invocation device 200 of the shared hardware further includes: a second invocation event acquisition module and a shared hardware invocation control module, wherein:

第二调用事件获取模块,用于当所述电子设备的操作系统为所述第二系统且监听到所述第二系统对所述共用硬件的第二调用事件时,获取所述第二调用事件对应的第二调用信息。A second invocation event acquiring module, configured to acquire the second invocation event when the operating system of the electronic device is the second system and the second invocation event of the shared hardware by the second system is monitored Corresponding second call information.

进一步地,所述共用硬件包括振动马达,所述第二调用事件获取模块包括:第二通知消息接收子模块和第三振动信息获取子模块,其中:Further, the shared hardware includes a vibration motor, and the second invocation event acquisition module includes: a second notification message receiving sub-module and a third vibration information acquiring sub-module, wherein:

第二通知消息接收子模块,用于当所述电子设备的操作系统为所述第二系统且所述第二系统接收到第二通知消息时,确定监听到所述第二系统对所述振动马达的第二调用事件。A second notification message receiving sub-module, configured to determine that when the operating system of the electronic device is the second system and the second system receives the second notification message, the second notification message is monitored for the vibration of the second system. The second call event for the motor.

第三振动信息获取子模块,用于获取所述第二通知消息对应的第二振动信息。The third vibration information acquisition sub-module is configured to acquire the second vibration information corresponding to the second notification message.

进一步地,所述共用硬件包括振动马达,所述第二调用事件获取模块包括:第二当前时间获取子模块、第二调用事件确定子模块以及第四振动信息获取子模块,其中:Further, the shared hardware includes a vibration motor, and the second invocation event acquisition module includes: a second current time acquisition sub-module, a second invocation event determination sub-module and a fourth vibration information acquisition sub-module, wherein:

第二当前时间获取子模块,用于当所述电子设备的操作系统为所述第二系统时,获取当前时间。The second current time acquisition sub-module is configured to acquire the current time when the operating system of the electronic device is the second system.

第二调用事件确定子模块,用于当所述当前时间满足第二预设时间时,确定监听到所述第二系统对所述振动马达的第二调用事件,其中,所述第二预设时间为所述第二系统预设的闹钟事件的开始时间。The second call event determination sub-module is configured to determine to monitor the second call event of the vibration motor by the second system when the current time meets a second preset time, wherein the second preset time The time is the start time of the alarm clock event preset by the second system.

第四振动信息获取子模块,用于获取所述第二系统的闹钟事件对应的第二振动信息。The fourth vibration information acquisition sub-module is configured to acquire second vibration information corresponding to the alarm clock event of the second system.

共用硬件调用控制模块,用于将所述第二调用信息发送至所述共用硬件,控制所述共用硬件响应所述第二系统的调用。The shared hardware invocation control module is configured to send the second invocation information to the shared hardware, and control the shared hardware to respond to the invocation of the second system.

共用硬件调用模块220,用于将所述第一调用信息发送至所述第二系统,以指示所述第二系统将所述第一调用信息发送至所述共用硬件,控制所述共用硬件响应所述第一系统的调用。The shared hardware invocation module 220 is configured to send the first invocation information to the second system to instruct the second system to send the first invocation information to the shared hardware, and control the shared hardware to respond the first system call.

进一步地,所述电子设备还包括触摸屏,所述共用硬件的调用装置200还包括:状态信息检测模块和第一系统切换模块,其中:Further, the electronic device further includes a touch screen, and the invoking device 200 for sharing hardware further includes: a state information detection module and a first system switching module, wherein:

状态信息检测模块,用于检测所述触摸屏的状态信息,其中,所述状态信息包括亮屏状态和息屏状态。A state information detection module, configured to detect state information of the touch screen, wherein the state information includes a screen-on state and a screen-off state.

第一系统切换模块,用于当检测到所述状态信息从所述亮屏状态切换为所述息屏状态时,将所述电子设备的操作系统从所述第一系统切换为所述第二系统。a first system switching module, configured to switch the operating system of the electronic device from the first system to the second system when it is detected that the state information is switched from the bright screen state to the off screen state system.

进一步地,所述共用硬件的调用装置200还包括:剩余电量获取模块和第二系统切换模块,其中:Further, the invoking device 200 for sharing hardware further includes: a remaining power acquisition module and a second system switching module, wherein:

剩余电量获取模块,用于获取所述电子设备的当前剩余电量。The remaining power obtaining module is used to obtain the current remaining power of the electronic device.

第二系统切换模块,用于当所述当前剩余电量小于预设电量时,将所述电子设备的操作系统从所述第一系统切换为所述第二系统。A second system switching module, configured to switch the operating system of the electronic device from the first system to the second system when the current remaining power is less than a preset power.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the above-described devices and modules, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.

在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。In several embodiments provided in this application, the coupling between the modules may be electrical, mechanical or other forms of coupling.

另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically alone, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules.

请参阅图11,其示出了本申请实施例提供的一种电子设备100的结构框图。该电子设备100可以是智能手机、平板电脑、电子书等能够运行应用程序的电子设备。本申请中的电子设备100可以包括一个或多个如下部件:处理器110、存储器120以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器120中并被配置为由一个或多个处理器110执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。Please refer to FIG. 11 , which shows a structural block diagram of an electronic device 100 provided by an embodiment of the present application. The electronic device 100 may be an electronic device capable of running an application program, such as a smart phone, a tablet computer, an electronic book, or the like. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more application programs, wherein the one or more application programs may be stored in the memory 120 and configured to be executed by a The processor or processors 110 execute one or more programs configured to execute the method described in the foregoing method embodiments.

其中,处理器110可以包括一个或者多个处理核。处理器110利用各种接口和线路连接整个电子设备100内的各个部分,通过运行或执行存储在存储器120内的指令、程序、代码集或指令集,以及调用存储在存储器120内的数据,执行电子设备100的各种功能和处理数据。可选地,处理器110可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(ProgrammableLogic Array,PLA)中的至少一种硬件形式来实现。处理器110可集成中央处理器(CentralProcessing Unit,CPU)、图形处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责待显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器110中,单独通过一块通信芯片进行实现。The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes by running or executing the instructions, programs, code sets or instruction sets stored in the memory 120, and calling the data stored in the memory 120. Various functions of the electronic device 100 and processing data. Optionally, the processor 110 may employ at least one of a digital signal processing (Digital Signal Processing, DSP), a Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and a Programmable Logic Array (Programmable Logic Array, PLA). implemented in hardware. The processor 110 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a modem, and the like. Among them, the CPU mainly handles the operating system, user interface, and application programs; the GPU is used to render and draw the content to be displayed; the modem is used to handle wireless communication. It can be understood that, the above-mentioned modem may also not be integrated into the processor 110, and is implemented by a communication chip alone.

存储器120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器120可用于存储指令、程序、代码、代码集或指令集。存储器120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储电子设备100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The memory 120 may include random access memory (Random Access Memory, RAM), or may include read-only memory (Read-Only Memory). Memory 120 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the following method embodiments, and the like. The storage data area may also store data (such as phone book, audio and video data, chat record data) created by the electronic device 100 during use.

请参阅图12,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质300中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 12 , which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. The computer-readable medium 300 stores program codes, and the program codes can be invoked by the processor to execute the methods described in the above method embodiments.

计算机可读存储介质300可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质300包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质300具有执行上述方法中的任何方法步骤的程序代码310的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码310可以例如以适当形式进行压缩。The computer-readable storage medium 300 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 300 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 300 has storage space for program code 310 for performing any of the method steps in the above-described methods. These program codes can be read from or written to one or more computer program products. The program code 310 may be compressed, for example, in a suitable form.

综上所述,本申请实施例提供的共用硬件的调用方法、装置、电子设备以及存储介质,应用于电子设备,该电子设备包括第一系统、第二系统以及第一系统和第二系统的共用硬件,其中,第一系统正常运行的功耗高于第二系统正常运行的功耗,共用硬件由第二系统控制。当电子设备的操作系统为第一系统且监听到第一系统对共用硬件的第一调用事件时,获取第一调用事件对应的第一调用信息,将第一调用信息发送至第二系统,以指示第二系统将第一调用信息发送至共用硬件,控制共用硬件响应第一系统的调用,从而可实现电子设备的双系统对硬件的共用和按需调用,降低电子设备的硬件成本以及提高用户的使用体验。To sum up, the method, device, electronic device, and storage medium for invoking shared hardware provided by the embodiments of the present application are applied to electronic devices, and the electronic devices include a first system, a second system, and a combination of the first system and the second system. Shared hardware, wherein the power consumption of the first system in normal operation is higher than that of the second system in normal operation, and the shared hardware is controlled by the second system. When the operating system of the electronic device is the first system and the first call event of the first system to the shared hardware is monitored, the first call information corresponding to the first call event is obtained, and the first call information is sent to the second system to Instruct the second system to send the first call information to the shared hardware, and control the shared hardware to respond to the call of the first system, so that the dual systems of the electronic equipment can share and call the hardware on demand, reduce the hardware cost of the electronic equipment and improve the user experience. user experience.

最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or some technical features thereof are equivalently replaced; and these modifications or replacements do not drive the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (11)

1.一种共用硬件的调用方法,其特征在于,应用于电子设备,所述电子设备包括第一系统、第二系统以及所述第一系统和所述第二系统的共用硬件,其中,所述第一系统正常运行的功耗高于所述第二系统正常运行的功耗,所述共用硬件由所述第二系统控制,所述方法包括:1. A method for invoking shared hardware, characterized in that it is applied to an electronic device, and the electronic device includes a first system, a second system, and the shared hardware of the first system and the second system, wherein all the The power consumption of the normal operation of the first system is higher than the power consumption of the normal operation of the second system, the shared hardware is controlled by the second system, and the method includes: 当所述电子设备的操作系统为所述第一系统且监听到所述第一系统对所述共用硬件的第一调用事件时,获取所述第一调用事件对应的第一调用信息;When the operating system of the electronic device is the first system and a first call event of the first system to the shared hardware is monitored, acquiring first call information corresponding to the first call event; 将所述第一调用信息发送至所述第二系统,以指示所述第二系统将所述第一调用信息发送至所述共用硬件,控制所述共用硬件响应所述第一系统的调用。Send the first call information to the second system to instruct the second system to send the first call information to the common hardware, and control the common hardware to respond to the call of the first system. 2.根据权利要求1所述的方法,其特征在于,所述共用硬件包括振动马达,所述当所述电子设备的操作系统为所述第一系统且监听到所述第一系统对所述共用硬件的第一调用事件时,获取所述第一调用事件对应的第一调用信息,包括:2 . The method according to claim 1 , wherein the shared hardware comprises a vibration motor, and the electronic device operates when the operating system of the electronic device is the first system and monitors the first system’s response to the first system. 3 . When sharing the first call event of the hardware, acquiring the first call information corresponding to the first call event, including: 当所述电子设备的操作系统为所述第一系统且所述第一系统接收到第一通知消息时,确定监听到所述第一系统对所述振动马达的第一调用事件;When the operating system of the electronic device is the first system and the first system receives the first notification message, determining that the first calling event of the vibration motor by the first system is monitored; 获取所述第一通知消息对应的第一振动信息。Acquire first vibration information corresponding to the first notification message. 3.根据权利要求1所述的方法,其特征在于,所述共用硬件包括振动马达,所述当所述电子设备的操作系统为所述第一系统且监听到所述第一系统对所述共用硬件的第一调用事件时,获取所述第一调用事件对应的第一调用信息,包括:3 . The method according to claim 1 , wherein the shared hardware comprises a vibration motor, and when the operating system of the electronic device is the first system and the first system is monitored for the When sharing the first call event of the hardware, acquiring the first call information corresponding to the first call event, including: 当所述电子设备的操作系统为所述第一系统时,获取当前时间;When the operating system of the electronic device is the first system, acquiring the current time; 当所述当前时间满足第一预设时间时,确定监听到所述第一系统对所述振动马达的第一调用事件,其中,所述第一预设时间为所述第一系统预设的闹钟事件的开始时间;When the current time meets a first preset time, it is determined that a first call event of the vibration motor by the first system is monitored, wherein the first preset time is a preset time of the first system the start time of the alarm event; 获取所述第一系统的闹钟事件对应的第一振动信息。Obtain the first vibration information corresponding to the alarm event of the first system. 4.根据权利要求1所述的方法,其特征在于,所述方法还包括:4. The method according to claim 1, wherein the method further comprises: 当所述电子设备的操作系统为所述第二系统且监听到所述第二系统对所述共用硬件的第二调用事件时,获取所述第二调用事件对应的第二调用信息;When the operating system of the electronic device is the second system and a second call event of the second system to the shared hardware is monitored, acquiring second call information corresponding to the second call event; 将所述第二调用信息发送至所述共用硬件,控制所述共用硬件响应所述第二系统的调用。Sending the second invocation information to the common hardware, and controlling the common hardware to respond to the invocation of the second system. 5.根据权利要求4所述的方法,其特征在于,所述共用硬件包括振动马达,所述当所述电子设备的操作系统为所述第二系统且监听到所述第二系统对所述共用硬件的第二调用事件时,获取所述第二调用事件对应的第二调用信息,包括:5 . The method according to claim 4 , wherein the shared hardware comprises a vibration motor, and when the operating system of the electronic device is the second system and the second system is monitored for the When sharing a second call event of hardware, acquiring second call information corresponding to the second call event, including: 当所述电子设备的操作系统为所述第二系统且所述第二系统接收到第二通知消息时,确定监听到所述第二系统对所述振动马达的第二调用事件;When the operating system of the electronic device is the second system and the second system receives the second notification message, determine to monitor the second calling event of the vibration motor by the second system; 获取所述第二通知消息对应的第二振动信息。Acquire second vibration information corresponding to the second notification message. 6.根据权利要求4所述的方法,其特征在于,所述共用硬件包括振动马达,所述当所述电子设备的操作系统为所述第二系统且监听到所述第二系统对所述共用硬件的第二调用事件时,获取所述第二调用事件对应的第二调用信息,包括:6 . The method according to claim 4 , wherein the shared hardware comprises a vibration motor, and when the operating system of the electronic device is the second system and the second system is monitored for the When sharing a second call event of hardware, acquiring second call information corresponding to the second call event, including: 当所述电子设备的操作系统为所述第二系统时,获取当前时间;When the operating system of the electronic device is the second system, acquiring the current time; 当所述当前时间满足第二预设时间时,确定监听到所述第二系统对所述振动马达的第二调用事件,其中,所述第二预设时间为所述第二系统预设的闹钟事件的开始时间;When the current time meets a second preset time, it is determined that a second calling event of the vibration motor by the second system is monitored, wherein the second preset time is preset by the second system the start time of the alarm event; 获取所述第二系统的闹钟事件对应的第二振动信息。Acquire second vibration information corresponding to an alarm clock event of the second system. 7.根据权利要求1-6任一项所述的方法,其特征在于,所述电子设备还包括触摸屏,所述将所述第一调用信息发送至所述第二系统,以指示所述第二系统将所述第一调用信息发送至所述共用硬件,控制所述共用硬件响应所述第一系统的调用之后,还包括:7. The method according to any one of claims 1-6, wherein the electronic device further comprises a touch screen, and the first call information is sent to the second system to indicate the first call information to the second system. After the second system sends the first invocation information to the shared hardware, and controls the shared hardware to respond to the invocation of the first system, the method further includes: 检测所述触摸屏的状态信息,其中,所述状态信息包括亮屏状态和息屏状态;Detecting state information of the touch screen, wherein the state information includes a screen-on state and a screen-off state; 当检测到所述状态信息从所述亮屏状态切换为所述息屏状态时,将所述电子设备的操作系统从所述第一系统切换为所述第二系统。When it is detected that the state information is switched from the screen-on state to the screen-off state, the operating system of the electronic device is switched from the first system to the second system. 8.根据权利要求1-6任一项所述的方法,其特征在于,所述将所述第一调用信息发送至所述第二系统,以指示所述第二系统将所述第一调用信息发送至所述共用硬件,控制所述共用硬件响应所述第一系统的调用之后,还包括:8. The method according to any one of claims 1-6, wherein the sending the first call information to the second system instructs the second system to call the first call The information is sent to the shared hardware, and after controlling the shared hardware to respond to the invocation of the first system, the method further includes: 获取所述电子设备的当前剩余电量;obtain the current remaining power of the electronic device; 当所述当前剩余电量小于预设电量时,将所述电子设备的操作系统从所述第一系统切换为所述第二系统。When the current remaining power is less than a preset power, the operating system of the electronic device is switched from the first system to the second system. 9.一种共用硬件的调用装置,其特征在于,应用于电子设备,所述电子设备包括第一系统、第二系统以及所述第一系统和所述第二系统的共用硬件,其中,所述第一系统正常运行的功耗高于所述第二系统正常运行的功耗,所述共用硬件由所述第二系统控制,所述装置包括:9. A device for invoking shared hardware, characterized in that it is applied to an electronic device, the electronic device comprising a first system, a second system, and the shared hardware of the first system and the second system, wherein all the The power consumption of the normal operation of the first system is higher than the power consumption of the normal operation of the second system, the shared hardware is controlled by the second system, and the device includes: 调用信息获取模块,用于当所述电子设备的操作系统为所述第一系统且监听到所述第一系统对所述共用硬件的第一调用事件时,获取所述第一调用事件对应的第一调用信息;A call information acquisition module, configured to acquire the corresponding information of the first call event when the operating system of the electronic device is the first system and the first call event of the first system to the shared hardware is monitored. first call information; 共用硬件调用模块,用于将所述第一调用信息发送至所述第二系统,以指示所述第二系统将所述第一调用信息发送至所述共用硬件,控制所述共用硬件响应所述第一系统的调用。A shared hardware invocation module, configured to send the first invocation information to the second system to instruct the second system to send the first invocation information to the shared hardware, and to control the shared hardware to respond to any Describe the call of the first system. 10.一种电子设备,其特征在于,包括存储器和处理器,所述存储器耦接到所述处理器,所述存储器存储指令,当所述指令由所述处理器执行时所述处理器执行如权利要求1-8任一项所述的方法。10. An electronic device comprising a memory coupled to the processor and a processor, the memory storing instructions that are executed by the processor when the instructions are executed by the processor The method of any one of claims 1-8. 11.一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-8任一项所述的方法。11. A computer-readable storage medium, wherein a program code is stored in the computer-readable storage medium, and the program code can be invoked by a processor to execute any one of claims 1-8 Methods.
CN202110272597.5A 2021-03-12 2021-03-12 Method and device for sharing hardware call, electronic equipment and storage medium Pending CN115080125A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110272597.5A CN115080125A (en) 2021-03-12 2021-03-12 Method and device for sharing hardware call, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110272597.5A CN115080125A (en) 2021-03-12 2021-03-12 Method and device for sharing hardware call, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115080125A true CN115080125A (en) 2022-09-20

Family

ID=83240447

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110272597.5A Pending CN115080125A (en) 2021-03-12 2021-03-12 Method and device for sharing hardware call, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115080125A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101382922A (en) * 2007-09-05 2009-03-11 宏达国际电子股份有限公司 Mobile device with dual operating systems and method for sharing hardware device by mobile device
CN101685338A (en) * 2008-09-27 2010-03-31 联想(北京)有限公司 Method of saving system resources of notebook computer and notebook computer
CN102841814A (en) * 2012-07-02 2012-12-26 北京联时空网络通信设备有限公司 Method, device and system for shared control of hardware resources
CN103092305A (en) * 2011-11-01 2013-05-08 联想(北京)有限公司 Share device switching control method and portable terminal
CN104158950A (en) * 2013-12-30 2014-11-19 重庆国虹科技发展有限公司 Smart phone provided with smart system and power saving system, and switching method
CN104298546A (en) * 2014-08-25 2015-01-21 宇龙计算机通信科技(深圳)有限公司 Sharing method for hardware communication device and terminal
CN104424028A (en) * 2013-08-26 2015-03-18 联想(北京)有限公司 Terminal device and switching method thereof
CN104516747A (en) * 2013-09-27 2015-04-15 联想(北京)有限公司 System switching method and electronic device
CN106681817A (en) * 2016-12-27 2017-05-17 宇龙计算机通信科技(深圳)有限公司 Terminal control method and terminal
CN206584343U (en) * 2017-03-16 2017-10-24 上海信颐信息技术有限公司 Dual system key mouse shares all-in-one
CN109032326A (en) * 2018-07-20 2018-12-18 重庆宝力优特科技有限公司 A kind of tw o system control method and double screen equipment
CN111158982A (en) * 2019-12-26 2020-05-15 联想(北京)有限公司 Electronic device, first operating system, data processing method, and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101382922A (en) * 2007-09-05 2009-03-11 宏达国际电子股份有限公司 Mobile device with dual operating systems and method for sharing hardware device by mobile device
CN101685338A (en) * 2008-09-27 2010-03-31 联想(北京)有限公司 Method of saving system resources of notebook computer and notebook computer
CN103092305A (en) * 2011-11-01 2013-05-08 联想(北京)有限公司 Share device switching control method and portable terminal
CN102841814A (en) * 2012-07-02 2012-12-26 北京联时空网络通信设备有限公司 Method, device and system for shared control of hardware resources
CN104424028A (en) * 2013-08-26 2015-03-18 联想(北京)有限公司 Terminal device and switching method thereof
CN104516747A (en) * 2013-09-27 2015-04-15 联想(北京)有限公司 System switching method and electronic device
CN104158950A (en) * 2013-12-30 2014-11-19 重庆国虹科技发展有限公司 Smart phone provided with smart system and power saving system, and switching method
CN104298546A (en) * 2014-08-25 2015-01-21 宇龙计算机通信科技(深圳)有限公司 Sharing method for hardware communication device and terminal
CN106681817A (en) * 2016-12-27 2017-05-17 宇龙计算机通信科技(深圳)有限公司 Terminal control method and terminal
CN206584343U (en) * 2017-03-16 2017-10-24 上海信颐信息技术有限公司 Dual system key mouse shares all-in-one
CN109032326A (en) * 2018-07-20 2018-12-18 重庆宝力优特科技有限公司 A kind of tw o system control method and double screen equipment
CN111158982A (en) * 2019-12-26 2020-05-15 联想(北京)有限公司 Electronic device, first operating system, data processing method, and storage medium

Similar Documents

Publication Publication Date Title
CN108647089B (en) Resource configuration method, device, terminal and storage medium
JP6877808B2 (en) Methods, devices, and systems for processing video stream data
CN108184164B (en) Audio playing method, smart television and computer readable storage medium
CN110876180B (en) Power Consumption Processing Method, Device, Electronic Device, and Computer-Readable Medium
WO2014201863A1 (en) Volume adjusting method, volume adjusting apparatus and electronic device using the same
CN106658064B (en) Virtual gift display method and device
CN110784858A (en) Bluetooth device control method and device, electronic device and storage medium
CN106445609A (en) Automatic updating method of application program and mobile terminal
WO2019076250A1 (en) Push message management method and related products
CN110248347B (en) Call abnormality detection method, device, device and storage medium
CN106101764A (en) A kind of methods, devices and systems showing video data
CN113783994B (en) Display method, device, electronic device and storage medium for prompt information
US20190050195A1 (en) Output provision based on gaze detection
WO2023142389A1 (en) Screen mirroring method and apparatus, and electronic device and storage medium
CN105516783A (en) A method for controlling playback progress of multimedia content and user terminal
WO2024103926A1 (en) Voice control methods and apparatuses, storage medium, and electronic device
CN109495769B (en) Video communication method, terminal, smart television, server and storage medium
US20140362166A1 (en) Incoming call display method, electronic device, and incoming call display system
CN115080126A (en) Switching method and device of shared hardware, electronic equipment and storage medium
CN112181344A (en) Device calling method, apparatus, interactive system, electronic device and storage medium
CN115080125A (en) Method and device for sharing hardware call, electronic equipment and storage medium
CN108494907A (en) Mobile terminal screen control method and device, mobile terminal and storage medium
JP2020174375A (en) Communication system, communication device, and program
CN111263008A (en) Incoming call reminding method and device, storage medium and mobile terminal
WO2022252808A1 (en) Communication control method, apparatus, and system, electronic device, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination