WO2021063249A1 - 电子设备的控制方法及电子设备 - Google Patents
电子设备的控制方法及电子设备 Download PDFInfo
- Publication number
- WO2021063249A1 WO2021063249A1 PCT/CN2020/117555 CN2020117555W WO2021063249A1 WO 2021063249 A1 WO2021063249 A1 WO 2021063249A1 CN 2020117555 W CN2020117555 W CN 2020117555W WO 2021063249 A1 WO2021063249 A1 WO 2021063249A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- control information
- audio component
- electronic device
- folding
- angle
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/02—Constructional features of telephone sets
- H04M1/0202—Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
- H04M1/026—Details of the structure or mounting of specific components
- H04M1/0266—Details of the structure or mounting of specific components for a display module assembly
- H04M1/0268—Details of the structure or mounting of specific components for a display module assembly including a flexible display panel
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/02—Constructional features of telephone sets
- H04M1/0202—Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
- H04M1/0206—Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings
- H04M1/0208—Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings characterized by the relative motions of the body parts
- H04M1/0214—Foldable telephones, i.e. with body parts pivoting to an open position around an axis parallel to the plane they define in closed position
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
Definitions
- the embodiments of the present invention relate to the technical field of electronic devices, and in particular to a control method of an electronic device and an electronic device.
- foldable screens are not only a major benefit to the manufacturing of a new generation of high-end smartphones, but also has a profound impact on the application of wearable devices due to its low power consumption and bendable characteristics. In the future, flexible screens will follow personal The continuous penetration of smart terminals is widely used.
- the foldable screen terminal has the following problems. For example, a smart phone with a foldable flexible screen, during a voice call or a video call, or in other scenarios where the corresponding handset and microphone are used (such as application voice chat), the screen is up and down After folding, the earpiece and microphone position are folded to the upper end of the screen, which may cause the electronic device to fail to communicate normally.
- the embodiments of the present invention provide a control method of an electronic device and an electronic device to solve the technical problem that the electronic device may not be able to make a normal call after the foldable screen of the electronic device is folded in the prior art.
- the present invention is implemented as follows:
- an embodiment of the present invention provides a method for controlling an electronic device.
- the electronic device includes an audio component and a foldable display screen that can be folded into a first display area and a second display area.
- the audio component includes: The first audio component on the first frame of the electronic device, the second audio component on the second frame of the electronic device, and the third audio component on the third frame of the electronic device; the method includes:
- the switch states of the first audio component, the second audio component, and the third audio component are controlled.
- an embodiment of the present invention provides an electronic device.
- the electronic device includes an audio component and a foldable display screen that can be folded into a first display area and a second display area.
- the audio component includes: A first audio component on the bezel, a second audio component on the second bezel of the electronic device, and a third audio component on the third bezel of the electronic device;
- the electronic equipment also includes:
- Angle acquisition module used to acquire the folding angle of the foldable display screen when entering the call state
- the information determining module is used to determine the switch control information of the audio component corresponding to the folding angle according to the preset corresponding relationship;
- the switch control module is used to control the switch states of the first audio component, the second audio component, and the third audio component according to the switch control information.
- an embodiment of the present invention also provides an electronic device.
- the electronic device includes a memory, a processor, and a computer program stored in the memory and running on the processor.
- the processor executes the computer program as described above. The steps in the control method of the electronic device.
- the embodiments of the present invention also provide a computer-readable storage medium having a computer program stored on the computer-readable storage medium.
- the control method of the electronic device as described above is implemented. step.
- the folding angle of the folding display screen is acquired; then according to the preset corresponding relationship, the switch control information of the audio component corresponding to the folding angle is determined; and finally according to the switch control information, the second control information is controlled.
- FIG. 1 shows one of the flowcharts of the control method of the electronic device provided by the embodiment of the present invention
- FIG. 2 shows one of the schematic diagrams of the electronic equipment used in the embodiment of the present invention
- Figure 3 shows the second schematic diagram of the electronic device used in the embodiment of the present invention.
- Figure 4 shows a schematic diagram of a first example of an embodiment of the present invention
- Figure 5 shows a schematic diagram of a second example of an embodiment of the present invention.
- Fig. 6 shows a schematic diagram of a third example of an embodiment of the present invention.
- FIG. 7 shows one of the block diagrams of the electronic device provided by the embodiment of the present invention.
- FIG. 8 shows the second block diagram of the electronic device provided by the embodiment of the present invention.
- one embodiment or “an embodiment” mentioned throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of the present invention. Therefore, the appearances of "in one embodiment” or “in an embodiment” in various places throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner.
- an embodiment of the present invention provides a method for controlling an electronic device.
- the electronic device includes an audio component and a foldable display screen that can be folded into a first display area O1 and a second display area O2.
- the electronic device may be a smart phone or a wearable device.
- the folding display screen can be bent and twisted, and has the characteristics of higher light transmittance, lower power consumption, more stable performance, and lighter and thinner.
- the audio components include: a first audio component D1 disposed on the first frame L1 of the electronic device, a second audio component D2 disposed on the second frame L2 of the electronic device, and a second audio component D2 disposed on the third frame L3 of the electronic device
- the audio component may be at least one of components such as a microphone, a speaker, and an earpiece.
- the method includes:
- Step 101 In the case of entering the call state, obtain the folding angle of the foldable display screen.
- the call can be a voice call or a video call.
- the folding angle of the folding display screen is obtained, and the folding angle is the folding angle between the first display area and the second display area. It can be understood that the first display area and the second display area are folded by the folding display screen, and the original display screen is divided into two display areas after folding.
- Step 102 Determine the switch control information of the audio component corresponding to the folding angle according to the preset correspondence.
- the preset correspondence relationship is the correspondence relationship between the folding angle and the switch control information.
- each angle or each continuous angle range corresponds to different switch control information
- the switch control information includes on and/or off.
- the preset correspondence relationship is preset, and includes switch control information of each audio component required for the electronic device to make a normal call.
- the on-off state of each audio component is separately controlled.
- the folding angle is 0 degrees or 180 degrees, that is, the first display area and the second display area are fully expanded into a plane, at this time, if the first display area is located above (based on the direction of gravity), Then the earpiece of the first audio component D1 should be controlled to turn on, and the microphone of the third audio component D3 should be controlled to turn on, so that the call function of the electronic device can be used normally.
- Step 103 Control the switch states of the first audio component D1, the second audio component D2, and the third audio component D3 according to the switch control information.
- the switch state of each device in the first audio component D1, the second audio component D2, and the third audio component D3 is respectively controlled according to the switch control information, so as to realize the normal call of the electronic device.
- the folding angle of the foldable display screen is acquired when entering the call state. Then, according to the preset correspondence, the switch control information of the audio component corresponding to the folding angle is determined. Finally, according to the switch control information, the switch states of the first audio component D1, the second audio component D2, and the third audio component D3 are controlled.
- the preset correspondence includes the switch control information of each audio component required to make the electronic device call normally.
- the switch control information in the preset correspondence controls the switch state of the device in each audio component, so that the electronic device is in its The normal call function of the foldable screen is maintained under different folding angles, and the audio components of the foldable screen of the electronic device are not interfered with each other after the foldable screen is folded.
- the embodiment of the present invention solves the technical problem in the prior art that after the foldable screen of the electronic device is folded, the electronic device may not be able to make a normal call.
- the microphone and speaker provided on the second frame L2 may be located in the first display area or the second display area, and may also be located in the middle of the two.
- the first audio component D1 includes a first microphone M1
- the second audio component D2 includes a second microphone M2 and a second earpiece T2
- the third audio component D3 includes a first microphone M2.
- the earpiece also known as earphone or earpiece, is a pair of conversion units, which accept the electrical signal sent by the media player or receiver, and use the speaker close to the ear to convert it into audible sound waves.
- a microphone is also called a microphone. It is a transducer for acoustic-electric conversion, which generates a voltage on the electro-acoustic element through the action of sound waves, and then converts it into electrical energy.
- the step of determining the switch control information of the audio component corresponding to the folding angle may include case one and case two:
- the switch control information is the first control information or the second control information.
- the first control information includes: turning off the first microphone M1, turning on the second microphone M2, turning on the third earpiece T3, and turning off the second earpiece T2.
- the second control information includes: turning off the second microphone M2, turning on the first microphone M1, turning on the second earpiece T2, and turning off the third earpiece T3.
- the value of the folding angle is smaller than the first preset angle value, for example, the preset value is 30 degrees or less, it can be determined that the folding display is in a fully folded state, and the two display areas are completely overlapped. At this time, there may be two types. status.
- the first display area faces the user (face or ears)
- turn off the first microphone M1 turn on the second microphone M2
- turn on the third earpiece T3 turn off the second earpiece T2 to avoid the first
- the second earpiece T2 interferes with the third earpiece T3.
- the second microphone M2 is turned off, the first microphone M1 is turned on, the second earpiece T2 is turned on, and the third earpiece T3 is turned off to realize a normal call.
- the second preset angle value may be 120 degrees.
- the folding direction of the folding angle is the direction facing away from the first display area or the second display area, that is, the two display areas are folded toward the back side of the screen, and the switch control information is the third control information.
- the third control information includes: turning on the third earpiece T3 and turning off the second earpiece T2 to avoid mutual interference between the two.
- the step of determining that if the value of the folding angle is less than the first preset angle value, then the switch control information is the first control information or the second control information includes:
- the control information is the first control information, that is, the electronic device is placed laterally.
- the control information is the second control information, that is, the electronic device is placed in a longitudinal direction.
- control information is determined according to the direction in which the electronic device is placed.
- the method further includes:
- Receiving the second input for recording audio that is, when performing audio recording, includes sending a voice message.
- the folding angle between the first display area and the second display area is acquired.
- the control information is the fourth control information.
- the fourth control information includes: turning on the first microphone M1 and the second microphone M2, then turning on both microphones at the same time to enhance the recording effect.
- the second audio component D2 further includes a second speaker Y2
- the third audio component D3 further includes a third speaker Y3.
- the method may also include:
- Receive the third input for playing audio that is, when playing audio, such as audio and video files or voice messages.
- the folding angle between the first display area and the second display area is acquired.
- the switch control information It is the fifth control information.
- the fifth control information includes: turning on the second speaker Y2 and the third speaker Y3, turning on both speakers at the same time, turning on the second microphone M2 and the third speaker Y3 at the same time, and multiple speakers playing sound at the same time, which can form surround sound and improve Sound playback quality.
- the step of controlling the switch states of the first audio component D1, the second audio component D2, and the third audio component D3 according to the switch control information includes:
- the switch control information is sent to the Hardware Abstract Layer (HAL) layer of the electronic device, and the first audio component D1, the second audio component D2, and/or the third audio component D3 are controlled through the HAL layer.
- HAL Hardware Abstract Layer
- the HAL layer is the interface layer between the operating system kernel and the hardware circuit.
- the HAL layer can shield the implementation details of the hardware driver module downwards, while providing hardware access services upwards.
- the electronic device sends the switch control information to the HAL layer, and sets the microphone and speaker channels through the HAL layer, so as to switch the microphone and speaker on and off, switch correspondingly or simultaneously open multiple microphones/speakers.
- the series of pressure values of the current screen can be obtained by reading the electronic pressure sensor array of the screen, and by querying the correspondence between the pressure values and angles stored in advance, Calculate the folding angle of the screen.
- the folding angle of the folding display screen is acquired.
- the switch control information of the audio component corresponding to the folding angle is determined.
- the switch states of the first audio component D1, the second audio component D2, and the third audio component D3 are controlled.
- the preset correspondence includes the switch control information of each audio component required to make the electronic device call normally.
- the switch control information in the preset correspondence controls the switch state of the device in each audio component, so that the electronic device is in its The normal call function of the foldable screen is maintained under different folding angles, and the audio components of the foldable screen of the electronic device are not interfered with each other after the foldable screen is folded.
- an embodiment of the present invention provides an electronic device 700.
- the electronic device 700 includes an audio component and a folding display screen that can be folded into a first display area and a second display area.
- the audio component includes: The first audio component on the first frame, the second audio component on the second frame of the electronic device 700, and the third audio component on the third frame of the electronic device.
- the electronic device 700 also includes:
- the angle obtaining module 701 is configured to obtain the folding angle of the foldable display screen when entering the call state.
- the call can be a voice call or a video call.
- the folding angle of the folding display screen is acquired, and the folding angle is the folding angle between the first display area and the second display area. It can be understood that the first display area and the second display area are folded by the folding display screen, and the original display screen is divided into two display areas after folding.
- the information determining module 702 is configured to determine the switch control information of the audio component corresponding to the folding angle according to the preset corresponding relationship.
- the preset correspondence relationship is the correspondence relationship between the folding angle and the switch control information.
- each angle or each continuous angle range corresponds to different switch control information
- the switch control information includes on and/or off.
- the preset correspondence relationship is preset, and includes switch control information of each audio component required for the electronic device to make a normal call.
- the switch control module 703 is used to control the switch states of the first audio component, the second audio component, and the third audio component according to the switch control information.
- the switch states of each of the first audio component, the second audio component, and the third audio component are respectively controlled to realize the normal call of the electronic device.
- the first audio component includes a first microphone
- the second audio component includes a second microphone and a second earpiece
- the third audio component includes a third earpiece
- the information determining module 702 includes:
- the first determining sub-module is configured to, if the value of the folding angle is less than the first preset angle value, the switch control information is the first control information or the second control information.
- the first control information includes: turning off the first microphone, turning on the second microphone, turning on the third earpiece, and turning off the second earpiece.
- the second control information includes: turning off the second microphone, turning on the first microphone, turning on the second earpiece, and turning off the third earpiece.
- the second determining sub-module is used for if the value of the folding angle is greater than or equal to the first preset angle value and less than the second preset angle value, and the folding direction of the folding angle is facing away from the first display area or the second display area ,
- the switch control information is the third control information.
- the third control information includes: turning on the third earpiece and turning off the second earpiece.
- the first determining submodule includes:
- the angle obtaining unit is used to obtain a first angle between the first frame and the direction of gravity, and a second angle between the second frame and the direction of gravity.
- the first determining unit is configured to: if the first included angle is greater than or equal to the second included angle, the control information is the first control information.
- the second determining unit is configured to: if the first included angle is smaller than the second included angle, the control information is the second control information.
- the electronic device 700 further includes:
- the recording control module is used to receive the second input for recording audio.
- the folding angle between the first display area and the second display area is acquired.
- the control information is Fourth control information.
- the fourth control information includes: turning on the first microphone and the second microphone.
- the second audio component includes a second speaker
- the third audio component includes a third speaker
- the electronic device 700 also includes:
- the playback control module is used to receive the third input for playing audio.
- the folding angle between the first display area and the second display area is acquired.
- the switch control information It is the fifth control information.
- the fifth control information includes: turning on the second speaker and the third speaker.
- the switch control module 703 includes:
- the information sending sub-module is used to send switch control information to the hardware abstraction HAL layer of the electronic device, and control the first audio component, the second audio component and/or the third audio component through the HAL layer.
- the electronic device 700 provided in the embodiment of the present invention can implement the various processes implemented by the electronic device in the method embodiments of FIGS. 1 to 6. To avoid repetition, details are not described herein again.
- the angle obtaining module 701 obtains the folding angle of the foldable display screen when entering the call state.
- the information determining module 702 determines the switch control information of the audio component corresponding to the folding angle according to the preset corresponding relationship.
- the switch control module 703 controls the switch states of the first audio component, the second audio component, and the third audio component according to the switch control information.
- the preset correspondence includes the switch control information of each audio component required for the electronic device 700 to make a normal call.
- the switch control information in the preset correspondence controls the switch state of the devices in each audio component, so that the electronic device 700 The normal call function is maintained under different folding angles of the foldable screen, and the audio components of the foldable screen of the electronic device 700 are prevented from interfering with each other after the foldable screen is folded.
- FIG. 8 is a schematic diagram of the hardware structure of an electronic device that implements various embodiments of the present invention.
- the electronic device 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, a processor 810, and Power supply 811 and other components.
- a radio frequency unit 801 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, a processor 810, and Power supply 811 and other components.
- the electronic device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. Layout.
- electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers.
- the electronic device includes an audio component and a folding display screen that can be folded into a first display area and a second display area.
- the audio component includes: a first audio component disposed on a first frame of the electronic device, and a second frame of the electronic device The second audio component on the upper side, and the third audio component on the third frame of the electronic device.
- the processor 810 is configured to obtain the folding angle of the foldable display screen when entering the call state.
- the switch control information of the audio component corresponding to the folding angle is determined.
- the switch states of the first audio component, the second audio component, and the third audio component are controlled.
- the folding angle of the folding display screen is acquired.
- the switch control information of the audio component corresponding to the folding angle is determined.
- the switch states of the first audio component, the second audio component, and the third audio component are controlled.
- the preset correspondence includes the switch control information of each audio component required to make the electronic device call normally.
- the switch control information in the preset correspondence controls the switch state of the device in each audio component, so that the electronic device is in its The normal call function of the foldable screen is maintained under different folding angles, and the audio components of the foldable screen of the electronic device are not interfered with each other after the foldable screen is folded.
- the radio frequency unit 801 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, after receiving the downlink data from the base station, it is processed by the processor 810; Uplink data is sent to the base station.
- the radio frequency unit 801 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
- the radio frequency unit 801 can also communicate with the network and other devices through a wireless communication system.
- the electronic device provides users with wireless broadband Internet access through the network module 802, such as helping users to send and receive emails, browse web pages, and access streaming media.
- the audio output unit 803 may convert the audio data received by the radio frequency unit 801 or the network module 802 or stored in the memory 809 into audio signals and output them as sounds. Moreover, the audio output unit 803 may also provide audio output related to a specific function performed by the electronic device 800 (for example, call signal reception sound, message reception sound, etc.).
- the audio output unit 803 may include a speaker, a buzzer, a receiver, and the like.
- the input unit 804 is used to receive audio or video signals.
- the input unit 804 may include a graphics processing unit (GPU) 8041 and a microphone 8042.
- the graphics processor 8041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode.
- the data is processed.
- the processed image frame may be displayed on the display unit 806.
- the image frame processed by the graphics processor 8041 may be stored in the memory 809 (or other storage medium) or sent via the radio frequency unit 801 or the network module 802.
- the microphone 8042 can receive sound and can process such sound into audio data.
- the processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 801 for output in the case of a telephone call mode.
- the electronic device 800 may also include at least one sensor 805, such as a light sensor, a motion sensor, and other sensors.
- the light sensor includes an ambient light sensor and a proximity sensor.
- the ambient light sensor can adjust the brightness of the display panel 8061 according to the brightness of the ambient light.
- the proximity sensor can close the display panel 8061 and the display panel 8061 when the electronic device 800 is moved to the ear. / Or backlight.
- the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games).
- sensor 805 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
- the display unit 806 is used to display information input by the user or information provided to the user.
- the display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
- LCD liquid crystal display
- OLED organic light-emitting diode
- the user input unit 807 can be used to receive inputted number or character information, and generate key signal input related to user settings and function control of the electronic device.
- the user input unit 807 includes a touch panel 8071 and other input devices 8072.
- the touch panel 8071 also known as the touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 8071 or near the touch panel 8071. operating).
- the touch panel 8071 may include two parts: a touch detection device and a touch controller.
- the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 810, the command sent by the processor 810 is received and executed.
- the touch panel 8071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
- the user input unit 807 may also include other input devices 8072.
- other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
- the touch panel 8071 can be overlaid on the display panel 8061.
- the touch panel 8071 detects a touch operation on or near it, it transmits it to the processor 810 to determine the type of the touch event, and then the processor 810 determines the type of the touch event according to the touch.
- the type of event provides corresponding visual output on the display panel 8061.
- the touch panel 8071 and the display panel 8061 are used as two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 8071 and the display panel 8061 can be integrated
- the implementation of the input and output functions of the electronic device is not specifically limited here.
- the interface unit 808 is an interface for connecting an external device and the electronic device 800.
- the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
- the interface unit 808 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 800 or can be used to connect the electronic device 800 to an external device. Transfer data between devices.
- the memory 809 can be used to store software programs and various data.
- the memory 809 may mainly include a program storage area and a data storage area.
- the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc.
- the memory 809 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
- the processor 810 is the control center of the electronic device. It uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes the software programs and/or modules stored in the memory 809, and calls the data stored in the memory 809. , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole.
- the processor 810 may include one or more processing units; preferably, the processor 810 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface and application programs, etc., the modem
- the processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 810.
- the electronic device 800 may also include a power supply 811 (for example, a battery) for supplying power to various components.
- a power supply 811 for example, a battery
- the power supply 811 may be logically connected to the processor 810 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. And other functions.
- the electronic device 800 includes some functional modules not shown, which will not be repeated here.
- an embodiment of the present invention also provides an electronic device, including a processor 810, a memory 809, and a computer program stored in the memory 809 and running on the processor 810.
- the computer program is executed by the processor 810, the foregoing
- Each process of the embodiment of the electronic device control method can achieve the same technical effect. In order to avoid repetition, it will not be repeated here.
- the embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium.
- a computer program is stored on the computer-readable storage medium.
- the computer-readable storage medium may be a non-transitory storage medium, such as a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk, or an optical disk.
- Such a processor may be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic array. It can also be understood that each block in the block diagram and/or flowchart and the combination of the blocks in the block diagram and/or flowchart can also be implemented by dedicated hardware that performs specified functions or actions, or can be implemented by dedicated hardware and A combination of computer instructions.
- the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes a number of instructions to enable a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the method described in each embodiment of the present invention.
- a terminal which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Telephone Function (AREA)
- Telephone Set Structure (AREA)
Abstract
一种电子设备的控制方法及电子设备,电子设备包括音频组件和可折叠为第一显示区域和第二显示区域的折叠显示屏,音频组件包括:设置于电子设备的第一边框(L1)上的第一音频组件(D1),设置于电子设备的第二边框(L2)上的第二音频组件(D2),以及设置于电子设备的第三边框(L3)上的第三音频组件(D3);方法包括:在进入通话状态的情况下,获取折叠显示屏的折叠角度;根据预设对应关系,确定折叠角度对应的音频组件的开关控制信息;根据开关控制信息,控制第一音频组件(D1)、第二音频组件(D2)以及第三音频组件(D3)的开关状态。
Description
相关申请的交叉引用
本申请主张在2019年09月30日在中国提交的中国专利申请号201910944741.8的优先权,其全部内容通过引用包含于此。
本发明实施例涉及电子设备技术领域,尤其涉及一种电子设备的控制方法及电子设备。
随着移动通信技术的迅速发展,以智能手机为首的电子设备已成为人们生活中各方面不可或缺的工具。电子设备的各种应用程序(Application,APP)的功能也逐渐完善,不再只是单纯地起到通信作用,较多的是为用户提供各种智能化服务,给用户工作、生活带来了极大的便利。
为了便于用户使用,智能终端(例如智能手机)可折叠屏幕技术日益成熟,其商用也越来越近。可折叠逐渐成为一种潮流和趋势,也是各大电子设备厂商涉及的新领域。
可折叠屏幕的成功量产不仅重大利好于新一代高端智能手机的制造,也因其低功耗、可弯曲的特性对可穿戴式设备的应用带来深远的影响,未来柔性屏幕将随着个人智能终端的不断渗透而广泛应用。
但是,可折叠屏幕终端存在如下问题,例如折叠柔性屏幕的智能手机,在语音通话或者视频通话过程中,或者其他相对应的听筒和话筒都使用的场景中(例如应用程序语音聊天),屏幕上下折叠后,听筒与话筒位置都折叠到屏幕的上端,这样可能引起电子设备无法正常进行通话。
发明内容
本发明实施例提供一种电子设备的控制方法及电子设备,以解决现有技术中,电子设备可折叠屏幕折叠后,可能引起电子设备无法正常通话的技术问题。
为了解决上述技术问题,本发明是这样实现的:
第一方面,本发明实施例提供了一种电子设备的控制方法,该电子设备包括音频组件和可折叠为第一显示区域和第二显示区域的折叠显示屏,音频组件包括:设置于电子设备的第一边框上的第一音频组件,设置于电子设备的第二边框上的第二音频组件,以及设置于电子设备的第三边框上的第三音频组件;该方法包括:
在进入通话状态的情况下,获取折叠显示屏的折叠角度;
根据预设对应关系,确定折叠角度对应的音频组件的开关控制信息;
根据开关控制信息,控制第一音频组件、第二音频组件以及第三音频组件的开关状态。
第二方面,本发明实施例提供了一种电子设备,该电子设备包括音频组件和可折叠为第一显示区域和第二显示区域的折叠显示屏,音频组件包括:设置于电子设备的第一边框上的第一音频组件,设置于电子设备的第二边框上的第二音频组件,以及设置于电子设备的第三边框上的第三音频组件;
该电子设备还包括:
角度获取模块,用于在进入通话状态的情况下,获取折叠显示屏的折叠角度;
信息确定模块,用于根据预设对应关系,确定折叠角度对应的音频组件的开关控制信息;
开关控制模块,用于根据开关控制信息,控制第一音频组件、第二音频组件以及第三音频组件的开关状态。
第三方面,本发明实施例还提供了一种电子设备,该电子设备包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行计算机程序时实现如上所述的电子设备的控制方法中的步骤。
第四方面,本发明实施例还提供了一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现如上所述的电子设备的控制方法中的步骤。
在本发明实施例中,在进入通话状态的情况下,获取折叠显示屏的折叠角度;然后根据预设对应关系,确定折叠角度对应的音频组件的开关控制信息;最后根据开关控制信息,控制第一音频组件、第二音频组件以及第三音频组件的开关状态;预设对应关系中包括使电子设备正常通话所需的每个音频组件的开关控制信息,通过预设对应关系中的开关控制信息控制每个音频组件中的器件的开关状态,使电子设备在其可折叠屏幕的不同折叠角度下保持正常的通话功能,避免因电子设备的可折叠屏幕折叠后音频组件互相干扰。
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1表示本发明的实施例提供的电子设备的控制方法的流程图之一;
图2表示本发明的实施例中使用的电子设备的示意图之一;
图3表示本发明的实施例中使用的电子设备的示意图之二;
图4表示本发明的实施例的第一示例的示意图;
图5表示本发明的实施例的第二示例的示意图;
图6表示本发明的实施例的第三示例的示意图;
图7表示本发明的实施例提供的电子设备的框图之一;
图8表示本发明的实施例提供的电子设备的框图之二。
附图标记说明:
L1、第一边框;L2、第二边框;L3、第三边框;D1、第一音频组件;D2、第二音频组件;D3、第三音频组件;M1、第一麦克风;M2、第二麦 克风;T2、第二听筒;T3、第三听筒;Y2、第二扬声器;Y3、第三扬声器。
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
应理解,说明书通篇中提到的“一个实施例”或“一实施例”意味着与实施例有关的特定特征、结构或特性包括在本发明的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中。
在本发明的各种实施例中,应理解,下述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。
参见图1,本发明实施例提供了一种电子设备的控制方法,如图2所示,电子设备包括音频组件和可折叠为第一显示区域O1和第二显示区域O2的折叠显示屏。例如,电子设备可以为智能手机或可穿戴设备。折叠显示屏可以弯曲扭折,具有透光率更高、功耗更低、性能更稳定,更轻更薄的特点。
音频组件包括:设置于电子设备的第一边框L1上的第一音频组件D1,设置于电子设备的第二边框L2上的第二音频组件D2,以及设置于电子设备的第三边框L3上的第三音频组件D3。音频组件可以是麦克风、扬声器、听筒等组件中的至少一个。
该方法包括:
步骤101,在进入通话状态的情况下,获取折叠显示屏的折叠角度。
其中,通话可以是语音通话、视频通话。检测到电子设备进入通话状 态后,获取折叠显示屏的折叠角度,折叠角度即第一显示区域和第二显示区域之间的折叠角度。可以理解的是,第一显示区域、第二显示区域由折叠显示屏折叠而成,折叠之后将原本的显示屏分为两个显示区域。
步骤102,根据预设对应关系,确定折叠角度对应的音频组件的开关控制信息。
其中,预设对应关系为折叠角度与开关控制信息的对应关系。预设对应关系中,每个角度或每段连续的角度范围对应不同的开关控制信息,开关控制信息包括开启和/或关闭。预设对应关系为预先设定的,其中包括使电子设备正常通话所需的每个音频组件的开关控制信息。
具体地,当第一显示区域与第二显示区域形成的折叠角度不同时,分别单独控制每个音频组件的开关状态。例如,参见图2,当折叠角度为0度或180度,即第一显示区域和第二显示区域完全展开至一个平面内,此时若第一显示区域位于上方(以重力方向为基准),则应控制第一音频组件D1的听筒开启,同时控制第三音频组件D3的麦克风开启,以使电子设备的通话功能正常使用。
步骤103,根据开关控制信息,控制第一音频组件D1、第二音频组件D2以及第三音频组件D3的开关状态。
其中,根据开关控制信息分别控制第一音频组件D1、第二音频组件D2以及第三音频组件D3中的每个器件的开关状态,实现电子设备的正常通话。
本发明上述实施例中,在进入通话状态的情况下,获取折叠显示屏的折叠角度。然后根据预设对应关系,确定折叠角度对应的音频组件的开关控制信息。最后根据开关控制信息,控制第一音频组件D1、第二音频组件D2以及第三音频组件D3的开关状态。预设对应关系中包括使电子设备正常通话所需的每个音频组件的开关控制信息,通过预设对应关系中的开关控制信息控制每个音频组件中的器件的开关状态,使电子设备在其可折叠屏幕的不同折叠角度下保持正常的通话功能,避免因电子设备的可折叠屏幕折叠后音频组件互相干扰。本发明实施例解决了现有技术中,电子设备可折叠屏幕折叠后,可能引起电子设备无法正常通话的技术问题。
此外,如图3所示,本发明实施例中,第二边框L2上设置的麦克风、扬声器可以位于第一显示区域或第二显示区域,还可设置在二者中间的位置。
可选地,如图3所示,本发明实施例中,第一音频组件D1包括第一麦克风M1,第二音频组件D2包括第二麦克风M2和第二听筒T2,第三音频组件D3包括第三听筒T3。其中,听筒又称耳机或耳筒,是一对转换单元,它接受媒体播放器或接收器所发出的电讯号,利用贴近耳朵的扬声器将其转化成可以听到的音波。麦克风又称话筒,为传声器,是声电转换的换能器,通过声波作用到电声元件上产生电压,再转为电能。
根据预设对应关系,确定折叠角度对应的音频组件的开关控制信息的步骤,可以包括情况一和情况二:
情况一:若折叠角度的数值小于第一预设角度值,则开关控制信息为第一控制信息或第二控制信息。其中,第一控制信息包括:关闭第一麦克风M1,开启第二麦克风M2,开启第三听筒T3,且关闭第二听筒T2。第二控制信息包括:关闭第二麦克风M2,开启第一麦克风M1,开启第二听筒T2,且关闭第三听筒T3。
其中,若折叠角度的数值小于第一预设角度值,例如预设数值为30度或以下,则可确定折叠显示屏处于完全折叠状态,两个显示区域完全重合,则此时可能有两种状态。作为第一示例,参见图4,若第一显示区域朝向用户(面部或耳朵),则关闭第一麦克风M1,开启第二麦克风M2,开启第三听筒T3,且关闭第二听筒T2,避免第二听筒T2干扰第三听筒T3。作为第二示例,参见图5,若第二显示区域朝向用户,则关闭第二麦克风M2,开启第一麦克风M1,开启第二听筒T2,且关闭第三听筒T3,以实现正常通话。
情况二:若折叠角度的数值大于或等于第一预设角度值,且小于第二预设角度值,第二预设角度值可以是120度。且折叠角度的折叠方向为背离第一显示区域或第二显示区域朝向的方向,即两个显示区域朝屏幕背侧的方向翻折,则开关控制信息为第三控制信息。作为第三示例,如图6所示,第三控制信息包括:开启第三听筒T3,关闭第二听筒T2,避免二者 互相干扰。
进一步地,本发明实施例中,上述情况一中,确定若折叠角度的数值小于第一预设角度值,则开关控制信息为第一控制信息或第二控制信息的步骤,包括:
获取第一边框L1与重力方向的第一夹角,以及第二边框L2与重力方向的第二夹角。
若第一夹角大于或等于第二夹角,则控制信息为第一控制信息,即电子设备偏向横向放置。
若第一夹角小于第二夹角,则控制信息为第二控制信息,即电子设备偏向纵向放置。
也就是说,根据电子设备放置的方向,确定控制信息。
可选地,本发明实施例中,该方法还包括:
接收用于录取音频的第二输入,即进行音频录制时,包括发送语音消息。
响应于第二输入,获取第一显示区域和第二显示区域之间的折叠角度。
若折叠角度的数值大于或等于第三预设角度值,且小于第四预设角度值,且折叠角度的折叠方向为面对第一显示区域或第二显示区域朝向的方向,即朝向屏幕的一侧翻折,则控制信息为第四控制信息。其中,第四控制信息包括:开启第一麦克风M1以及第二麦克风M2,则同时开启两个麦克风,增强录音效果。
可选地,本发明实施例中,如图3所示,第二音频组件D2还包括第二扬声器Y2,第三音频组件D3还包括第三扬声器Y3。
该方法还可以包括:
接收用于播放音频的第三输入,即播放音频,例如音视频文件或语音消息时。
响应于第三输入,获取第一显示区域和第二显示区域之间的折叠角度。
若折叠角度的数值大于或等于第五预设角度值,且小于第六预设角度 值,且折叠角度的折叠方向为面对第一显示区域或第二显示区域朝向的方向,则开关控制信息为第五控制信息。其中,第五控制信息包括:开启第二扬声器Y2以及第三扬声器Y3,同时开启两个扬声器,同时开启第二麦克风M2和第三扬声器Y3,多个扬声器同时播放声音,能够形成环绕音,提升声音播放质量。
可选地,本发明实施例中,根据开关控制信息,控制第一音频组件D1、第二音频组件D2以及第三音频组件D3的开关状态的步骤,包括:
将开关控制信息发送至电子设备的硬件抽象(Hardware Abstract Layer,HAL)层,通过HAL层控制第一音频组件D1、第二音频组件D2和/或第三音频组件D3。
其中,HAL层是位于操作系统内核与硬件电路之间的接口层。HAL层能够向下屏蔽硬件驱动模块的实现细节,同时向上提供硬件访问服务。电子设备将开关控制信息发送至HAL层,通过HAL层设置麦克风、扬声器的通路,从而进行麦克风、扬声器的开启与关闭切换设置,切换相对应或者同时打开多个话筒/扬声器。
可选地,本发明实施例中,折叠显示屏在弯曲时,可通过对屏幕电子压力传感器阵列的读取,获取当前屏幕的系列压力值,通过查询预先保存的压力值和角度的对应关系,计算获取屏幕折叠的角度。
本发明实施例中,在进入通话状态的情况下,获取折叠显示屏的折叠角度。然后根据预设对应关系,确定折叠角度对应的音频组件的开关控制信息。最后根据开关控制信息,控制第一音频组件D1、第二音频组件D2以及第三音频组件D3的开关状态。预设对应关系中包括使电子设备正常通话所需的每个音频组件的开关控制信息,通过预设对应关系中的开关控制信息控制每个音频组件中的器件的开关状态,使电子设备在其可折叠屏幕的不同折叠角度下保持正常的通话功能,避免因电子设备的可折叠屏幕折叠后音频组件互相干扰。
以上介绍了本发明实施例提供的电子设备的控制方法,下面将结合附图介绍本发明实施例提供的电子设备。
参见图7,本发明实施例提供了一种电子设备700,电子设备700包括 音频组件和可折叠为第一显示区域和第二显示区域的折叠显示屏,音频组件包括:设置于电子设备700的第一边框上的第一音频组件,设置于电子设备700的第二边框上的第二音频组件,以及设置于电子设备的第三边框上的第三音频组件。
该电子设备700还包括:
角度获取模块701,用于在进入通话状态的情况下,获取折叠显示屏的折叠角度。
其中,通话可以是语音通话、视频通话。检测到电子设备进入通话状态后,获取折叠显示屏的折叠角度,折叠角度即第一显示区域和第二显示区域之间的折叠角度。可以理解的是,第一显示区域、第二显示区域由折叠显示屏折叠而成,折叠之后将原本的显示屏分为两个显示区域。
信息确定模块702,用于根据预设对应关系,确定折叠角度对应的音频组件的开关控制信息。
其中,预设对应关系为折叠角度与开关控制信息的对应关系。预设对应关系中,每个角度或每段连续的角度范围对应不同的开关控制信息,开关控制信息包括开启和/或关闭。预设对应关系为预先设定的,其中包括使电子设备正常通话所需的每个音频组件的开关控制信息。
开关控制模块703,用于根据开关控制信息,控制第一音频组件、第二音频组件以及第三音频组件的开关状态。
其中,根据开关控制信息分别控制第一音频组件、第二音频组件以及第三音频组件中的每个器件的开关状态,实现电子设备的正常通话。
可选地,本发明实施例中,第一音频组件包括第一麦克风,第二音频组件包括第二麦克风和第二听筒,第三音频组件包括第三听筒。
信息确定模块702包括:
第一确定子模块,用于若折叠角度的数值小于第一预设角度值,则开关控制信息为第一控制信息或第二控制信息。其中,第一控制信息包括:关闭第一麦克风,开启第二麦克风,开启第三听筒,且关闭第二听筒。第二控制信息包括:关闭第二麦克风,开启第一麦克风,开启第二听筒,且关闭第三听筒。
第二确定子模块,用于若折叠角度的数值大于或等于第一预设角度值,且小于第二预设角度值,且折叠角度的折叠方向为背离第一显示区域或第二显示区域朝向的方向,则开关控制信息为第三控制信息。其中,第三控制信息包括:开启第三听筒,关闭第二听筒。
可选地,本发明实施例中,第一确定子模块包括:
角度获取单元,用于获取第一边框与重力方向的第一夹角,以及第二边框与重力方向的第二夹角。
第一确定单元,用于若第一夹角大于或等于第二夹角,则控制信息为第一控制信息。
第二确定单元,用于若第一夹角小于第二夹角,则控制信息为第二控制信息。
可选地,本发明实施例中,该电子设备700还包括:
录音控制模块,用于接收用于录取音频的第二输入。
响应于第二输入,获取第一显示区域和第二显示区域之间的折叠角度。
若折叠角度的数值大于或等于第三预设角度值,且小于第四预设角度值,且折叠角度的折叠方向为面对第一显示区域或第二显示区域朝向的方向,则控制信息为第四控制信息。其中,第四控制信息包括:开启第一麦克风以及第二麦克风。
可选地,本发明实施例中,第二音频组件包括第二扬声器,第三音频组件包括第三扬声器。
该电子设备700还包括:
播放控制模块,用于接收用于播放音频的第三输入。
响应于第三输入,获取第一显示区域和第二显示区域之间的折叠角度。
若折叠角度的数值大于或等于第五预设角度值,且小于第六预设角度值,且折叠角度的折叠方向为面对第一显示区域或第二显示区域朝向的方向,则开关控制信息为第五控制信息。其中,第五控制信息包括:开启第二扬声器以及第三扬声器。
可选地,本发明实施例中,开关控制模块703包括:
信息发送子模块,用于将开关控制信息发送至电子设备的硬件抽象HAL层,通过HAL层控制第一音频组件、第二音频组件和/或第三音频组件。
本发明实施例提供的电子设备700能够实现图1至图6的方法实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。
本发明实施例中,角度获取模块701在进入通话状态的情况下,获取折叠显示屏的折叠角度。信息确定模块702根据预设对应关系,确定折叠角度对应的音频组件的开关控制信息。开关控制模块703根据开关控制信息,控制第一音频组件、第二音频组件以及第三音频组件的开关状态。预设对应关系中包括使电子设备700正常通话所需的每个音频组件的开关控制信息,通过预设对应关系中的开关控制信息控制每个音频组件中的器件的开关状态,使电子设备700在其可折叠屏幕的不同折叠角度下保持正常的通话功能,避免因电子设备700的可折叠屏幕折叠后音频组件互相干扰。
图8为实现本发明各个实施例的一种电子设备的硬件结构示意图。
该电子设备800包括但不限于:射频单元801、网络模块802、音频输出单元803、输入单元804、传感器805、显示单元806、用户输入单元807、接口单元808、存储器809、处理器810、以及电源811等部件。本领域技术人员可以理解,图8中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。
电子设备包括音频组件和可折叠为第一显示区域和第二显示区域的折叠显示屏,音频组件包括:设置于电子设备的第一边框上的第一音频组件,设置于电子设备的第二边框上的第二音频组件,以及设置于电子设备的第三边框上的第三音频组件。
处理器810,用于在进入通话状态的情况下,获取折叠显示屏的折叠 角度。
根据预设对应关系,确定折叠角度对应的音频组件的开关控制信息。
根据开关控制信息,控制第一音频组件、第二音频组件以及第三音频组件的开关状态。
本发明的实施例中,在进入通话状态的情况下,获取折叠显示屏的折叠角度。然后根据预设对应关系,确定折叠角度对应的音频组件的开关控制信息。最后根据开关控制信息,控制第一音频组件、第二音频组件以及第三音频组件的开关状态。预设对应关系中包括使电子设备正常通话所需的每个音频组件的开关控制信息,通过预设对应关系中的开关控制信息控制每个音频组件中的器件的开关状态,使电子设备在其可折叠屏幕的不同折叠角度下保持正常的通话功能,避免因电子设备的可折叠屏幕折叠后音频组件互相干扰。
需要说明的是,本实施例中上述电子设备可以实现本发明实施例中方法实施例中的各个过程,以及达到相同的有益效果,为避免重复,此处不再赘述。
应理解的是,本发明实施例中,射频单元801可用于收发信息或通话过程中,信号的接收和发送,具体地,将来自基站的下行数据接收后,给处理器810处理;另外,将上行的数据发送给基站。通常,射频单元801包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元801还可以通过无线通信系统与网络和其他设备通信。
电子设备通过网络模块802为用户提供了无线的宽带互联网访问,例如帮助用户收发电子邮件、浏览网页和访问流式媒体等。
音频输出单元803可以将射频单元801或网络模块802接收的或者在存储器809中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元803还可以提供与电子设备800执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元803可以包括扬声器、蜂鸣器以及受话器等。
输入单元804用于接收音频或视频信号。输入单元804可以包括图形 处理器(Graphics Processing Unit,GPU)8041和麦克风8042,图形处理器8041对在视频捕获模式或图像捕获模式中由图像捕获装置(例如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元806上。经图形处理器8041处理后的图像帧可以存储在存储器809(或其它存储介质)中或者经由射频单元801或网络模块802进行发送。麦克风8042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元801发送到移动通信基站的格式输出。
电子设备800还可以包括至少一种传感器805,例如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板8061的亮度,接近传感器可在电子设备800移动到耳边时,关闭显示面板8061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(例如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(例如计步器、敲击)等;传感器805还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。
显示单元806用于显示由用户输入的信息或提供给用户的信息。显示单元806可包括显示面板8061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板8061。
用户输入单元807可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元807包括触控面板8071以及其他输入设备8072。触控面板8071,也称为触摸屏,可收集用户在其上或附近的触摸操作(例如用户使用手指、触笔等任何适合的物体或附件在触控面板8071上或在触控面板8071附近的操作)。触控面板8071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将 信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器810,接收处理器810发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板8071。除了触控面板8071,用户输入单元807还可以包括其他输入设备8072。具体地,其他输入设备8072可以包括但不限于物理键盘、功能键(例如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
进一步的,触控面板8071可覆盖在显示面板8061上,当触控面板8071检测到在其上或附近的触摸操作后,传送给处理器810以确定触摸事件的类型,随后处理器810根据触摸事件的类型在显示面板8061上提供相应的视觉输出。虽然在图8中,触控面板8071与显示面板8061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板8071与显示面板8061集成而实现电子设备的输入和输出功能,具体此处不做限定。
接口单元808为外部装置与电子设备800连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元808可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备800内的一个或多个元件或者可以用于在电子设备800和外部装置之间传输数据。
存储器809可用于存储软件程序以及各种数据。存储器809可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(例如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(例如音频数据、电话本等)等。此外,存储器809可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
处理器810是电子设备的控制中心,利用各种接口和线路连接整个电 子设备的各个部分,通过运行或执行存储在存储器809内的软件程序和/或模块,以及调用存储在存储器809内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器810可包括一个或多个处理单元;优选地,处理器810可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器810中。
电子设备800还可以包括给各个部件供电的电源811(例如电池),优选地,电源811可以通过电源管理系统与处理器810逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
另外,电子设备800包括一些未示出的功能模块,在此不再赘述。
优选地,本发明实施例还提供一种电子设备,包括处理器810,存储器809,存储在存储器809上并可在处理器810上运行的计算机程序,该计算机程序被处理器810执行时实现上述电子设备的控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述电子设备的控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,计算机可读存储介质可以是非暂态存储介质,例如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
上面参考根据本发明的实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本公开的各方面。应当理解,流程图和/或框 图中的每个方框以及流程图和/或框图中各方框的组合可以由计算机程序指令实现。这些计算机程序指令可被提供给通用计算机、专用计算机、或其它可编程数据处理装置的处理器,以产生一种机器,使得经由计算机或其它可编程数据处理装置的处理器执行的这些指令使能对流程图和/或框图的一个或多个方框中指定的功能/动作的实现。这种处理器可以是但不限于是通用处理器、专用处理器、特殊应用处理器或者现场可编程逻辑阵列。还可理解,框图和/或流程图中的每个方框以及框图和/或流程图中的方框的组合,也可以由执行指定的功能或动作的专用硬件来实现,或可由专用硬件和计算机指令的组合来实现。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(例如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。
Claims (10)
- 一种电子设备的控制方法,所述电子设备包括音频组件和可折叠为第一显示区域和第二显示区域的折叠显示屏,所述音频组件包括:设置于所述电子设备的第一边框上的第一音频组件,设置于所述电子设备的第二边框上的第二音频组件,以及设置于所述电子设备的第三边框上的第三音频组件,所述方法包括:在进入通话状态的情况下,获取所述折叠显示屏的折叠角度;根据预设对应关系,确定所述折叠角度对应的音频组件的开关控制信息;根据所述开关控制信息,控制所述第一音频组件、第二音频组件以及第三音频组件的开关状态。
- 根据权利要求1所述的电子设备的控制方法,其中,所述第一音频组件包括第一麦克风,所述第二音频组件包括第二麦克风和第二听筒,所述第三音频组件包括第三听筒;所述根据预设对应关系,确定所述折叠角度对应的音频组件的开关控制信息的步骤,包括:若所述折叠角度的数值小于第一预设角度值,则所述开关控制信息为第一控制信息或第二控制信息;其中,第一控制信息包括:关闭所述第一麦克风,开启所述第二麦克风,开启所述第三听筒,且关闭所述第二听筒;第二控制信息包括:关闭所述第二麦克风,开启所述第一麦克风,开启所述第二听筒,且关闭所述第三听筒;若所述折叠角度的数值大于或等于第一预设角度值,且小于第二预设角度值,且所述折叠角度的折叠方向为背离所述第一显示区域或第二显示区域朝向的方向,则所述开关控制信息为第三控制信息;其中,所述第三控制信息包括:开启所述第三听筒,关闭所述第二听筒。
- 根据权利要求2所述的电子设备的控制方法,其中,所述若所述折叠角度的数值小于第一预设角度值,则所述开关控制信息为第一控制信息 或第二控制信息的步骤,包括:获取所述第一边框与重力方向的第一夹角,以及所述第二边框与重力方向的第二夹角;若所述第一夹角大于或等于所述第二夹角,则所述控制信息为第一控制信息;若所述第一夹角小于所述第二夹角,则所述控制信息为第二控制信息。
- 根据权利要求2所述的电子设备的控制方法,其中,所述方法还包括:接收用于录取音频的第二输入;响应于所述第二输入,获取所述第一显示区域和第二显示区域之间的折叠角度;若所述折叠角度的数值大于或等于第三预设角度值,且小于第四预设角度值,且所述折叠角度的折叠方向为面对所述第一显示区域或第二显示区域朝向的方向,则所述控制信息为第四控制信息;其中,所述第四控制信息包括:开启所述第一麦克风以及第二麦克风。
- 根据权利要求2所述的电子设备的控制方法,其中,所述第二音频组件包括第二扬声器,所述第三音频组件包括第三扬声器;所述方法还包括:接收用于播放音频的第三输入;响应于所述第三输入,获取所述第一显示区域和第二显示区域之间的折叠角度;若所述折叠角度的数值大于或等于第五预设角度值,且小于第六预设角度值,且所述折叠角度的折叠方向为面对所述第一显示区域或第二显示区域朝向的方向,则所述开关控制信息为第五控制信息;其中,所述第五控制信息包括:开启所述第二扬声器以及第三扬声器。
- 根据权利要求2所述的电子设备的控制方法,其中,所述根据所述开关控制信息,控制所述第一音频组件、第二音频组件以及第三音频组件的开关状态的步骤,包括:将所述开关控制信息发送至所述电子设备的硬件抽象HAL层,通过所述HAL层控制所述第一音频组件、第二音频组件和/或第三音频组件。
- 一种电子设备,所述电子设备包括音频组件和可折叠为第一显示区域和第二显示区域的折叠显示屏,所述音频组件包括:设置于所述电子设备的第一边框上的第一音频组件,设置于所述电子设备的第二边框上的第二音频组件,以及设置于所述电子设备的第三边框上的第三音频组件;所述电子设备还包括:角度获取模块,用于在进入通话状态的情况下,获取所述折叠显示屏的折叠角度;信息确定模块,用于根据预设对应关系,确定所述折叠角度对应的音频组件的开关控制信息;开关控制模块,用于根据所述开关控制信息,控制所述第一音频组件、第二音频组件以及第三音频组件的开关状态。
- 根据权利要求7所述的电子设备,其中,所述第一音频组件包括第一麦克风,所述第二音频组件包括第二麦克风和第二听筒,所述第三音频组件包括第三听筒;所述信息确定模块包括:第一确定子模块,用于若所述折叠角度的数值小于第一预设角度值,则所述开关控制信息为第一控制信息或第二控制信息;其中,第一控制信息包括:关闭所述第一麦克风,开启所述第二麦克风,开启所述第三听筒,且关闭所述第二听筒;第二控制信息包括:关闭所述第二麦克风,开启所述第一麦克风,开启所述第二听筒,且关闭所述第三听筒;第二确定子模块,用于若所述折叠角度的数值大于或等于第一预设角度值,且小于第二预设角度值,且所述折叠角度的折叠方向为背离所述第一显示区域或第二显示区域朝向的方向,则所述开关控制信息为第三控制信息;其中,所述第三控制信息包括:开启所述第三听筒,关闭所述第二听筒。
- 一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时 实现如权利要求1至6中任一项所述的电子设备的控制方法的步骤。
- 一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至6中任一项所述的电子设备的控制方法的步骤。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910944741.8A CN110730260B (zh) | 2019-09-30 | 2019-09-30 | 电子设备的控制方法及电子设备 |
| CN201910944741.8 | 2019-09-30 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2021063249A1 true WO2021063249A1 (zh) | 2021-04-08 |
Family
ID=69218737
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2020/117555 Ceased WO2021063249A1 (zh) | 2019-09-30 | 2020-09-24 | 电子设备的控制方法及电子设备 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN110730260B (zh) |
| WO (1) | WO2021063249A1 (zh) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113259515A (zh) * | 2021-06-15 | 2021-08-13 | 维沃移动通信有限公司 | 电子设备 |
| CN114745635A (zh) * | 2022-03-28 | 2022-07-12 | 联想(北京)有限公司 | 一种信息处理方法和装置 |
Families Citing this family (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110730260B (zh) * | 2019-09-30 | 2020-11-06 | 维沃移动通信有限公司 | 电子设备的控制方法及电子设备 |
| CN113259810B (zh) * | 2020-02-11 | 2025-06-03 | 北京小米移动软件有限公司 | 音频模组和终端设备 |
| CN114338904B (zh) * | 2020-09-27 | 2022-12-30 | 华为技术有限公司 | 一种来电提示方法、电子设备及可读存储介质 |
| CN112261180B (zh) * | 2020-10-12 | 2022-03-08 | 维沃移动通信有限公司 | 电子设备、电子设备的控制方法 |
| CN112261201B (zh) * | 2020-10-20 | 2022-08-05 | Oppo广东移动通信有限公司 | 通话方法、装置、移动终端及存储介质 |
| CN114629977A (zh) * | 2020-12-10 | 2022-06-14 | 北京小米移动软件有限公司 | 音频播放装置及方法、电子设备、存储介质 |
| CN113630695B (zh) * | 2021-08-06 | 2023-05-26 | 维沃移动通信有限公司 | 声道切换方法、装置和电子设备 |
| CN115103231B (zh) * | 2022-06-30 | 2025-09-30 | 维沃移动通信有限公司 | 视频通话方法、装置、第一电子设备及第二电子设备 |
| CN116137690B (zh) * | 2023-02-17 | 2026-01-27 | 北京声加科技有限公司 | 一种可折叠电子设备及其麦克风设置方法 |
| CN120915865A (zh) * | 2024-05-06 | 2025-11-07 | 华为技术有限公司 | 音频播放方法及电子设备 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20140210740A1 (en) * | 2013-01-31 | 2014-07-31 | Samsung Electronics Co., Ltd | Portable apparatus having plurality of touch screens and sound output method thereof |
| CN108134868A (zh) * | 2017-01-03 | 2018-06-08 | 中兴通讯股份有限公司 | 一种扬声器控制方法及移动终端 |
| CN108551636A (zh) * | 2018-05-29 | 2018-09-18 | 维沃移动通信有限公司 | 一种扬声器控制方法及移动终端 |
| CN109462800A (zh) * | 2018-12-28 | 2019-03-12 | 北京小米移动软件有限公司 | 一种具有双声道的电子设备 |
| CN110730260A (zh) * | 2019-09-30 | 2020-01-24 | 维沃移动通信有限公司 | 电子设备的控制方法及电子设备 |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN2515913Y (zh) * | 2001-12-29 | 2002-10-09 | 魏国扬 | 有线免持听筒之改良装置 |
| US7525533B2 (en) * | 2005-09-29 | 2009-04-28 | Sony Corporation | Audio communication device and audio communication method |
| US7953462B2 (en) * | 2008-08-04 | 2011-05-31 | Vartanian Harry | Apparatus and method for providing an adaptively responsive flexible display device |
| KR102141044B1 (ko) * | 2012-12-03 | 2020-08-04 | 삼성전자주식회사 | 복수의 터치스크린을 가지는 휴대 장치 및 복수의 터치스크린을 가지는 휴대 장치의 사운드 출력방법 |
| WO2017113319A1 (zh) * | 2015-12-31 | 2017-07-06 | 深圳市柔宇科技有限公司 | 柔性穿戴设备 |
| CN209057356U (zh) * | 2018-12-28 | 2019-07-02 | 北京小米移动软件有限公司 | 一种具有双声道的电子设备 |
-
2019
- 2019-09-30 CN CN201910944741.8A patent/CN110730260B/zh active Active
-
2020
- 2020-09-24 WO PCT/CN2020/117555 patent/WO2021063249A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20140210740A1 (en) * | 2013-01-31 | 2014-07-31 | Samsung Electronics Co., Ltd | Portable apparatus having plurality of touch screens and sound output method thereof |
| CN108134868A (zh) * | 2017-01-03 | 2018-06-08 | 中兴通讯股份有限公司 | 一种扬声器控制方法及移动终端 |
| CN108551636A (zh) * | 2018-05-29 | 2018-09-18 | 维沃移动通信有限公司 | 一种扬声器控制方法及移动终端 |
| CN109462800A (zh) * | 2018-12-28 | 2019-03-12 | 北京小米移动软件有限公司 | 一种具有双声道的电子设备 |
| CN110730260A (zh) * | 2019-09-30 | 2020-01-24 | 维沃移动通信有限公司 | 电子设备的控制方法及电子设备 |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113259515A (zh) * | 2021-06-15 | 2021-08-13 | 维沃移动通信有限公司 | 电子设备 |
| CN113259515B (zh) * | 2021-06-15 | 2024-01-19 | 维沃移动通信有限公司 | 电子设备 |
| CN114745635A (zh) * | 2022-03-28 | 2022-07-12 | 联想(北京)有限公司 | 一种信息处理方法和装置 |
| CN114745635B (zh) * | 2022-03-28 | 2023-10-27 | 联想(北京)有限公司 | 一种信息处理方法和装置 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110730260B (zh) | 2020-11-06 |
| CN110730260A (zh) | 2020-01-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110730260B (zh) | 电子设备的控制方法及电子设备 | |
| CN108551636B (zh) | 一种扬声器控制方法及移动终端 | |
| US12542844B2 (en) | Electronic device and control method thereof | |
| CN107770760B (zh) | 一种识别蓝牙设备的类型的方法及移动终端 | |
| CN111459456B (zh) | 一种音频的控制方法及电子设备 | |
| CN109739465B (zh) | 音频输出方法及移动终端 | |
| WO2020238635A1 (zh) | 移动终端及出音口的切换方法 | |
| WO2021109907A1 (zh) | 应用分享方法、第一电子设备及计算机可读存储介质 | |
| CN108040313A (zh) | 一种播放参数控制方法及电子设备 | |
| CN111638779A (zh) | 音频播放控制方法、装置、电子设备及可读存储介质 | |
| WO2021098705A1 (zh) | 显示方法及电子设备 | |
| US20210392221A1 (en) | Mobile terminal and sound output control method | |
| CN111093137B (zh) | 一种音量控制方法、设备及计算机可读存储介质 | |
| CN108196815B (zh) | 一种通话声音的调节方法和移动终端 | |
| WO2021147718A1 (zh) | 音频传输方法及电子设备 | |
| CN107948874A (zh) | 一种终端控制方法、移动终端 | |
| WO2020238445A1 (zh) | 屏幕录制方法及终端 | |
| CN111694536A (zh) | 音频控制方法、电子设备及计算机可读存储介质 | |
| WO2021238844A1 (zh) | 音频输出方法及电子设备 | |
| WO2021169869A1 (zh) | 音频播放装置、音频播放方法及电子设备 | |
| WO2021136141A1 (zh) | 播放方法及电子设备 | |
| CN110351407A (zh) | 一种音频播放方法及移动终端 | |
| WO2021185166A1 (zh) | 音频传输方法及电子设备 | |
| CN111459447B (zh) | 一种音量调节显示方法及电子设备 | |
| CN110913070B (zh) | 一种通话方法及终端设备 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20871779 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 20871779 Country of ref document: EP Kind code of ref document: A1 |