WO2023284568A1 - 一种电子设备的按键控制方法及电子设备 - Google Patents
一种电子设备的按键控制方法及电子设备 Download PDFInfo
- Publication number
- WO2023284568A1 WO2023284568A1 PCT/CN2022/103407 CN2022103407W WO2023284568A1 WO 2023284568 A1 WO2023284568 A1 WO 2023284568A1 CN 2022103407 W CN2022103407 W CN 2022103407W WO 2023284568 A1 WO2023284568 A1 WO 2023284568A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- button
- function
- electronic device
- mobile phone
- screen
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 87
- 230000006870 function Effects 0.000 claims description 340
- 230000001960 triggered effect Effects 0.000 claims description 32
- 238000004590 computer program Methods 0.000 claims description 12
- 230000001360 synchronised effect Effects 0.000 abstract description 7
- 230000036544 posture Effects 0.000 description 57
- 238000007726 management method Methods 0.000 description 27
- 230000001133 acceleration Effects 0.000 description 18
- 238000004891 communication Methods 0.000 description 18
- 238000013507 mapping Methods 0.000 description 18
- 238000012545 processing Methods 0.000 description 16
- 238000010586 diagram Methods 0.000 description 15
- 230000000694 effects Effects 0.000 description 10
- 230000008569 process Effects 0.000 description 10
- 238000010295 mobile communication Methods 0.000 description 9
- 238000012544 monitoring process Methods 0.000 description 9
- 230000005484 gravity Effects 0.000 description 7
- 238000005316 response function Methods 0.000 description 7
- 230000008859 change Effects 0.000 description 5
- 229920001621 AMOLED Polymers 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 238000013461 design Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 238000013528 artificial neural network Methods 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 230000003247 decreasing effect Effects 0.000 description 2
- 230000014509 gene expression Effects 0.000 description 2
- 239000002096 quantum dot Substances 0.000 description 2
- 230000005855 radiation Effects 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 210000000988 bone and bone Anatomy 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000003862 health status Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003238 somatosensory effect Effects 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 230000006641 stabilisation Effects 0.000 description 1
- 238000011105 stabilization Methods 0.000 description 1
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/0206—Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings
- H04M1/0241—Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings using relative motion of the body parts to change the operational status of the telephone set, e.g. switching on/off, answering incoming call
- H04M1/0245—Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings using relative motion of the body parts to change the operational status of the telephone set, e.g. switching on/off, answering incoming call using open/close detection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/16—Constructional details or arrangements
- G06F1/1613—Constructional details or arrangements for portable computers
- G06F1/1633—Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
- G06F1/1637—Details related to the display arrangement, including those related to the mounting of the display in the housing
- G06F1/1647—Details related to the display arrangement, including those related to the mounting of the display in the housing including at least an additional display
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/16—Constructional details or arrangements
- G06F1/1613—Constructional details or arrangements for portable computers
- G06F1/1633—Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
- G06F1/1637—Details related to the display arrangement, including those related to the mounting of the display in the housing
- G06F1/1641—Details related to the display arrangement, including those related to the mounting of the display in the housing the display being formed by a plurality of foldable display components
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/16—Constructional details or arrangements
- G06F1/1613—Constructional details or arrangements for portable computers
- G06F1/1633—Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
- G06F1/1637—Details related to the display arrangement, including those related to the mounting of the display in the housing
- G06F1/1652—Details related to the display arrangement, including those related to the mounting of the display in the housing the display being flexible, e.g. mimicking a sheet of paper, or rollable
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/16—Constructional details or arrangements
- G06F1/1613—Constructional details or arrangements for portable computers
- G06F1/1633—Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
- G06F1/1662—Details related to the integrated keyboard
- G06F1/1671—Special purpose buttons or auxiliary keyboards, e.g. retractable mini keypads, keypads or buttons that remain accessible at closed laptop
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/16—Constructional details or arrangements
- G06F1/1613—Constructional details or arrangements for portable computers
- G06F1/1633—Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
- G06F1/1675—Miscellaneous details related to the relative movement between the different enclosures or enclosure parts
- G06F1/1677—Miscellaneous details related to the relative movement between the different enclosures or enclosure parts for detecting open or closed state or particular intermediate positions assumed by movable parts of the enclosure, e.g. detection of display lid position with respect to main body in a laptop, detection of opening of the cover of battery compartment
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/16—Constructional details or arrangements
- G06F1/1613—Constructional details or arrangements for portable computers
- G06F1/1633—Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
- G06F1/1684—Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675
- G06F1/1694—Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675 the I/O peripheral being a single or a set of motion sensors for pointer control or gesture input obtained by sensing movements of the portable computer
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/033—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
- G06F3/0346—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
-
- H—ELECTRICITY
- H01—ELECTRIC ELEMENTS
- H01H—ELECTRIC SWITCHES; RELAYS; SELECTORS; EMERGENCY PROTECTIVE DEVICES
- H01H13/00—Switches having rectilinearly-movable operating part or parts adapted for pushing or pulling in one direction only, e.g. push-button switch
- H01H13/02—Details
- H01H13/12—Movable parts; Contacts mounted thereon
- H01H13/14—Operating parts, e.g. push-button
-
- 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/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/72466—User interfaces specially adapted for cordless or mobile telephones with selection means, e.g. keys, having functions defined by the mode or the status of the device
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2203/00—Indexing scheme relating to G06F3/00 - G06F3/048
- G06F2203/041—Indexing scheme relating to G06F3/041 - G06F3/045
- G06F2203/04102—Flexible digitiser, i.e. constructional details for allowing the whole digitising part of a device to be flexed or rolled like a sheet of paper
-
- 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/02—Constructional features of telephone sets
- H04M1/23—Construction or mounting of dials or of equivalent devices; Means for facilitating the use thereof
- H04M1/236—Construction or mounting of dials or of equivalent devices; Means for facilitating the use thereof including keys on side or rear faces
Definitions
- the present application relates to the field of terminal technologies, and in particular to a button control method of an electronic device and the electronic device.
- the present application provides a button control method for electronic equipment, electronic equipment, computer storage media and computer program products, which can realize adaptive adjustment of the function of the buttons on the electronic equipment, so that the buttons on the electronic equipment It can be consistent with the user's usage habits and improve the user experience.
- the present application provides a button control method for an electronic device.
- the electronic device may include a display screen and at least one button.
- the display screen may be a folding screen, and the physical form of the folding screen may include a folded state or an unfolded state.
- at least one button includes a first button, the function of the first button is the first function when the physical form of the folding screen is a folded state, and the function of the first button is a second function when the physical form of the folding screen is an unfolded state ;
- the method may include: when the physical form is in the folded state, if the first key is triggered, outputting the first function; when the physical form is in the unfolded state, if the first key is triggered, outputting the second function.
- the user can adaptively adjust the required response function of the buttons on the electronic device according to the physical form of the folding screen of the electronic device, so that the folding screen of the electronic device can also be in different physical forms.
- At least one key also includes a second key, the function of the second key is the third function when the physical form of the folding screen is in the folded state, and the function of the second key is when the physical form of the folding screen is in the unfolded state: A fourth function; wherein, the first function is the same as the fourth function, and the second function is the same as the third function.
- the folding screen of the electronic device includes an inner screen and an outer screen
- the inner screen includes a first screen and a second screen
- the outer screen is located on the first body of the electronic device
- the first screen is located on the first body
- the second screen is located on the second body of the electronic device; wherein, both the first button and the second button are set on the first body.
- both the first button and the second button are located on the first side of the first body.
- the two buttons are arranged on the same side of the electronic device, so as to facilitate user operation and improve user operation experience.
- the function of the first button when the physical form is in the folded state, the function of the first button is to switch the machine, and the function of the second button is to adjust the volume; when the physical form is in the unfolded state , the function of the first button is to adjust the volume, and the function of the second button is to switch the machine.
- the method may further include: acquiring a folding angle of the folding screen; and determining a physical form according to the folding angle. In this way, the physical form of the folding screen can be known through the folding angle of the folding screen.
- determining the physical form according to the folding angle may specifically include: when the folding angle is greater than a preset angle, determining that the physical form is in an unfolded state; when the folding angle is less than or When it is equal to the preset angle, it is determined that the physical form is a folded state. In this way, according to the folding angle and the preset preset angle, the physical shape of the folding screen can be determined.
- the method may further include: after detecting that the electronic device rotates around the z-axis, according to the electronic device on the plane where the x-axis and y-axis are located, Relative to the rotation angle of the reference state of the electronic device, determine the fifth function of the third button in the at least one button, wherein the z-axis is an axis perpendicular to the display screen of the electronic device, and the x-axis is an axis parallel to the side of the electronic device , the y-axis is the axis perpendicular to the plane where the x-axis and the z-axis are located.
- the reference state means that the lower side of the electronic device is parallel to the horizontal plane, and the distance between the upper side of the electronic device and the horizontal plane is greater than or equal to the lower side and the horizontal plane.
- the state of the electronic device at the distance; when the third key is triggered, the fifth function is output. In this way, when the electronic device rotates, according to the rotation angle of the electronic device, the corresponding function of each button in the button group on the electronic device can be adaptively adjusted, so that when the electronic device rotates, the buttons that meet the user's usage habits can also be provided. functions to improve user experience.
- the third button is the same as the first button
- the fifth function is the same as the first function or the second function.
- the holding posture of the electronic device being held includes left-handed holding or right-handed holding, and when the holding posture is left-handed holding, the fourth button in at least one key
- the function of the button is the sixth function
- the function of the fourth button is the seventh function when the holding posture is held by the right hand.
- the method may also include: when the holding posture is held by the left hand, if the fourth button is triggered, output the first Six functions; when the holding posture is right-handed, if the fourth button is triggered, the seventh function is output.
- the function that each button in the button group on the electronic device needs to respond to can be adaptively adjusted according to the user's current holding posture of the electronic device, so that when the user holds the electronic device
- the holding posture of the device occurs, it can also provide button functions that meet the user's usage habits, avoiding the problem that the function of the buttons on the electronic device is not synchronized with the normal use function when the user holds the electronic device. user experience.
- the fourth button is the same as the first button.
- the sixth function is the same as the first function or the second function
- the seventh function is the same as the first function or the second function
- the sixth function is the same as the first function Seven functions are different.
- the present application provides a button control method for an electronic device
- the electronic device may include a display screen and at least one button, and at least one button includes a third button
- the method may include: After the rotation of the axis, according to the rotation angle of the electronic device on the plane where the x-axis and y-axis are located relative to the reference state of the electronic device, determine the fifth function that the third button needs to respond to, wherein the z-axis is perpendicular to the electronic device
- the z-axis is perpendicular to the electronic device
- the reference state means that the lower side of the electronic device is parallel to the horizontal plane
- the state of the electronic device when the distance between the upper side and the horizontal plane of the electronic device is greater than or equal to the distance between the lower side and the horizontal plane; when the third button is
- the corresponding function of each button in the button group on the electronic device can be adaptively adjusted, so that when the electronic device rotates, the buttons that meet the user's usage habits can also be provided. functions to improve user experience.
- the present application provides a button control method for an electronic device
- the electronic device may include a display screen and at least one button
- the at least one button includes a fourth button
- the holding posture of the electronic device includes left hand holding Or hold it with the right hand
- the function of the fourth button is the sixth function when the holding posture is held by the left hand
- the function of the fourth button is the seventh function when the holding posture is held by the right hand
- the method may include: When the left hand is holding, if the fourth button is triggered, the sixth function is output; when the holding posture is right hand holding, if the fourth button is triggered, the seventh function is output.
- the function that each button in the button group on the electronic device needs to respond to can be adaptively adjusted according to the user's current holding posture of the electronic device, so that when the user holds the electronic device
- the holding posture of the device occurs, it can also provide button functions that meet the user's usage habits, avoiding the problem that the function of the buttons on the electronic device is not synchronized with the normal use function when the user holds the electronic device. user experience.
- the present application provides an electronic device, which is characterized in that it includes:
- the display screen is a folding screen
- At least one memory for storing programs
- At least one processor is used to execute the program stored in the memory.
- the processor is used to execute any one of the first aspect and the first aspect, or execute the second aspect and the second aspect. Any implementation manner, or execute the third aspect and any implementation manner of the third aspect.
- the fourth aspect and any one of the implementation methods of the fourth aspect are respectively related to the first aspect and any of the implementation methods of the first aspect, or to the second aspect and any of the implementation methods of the second aspect, or to the third aspect Corresponding to any implementation manner of the third aspect.
- the technical effects corresponding to the second aspect and any one of the implementations in the second aspect please refer to the above-mentioned first aspect and any one of the implementations in the first aspect, or the second aspect and any one of the implementations in the second aspect, Or the technical effects corresponding to the third aspect and any one of the implementation manners of the third aspect will not be described in detail here.
- the present application provides a computer-readable storage medium.
- the computer-readable storage medium stores a computer program.
- the computer program runs on the electronic device, the electronic device executes any one of the first aspect and the first aspect.
- the fifth aspect and any one of the implementation methods of the fifth aspect are respectively related to the first aspect and any of the implementation methods of the first aspect, or to the second aspect and any of the implementation methods of the second aspect, or to the third aspect Corresponding to any implementation manner of the third aspect.
- the technical effect corresponding to the fifth aspect and any one of the implementations in the fifth aspect please refer to the above-mentioned first aspect and any one of the implementations in the first aspect, or the second aspect and any one of the implementations in the second aspect, Or the technical effects corresponding to the third aspect and any one of the implementation manners of the third aspect will not be described in detail here.
- the present application provides a computer program product.
- the computer program product runs on an electronic device
- the electronic device executes the first aspect and any one of the implementation methods of the first aspect, or executes the second aspect and the first aspect. Either one of the implementation methods of the second aspect, or execute the third aspect and any one of the implementation methods of the third aspect.
- the sixth aspect and any one of the implementation methods of the sixth aspect are respectively with the first aspect and any of the implementation methods of the first aspect, or with the second aspect and any of the implementation methods of the second aspect, or with the third aspect Corresponding to any implementation manner of the third aspect.
- the technical effects corresponding to the sixth aspect and any one of the implementations in the sixth aspect please refer to the above-mentioned first aspect and any one of the implementations in the first aspect, or the second aspect and any one of the implementations in the second aspect, Or the technical effects corresponding to the third aspect and any one of the implementation manners of the third aspect will not be described in detail here.
- FIG. 1 is a schematic diagram of a hardware structure of a mobile phone provided by an embodiment of the present application
- Fig. 2 is a schematic diagram of the process of changing the folding screen of a mobile phone from a folded state to an unfolded state according to an embodiment of the present application;
- Fig. 3 is a schematic structural diagram of a mobile phone provided by an embodiment of the present application.
- FIG. 4 is a schematic diagram of an operating system architecture of a mobile phone provided by an embodiment of the present application.
- FIG. 5 is a schematic diagram of an operating system architecture of a mobile phone provided in an embodiment of the present application.
- FIG. 6 is a schematic flow chart of a key control method for a mobile phone provided in an embodiment of the present application.
- FIG. 7 is a schematic diagram of the steps of a key control method for a mobile phone provided in an embodiment of the present application.
- FIG. 8 is a schematic flow chart of a key control method for a mobile phone provided in an embodiment of the present application.
- FIG. 9 is a schematic diagram of a key layout on a mobile phone provided by an embodiment of the present application.
- Fig. 10 is a schematic diagram of a mobile phone held by the right hand provided in the embodiment of the present application.
- Fig. 11 is a schematic diagram of a mobile phone held by the left hand provided by the embodiment of the present application.
- Fig. 12 is a schematic flow chart of a key control method for a mobile phone provided in an embodiment of the present application.
- Fig. 13 is a schematic diagram of the change of a mobile phone rotation process provided by the embodiment of the present application.
- FIG. 14 is a schematic structural diagram of a chip provided by an embodiment of the present application.
- a and/or B may indicate: A exists alone, A and B exist at the same time, and B exists alone, Wherein A and B can be singular or plural.
- the character "/" generally indicates that the contextual objects are an "or" relationship.
- references to "one embodiment” or “some embodiments” or the like in this specification means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application.
- appearances of the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in other embodiments,” etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless specifically stated otherwise.
- the terms “including”, “comprising”, “having” and variations thereof mean “including but not limited to”, unless specifically stated otherwise.
- the term “connected” includes both direct and indirect connections, unless otherwise stated.
- first and second are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, a feature defined as “first” or “second” may explicitly or implicitly include one or more of these features.
- the embodiment of the present application provides a button control method of an electronic device, which can be applied to electronic devices with folding screens such as mobile phones and tablet computers, and the embodiment of the present application does not impose any limitation on this.
- the method can adaptively adjust the functions of the buttons on the electronic device according to the shape of the folding screen, so that the functions of the buttons on the electronic device can be dynamically adjusted following the shape of the folding screen, thereby meeting the needs of users in different scenarios, and improving the user experience. experience.
- FIG. 1 shows a schematic structural diagram of a mobile phone.
- the mobile phone 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, a display screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
- SIM subscriber identification module
- the sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an environmental Light sensor 180L, bone conduction sensor 180M, etc.
- the structure shown in the embodiment of the present invention does not constitute a specific limitation on the mobile phone 100 .
- the mobile phone 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
- the illustrated components can be realized in hardware, software or a combination of software and hardware.
- the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
- application processor application processor, AP
- modem processor graphics processing unit
- GPU graphics processing unit
- image signal processor image signal processor
- ISP image signal processor
- controller video codec
- digital signal processor digital signal processor
- baseband processor baseband processor
- neural network processor neural-network processing unit
- the controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
- a memory may also be provided in the processor 110 for storing instructions and data.
- the memory in processor 110 is a cache memory.
- the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
- the USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
- the USB interface 130 can be used to connect a charger to charge the mobile phone 100, and can also be used to transmit data between the mobile phone 100 and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect to other mobile phones 100, such as AR devices.
- the charging management module 140 is configured to receive a charging input from a charger.
- the charger may be a wireless charger or a wired charger.
- the charging management module 140 can receive charging input from the wired charger through the USB interface 130 .
- the charging management module 140 can receive wireless charging input through the wireless charging coil of the mobile phone 100 . While charging the battery 142, the charging management module 140 can also supply power to the mobile phone 100 through the power management module 141.
- the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
- the power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , the display screen 194 , the camera 193 , and the wireless communication module 160 .
- the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
- the power management module 141 may also be disposed in the processor 110 .
- the power management module 141 and the charging management module 140 may also be set in the same device.
- the wireless communication function of the mobile phone 100 can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
- Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
- Each antenna in handset 100 can be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
- Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
- the antenna may be used in conjunction with a tuning switch.
- the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the mobile phone 100 .
- the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
- the mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
- the mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves through the antenna 1 for radiation.
- at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 .
- at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
- a modem processor may include a modulator and a demodulator.
- the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal.
- the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing.
- the low-frequency baseband signal is passed to the application processor after being processed by the baseband processor.
- the application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 .
- the modem processor may be a stand-alone device.
- the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
- the wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite system, etc. applied on the mobile phone 100 (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
- the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
- the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
- the wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
- the mobile phone 100 can use the wireless communication module 160 to send location information to other mobile phones 100, such as its own location information and/or its stored location information, and can also use the wireless communication module 160 to receive information sent by other mobile phones 100. location information, etc.
- the mobile phone 100 realizes the display function through the GPU, the display screen 194, and the application processor.
- the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
- Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
- the display screen 194 is used to display images, videos and the like.
- the display screen 194 includes a display panel.
- the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
- the display screen 194 may be a folding screen. As shown in FIG.
- the folding screen may include an inner screen 21 and an outer screen 22 .
- the inner screen 21 may include a screen 211 and a screen 212 .
- the screen 212 can be called the first screen
- the screen 211 can be called the second screen
- the body where the outer screen 22 is located can be called the first body
- the screen 212 is located on the first body
- the screen 211 can be called the second screen.
- the fuselage where 211 is located can be called the second fuselage.
- the angle between the screen 211 and the screen 212 can be understood as the folding angle ⁇ of the folding screen. Wherein, when the folding screen is in the unfolded state (ie, the folding angle ⁇ is 0 degrees), that is, the state shown in (A) of FIG.
- the mobile phone 100 can use the outer screen 22 for display.
- the folding angle ⁇ of the folding screen is greater than the preset angle (for example: greater than 15 degrees or 20 degrees, etc.)
- the mobile phone 100 can use the inner screen 21 for display, that is, the states shown in (B) and (C) of FIG. 2 .
- the folding angle ⁇ of the folding screen is smaller than the preset angle
- the mobile phone 100 can also use the outer screen 22 for display.
- FIG. 2 shows the change process of the physical form of the folding screen from the folded state to the unfolded state. In the state shown in (A) of FIG.
- the folding angle ⁇ of the folding screen gradually increases, and the mobile phone 100 can reach the state shown in (B) of FIG.
- this state can be called a half-expanded state.
- the mobile phone 100 can reach the state shown in (C) of FIG. 2 , wherein the state It can be called the fully expanded state.
- a button 232 can be set on the fuselage where the outer screen 22 of the mobile phone 100 is located, and a button 231 can be set on the fuselage where the screen 211 in the inner screen 21 of the mobile phone 100 is located;
- the button 232 is located above the button 231 .
- the button 231 may be called a first button
- the button 232 may be called a second button
- the side of the mobile phone 100 where the button 231 and the button 232 are located may be called a first side.
- the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone 100.
- the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.
- the internal memory 121 may be used to store computer-executable program codes including instructions.
- the internal memory 121 may include an area for storing programs and an area for storing data.
- the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like.
- the storage data area can store data (such as audio data, phone book, etc.) created during the use of the mobile phone 100 .
- the internal memory 121 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, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
- the processor 110 executes various functional applications and data processing of the mobile phone 100 by executing instructions stored in the internal memory 121 and/or instructions stored in the memory provided in the processor; method.
- the mobile phone 100 can realize the audio function through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
- the gyroscope sensor 180B can be used to determine the motion posture of the mobile phone 100 .
- the angular velocity of the mobile phone 100 about three axes may be determined by the gyro sensor 180B.
- the gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shaking angle of the mobile phone 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shaking of the mobile phone 100 through reverse motion to achieve anti-shake.
- the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
- the acceleration sensor 180E can detect the acceleration of the mobile phone 100 in various directions (generally three axes). When the mobile phone 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to recognize the posture of mobile phones, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
- the mobile phone 100 can detect the folding angle ⁇ of the folding screen shown in (B) of FIG. 2 through the gyro sensor 180B and the acceleration sensor 180E.
- a gyro sensor 180B and an acceleration sensor 180E can be provided on the body a where the screen 211 in the inner screen 21 of the mobile phone 100 is located, and the screen 212 in the inner screen 21 of the mobile phone 100 is located
- a gyro sensor 180B and an acceleration sensor 180E are provided on the body b of the body.
- the gyro sensor on the fuselage a where the screen 211 is located can detect the rotational angular velocity of the fuselage a when it rotates, and the acceleration sensor on the fuselage a where the screen 211 is located can detect the acceleration generated when the fuselage a moves, and then the mobile phone 100 can
- the magnitude and direction of the gravity G are determined according to the data detected by the gyro sensor and the acceleration sensor on the fuselage a where the screen 211 is located.
- the mobile phone 100 can also determine the magnitude and direction of the gravity G according to the data detected by the gyro sensor and the acceleration sensor on the body b where the screen 212 is located. Further, as shown in FIG.
- corresponding coordinate systems may be set on the body a where the screen 211 is located and the body b where the screen 212 is located.
- a Cartesian coordinate system 01 can be set on the fuselage a.
- the x-axis is parallel to the side a1 of the fuselage a
- the y-axis is parallel to the side a2 of the fuselage a
- the z-axis is perpendicular to x
- the plane formed by the x-axis and the y-axis points out of the fuselage a.
- a Cartesian coordinate system 02 can be set on the fuselage b.
- the x-axis is parallel to the side b1 of the fuselage b
- the y-axis is parallel to the side b2 of the fuselage b
- the z-axis is perpendicular to x
- the plane formed by the y-axis and the y-axis points out of the fuselage b.
- the component G1 of gravity G on the x-axis and z-axis in Cartesian coordinate system 01 is the same as the component G2 of gravity G on the x-axis and z-axis plane in Cartesian coordinate system 02 Equal in size but in different directions.
- the angle between the components G1 and G2 is the angle between the Cartesian coordinate system 01 and the Cartesian coordinate system 02, and also the angle between the fuselage a and the fuselage b (that is, the folding angle ⁇ ).
- the magnetic sensor 180D includes a Hall sensor.
- the mobile phone 100 can use the magnetic sensor 180D to detect the folding angle ⁇ of the folding screen of the mobile phone 100 .
- at least one magnetic element can be respectively arranged on the body a and the body b, and the mobile phone 100 can use a magnetic sensor to detect the magnetic field between the magnetic elements on the body a and the body b. Strength, and then determine the folding angle ⁇ of the folding screen according to the strength of the magnetic field.
- the mapping relationship between the strength of the magnetic field between the magnetic elements on the fuselage a and the fuselage b and the folding angle ⁇ can be calibrated in advance, so that the magnetic elements on the fuselage a and the fuselage b After the intensity of the magnetic field between is obtained, according to the pre-calibrated mapping relationship, the folding angle ⁇ can be obtained.
- the mobile phone 100 can also directly determine the physical form of the folding screen of the mobile phone 100 according to the strength of the magnetic field between the magnetic elements on the body a and the body b detected by the magnetic sensor.
- the strength of the magnetic field between the magnetic elements on the fuselage a and the fuselage b is greater than a preset value, it can be determined that the physical form of the folding screen is a folded state, and when the magnetic element on the fuselage a and the fuselage b When the intensity of the magnetic field between is less than or equal to the preset value, it can be determined that the physical form of the folding screen is an unfolded state.
- the touch sensor 180K is also called “touch device”.
- the touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
- the touch sensor 180K is used to detect a touch operation on or near it.
- the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
- Visual output related to the touch operation can be provided through the display screen 194 .
- the touch sensor 180K can also be arranged on the surface of the mobile phone 100, which is different from the location of the display screen 194, for example, arranged on the back or side of the mobile phone 100, etc., wherein the back of the mobile phone 100 refers to The side facing away from the display screen currently used by the handset 100 .
- the keys 190 include a power key, a volume key and the like.
- the key 190 can be a mechanical key or a touch key.
- the mobile phone 100 can receive key input and generate key signal input related to user settings and function control of the mobile phone 100 .
- both the buttons 231 and 232 can be arranged on the side of the mobile phone 100 . It can be understood that, when the mobile phone 100 includes multiple buttons, the multiple buttons can be arranged on the same side of the mobile phone 100, or can be arranged on different sides of the mobile phone 100, which can be determined according to the actual situation, and is not limited here. .
- the motor 191 can generate a vibrating reminder.
- the motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
- touch operations applied to different applications may correspond to different vibration feedback effects.
- the motor 191 may also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 194 .
- Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
- the touch vibration feedback effect can also support customization.
- the indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
- the SIM card interface 195 is used for connecting a SIM card.
- the SIM card can be connected and separated from the mobile phone 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 .
- the mobile phone 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
- SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards may be the same or different.
- the SIM card interface 195 is also compatible with different types of SIM cards.
- the SIM card interface 195 is also compatible with external memory cards.
- the mobile phone 100 interacts with the network through the SIM card to implement functions such as calling and data communication.
- the mobile phone 100 adopts eSIM, that is, an embedded SIM card.
- the eSIM card can be embedded in the mobile phone 100 and cannot be separated from the mobile phone 100 .
- the software system of the above-mentioned mobile phone 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture.
- the software structure of the mobile phone 100 is illustrated by taking the Android system with a layered architecture as an example.
- FIG. 4 is a block diagram of the software structure of the mobile phone 100 according to the embodiment of the present invention.
- the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces.
- the Android system is divided into four layers, which are respectively the application program layer, the application program framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer from top to bottom.
- the application layer can consist of a series of application packages.
- the application package may include application programs such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.
- application programs such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.
- the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
- the application framework layer includes some predefined functions.
- the application framework layer may include a window manager, a content provider, a phone manager, a resource manager, a notification manager, a key management service, a view system, and the like.
- a window manager is used to manage window programs.
- the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
- Content providers are used to store and retrieve data and make it accessible to applications.
- Said data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebook, etc.
- the phone manager is used to provide communication functions of the mobile phone 100 . For example, the management of call status (including connected, hung up, etc.).
- the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
- the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction.
- the notification manager is used to notify the download completion, message reminder, etc.
- the notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, making a sound, vibrating the mobile phone, and flashing the indicator light, etc.
- the button management service can determine the function that the button needs to respond to according to the folding state of the folding screen on the mobile phone 100 , and when a button event occurs on the mobile phone 100 , respond to the button event with the determined function that the button needs to respond to.
- the view system can include visual controls, such as controls for displaying text, controls for displaying pictures, and so on.
- the view system can be used to build applications.
- a display interface can consist of one or more views.
- a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
- the Android Runtime includes core library and virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
- the core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the Android system library.
- the application layer and the application framework layer run in virtual machines.
- the virtual machine executes the java files of the application program layer and the application program framework layer as binary files.
- the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
- a system library can include multiple function modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), status monitoring service, 2D graphics engine (eg: SGL), etc.
- the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
- the media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc.
- the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
- the state monitoring service may call a sensor service (sensor service) to start sensors such as the gyroscope sensor 180B, the acceleration sensor 180E, and the magnetic sensor 180D shown in FIG. 1 for detection.
- the state monitoring service can calculate the current folding angle ⁇ of the folding screen on the mobile phone 100 according to the detection data reported by each sensor, and determine the folding state of the folding screen of the mobile phone 100 according to the folding angle ⁇ .
- the state monitoring service may also report the determined folding state of the folding screen of the mobile phone 100 to the above-mentioned button management service.
- the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing, etc.
- 2D graphics engine is a drawing engine for 2D drawing.
- the kernel layer is the layer between hardware and software.
- the kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver.
- FIG. 5 shows a schematic diagram of data flow within the system in the mobile phone 100 .
- the gyroscope sensor and acceleration sensor at the hardware layer, or the magnetic sensor can report the detected data to the sensor driver, and the sensor driver can send the gyroscope sensor and acceleration sensor through the sensor service.
- the detected data, or the data detected by the magnetic sensor is reported to the status monitoring service.
- the state monitoring service can determine the folding angle of the folding screen according to the data detected by the gyro sensor and the acceleration sensor, or the data detected by the magnetic sensor, and then determine the folding state of the folding screen.
- the status monitoring service can report the folding status of the folding screen to the button management service.
- the key driver at the kernel layer can determine the key event and report the key event to the status monitoring service.
- the status monitoring service can report the button event to the button management service. After that, according to the folding state of the folding screen, the button management service decides the function of each button under the button event, and/or outputs the corresponding function.
- FIG. 6 shows a schematic flowchart of a key control method of the mobile phone 100 .
- the method may include the following steps:
- the folding angle of the folding screen on the mobile phone can be obtained through the sensor on the mobile phone 100 .
- the folding angle of the folding screen can be obtained through the gyro sensor 180B and the acceleration sensor 180E in FIG. 1 , or the folding angle of the folding screen can be obtained through the magnetic sensor 180D in FIG. 1 , see the above description for details, I won't repeat them here.
- S602. Determine the physical form of the folding screen according to the folding angle, where the physical form includes a folded state or an unfolded state.
- the physical form of the folding screen may be determined according to the folding angle, wherein the physical form includes a folded state or an unfolded state.
- the folded state may refer to the form of the mobile phone 100 when the folding angle is less than or equal to the preset angle, for example, the form shown in (A) of FIG. 2 ; the unfolded state may refer to the form when the folded angle is greater than the preset angle.
- the form of the mobile phone 100 is, for example, the forms shown in (B) and (C) of FIG. 2 .
- the folding angle is (0, 20 degrees]
- the physical form may be a folded state
- the folding angle is (20 degrees, 180 degrees)
- the physical form may be an unfolded state.
- the button group includes at least one button, and the button groups corresponding to different physical forms
- the target function that each key needs to respond to is different.
- the target function to be responded to by each button in the button group on the mobile phone 100 can be determined according to the physical form, wherein the button group includes at least one button, and the button groups corresponding to different physical forms The target function that each key needs to respond to is different.
- the mapping relationship between the functions that each button in the button group on the mobile phone 100 needs to respond to and the physical form of the folding screen can be preset, so that after the key event is obtained, according to the physical form of the folding screen, By querying the mapping relationship, it is possible to determine the target function that each button in the button group on the mobile phone 100 needs to respond to in the current physical form of the folding screen.
- the mapping relationship between the functions to be responded to by each button in the button group on the mobile phone 100 and the physical form of the folding screen is preset, as shown in Table 1.
- the buttons in the button group include button a and button b, where, when the physical form of the folding screen is in the unfolded state, the function that button a needs to respond to is power on and off, and the function that button b needs to respond to is volume Adjustment; when the physical form of the folding screen is in the folded state, the function required to respond to button a is volume adjustment, and the function required to respond to button b is to switch the machine on and off.
- the function that button a in the button group on the mobile phone 100 needs to respond to is volume adjustment, and the function that button b needs to respond to is power on and off.
- the functions corresponding to power on and off may include power on, power off, screen lock, screen bright, etc., which are not limited here.
- buttons in the button group include button a, button b and button c, where, when the physical form of the folding screen is in the unfolded state, the function that button a needs to respond to is power on and off, and the function that button b needs to respond to The function is to increase the volume, and the function to be responded to by button c is to decrease the volume; when the physical form of the folding screen is folded, the function to be responded to by button a is to increase the volume, and the function to be responded to by button b is to switch on and off , the function that the button c needs to respond to is to lower the volume.
- the function that button a needs to respond to in the button group on the mobile phone 100 is to increase the volume, and the function that button b needs to respond to is to switch machine, the function that the button c needs to respond to is to lower the volume.
- the key event can be responded to with the target function.
- the target function to be responded to by each button in the button group on the mobile phone 100 is: the function to be responded to by button a is volume adjustment, and the function to be responded to by button b is a switch machine, in the button event, if the user triggers button a, the function corresponding to volume adjustment will be executed at this time, and if the user triggers button b, the function corresponding to power on/off will be executed at this time.
- S603 can also be replaced with "according to the physical form, determine the target function that each key in the key group on the mobile phone 100 needs to respond to.
- the key group includes at least one key, wherein the keys corresponding to different physical forms Each button in the group needs to respond to different target functions", and at the same time, S604 can be replaced with "when the button event is obtained, respond to the button event with the determined target function". That is to say, after determining the physical form of the folding screen, the function of each key can be determined according to the physical form, and then, when a key is triggered, the function of the key can be determined to respond to the key event, that is Output the function of the key.
- the key a in the folded state is the folded state
- the determined function of the key a in the folded state is to lower the volume
- key a may be called the first key.
- the function to be responded to by key a (that is, the first key) may be referred to as the first function.
- the function to be responded to by the key a can be called the second function.
- the first function when the physical form of the folding screen is in the folded state, if the key a (i.e. the first key) is triggered, the first function is output; when the physical form of the folding screen is in the expanded state, if the key a (i.e. the first key) is triggered When the key) is triggered, the second function is output.
- the key b can be referred to as a second key.
- the function to be responded to by the key b (that is, the second key) can be referred to as the third function.
- the function to be responded to by the key b can be called the fourth function.
- the third function is output; when the physical form of the folding screen is in the unfolded state, if the button b (ie, the second When the key) is triggered, the fourth function is output.
- the first function may be the same as the fourth function
- the second function may be the same as the third function.
- the functions required to respond to each button in the key group on the mobile phone 100 are adaptively adjusted, so that the folding screen of the mobile phone 100 is in different physical forms. Downtime can also provide button functions that meet the user's usage habits, avoiding the problem that the functions of the buttons on the mobile phone 100 are not synchronized with the normal use functions when the folding screen of the mobile phone 100 is in a different physical form, and improving user experience.
- the mobile phone 100 described above is taken as an example below to introduce the button control method of the electronic device provided in the embodiment of the present application.
- FIG. 7 shows a schematic flowchart of a key control method of the mobile phone 100 .
- the two buttons may be button 231 and button 232 shown in FIG. 2 .
- button 231 and button 232 are all positioned at the upper area of the side of mobile phone 100, and button 231 is positioned at the bottom of button 232, now button 231 can be referred to as the down key, and the button 232 can be referred to as the upper key; for the down key.
- the method may include the following steps:
- the mobile phone 100 when the mobile phone 100 is powered on, it can be determined whether the mobile phone 100 is normally powered on. Wherein, when the mobile phone 100 is powered on normally, execute S702; when the mobile phone 100 is abnormally powered on, execute S703.
- the operating modes of the mobile phone 100 may include: a normal mode and an abnormal mode.
- the normal mode can be understood as a mode for normally starting the mobile phone 100 , for example, long pressing the power button on the mobile phone 100 .
- the abnormal mode can be understood as a mode other than the normal mode, for example, a recovery mode or a fastboot mode. Due to controlling the mobile phone 100 to enter different operating modes, it is often necessary to select different keys for control. Therefore, when judging whether the mobile phone 100 is normally powered on, it can be judged according to the number and/or function of the keys operated by the user when controlling the mobile phone 100 to power on. . For example, when the user only presses one button to start the mobile phone, it can be determined that the mobile phone 100 is normally started; when the user presses multiple buttons simultaneously to start the mobile phone, it can be determined that the mobile phone 100 is abnormally started.
- S701 does not need to be executed every time. Wherein, when the mobile phone 100 is in the power-off state before executing S701, this step may be executed every time. And after the mobile phone 100 has been turned on normally, you can choose not to execute this step, but directly execute S702.
- the folding angle of the folding screen on the mobile phone 100 may be obtained after the mobile phone 100 is powered on, that is, when the user is using the mobile phone 100 normally.
- the folding angle of the folding screen can be obtained through the gyroscope sensor 180B and the acceleration sensor 180E on the mobile phone 100 , or the folding screen angle can be obtained through the magnetic sensor 180D (such as a Hall sensor) on the mobile phone 100 .
- the magnetic sensor 180D such as a Hall sensor
- the folding angle see the above description for details, and will not repeat them here.
- a gyro sensor and an acceleration sensor may be selected in this step to obtain the folding angle of the folding screen.
- the folding angle of the folding screen on the mobile phone 100 may be obtained when the mobile phone 100 is powered on.
- the folding angle of the folding screen can be acquired through a magnetic sensor (such as a Hall sensor) on the mobile phone 100 at this time.
- S702 obtains the folding angle of the folding screen after the mobile phone 100 is turned on, while S703 obtains the folding angle of the folding screen when the mobile phone 100 is turned on.
- the physical form of the folding screen can be determined according to the folding angle.
- the physical form includes a folded state or an unfolded state. For details, see the description in S602 in FIG. 6 above, which will not be repeated here.
- the key a or the key b on the mobile phone 100 is triggered (for example: pressed to trigger, etc.), it can be determined that the key event is acquired.
- the rule m including the mapping relationship between the function of the button and the folded state.
- the button event can be responded to with the button function set by the rule m, and the rule m includes the mapping relationship between the function of the button and the folded state.
- the rule m may be that when the physical form of the folding screen is in the folded state, the key function of the button 231 (ie, the up key) is a volume adjustment key, and the key function of the key 232 (ie, the down key) ) The corresponding button function is the switch button (ie the power button).
- the button event can be responded to with the button function set by rule n, and the rule n includes the mapping relationship between the function of the button and the unfolded state.
- the rule n may be that when the physical form of the folding screen is in the unfolded state, the key function of the button 231 (ie, the down key) is the power on/off key (ie, the power button). key), the button function of the button 232 (ie the upper button) is the volume adjustment button.
- the user can adjust the volume by manipulating the up key (ie, key 231 ) on the mobile phone 100 , or operate the down key (ie, key 232 ) on the mobile phone 100 to switch the phone on and off.
- the user can adjust the volume by manipulating the up key (ie, the key 232 ) on the mobile phone 100 , or operate the down key (ie, the key 231 ) on the mobile phone 100 to switch the phone on and off.
- the button control method of the electronic device provided by the embodiment of the present application.
- another method for controlling keys of an electronic device provided by an embodiment of the present application is introduced.
- the method is mainly based on the user's current holding posture of the electronic device, and adaptively adjusts the function of each button in the button group on the electronic device to respond, so that when the user's holding posture of the electronic device occurs, it can also Provide button functions that conform to the user's usage habits, avoid the problem that the functions of the buttons on the electronic device are not synchronized with the normal use functions when the user holds the electronic device in a holding posture, and improve the user experience. For example, take the current common electronic device as a mobile phone with a large screen as an example.
- buttons are on the right side of the phone.
- he wants to operate the buttons he needs to use his right hand to operate. (such as the handrail of the bus and subway) will be very inconvenient to operate, so it is necessary to automatically recognize the user's left or right hand holding the mobile phone at this time according to the user's holding posture, and then adaptively adjust the required response function of the buttons on the mobile phone. It facilitates user operation and improves user experience.
- FIG. 8 shows a schematic flowchart of a key control method of the mobile phone 100 .
- the keys of the mobile phone 100 described in FIG. 8 may include at least two keys, which are respectively arranged on different sides of the screen of the mobile phone 100 .
- the key 233 is set on the left side of the screen of the mobile phone 100
- the key 234 is set on the right side of the screen of the mobile phone 100 .
- the method includes the following steps:
- S801. Determine the current holding posture of the user holding the mobile phone 100, where the holding posture includes holding with a left hand or holding with a right hand.
- a touch device (such as the touch sensor 180K shown in FIG. 1 ) may be provided on the mobile phone 100, and the touch device may report the user's current touch position periodically or in real time. Furthermore, according to the touch position, a preset grip algorithm is used to determine the current grip posture of the user holding the mobile phone, wherein the grip posture includes left-hand grip or right-hand grip.
- the position of each point that is, each touch position
- the shape of the contact surface between the user's palm and the mobile phone 100 is determined. After that, compare the shape of the contact surface with the preset left-hand grip shape and right-hand grip shape, determine the similarity between the shape of the contact surface and the preset left-hand grip shape, and determine the degree of similarity of the contact surface. The similarity of the shape to the preset right-hand grip shape. Finally, the gripping shape corresponding to the value with the highest similarity is selected as the current gripping posture.
- the current grip posture is left-hand grip; when the shape of the contact surface is the same as the preset right-hand grip shape When the similarity is the highest, the current holding posture is right hand holding.
- the button group includes at least one button, wherein the buttons corresponding to different holding postures Each key in the group needs to respond to a different target function.
- the target function that each button in the button group on the mobile phone 100 needs to respond to can be determined according to the holding posture.
- the button group includes at least one button, wherein the button groups corresponding to different holding postures
- the target functions that each key needs to respond to are different.
- the mapping relationship between the functions that each button in the button group on the mobile phone 100 needs to respond to and the holding posture can be preset, so that after the key event is obtained, the mapping relationship can be queried according to the holding posture , that is, the target function to be responded to by each key in the key group on the mobile phone 100 under the current holding posture can be determined.
- the preset mapping relationship between the functions to be responded to by each button in the button group on the mobile phone 100 and the holding posture can be as shown in Table 3.
- the buttons in the button group include button a and button b, wherein, when the holding posture is left-handed, the function that button a needs to respond to is power on and off, and the function that button b needs to respond to is volume adjustment; When the holding posture is right-handed, the function to be responded to by button a is volume adjustment, and the function to be responded to by button b is to switch on and off.
- the function required to respond to button a in the button group on the mobile phone 100 is volume adjustment, and the function required to respond to button b is to switch the phone on and off.
- the functions corresponding to power on and off may include power on, power off, screen lock, screen bright, etc., which are not limited here.
- the mapping relationship between the function to be responded to and the holding posture of each button in the button group on the mobile phone 100 can also be preset as shown in Table 4.
- the buttons in the button group include button a, button b, and button c, wherein, when the holding posture is left-handed, the function that button a needs to respond to is switching on and off, and the function that button b needs to respond to is
- the function required to respond to button c is to decrease the volume
- the function required to respond to button a is to increase the volume
- the function required to respond to button b is to switch on and off
- the function required to respond to button c is to increase the volume.
- the responsive function is to lower the volume.
- the function required to respond to key a in the key group on the mobile phone 100 is to increase the volume, and the function required to respond to key b is to switch the phone on and off.
- the desired response of the key c is to lower the volume.
- the key event can be responded to with the target function.
- the target function to be responded to by each button in the button group on the mobile phone 100 is: the function to be responded to by button a is volume adjustment, and the function to be responded to by button b is a switch machine, in the button event, if the user triggers button a, the function corresponding to volume adjustment will be executed at this time, and if the user triggers button b, the function corresponding to power on/off will be executed at this time.
- the function of the button 233 is to adjust the volume
- the function of the button 234 is to switch the machine
- the function of 234 is volume adjustment, as shown in Figure 10, the user's holding posture is the right hand at this time, when the user triggers the button 234, the mobile phone 100 can respond to the volume adjustment function; as shown in Figure 11, At this time, the user's holding posture is left hand holding, and at this time, when the user triggers the button 233, the mobile phone 100 can respond to the function of volume adjustment.
- S802 can also be replaced with "according to the holding posture, determine the target function that each button in the button group on the mobile phone 100 needs to respond to.
- the button group includes at least one button, wherein different holding postures correspond to Each button in the button group needs to respond to a different target function", and at the same time, S803 can be replaced with "when the button event is obtained, respond to the button event with the determined target function". That is to say, after the holding posture is determined, the function of each button can be determined according to the holding posture first, and then, when a certain button is triggered, the function of the button can be determined to respond to the button event, that is, the output The function of this key.
- the button a when the button a is triggered, it can output the lowering volume, that is, lowering the mobile phone 100.
- the volume of the output audio if the currently determined holding posture is right-hand holding, and the determined function of the button a under the right-hand holding is to lower the volume, then when the button a is triggered, it can output the lowering volume, that is, lowering the mobile phone 100.
- the volume of the output audio if the currently determined holding posture is right-hand holding, and the determined function of the button a under the right-hand holding is to lower the volume, then when the button a is triggered, it can output the lowering volume, that is, lowering the mobile phone 100.
- the volume of the output audio if the currently determined holding posture is right-hand holding, and the determined function of the button a under the right-hand holding is to lower the volume, then when the button a is triggered, it can output the lowering volume, that is, lowering the mobile phone 100.
- the volume of the output audio if the currently determined
- the key a can be called the fourth key, and the function required to respond to the key a when the holding posture is held by the left hand can be called the sixth function, and the required response of the key a can be called when the holding posture is held by the right hand
- the function can be called the seventh function; wherein, when the holding posture is left-handed, if the fourth button is triggered, the sixth function is output; when the holding posture is right-handed, if the fourth button is triggered, the output Seventh function.
- the fourth button may be the same as the first button described above.
- the sixth function may be the same as the first function or the second function described above
- the seventh function may be the same as the first function or the second function described above, wherein the sixth function is different from the seventh function .
- the mobile phone 100 According to the user's current holding posture of the mobile phone, adaptively adjust the function that each button in the key group on the mobile phone 100 needs to respond to, so that when the user holds the mobile phone 100 When the gesture occurs, it can also provide button functions that meet the user's usage habits, avoiding the problem that the function of the buttons on the mobile phone 100 is not synchronized with the normal use function when the user holds the mobile phone 100 when the holding posture occurs, and improves the user experience.
- an embodiment of the present application provides another method for controlling a button of an electronic device.
- the method can adaptively adjust the response function of each button in the button group on the electronic device according to the rotation angle of the electronic device when the electronic device rotates, so that when the electronic device rotates, it can also provide buttons that meet the user's usage habits functions to improve user experience.
- the display screen on the mobile phone 100 at this time may be a folding screen or a non-folding screen, which is not limited here.
- the physical form of the folding screen may be a folded state or an unfolded state, which is not limited here.
- Fig. 12 shows a schematic flow chart of a key control method of a mobile phone 100, as shown in Fig. 12, the method may include the following steps:
- a spatial coordinate system may be pre-built, wherein, in the spatial coordinate system, the x-axis is an axis parallel to the side of the mobile phone 100, the z-axis is an axis perpendicular to the display screen of the mobile phone 100, and the y-axis is an axis perpendicular to x axis and the axis of the plane on which the z-axis lies.
- the gyroscope sensor in the mobile phone 100 (such as the gyroscope sensor 180B shown in FIG. 1 ) can be used to obtain information on the plane where the x-axis and y-axis are located relative to the mobile phone 100.
- the rotation angle of the reference state of 100 wherein, the reference state refers to the state of the mobile phone 100 when the lower side of the mobile phone 100 is parallel to the horizontal plane
- the button group includes at least one button, wherein each of the button groups corresponding to different rotation angles
- the target function for which the keys need to respond differs.
- the target function to be responded to by each button in the button group of the mobile phone 100 can be determined according to the rotation angle.
- the button group includes at least one button, wherein each button in the button group corresponding to a different rotation angle The target function of the desired response is different.
- the mapping relationship between the function to be responded to by each button in the button group on the mobile phone 100 and the rotation angle of the mobile phone 100 can be preset, so that after the key event is obtained, according to the obtained rotation angle, By querying the mapping relationship, it is possible to determine the target function that each button in the button group on the mobile phone 100 needs to respond to at the rotation angle.
- the mapping relationship between the function to be responded to by each button in the button group on the mobile phone 100 and the rotation angle is preset, as shown in Table 5.
- the buttons in the button group include button a and button b, wherein, when the rotation angle is 0°, the function that button a needs to respond to is power on and off, and the function that button b needs to respond to is volume adjustment; the rotation angle When the angle is 90°, the function to be responded to by button a is volume adjustment, and the function to be responded to by button b is to switch on and off; when the rotation angle is 180°, the function to be responded to by button a is to switch on and off, and the function to be responded to by button b It is volume adjustment; when the rotation angle is 270°, the function that button a needs to respond to is volume adjustment, and the function that button b needs to respond to is power on and off; when the rotation angle is 360°, the function that button a needs to respond to is power on and off, The function to be responded to by button
- the function that the key a in the key group on the mobile phone 100 needs to respond to is volume adjustment, and the function that key b needs to respond to is power on and off.
- the functions corresponding to power on and off may include power on, power off, screen lock, screen bright, etc., which are not limited here.
- buttons in the button group include button a, button b and button c, where, when the rotation angle is 0°, the function that button a needs to respond to is power on and off, and the function that button b needs to respond to is to increase Volume, the function that the button c needs to respond to is to decrease the volume; when the rotation angle is 90°, the function that the button a needs to respond to is to increase the volume, the function that the button b needs to respond to is turning on and off, and the function that the button c needs to respond to is Decrease the volume; when the rotation angle is 180°, the response function of button a is to increase the volume, the response function of button b is to switch on and off, and the response function of button c is to reduce the volume; when the rotation angle is 270°, the response function of button The function to be responded to by a is to
- the function of the key a in the key group on the mobile phone 100 is to increase the volume, and the function of the key b is to switch the machine on and off.
- the function that the button c needs to respond to is to lower the volume.
- the key event can be responded to with the target function.
- the target function to be responded to by each button in the button group on the mobile phone 100 is: the function to be responded to by button a is volume adjustment, and the function to be responded to by button b is a switch machine, in the button event, if the user triggers button a, the function corresponding to volume adjustment will be executed at this time, and if the user triggers button b, the function corresponding to power on/off will be executed at this time.
- button a may be called a third button, and the function to be responded to by button a may be a fifth function; wherein, when the third button is triggered, the fifth function may be output.
- the third key and the first key described above may be the same key, and in this case, the fifth function is the same as the first function or the second function described above.
- the mobile phone 100 is pre-defined when the mobile phone is not rotated and the mobile phone is in a normal use state, and the physical form of the folding screen of the mobile phone 100 is unfolded (that is, the state shown in (A) of FIG. 13 ), this When the status bar in the mobile phone 100 is located at the top of the screen of the mobile phone 100, this state can be understood as the reference state described above), the function of the button 235 is volume adjustment, and the function of the button 236 is to switch the machine. When the key 235 is pressed, the mobile phone 100 can respond to the function of volume adjustment, and when the user presses the key 236, the mobile phone 100 can respond to the function of switching on and off.
- the mobile phone 100 switches from the state shown in (A) of FIG. 13 to the state shown in (B) of FIG. 13 .
- the function of the button 235 is to switch on and off, and the function of the button 236 is to adjust the volume.
- the mobile phone 100 can respond to the function of volume adjustment.
- the mobile phone 100 is switched from the state shown in Figure 13 (B) to the state shown in Figure 13 (C). state.
- the function of the button 235 is to switch on and off, and the function of the button 236 is to adjust the volume.
- the mobile phone 100 can respond to the function of volume adjustment.
- the mobile phone 100 is switched from the state shown in Figure 13 (C) to the state shown in Figure 13 (D). state.
- the function of the button 235 is to switch on and off, and the function of the button 236 is to adjust the volume.
- the mobile phone 100 can respond to the function of volume adjustment.
- the mobile phone 100 is switched from the state shown in (D) of FIG. 13 to the one shown in (A) of FIG. 13 . state.
- the function of the buttons on the mobile phone 100 can also be adaptively adjusted according to the rotation angle. This adjustment process is similar to that of the mobile phone shown in FIG. 13 .
- the physical form of the folding screen of 100 is similar to that in the unfolded state, and will not be repeated here.
- S1202 can also be replaced with "according to the rotation angle, determine the target function that each button in the button group of the mobile phone 100 needs to respond to.
- the button group includes at least one button, wherein the button groups corresponding to different rotation angles
- the target function that needs to be responded to by each key is different”
- S1203 can be replaced with "when the key event is obtained, respond to the key event with the determined target function”. That is to say, after the rotation angle is determined, the function of each button can be determined according to the rotation angle, and then, when a button is triggered, the function of the button can be determined to respond to the button event, that is, the button can be output function. For example, if the currently determined rotation angle is 90°, and the function of the key a is to decrease the volume, then when the key a is triggered, the volume can be decreased, that is, the volume of the output audio of the mobile phone 100 can be decreased.
- the general mobile phone 100 will switch between horizontal and vertical screens, and at this time the positions of the buttons on the mobile phone 100 will also change accordingly. Therefore, when the mobile phone 100 is rotated, according to the rotation Angle, the function of adaptively adjusting the response required by each button in the button group on the electronic device, can make it possible to provide button functions that meet the user's usage habits when the electronic device rotates, thereby improving user experience.
- the mobile phone 100 can be simultaneously selected according to any two or three of the physical form of the folding screen of the mobile phone 100, the user's holding posture of the mobile phone 100, or the rotation angle of the mobile phone 100.
- the functions of the buttons on the mobile phone 100 are adaptively adjusted, and the specific adjustment process may combine the above-mentioned embodiments, which will not be repeated here.
- FIG. 14 is a schematic structural diagram of a chip provided by an embodiment of the present application.
- a chip 1400 includes one or more processors 1401 and an interface circuit 1402 .
- the chip 1400 may also include a bus 1403 . in:
- the processor 1401 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method may be implemented by an integrated logic circuit of hardware in the processor 1401 or instructions in the form of software.
- the above-mentioned processor 1401 may be a general-purpose processor, a digital communicator (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components .
- DSP digital communicator
- ASIC application-specific integrated circuit
- FPGA field programmable gate array
- a general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
- the interface circuit 1402 can be used for sending or receiving data, instructions or information.
- the processor 1401 can use the data, instructions or other information received by the interface circuit 1402 to process, and can send the processing completion information through the interface circuit 1402 .
- the chip further includes a memory, which may include a read-only memory and a random access memory, and provides operation instructions and data to the processor.
- a portion of the memory may also include non-volatile random access memory (NVRAM).
- the memory stores executable software modules or data structures, and the processor can execute corresponding operations by calling operation instructions stored in the memory (the operation instructions can be stored in the operating system).
- the interface circuit 1402 may be used to output an execution result of the processor 1401 .
- processor 1401 and the interface circuit 1402 can be realized by hardware design, software design, or a combination of software and hardware, which is not limited here.
- each step in the foregoing method embodiments may be implemented by logic circuits in the form of hardware or instructions in the form of software in the processor.
- the chip can be applied to the above-mentioned electronic device (such as the mobile phone 100) to implement the method provided in the embodiment of the present application.
- processor in the embodiments of the present application may be a central processing unit (central processing unit, CPU), and may also be other general processors, digital signal processors (digital signal processor, DSP), application specific integrated circuits (application specific integrated circuit, ASIC), field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof.
- CPU central processing unit
- DSP digital signal processor
- ASIC application specific integrated circuit
- FPGA field programmable gate array
- a general-purpose processor can be a microprocessor, or any conventional processor.
- the method steps in the embodiments of the present application may be implemented by means of hardware, or may be implemented by means of a processor executing software instructions.
- the software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (random access memory, RAM), flash memory, read-only memory (read-only memory, ROM), programmable read-only memory (programmable rom) , PROM), erasable programmable read-only memory (erasable PROM, EPROM), electrically erasable programmable read-only memory (electrically EPROM, EEPROM), register, hard disk, mobile hard disk, CD-ROM or known in the art any other form of storage medium.
- An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium.
- the storage medium may also be a component of the processor.
- the processor and storage medium can be located in the ASIC.
- all or part of them may be implemented by software, hardware, firmware or any combination thereof.
- software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
- the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part.
- the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices.
- the computer instructions may be stored in or transmitted via a computer-readable storage medium.
- the computer instructions may be transmitted from one website site, computer, server, or data center to another website site by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) , computer, server or data center for transmission.
- the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media.
- the available medium may be a magnetic medium (such as a floppy disk, a hard disk, or a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (solid state disk, SSD)), etc.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Telephone Function (AREA)
Abstract
Description
Claims (15)
- 一种电子设备的按键控制方法,其特征在于,所述电子设备包括显示屏和至少一个按键,所述显示屏为折叠屏,所述折叠屏的物理形态包括折叠态或展开态,其中,所述至少一个按键包括第一按键,在所述物理形态为折叠态时所述第一按键的功能为第一功能,在所述物理形态为展开态时所述第一按键的功能为第二功能,所述方法包括:在所述物理形态为折叠态时,若所述第一按键被触发,输出第一功能;在所述物理形态为展开态时,若所述第一按键被触发,输出第二功能。
- 根据权利要求1所述的方法,其特征在于,所述至少一个按键还包括第二按键,在所述物理形态为折叠态时所述第二按键的功能为第三功能,在所述物理形态为展开态时所述第二按键的功能为第四功能;其中,所述第一功能与所述第四功能相同,所述第二功能与所述第三功能相同。
- 根据权利要求2所述的方法,其特征在于,所述折叠屏包括内屏和外屏,所述内屏包括第一屏和第二屏,所述外屏位于所述电子设备的第一机身,所述第一屏位于所述第一机身,所述第二屏位于所述电子设备的第二机身;其中,所述第一按键和所述第二按键均设置在所述第一机身上。
- 根据权利要求3所述的方法,其特征在于,所述第一按键和所述第二按键均位于所述第一机身的第一侧。
- 根据权利要求2-3任一所述的方法,其特征在于,在所述物理形态为折叠态时,所述第一按键的功能为开关机,所述第二按键的功能为音量调节;在所述物理形态为展开态时,所述第一按键的功能为音量调节,所述第二按键的功能为开关机。
- 根据权利要求1-5任一所述的方法,其特征在于,所述方法还包括:获取所述折叠屏的折叠角度;根据所述折叠角度,确定所述物理形态。
- 根据权利要求6所述的方法,其特征在于,所述根据所述折叠角度,确定所述物理形态,具体包括:在所述折叠角度大于预设角度时,确定所述物理形态为展开态;在所述折叠角度小于或等于预设角度时,确定所述物理形态为折叠态。
- 根据权利要求1-7任一所述的方法,其特征在于,所述方法还包括:在检测到所述电子设备以z轴为轴发生转动后,根据所述电子设备在x轴和y轴所在的平面上相对所述电子设备的基准态的转动角度,确定所述至少一个按键中第三按键的第五功能,其中,z轴为垂直于所述电子设备的显示屏的轴,x轴为与所述电子设备的侧部平行的轴,y轴为垂直于x轴和z轴所在的平面的轴,基准态是指所述电子设备的下侧边与水平面平行,且所述电子设备的上侧边与水平面的距离大于或等于所述下侧边与水平面的距离时所述电子设备所处的状态;在所述第三按键被触发时,输出所述第五功能。
- 根据权利要求8所述的方法,其特征在于,所述第三按键与所述第一按键相同,所述第五功能与所述第一功能或所述第二功能相同。
- 根据权利要求1-9任一所述的方法,其特征在于,所述电子设备被握持的握持姿势包 括左手握持或右手握持,在所述握持姿势为左手握持时所述至少一个按键中的第四按键的功能为第六功能,在所述握持姿势为右手握持时所述第四按键的功能为第七功能,所述方法还包括:在所述握持姿势为左手握持时,若所述第四按键被触发,输出所述第六功能;在所述握持姿势为右手握持时,若所述第四按键被触发,输出所述第七功能。
- 根据权利要求10所述的方法,其特征在于,所述第四按键与所述第一按键相同。
- 根据权利要求11所述的方法,其特征在于,所述第六功能与所述第一功能或所述第二功能相同,所述第七功能与所述第一功能或所述第二功能相同,其中,所述第六功能与所述第七功能不同。
- 一种电子设备,其特征在于,包括:至少一个按键;显示屏,所述显示屏为折叠屏;至少一个存储器,用于存储程序;至少一个处理器,用于执行所述存储器存储的程序,当所述存储器存储的程序被执行时,所述处理器用于执行如权利要求1-12任一所述的方法。
- 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,当所述计算机程序在电子设备上运行时,使得所述电子设备执行如权利要求1-12任一所述的方法。
- 一种计算机程序产品,其特征在于,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行如权利要求1-12任一所述的方法。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP22841206.0A EP4350471A1 (en) | 2021-07-16 | 2022-07-01 | Button control method for electronic device, and electronic device |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110808766.2A CN115617117A (zh) | 2021-07-16 | 2021-07-16 | 一种电子设备的按键控制方法及电子设备 |
CN202110808766.2 | 2021-07-16 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023284568A1 true WO2023284568A1 (zh) | 2023-01-19 |
Family
ID=84856050
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/103407 WO2023284568A1 (zh) | 2021-07-16 | 2022-07-01 | 一种电子设备的按键控制方法及电子设备 |
Country Status (3)
Country | Link |
---|---|
EP (1) | EP4350471A1 (zh) |
CN (1) | CN115617117A (zh) |
WO (1) | WO2023284568A1 (zh) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108777731A (zh) * | 2018-05-17 | 2018-11-09 | Oppo广东移动通信有限公司 | 按键配置方法、装置、移动终端及存储介质 |
CN109992189A (zh) * | 2019-02-22 | 2019-07-09 | 华为技术有限公司 | 屏幕控制方法、电子设备及存储介质 |
CN110058686A (zh) * | 2019-03-27 | 2019-07-26 | 南京维沃软件技术有限公司 | 一种控制方法及终端设备 |
CN110456864A (zh) * | 2019-10-08 | 2019-11-15 | 芯海科技(深圳)股份有限公司 | 柔性设备的控制方法、柔性设备以及存储介质 |
CN112486346A (zh) * | 2019-09-12 | 2021-03-12 | 北京小米移动软件有限公司 | 按键模式设置方法、装置及存储介质 |
WO2021118201A1 (ko) * | 2019-12-13 | 2021-06-17 | 삼성전자 주식회사 | 폴더블 전자 장치 및 상기 폴더블 전자 장치에서 사용자 인터페이스를 표시하는 방법 |
CN114661177A (zh) * | 2020-12-22 | 2022-06-24 | 深圳市柔宇科技股份有限公司 | 可弯折的电子设备及其基于弯折状态变化的切换控制方法 |
-
2021
- 2021-07-16 CN CN202110808766.2A patent/CN115617117A/zh active Pending
-
2022
- 2022-07-01 WO PCT/CN2022/103407 patent/WO2023284568A1/zh active Application Filing
- 2022-07-01 EP EP22841206.0A patent/EP4350471A1/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108777731A (zh) * | 2018-05-17 | 2018-11-09 | Oppo广东移动通信有限公司 | 按键配置方法、装置、移动终端及存储介质 |
CN109992189A (zh) * | 2019-02-22 | 2019-07-09 | 华为技术有限公司 | 屏幕控制方法、电子设备及存储介质 |
CN110058686A (zh) * | 2019-03-27 | 2019-07-26 | 南京维沃软件技术有限公司 | 一种控制方法及终端设备 |
CN112486346A (zh) * | 2019-09-12 | 2021-03-12 | 北京小米移动软件有限公司 | 按键模式设置方法、装置及存储介质 |
CN110456864A (zh) * | 2019-10-08 | 2019-11-15 | 芯海科技(深圳)股份有限公司 | 柔性设备的控制方法、柔性设备以及存储介质 |
WO2021118201A1 (ko) * | 2019-12-13 | 2021-06-17 | 삼성전자 주식회사 | 폴더블 전자 장치 및 상기 폴더블 전자 장치에서 사용자 인터페이스를 표시하는 방법 |
CN114661177A (zh) * | 2020-12-22 | 2022-06-24 | 深圳市柔宇科技股份有限公司 | 可弯折的电子设备及其基于弯折状态变化的切换控制方法 |
Also Published As
Publication number | Publication date |
---|---|
CN115617117A (zh) | 2023-01-17 |
EP4350471A1 (en) | 2024-04-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7325554B2 (ja) | タッチスクリーン表示方法および電子デバイス | |
WO2020155876A1 (zh) | 控制屏幕显示的方法及电子设备 | |
WO2021063074A1 (zh) | 一种分屏显示方法与电子设备 | |
KR102534354B1 (ko) | 시스템 탐색 바 표시 제어 방법, 그래픽 사용자 인터페이스 및 전자 디바이스 | |
WO2021036628A1 (zh) | 一种具有折叠屏的设备的触控方法与折叠屏设备 | |
WO2021057868A1 (zh) | 一种界面切换方法及电子设备 | |
WO2021104030A1 (zh) | 一种分屏显示方法及电子设备 | |
WO2021179924A1 (zh) | 一种显示蓝牙设备标识的方法及电子设备 | |
WO2022042656A1 (zh) | 一种界面显示方法及设备 | |
WO2022057512A1 (zh) | 分屏方法、装置及电子设备 | |
WO2021037223A1 (zh) | 一种触控方法与电子设备 | |
CN109416615B (zh) | 处理触摸事件的方法和适用于该方法的电子装置 | |
WO2021078032A1 (zh) | 用户界面的显示方法及电子设备 | |
WO2022083465A1 (zh) | 电子设备的投屏方法及其介质和电子设备 | |
WO2021129254A1 (zh) | 控制屏幕显示的方法和电子设备 | |
WO2023005900A1 (zh) | 一种投屏方法、电子设备及系统 | |
WO2022089407A1 (zh) | 一种显示方法及电子设备 | |
WO2022089216A1 (zh) | 一种界面显示的方法和电子设备 | |
CN108984259B (zh) | 界面显示方法、装置及终端 | |
WO2024032124A1 (zh) | 卷轴屏开合方法及相关产品 | |
WO2023284568A1 (zh) | 一种电子设备的按键控制方法及电子设备 | |
WO2022188511A1 (zh) | 语音助手唤醒方法及装置 | |
CN112181915A (zh) | 执行业务的方法、装置、终端和存储介质 | |
CN108519913B (zh) | 应用程序的运行状态管理方法、装置、存储介质及终端 | |
WO2024082989A1 (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: 22841206 Country of ref document: EP Kind code of ref document: A1 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2022841206 Country of ref document: EP |
|
WWE | Wipo information: entry into national phase |
Ref document number: 18579675 Country of ref document: US |
|
ENP | Entry into the national phase |
Ref document number: 2022841206 Country of ref document: EP Effective date: 20240104 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |