CN111596854A - Electronic equipment state determination method and device and electronic equipment - Google Patents

Electronic equipment state determination method and device and electronic equipment Download PDF

Info

Publication number
CN111596854A
CN111596854A CN202010265525.3A CN202010265525A CN111596854A CN 111596854 A CN111596854 A CN 111596854A CN 202010265525 A CN202010265525 A CN 202010265525A CN 111596854 A CN111596854 A CN 111596854A
Authority
CN
China
Prior art keywords
barometer
state
electronic device
electronic equipment
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010265525.3A
Other languages
Chinese (zh)
Other versions
CN111596854B (en
Inventor
段俊杰
杨雪洁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010265525.3A priority Critical patent/CN111596854B/en
Publication of CN111596854A publication Critical patent/CN111596854A/en
Application granted granted Critical
Publication of CN111596854B publication Critical patent/CN111596854B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/041Indexing scheme relating to G06F3/041 - G06F3/045
    • G06F2203/04102Flexible digitiser, i.e. constructional details for allowing the whole digitising part of a device to be flexed or rolled like a sheet of paper

Abstract

The embodiment of the application provides a method and a device for determining the state of electronic equipment and the electronic equipment, which are applied to the technical field of communication and are used for solving the problem that the structural design difficulty is high in the process of measuring parameters of the conventional electronic equipment. The method comprises the following steps: acquiring a target pressure value of the barometer; determining the value of a target parameter according to the target pressure value; determining a target state of the electronic equipment according to the value of the target parameter; wherein the target state comprises at least one of: the telescopic state of the telescopic camera, the folded state of the electronic equipment and the pressing state of the physical button. The method and the device can be applied to the scene of measuring the folding angle of the electronic equipment.

Description

Electronic equipment state determination method and device and electronic equipment
Technical Field
The embodiment of the application relates to the technical field of communication, and in particular relates to a method and a device for determining the state of electronic equipment, and the electronic equipment.
Background
With the development of electronic devices, the functions of the electronic devices are more and more, and the parameters that the electronic devices need to measure are more and more.
At present, in the case that the electronic device needs to use the folding angle of the electronic device, the electronic device can measure the folding angle by a magnetic encoding method. Specifically, the folding angle can be measured by arranging the magnetic device and the sensor in the electronic device, and when the folding state of the electronic device changes, the electronic device can determine the folding angle of the electronic device according to the size of the magnetic field sensed by the sensor.
However, since the magnetic device for measuring the folding angle may cause interference with other devices, a corresponding shielding structure is required to be provided in the electronic device to prevent the interference. However, the internal space of the electronic device is limited, and the difficulty of the structural design of the electronic device is increased due to the arrangement of the shielding structure.
Disclosure of Invention
The embodiment of the application provides a method and a device for determining the state of electronic equipment and the electronic equipment, and aims to solve the problem that structural design difficulty is high in the process of measuring parameters of the conventional electronic equipment.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a method for determining a state of an electronic device, where the electronic device includes a closed cavity, and a barometer is disposed in the closed cavity, and the method includes: acquiring a target pressure value of the barometer; determining the value of a target parameter according to the target pressure value; determining a target state of the electronic equipment according to the value of the target parameter; wherein the target state comprises at least one of: the telescopic state of the telescopic camera, the folded state of the electronic equipment and the pressing state of the physical button.
In a second aspect, an embodiment of the present application further provides an apparatus for determining a state of an electronic device, where the apparatus includes a closed cavity, and a barometer is disposed in the closed cavity, and the apparatus further includes: the device comprises an acquisition module and a determination module; the acquisition module is used for acquiring a target pressure value of the barometer; the determining module is used for determining the value of the target parameter according to the target pressure value acquired by the acquiring module; determining the target state of the electronic equipment according to the value of the target parameter; wherein the target state comprises at least one of: the telescopic state of the telescopic camera, the folded state of the electronic equipment and the pressing state of the physical button.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the method for determining a state of an electronic device according to the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method for determining the state of an electronic device according to the first aspect.
In the embodiment of the application, after acquiring a target pressure value of a barometer, the electronic device determines a value of a target parameter according to the target pressure value of the barometer, and then determines a target state of the electronic device according to the value of the target parameter; wherein the target state comprises at least one of: the telescopic state of the telescopic camera, the folded state of the electronic equipment and the pressing state of the physical button. Through foretell scheme, can be according to the pressure law, electronic equipment can utilize the barometer to measure multiple parameter, for example when electronic equipment's fold condition changes, electronic equipment can pass through the target pressure value of barometer, confirm the parameter value of the present fold condition of sign electronic equipment, when electronic equipment's flexible camera's flexible state changes, electronic equipment can pass through the target pressure value of barometer, confirm the parameter value of the present flexible state of sign flexible camera, when the state of pressing of physical button changes, electronic equipment can pass through the target pressure value of barometer, confirm the parameter value of the present state of pressing of sign physical button. In the embodiment of the application, an additional measuring device is not required to be newly added in the electronic equipment, or the existing internal structure is not required to be greatly adjusted, the electronic equipment can measure parameters through the built-in barometer, the complexity of the structural design of the electronic equipment can be simplified, the difficulty of the structural design of the electronic equipment is reduced, the utilization rate of the internal space of the electronic equipment can be improved, and more spaces are provided for the electronic equipment by adding devices for realizing other functions.
Drawings
FIG. 1 is a block diagram of a possible operating system according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a method for determining a status of an electronic device according to an embodiment of the present disclosure;
fig. 3 is a schematic state diagram of an electronic device according to an embodiment of the present disclosure;
FIG. 4 is a diagram illustrating a relationship between a parameter value and a pressure value of a barometer according to an embodiment of the disclosure;
fig. 5 is a second schematic view illustrating a state of an electronic device according to an embodiment of the present application;
fig. 6 is a third schematic state diagram of an electronic device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an apparatus for determining a state of an electronic device according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that "/" in this context means "or", for example, A/B may mean A or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone.
It should be noted that "a plurality" herein means two or more than two.
It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
It should be noted that, for the convenience of clearly describing the technical solutions of the embodiments of the present application, in the embodiments of the present application, the terms "first" and "second" are used to distinguish the same items or similar items with substantially the same functions or actions, and those skilled in the art can understand that the terms "first" and "second" are not limited to numbers and execution orders. For example, the first and second barometers are used to distinguish between different barometers, rather than to describe a particular order of barometers.
An execution subject of the method for determining the state of the electronic device provided in the embodiment of the present application may be the electronic device (including a mobile electronic device and a non-mobile electronic device), or may also be a functional module and/or a functional entity capable of implementing the method for determining the state of the electronic device in the electronic device, which may be specifically determined according to actual usage requirements, and the embodiment of the present application is not limited. The following takes an electronic device as an example, and an exemplary description is provided for a method for determining a state of an electronic device according to an embodiment of the present application.
The electronic device in the embodiment of the present application may be a mobile electronic device, and may also be a non-mobile electronic device. The mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), etc.; the non-mobile electronic device may be a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, or the like; the embodiments of the present application are not particularly limited.
Electronic equipment in this application embodiment is including sealing the cavity, and this sealing the cavity can be so that electronic equipment's inner space and external environment keep apart, according to the pressure law, under the unchangeable condition of gaseous quality in the unchangeable and airtight space of temperature, if this airtight space reduces, atmospheric pressure in this airtight space can rise, if this airtight space increases, atmospheric pressure in this airtight space can reduce.
Taking the folding screen electronic device as an example, in the process of folding the screen of the electronic device, the internal space of the electronic device is reduced due to the fact that the flexible shell or the flexible screen corresponding to the folding area is squeezed and contracted, at this time, the gas in the internal space is compressed, and the gas pressure in the internal space is increased. In the process of unfolding the screen of the electronic device, the internal space of the electronic device is enlarged due to the unfolding of the flexible shell or the flexible screen corresponding to the folding area, and at the moment, the volume of the gas in the internal space is increased, so that the gas pressure in the internal space is reduced.
The electronic device in the embodiment of the present application may be an electronic device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
Next, a software environment to which the method for determining the state of the electronic device according to the embodiment of the present application is applied is described by taking the operating system shown in fig. 1 as an example.
Fig. 1 is a schematic diagram of a possible operating system according to an embodiment of the present disclosure. In fig. 1, the architecture of the operating system includes 4 layers, respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application layer comprises various application programs (including system application programs and third-party application programs) in an operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes a library (also referred to as a system library) and an operating system runtime environment. The library mainly provides various resources required by the operating system. The operating system runtime environment is used to provide a software environment for the operating system.
The kernel layer is the operating system layer of the operating system and belongs to the lowest layer of the operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the operating system based on the Linux kernel.
Taking the operating system shown in fig. 1 as an example, in the embodiment of the present application, a developer may develop a software program for implementing the method for determining the state of the electronic device provided in the embodiment of the present application based on the system architecture of the operating system shown in fig. 1, so that the method for determining the state of the electronic device may run based on the operating system shown in fig. 1. That is, the processor or the electronic device may implement the method for determining the state of the electronic device provided in the embodiment of the present application by running the software program in the operating system.
In the related art, in the case where the electronic device needs to use the folding angle of the electronic device, the electronic device may measure the folding angle by a magnetic encoding method. Specifically, the folding angle can be measured by arranging the magnetic device and the sensor in the electronic device, and when the folding state of the electronic device changes, the electronic device can determine the folding angle of the electronic device according to the size of the magnetic field sensed by the sensor. In order to obtain a higher screen occupation ratio, a telescopic camera can be adopted in the electronic equipment to acquire images, the telescopic camera can be retracted into the body of the electronic equipment under the condition that the electronic equipment does not use the telescopic camera, and the telescopic camera can be extended (or popped up) from the body of the electronic equipment under the condition that the images need to be acquired. The electronic equipment can judge the working condition of the telescopic camera according to the telescopic distance of the telescopic camera, and if the electronic equipment needs to acquire the telescopic distance of the telescopic camera, the telescopic distance can be measured through a distance sensor in the electronic equipment. However, a special sensor needs to be added to the electronic device, and since the internal space of the electronic device is limited, the difficulty of the structural design of the electronic device is increased due to the addition of the sensor.
In order to solve the above problem, in the solution provided in the embodiment of the present application, an existing sensor (i.e., a barometer) is used to determine a folding angle of the electronic device or a telescopic distance of the telescopic camera according to a pressure value of the barometer of the electronic device by using a pressure law, and a new device does not need to be added. Therefore, the structural design of the electronic equipment can be simplified, the difficulty of the structural design of the electronic equipment is reduced, the utilization rate of the internal space of the electronic equipment can be improved, and a space is provided for adding devices for realizing other functions to the electronic equipment.
The execution subject of the method for determining the state of the electronic device provided in the embodiment of the present application may be the electronic device described above, or may also be a functional module and/or a functional entity capable of implementing the method for determining the state of the electronic device in the electronic device, which may be specifically determined according to actual use requirements, and the embodiment of the present application is not limited. The following takes an electronic device as an example, and exemplarily illustrates a method for determining a state of an electronic device according to an embodiment of the present application.
The following describes a method for determining a state of an electronic device according to an embodiment of the present application with reference to a flowchart of the method for determining a state of an electronic device shown in fig. 2, where fig. 2 is a flowchart of the method for determining a state of an electronic device according to an embodiment of the present application, and the method includes steps 201 to 203:
step 201: the electronic device obtains a target pressure value for the barometer.
In an embodiment of the invention, an electronic device includes a sealed cavity. One or more of the closed cavities may be provided, which is not limited in the embodiments of the present application.
Specifically, a barometer is arranged in the closed cavity in the embodiment of the present application, wherein the number of the barometers arranged may be one or more, which is not limited in the embodiment of the present application.
Optionally, the barometer may be disposed at any position of the internal space of the electronic device, for example, the barometer may be disposed above the internal space of the electronic device, or may be disposed below the internal space of the electronic device, which may be specifically disposed according to actual requirements, and this is not limited in this embodiment of the application.
For example, the target pressure value may be: the pressure difference before and after the barometer changes, perhaps, the pressure value after the barometer changes, and specific can be set for according to actual demand, and this application embodiment does not limit to this.
Specifically, if the target pressure value is a pressure difference value before and after the change of the barometer, the electronic device may calculate the pressure difference value of the barometer according to the obtained pressure value before the change of the barometer and the obtained pressure value after the change of the barometer, so as to obtain the target pressure value of the barometer.
In one example, the electronic device may obtain a target pressure value for the barometer in the event of a first state change of the electronic device.
Wherein the first state may include at least one of: the telescopic state of the telescopic camera, the folded state of the electronic equipment and the pressing state of the physical button.
Optionally, in this embodiment of the application, when the first state is the folded state of the electronic device, the first state change means that the folding angle of the electronic device changes, that is, the folding angle of the electronic device increases or decreases. When the first state is the telescopic state of the telescopic camera, the first state change means that the telescopic distance of the telescopic camera changes, that is, the telescopic distance of the telescopic camera increases or decreases. When the first state is the pressed state of the physical button, the first state change refers to pressing or lifting of the physical button.
Step 202: and the electronic equipment determines the value of the target parameter according to the target pressure value.
In the embodiment of the present application, the target parameters may be: the folding angle of the electronic device, or the telescopic distance of the telescopic camera, or the corresponding parameter value (such as 0 or 1) in the pressed state or the released state of the physical key.
Optionally, in this embodiment of the present application, the target pressure value of the barometer and the value of the target parameter may have a positive correlation or a negative correlation, and this is not limited in this embodiment of the present application.
It can be understood that, if the target parameter is the folding angle of the electronic device, when the folding angle of the electronic device is increased, the internal space of the electronic device is increased, and the pressure value of the corresponding barometer is decreased; when the folding angle of the electronic equipment is reduced, the internal space of the electronic equipment is reduced, and the pressure value of the corresponding barometer is increased.
For example, as shown in fig. 3 (a), the electronic device includes a flexible screen 31, a rigid housing 32 for support, and a flexible housing 33 for folding and disposed at the center of the rigid housing, in which the electronic device is completely unfolded, the flexible housing 33 is in a completely flat and unfolded state, the internal space of the electronic device is maximum, the air pressure is minimum, and the folding angle of the electronic device is 180 degrees. When the electronic apparatus starts to be folded, as shown in (b) of fig. 3, the flexible casing 33 starts to be contracted due to the folding, at which time, the internal space of the electronic apparatus starts to be reduced, the air pressure starts to be increased, and the folding angle of the electronic apparatus is reduced. Until the electronic device is completely folded, as shown in (c) of fig. 3, the flexible housing 33 is completely contracted, and a part of the flexible housing 33 is pushed into the internal space of the electronic device, at which time the internal space of the electronic device is minimum, the air pressure reaches maximum, and the folding angle of the electronic device is 0 degree.
In addition, the housing of the electronic device may be a flexible housing except for a part of the housing, or may be a flexible housing all of which is not limited in the embodiments of the present application. The flexible screen may be all or part of a screen of an electronic device, which is not limited in this application.
It can be understood that, if the target parameter is the telescopic distance of the telescopic camera, when the telescopic distance of the telescopic camera is increased, the internal space of the electronic device is increased, the pressure value of the corresponding barometer is decreased, and when the telescopic distance of the telescopic camera is decreased, the internal space of the electronic device is decreased, and the pressure value of the corresponding barometer is increased.
It can be understood that, if the target parameter is a corresponding parameter value in a pressed state or a released state of the physical key, when the physical key is pressed, the internal space of the electronic device is reduced, and the pressure value of the corresponding barometer is increased; when the physical key is released, the internal space of the electronic device is increased, and the pressure value of the corresponding barometer is reduced.
It should be noted that, when the electronic device is not folded, or the retractable camera is not extended, or the physical button is not pressed, the pressure value of the barometer may be a pressure value corresponding to the standard atmospheric pressure, or may be a pressure value of another preset numerical value.
For example, when the electronic device performs step 202, the electronic device may determine the value of the target parameter according to the correspondence between the target pressure value of the barometer and the value of the target parameter. The corresponding relationship may be stored in the electronic device.
For example, the correspondence relationship may be obtained through testing. Taking the corresponding relationship between the target pressure value of the barometer and the folding angle of the electronic device as an example, the electronic device may measure the folding angle a of the electronic device through an angle measuring instrument, and record the pressure values x of the barometer corresponding to different folding angles a; and obtaining a relational expression of a and x by mathematical regression analysis. For example, if the folding angle of the electronic device is inversely proportional to the pressure value of the barometer, the corresponding relation may be a ═ k1/x, where k1 is a constant. When the electronic equipment acquires the pressure value of the barometer, the folding angle of the electronic equipment can be calculated.
It should be noted that, for obtaining the corresponding relationship between the target pressure value of the barometer and the telescopic state of the telescopic camera, reference may be made to the description of the corresponding relationship between the target pressure value of the barometer and the folding angle of the electronic device in this embodiment of the application, and details are not described here again.
Step 203: and the electronic equipment determines the target state of the electronic equipment according to the value of the target parameter.
Wherein the target state may include at least one of: the telescopic state of the telescopic camera, the folded state of the electronic equipment and the pressing state of the physical button.
For example, if the target parameter is a folding angle, the electronic device may determine a folding state of the electronic device; if the target parameter is the telescopic distance, the electronic equipment can determine the telescopic state of the telescopic camera; if the target parameter is a parameter value corresponding to the physical key, the electronic device may determine a pressing state of the physical key.
For example, the electronic device calculates the folding angle of the electronic device to be 0 degree according to the pressure value of the barometer, and the electronic device may determine that the electronic device is completely folded at present according to the folding angle.
It is to be understood that the first state mentioned above is a current state of the electronic device, and the target state mentioned above may be a state of the electronic device after being changed from the first state.
According to the method for determining the state of the electronic equipment, after the electronic equipment obtains the target pressure value of the barometer, the value of the target parameter is determined according to the target pressure value of the barometer, and then the target state of the electronic equipment is determined according to the value of the target parameter; wherein the target state comprises at least one of: the telescopic state of the telescopic camera, the folded state of the electronic equipment and the pressing state of the physical button. Through foretell scheme, can be according to the pressure law, electronic equipment can utilize the barometer to measure multiple parameter, for example when electronic equipment's fold condition changes, electronic equipment can pass through the target pressure value of barometer, confirm the parameter value of the present fold condition of sign electronic equipment, when electronic equipment's flexible camera's flexible state changes, electronic equipment can pass through the target pressure value of barometer, confirm the parameter value of the present flexible state of sign flexible camera, when the state of pressing of physical button changes, electronic equipment can pass through the target pressure value of barometer, confirm the parameter value of the present state of pressing of sign physical button. In the embodiment of the application, an additional measuring device is not required to be newly added in the electronic equipment, or the existing internal structure is not required to be greatly adjusted, the electronic equipment can measure parameters through the built-in barometer, the complexity of the structural design of the electronic equipment can be simplified, the difficulty of the structural design of the electronic equipment is reduced, the utilization rate of the internal space of the electronic equipment can be improved, and more spaces are provided for the electronic equipment by adding devices for realizing other functions.
Optionally, in this embodiment of the application, the electronic device may determine different parameters when the electronic device is in different states.
For example, based on the step 202, if the target state is the folded state of the electronic device, the electronic device executes the step 202a, and if the target state is the extended state of the retractable camera, the electronic device executes the step 202b, where:
step 202 a: and when the target state is the folding state of the electronic equipment, the electronic equipment determines the folding angle of the electronic equipment according to the target pressure value.
Wherein the electronic device can be folded at any position in the folding area.
In an embodiment of the application, the folding angle of the electronic device and the target pressure value of the barometer have a negative correlation.
For example, as shown in fig. 4, the pressure value of the barometer decreases as the folding angle of the electronic device increases and increases as the folding angle of the electronic device decreases. For example, the fold angle of the electronic device is inversely proportional to the pressure value of the barometer.
In the case where the folding angle of the electronic device and the target pressure value of the barometer have a negative correlation, the folding angle in the present application is an angle that is less than or equal to 180 degrees when the electronic device is folded.
For example, the electronic device may be folded in any direction, for example, the electronic device may fold the screen toward each other, or may fold the housing toward each other, which is not limited in this embodiment of the application.
For example, in the case that the electronic device is completely unfolded, the pressure value of the barometer is a pressure value corresponding to the standard atmospheric pressure, and if the user folds the electronic device, as shown in fig. 5 in conjunction with fig. 3, the folded state of the electronic device changes, at this time, the internal space of the electronic device decreases, and the electronic device can obtain the pressure value a of the barometer 41, where the pressure value a is greater than the pressure value of the barometer 41 when the electronic device is completely unfolded. At this time, the electronic device may calculate a folding angle B of the electronic device according to the pressure value a.
Step 202 b: and when the target state is the telescopic state of the telescopic camera, the electronic equipment determines the telescopic distance of the telescopic camera according to the target pressure value.
Illustratively, the telescopic distance of the telescopic camera and the target pressure value of the barometer have a negative correlation relationship. For example, the telescopic distance of the telescopic camera is inversely proportional to the target pressure value of the barometer.
Optionally, one or more telescopic cameras may be provided, which is not limited in this embodiment of the application.
For example, when the telescopic camera of the electronic device is not extended, the pressure value of the barometer is the pressure value corresponding to the standard atmospheric pressure, and after the telescopic camera of the electronic device is extended, the telescopic distance of the telescopic camera is changed, at this time, the internal space of the electronic device is increased, the electronic device can obtain the pressure value C of the barometer, and the pressure value C is greater than the pressure value of the barometer when the telescopic camera is not extended. At this time, the electronic device may calculate the telescopic distance D of the telescopic camera according to the pressure value C.
The method for determining the state of the electronic equipment can be applied to scenes for measuring various parameters, if the target states of the electronic equipment are different, the electronic equipment can determine the values of the corresponding parameters according to the pressure values of the barometer, and determine the target states of the electronic equipment according to the values of the corresponding parameters, so that the electronic equipment does not need to add a plurality of devices for measuring various parameters, the difficulty of structural design of the electronic equipment is reduced, and the utilization rate of the internal space of the electronic equipment is improved.
Optionally, in this embodiment of the present application, the electronic device may include M closed cavities; wherein, all be provided with the barometer in every closed cavity, M is the positive integer.
It will be appreciated that each of the enclosed cavities described above has a barometer disposed therein, meaning that at least one barometer may be disposed in one of the enclosed cavities. Wherein one barometer is used to obtain a parameter value.
It should be noted that, if a plurality of barometers are disposed in one closed cavity, each of the barometers may measure the same parameter value or may measure different parameter values, which is not limited in the embodiment of the present invention.
For example, in the case that M is 1, the closed cavity of the electronic device may include all or part of an internal space of the electronic device, which is not limited in this embodiment of the application.
In an example, in the case that M is 1, if at least two target parameters need to be measured, the electronic device may implement the measurement separately.
For example, taking two target parameters, namely, a folding angle of the electronic device and a telescopic distance of the telescopic camera as an example, the electronic device may measure the folding angle under the condition that the telescopic distance of the telescopic camera is not changed. Under the condition of keeping the folding angle of the electronic equipment unchanged, the electronic equipment can measure the telescopic distance of the telescopic camera.
It should be noted that, because a change curve of the folding angle of the electronic device and the pressure value of the barometer is different from a change curve of the telescopic distance of the telescopic camera and the pressure value of the barometer, the electronic device can distinguish which parameter the target parameter currently measured by the electronic device is according to the pressure difference value and the pressure value of the barometer.
Alternatively, in the case of M ≧ 2, each enclosed cavity of the electronic device can be used to measure the value of a target parameter. For example, when the electronic device has two folding regions, two closed cavities may be provided, and one closed cavity is used for measuring the folding angle corresponding to the folding position in one folding region.
For example, when a plurality of barometers are arranged in one closed cavity, the barometers can be used for measuring the same parameter value, so that the measurement accuracy is improved.
The method for determining the state of the electronic equipment can be applied to a scene of measuring parameters by using at least one closed cavity, the electronic equipment can be provided with one or more closed cavities, when the electronic equipment is provided with one closed cavity, the electronic equipment can respectively measure various parameters by using one barometer, the structural design of the electronic equipment is simplified, when the electronic equipment is provided with a plurality of closed cavities, the electronic equipment can simultaneously measure various parameters by using a plurality of closed cavities, and the flexibility of measuring the parameters of the electronic equipment is improved.
Further optionally, in this embodiment of the application, when the electronic device includes a plurality of closed cavities, the electronic device may measure the same type of parameter by using the plurality of cavities, and may also measure different types of parameters.
In one possible implementation (measuring the same type of parameter):
it is to be understood that the electronic device may have a plurality of folding areas, and in the case of folding the electronic device, the electronic device may include one folding position, or may include a plurality of folding positions, and the plurality of folding positions correspond to different folding areas.
For example, when M is greater than or equal to 2, the electronic device includes a first closed cavity and a second closed cavity, the first closed cavity is provided with a first barometer, the second closed cavity is provided with a second barometer, and the step 202 may specifically include the following step 202 c:
step 202 c: when the target state is the folded state of the electronic device, the electronic device may determine a first folding angle of the electronic device according to the target pressure value of the first barometer, and may determine a second folding angle of the electronic device according to the target pressure value of the second barometer.
The folding areas corresponding to the first folding angle and the second folding angle are different.
For example, taking an electronic device with two folding regions as an example, as shown in fig. 6, the electronic device has two closed cavities, namely a first closed cavity 51 and a second closed cavity 52, wherein a first barometer 53 is disposed in the first closed cavity 51, and a second barometer 54 is disposed in the second closed cavity 52. When the user folds the electronic device in two folded positions, the flexible housing 55 and the flexible housing 56 of the electronic device start to be contracted due to the folding. At this time, the internal spaces of the first closed cavity 51 and the second closed cavity 52 of the electronic device are both reduced, and the air pressure is increased. The electronic device may obtain the pressure values of the first barometer and the second barometer, and then the electronic device may calculate the folding angle E (i.e., the first folding angle) according to the pressure value of the first barometer, and calculate the folding angle F (i.e., the second folding angle) according to the pressure value of the second barometer.
For example, the first folding angle and the second folding angle may be the same or different, and this is not limited in this application.
In another possible implementation (measuring different types of parameters):
for example, when M is greater than or equal to 2, the electronic device includes a third closed cavity and a fourth closed cavity, the third closed cavity is provided with a third barometer, the fourth closed cavity is provided with a fourth barometer, and the step 202 may specifically include the following steps 202d and 202 e:
step 202 d: and the electronic equipment determines a third folding angle of the electronic equipment according to the target pressure value of the third barometer.
The third folding angle is a folding angle of a folding position corresponding to the third barometer.
For example, when the electronic device has a plurality of folding positions, the third folding angle may be a folding angle corresponding to at least one of the plurality of folding positions.
Step 202 e: and the electronic equipment determines the telescopic distance of the telescopic camera according to the target pressure value of the fourth barometer.
It should be noted that, the electronic device does not have an obvious execution sequence when executing the above step 202d and step 202e, the electronic device may execute the step 202e after executing the step 202d, may execute the step 202e before executing the step 202d, and may also execute the step 202e while executing the step 202d, which is not limited in this embodiment of the application.
For example, taking an electronic device with a folding position and a retractable camera as an example, the electronic device has two closed cavities, namely a third closed cavity and a fourth closed cavity, where a third barometer is disposed in the third closed cavity and a fourth barometer is disposed in the fourth closed cavity. When a user folds the electronic equipment, the electronic equipment is triggered to pop out the telescopic camera, at the moment, the flexible shell of the electronic equipment shrinks, the inner space of the third closed cavity of the electronic equipment is reduced, and the air pressure is increased; because the flexible camera of electronic equipment stretches out, the inner space of the fourth closed cavity of electronic equipment increases, and atmospheric pressure reduces. The electronic equipment can acquire the pressure values of the third barometer and the fourth barometer respectively, then the electronic equipment can calculate a third folding angle of the electronic equipment according to the pressure value of the third barometer, and the telescopic camera is calculated according to the pressure value of the fourth barometer.
It should be noted that, when acquiring the pressure value of the barometer, the electronic device may acquire the position information of the barometer, and therefore, the electronic device may determine the target parameter, which is measured by the barometer, according to the position information of the barometer.
The method for determining the state of the electronic equipment can be applied to a scene of simultaneously measuring a plurality of parameters, the electronic equipment divides a plurality of closed cavities through the internal space of the electronic equipment, and then each closed cavity can be utilized to measure one target parameter, so that the parameters are measured more flexibly, and the structural design of the electronic equipment can be simplified.
Optionally, in this embodiment of the present application, after the step 202, the method may further include the step 204 of:
step 204: the electronic equipment executes the target operation according to the value of the target parameter.
Illustratively, the above-mentioned target operation may include: the method comprises the steps of lighting a screen of the electronic equipment, controlling the electronic equipment to be turned off, adjusting the volume, reporting the current state of the telescopic camera and the like.
For example, when the folding angle of the electronic device is greater than or equal to 30 degrees, the electronic device may light up the screen of the electronic device; when the folding angle of the electronic equipment is smaller than 30 degrees, the electronic equipment can control the electronic equipment to turn off the screen; when a volume key of the electronic equipment is pressed, the electronic equipment adjusts the volume; when the telescopic camera of the electronic equipment stretches out, the electronic equipment can report that the telescopic camera is in a normal working state.
The method for determining the state of the electronic device can be applied to a scene of determining corresponding operation by using the parameters, and the electronic device determines the value of the target parameter by using the barometer, so that the electronic device can accurately execute the corresponding operation according to the target parameter.
Fig. 7 is a schematic structural diagram of a possible apparatus for determining a state of an electronic device according to an embodiment of the present application, and as shown in fig. 7, the apparatus 600 includes: an obtaining module 601 and a determining module 602, wherein: an obtaining module 601, configured to obtain a target pressure value of a barometer; a determining module 602, configured to determine a value of the target parameter according to the target pressure value obtained by the obtaining module 601; determining the target state of the electronic equipment according to the value of the target parameter; wherein the target state comprises at least one of: the telescopic state of the telescopic camera, the folded state of the electronic equipment and the pressing state of the physical button.
Optionally, the determining module 602 is specifically configured to: under the condition that the target state is the folding state of the electronic equipment, determining the folding angle of the electronic equipment according to the target pressure value acquired by the acquisition module 601; or, when the target state is the telescopic state of the telescopic camera, determining the telescopic distance of the telescopic camera according to the target pressure value acquired by the acquisition module 601.
Optionally, the electronic device comprises M closed cavities; wherein, all be provided with the barometer in every closed cavity, M is the positive integer.
Optionally, under the condition that M is greater than or equal to 2, the electronic device includes a first closed cavity and a second closed cavity, the first closed cavity is provided with a first barometer, and the second closed cavity is provided with a second barometer; the determining module 602 is specifically configured to determine, when the target state is a folded state of the electronic device, a first folding angle of the electronic device according to the target pressure value of the first barometer acquired by the acquiring module 601, and determine a second folding angle of the electronic device according to the target pressure value of the second barometer acquired by the acquiring module 601; and the folding areas corresponding to the first folding angle and the second folding angle are different.
Optionally, under the condition that M is greater than or equal to 2, the electronic device includes a third closed cavity and a fourth closed cavity, the third closed cavity is provided with a third barometer, and the fourth closed cavity is provided with a fourth barometer; a determining module 602, specifically configured to determine a third folding angle of the electronic device according to the target pressure value of the third barometer acquired by the acquiring module 601; determining the telescopic distance of the telescopic camera according to the target pressure value of the fourth barometer acquired by the acquisition module 601; and the third folding angle is the folding angle of the folding position corresponding to the third barometer.
Optionally, the folding angle of the electronic device has a negative correlation with the target pressure value of the barometer.
According to the device for determining the state of the electronic equipment, after the device for determining the state of the electronic equipment obtains the target pressure value of the barometer, the value of the target parameter is determined according to the target pressure value of the barometer, and then the target state of the electronic equipment is determined according to the value of the target parameter; wherein the target state comprises at least one of: the telescopic state of the telescopic camera, the folded state of the electronic equipment and the pressing state of the physical button. Through the scheme, according to the pressure law, the determining device can measure various parameters by using the barometer, for example, when the folding state of the electronic equipment changes, the determining device can determine the parameter value representing the current folding state of the electronic equipment through the target pressure value of the barometer, when the folding state of the telescopic camera of the electronic equipment changes, the determining device can determine the parameter value representing the current folding state of the telescopic camera through the target pressure value of the barometer, and when the pressing state of the physical button changes, the determining device can determine the parameter value representing the current pressing state of the physical button through the target pressure value of the barometer. In the embodiment of the application, additional measuring devices are not required to be newly added in the determining device, or the existing internal structure is not required to be greatly adjusted, the determining device can measure the parameters through the built-in barometer, the complexity of the structural design of the electronic equipment can be simplified, the difficulty of the structural design of the electronic equipment is reduced, the utilization rate of the internal space of the electronic equipment can be improved, and more spaces are provided for the electronic equipment by adding devices for realizing other functions.
The device for determining the state of the electronic device provided in the embodiment of the present application can implement each process of the method embodiment, and is not described here again to avoid repetition.
Fig. 8 is a schematic hardware structure diagram of an electronic device 100 for implementing various embodiments of the present application, where the electronic device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the configuration of electronic device 100 shown in fig. 8 does not constitute a limitation of the electronic device, and that electronic device 100 may include more or fewer components than shown, or combine certain components, or a different arrangement of components. In the embodiment of the present application, the electronic device 100 includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal device, a wearable device, a pedometer, and the like.
The sensor 105 is used for acquiring a target pressure value of the barometer; a processor 110 for determining a value of a target parameter based on a target pressure value obtained by the sensor 105; determining the target state of the electronic equipment according to the value of the target parameter; wherein the target state comprises at least one of: the telescopic state of the telescopic camera, the folded state of the electronic equipment and the pressing state of the physical button.
Optionally, the processor 110 is specifically configured to: under the condition that the target state is the folding state of the electronic equipment, determining the folding angle of the electronic equipment according to the target pressure value acquired by the sensor 105; alternatively, when the target state is the expansion/contraction state of the expansion/contraction camera, the expansion/contraction distance of the expansion/contraction camera is determined based on the target pressure value acquired by the sensor 105.
Optionally, the electronic device comprises M closed cavities; wherein, all be provided with the barometer in every closed cavity, M is the positive integer.
Optionally, under the condition that M is greater than or equal to 2, the electronic device includes a first closed cavity and a second closed cavity, the first closed cavity is provided with a first barometer, and the second closed cavity is provided with a second barometer; the processor 110 is specifically configured to, when the target state is a folded state of the electronic device, determine a first folding angle of the electronic device according to a target pressure value of the first barometer acquired by the sensor 105, and determine a second folding angle of the electronic device according to a target pressure value of the second barometer acquired by the sensor 105; and the folding areas corresponding to the first folding angle and the second folding angle are different.
Optionally, under the condition that M is greater than or equal to 2, the electronic device includes a third closed cavity and a fourth closed cavity, the third closed cavity is provided with a third barometer, and the fourth closed cavity is provided with a fourth barometer; the processor 110 is specifically configured to determine a third folding angle of the electronic device according to the target pressure value of the third barometer acquired by the sensor 105; determining the telescopic distance of the telescopic camera according to the target pressure value of the fourth barometer acquired by the sensor 105; and the third folding angle is the folding angle of the folding position corresponding to the third barometer.
Optionally, the folding angle of the electronic device has a negative correlation with the target pressure value of the barometer.
According to the electronic device provided by the embodiment of the application, after the electronic device obtains the target pressure value of the barometer, the value of the target parameter is determined according to the target pressure value of the barometer, and then the target state of the electronic device is determined according to the value of the target parameter; wherein the target state comprises at least one of: the telescopic state of the telescopic camera, the folded state of the electronic equipment and the pressing state of the physical button. Through foretell scheme, can be according to the pressure law, electronic equipment can utilize the barometer to measure multiple parameter, for example when electronic equipment's fold condition changes, electronic equipment can pass through the target pressure value of barometer, confirm the parameter value of the present fold condition of sign electronic equipment, when electronic equipment's flexible camera's flexible state changes, electronic equipment can pass through the target pressure value of barometer, confirm the parameter value of the present flexible state of sign flexible camera, when the state of pressing of physical button changes, electronic equipment can pass through the target pressure value of barometer, confirm the parameter value of the present state of pressing of sign physical button. In the embodiment of the application, an additional measuring device is not required to be newly added in the electronic equipment, or the existing internal structure is not required to be greatly adjusted, the electronic equipment can measure parameters through the built-in barometer, the complexity of the structural design of the electronic equipment can be simplified, the difficulty of the structural design of the electronic equipment is reduced, the utilization rate of the internal space of the electronic equipment can be improved, and more spaces are provided for the electronic equipment by adding devices for realizing other functions.
It should be understood that, in the embodiment of the present application, the radio frequency unit 101 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The electronic device 100 provides wireless broadband internet access to the user via the network module 102, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic apparatus 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The electronic device 100 also includes at least one sensor 105, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the electronic device 100 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus 100. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 8, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the electronic device 100, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the electronic device 100, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the electronic apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 100 or may be used to transmit data between the electronic apparatus 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the electronic device 100, connects various parts of the entire electronic device 100 using various interfaces and lines, and performs various functions of the electronic device 100 and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the electronic device 100. Processor 110 may include one or more processing units; alternatively, the processor 110 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The electronic device 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and optionally, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 100 includes some functional modules that are not shown, and are not described in detail herein.
Optionally, an electronic device is further provided in this embodiment of the present application, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor 110, where the computer program, when executed by the processor, implements each process of the above method for determining a state of the electronic device, and can achieve the same technical effect, and details are not described here to avoid repetition.
The embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when executed by a processor, the computer program implements each process of the method for determining a state of an electronic device, and can achieve the same technical effect, and in order to avoid repetition, the detailed description is omitted here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (14)

1. A method for determining the state of electronic equipment is applied to the electronic equipment, the electronic equipment comprises a closed cavity, a barometer is arranged in the closed cavity, and the method is characterized by comprising the following steps:
acquiring a target pressure value of the barometer;
determining a value of a target parameter according to the target pressure value;
determining a target state of the electronic equipment according to the value of the target parameter;
wherein the target state comprises at least one of: the telescopic state of the telescopic camera, the folded state of the electronic equipment and the pressing state of the physical button.
2. The method of claim 1, wherein said determining a value of said target parameter based on a target pressure value of said barometer comprises:
under the condition that the target state is the folding state of the electronic equipment, determining the folding angle of the electronic equipment according to the target pressure value; alternatively, the first and second electrodes may be,
and under the condition that the target state is the telescopic state of the telescopic camera, determining the telescopic distance of the telescopic camera according to the target pressure value.
3. The method of claim 1 or 2, wherein the electronic device comprises M closed cavities;
wherein, all be provided with the barometer in every closed cavity, M is the positive integer.
4. The method according to claim 3, wherein in the case that M is greater than or equal to 2, the electronic device comprises a first closed cavity and a second closed cavity, the first closed cavity is provided with a first barometer, and the second closed cavity is provided with a second barometer;
determining the value of the target parameter according to the target pressure value includes:
under the condition that the target state is the folding state of the electronic equipment, determining a first folding angle of the electronic equipment according to a target pressure value of the first barometer, and determining a second folding angle of the electronic equipment according to a target pressure value of the second barometer;
wherein the folding areas corresponding to the first folding angle and the second folding angle are different.
5. The method according to claim 3, wherein in the case that M is greater than or equal to 2, the electronic device comprises a third closed cavity and a fourth closed cavity, wherein the third closed cavity is provided with a third barometer, and the fourth closed cavity is provided with a fourth barometer;
determining the value of the target parameter according to the target pressure value includes:
determining a third folding angle of the electronic device according to a target pressure value of the third barometer;
determining the telescopic distance of the telescopic camera according to the target pressure value of the fourth barometer;
wherein the third folding angle is a folding angle of a folding position corresponding to the third barometer.
6. The method of claim 2, wherein the fold angle of the electronic device is inversely related to the target pressure value of the barometer.
7. The utility model provides a confirming device of electronic equipment state, the device includes the closed cavity, be provided with the barometer in the closed cavity, its characterized in that, the device still includes: the device comprises an acquisition module and a determination module;
the acquisition module is used for acquiring a target pressure value of the barometer;
the determining module is used for determining the value of a target parameter according to the target pressure value acquired by the acquiring module; determining a target state of the electronic equipment according to the value of the target parameter;
wherein the target state comprises at least one of: the telescopic state of the telescopic camera, the folded state of the electronic equipment and the pressing state of the physical button.
8. The apparatus of claim 7, wherein the determining module is specifically configured to:
under the condition that the target state is the folding state of the electronic equipment, determining the folding angle of the electronic equipment according to the target pressure value acquired by the acquisition module; alternatively, the first and second electrodes may be,
and under the condition that the target state is the telescopic state of the telescopic camera, determining the telescopic distance of the telescopic camera according to the target pressure value acquired by the acquisition module.
9. The device of claim 7 or 8, wherein the device comprises M closed cavities;
wherein, all be provided with the barometer in every closed cavity, M is the positive integer.
10. The device according to claim 9, wherein in case that M is greater than or equal to 2, the device comprises a first closed cavity provided with a first barometer and a second closed cavity provided with a second barometer;
the determining module is specifically configured to determine, when the target state is a folded state of the electronic device, a first folding angle of the electronic device according to a target pressure value of a first barometer acquired by the acquiring module, and determine a second folding angle of the electronic device according to a target pressure value of a second barometer acquired by the acquiring module;
wherein the folding areas corresponding to the first folding angle and the second folding angle are different.
11. The device according to claim 9, wherein in case M ≧ 2, the device comprises a third enclosed cavity provided with a third barometer and a fourth enclosed cavity provided with a fourth barometer;
the determining module is specifically configured to determine a third folding angle of the electronic device according to the target pressure value of the third barometer acquired by the acquiring module; determining the telescopic distance of the telescopic camera according to the target pressure value of the fourth barometer acquired by the acquisition module;
wherein the third folding angle is a folding angle of a folding position corresponding to the third barometer.
12. The apparatus of claim 8, wherein the fold angle of the electronic device is inversely related to a target pressure value of the barometer.
13. An electronic device, comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the method of determining a state of an electronic device according to any one of claims 1 to 6.
14. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of determining the status of an electronic device according to any one of claims 1 to 6.
CN202010265525.3A 2020-04-07 2020-04-07 Electronic equipment state determination method and device and electronic equipment Active CN111596854B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010265525.3A CN111596854B (en) 2020-04-07 2020-04-07 Electronic equipment state determination method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010265525.3A CN111596854B (en) 2020-04-07 2020-04-07 Electronic equipment state determination method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN111596854A true CN111596854A (en) 2020-08-28
CN111596854B CN111596854B (en) 2021-07-23

Family

ID=72190427

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010265525.3A Active CN111596854B (en) 2020-04-07 2020-04-07 Electronic equipment state determination method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111596854B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101846783A (en) * 2009-03-26 2010-09-29 格科微电子(上海)有限公司 Drive method of telescopic mobile phone lens and drive structure thereof
CN103390520A (en) * 2013-07-30 2013-11-13 上海斐讯数据通信技术有限公司 Pressure sensing system for mobile terminal and implementation method
CN103871769A (en) * 2012-12-13 2014-06-18 联想(北京)有限公司 Input device and electronic device
CN104303135A (en) * 2012-03-27 2015-01-21 诺基亚公司 Method and apparatus for force sensing
WO2016031627A1 (en) * 2014-08-28 2016-03-03 京セラ株式会社 Portable electronic device, control method, and control program
CN106527017A (en) * 2016-12-09 2017-03-22 格科微电子(上海)有限公司 Camera module
US20190041287A1 (en) * 2017-08-01 2019-02-07 Casio Computer Co., Ltd. Tap Detection Device
CN109584719A (en) * 2017-09-28 2019-04-05 京东方科技集团股份有限公司 Flexible Displays mould group and preparation method and bending method, electronic equipment
CN109818687A (en) * 2019-01-31 2019-05-28 青岛海信移动通信技术股份有限公司 Folded state recognition methods, device, equipment and the storage medium of Folding screen
CN210694022U (en) * 2019-12-13 2020-06-05 Oppo广东移动通信有限公司 Foldable electronic equipment
CN210694023U (en) * 2019-12-13 2020-06-05 Oppo广东移动通信有限公司 Foldable electronic equipment
US10775943B2 (en) * 2016-04-05 2020-09-15 Hideep Inc. Pressure sensor, touch input device including same, and pressure detection method using same

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101846783A (en) * 2009-03-26 2010-09-29 格科微电子(上海)有限公司 Drive method of telescopic mobile phone lens and drive structure thereof
CN104303135A (en) * 2012-03-27 2015-01-21 诺基亚公司 Method and apparatus for force sensing
CN103871769A (en) * 2012-12-13 2014-06-18 联想(北京)有限公司 Input device and electronic device
CN103390520A (en) * 2013-07-30 2013-11-13 上海斐讯数据通信技术有限公司 Pressure sensing system for mobile terminal and implementation method
WO2016031627A1 (en) * 2014-08-28 2016-03-03 京セラ株式会社 Portable electronic device, control method, and control program
US10775943B2 (en) * 2016-04-05 2020-09-15 Hideep Inc. Pressure sensor, touch input device including same, and pressure detection method using same
CN106527017A (en) * 2016-12-09 2017-03-22 格科微电子(上海)有限公司 Camera module
US20190041287A1 (en) * 2017-08-01 2019-02-07 Casio Computer Co., Ltd. Tap Detection Device
CN109584719A (en) * 2017-09-28 2019-04-05 京东方科技集团股份有限公司 Flexible Displays mould group and preparation method and bending method, electronic equipment
CN109818687A (en) * 2019-01-31 2019-05-28 青岛海信移动通信技术股份有限公司 Folded state recognition methods, device, equipment and the storage medium of Folding screen
CN210694022U (en) * 2019-12-13 2020-06-05 Oppo广东移动通信有限公司 Foldable electronic equipment
CN210694023U (en) * 2019-12-13 2020-06-05 Oppo广东移动通信有限公司 Foldable electronic equipment

Also Published As

Publication number Publication date
CN111596854B (en) 2021-07-23

Similar Documents

Publication Publication Date Title
CN110891144B (en) Image display method and electronic equipment
CN109743498B (en) Shooting parameter adjusting method and terminal equipment
CN109032445B (en) Screen display control method and terminal equipment
CN110838748B (en) Electronic equipment and charging control system thereof
CN110602407B (en) Shooting method and electronic equipment
CN111142723B (en) Icon moving method and electronic equipment
CN109828705B (en) Icon display method and terminal equipment
CN110489045B (en) Object display method and terminal equipment
CN108848256B (en) Key control method of double-screen terminal and double-screen terminal
CN109739394B (en) SAR value processing method and mobile terminal
CN109639887B (en) Control method and terminal equipment
CN111401463A (en) Method for outputting detection result, electronic device, and medium
CN110908750B (en) Screen capturing method and electronic equipment
CN111459233A (en) Display method, electronic device, and storage medium
CN110489038B (en) Interface display method and terminal equipment
CN110536005B (en) Object display adjustment method and terminal
CN109443261B (en) Method for acquiring folding angle of folding screen mobile terminal and mobile terminal
CN111142618A (en) Method for detecting folding angle and electronic equipment
CN108833791B (en) Shooting method and device
CN109189514B (en) Terminal device control method and terminal device
CN108536404B (en) Display control method, bendable terminal and computer readable storage medium
CN111246105B (en) Photographing method, electronic device, and computer-readable storage medium
CN110069146B (en) Screen space parameter acquisition method and terminal equipment
CN109922256B (en) Shooting method and terminal equipment
CN109257504B (en) Audio processing method and terminal equipment

Legal Events

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