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
calling
shared hardware
event
electronic device
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 and device for sharing hardware call, electronic equipment and storage medium
Technical Field
The present application relates to the field of electronic device technologies, and in particular, to a method and an apparatus for sharing hardware call, an electronic device, and a storage medium.
Background
The dual system means that two different operating systems can be installed on the same electronic device in order to meet different operating requirements or solve software compatibility problems. Two operating systems of the electronic device need to cooperate with hardware to execute respective corresponding functions, and since the volume and the weight of the electronic device are limited, the number of the hardware installed on the electronic device is also limited, and how to call and distribute the hardware between the two operating systems has certain difficulty.
Disclosure of Invention
In view of the foregoing problems, the present application provides a method, an apparatus, an electronic device, and a storage medium for sharing a hardware call to solve the foregoing problems.
In a first aspect, an embodiment of the present application provides a method for calling 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, where power consumption of normal operation of the first system is higher than power consumption of normal operation of the second system, and the shared hardware is controlled by the second system, and the method includes: when the operating system of the electronic equipment is the first system and a first calling event of the first system to the shared hardware is monitored, acquiring first calling information corresponding to the first calling event; and sending the first calling information to the second system to instruct the second system to send the first calling information to the shared hardware, and controlling the shared hardware to respond to the calling of the first system.
In a second aspect, an embodiment of the present application provides an apparatus for calling 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, where power consumption of normal operation of the first system is higher than power consumption of normal operation of the second system, and the shared hardware is controlled by the second system, and the apparatus includes: the calling information acquisition module is used for acquiring first calling information corresponding to a first calling event when an operating system of the electronic equipment is the first system and the first calling event of the first system to the shared hardware is monitored; and the shared hardware calling module is used for sending the first calling information to the 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.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, the memory being coupled to the processor, the memory storing instructions, and the processor performing the above method when the instructions are executed by the processor.
In a fourth aspect, the present application provides a computer-readable storage medium, in which a program code is stored, and the program code can be called by a processor to execute the above method.
The method and the device for calling the shared hardware, the electronic device and the storage medium are applied to the electronic device, the electronic device comprises a first system, a second system and the shared hardware of the first system and the second system, wherein the power consumption of normal operation of the first system is higher than that of normal operation of the second system, and the shared hardware is controlled by the second system. 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 indicate the second system to send the first calling information to the shared hardware, and the shared hardware is controlled to respond to the calling of the first system, so that the sharing and calling of the dual systems of the electronic equipment to the hardware as required can be realized, the hardware cost of the electronic equipment is reduced, and the use experience of a user is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a diagram illustrating an application environment that may be used for a common hardware calling method provided by an embodiment of the present application;
FIG. 2 is a flow diagram illustrating a method for invoking shared hardware according to an embodiment of the present application;
FIG. 3 is a flow chart illustrating a method for invoking shared hardware according to another embodiment of the present application;
FIG. 4 is a flowchart illustrating a method for invoking shared hardware according to yet another embodiment of the present application;
FIG. 5 is a flow chart illustrating a method for invoking shared hardware according to another embodiment of the present application;
FIG. 6 is a flowchart illustrating a method for invoking shared hardware according to yet another embodiment of the present application;
FIG. 7 is a flowchart illustrating a method for invoking shared hardware according to yet another embodiment of the present application;
FIG. 8 is a flowchart illustrating a method for invoking shared hardware according to yet another embodiment of the present application;
FIG. 9 is a flow diagram illustrating a method for shared hardware invocation provided by yet another embodiment of the present application;
FIG. 10 is a block diagram illustrating a calling device sharing hardware according to an embodiment of the present application;
FIG. 11 is a block diagram of an electronic device for performing a method for sharing hardware calls according to an embodiment of the present application;
fig. 12 illustrates a storage unit for storing or carrying program code implementing a method for sharing hardware calls according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
The dual system means that two different operating systems can be installed on the same electronic device in order to meet different operating requirements or solve software compatibility problems. Two operating systems of the electronic device need to cooperate with hardware to execute respective corresponding functions, and because the volume and the weight of the electronic device are limited, the number of the hardware devices installed on the electronic device is also limited, and how to call and distribute the hardware between the two operating systems has certain difficulty.
In view of the above problems, the inventor finds and provides a method, an apparatus, an electronic device, and a storage medium for calling shared hardware, which are provided in the embodiments of the present application, so that a dual system of the electronic device can share hardware and call the hardware as needed, the hardware cost of the electronic device is reduced, and the user experience is improved. The specific calling method of the shared hardware is described in detail in the following embodiments.
The following description will be made with respect to an application environment of a calling method that can be used for common hardware provided in 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. Operating systems rely on processors to perform operations.
In some embodiments, the first system and the second system respectively operate in different processors, for example, referring to fig. 1, the electronic device 100 includes a processor and common hardware 130, wherein the processor includes a first processor 111 and a second processor 112, the first processor 111 is connected to the second processor 112, and the second processor 112 is connected to the common hardware 130, that is, the second processor 112 is connected to the first processor 111 and the common hardware 130 respectively. The first processor 111 is configured to run a first system, the second processor 112 is configured to run a second system, the shared hardware 130 is mounted on the second processor 112, and the second system running on the second processor 112 can normally call the shared hardware 130 to control the shared 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 and the second system can execute a certain operation by calling the shared hardware 130. The common hardware 130 may include, but is not limited to: vibrating motor, screen, loudspeaker, camera.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a method for calling shared hardware according to an embodiment of the present application. The calling method of the shared hardware is used for realizing the sharing and calling on demand of the hardware by the double systems of the electronic equipment, reducing the hardware cost of the electronic equipment and improving the use experience of users. In a specific embodiment, the calling method of the shared hardware is applied to the calling apparatus 200 of the shared hardware and the electronic device 100 (fig. 11) configured with the calling apparatus 200 of the shared hardware as shown in fig. 10. The following will describe a specific process of this embodiment by taking an electronic device as an example, and 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), and the like, which is not limited herein. In this embodiment, the electronic device includes a first system, a second system, and shared hardware of the first system and the second system, where power consumption of normal operation of the first system is higher than power consumption of normal operation of the second system, and the shared hardware is controlled by the second system, which will be described in detail with reference to a flow shown in fig. 2, and a method for calling the shared hardware may specifically include the following steps:
step S110: when the operating system of the electronic equipment is the first system and a first calling event of the first system to the shared hardware is monitored, first calling information corresponding to the first calling event is obtained.
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 operation environment, the power consumption of the electronic device caused by the operation of the first system is higher than the power consumption of the electronic device caused by the operation of the second system. In addition, in the embodiment, the shared hardware may be always mounted on the second processor running the second system, that is, the shared hardware may be always controlled by the second system with lower power consumption in normal running, so as to reduce the power consumption of the electronic device. The shared hardware may include a screen, a vibration motor, a speaker, a camera, and the like, and the screen, the vibration motor, the speaker, the camera, and the like may be always 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. When the operating system currently used by the electronic device is the first system, the second system may be in a sleep state, and when the operating system currently used by the electronic device is the second system, the first system may be in the sleep state or in a shutdown state, which is not limited herein.
In this embodiment, whether the operating system currently used by the electronic device is the first system or the second system may be detected, where when it is detected that the operating system currently used by the electronic device is the first system, a call condition of the first system to the shared hardware may be monitored, and when a first call event of the first system to the shared hardware is monitored, first call information corresponding to the first call event may be obtained.
As one mode, the electronic device may preset a state value corresponding to the operating system used, for example, the electronic device may preset a first state value when the operating system is used as a first system, and preset a second state when the operating system is used as a second system. Then, a state value of the electronic device may be detected, where when the electronic device is detected to be in the first state value, the operating system of the electronic device may be determined to be the first system, and when the electronic device is detected to be in the second state value, the operating system of the electronic device may be determined to be the second system. As another way, the system desktop of the electronic device may be detected, and when it is detected that the system desktop of the electronic device is dominated by the first system (corresponds to the first system), the operating system of the electronic device may be determined to be the first system, and when it is detected that the system desktop of the electronic device is dominated by the second system (corresponds to the second system), the operating system of the electronic device may be determined to be the second system. Of course, the embodiment may also include other ways to detect whether the operating system of the electronic device is the first system or the second system, which are not described herein again.
In some embodiments, when the shared hardware is a camera, then the call of the first system to the camera may be detected, for example, when it is detected that the first system triggers photographing or triggers scanning, then it may be determined that the first call event of the first system to the camera is monitored. When the shared hardware is a vibration motor, the first system's invocation of the vibration motor may be detected, for example, when the first system is detected to trigger the device to vibrate (a notification message is received, an alarm clock is started), it may be determined that a first invocation event of the vibration motor by the first system is monitored. When the shared hardware is a loudspeaker, the calling of the loudspeaker by the first system can be detected, for example, when the first system is detected to trigger audio output (outgoing call, incoming call, playing audio), it can be determined that the first calling event of the loudspeaker by the first system is monitored.
In some embodiments, when the first invocation event is directed to a camera, the obtaining of the first invocation information corresponding to the first invocation event may include: and acquiring shooting parameters corresponding to the first calling event, wherein the shooting parameters can comprise a shooting focal length, a shooting duration, a shooting range and the like. When the first invoking event is for the vibration motor, acquiring first invoking information corresponding to the first invoking event may include: and obtaining vibration information corresponding to the first calling event, wherein the vibration information may include vibration duration, vibration frequency, vibration magnitude and the like. When the first call event is directed to the speaker, the obtaining the first call information corresponding to the first call event may include: and acquiring an audio output parameter corresponding to the first calling event, wherein the audio output parameter can be audio output size, audio output duration and the like.
Step S120: and sending the first calling information to the second system to instruct the second system to send the first calling information to the shared hardware, and controlling the shared hardware to respond to the calling of the first system.
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 may be sent to the second system to instruct the second system to send the first call information to the shared hardware, so as to control the shared hardware to respond to the call of the first system. As one mode, after the first call information is obtained, 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 the 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, and control the camera to shoot or scan. When the first calling information is first vibration information, the first vibration information can 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 call 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, and control the speaker to output the audio.
According to the calling method for the shared hardware, when an operating system of the electronic device 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 to indicate the second system to send the first calling information to the shared hardware, and the shared hardware is controlled to respond to calling of the first system, so that sharing and calling on the hardware as required of double systems of the electronic device can be achieved, hardware cost of the electronic device is reduced, and use experience of a user is improved.
Referring to fig. 3, fig. 3 is a schematic flowchart illustrating a method for calling shared hardware according to another embodiment of the present application. As will be described in detail with reference to the flow shown in fig. 3, in this embodiment, the electronic device includes a first system, a second system, and shared hardware of the first system and the second system, where power consumption of normal operation of the first system is higher than power consumption of 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:
step S210: when the operating system of the electronic equipment is the first system and the first system receives a first notification message, determining that a first calling event of the first system to the vibration motor is monitored.
In the present embodiment, the common hardware is a vibration motor. The method includes detecting whether an operating system currently used by the electronic device is a first system or a second system, detecting and monitoring calling of the first system to the vibration motor when it is detected that the operating system currently used by the electronic device is the first system, and determining that a first calling event of the first system to the vibration motor is monitored when it is monitored that the first system receives a first notification message. The first notification message may include, but is not limited to, an instant messaging message, a news push message, a takeout push message, a shopping push message, and the like.
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 meeting the first preset notification message type as the first notification message, where the electronic device triggers a vibration prompt when the first system receives the corresponding first notification message.
Step S220: and acquiring 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, a first vibration frequency, a first vibration duration, a first vibration magnitude, and the like corresponding to the first notification message may be obtained, which is not limited herein.
Step S230: and sending the first vibration information to the second system to instruct the second system to send the first vibration information to the shared hardware, and controlling the shared hardware to respond to the calling of the first system.
For detailed description of step S230, please refer to step S120, which is not described herein again.
In another embodiment of the application, when an operating system of an electronic device is a first system and the first system receives a first notification message, it is determined that a first call event of the first system to a vibration motor is monitored, first vibration information corresponding to the first notification message is acquired, the first vibration information is sent to a second system, so as to instruct the second system to send the first vibration information to shared hardware, and the shared hardware is controlled to respond to the call of the first system. Compared with the method for calling the shared hardware shown in fig. 2, in this embodiment, when the first system receives the first notification message, the vibration motor is controlled to respond to the calling vibration of the first system, so that the dual-system application effect of the electronic device is improved.
Referring to fig. 4, fig. 4 is a schematic flowchart illustrating a method for calling shared hardware according to still another embodiment of the present application. As will be described in detail with reference to the flow shown in fig. 4, in this embodiment, the electronic device includes a first system, a second system, and shared hardware of the first system and the second system, where power consumption of normal operation of the first system is higher than power consumption of 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:
step S310: and when the operating system of the electronic equipment is the first system, acquiring the current time.
In the present embodiment, the common hardware is a vibration motor. The method includes detecting whether an operating system currently used by the electronic device is a first system or a second system, and acquiring current time when the operating system currently used by the electronic device is detected to be the first system. As one way, the current time may be acquired by a clock built in the electronic device.
Step S320: and when the current time meets a first preset time, determining to monitor a first calling event of the first system to the vibrating motor, wherein the first preset time is the starting time of an alarm clock event preset by the first system.
In some embodiments, the electronic device may preset and store a first preset time, where the first preset time is used as a criterion for determining a current time obtained when an operating system of the electronic device is a first system, and the first preset time is a start time of an 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 may be compared with a first preset time to obtain a first comparison result, where 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, an alarm event set by the first system is triggered, and then the vibration of the vibration motor is triggered, that is, it may be determined that a first call event of the first system to the vibration motor is monitored.
Step S330: and acquiring 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 meets a first preset time, first vibration information corresponding to the alarm clock event of the first system may be obtained, for example, a first vibration frequency, a first vibration duration, a first vibration magnitude, and the like corresponding to the alarm clock event of the first system may be obtained, which is not limited herein.
Step S340: and sending the first vibration information to the second system to instruct the second system to send the first vibration information to the shared hardware, and controlling the shared hardware to respond to the calling of the first system.
For detailed description of step S340, please refer to step S120, which is not described herein again.
In another embodiment of the application, a method for calling shared hardware is provided, where when an operating system of an electronic device is a first system, obtaining current time, and when the current time meets a first preset time, determining to monitor a first calling event of the first system to a vibration motor, where the first preset time is a start time of an alarm event preset by the first system, obtaining first vibration information corresponding to the alarm event of the first system, and sending the first vibration information to a second system, so as to instruct the second system to send the first vibration information to the shared hardware, and controlling the shared hardware to respond to the calling of the first system. Compared with the method for calling the shared hardware shown in fig. 2, in this embodiment, when the current time meets the start time of the alarm clock event of the first system, the vibration motor is controlled to respond to the calling vibration of the first system, so that the dual-system application effect of the electronic device is improved.
Referring to fig. 5, fig. 5 is a schematic flowchart illustrating a method for calling shared hardware according to another embodiment of the present application. As will be described in detail with reference to the flow shown in fig. 5, in this embodiment, the electronic device includes a first system, a second system, and shared hardware of the first system and the second system, where power consumption of normal operation of the first system is higher than power consumption of normal operation of the second system, and the shared hardware is controlled by the second system, where the method for calling the shared hardware specifically includes the following steps:
step S410: when the operating system of the electronic equipment is the first system and a first calling event of the first system to the shared hardware is monitored, first calling information corresponding to the first calling event is obtained.
Step S420: and sending the first calling information to the 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.
For the detailed description of steps S410 to S420, refer to steps S110 to S120, which are not described herein again.
Step S430: when the operating system of the electronic device is the second system and a second calling event of the second system to the shared hardware is monitored, second calling information corresponding to the second calling event is obtained.
In this embodiment, whether the operating system currently used by the electronic device is the first system or the second system may be detected, where when it is detected that the operating system currently used by the electronic device is the second system, a call condition of the second system to the shared hardware may be monitored, and when a second call event of the second system to the shared hardware is monitored, second call information corresponding to the second call event may be obtained.
In some embodiments, when the shared hardware is a camera, then a call of the second system to the camera may be detected, for example, when it is detected that the second system triggers photographing or triggers scanning, then it may be determined that a second call event of the second system to the camera is monitored. When the shared hardware is a vibration motor, the second system may be invoked to detect the vibration motor, for example, when the second system is detected to trigger the device to vibrate (a notification message is received, an alarm clock is started), it may be determined that a second invocation event of the vibration motor by the second system is monitored. When the shared hardware is a loudspeaker, the second system calling the loudspeaker may be detected, for example, when it is detected that the second system triggers audio output (outgoing call, incoming call, playing audio), it may be determined that a second calling event of the second system to the loudspeaker is monitored.
In some embodiments, when the second invocation event is for a camera, the obtaining of the second invocation information corresponding to the second invocation event may include: and acquiring shooting parameters corresponding to the second calling event, wherein the shooting parameters can comprise a shooting focal length, a shooting duration, a shooting range and the like. When the second invoking event is for the vibration motor, acquiring second invoking information corresponding to the second invoking event may include: and obtaining vibration information corresponding to the second calling event, wherein the vibration information may include vibration duration, vibration frequency, vibration magnitude and the like. When the second call event is directed to the speaker, the obtaining of the second call information corresponding to the second call event may include: and acquiring an audio output parameter corresponding to the second calling event, wherein the audio output parameter can be audio output size, audio output duration and the like.
Step S440: and sending the second calling information to the shared hardware, and controlling the shared hardware to respond to the calling of the second system.
In this embodiment, since the shared hardware is controlled by the second system, when the second system needs to call the shared hardware, the obtained second call information may be directly sent to the shared hardware to control the shared hardware to respond to the call of the second system. As one approach, after obtaining the second call information, the second system may send the second call information to the shared hardware via a gpio signal.
In some embodiments, when the second call information is the second shooting parameter, the second shooting parameter may be sent to the camera, and the camera is controlled to shoot or scan. When the second call information is second vibration information, the second vibration information may be sent to the vibration motor to control the vibration motor to vibrate. When the second calling information is the second audio output parameter, the first audio output parameter can be sent to the loudspeaker, and the loudspeaker is controlled to output audio.
In another embodiment of the application, in a method for calling shared hardware, when an operating system of an electronic device is a first system and monitors a call event of the first system to the shared hardware, first call information corresponding to the first call event is obtained, the first call information is sent to a second system to instruct the second system to send the first call information to the shared hardware, the shared hardware is controlled to respond to the call of the first system, when the operating system of the electronic device is the second system and monitors a second call event of the second system to the shared hardware, second call information corresponding to the second call event is obtained, the second call information is sent to the shared hardware, and the shared hardware is controlled to respond to the call of the second system. Compared with the method for calling the shared hardware shown in fig. 2, in this embodiment, when the operating system of the electronic device is the second system and the call of the second system to the shared hardware is monitored, the second system directly controls the shared hardware to perform the call response, so that the hardware cost of the electronic device is reduced and the use experience of the user is improved.
Referring to fig. 6, fig. 6 is a schematic flowchart illustrating a method for calling shared hardware according to yet another embodiment of the present application. As will be described in detail with reference to the flow shown in fig. 6, in this embodiment, the electronic device includes a first system, a second system, and shared hardware of the first system and the second system, where power consumption of normal operation of the first system is higher than power consumption of 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:
step S510: when the operating system of the electronic equipment is the first system and a first calling event of the first system to the shared hardware is monitored, first calling information corresponding to the first calling event is obtained.
Step S520: and sending the first calling information to the second system to instruct the second system to send the first calling information to the shared hardware, and controlling the shared hardware to respond to the calling of the first system.
For the detailed description of steps S510 to S520, refer to steps S110 to S120, which are not described herein again.
Step S530: when the operating system of the electronic equipment is the second system and the second system receives a second notification message, determining that a second call event of the second system to the vibration motor is monitored.
In the present embodiment, the common hardware is a vibration motor. The method includes detecting whether an operating system currently used by the electronic device is a first system or a second system, detecting and monitoring calling of the second system to the vibration motor when the operating system currently used by the electronic device is detected to be the second system, and determining to monitor a second calling event of the second system to the vibration motor when it is monitored that the second system receives a second notification message. The second notification message may include, but is not limited to, an instant messaging message, a news push message, a takeout push message, a shopping push message, and the like.
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 meeting the second preset notification message type as the second notification message, where the electronic device triggers a vibration prompt when the second system receives the corresponding second notification message.
Step S540: and acquiring second vibration information corresponding to the second notification message.
In some embodiments, after obtaining the second notification message, second vibration information corresponding to the second notification message may be obtained, for example, a second vibration frequency, a second vibration duration, a second vibration magnitude, and the like corresponding to the second notification message may be obtained, which is not limited herein.
Step S550: and sending the second vibration information to the shared hardware, and controlling the shared hardware to respond to the call of the second system.
For details of step S550, refer to step S440, which is not repeated herein.
In another embodiment of the application, when an operating system of the electronic device is a first system and a first call event of the first system to the shared hardware is monitored, first call information corresponding to the first call event is obtained, the first call information is sent to a second system to instruct the second system to send the first call information to the shared hardware, the shared hardware is controlled to respond to the call of the first system, when the operating system of the electronic device is the second system and the second system receives a second notification message, it is determined that a second call event of the second system to the vibration motor is monitored, second vibration information corresponding to the second notification message is obtained, the second vibration information is sent to the shared hardware, and the shared hardware is controlled to respond to the call of the second system. Compared with the method for calling the shared hardware shown in fig. 2, in this embodiment, when the second system receives the second notification message, the vibration motor is controlled to respond to the calling vibration of the second system, so that the dual-system application effect of the electronic device is improved.
Referring to fig. 7, fig. 7 is a schematic flowchart illustrating a method for calling shared hardware according to yet another embodiment of the present application. As will be described in detail with reference to the flow shown in fig. 7, in this embodiment, the electronic device includes a first system, a second system, and shared hardware of the first system and the second system, where power consumption of normal operation of the first system is higher than power consumption of 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:
step S610: when the operating system of the electronic equipment is the first system and a first calling event of the first system to the shared hardware is monitored, first calling information corresponding to the first calling event is obtained.
Step S620: and sending the first calling information to the 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.
For the detailed description of steps S610 to S620, refer to steps S110 to S120, which are not described herein again.
Step S630: and when the operating system of the electronic equipment is the second system, acquiring the current time.
In the present embodiment, the common hardware is a vibration motor. The method includes detecting whether an operating system currently used by the electronic device is a first system or a second system, and acquiring current time when the operating system currently used by the electronic device is detected to be the second system. As one way, the current time may be acquired by a clock built in the electronic device.
Step S640: and when the current time meets a second preset time, determining to monitor a second calling event of the second system to the vibrating motor, wherein the second preset time is the starting time of an alarm clock event preset by the second system.
In some embodiments, the electronic device may preset and store a second preset time, where the second preset time is used as a criterion for determining a current time obtained when an operating system of the electronic device is a second system, and the second preset time is a start time of an 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 may be compared with a second preset time to obtain a second comparison result, where when the second comparison result indicates that the current time obtained when the operating system of the electronic device is the second system meets the second preset time, an alarm clock event set by the second system is triggered by the representation, and then the vibration motor may be triggered to vibrate, that is, it may be determined that a second call event of the second system to the vibration motor is monitored.
Step S650: and acquiring second vibration information corresponding to the alarm clock event of the second system.
In this embodiment, after determining that the current time obtained when the operating system of the electronic device is the second system meets a second preset time, second vibration information corresponding to the alarm clock event of the second system may be obtained, for example, a second vibration frequency, a second vibration duration, a second vibration magnitude, and the like corresponding to the alarm clock event of the second system may be obtained, which is not limited herein.
Step S660: and sending the second vibration information to the shared hardware, and controlling the shared hardware to respond to the call of the second system.
For detailed description of step S660, please refer to step S440, which is not described herein.
In yet another embodiment of the present application, 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 calling information corresponding to the first calling event, sending the first calling information to the second system, to instruct the second system to send the first call information to the shared hardware, to control the shared hardware to respond to the call of the first system, when the operating system of the electronic equipment is a second system, acquiring the current time, when the current time meets a second preset time, determining to monitor a second calling event of the second system to the vibration motor, and the second preset time is the starting time of the alarm clock event preset by the second system, second vibration information corresponding to the alarm clock event of the second system is acquired, the second vibration information is sent to the shared hardware, and the shared hardware is controlled to respond to the calling of the second system. Compared with the method for calling the shared hardware shown in fig. 2, in this embodiment, when the current time meets the start time of the alarm clock event of the second system, the vibration motor is controlled to respond to the calling vibration of the second system, so that the dual-system application effect of the electronic device is improved.
Referring to fig. 8, fig. 8 is a flowchart illustrating a method for calling shared hardware according to yet another embodiment of the present application. As will be described in detail with reference to the flow shown in fig. 8, in this embodiment, the electronic device includes a first system, a second system, and shared hardware of the first system and the second system, where power consumption of normal operation of the first system is higher than power consumption of 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 calling the shared hardware may specifically include the following steps:
step S710: when the operating system of the electronic equipment is the first system and a first calling event of the first system to the shared hardware is monitored, first calling information corresponding to the first calling event is obtained.
Step S720: and sending the first calling information to the 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.
For the detailed description of steps S710 to S720, refer to steps S110 to S120, which are not described herein again.
Step S730: and detecting the state information of the touch screen, wherein the state information comprises a screen lightening state and a screen turning state.
In this embodiment, the state information of the touch screen includes a screen-on state and a screen-off state, that is, whether the touch screen is in the screen-on state or the screen-off state can be detected.
In some embodiments, the brightness of the touch screen of the electronic device may be detected and obtained, and the obtained brightness of the touch screen is compared with a preset brightness to determine whether the brightness of the touch screen is greater than the preset brightness, specifically, the electronic device may preset and store the preset brightness as a brightness value to be compared, the first preset brightness may be configured when the electronic device leaves a factory, and may be set according to user's preference and demand when in use, or may be adjusted and set by itself according to an attribute or an environment for the electronic device, for example, the preset brightness may be set according to a remaining power of the electronic device, and the preset brightness when the remaining power is higher may be set to be greater than the preset brightness when the remaining power is lower, and the like. 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 resting state.
Step S740: when the state information is detected to be switched from the bright screen state to the information screen state, switching the operating system of the electronic equipment 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 dark 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 operating system of the electronic device may be switched from the first system to the second system, so that the operating system of the electronic device may be always in the second system with smaller rated power consumption in the process of the electronic device turning off the screen, so as to reduce the power consumption of the electronic device.
In some embodiments, after switching the operating system of the electronic device from the first system to the second system, state information of a touch screen of the electronic device may be detected, and when it is detected that the state information of the touch screen is switched from a screen-on state to a screen-on state, the operating system of the electronic device may be switched from the second system to the first system.
In another embodiment of the application, when an operating system of an electronic device is a first system and a first call event of the first system to shared hardware is monitored, first call information corresponding to the first call event is obtained, the first call information is sent to a second system to instruct the second system to send the first call information to the shared hardware, the shared hardware is controlled to respond to the call of the first system, and state information of a touch screen is detected, where the state information includes a bright screen state and a dim screen state, and when the state information is detected to be switched from the bright screen state to the dim screen state, the operating system of the electronic device is switched from the first system to the second system. Compared with the method for calling the shared hardware shown in fig. 2, in this embodiment, when it is detected that the state information of the touch screen is switched from the bright screen state to the system state in the process that the operating system of the electronic device is in the first system, the operating system is switched from the first system to the second system, so that the effect of system switching is improved, and the power consumption of the electronic device is reduced.
Referring to fig. 9, fig. 9 is a schematic flowchart illustrating a method for calling shared hardware according to yet another embodiment of the present application. As will be described in detail with reference to the flow shown in fig. 9, in this embodiment, the electronic device includes a first system, a second system, and shared hardware of the first system and the second system, where power consumption of normal operation of the first system is higher than power consumption of normal operation of the second system, and the shared hardware is controlled by the second system, where the method for calling the shared hardware specifically includes the following steps:
step S810: when the operating system of the electronic equipment is the first system and a first calling event of the first system to the shared hardware is monitored, first calling information corresponding to the first calling event is obtained.
Step S820: and sending the first calling information to the second system to instruct the second system to send the first calling information to the shared hardware, and controlling the shared hardware to respond to the calling of the first system.
For detailed description of steps S810 to S820, please refer to steps S110 to S120, which are not described herein again.
Step S830: and acquiring the current residual capacity of the electronic equipment.
In this embodiment, the current remaining power of the electronic device may be detected in real time in a background of the electronic device, or may be detected at intervals of a predetermined time (e.g., 5 minutes), or the current remaining power of the electronic device may be acquired by performing image recognition on a display interface of the electronic device, and a specific current remaining power acquiring manner is not limited herein.
In some embodiments, the frequency of detection for the current remaining power of the electronic device may be determined according to an application program run by the electronic device. The detection frequency of the electronic equipment when running the video application program is higher than that of the electronic equipment when running the text application program.
Step S840: and when the current residual electric quantity is less than the preset electric quantity, switching the operating system of the electronic equipment from the first system to the second system.
In some embodiments, the electronic device may be preset and store a preset power amount, where the preset power amount is used as a criterion for determining a current remaining power amount 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 may be switched from the first system to the second system, so that when the remaining power of the electronic device is low, the operating system of the electronic device may be always in the second system with smaller rated power consumption, 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, a current remaining power of the electronic device may be detected, and when the current remaining power of the touch screen is detected to be not less than a preset power or the electronic device starts to be charged, the operating system of the electronic device may be switched from the second system to the first system.
In another embodiment of the application, when an operating system of the electronic device is a first system and a first call event of the first system to the shared hardware is monitored, first call information corresponding to the first call event is obtained, the first call information is sent to a second system to instruct the second system to send the first call information to the shared hardware, the shared hardware is controlled to respond to the call of the first system, current remaining power of the electronic device is obtained, and 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. Compared with the method for calling the shared hardware shown in fig. 2, in this embodiment, when the current remaining power of the electronic device is smaller than the preset power, the operating system of the electronic device is switched from the first system to the second system, so that the effect of system switching is improved, and the power consumption of the electronic device is reduced.
Referring to fig. 10, fig. 10 is a block diagram illustrating a calling device sharing hardware according to an embodiment of the present application. The calling device 200 of the shared hardware is applied to an electronic device, and the electronic device 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. As will be described below with respect to the block diagram shown in fig. 10, the calling apparatus 200 of the shared hardware includes: a calling information obtaining module 210 and a shared hardware calling module 220, wherein:
the calling information obtaining module 210 is configured to obtain first calling information corresponding to a 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.
Further, the common hardware includes a vibration motor, and the calling information obtaining module 210 includes: the device comprises a first notification message receiving submodule and a first vibration information obtaining submodule, wherein:
the first notification message receiving submodule is used for determining that a first calling event of the first system to the vibration motor is monitored when the operating system of the electronic equipment is the first system and the first system receives a first notification message.
And the first vibration information acquisition submodule is used for acquiring first vibration information corresponding to the first notification message.
Further, the common hardware includes a vibration motor, and the calling information obtaining module 210 includes: the device comprises a first current time acquisition submodule, a first calling event determination submodule and a second vibration information acquisition submodule, wherein:
and the first current time acquisition submodule is used for acquiring the current time when the operating system of the electronic equipment is the first system.
And the first calling event determining submodule is used for determining to monitor a first calling event of the first system to the vibrating motor when the current time meets a first preset time, wherein the first preset time is the starting time of an alarm clock event preset by the first system.
And the second vibration information acquisition submodule is used for acquiring first vibration information corresponding to the alarm clock event of the first system.
Further, the hardware-shared calling apparatus 200 further includes: a second call event acquisition module and a shared hardware call control module, wherein:
and the second call event acquisition module is used for acquiring second call information corresponding to a second call event when the operating system of the electronic equipment is the second system and the second call event of the second system to the shared hardware is monitored.
Further, the common hardware includes a vibration motor, and the second recall event acquisition module includes: a second notification message receiving submodule and a third vibration information acquisition submodule, wherein:
and the second notification message receiving submodule is used for determining that a second calling event of the second system to the vibration motor is monitored when the operating system of the electronic equipment is the second system and the second system receives a second notification message.
And the third vibration information acquisition submodule is used for acquiring second vibration information corresponding to the second notification message.
Further, the common hardware includes a vibration motor, and the second recall event acquisition module includes: a second current time acquisition submodule, a second call event determination submodule, and a fourth vibration information acquisition submodule, wherein:
and the second current time obtaining submodule is used for obtaining the current time when the operating system of the electronic equipment is the second system.
And the second calling event determining submodule is used for determining to monitor a second calling event of the second system to the vibrating motor when the current time meets a second preset time, wherein the second preset time is the starting time of an alarm clock event preset by the second system.
And the fourth vibration information acquisition submodule is used for acquiring second vibration information corresponding to the alarm clock event of the second system.
And the shared hardware call control module is used for sending the second call information to the shared hardware and controlling the shared hardware to respond to the call of the second system.
The shared hardware calling module 220 is configured to send the first calling information to the 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 call of the first system.
Further, the electronic device further includes a touch screen, and the invoking device 200 of the common hardware further includes: state information detection module and first system switch module, wherein:
and the state information detection module is used for detecting the state information of the touch screen, wherein the state information comprises a screen-on state and a screen-off state.
The first system switching module is 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 dark screen state.
Further, the hardware-shared calling apparatus 200 further includes: surplus electric quantity acquisition module and second system switch module, wherein:
and the residual electric quantity acquisition module is used for acquiring the current residual electric quantity of the electronic equipment.
And the second system switching module is used for switching the operating system of the electronic equipment from the first system to the second system when the current remaining power is less than the preset power.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 11, a block diagram of an electronic device 100 according to an embodiment of the present disclosure is shown. The electronic device 100 may be a smart phone, a tablet computer, an electronic book, or other electronic devices capable of running an application. 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 applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by the one or more processors 110, the one or more programs configured to perform a method as described in the aforementioned method embodiments.
Processor 110 may include one or more processing cores, among other things. The processor 110 connects various parts within the overall electronic device 100 using various interfaces and lines, and performs various functions of the electronic device 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120 and calling data stored in the memory 120. Alternatively, the processor 110 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 110 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content to be displayed; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 110, but may be implemented by a communication chip.
The Memory 120 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 120 may be used to store instructions, programs, code sets, or instruction sets. 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 playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The data storage area may also store data created by the electronic device 100 during use (e.g., phone book, audio-video data, chat log data), and the like.
Referring to fig. 12, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable medium 300 has stored therein a program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 300 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 300 includes a non-volatile computer-readable storage medium. The computer readable storage medium 300 has storage space for program code 310 for performing any of the method steps of the method described above. The program code 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.
In summary, the method and apparatus for calling shared hardware, the electronic device, and the storage medium provided in the embodiments of the present application are 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, where power consumption of normal operation of the first system is higher than power consumption of normal operation of the second system, and the shared hardware is controlled by the second system. 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 indicate the second system to send the first calling information to the shared hardware, and the shared hardware is controlled to respond to the calling of the first system, so that the sharing and calling of the dual systems of the electronic equipment to the hardware as required can be realized, the hardware cost of the electronic equipment is reduced, and the use experience of a user is improved.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (11)

1. A method for calling shared hardware is applied to an electronic device, the electronic device 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 the first system and a first calling event of the first system to the shared hardware is monitored, acquiring first calling information corresponding to the first calling event;
and sending the first calling information to the second system to instruct the second system to send the first calling information to the shared hardware, and controlling the shared hardware to respond to the calling of the first system.
2. The method according to claim 1, wherein the common hardware comprises a vibration motor, and the obtaining first call information corresponding to a first call event when an operating system of the electronic device is the first system and the first call event of the first system to the common hardware is monitored comprises:
when the operating system of the electronic equipment is the first system and the first system receives a first notification message, determining that a first calling event of the first system to the vibration motor is monitored;
and acquiring first vibration information corresponding to the first notification message.
3. The method according to claim 1, wherein the common hardware comprises a vibration motor, and the obtaining first call information corresponding to a first call event when an operating system of the electronic device is the first system and the first call event of the first system to the common hardware is monitored comprises:
when the operating system of the electronic equipment is the first system, acquiring the current time;
when the current time meets a first preset time, determining to monitor a first calling event of the first system to the vibrating motor, wherein the first preset time is the starting time of an alarm clock event preset by the first system;
and acquiring first vibration information corresponding to the alarm clock event of the first system.
4. The method of claim 1, further comprising:
when the operating system of the electronic equipment is the second system and a second calling event of the second system to the shared hardware is monitored, second calling information corresponding to the second calling event is obtained;
and sending the second calling information to the shared hardware, and controlling the shared hardware to respond to the calling of the second system.
5. The method according to claim 4, wherein the common hardware comprises a vibration motor, and the obtaining second call information corresponding to a second call event when the operating system of the electronic device is the second system and a second call event of the second system to the common hardware is monitored comprises:
when the operating system of the electronic equipment is the second system and the second system receives a second notification message, determining to monitor a second call event of the second system to the vibration motor;
and acquiring second vibration information corresponding to the second notification message.
6. The method according to claim 4, wherein the common hardware includes a vibration motor, and the obtaining second call information corresponding to a second call event when the operating system of the electronic device is the second system and a second call event of the second system to the common hardware is monitored comprises:
when the operating system of the electronic equipment is the second system, acquiring the current time;
when the current time meets a second preset time, determining to monitor a second calling event of the second system to the vibrating motor, wherein the second preset time is the starting time of an alarm clock event preset by the second system;
and acquiring second vibration information corresponding to the alarm clock event of the second system.
7. The method according to any one of claims 1-6, wherein the electronic device further comprises a touch screen, the 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 after controlling the shared hardware to respond to the call of the first system, further comprising:
detecting state information of the touch screen, wherein the state information comprises a screen-on state and a screen-off state;
when the state information is detected to be switched from the bright screen state to the information screen state, switching an operating system of the electronic equipment from the first system to the second system.
8. The method according to any one of claims 1-6, wherein said 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 after controlling the shared hardware to respond to the call of the first system, further comprises:
acquiring the current residual capacity of the electronic equipment;
and when the current residual electric quantity is less than the preset electric quantity, switching the operating system of the electronic equipment from the first system to the second system.
9. An apparatus for invoking hardware sharing, applied to an electronic device, the electronic device comprising a first system, a second system and hardware sharing between the first system and the second system, wherein power consumption of normal operation of the first system is higher than power consumption of normal operation of the second system, and the hardware sharing is controlled by the second system, the apparatus comprising:
the calling information acquisition module is used for acquiring first calling information corresponding to a first calling event when an operating system of the electronic equipment is the first system and the first calling event of the first system to the shared hardware is monitored;
and the shared hardware calling module is used for sending the first calling information to the 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.
10. An electronic device comprising a memory and a processor, the memory coupled to the processor, the memory storing instructions that, when executed by the processor, the processor performs the method of any of claims 1-8.
11. A computer-readable storage medium, having stored thereon program code that can be invoked by a processor to perform the method according to any one of claims 1 to 8.
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 (11)

* 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 two operating systems and method for sharing hardware device between two operating systems thereof
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
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 (11)

* 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 two operating systems and method for sharing hardware device between two operating systems thereof
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
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
CN111240837B (en) Resource allocation method, device, terminal and storage medium
CN107360458B (en) Play control method, device, storage medium and terminal
CN108184164B (en) Audio playing method, smart television and computer readable storage medium
CN109151194B (en) Data transmission method, device, electronic equipment and storage medium
CN110703944B (en) Touch data processing method and device, terminal and storage medium
CN111124351B (en) Audio output method, audio output device, electronic equipment and storage medium
CN110876180A (en) Power consumption processing method and device, electronic equipment and computer readable medium
CN107885588B (en) Application service control method and device, storage medium and mobile terminal
CN112135081A (en) Mode control method and device, frame insertion chip and electronic equipment
CN111328061B (en) Audio resource control method, vehicle-mounted terminal and system
US8848885B2 (en) Device information communication method, video display device, and video display system
CN115080125A (en) Method and device for sharing hardware call, electronic equipment and storage medium
CN115665671A (en) Audio data sharing method and device, electronic equipment and storage medium
CN115080126A (en) Switching method and device of shared hardware, electronic equipment and storage medium
CN109462702B (en) Information processing method and electronic equipment
CN114501239A (en) Master-slave switching method and device of earphone, Bluetooth earphone and storage medium
CN114023054A (en) Device management method, device, electronic device and computer storage medium
CN112181344A (en) Device calling method, device calling apparatus, interaction system, electronic device, and storage medium
CN112954760A (en) Connection method and device of Bluetooth equipment and electronic equipment
CN106936996B (en) Method, device and terminal for sending shutdown broadcast
CN111290672A (en) Image display method and device, storage medium and terminal
CN111787599B (en) WIFI frequency band selection method and device, electronic equipment and storage medium
CN114786058B (en) Multimedia data display method, device, terminal and storage medium
CN114173315B (en) Bluetooth reconnection method and terminal equipment
KR20070000265A (en) Method for performing call in wireless terminal

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