CN110311999B - Control method and device of electronic equipment - Google Patents

Control method and device of electronic equipment Download PDF

Info

Publication number
CN110311999B
CN110311999B CN201810230245.1A CN201810230245A CN110311999B CN 110311999 B CN110311999 B CN 110311999B CN 201810230245 A CN201810230245 A CN 201810230245A CN 110311999 B CN110311999 B CN 110311999B
Authority
CN
China
Prior art keywords
sensor
sensor assembly
magnetic field
housing
shell
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.)
Active
Application number
CN201810230245.1A
Other languages
Chinese (zh)
Other versions
CN110311999A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810230245.1A priority Critical patent/CN110311999B/en
Publication of CN110311999A publication Critical patent/CN110311999A/en
Application granted granted Critical
Publication of CN110311999B publication Critical patent/CN110311999B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1626Constructional details or arrangements for portable computers with a single-body enclosure integrating a flat display, e.g. Personal Digital Assistants [PDAs]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1684Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • 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/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention provides a control method and a control device of electronic equipment, wherein the method comprises the following steps: after the magnetic field intensity detected by the magnetic field detector is obtained, the sensor assembly is controlled to move relative to the shell according to the magnetic field intensity, so that the sensor assembly protrudes out of the side wall of the shell or is positioned inside the shell. Because remove through the relative casing of control sensor subassembly, when needs use sensor subassembly, make its protrusion in the lateral wall of casing makes it hide inside the casing when need not to use sensor subassembly to electronic equipment is comparatively pleasing to the eye, and need not to lap the trompil in screen glass, solves among the prior art and sets up tectorial membrane behind the sensor through the glass apron trompil at the screen, leads to the technical problem that the clever density of sensor descends.

Description

Control method and device of electronic equipment
Technical Field
The present invention relates to the field of mobile terminal technologies, and in particular, to a method and an apparatus for controlling an electronic device.
Background
Existing electronic devices such as mobile terminals generally require a hole to be formed in a glass cover of a screen for disposing various sensors, such as: proximity sensors, cameras and receivers, and the like.
For a full-screen mobile terminal, it is desirable to hide the sensors from the front of the electronic device, i.e., the side of the screen, for aesthetic reasons. In the prior art, often after the sensor is arranged in the hole of the glass cover plate of the screen, the film is covered so that the hole is not obvious, and therefore the attractive effect is achieved. However, tests show that the film coating has an influence on the sensitivity of the sensor.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, the invention provides a control method of electronic equipment, which achieves the effect of projecting the sensor assembly out of the shell or hiding the sensor assembly from the interior of the shell by controlling the sensor assembly to move relative to the shell, and can enable the electronic equipment to be more attractive under the condition of not needing a film coating.
The invention provides a control device of electronic equipment.
The invention provides an electronic device.
The invention provides a computer readable storage medium.
An embodiment of the invention in one aspect provides a control method for an electronic device, the electronic device having a housing and a sensor assembly, the sensor assembly being movable relative to the housing to protrude from a sidewall of the housing or to be located inside the housing, one of the sensor assembly and the housing being fixedly connected to a magnet, and the other of the sensor assembly and the housing being fixedly connected to a magnetic field detector, the method including the steps of:
acquiring the magnetic field intensity detected by the magnetic field detector;
controlling the sensor assembly to move relative to the housing based on the strength of the magnetic field.
According to the control method of the electronic equipment, after the magnetic field intensity detected by the magnetic field detector is obtained, the sensor assembly is controlled to move relative to the shell according to the magnetic field intensity, so that the sensor assembly protrudes out of the side wall of the shell or is positioned in the shell. Because remove through the relative casing of control sensor subassembly, when needs use sensor subassembly, make its protrusion in the lateral wall of casing makes it hide inside the casing when need not to use sensor subassembly to electronic equipment is comparatively pleasing to the eye, and need not to lap the trompil in screen glass, solves among the prior art and sets up tectorial membrane behind the sensor through the glass apron trompil at the screen, leads to the technical problem that the clever density of sensor descends.
In accordance with another aspect of the present invention, there is provided a control apparatus for an electronic device, the electronic device having a housing and a sensor assembly, the sensor assembly being movable relative to the housing to protrude from a sidewall of the housing or to be located inside the housing, one of the sensor assembly and the housing being fixedly connected to a magnet, and the other of the sensor assembly and the housing being fixedly connected to a magnetic field detector, the apparatus including:
the acquisition module is used for acquiring the magnetic field intensity detected by the magnetic field detector;
and the control module is used for controlling the sensor assembly to move relative to the shell according to the magnetic field intensity.
According to the control device of the electronic equipment, after the magnetic field intensity detected by the magnetic field detector is obtained, the sensor assembly is controlled to move relative to the shell according to the magnetic field intensity, so that the sensor assembly protrudes out of the side wall of the shell or is positioned in the shell. Because remove through the relative casing of control sensor subassembly, when needs use sensor subassembly, make its protrusion in the lateral wall of casing makes it hide inside the casing when need not to use sensor subassembly to electronic equipment is comparatively pleasing to the eye, and need not to lap the trompil in screen glass, solves among the prior art and sets up tectorial membrane behind the sensor through the glass apron trompil at the screen, leads to the technical problem that the clever density of sensor descends.
An embodiment of another aspect of the present invention provides an electronic device, including: the electronic device is characterized in that the sensor assembly can move relative to the shell to protrude out of the side wall of the shell or be positioned in the shell, one of the sensor assembly and the shell is fixedly connected with a magnet, the other one of the sensor assembly and the shell is fixedly connected with a magnetic field detector, and the processor executes the program to realize the control method.
A further embodiment of the invention proposes a computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, implements the aforementioned control method.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
FIG. 2A is a schematic view showing the positional relationship between the magnet 30 and the magnetic field detector 40;
FIG. 2B is a second schematic diagram illustrating the positional relationship between the magnet 30 and the magnetic field detector 40;
fig. 3 is a flowchart illustrating a control method of an electronic device according to an embodiment of the present invention;
FIG. 4A is one of the schematic diagrams of the sensor assembly;
FIG. 4B is a second schematic diagram of a sensor assembly;
fig. 5 is a flowchart illustrating another control method for an electronic device according to an embodiment of the present invention;
FIG. 6 is a schematic view of the displaced position of the sensor assembly;
fig. 7 is a schematic structural diagram of a control device of an electronic apparatus according to an embodiment of the present invention; and
FIG. 8 illustrates a block diagram of an exemplary electronic device suitable for use in implementing embodiments of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
A control method and apparatus of an electronic device according to an embodiment of the present invention are described below with reference to the drawings. The electronic equipment provided by the embodiments of the invention comprises: mobile terminals, personal digital assistants, notebook computers, and the like.
For electronic devices with full-screen, it is desirable to hide sensors such as proximity sensors, cameras, and receivers on the front side of the electronic device, i.e., on the side of the screen, for aesthetic reasons. In the prior art, often through after the glass apron trompil at the screen sets up the sensor, the tectorial membrane is so that the trompil is not obvious to reach pleasing to the eye effect. However, tests have found that such a coating has an effect on the sensor sensitivity.
For example, in a proximity sensor, since a coating may reflect a part of light and may absorb a part of light, the light emission power needs to be increased and recalibrated after coating. Otherwise, the inability to perform range detection will occur.
Since camera imaging also requires the detection of light, the overlay film has similar negative effects on the camera as the proximity sensor.
To solve the problem, embodiments of the present invention provide a control method for an electronic device, so as to achieve an effect of protruding a sensor assembly out of a housing or hiding the sensor assembly from the interior of the housing by controlling the sensor assembly to move relative to the housing, and enable the electronic device to be more beautiful without a need of a film.
For clearly illustrating the structure of the electronic device, fig. 1 is a schematic structural diagram of the electronic device according to the embodiment of the present invention, as shown in fig. 1, a sensor assembly 10 protrudes from a housing 20 of the electronic device, and the sensor assembly 10 is movable relative to the housing 20 to protrude from a sidewall of the housing 20 or be located inside the housing 20.
It should be noted that fig. 1 only illustrates the sensor assembly 10 protruding from the side wall of the housing 20, and when the sensor assembly 10 is located inside the housing 20, the surface of the sensor assembly 10 is flush with the housing 20.
One of the sensor assembly 10 and the housing 20 is fixedly attached to the magnet 30 and the other of the sensor assembly 10 and the housing 20 is fixedly attached to the magnetic field detector 40. In order to clearly illustrate the position relationship between the magnet 30 and the magnetic field detector 40, the embodiment of the present invention provides two schematic possible position relationship diagrams, fig. 2A is one of the schematic position relationship diagrams of the magnet 30 and the magnetic field detector 40, and fig. 2B is the second schematic position relationship diagram of the magnet 30 and the magnetic field detector 40.
In a first mode
As shown in fig. 2A, the magnet 30 is fixedly attached to the sensor assembly 10 and the magnetic field detector 40 is fixedly attached to the housing 20. As a possible implementation manner, the sensor assembly 10 includes at least one sensor 101 and a moving mechanism 102 for driving the sensor to move, the memory and the processor are disposed on a main board 201 inside the housing, and the main board 201 is fixedly connected to the housing 20.
Specifically, the magnet 30 is disposed on the moving mechanism 102, and the magnetic field detector 40 is disposed on the main board 201.
Mode two
As shown in fig. 2B, the magnetic field detector 40 is fixedly connected to the sensor assembly 10, and the magnet 30 is fixedly connected to the housing 20. As a possible implementation manner, the sensor assembly 10 includes at least one sensor 101 and a moving mechanism 102 for driving the sensor to move, the memory and the processor are disposed on a main board 201 inside the housing, and the main board 201 is fixedly connected to the housing 20.
Specifically, the magnetic field detector 40 is disposed on the moving mechanism 102, and the magnet 30 is disposed on the main board 201.
In this embodiment, to facilitate detection of the magnetic field and thereby control movement of the sensor assembly relative to the housing based on the strength of the magnetic field, the magnet 30 and the magnetic field detector 40 are aligned when the sensor assembly 10 is inside the housing 20.
Such that the strength of the magnetic field detected by the magnetic field detector 40 is linear with the position of the sensor assembly 10. The ability to determine the unique position of the sensor assembly based on the strength of the magnetic field facilitates controlling the movement of the sensor assembly 10 relative to the housing 20.
Generally, the strength of the magnetic field detected is the weakest when the sensor assembly 10 protrudes from the side wall of the housing 20 and the strongest when the sensor assembly 10 is inside the housing 20.
To facilitate understanding of the magnetic field measurement principle of the magnetic field detector 40, the magnetic field detector 40 is briefly described as follows:
the magnetic field detector 40 may in particular be a hall sensor, for example: a digital hall IC. The hall sensor is in the magnetic field generated by the magnet 30 and a constant current I is passed through the magnetic field detector 40. Under the action of the lorentz force, the current I is shifted to one side of the magnetic field sensor 40, and the magnetic field sensor 40 generates a potential difference, which is a so-called hall voltage.
The magnitude of the hall voltage is related to the strength of the magnetic field. The stronger the magnetic field, the higher the voltage, the weaker the magnetic field, the lower the voltage. By measuring the obtained hall voltage, the magnetic field strength can be determined.
During movement of the sensor assembly 10 relative to the housing 20, the measured magnetic field strength changes in relation to the distance between the magnet 30 and the magnetic field detector 40, and therefore, based on the magnetic field strength and the distance between the magnet 30 and the magnetic field detector 40, the relative positional relationship of the sensor assembly 10 to the housing 20 can be determined.
The electronic device provided by this embodiment further includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the memory and the processor are disposed inside the casing 20, specifically on the motherboard 201.
When the processor executes the program, a control method of the electronic device is realized, and after the magnetic field intensity detected by the magnetic field detector is obtained, the sensor assembly is controlled to move relative to the shell according to the magnetic field intensity, so that the sensor assembly protrudes out of the side wall of the shell or is positioned in the shell. Because remove through the relative casing of control sensor subassembly, when needs use sensor subassembly, make its protrusion in the lateral wall of casing makes it hide inside the casing when need not to use sensor subassembly to electronic equipment is comparatively pleasing to the eye, and need not to lap the trompil in screen glass, solves among the prior art and sets up tectorial membrane behind the sensor through the glass apron trompil at the screen, leads to the technical problem that the clever density of sensor descends.
Fig. 3 is a flowchart illustrating a control method of an electronic device according to an embodiment of the present invention.
As shown in fig. 3, the control method of the electronic device includes the steps of:
and 301, acquiring the magnetic field intensity detected by the magnetic field detector.
And 302, controlling the sensor assembly to move relative to the shell according to the magnetic field intensity.
As a possible implementation manner, the sensor assembly is controlled to move relative to the housing, and during the process of controlling the sensor assembly to move relative to the housing, the position to which the sensor assembly has moved is detected according to the magnetic field intensity. And if the detected position does not reach the required target position, continuously controlling the sensor assembly to move relative to the shell until the sensor assembly is detected to move to the required target position.
Wherein the correspondence of the magnetic field strength to the distance, which is the distance between the magnet and the magnetic field sensor, can be established in advance. Substituting the distance between the magnet and the magnetic field sensor as a and the distance between the magnet and the magnetic field sensor as b into the Pythagorean theorem formula to obtain the position to which the sensor assembly has moved
Figure BDA0001602367580000051
Optionally, during the process of controlling the sensor assembly to move relative to the housing, the moving speed of the sensor assembly may be adjusted according to the difference distance between the detected position and the target position. The moving speed of the sensor assembly may be relatively fast when away from the target position and relatively slow when approaching the avoidance position, i.e. the principle target position and the approaching target position may move at different speeds. So that when being close to the target position, the position that can make sensor assembly remove is more accurate, when keeping away from the target position, can accelerate the translation rate, improves the removal efficiency. The specific distance from the target position and the specific approach to the target position can be determined according to whether the distance is greater than a threshold distance, and when the distance is greater than the threshold distance, the distance is determined to be far from the target position, and when the distance is not greater than the threshold distance, the distance is determined to be close to the target position.
As another possible implementation, determining a target magnetic field strength corresponding to a target position to which the sensor assembly needs to be moved; and controlling the sensor assembly to move relative to the shell until the magnetic field intensity detected by the magnetic field detector accords with the target magnetic field intensity.
Wherein the correspondence of the magnetic field strength to the position of the sensor assembly relative to the housing can be established in advance.
Because the sensor assembly is provided with sensors such as a proximity sensor, a receiver or a camera, the sensors are often not used all the time, but are turned on only when needed. Therefore, the sensor assembly can be hidden in the shell when not in use, and the sensor assembly protrudes out of the shell when in use, so that the sensor is exposed.
Fig. 4A and 4B are schematic diagrams of sensor assemblies, and as shown in fig. 4A and 4B, the sensor assemblies include three sensors, namely, a proximity sensor, a receiver, and a camera, and are different in the number of sensor assemblies. In fig. 4A, different sensors such as a proximity sensor, a receiver, and a camera are all disposed on the same moving mechanism in such a manner that the sensors are arranged along the moving direction of the moving mechanism, and in fig. 4B, one moving mechanism is disposed for each sensor such as a proximity sensor, a receiver, and a camera, and different sensors are disposed on different moving mechanisms.
In order to avoid manual control instruction of a user, the user requirement can be monitored in real time, the sensor required to be used is determined, and the sensor assembly is controlled to move relative to the shell according to the user requirement, so that the sensor required to be used can be exposed out of the shell.
To achieve this object, the present embodiment also provides another control method of an electronic device with respect to the sensor assembly shown in fig. 4A. Fig. 5 is a flowchart illustrating another control method for an electronic device according to an embodiment of the present invention, as shown in fig. 5, before step 302, the method further includes:
step 501, monitoring the running state of the sensor component related application program.
Wherein the operation state comprises operation in the middle of or operation finished.
Specifically, the application program running in the foreground may be detected, and when the sensor component associated application program is in the foreground running state, it is determined that the running state of the associated application program is in running, otherwise, the running is ended.
Step 502, determining a target position to which the sensor component needs to move according to the running state of the sensor component-associated application program.
Specifically, if the running state of the sensor-associated application program is in operation, the target position is determined to be a position at which the sensor protrudes from the housing. And if the running state of the sensor-associated application program is the running ending state, determining that the target position is a position at which the sensor is positioned in the shell.
For example: fig. 6 is a schematic diagram of a moving position of the sensor assembly, and when the camera application program is in operation, the target position is determined to be a position a at which the camera head protrudes from the housing; calling a voice program, and determining a target position as a position B where a receiver and a proximity sensor protrude out of a shell when the voice program is in operation; and when the running state of the camera application program is running ending, determining that the target position is a position C where each sensor such as a camera is positioned in the shell.
For the sensor assembly shown in fig. 4B, similar to the steps shown in fig. 5, after the operation state of the sensor assembly associated application program is monitored, the sensor corresponding to the associated application program in operation is determined as the sensor to be used by the user, and the moving mechanism where the sensor is located is moved, so that the sensor protrudes out of the housing. When the associated application program finishes running, the moving mechanism where the sensor is located is moved, so that the sensor is hidden in the shell.
In this embodiment, after obtaining the magnetic field intensity that magnetic field detector detected and obtained, according to magnetic field intensity, control sensor assembly and move relatively the casing to make sensor assembly protrusion in the lateral wall of casing, or, be in inside the casing. Because remove through the relative casing of control sensor subassembly, when needs use sensor subassembly, make its protrusion in the lateral wall of casing makes it hide inside the casing when need not to use sensor subassembly to electronic equipment is comparatively pleasing to the eye, and need not to lap the trompil in screen glass, solves among the prior art and sets up tectorial membrane behind the sensor through the glass apron trompil at the screen, leads to the technical problem that the clever density of sensor descends.
To clearly illustrate the above embodiment, this embodiment provides a control device for an electronic device, which may be disposed inside the electronic device or independent from the electronic device.
The electronic device is provided with a shell and a sensor assembly, wherein the sensor assembly can move relative to the shell to protrude out of the side wall of the shell or be located in the shell, one of the sensor assembly and the shell is fixedly connected with a magnet, and the other of the sensor assembly and the shell is fixedly connected with a magnetic field detector.
Fig. 7 is a schematic structural diagram of a control apparatus of an electronic device according to an embodiment of the present invention, and as shown in fig. 7, the apparatus may include:
and an obtaining module 71, configured to obtain a magnetic field strength detected by the magnetic field detector.
A control module 72 for controlling movement of the sensor assembly relative to the housing based on the strength of the magnetic field.
As a possible implementation manner, the control module 72 is specifically configured to control the sensor assembly to move relative to the housing, and detect the position to which the sensor assembly has moved according to the magnetic field strength during the process of controlling the sensor assembly to move relative to the housing; and if the detected position does not reach the required target position, continuously controlling the sensor assembly to move relative to the shell until the sensor assembly is detected to move to the required target position.
The control module 72 is further configured to adjust the moving speed of the sensor assembly according to the difference distance between the detected position and the target position after detecting the position to which the sensor assembly has moved.
As another possible implementation, the control module 72 determines a target magnetic field strength corresponding to a target location to which the sensor assembly needs to be moved; and controlling the sensor assembly to move relative to the shell until the magnetic field strength detected by the magnetic field detector accords with the target magnetic field strength.
Further, the control module 72 is also configured to monitor the operational status of the sensor assembly-associated application before controlling the sensor assembly to move relative to the housing. Based on the operating state of the sensor assembly associated application, the control module 72 determines the target location to which the sensor assembly needs to be moved. Wherein the operation state comprises operation in progress or operation ending.
Specifically, the sensor assembly comprises at least one sensor and a moving mechanism driving the sensor to move. If the running state of the associated application program is running, the control module 72 determines that the target position is a position at which the corresponding sensor protrudes from the housing; if the operating status of the associated application is end of operation, the control module 72 determines that the target position is a position that causes the corresponding sensor to be inside the housing.
In this embodiment, after magnetic field intensity detected by the magnetic field detector is obtained, the sensor assembly is controlled to move relative to the housing according to the magnetic field intensity, so that the sensor assembly protrudes out of the side wall of the housing, or is located inside the housing. Because through the relative casing of control sensor subassembly removal, when needs use sensor subassembly, make its protrusion in the lateral wall of casing, when need not to use sensor subassembly, make it hide inside the casing to electronic equipment is comparatively pleasing to the eye, and need not to lap the trompil in screen glass, solves among the prior art and sets up tectorial membrane behind the sensor through the glass apron trompil at the screen, leads to the technical problem of sensor spirit density decline.
It should be noted that the foregoing explanation of the method embodiment is also applicable to the apparatus of this embodiment, and is not repeated herein.
In order to implement the above-described embodiments, the present invention also proposes a computer-readable storage medium in which instructions, when executed by a processor, enable execution of the control method of the electronic device shown in fig. 3.
FIG. 8 illustrates a block diagram of an exemplary electronic device suitable for use in implementing embodiments of the present application. The electronic device 12 shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in FIG. 8, electronic device 12 is embodied in the form of a general purpose computing device. The components of electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. These architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus, to name a few.
Electronic device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 28 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) 30 and/or cache Memory 32. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 8, and commonly referred to as a "hard drive"). Although not shown in FIG. 8, a disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a Compact disk Read Only Memory (CD-ROM), a Digital versatile disk Read Only Memory (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the application.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally perform the functions and/or methodologies of the embodiments described herein.
Electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with the computer system/server 12, and/or with any devices (e.g., network card, modem, etc.) that enable the computer system/server 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the electronic device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public Network such as the Internet) via the Network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing, for example, implementing the methods mentioned in the foregoing embodiments, by executing programs stored in the system memory 28.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless explicitly specified otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, such as an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried out in the method of implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and the program, when executed, includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (11)

1. A method for controlling an electronic device, the electronic device having a housing and a sensor assembly, the sensor assembly being movable relative to the housing to protrude from a sidewall of the housing or to be located inside the housing, one of the sensor assembly and the housing being fixedly connected to a magnet, the other of the sensor assembly and the housing being fixedly connected to a magnetic field detector, the sensor assembly including a proximity sensor, a receiver, a camera, and a moving mechanism, the proximity sensor, the receiver, and the camera being sequentially arranged on the moving mechanism along the moving mechanism in a direction of protruding out of the housing, the method comprising the steps of:
acquiring the magnetic field intensity detected by the magnetic field detector;
controlling the sensor assembly to move relative to the housing according to the magnetic field strength;
when the moving mechanism is located at the position C, the camera, the receiver and the proximity sensor are all located in the shell;
when the moving mechanism is located at the position B, the camera is located in the shell, and the telephone receiver and the proximity sensor are located outside the shell;
when the moving mechanism is located at the position A, the camera, the receiver and the proximity sensor are all located outside the shell;
the position C, the position B and the position A are sequentially arranged along the direction of extending the sensor assembly out of the shell.
2. The method of claim 1, wherein said controlling the sensor assembly to move relative to the housing based on the strength of the magnetic field comprises:
controlling the sensor assembly to move relative to the housing;
detecting a position to which the sensor assembly has moved during control of the movement of the sensor assembly relative to the housing based on the strength of the magnetic field;
and if the detected position does not reach the required target position, continuously controlling the sensor assembly to move relative to the shell until the sensor assembly is detected to move to the required target position.
3. The control method of claim 2, further comprising, after said detecting the position to which the sensor assembly has moved:
and adjusting the moving speed of the sensor assembly according to the difference distance between the detected position and the target position.
4. The method of claim 1, wherein said controlling the sensor assembly to move relative to the housing based on the strength of the magnetic field comprises:
determining a target magnetic field strength corresponding to a target position to which the sensor assembly needs to be moved;
and controlling the sensor assembly to move relative to the shell until the magnetic field strength detected by the magnetic field detector accords with the target magnetic field strength.
5. The method of any of claims 1-4, wherein prior to controlling the movement of the sensor assembly relative to the housing, further comprising:
monitoring the running state of the sensor component related application program;
determining a target position to which the sensor component needs to move according to the running state of the sensor component-associated application program; the operation state comprises operation in the middle of or operation finished.
6. The control method according to claim 5, wherein the determining the target position to which the sensor component needs to be moved according to the running state of the sensor component related application program comprises:
if the running state of the associated application program is in running, determining the target position as a position enabling the corresponding sensor to protrude out of the shell;
and if the running state of the associated application program is the running ending state, determining the target position as the position enabling the corresponding sensor to be located in the shell.
7. A control apparatus of an electronic device, wherein the electronic device has a housing and a sensor assembly, the sensor assembly is movable relative to the housing to protrude from a side wall of the housing or to be located inside the housing, one of the sensor assembly and the housing is fixedly connected to a magnet, the other of the sensor assembly and the housing is fixedly connected to a magnetic field detector, the sensor assembly includes a proximity sensor, a receiver, a camera, and a moving mechanism, the proximity sensor, the receiver, and the camera are sequentially arranged on the moving mechanism along the moving mechanism in a direction of protruding out of the housing, and when the apparatus is in operation, the control method of any one of claims 1 to 6 is implemented, and the apparatus includes:
the acquisition module is used for acquiring the magnetic field intensity detected by the magnetic field detector;
and the control module is used for controlling the sensor assembly to move relative to the shell according to the magnetic field intensity.
8. An electronic device, comprising: the electronic equipment comprises a shell, a sensor component, a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the memory and the processor are arranged in the shell, the electronic equipment is provided with the shell and the sensor component, the sensor component can move relative to the shell to protrude out of the side wall of the shell or be positioned in the shell, one of the sensor component and the shell is fixedly connected with a magnet, the other of the sensor component and the shell is fixedly connected with a magnetic field detector, the sensor component comprises a proximity sensor, a receiver, a camera and a moving mechanism, the proximity sensor, the receiver and the camera are sequentially arranged on the moving mechanism along the moving mechanism in the direction of extending out of the shell, and when the processor executes the program, implementing the control method according to any one of claims 1-6.
9. The electronic device of claim 8,
the magnet and the magnetic field detector are aligned when the sensor assembly is inside the housing.
10. The electronic device of claim 8, wherein the memory and the processor are disposed on a motherboard inside the housing; the main board is fixedly connected with the shell;
the magnet is arranged on the moving mechanism, and the magnetic field detector is arranged on the main board;
or, the magnet is arranged on the main board, and the magnetic field detector is arranged on the moving mechanism.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the control method according to any one of claims 1 to 6.
CN201810230245.1A 2018-03-20 2018-03-20 Control method and device of electronic equipment Active CN110311999B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810230245.1A CN110311999B (en) 2018-03-20 2018-03-20 Control method and device of electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810230245.1A CN110311999B (en) 2018-03-20 2018-03-20 Control method and device of electronic equipment

Publications (2)

Publication Number Publication Date
CN110311999A CN110311999A (en) 2019-10-08
CN110311999B true CN110311999B (en) 2022-07-12

Family

ID=68073958

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810230245.1A Active CN110311999B (en) 2018-03-20 2018-03-20 Control method and device of electronic equipment

Country Status (1)

Country Link
CN (1) CN110311999B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112558695A (en) * 2020-12-22 2021-03-26 维沃移动通信有限公司 Electronic device and state detection method
CN114877793A (en) * 2022-05-13 2022-08-09 维沃移动通信有限公司 Electronic equipment, electronic equipment state determination method and related equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205510137U (en) * 2016-02-26 2016-08-24 维沃移动通信有限公司 Electronic device
CN106094990A (en) * 2016-06-12 2016-11-09 张帆 The screen maximized electronic equipment of accounting and using method thereof

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203722706U (en) * 2014-02-18 2014-07-16 宇龙计算机通信科技(深圳)有限公司 Electronic device
CN104023105A (en) * 2014-06-13 2014-09-03 广东欧珀移动通信有限公司 Detection device and detection method of angled rotation of camera of mobile terminal
CN104320508A (en) * 2014-10-27 2015-01-28 广东欧珀移动通信有限公司 Mobile terminal with rotation camera and camera angle control method thereof
CN104618636A (en) * 2015-02-27 2015-05-13 广东欧珀移动通信有限公司 Camera locked-rotation prevention method and device
CN105554196A (en) * 2016-01-26 2016-05-04 孔岳 Full-screen mobile phone
JP2018007120A (en) * 2016-07-05 2018-01-11 富士通株式会社 Portable electronic device
CN107094194B (en) * 2017-05-09 2019-12-27 京东方科技集团股份有限公司 Mobile terminal and fall protection method thereof
CN107483659B (en) * 2017-07-13 2019-12-10 Oppo广东移动通信有限公司 Control method and device based on proximity sensor and mobile terminal
CN107360277B (en) * 2017-08-02 2018-07-31 栾德洋 A kind of mobile terminal expansion equipment for data transmission

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205510137U (en) * 2016-02-26 2016-08-24 维沃移动通信有限公司 Electronic device
CN106094990A (en) * 2016-06-12 2016-11-09 张帆 The screen maximized electronic equipment of accounting and using method thereof

Also Published As

Publication number Publication date
CN110311999A (en) 2019-10-08

Similar Documents

Publication Publication Date Title
US11789470B2 (en) Method and apparatus for calibrating sliding of sliding component
KR102523510B1 (en) Generation of static images using event cameras
CN107527630B (en) Voice endpoint detection method and device and computer equipment
CN108833623B (en) Sliding control method and device of sliding assembly and electronic device
CN110276287B (en) Parking space detection method and device, computer equipment and storage medium
CN110311999B (en) Control method and device of electronic equipment
KR20150092579A (en) Electronic device and operation method thereof
CN109738884B (en) Object detection method and device and computer equipment
EP3889733B1 (en) Methods and devices for detecting state of flexible screen, electronic device, and storage medium
CN108924283B (en) Sliding control method and device of sliding assembly and electronic device
CN108762715B (en) Electronic equipment sound control method, device and equipment
KR20140011690A (en) Proximity sensor and proximity sensing method using light quantity of reflection light
EP3835913A1 (en) Control method of handheld gimbal, handheld gimbal, and handheld device
EP2630559B1 (en) Mobile communication device with three-dimensional sensing and a method therefore
KR20060073481A (en) Slide pad system and method
CN116324682A (en) Power control based at least in part on user eye movement
US20180005562A1 (en) Noise reduction in led sensing circuit for electronic display
CN110189242B (en) Image processing method and device
CN109460178B (en) Sliding display method and device of sliding assembly
JP2000310530A (en) Surface-properties measuring device
CN108845871B (en) Method and device for calling device in electronic equipment, electronic equipment and storage medium
CN113837987B (en) Tongue image acquisition method and device and computer equipment
US7986154B2 (en) Capacitive sensing slide detection
US10325161B2 (en) Vehicle state determining device, display processing device, and vehicle state determining method
CN105763805A (en) Control method and device and electronic device

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant