CN113778772A - Electronic equipment, state detection method and device thereof and readable storage medium - Google Patents

Electronic equipment, state detection method and device thereof and readable storage medium Download PDF

Info

Publication number
CN113778772A
CN113778772A CN202111082150.8A CN202111082150A CN113778772A CN 113778772 A CN113778772 A CN 113778772A CN 202111082150 A CN202111082150 A CN 202111082150A CN 113778772 A CN113778772 A CN 113778772A
Authority
CN
China
Prior art keywords
detection
component
sequence
magnetic field
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111082150.8A
Other languages
Chinese (zh)
Inventor
郑楠
麦碧权
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202111082150.8A priority Critical patent/CN113778772A/en
Publication of CN113778772A publication Critical patent/CN113778772A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Abstract

The application provides an electronic device, a state detection method and a state detection device thereof, and a readable storage medium, wherein the electronic device comprises: a first body; the second body is hinged with the first body and can be switched between an unfolded state and a folded state relative to the first body; the sounding assembly is arranged on the first main body and/or the second main body and is used for generating electromagnetic signals of a preset sequence according to the signals; the detection assembly is arranged on the first main body and/or the second main body, and is opposite to the sound production assembly under the condition that the first main body is in a folded state relative to the second main body; the detection assembly is used for detecting the change of the magnetic field and generating a signal according to the change of the magnetic field, and the detection assembly is used for detecting the electromagnetic signals of a preset sequence so as to determine the states of the first body and the second body.

Description

Electronic equipment, state detection method and device thereof and readable storage medium
Technical Field
The application belongs to the technical field of electronic equipment, and particularly relates to electronic equipment, a state detection method of the electronic equipment, a detection device and a readable storage medium.
Background
At present, a folding screen mobile phone needs to control different screen assemblies to serve as a display module when the mobile phone is in a folded state or an unfolded state, and therefore, the folding screen mobile phone needs to be judged to be in the folded state or the unfolded state.
In the related art, a gravity sensor or a hall switch is usually used in combination with a permanent magnet to detect the state of the mobile phone.
Specifically, for example, the angle of the first body or the second body is detected by the gravity sensor, so as to determine the state of the mobile phone, but the gravity sensor is sensitive to the change of the mobile phone near the unfolding-buckling threshold, which easily causes the stroboscopic situation of the screen assembly, and when the mobile phone is vertically placed, the gravity sensor will fail, and thus the state of the mobile phone cannot be determined.
For example, the distance between the specific positions of the first body or the second body is determined by the hall switch in cooperation with the permanent magnet, but if the external magnetic device interferes, the state judgment of the mobile phone is easily disabled.
Disclosure of Invention
The present application is directed to an electronic device, a method for detecting a state of an electronic device, a detection apparatus, and a readable storage medium, which can solve one of the problems in the related art that a foldable electronic device cannot accurately determine an unfolded or folded state of the electronic device.
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 an electronic device, including:
a first body;
the second body is hinged with the first body and can be switched between an unfolded state and a folded state relative to the first body;
the sounding assembly is arranged on the first main body and/or the second main body and is used for generating electromagnetic signals of a preset sequence according to the signals;
the detection assembly is arranged on the first main body and/or the second main body, and is opposite to the sound production assembly under the condition that the first main body is in a folded state relative to the second main body; the detection assembly is used for detecting the change of the magnetic field and generating a signal according to the change of the magnetic field, and the detection assembly is used for detecting the electromagnetic signals of a preset sequence so as to determine the states of the first body and the second body.
In a second aspect, an embodiment of the present application provides a method for detecting a state of an electronic device, where the method includes:
controlling the sounding component to send out electromagnetic signals of a preset sequence in response to a signal generated by the detection component when the detection component detects the change of the magnetic field;
and determining the states of the first body and the second body according to the detection result of the detection assembly on the electromagnetic signals of the preset sequence.
In a third aspect, an embodiment of the present application provides a state detection apparatus for an electronic device, where the apparatus includes:
the control module is used for responding to a signal generated by the detection component when the detection component detects the change of the magnetic field and controlling the sounding component to send out an electromagnetic signal of a preset sequence;
and the determining module is used for determining the states of the first body and the second body according to the detection result of the detection assembly on the electromagnetic signals of the preset sequence.
In a fourth aspect, embodiments of the present application provide an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the method according to the second aspect.
In a fifth aspect, embodiments of the present application provide a readable storage medium on which a program or instructions are stored, which when executed by a processor, implement the steps of the method according to the second aspect.
In an embodiment of the application, the electronic device comprises a first body and a second body, wherein the two bodies are hinged, so that the first body and the second body can be folded or unfolded, and a sound production assembly and a detection assembly are arranged on the first body and the second body. Specifically, the detecting component sets up with the sound production subassembly relatively, and then when first main part and second main part are folded, detecting component and sound production subassembly are close to each other, and when first main part and second main part expand, detecting component and sound production subassembly keep away from each other.
And the sounding subassembly has stable magnetic field, therefore, when first main part and second main part are folded or are expanded, the detection component can detect the change in magnetic field to, after the detection component detects the change in magnetic field, generate the signal, the sounding subassembly responds to the signal, produces the electromagnetic signal of predetermined sequence, and, owing to the production of predetermined sequence electromagnetic signal, the sounding subassembly can send out the sound that corresponds to predetermined sequence electromagnetic signal.
And the detection assembly also detects the electromagnetic signals of the preset sequence, and then determines whether the first main body and the second main body are in the unfolding state or the folding state according to the detection result of the detection assembly.
Because the sounding component emits the electromagnetic signals of the preset sequence, the electromagnetic signals can continuously change in a specific strength, and in nature, the magnetic field capable of forming specific strength changes is less. Specifically, the magnetic field in nature is basically a steady-state magnetic field, so that the external magnetic field generally only interferes with the detection of the magnetic field change by the detection assembly, and does not substantially interfere with the detection of the electromagnetic signal of the preset sequence.
Therefore, the electromagnetic signals of the preset sequence sent by the magnetic field change and the sounding component are detected through the detection component, the accuracy of judgment of the states of the first main body and the second main body can be improved, and further the switching of the screen component of the electronic device is more accurate.
Moreover, the sound generating assembly is a sound generating component of the electronic equipment, so that components such as a magnetic field generating piece or an electromagnetic signal generating piece do not need to be additionally arranged, the space is saved, and the occupancy rate of the internal space of the electronic equipment is improved.
Additional aspects and advantages of the present application 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 present application.
Drawings
The above and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 illustrates a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
FIG. 4 illustrates a system block diagram of an electronic device provided by an embodiment of the present application;
fig. 5 is a schematic structural diagram illustrating an electronic device in an unfolded state according to an embodiment of the present application;
fig. 6 is a schematic structural diagram illustrating an electronic device in an intermediate state according to an embodiment of the present application;
fig. 7 is a schematic structural diagram illustrating an electronic device according to an embodiment of the present application in a folded state;
FIG. 8 illustrates waveforms detected by the detection assembly from the unfolded state to the folded state of the electronic device shown in FIGS. 5, 6 and 7;
fig. 9 is a waveform diagram showing an input current of the electromagnetic member from the unfolded state to the folded state of the electronic apparatus shown in fig. 5, 6 and 7;
fig. 10 is a waveform diagram showing the electromagnetic signal variation of the sound emitting assembly from the unfolded state to the folded state of the electronic device shown in fig. 5, 6 and 7;
FIG. 11 is a waveform diagram illustrating the electronic device shown in FIGS. 5, 6 and 7 from an unfolded state to a folded state after shaping by the controller;
FIG. 12 illustrates waveforms recognized by the controller from the unfolded state to the folded state of the electronic device shown in FIGS. 5, 6 and 7;
fig. 13 is a waveform diagram showing output signals of the reference clock from the folded state to the unfolded state of the electronic apparatus shown in fig. 5, 6 and 7;
FIG. 14 illustrates waveforms detected by the detection assembly from the unfolded state to the folded state of the electronic device shown in FIGS. 5, 6 and 7;
fig. 15 is a waveform diagram showing an input current of the sound emitting assembly from the folded state to the unfolded state of the electronic device shown in fig. 5, 6 and 7;
fig. 16 is a waveform diagram showing the electromagnetic signal variation of the sound emitting assembly from the folded state to the unfolded state of the electronic device shown in fig. 5, 6 and 7;
FIG. 17 is a waveform diagram illustrating the electronic device shown in FIGS. 5, 6 and 7 from a folded state to an unfolded state after shaping by the controller;
FIG. 18 illustrates waveforms recognized by the controller from the folded state to the unfolded state of the electronic device shown in FIGS. 5, 6 and 7;
fig. 19 is a waveform diagram showing output signals of the reference clock from the folded state to the unfolded state of the electronic apparatus shown in fig. 5, 6 and 7;
FIG. 20 is a schematic structural diagram illustrating an electronic device in an unfolded state and with magnetic field interference according to an embodiment of the present application;
FIG. 21 illustrates waveforms detected by the detection assembly in the extended, intermediate and folded states of the electronic device shown in FIG. 20;
fig. 22 is a waveform diagram showing an input current of the sounding assembly in an unfolded state, an intermediate state and a folded state of the electronic device shown in fig. 20;
FIG. 23 is a schematic diagram illustrating a configuration of an electronic device in a folded state with magnetic field interference according to an embodiment of the present application;
FIG. 24 illustrates waveforms detected by the detection assembly in the extended, intermediate and folded states of the electronic device shown in FIG. 23;
FIG. 25 illustrates waveforms recognized by the controller for the extended, intermediate, and folded states of the electronic device shown in FIG. 23;
fig. 26 is a waveform diagram showing output signals of the reference clock in the unfolded state, the intermediate state and the folded state of the electronic apparatus shown in fig. 23;
FIG. 27 shows one of the flow charts of a method of status detection of an electronic device according to an embodiment of the application;
FIG. 28 is a second flowchart of a method for detecting a status of an electronic device according to an embodiment of the present application;
FIG. 29 shows a third flowchart of a method for detecting a status of an electronic device according to an embodiment of the application;
FIG. 30 is a fourth flowchart illustrating a status detection method of an electronic device according to an embodiment of the present application;
FIG. 31 shows a fifth flowchart of a method of status detection of an electronic device according to an embodiment of the application;
FIG. 32 shows a sixth flowchart of a method of status detection of an electronic device according to an embodiment of the application;
FIG. 33 shows a seventh flowchart of a method of status detection of an electronic device according to an embodiment of the application;
fig. 34 is a block diagram showing a configuration of a state detection apparatus of an electronic device according to an embodiment of the present application;
FIG. 35 shows a block diagram of an electronic device according to an embodiment of the present application;
fig. 36 is a schematic hardware structure diagram of an electronic device implementing an embodiment of the present application.
Reference numbers of fig. 1 to 26:
100 electronic equipment, 110 first body, 120 second body, 130 sounding component, 132 first sounding component, 134 second sounding component, 140 detection component, 142 first detection component, 144 second detection component, 152 first screen, 154 second screen, 160 hinge, 170 power module, 180 controller, 200 magnetite.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly 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 that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second, third and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and the terms "first," "second," "third," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., a first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The electronic device 100, the state detection method of the electronic device, the detection apparatus, and the readable storage medium according to the embodiments of the present application are described below with reference to fig. 1 to 36.
As shown in fig. 1-3, in some embodiments of the present application, an electronic device 100 includes: a first body 110; a second body 120 hinged to the first body 110, the second body 120 being switchable between an unfolded state and a folded state with respect to the first body 110; the sounding component 130 is arranged on the first body 110 and/or the second body 120, and the sounding component 130 is used for generating electromagnetic signals of a preset sequence according to the signals; a detection assembly 140 disposed on the first body 110 and/or the second body 120, wherein the detection assembly 140 is opposite to the sound production assembly 130 when the first body 110 is in a folded state with respect to the second body 120; the detection assembly 140 is configured to detect a magnetic field change and generate a signal according to the magnetic field change, and the detection assembly 140 is configured to detect a predetermined sequence of electromagnetic signals to determine the state of the first body 110 and the second body 120.
In an embodiment of the present application, the electronic device 100 includes a first body 110 and a second body 120, which are hinged to each other, so that the first body 110 and the second body 120 can be folded or unfolded, and a sound emitting component 130 and a detecting component 140 are disposed on the first body 110 and the second body 120. Specifically, the detection component 140 is disposed opposite to the sound emitting component 130, so that when the first body 110 and the second body 120 are folded, the detection component 140 and the sound emitting component 130 are close to each other, and when the first body 110 and the second body 120 are unfolded, the detection component 140 and the sound emitting component 130 are away from each other.
And the sounding component 130 has a stable magnetic field, so that when the first body 110 and the second body 120 are folded or unfolded, the detecting component 140 can detect the change of the magnetic field, and generate a signal after the detecting component 140 detects the change of the magnetic field, the sounding component 130 generates a preset sequence of electromagnetic signals in response to the signal, and the sounding component 130 generates a sound corresponding to the preset sequence of electromagnetic signals due to the generation of the preset sequence of electromagnetic signals.
In addition, the detection component 140 further detects a preset sequence of electromagnetic signals, and then determines whether the first body 110 and the second body 120 are in the unfolded state or the folded state according to a detection result of the detection component 140.
Because the sounding component 130 emits the electromagnetic signal of the preset sequence, the electromagnetic signal will continue a specific strength change, and in nature, the magnetic field capable of forming the specific strength change is less. Specifically, the magnetic field in nature is substantially a steady state magnetic field, and therefore, the external magnetic field generally only interferes with the detection of the magnetic field variation by the detection component 140, but does not substantially interfere with the detection of the electromagnetic signal of the predetermined sequence.
Therefore, the detection component 140 detects the magnetic field change and the electromagnetic signal of the preset sequence emitted by the sounding component 130, so that the accuracy of determining the states of the first main body 110 and the second main body 120 can be improved, and the switching of the screen components of the electronic device 100 is more accurate.
Moreover, the sound generating assembly 130 is a sound generating component of the electronic device 100, and therefore, components such as a magnetic field generating element or an electromagnetic signal generating element do not need to be additionally arranged, the space is saved, and the occupancy rate of the internal space of the electronic device 100 is improved.
In particular, the detection component 140 may be a hall sensor disposed on a circuit board of the electronic device 100.
The electronic device 100 further includes a hinge 160, and the first body 110 and the second body 120 are folded or unfolded by the hinge 160.
Specifically, the scheme based on the sound generating assembly 130 and the detection assembly 140 realizes the state detection of the electronic device 100, and compared with the scheme of reinforcing fixed hard magnets by the traditional detection assembly 140, the space of hard magnets can be saved, so that the whole machine with small size of earth is more optimized in stacking and more in position, the volume of the sound generating assembly 130 is larger, the detection assembly 140 only needs to be in the center area of the projection area of the sound generating assembly 130 in a folded state, the hard magnets usually consider that the stacking space is designed to be smaller, therefore, the magnetic force can be met only by accurate alignment, and the method does not need to be strictly aligned like the fixed hard magnets, and further, the arrangement of electronic elements can be facilitated.
Specifically, the sound emitting assembly 130 is disposed in the orthographic projection of the generating assembly to the detecting assembly 140 when the first and second bodies 110 and 120 are in the folded state.
In some embodiments of the present application, the number of sound emitting assemblies 130 is one or more; the number of the detecting components 140 is one or more, and one detecting component 140 and one sounding component 130 are correspondingly arranged.
Specifically, the number of the sounding components 130 and the detection components 140 may be one or more, and the detection components 140 and the sounding components 130 are arranged in a one-to-one correspondence. Specifically, as shown in fig. 1 and 4, the number of the sounding assemblies 130 may be two, and the first sounding assembly 132 and the second sounding assembly 134 may further form a stereoscopic sounding at the electronic device 100, that is, the two sounding assemblies 130 may be respectively disposed at the upper portion or the lower portion of the electronic device 100, so as to form the arrangement of the dual sounding assemblies 130, and a stereoscopic sound effect may be formed. Two detection assemblies 140 are also provided, namely a first detection assembly 142 and a second detection assembly 144, corresponding to the first sounding assembly 132 and the second sounding assembly 134, respectively.
Wherein, the plurality of detecting elements 140 may be disposed on the first body 110 and the second body 120, respectively, and the plurality of sounding elements 130 may be disposed on the first body 110 and the second body 120, respectively.
In some embodiments of the present application, as shown in fig. 4, the electronic device 100 further comprises: the controller 180 is arranged on the first body 110 and/or the second body 120, the controller 180 is electrically connected with the sounding component 130 and the detection component 140, the controller 180 receives the signal generated by the detection component 140, controls the sounding component 130 to generate the electromagnetic signal with the preset sequence according to the signal, and determines the state of the first body 110 and the second body 120 according to the detection result of the detection component 140 on the electromagnetic signal with the preset sequence.
Specifically, the electronic device 100 further includes a controller 180, and the controller 180 may be a control circuit board, which may be disposed on the first body 110, or the second body 120, or disposed on the first body 110 and the second body 120.
Further, when the magnetic signal detected by the detecting component 140 changes, the magnetic signal is fed back to the controller 180, the controller 180 sends a waveform current to the electromagnetic element in response to the feedback signal of the detecting component 140, and then the sound generating component 130 generates a preset sequence of electromagnetic signals, at this time, according to whether the detecting component 140 detects the preset sequence of electromagnetic signals, the states of the first body 110 and the second body 120 are determined, and at the same time, a specific audio is sent out because the sound generating component 130 receives the current.
Specifically, when the first body 110 and the second body 120 are converted from the unfolded state to the folded state, since in the intermediate state, the first body 110 and the second body 120 approach each other gradually, that is, the magnetic field of the sounding component 130 detected by the detecting component 140 is gradually increased, and then the detecting component 140 detects the change of the magnetic field, when the detecting component 140 detects the change of the magnetic field strength to be not lower than the first threshold value, the detecting component 140 reaches the high position, at this time, the trigger controller 180 sends a waveform current to the sounding component 130, and the sounding component 130 generates a first sequence of first electromagnetic signals according to the waveform current, and sends a specific audio frequency, which can be understood as an audio effect of the folded state of the electronic device 100, such as an alert sound like "ding-dong drop".
At this time, if the detecting component 140 detects the first electromagnetic signal of the first sequence, it indicates that the first body 110 and the second body 120 are indeed in a close state, that is, the user is performing an operation of folding up the electronic device 100, at this time, it may be determined that the electronic device 100 is in a folded state, and the screen component is switched to the screen used in the folded state.
If the detecting component 140 detects that the magnetic field strength changes to be not lower than the first threshold value and does not detect the first electromagnetic signal of the first sequence, it indicates that the first body 110 and the second body 120 are not in a close state, the magnetic field change detected by the detecting component 140 is external magnetic field interference, that is, the user does not perform an operation of folding up the electronic device 100, at this time, it may be determined that the electronic device 100 is in an unfolded state, and the electronic device 100 is in the magnetic field interference, at this time, a prompt may be generated on the screen component, or a prompt sound may be emitted, and the screen component may be maintained as a screen used in the unfolded state.
Specifically, when the first body 110 and the second body 120 are converted from the folded state to the unfolded state, since in the intermediate state, the first body 110 and the second body 120 are gradually away from each other, that is, the magnetic field of the sounding component 130 detected by the detecting component 140 is gradually weakened, and then the detecting component 140 detects the change of the magnetic field, when the detecting component 140 detects that the magnetic field strength is not higher than the second threshold, the detecting component 140 reaches the low position, at this time, the trigger controller 180 sends a waveform current to the sounding component 130, and the sounding component 130 generates a second electromagnetic signal of a second sequence according to the waveform current, wherein the second electromagnetic signal and the magnetic signal can enable the sounding component to send a specific audio, which can be understood as an audio effect of the unfolded state of the electronic device 100, such as a prompt tone like "click".
At this time, if the detecting component 140 does not detect the second electromagnetic signal of the second sequence, it indicates that the first body 110 and the second body 120 are indeed in a state of being far away, that is, the user is performing an operation of unfolding the electronic device 100, at this time, it may be determined that the electronic device 100 is in the unfolded state, and the screen used by switching the screen component to the unfolded state.
If the detecting component 140 detects that the magnetic field strength changes to be not higher than the second threshold value, and if the detecting component 140 detects a second sequence of second electromagnetic signals, it indicates that the first body 110 and the second body 120 are not in a state of being far away from each other, the magnetic field change detected by the detecting component 140 is a magnetic field disturbance from the outside, that is, the user does not perform an operation of unfolding the electronic device 100, at this time, it is determined that the electronic device 100 is in a folded state, and the electronic device 100 is in the magnetic field disturbance, at this time, a prompt may be generated on the screen component, or a prompt sound may be emitted, and the screen component is maintained as a screen used in the folded state.
The first threshold and the second threshold may be determined according to the magnetic strength of the sounding component 130 and the arrangement positions of the sounding component 130 and the detecting component 140.
Specifically, when the system is powered on, the controller 180 sends a waveform current to the sound generating assembly 130, and the sound generating assembly 130 generates a third sequence of third electromagnetic signals according to the waveform current, wherein the sound generating assembly 130 receives the waveform current, and generates a specific audio frequency while generating the third sequence of third electromagnetic signals, which can be understood as a sound effect of powering on the electronic device 100.
At this time, if the detecting component 140 detects a third electromagnetic signal with a magnetic field not lower than the third threshold and the third sequence, that is, the detecting component 140 is in the high position, and detects the third electromagnetic signal of the third sequence, it indicates that the first body 110 and the second body 120 are indeed in the close state, it can be determined that the electronic device 100 is in the folded state, and the screen component is switched to the screen used in the folded state, specifically, the second screen 154.
If the detecting component 140 detects that the magnetic field is not higher than the fourth threshold and the third electromagnetic signal of the third sequence is not detected, that is, the detecting component 140 is in the low position and the third electromagnetic signal of the third sequence is not detected, it indicates that the first body 110 and the second body 120 are indeed in the far state, and it can be determined that the electronic device 100 is in the unfolded state, and the screen used for switching the screen component to the unfolded state, specifically, the first screen 152.
If the detection component 140 detects that the magnetic field is not lower than the third threshold but does not detect the third electromagnetic signal of the third sequence, that is, the detection component 140 is in the high position and does not detect the third electromagnetic signal of the third sequence, it may be determined that the electronic device 100 is in the abnormal state, and a prompt is issued at this time. Specifically, the screen used in the folded state and the screen used in the unfolded state may be controlled to simultaneously display an abnormality interface, prompt the electronic device 100 of a current abnormality, or send an abnormal sound effect to prompt the abnormality.
If the detection component 140 detects that the magnetic field is not higher than the fourth threshold, but detects the third electromagnetic signal of the third sequence, that is, the detection component 140 is in the low position, and detects the third electromagnetic signal of the third sequence, it may be determined that the electronic device 100 is in the abnormal state, and a prompt is issued at this time. Specifically, the screen used in the folded state and the screen used in the unfolded state may be controlled to simultaneously display an abnormality interface, prompt the electronic device 100 of a current abnormality, or send an abnormal sound effect to prompt the abnormality.
In some embodiments of the present application, as shown in fig. 2 and 3, the electronic device 100 further comprises: the screen assembly is disposed on the first body 110 and the second body 120, and electrically connected to the controller 180, and the controller 180 controls the screen assembly to display a prompt interface in response to a detection result of the detection assembly 140 on the electromagnetic signals of the preset sequence.
And the screen assemblies are arranged on the first body 110 and the second body 120 and electrically connected with the controller 180, and the controller 180 controls the screen assemblies to display a prompt interface in response to the detection result of the detection assembly 140 on the change of the magnetic field.
Specifically, the electronic device 100 further includes a screen component, and when the detection component 140 detects that the magnetic field change does not match the detection result of the electromagnetic signal of the preset sequence, it is determined that the electronic device 100 is currently abnormal, and a prompt is sent from the screen component.
Further, the screen assembly includes a first screen 152 and a second screen 154, the first screen 152 is a screen used in an unfolded state, specifically, the first screen 152 is a flexible screen, and is disposed on the first body 110 and the second body 120 at the same time, the second screen 154 is a screen used in a folded state, specifically, the second screen 154 is disposed on the first body 110 or the second body 120, and both the first screen 152 and the second screen 154 are located on opposite sides of the first body 110 and the second body 120, wherein the first screen 152 is located between the second body 120 and the second body 120 when the first body 110 and the second body 120 are in the folded state.
Alternatively, the screen assembly includes a third screen, the third screen is a flexible screen, the third screen is disposed on the first body 110 and the second body 120, the flexible screen is located outside the first body 110 and the second body 120 when the first body 110 and the second body 120 are folded, the third screen is completely displayed when the first body 110 and the second body 120 are in the unfolded state, and the third screen is located on a portion of the first body 110 or a portion of the second body 120 when the first body 110 and the second body 120 are in the folded state.
In some embodiments of the present application, the sound emitting assembly 130 includes: a magnetic member, wherein a distance between the magnetic member and the detection assembly 140 changes during the switching between the unfolded state and the folded state of the first body 110 and the second body 120; and the sounding module is used for generating electromagnetic signals of a preset sequence according to the signals.
Specifically, the sound generating assembly 130 includes a magnetic member and a sound generating module, and the sound generating module includes an electromagnetic member and a vibrating diaphragm, so that when the electromagnetic member receives a waveform current, a magnetic field in a fluctuation state is generated, and then the vibrating diaphragm vibrates through the cooperation of the electromagnetic member and the magnetic member, thereby generating sound.
The sound generating component 130 is a speaker or a speaker box, etc. The magnetic part is a permanent magnet, and the electromagnetic part is a coil.
Wherein, the detection component 140 corresponds to the magnetic component and the electromagnetic component, and further in the process of switching between the unfolded state and the folded state of the first body 110 and the second body 120, the distance between the detection component 140 and the magnetic component is changed by sound, so that the detection component 140 can detect the magnetic field change based on the magnetic component, and can detect the electromagnetic signal of the generation component.
As shown in fig. 4, the controller 180 and the power module 170 in the electronic device 100 are core modules of the system, the detection component 140 and the sound generating component 130 form peripheral parts of the system, the detection component 140 inputs the sound generating component 130, and the sound generating component 130 outputs the sound. The controller 180 includes an input/output interface, a filter circuit, a trigger shaping circuit, and a sequence determination circuit.
The power module 170 supplies power to the whole electronic device 100, the controller 180 controls and reads the peripheral input and output data through the data bus, and the data bus is connected to the input and output interface, through which current can be output to the sound generating component 130 to generate sound or data of the detection component 140 can be read. The input electromagnetic signal is sampled and transmitted to the post-stage filter circuit through the input and output interface, so that continuous sine wave signals can be discretized, and high-frequency interference can be eliminated. And after filtering, the data is sent to a trigger shaping circuit, judgment is carried out according to a preset judgment threshold value, a low level is output as long as the data is lower than the threshold value, a high level is output when the data is higher than the threshold value, the input initial sine wave signal is finally changed into square wave signals with different periods after the step, the square wave is sent to a sequence judgment circuit for further judgment and identification, and finally the judgment and matching of the sequence of the sound production assembly 130 are completed.
The detection assembly 140, the sound emitting assembly 130, the controller 180 and the hinge 160 cooperate to enable detection of folding and unfolding.
As shown in fig. 5, when the electronic device 100 is initially in the fully unfolded state by default, the detecting element 140 is far away from the sound generating element 130, as shown in fig. 6, when the first body 110 or the second body 120 is rotated, the hinge 160 rotates to drive the first body 110 and the second body 120 to enter the intermediate state, so that the detecting element 140 is close to the sound generating element 130, and the first body 110 and the second body 120 are gradually closed, as shown in fig. 7, until the electronic device is fully folded, at which time the detecting element 140 faces the sound generating element 130.
As shown in fig. 5, in the deployed state, under the condition that there is no external interference, the detection module 140 detects a weak magnetic signal of the sounding module 130, and the controller 180 determines that the magnetic field signal does not exceed the first threshold at this time, and outputs a negative value. As shown in fig. 8, the detection component 140 detects a low intensity signal. As shown in fig. 9, the sound emitting assembly 130 has no current input. As shown in fig. 10, the signals of the sounding components 130 are all stable magnetic signals. As shown in fig. 11, the controller 180 shapes to obtain a negative value. As shown in fig. 12, the controller 180 does not recognize the waveform. As shown in fig. 13, the reference clock has no signal output.
As shown in fig. 6, in the intermediate state, the sounding component 130 and the detecting component 140 gradually approach each other, the magnetic signal detected by the detecting component 140 continuously increases, a magnetic field change occurs, when the magnetic field changes to increase and reaches a value not lower than the first threshold, the output of the controller 180 changes from a negative value to a positive value, the controller 180 determines that the trigger threshold outputs a high level once, and triggers the reference clock to output, and starts the detection process of the folded state. As shown in fig. 8, the signal strength component of the detection component 140 rises. As shown in fig. 9, the sound emitting assembly 130 has no current input. As shown in fig. 10, the signals of the sounding components 130 are all stable magnetic signals. As shown in fig. 11, the controller 180 obtains a negative value after the signal strength is shaped before being lower than the first threshold value, and obtains a positive value after the signal strength is shaped not lower than the first threshold value. As shown in fig. 12, the waveform when the signal strength of the controller 180 reaches the first threshold value. As shown in fig. 13, the reference clock is output when the signal strength is below the first threshold.
As shown in fig. 7, in the folded state, the controller 180 inputs current to the sound generating assembly 130 to make the sound generating assembly 130 generate a section of prompt sound, and at this time, the sound generating assembly 130 changes its electromagnetic signal along with the sound generation, and the signal detected by the detecting assembly 140 changes along with the change. The detection component 140 outputs a square wave signal after sampling, filtering and shaping data, and finally sends the square wave signal to the controller 180, and the controller 180 only calculates the difference value between the previous signal and the next signal of the input square wave and outputs comparison sequence information according to comparison. According to the comparison between the sequence information and the first sequence sent by the initial controller 180, it can be determined whether the folding operation or the external interference occurs, and then the detection component 140 outputs a stable high magnetic field value by default, which indicates that the electronic device 100 is in the folded state. As shown in fig. 8, the detection assembly 140 detects a first sequence of first electromagnetic signals. As shown in fig. 9, the sound emitting assembly 130 inputs a first sequence of currents. As shown in fig. 10, the sound emitting assembly 130 emits a first series of first electromagnetic signals. As shown in fig. 11, the controller 180 shapes the waveform to obtain a first sequence. As shown in fig. 12, the controller 180 recognizes a first sequence of waveforms. As shown in fig. 13, the reference clock performs signal output for a preset time.
The same process is also adopted when the whole machine is changed from buckling to opening:
as shown in fig. 7, in the folded state, the detection unit 140 detects a strong magnetic signal of the sounding unit 130 under the condition that there is no external disturbance, and the controller 180 determines that the magnetic field signal is higher than the second threshold value at that time, and outputs a positive value. As shown in fig. 14, the detection component 140 detects high intensity signals. As shown in fig. 15, the sound emitting assembly 130 has no current input. As shown in fig. 16, the signals of the sounding components 130 are all stable magnetic signals. As shown in fig. 17, the controller 180 shapes to obtain a positive value. As shown in fig. 18, the controller 180 does not recognize the waveform. As shown in fig. 19, the reference clock has no signal output.
As shown in fig. 6, in the intermediate state, the sounding component 130 and the detecting component 140 are gradually separated, the magnetic signal detected by the detecting component 140 is continuously decreased, when the magnetic field is decreased to be not higher than the second threshold, the output of the controller 180 is changed from a positive value to a negative value, the controller 180 determines that the trigger threshold outputs a low level once, and triggers the reference clock to output, and starts the detection process of the deployment state. As shown in fig. 14, the signal strength component of the detection component 140 decreases. As shown in fig. 15, the sound emitting assembly 130 has no current input. As shown in fig. 16, the signals of the sounding components 130 are all stable magnetic signals. As shown in fig. 17, the controller 180 obtains a positive value after shaping before the signal strength is higher than the second threshold, and obtains a negative value after shaping is not lower than the second threshold. As shown in fig. 18, the waveform when the signal strength of the controller 180 reaches the second threshold value. As shown in fig. 19, the reference clock is output when the signal strength is below the second threshold.
As shown in fig. 5, in the unfolded state, the controller 180 inputs current to the sounding component 130 to make the sounding component 130 send a prompt tone, and at this time, the sounding component 130 changes its electromagnetic signal along with the sounding, and the signal detected by the detecting component 140 changes along with the sounding. The detection component 140 outputs a square wave signal after sampling, filtering and shaping data, and finally sends the square wave signal to the controller 180, and the controller 180 only calculates the difference value between the previous signal and the next signal of the input square wave and outputs comparison sequence information according to comparison. By comparing the sequence information with the second sequence sent by the initial controller 180, it can be determined whether the folding operation or the external interference occurs, and then the detection component 140 outputs a stable low magnetic field value by default, which indicates that the electronic device 100 is in the unfolded state. As shown in fig. 14, the detection assembly 140 detects a second sequence of second electromagnetic signals. As shown in fig. 15, the sound emitting assembly 130 inputs a second sequence of currents. As shown in fig. 16, the sound emitting assembly 130 emits a second series of second electromagnetic signals. As shown in fig. 17, the controller 180 shapes the waveform to obtain a second sequence. As shown in fig. 18, the controller 180 recognizes the waveform of the second sequence. As shown in fig. 19, the reference clock performs signal output for a preset time.
As shown in fig. 20, when the magnet 200 is close to the electronic device 100 in the unfolded state, the magnetic signal detected by the detection component 140 continuously increases, the detection process is triggered after the magnetic field exceeds the first threshold, and the controller 180 outputs the current signal to the sound generation component 130 to play the detection sequence, because the sound generation component 130 is far away from the detection component 140, and cannot trigger to detect the first electromagnetic signal of the first sequence, the first sequence cannot be identified and detected, and finally, although the detection component 140 is always in the normally high state, the system determines that the electronic device 100 is not in the folded state because the first electromagnetic signal of the first sequence cannot be detected correspondingly.
As shown in fig. 21, when the magnet 200 is not close to the electronic device 100, the waveform detected by the detecting element 140 is a low-intensity signal, when the magnet 200 gradually approaches the electronic device 100, the waveform detected by the detecting element 140 rises, and after the first sequence of first electromagnetic signals is emitted, the detecting element 140 is far away from the sound emitting element 130, and cannot detect the complete first sequence of first electromagnetic signals.
As shown in fig. 22, when the magnet 200 is not close to the electronic device 100, the signal of the sound generating component 130 is stable, when the magnet 200 gradually approaches the electronic device 100, the signal of the sound generating component 130 is stable, and after the magnet 200 triggers the detecting component 140, the first electromagnetic signal of the first sequence is emitted from the sound generating component 130.
When folding is performed under the condition of interference, because the magnet is fixed hard magnetic interference, the fixed interference can be filtered when difference calculation is performed in the controller 180, and judgment is not influenced.
As shown in fig. 23, when the magnet 200 is close to the sound generating component 130 in the folded state of the electronic device 100, after the magnetic signal is cancelled by the magnetic signal of the sound generating component 130, if the magnetic signal detected by the detecting component 140 is decreasing, and the detection process is triggered after the magnetic field is not higher than the second threshold, the controller 180 outputs the current signal to the sound generating component 130 to play the detection sequence, since the sound generating component 130 is close to the detecting component 140 at this time, and can trigger to detect the second electromagnetic signal of the second sequence, the second electromagnetic signal of the second sequence can be detected, and finally, although the detecting component 140 is always in the normally low state, the system can correspondingly detect the second electromagnetic signal of the second sequence, and thus, the electronic device 100 is determined not to be in the unfolded state.
As shown in fig. 24, when the magnet 200 is not close to the electronic device 100, the waveform detected by the detection component 140 is a high-intensity signal, when the magnet 200 gradually approaches the electronic device 100, the waveform detected by the detection component 140 decreases, and after the second electromagnetic signal of the second sequence is emitted, the detection component 140 is closer to the sound emitting component 130, and the complete second electromagnetic signal of the second sequence can be detected.
As shown in fig. 25, when the magnet 200 is not close to the electronic apparatus 100, the controller 180 does not recognize the waveform, recognizes the waveform when the magnet 200 gradually comes close to the electronic apparatus 100 until the signal is not higher than the second threshold, and recognizes the second electromagnetic signal of the second sequence after the detection component 140 detects the second electromagnetic signal of the second sequence.
As shown in fig. 26, when the magnet 200 is not close to the electronic apparatus 100, no signal is output from the reference clock, and when the magnet 200 is gradually close to the electronic apparatus 100, the reference clock outputs a signal until the signal is not higher than the second threshold value.
When the deployment is performed under the condition of interference, because the magnet is fixed hard magnetic interference, the fixed interference can be filtered when the difference value calculation is performed in the controller 180, and the judgment is not influenced.
Specifically, since the controller 180 only detects the difference, the fixed disturbance can be filtered out, no matter whether the N pole or S pole is used close to the electronic device 100, the fixed disturbance will not cause a failure, and when the detection component 140 is full scale, a prompt to emit a strong magnetic field disturbance can be prompted on the screen component, for example: "detect strong magnetic interference please keep your electronic device 100 away from the interference source".
When dynamic interference occurs, misjudgment can be caused only under the condition that the interference sequence is completely consistent with the preset sequence, the probability is very low, and randomness can be further increased by increasing the length of the sequence, performing special coding and the like, so that the probability of misjudgment of the system is very low. When the dynamic interference does not match the predetermined sequence, the system detects a non-predetermined sequence value, and the system also prompts "detect magnetic interference and please move the electronic device 100 away from the interference" on the screen assembly.
In some embodiments of the present application, a method for detecting a state of an electronic device is provided, where the method is used for an electronic device, fig. 27 shows one of flowcharts of a method for detecting a state of an electronic device according to an embodiment of the present application, and as shown in fig. 27, the method includes:
step 2702: controlling the sounding component to send out electromagnetic signals of a preset sequence in response to a signal generated by the detection component when the detection component detects the change of the magnetic field;
step 2704: and determining the states of the first body and the second body according to the detection result of the detection assembly on the electromagnetic signals of the preset sequence.
In this embodiment, when the magnetic field detected by the detection component changes, a waveform current is sent to the sounding component to control the electromagnetic signal of the preset sequence generated by the sounding component, at this time, the states of the first main body and the second main body are determined according to whether the detection component detects the electromagnetic signal of the preset sequence, and at the same time, the generation component sends out a specific audio.
Because the strength of the electromagnetic signal of the sounding component can be changed specifically, in nature, the magnetic field capable of forming specific change is less. Specifically, the external magnetic field is substantially a steady state magnetic field, and therefore, the external magnetic field generally only interferes with the detection of the magnetic field variation by the detection assembly, and does not substantially interfere with the detection of the electromagnetic signal of the predetermined sequence.
Therefore, through the common detection of the electromagnetic signals of the preset sequence of the magnetic field change and the sounding assembly, the accuracy of judgment of the first main body and the second main body can be improved, and further the switching of the screen assembly of the electronic equipment is more accurate.
In some embodiments of the present application, a method for detecting a status of an electronic device is provided, where the method is used for an electronic device, fig. 28 shows a second flowchart of a method for detecting a status of an electronic device according to an embodiment of the present application, and as shown in fig. 28, the method includes:
step 2802: controlling the sound generating assembly to emit a first sequence of first electromagnetic signals in response to the detecting assembly detecting a change in the magnetic field that is not below a first threshold;
step 2804: determining that the first and second bodies are in the folded state based on the detection assembly detecting the first sequence of first electromagnetic signals;
step 2806: based on the detection assembly not detecting the first sequence of first electromagnetic signals, it is determined that the first and second bodies are not in the folded state.
In this embodiment, when the first body and the second body are converted from the unfolded state to the folded state, since in the intermediate state, the first body and the second body approach gradually, that is, the magnetic field of the sounding component detected by the detecting component is gradually increased, and then the detecting component detects the change of the magnetic field, when the detecting component detects that the magnetic field strength changes to be not lower than the first threshold, the detecting component reaches the high position, at this time, the trigger controller sends a waveform current to the sounding component, and the sounding component generates a first sequence of first electromagnetic signals according to the waveform current, and sends a specific audio frequency, which can be understood as an audio effect of the folded state of the electronic device, such as a cue sound like "ding dong di".
At this time, if the detecting component detects the first electromagnetic signal of the first sequence, it indicates that the first main body and the second main body are actually in a close state, that is, the user is performing an operation of folding up the electronic device, at this time, it is determined that the electronic device is in a folded state, and the screen component is switched to the screen used in the folded state.
If the detection component detects that the magnetic field intensity changes to be not lower than the first threshold value and does not detect the first electromagnetic signal of the first sequence, the first main body and the second main body are not in a close state, the magnetic field change detected by the detection component is external magnetic field interference, namely, a user does not perform the operation of folding the electronic equipment, at the moment, the electronic equipment can be determined to be in an unfolded state, and the electronic equipment is in the magnetic field interference, at the moment, a prompt can be generated on the screen component or a prompt tone can be given out, and the screen component is kept as a screen used in the unfolded state.
The first threshold value may be determined according to the magnetic strength of the sounding component and the arrangement positions of the sounding component and the detection component.
In some embodiments of the present application, a method for detecting a state of an electronic device is provided, where fig. 29 shows a third flowchart of a method for detecting a state of an electronic device according to an embodiment of the present application, and as shown in fig. 29, the method includes:
step 2902: controlling the sound generating assembly to emit a second sequence of second electromagnetic signals in response to the detecting assembly detecting that the magnetic field has changed to a value not higher than a second threshold value;
step 2904: determining that the first and second bodies are in the deployed state based on the detection assembly not detecting the second sequence of second electromagnetic signals;
step 2906: the first and second bodies are determined not to be in the deployed state based on the detection component detecting the second sequence of the second electromagnetic signal.
In this embodiment, when the first body and the second body are changed from the folded state to the unfolded state, since in the intermediate state, the first body and the second body are gradually away from each other, that is, the magnetic field of the sounding component detected by the detecting component is gradually weakened, and then the detecting component detects the change of the magnetic field, when the detecting component detects that the magnetic field strength is changed to be not higher than the second threshold, the detecting component reaches the low position, at this time, the trigger controller sends a waveform current to the sounding component, and the sounding component generates a second electromagnetic signal of a second sequence according to the waveform current, wherein the second electromagnetic signal and the magnetic signal can enable the sounding component to send a specific audio, which can be understood as an audio effect of the unfolded state of the electronic device, such as a prompt tone like "click".
At this time, if the detecting component does not detect the second electromagnetic signal of the second sequence, it indicates that the first body and the second body are indeed in a state of being far away, that is, the user is performing an operation of unfolding the electronic device, at this time, it may be determined that the electronic device is in the unfolded state, and the screen used by the screen component is switched to the unfolded state.
If the detection component detects that the magnetic field intensity changes to be not higher than the second threshold value, and if the detection component detects a second electromagnetic signal of the second sequence, the first main body and the second main body are not in a far-away state, the magnetic field change detected by the detection component is magnetic field interference from the outside, namely, the user does not perform the operation of unfolding the electronic equipment, at the moment, the electronic equipment can be determined to be in a folded state, and the electronic equipment is in the magnetic field interference, at the moment, a prompt can be generated on the screen component, or a prompt sound can be given out, and the screen component is kept to be a screen used in the folded state.
The second threshold value may be determined according to the magnetic strength of the sounding component and the arrangement position of the sounding component and the detection component.
In some embodiments of the present application, a method for detecting a state of an electronic device is provided, where fig. 30 shows a fourth flowchart of a method for detecting a state of an electronic device according to an embodiment of the present application, and as shown in fig. 30, the method includes:
step 3002: responding to the system startup, and controlling the sounding component to send out a third electromagnetic signal of a third sequence;
step 3004: determining initial states of the first body and the second body according to detection results of the detection assembly on the third electromagnetic signals and the magnetic fields of the third sequence;
step 3006: controlling the sounding component to send out electromagnetic signals of a preset sequence in response to a signal generated by the detection component when the detection component detects the change of the magnetic field;
step 3008: and determining the states of the first body and the second body according to the detection result of the detection assembly on the electromagnetic signals of the preset sequence.
In this embodiment, when the electronic device is turned on, if the first main body and the second main body are in the folded state, the detection assembly and the sound generating assembly are close to each other, and if the first main body and the second main body are in the unfolded state, the detection assembly and the sound generating assembly are far away from each other.
Therefore, when the electronic device is started, the system is started to operate, a specific waveform current is sent to the sounding assembly, the sounding assembly sends a third electromagnetic signal of a third sequence, and according to the detection of the magnetic field change and the third electromagnetic signal of the third sequence by the detection assembly, as the third electromagnetic signal of the third sequence of the sounding assembly is a specific change, in nature, a less magnetic field with the specific change can be formed. In particular, the external magnetic field is substantially a steady state magnetic field, and thus the external magnetic field generally only interferes with the detection of the third sequence of third electromagnetic signals by the detection assembly, and does not substantially interfere with the detection of the third sequence of third electromagnetic signals.
Therefore, the magnetic field change of the sounding component and the common detection of the third electromagnetic signal of the third sequence are performed through the magnetic piece, the accuracy of judgment of the first main body and the second main body can be improved, and further the initial display screen of the electronic device is determined more accurately.
After the system is started, the state of the electronic equipment can be continuously determined so as to provide a basis for switching the screen.
Moreover, when the system is started to determine the state of the electronic equipment and the system is used, the state determination of the electronic equipment is combined, and the use scene of the electronic equipment can be comprehensively covered.
In some embodiments of the present application, a method for detecting a state of an electronic device is provided, where the method is used for an electronic device, fig. 31 shows a fifth flowchart of a method for detecting a state of an electronic device according to an embodiment of the present application, and as shown in fig. 31, the method includes:
step 3102: responding to the system startup, and controlling the sounding component to send out a third electromagnetic signal of a third sequence;
step 3104: in response to the detection assembly detecting that the magnetic field is not below the third threshold and the detection assembly detecting a third sequence of third electromagnetic signals, determining that the first and second bodies are in the collapsed state;
step 3106: in response to the detection component detecting that the magnetic field is not above the fourth threshold and the detection component not detecting the third sequence of the third electromagnetic signal, determining that the first and second bodies are in the deployed state;
step 3108: controlling the sounding component to send out electromagnetic signals of a preset sequence in response to a signal generated by the detection component when the detection component detects the change of the magnetic field;
step 3110: and determining the states of the first body and the second body according to the detection result of the detection assembly on the electromagnetic signals of the preset sequence.
In this embodiment, when the system is powered on, the controller sends a waveform current to the sounding component, and the sounding component generates a third electromagnetic signal of a third sequence according to the waveform current, where the sounding component receives the waveform current, and generates the third electromagnetic signal of the third sequence while sending a specific audio, which can be understood as a sound effect of powering on the electronic device.
At this time, if the detecting component detects that the magnetic field is not lower than the third threshold and the third sequence of the third electromagnetic signal, that is, the detecting component is in the high position, and detects the third sequence of the third electromagnetic signal, it indicates that the first body and the second body are indeed in the close state, it may be determined that the electronic device is in the folded state, and the screen component is switched to the screen used in the folded state, specifically, the second screen.
If the detecting component detects that the magnetic field is not higher than the fourth threshold and the third electromagnetic signal of the third sequence is not detected, that is, the detecting component is in the low position and the third electromagnetic signal of the third sequence is not detected, it indicates that the first body and the second body are indeed in the far state, and it can be determined that the electronic device is in the unfolded state, and the screen used by the screen component is switched to the unfolded state, specifically, the first screen.
Further, determining the initial state of the first body and the second body according to the detection result of the detection assembly on the third electromagnetic signal and the magnetic field of the third sequence, specifically includes: sending an exception prompt in response to the detection assembly detecting that the magnetic field is not below the third threshold and the detection assembly does not detect a third electromagnetic signal of the third sequence; and in response to the detection component detecting that the magnetic field is not higher than the fourth threshold and the detection component detecting a third sequence of third electromagnetic signals, issuing an exception prompt.
If the detection component detects that the magnetic field is not lower than the third threshold value but does not detect the third electromagnetic signal of the third sequence, that is, the detection component is in the high position and does not detect the third electromagnetic signal of the third sequence, it may be determined that the electronic device is in an abnormal state, and a prompt is issued at this time. Specifically, the screen used in the folded state and the screen used in the unfolded state can be controlled to simultaneously display an abnormal interface to prompt that the electronic equipment is abnormal currently or send an abnormal sound effect to prompt that the electronic equipment is abnormal.
If the detection component detects that the magnetic field is not higher than the fourth threshold value, but detects the third electromagnetic signal of the third sequence, that is, the detection component is in a low position, and detects the third electromagnetic signal of the third sequence, it may be determined that the electronic device is in an abnormal state, and a prompt is issued at this time. Specifically, the screen used in the folded state and the screen used in the unfolded state can be controlled to simultaneously display an abnormal interface to prompt that the electronic equipment is abnormal currently or send an abnormal sound effect to prompt that the electronic equipment is abnormal.
In some embodiments of the present application, a method for detecting a state of an electronic device is provided, where the method is used for an electronic device, fig. 32 shows a sixth flowchart of a method for detecting a state of an electronic device according to an embodiment of the present application, and as shown in fig. 32, the method includes:
step 3202: responding to the system startup, and controlling the sounding component to send out a third electromagnetic signal of a third sequence;
step 3204: in response to the detection assembly detecting that the magnetic field is not below the third threshold and the detection assembly detecting a third sequence of third electromagnetic signals, determining that the first and second bodies are in the collapsed state;
step 3206: in response to the detection component detecting that the magnetic field is not above the fourth threshold and the detection component not detecting the third sequence of the third electromagnetic signal, determining that the first and second bodies are in the deployed state;
step 3208: sending an exception prompt in response to the detection assembly detecting that the magnetic field is not below the third threshold and the detection assembly does not detect a third electromagnetic signal of the third sequence;
step 3210: sending an exception prompt in response to the detection component detecting that the magnetic field is not higher than the fourth threshold and the detection component detecting a third electromagnetic signal of a third sequence;
step 3212: controlling the sound generating assembly to emit a first sequence of first electromagnetic signals in response to the detecting assembly detecting a change in the magnetic field that is not below a first threshold;
step 3214: controlling the sound generating assembly to emit a second sequence of second electromagnetic signals in response to the detecting assembly detecting that the magnetic field has changed to a value not higher than a second threshold value;
step 3216: determining that the first and second bodies are in the folded state based on the detection assembly detecting the first sequence of first electromagnetic signals;
step 3218: determining that the first and second bodies are not in the folded state based on the detection assembly not detecting the first sequence of the first electromagnetic signals;
step 3220: determining that the first and second bodies are in the deployed state based on the detection assembly not detecting the second sequence of second electromagnetic signals;
step 3222: the first and second bodies are determined not to be in the deployed state based on the detection component detecting the second sequence of the second electromagnetic signal.
In this embodiment, when the system is powered on, the controller sends a waveform current to the sounding component, and the sounding component generates a third electromagnetic signal of a third sequence according to the waveform current, where the sounding component receives the waveform current, and generates the third electromagnetic signal of the third sequence while sending a specific audio, which can be understood as a sound effect of powering on the electronic device.
At this time, if the detecting component detects the magnetic field and the third electromagnetic signal of the third sequence, that is, the detecting component is at the high position, and detects the third electromagnetic signal of the third sequence, it indicates that the first body and the second body are indeed in the close state, it can be determined that the electronic device is in the folded state, and the screen component is switched to the screen used in the folded state, specifically, the second screen.
If the detection component does not detect the magnetic field and the third electromagnetic signal of the third sequence, that is, the detection component is in the low position, and does not detect the third electromagnetic signal of the third sequence, it indicates that the first body and the second body are indeed in the far state, and it can be determined that the electronic device is in the unfolded state, and the screen used for switching the screen component to the unfolded state, specifically, the first screen.
If the detection component detects the magnetic field but does not detect the third electromagnetic signal of the third sequence, that is, the detection component is in the high position and does not detect the third electromagnetic signal of the third sequence, it may be determined that the electronic device is in the abnormal state, and a prompt is issued at this time. Specifically, the screen used in the folded state and the screen used in the unfolded state can be controlled to simultaneously display an abnormal interface to prompt that the electronic equipment is abnormal currently or send an abnormal sound effect to prompt that the electronic equipment is abnormal.
If the detection component does not detect the magnetic field, but detects the third electromagnetic signal of the third sequence, that is, the detection component is in a low position, and detects the third electromagnetic signal of the third sequence, it may be determined that the electronic device is in an abnormal state, and a prompt is issued at this time. Specifically, the screen used in the folded state and the screen used in the unfolded state can be controlled to simultaneously display an abnormal interface to prompt that the electronic equipment is abnormal currently or send an abnormal sound effect to prompt that the electronic equipment is abnormal.
After the system is operated, when the first main body and the second main body are changed from the unfolding state to the folding state, because in the intermediate state, the first main body and the second main body gradually approach, that is, the magnetic field of the sounding component detected by the detection component is gradually enhanced, and then the detection component detects the change of the magnetic field, when the detection component detects that the magnetic field intensity is changed to be not lower than the first threshold value, the detection component reaches the high position, at the moment, the trigger controller sends a waveform current to the sounding component, and the sounding component generates a first sequence of first electromagnetic signals according to the waveform current and sends out specific audio, which can be understood as a sound effect of the folding state of the electronic device, such as prompt sound of 'ding dong' and the like.
At this time, if the detecting component detects the first electromagnetic signal of the first sequence, it indicates that the first main body and the second main body are actually in a close state, that is, the user is performing an operation of folding up the electronic device, at this time, it may be determined that the electronic device is in a folded state, and the screen component is switched to a screen used in the folded state, specifically, the second screen.
If the detecting component detects that the magnetic field intensity changes to be not lower than the first threshold value and does not detect the first electromagnetic signal of the first sequence, the first main body and the second main body are not in a close state, the magnetic field detected by the detecting component is changed, the magnetic field interference from the outside is generated, namely, the user does not perform the operation of folding the electronic device, at this time, the electronic device can be determined to be in an unfolded state, and the electronic device is in the magnetic field interference, at this time, a prompt can be generated on the screen component or a prompt tone can be given, and the screen component is kept in the screen used in the unfolded state, specifically, the first screen.
The first threshold value may be determined according to the magnetic strength of the sounding component and the arrangement positions of the sounding component and the detection component.
When the first main body and the second main body are changed from the folded state to the unfolded state, because in the intermediate state, the first main body and the second main body are gradually far away, that is, the magnetic field of the sounding component detected by the detection component is gradually weakened, and then the detection component detects the change of the magnetic field, when the detection component detects that the change of the magnetic field strength is not higher than a second threshold value, the detection component reaches a low position, at the moment, the trigger controller sends a waveform current to the sounding component, and the sounding component generates a second electromagnetic signal of a second sequence according to the waveform current, wherein the second electromagnetic signal and the magnetic signal can enable the sounding component to send specific audio, and the audio can be understood as the sound effect of the unfolded state of the electronic device, such as prompt tones like 'ticks'.
At this time, if the detecting component does not detect the second electromagnetic signal of the second sequence, it indicates that the first body and the second body are indeed in a state of being far away, that is, the user is performing an operation of unfolding the electronic device, at this time, it may be determined that the electronic device is in the unfolded state, and the screen component is switched to the screen used in the unfolded state, specifically, the first screen.
If the detection component detects that the magnetic field intensity changes to be not higher than the second threshold value, and if the detection component detects a second electromagnetic signal of the second sequence, the first main body and the second main body are not in a far-away state, the magnetic field change detected by the detection component and external magnetic field interference are caused, namely, the user does not perform the operation of unfolding the electronic equipment, at the moment, the electronic equipment can be determined to be in a folded state, and the electronic equipment is in the magnetic field interference, at the moment, a prompt can be generated on the screen component or a prompt tone can be given, and the screen component is kept to be a screen used in the folded state, specifically, the second screen.
The second threshold value may be determined according to the magnetic strength of the sounding component and the arrangement position of the sounding component and the detection component.
Specifically, the above steps are all performed within a preset time, that is, after the detection assembly detects the change of the magnetic field, timing is started, and the detection step is completed within the preset time.
In some embodiments of the present application, a state detection method of an electronic device is provided, where the method is used for an electronic device, fig. 33 shows a seventh flowchart of a state detection method of an electronic device according to an embodiment of the present application, and as shown in fig. 33, the method includes:
step 3302: and starting the system, and outputting the reference clock by default.
Specifically, after the electronic device is powered on, a reference clock signal is output to determine time information.
Step 3304: and detecting by a detection component and filtering and shaping the data.
Specifically, the detection component initiates detection of the signal and filtering of the data.
Step 3306: whether a third electromagnetic signal is detected; if yes, go to step 3310; if the determination result is negative, step 3308 is performed.
Specifically, it is determined whether a third sequence of third electromagnetic signals is detected.
Step 3308: whether other electromagnetic signals are detected; if the determination result is negative, step 3312 is performed.
Specifically, when the third electromagnetic signal of the third sequence is not detected, it is determined whether other electromagnetic signals are detected.
Step 3310: detecting whether the assembly is stable and is in a high position; if not, determining that the electronic equipment is abnormal, and executing step 3320; if the determination result is yes, step 3314 is executed.
Specifically, when the third electromagnetic signal of the third sequence is detected, it is determined whether the signal detected by the detection component is stable and at a high potential.
Step 3312: detecting whether the component is stable and is in a low position; if the judgment result is negative, determining that the electronic equipment is abnormal; if the determination result is yes, step 3316 is executed.
Specifically, when no other electromagnetic signal is detected, it is determined whether the signal detected by the detection component is stable and at a low potential.
Step 3314: the initial state is determined to be a folded state.
Specifically, when the signal detected by the detection member is stable and at a high potential, it is determined that the electronic apparatus is in the folded state.
Step 3316: the initial state is determined to be the deployed state.
Specifically, when the signal detected by the detection component is stable and is at a low potential, it is determined that the electronic apparatus is in the unfolded state.
Step 3318: and detecting by a detection component and filtering and shaping the data.
Specifically, in the using process of the electronic device, the detection component detects and performs filter shaping on detected data.
Step 3320: and sending out a prompt.
Specifically, when the detection component is not stabilized at a high potential, an interference prompt is issued.
Step 3322: and detecting by a detection component and filtering and shaping the data.
Specifically, the data is re-detected and filter shaped.
Step 3324: detecting whether the component triggers high or low; if the determination result is negative, step 3304 is performed.
Specifically, when the high potential or the low potential is not triggered, the interference can be eliminated, and the power-on detection can be carried out again.
Step 3326: detecting whether the component triggers high or low; if the determination result is negative, go to step 3318; if the determination result is yes, step 3328 is executed.
Specifically, it is determined whether the detection component triggers a high potential or a low potential.
Step 3328: the system clock outputs a reference signal.
Specifically, when the detection component triggers a high potential or a low potential, the control clock outputs a reference clock signal to time the whole process.
Step 3330: the electromagnetic part is controlled to send out an electromagnetic signal.
Specifically, the electromagnetic element is controlled to emit a preset sequence of electromagnetic signals within a certain time.
Step 3332: and detecting by a detection component and filtering and shaping the data.
Specifically, the detection component detects the signal and filter shapes the data.
Step 3334: whether a first electromagnetic signal is detected; if the determination result is negative, go to step 3336; if the determination result is yes, step 3342 is executed.
Specifically, it is determined whether a first sequence of first electromagnetic signals is detected.
Step 3336: whether a second electromagnetic signal is detected; if the determination result is negative, go to step 3344; if the determination result is yes, step 3338 is executed.
Specifically, when a first electromagnetic signal of a first sequence is not detected, it is determined whether a second electromagnetic signal of a second sequence is detected.
Step 3338: detecting whether the assembly is stable and is in a high position; if the judgment result is negative, determining that the electronic equipment is abnormal; if the determination result is yes, step 3340 is executed.
Specifically, when the second electromagnetic signal of the second sequence is detected, it is determined whether the detection component is stably at a high level.
Step 3340: the current state is determined to be a folded state.
Specifically, when the detection member is at a stable high level, it is determined that the electronic apparatus is in the folded state. Although the detection component detects the second electromagnetic signal of the second sequence, it indicates that the detection component is close to the sounding component, and in such a state, the magnetic component of the sounding component triggers the high level of the detection component. Therefore, in this case, it is determined that the electronic apparatus is in the folded state.
Step 3342: detecting whether the assembly is stable and is in a high position; if the judgment result is negative, determining that the electronic equipment is abnormal; if the determination result is yes, step 3346 is executed.
Specifically, when a first electromagnetic signal of a first sequence is detected, it is determined whether the detection component is stably at a high level.
Step 3344: detecting whether the component is stable and is in a low position; if the judgment result is negative, determining that the electronic equipment is abnormal; if the determination result is yes, step 3348 is performed.
Specifically, when the second electromagnetic signal of the second sequence is detected, it is determined whether the detection component is stably at a low level.
Step 3346: the current state is determined to be a folded state.
Specifically, when the detection member is at a stable high level, it is determined that the electronic apparatus is in the folded state.
Step 3348: and determining that the current state is the unfolding state.
Specifically, when the detection component is at a stable high-low level, it is determined that the electronic device is in the unfolded state.
Specifically, in the case that the determination result is yes, step 3308 determines that the electronic device is in an interference state, and may issue a prompt.
Step 3312: in the case that the judgment result is no, it is determined that the electronic device is abnormal, and step 3320 is performed
Step 3324: and if the judgment result is yes, determining that the electronic equipment is abnormal.
The first threshold and the second threshold are the same or different, the first sequence, the second sequence and the third sequence may be the same or different, and the first electromagnetic signal, the second electromagnetic signal and the third electromagnetic signal are the same or different.
In some embodiments of the present application, after determining that the first and second bodies are not in the folded state based on the detection assembly not detecting the first sequence of the first electromagnetic signal, further comprising: and controlling the sounding component to emit prompt tones and/or controlling the screen component to display a prompt interface so as to prompt the electronic equipment to be positioned in the magnetic field.
In this embodiment, the detecting component detects that the magnetic field changes to be not less than the first threshold, and does not detect the first electromagnetic signal of the first sequence, which indicates that the first body and the second body are not in a close state, that is, the user does not perform an operation of folding up the electronic device, at this time, it may be determined that the electronic device is in an unfolded state, and the magnetic field changes come from external interference, so that a prompt may be generated on the screen component, or a prompt tone may be emitted, and the screen used by the screen component in the unfolded state may be maintained.
In some embodiments of the present application, after determining that the first and second bodies are not in the deployed state based on the detection component detecting the second sequence of the second electromagnetic signal, further comprising: and controlling the sounding component to emit prompt tones and/or controlling the screen component to display a prompt interface so as to prompt the electronic equipment to be positioned in the magnetic field.
In this embodiment, if the detecting component detects that the magnetic field changes to be not higher than the second threshold and detects the second electromagnetic signal of the second sequence, it indicates that the first body and the second body are not in a far-away state, that is, the user does not perform an operation of unfolding the electronic device, at this time, it may be determined that the electronic device is in a folded state, and the magnetic field changes come from external interference, so that a prompt may be generated on the screen component or a prompt sound may be emitted, and the screen component may be maintained as a screen used in the folded state.
In some embodiments of the present application, the control detection assembly monitors the magnetic field signal and displays the magnetic field strength.
In this embodiment, the detection assembly may dynamically monitor the magnetic field level, which may then function as a magnetic field detector.
In the method for detecting a state of an electronic device provided in the embodiment of the present application, the execution main body may be a state detection apparatus of the electronic device, or a control module in the state detection apparatus of the electronic device, for executing the method for detecting a state of the electronic device. The embodiment of the present application takes a method for executing a state detection method of an electronic device by a state detection device of the electronic device as an example, and describes the state detection device of the electronic device provided in the embodiment of the present application.
In some embodiments of the present application, a state detection apparatus of an electronic device is provided, where the state detection apparatus is used for an electronic device, fig. 34 shows one of structural block diagrams of the state detection apparatus of the electronic device according to the embodiment of the present application, and as shown in fig. 34, a state detection apparatus 3400 of the electronic device includes:
the control module 3402 is used for responding to a signal generated by the detection component detecting the change of the magnetic field and controlling the sounding component to send out an electromagnetic signal with a preset sequence;
a determining module 3404, configured to determine states of the first body and the second body according to a detection result of the detecting component on the electromagnetic signal of the preset sequence.
In this embodiment, when the magnetic field detected by the detection component changes, a waveform current is sent to the sounding component to control the electromagnetic signal of the preset sequence generated by the sounding component, at this time, the states of the first main body and the second main body are determined according to whether the detection component detects the electromagnetic signal of the preset sequence, and at the same time, the generation component sends out a specific audio.
Because the strength of the electromagnetic signal of the sounding component can be changed specifically, in nature, the magnetic field capable of forming specific change is less. Specifically, the external magnetic field is substantially a steady state magnetic field, and therefore, the external magnetic field generally only interferes with the detection of the magnetic field variation by the detection assembly, and does not substantially interfere with the detection of the electromagnetic signal of the predetermined sequence.
Therefore, through the common detection of the electromagnetic signals of the preset sequence of the magnetic field change and the sounding assembly, the accuracy of judgment of the first main body and the second main body can be improved, and further the switching of the screen assembly of the electronic equipment is more accurate.
In some embodiments of the present application, the control module specifically includes: the first control module is used for controlling the sound production assembly to emit a first sequence of first electromagnetic signals when the detection assembly detects that the magnetic field changes to be not lower than a first threshold value;
the determining module specifically comprises: a first determining module for determining that the first and second bodies are in the folded state based on the detecting component detecting the first sequence of the first electromagnetic signal;
a second determination module to determine that the first and second bodies are not in the folded state based on the detection assembly not detecting the first sequence of the first electromagnetic signals.
In some embodiments of the present application, further comprising:
the first prompting module is used for controlling the sounding component to give out prompting sound and/or controlling the screen component to display a prompting interface so as to prompt the electronic equipment to be located in the magnetic field.
In some embodiments of the present application, the control module specifically includes:
the third control module is used for controlling the sound production assembly to emit a second sequence of second electromagnetic signals when the detection assembly detects that the magnetic field changes to be not higher than a second threshold value;
a third determination module for determining that the first and second bodies are in the deployed state based on the detection component not detecting the second sequence of second electromagnetic signals;
a fourth determination module to determine that the first and second bodies are not in the deployed state based on the detection component detecting the second sequence of the second electromagnetic signal.
In some embodiments of the present application, the second prompting module is configured to control the sound generating component to generate a prompt sound and/or control the screen component to display a prompting interface to prompt the electronic device to be located in the magnetic field.
In some embodiments of the present application, further comprising: the starting control module is used for responding to the starting of the system and controlling the sounding assembly to send out a third electromagnetic signal of a third sequence;
and the starting-up determining module is used for determining the initial states of the first main body and the second main body according to the detection result of the detection assembly on the third electromagnetic signal and the magnetic field of the third sequence.
In some embodiments of the present application, the power-on determining module specifically includes: the first starting-up determining module is used for responding to the detection component that the magnetic field is detected to be not lower than a third threshold value and the detection component detects a third electromagnetic signal of a third sequence, and determining that the first main body and the second main body are in the folded state;
and the second starting-up determining module is used for responding to the detection component that the magnetic field is not higher than the fourth threshold and the detection component does not detect a third electromagnetic signal of a third sequence, and determining that the first body and the second body are in the unfolding state.
In some embodiments of the present application, the second power-on determining module further comprises:
the third prompting module is used for responding to the situation that the magnetic field detected by the detection assembly is not lower than a third threshold value and the detection assembly does not detect a third electromagnetic signal of a third sequence, and sending an abnormal prompt;
and the fourth prompting module is used for responding to the detection component that the magnetic field is not higher than the fourth threshold value and the detection component detects a third electromagnetic signal of the third sequence and sending an abnormal prompt.
The state detection device of the electronic device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The state detection device of the electronic device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The state detection device for the electronic device provided in the embodiment of the present application can implement each process implemented by the above method embodiment, and is not described here again to avoid repetition.
Fig. 35 shows a block diagram of a structure of an electronic device 3500 according to an embodiment of the present application, and as shown in fig. 35, the electronic device includes a processor 3502, a memory 3504, and a program or an instruction stored in the memory 3504 and operable on the processor 3502, where the program or the instruction, when executed by the processor 3502, implements each process of the above-mentioned chat content sharing method and/or chat content forwarding method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
It should be noted that the electronic device 3500 in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 36 is a schematic hardware structure diagram of an electronic device implementing an embodiment of the present application.
The electronic device 3600 includes but is not limited to: a radio frequency unit 3601, a network module 3602, an audio output unit 3603, an input unit 3604, a sensor 3605, a display unit 3606, a user input unit 3607, an interface unit 3608, a memory 3609, and a processor 3610.
Those skilled in the art will appreciate that the electronic device 3600 may further include a power supply (e.g., a battery) for supplying power to various components, and the power supply may be logically connected to the processor 3610 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 36 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description thereof is omitted.
Wherein, the processor 3610 is configured to control the sound generating component to emit a preset sequence of electromagnetic signals in response to the signal generated by the detection component detecting the change of the magnetic field.
The processor 3610 is configured to determine states of the first body and the second body according to a detection result of the detection component on the electromagnetic signals of the preset sequence.
Optionally, the processor 3610 is configured to control the sound generating assembly to emit a first sequence of first electromagnetic signals in response to the detecting assembly detecting that the magnetic field has changed to not less than a first threshold.
Processor 3610 is configured to determine that the first and second bodies are in the folded state based on the detection assembly detecting the first sequence of first electromagnetic signals.
The processor 3610 is configured to determine that the first and second bodies are not in the folded state based on the detection assembly not detecting the first sequence of the first electromagnetic signals.
Optionally, the audio output unit 3603 is used to emit an alert tone to alert that the electronic device is located in a magnetic field.
The display unit 3606 is used to display a prompt interface to prompt the electronic device to be located in a magnetic field.
Optionally, the processor 3610 is configured to control the sound emitting assembly to emit a second sequence of second electromagnetic signals in response to the detecting assembly detecting that the magnetic field has changed to not greater than a second threshold.
The processor 3610 is configured to determine that the first and second bodies are in the deployed state based on the detection assembly not detecting the second sequence of second electromagnetic signals.
The processor 3610 is configured to determine that the first and second bodies are not in the deployed state based on the detection assembly detecting the second sequence of second electromagnetic signals.
Optionally, the audio output unit 3603 is used to emit an alert tone to alert that the electronic device is located in a magnetic field.
The display unit 3606 is used to display a prompt interface to prompt the electronic device to be located in a magnetic field.
Optionally, the processor 3610 is configured to control the sound emitting assembly to emit a third sequence of third electromagnetic signals in response to the system being powered on.
Optionally, the processor 3610 is configured to determine the initial state of the first body and the second body according to the detection result of the detection assembly for the third sequence of the third electromagnetic signal and the magnetic field.
The processor 3610 is configured to determine that the first and second bodies are in the folded state in response to the detection assembly detecting that the magnetic field is not below the third threshold and the detection assembly detecting a third sequence of third electromagnetic signals.
Optionally, the processor 3610 is configured to determine that the first and second bodies are in the deployed state in response to the detection component detecting that the magnetic field is not above the fourth threshold and the detection component does not detect a third sequence of third electromagnetic signals.
Processor 3610 is configured to issue an exception prompt in response to the detection assembly detecting that the magnetic field is not below the third threshold and the detection assembly does not detect a third electromagnetic signal of the third sequence.
Processor 3610 is configured to issue an exception prompt in response to the detection component detecting that the magnetic field is not above the fourth threshold and the detection component detecting a third sequence of third electromagnetic signals.
In the embodiment of the application, the electronic device comprises a first main body and a second main body, wherein the two main bodies are hinged, so that the first main body and the second main body can be folded or unfolded, and a sound production assembly and a detection assembly are arranged on the first main body and the second main body. Specifically, the detecting component sets up with the sound production subassembly relatively, and then when first main part and second main part are folded, detecting component and sound production subassembly are close to each other, and when first main part and second main part expand, detecting component and sound production subassembly keep away from each other.
And the sounding subassembly has stable magnetic field, therefore, when first main part and second main part are folded or are expanded, the detection component can detect the change in magnetic field to, after the detection component detects the change in magnetic field, generate the signal, the sounding subassembly responds to the signal, produces the electromagnetic signal of predetermined sequence, and, owing to the production of predetermined sequence electromagnetic signal, the sounding subassembly can send out the sound that corresponds to predetermined sequence electromagnetic signal.
And the detection assembly also detects the electromagnetic signals of the preset sequence, and then determines whether the first main body and the second main body are in the unfolding state or the folding state according to the detection result of the detection assembly.
Because the sounding component emits the electromagnetic signals of the preset sequence, the electromagnetic signals can continuously change in a specific strength, and in nature, the magnetic field capable of forming specific strength changes is less. Specifically, the magnetic field in nature is basically a steady-state magnetic field, so that the external magnetic field generally only interferes with the detection of the magnetic field change by the detection assembly, and does not substantially interfere with the detection of the electromagnetic signal of the preset sequence.
Therefore, the electromagnetic signals of the preset sequence sent by the magnetic field change and the sounding component are detected through the detection component, the accuracy of judgment of the states of the first main body and the second main body can be improved, and further the switching of the screen component of the electronic device is more accurate.
Moreover, the sound generating assembly is a sound generating component of the electronic equipment, so that components such as a magnetic field generating piece or an electromagnetic signal generating piece do not need to be additionally arranged, the space is saved, and the occupancy rate of the internal space of the electronic equipment is improved.
It should be understood that in the embodiment of the present application, the input Unit 3604 may include a Graphics Processing Unit (GPU) 36041 and a microphone 36042, and the Graphics processor 36041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode.
The display unit 3606 may include a display panel 36061, and the display panel 36061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 3607 includes a touch panel 36071 and other input devices 36072. A touch panel 36071, also referred to as a touch screen. The touch panel 36071 may include two parts, a touch detection device and a touch controller 180. Other input devices 36072 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. The memory 3609 may be used for storing software programs as well as various data including, but not limited to, application programs and operating systems. Processor 3610 may integrate an application processor that handles primarily the operating system, user interface, and applications, etc. and a modem processor that handles primarily wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 3610.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the embodiment of the method for detecting a state of an electronic device, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the foregoing method embodiments, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
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. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
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 computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, 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 (15)

1. An electronic device, comprising:
a first body;
a second body hinged to the first body, the second body being switchable between an expanded state and a folded state with respect to the first body;
the sounding assembly is arranged on the first main body and/or the second main body and is used for generating electromagnetic signals of a preset sequence according to signals;
the detection component is arranged on the first main body and/or the second main body, and is opposite to the sound production component under the condition that the first main body is in a folded state relative to the second main body; the detection component is configured to detect a change in a magnetic field and generate the signal according to the change in the magnetic field, and the detection component is configured to detect the electromagnetic signal of the preset sequence to determine a state of the first body and the second body.
2. The electronic device of claim 1, further comprising:
the controller is arranged in the first main body and/or the second main body, the controller is electrically connected with the sounding assembly and the detection assembly, the controller receives the signal generated by detection of the detection assembly, controls the sounding assembly to generate the electromagnetic signals of the preset sequence according to the signal, and determines the state of the first main body and the state of the second main body according to the detection result of the detection assembly on the electromagnetic signals of the preset sequence.
3. The electronic device of claim 2, further comprising:
the screen assembly is arranged on the first main body and the second main body and electrically connected with the controller, and the controller responds to the detection result of the electromagnetic signals of the preset sequence by the detection assembly and controls the screen assembly to display a prompt interface.
4. The electronic device of any of claims 1-3, wherein the sound emitting assembly comprises:
a magnetic member, wherein a distance between the magnetic member and the detection assembly changes during switching between the unfolded state and the folded state of the first body and the second body;
and the sounding module is used for generating the electromagnetic signals of the preset sequence according to the signals.
5. A method for detecting a state of an electronic device, comprising:
controlling the sounding component to send out electromagnetic signals of a preset sequence in response to a signal generated by the detection component when the detection component detects the change of the magnetic field;
and determining the states of the first body and the second body according to the detection result of the detection assembly on the electromagnetic signals of the preset sequence.
6. The status detection method of an electronic device according to claim 5,
the signal that the detection component detects the change of magnetic field and generates is responded to, and control sound production subassembly sends the electromagnetic signal of preset sequence, specifically includes:
controlling the sound generation assembly to emit a first sequence of first electromagnetic signals in response to the detection assembly detecting a change in the magnetic field that is not below a first threshold;
the determining the states of the first body and the second body according to the detection result of the detection assembly on the electromagnetic signals of the preset sequence specifically includes:
determining that the first and second bodies are in a folded state based on the detection assembly detecting the first sequence of first electromagnetic signals;
determining that the first and second bodies are not in a folded state based on the detection assembly not detecting the first sequence of first electromagnetic signals.
7. The state detection method of an electronic device according to claim 6, wherein after determining that the first body and the second body are not in the folded state when the first sequence of the first electromagnetic signal is not detected based on the detection component, further comprising:
and controlling the sounding component to emit prompt tones and/or controlling the screen component to display a prompt interface so as to prompt the electronic equipment to be positioned in the magnetic field.
8. The status detection method of an electronic device according to claim 5,
the signal that the detection component detects the change of magnetic field and generates is responded to, and control sound production subassembly sends the electromagnetic signal of preset sequence, specifically includes:
controlling the sound generating assembly to emit a second sequence of second electromagnetic signals in response to the detecting assembly detecting a change in the magnetic field that is not above a second threshold;
the determining the states of the first body and the second body according to the detection result of the detection assembly on the electromagnetic signals of the preset sequence specifically includes:
determining that the first and second bodies are in a deployed state based on the detection component not detecting the second sequence of second electromagnetic signals;
determining that the first and second bodies are not in the deployed state based on the detection component detecting the second sequence of second electromagnetic signals.
9. The status detection method of an electronic device according to claim 8,
after said determining that the first and second bodies are not in the deployed state based on the detection component detecting the second sequence of second electromagnetic signals, further comprising:
and controlling the sounding component to emit prompt tones and/or controlling the screen component to display a prompt interface so as to prompt the electronic equipment to be positioned in the magnetic field.
10. The method for detecting the status of an electronic device according to claim 5, further comprising:
responding to the system startup, controlling the sounding component to send out a third sequence of third electromagnetic signals;
determining an initial state of the first and second bodies from the detection of the third sequence of third electromagnetic signals and magnetic fields by the detection assembly.
11. The method for detecting the state of the electronic device according to claim 10, wherein the determining the initial state of the first body and the second body according to the detection result of the detection component on the third sequence of the third electromagnetic signal and the magnetic field specifically comprises:
determining that the first and second bodies are in a folded state in response to the detection assembly detecting a magnetic field not below a third threshold and the detection assembly detecting a third electromagnetic signal of the third sequence;
determining that the first and second bodies are in the deployed state in response to the detection component detecting that the magnetic field is not above a fourth threshold and the detection component does not detect the third sequence of third electromagnetic signals.
12. The method for detecting the state of the electronic device according to claim 11, wherein the determining the initial state of the first body and the second body according to the detection result of the detection component on the third sequence of the third electromagnetic signal and the magnetic field specifically comprises:
in response to the detection assembly detecting a magnetic field not below a third threshold and the detection assembly not detecting a third electromagnetic signal of the third sequence, issuing an exception prompt;
issuing the exception prompt in response to the detection component detecting that the magnetic field is not above a fourth threshold and the detection component detecting a third electromagnetic signal of the third sequence.
13. A state detection apparatus of an electronic device, comprising:
the control module is used for responding to a signal generated by the detection component when the detection component detects the change of the magnetic field and controlling the sounding component to send out an electromagnetic signal of a preset sequence;
and the determining module is used for determining the states of the first body and the second body according to the detection result of the detection assembly on the electromagnetic signals of the preset sequence.
14. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the method of any one of claims 5 to 12.
15. A readable storage medium, on which a program or instructions are stored, which when executed by a processor, carry out the steps of the method according to any one of claims 5 to 12.
CN202111082150.8A 2021-09-15 2021-09-15 Electronic equipment, state detection method and device thereof and readable storage medium Pending CN113778772A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111082150.8A CN113778772A (en) 2021-09-15 2021-09-15 Electronic equipment, state detection method and device thereof and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111082150.8A CN113778772A (en) 2021-09-15 2021-09-15 Electronic equipment, state detection method and device thereof and readable storage medium

Publications (1)

Publication Number Publication Date
CN113778772A true CN113778772A (en) 2021-12-10

Family

ID=78844113

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111082150.8A Pending CN113778772A (en) 2021-09-15 2021-09-15 Electronic equipment, state detection method and device thereof and readable storage medium

Country Status (1)

Country Link
CN (1) CN113778772A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116033056A (en) * 2022-08-10 2023-04-28 荣耀终端有限公司 Folding angle detection method and device for folding screen and readable storage medium
CN117459619A (en) * 2023-12-26 2024-01-26 荣耀终端有限公司 Folding state detection method and foldable electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078178A (en) * 2018-10-19 2020-04-28 青岛海信移动通信技术股份有限公司 Method, device and equipment for determining bending angle and storage medium
CN111103965A (en) * 2018-10-26 2020-05-05 Oppo广东移动通信有限公司 Electronic device, screen control method, control device, and storage medium
CN111314510A (en) * 2020-01-19 2020-06-19 维沃移动通信有限公司 Folding screen assembly, electronic equipment and folding screen angle detection method
CN112445289A (en) * 2020-11-18 2021-03-05 维沃移动通信有限公司 Foldable electronic device and folding angle detection method
CN112783272A (en) * 2021-01-27 2021-05-11 维沃移动通信有限公司 Detection method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078178A (en) * 2018-10-19 2020-04-28 青岛海信移动通信技术股份有限公司 Method, device and equipment for determining bending angle and storage medium
CN111103965A (en) * 2018-10-26 2020-05-05 Oppo广东移动通信有限公司 Electronic device, screen control method, control device, and storage medium
CN111314510A (en) * 2020-01-19 2020-06-19 维沃移动通信有限公司 Folding screen assembly, electronic equipment and folding screen angle detection method
CN112445289A (en) * 2020-11-18 2021-03-05 维沃移动通信有限公司 Foldable electronic device and folding angle detection method
CN112783272A (en) * 2021-01-27 2021-05-11 维沃移动通信有限公司 Detection method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116033056A (en) * 2022-08-10 2023-04-28 荣耀终端有限公司 Folding angle detection method and device for folding screen and readable storage medium
CN116033056B (en) * 2022-08-10 2023-10-20 荣耀终端有限公司 Folding angle detection method and device for folding screen and readable storage medium
CN117459619A (en) * 2023-12-26 2024-01-26 荣耀终端有限公司 Folding state detection method and foldable electronic equipment
CN117459619B (en) * 2023-12-26 2024-04-19 荣耀终端有限公司 Folding state detection method and foldable electronic equipment

Similar Documents

Publication Publication Date Title
US11659271B2 (en) Electronic device to control screen property based on distance between pen input device and electronic device and method of controlling same
US10862595B2 (en) Method for processing radio frequency interference, and electronic device
CN113778772A (en) Electronic equipment, state detection method and device thereof and readable storage medium
CN112865612B (en) Electronic device, control method and device thereof, and readable storage medium
KR102564469B1 (en) Method and apparatus for protecting a battery
EP2945398B1 (en) Motion sensor
US20100100202A1 (en) Method and Related Apparatus for Controlling Operating Mode of a Portable Electronic Device
EP2953003A1 (en) Touch screen terminal and working method thereof
CN104641720A (en) Communication device and communication method
CN108900728B (en) Reminding method, reminding device, electronic device and computer readable medium
KR20160112143A (en) Electronic device and method for updating screen of display panel thereof
KR20200086536A (en) Electronic device and method for identifying input
KR20220145383A (en) Circuit control device and method
US9866753B2 (en) Electronic device having camera and method for operating the same
CN110084009B (en) Digital unlocking method and device, storage medium and mobile terminal
KR20180071775A (en) Power supply device and mobile terminal including the same
CN111327744B (en) Function control assembly and electronic equipment
CN110267142B (en) Mobile terminal and control method
CN106775308B (en) proximity sensor switching method and device and terminal
EP3771969A1 (en) Gesture recognition system and method for a digital-pen-like device and corresponding digital-pen-like device
CN113843814A (en) Control system, method, device and storage medium for mechanical arm equipment
WO2019161690A1 (en) Intelligent interaction device and control method therefor
KR20190137442A (en) Electro-magnetic sensor and mobile device including the same
KR20200015973A (en) Apparatus for unlocking electronic device by using stylus pen and method thereof
CN115188143B (en) Control method and device of intelligent interaction equipment, intelligent interaction equipment and medium

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