CN111370026A - Equipment state detection method and electronic equipment - Google Patents

Equipment state detection method and electronic equipment Download PDF

Info

Publication number
CN111370026A
CN111370026A CN202010118028.0A CN202010118028A CN111370026A CN 111370026 A CN111370026 A CN 111370026A CN 202010118028 A CN202010118028 A CN 202010118028A CN 111370026 A CN111370026 A CN 111370026A
Authority
CN
China
Prior art keywords
sound
signal
sound signal
state
determining
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
CN202010118028.0A
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 CN202010118028.0A priority Critical patent/CN111370026A/en
Publication of CN111370026A publication Critical patent/CN111370026A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/48Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use
    • G10L25/51Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use for comparison or discrimination
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/0206Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings
    • H04M1/0208Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings characterized by the relative motions of the body parts
    • H04M1/0235Slidable or telescopic telephones, i.e. with a relative translation movement of the body parts; Telephones using a combination of translation and other relative motions of the body parts

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses an equipment state detection method and electronic equipment, wherein the electronic equipment comprises a first body and a second body, the second body is connected with the first body in a sliding manner, and a microphone is arranged on the second body, the method comprises the following steps: acquiring a sound signal collected by a microphone; determining the opening and closing state of the second body according to the sound signal; the sound signal comprises a first sound signal generated when the second body slides relative to the first body or a reflection signal of a sound wave signal emitted by a sound outlet of the receiver, and the receiver is arranged on the second body. Therefore, the opening and closing state of the second body in the electronic equipment can be determined through the sound signals collected by the microphone, detection through the Hall transmission switch and the magnet is not needed, the manufacturing cost of the electronic equipment can be reduced, and the device in the electronic equipment cannot interfere with the sound signals collected by the microphone, so that the detection accuracy of the opening and closing state of the second body can be improved.

Description

Equipment state detection method and electronic equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a device status detection method and an electronic device.
Background
In the existing electronic device, a sliding structure capable of sliding mechanically may be provided on the basis of the host computer to increase the functions of the electronic device. For example, a mechanical slider may be provided on the basis of a host to implement a full-screen of the electronic device.
In general, when an electronic device including a sliding structure is used, it is necessary to detect a state of the sliding structure to control the electronic device according to the state of the sliding structure. Specifically, a hall switch may be provided in the host of the electronic device, a magnet may be provided in the sliding structure, and when the user slides the sliding structure, the state of the sliding structure may be detected according to the magnetic field intensity between the hall switch and the magnet.
However, the electronic device usually includes other magnetic devices, such as a speaker, which may interfere with the magnetic field between the hall switch and the magnet, thereby resulting in a low detection accuracy of the state of the sliding structure, and the magnet in the sliding structure may also interfere with the magnetic field of the electronic compass in the electronic device, which increases the stacking difficulty of the electronic device and also increases the cost.
Disclosure of Invention
The embodiment of the invention provides an equipment state detection method and electronic equipment, which can solve the problem that the accuracy of a detection result is low when the state of a sliding structure in the electronic equipment is detected.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, a device status detection method is provided, which is applied to an electronic device, where the electronic device includes a first body and a second body, the second body is connected to the first body in a sliding manner, and a microphone is disposed on the second body, and the method includes:
acquiring a sound signal collected by the microphone;
determining the opening and closing state of the second body according to the sound signal;
the sound signal comprises a first sound signal generated when the second body slides relative to the first body or a reflection signal of a sound wave signal emitted by a sound outlet of the telephone receiver, and the telephone receiver is arranged on the second body.
In a second aspect, an electronic device is provided, where the electronic device includes a first body and a second body, the second body is slidably connected to the first body, and a microphone is disposed on the second body, and the electronic device further includes:
the acquisition module is used for acquiring the sound signals collected by the microphone;
the determining module is used for determining the opening and closing state of the second body according to the sound signal;
the sound signal comprises a first sound signal generated when the second body slides relative to the first body or a reflection signal of a sound wave signal emitted by a sound outlet of the telephone receiver, and the telephone receiver is arranged on the second body.
In a third aspect, an electronic device is provided, comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the method according to the first aspect.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the method according to the first aspect.
In the embodiment of the present invention, in a case that the electronic device includes the first body and the second body that are slidably connected, when a user uses the electronic device, the microphone may collect a sound signal, and after the electronic device acquires the sound signal collected by the microphone, the electronic device may determine the open-close state of the second body according to the sound signal. In this way, the opening and closing state of the second body in the electronic equipment can be determined through the sound signals collected by the microphone, and the device in the electronic equipment cannot interfere with the sound signals collected by the microphone, so that the detection accuracy of the opening and closing state of the second body can be improved.
In addition, the opening and closing state of the second body in the electronic equipment is not required to be determined through the magnetic field intensity, so that a Hall switch and a magnet which are used for detecting the opening and closing state of the second body in the electronic equipment can be omitted, the stacking space of the electronic equipment can be saved, the stacking difficulty is reduced, and the manufacturing cost of the electronic equipment can be reduced.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a schematic flow chart of a device status detection method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an electronic device in different sliding states according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 4 is a hardware schematic diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The technical solutions provided by the embodiments of the present invention are described in detail below with reference to the accompanying drawings.
Fig. 1 is a schematic flow chart of a device status detection method according to an embodiment of the present invention. The method is applied to electronic equipment, the electronic equipment comprises a first body and a second body, the second body is connected with the first body in a sliding mode, and a microphone is arranged on the second body. The method is as follows.
S101: and acquiring the sound signal collected by the microphone.
In S101, a microphone on the second body may collect a sound signal, and when the open/close state of the second body is detected, the sound signal collected by the microphone may be acquired. The second body may be a sliding cover, the first body may be a host connected with the sliding cover in a sliding manner, the sliding cover may slide relative to the host to implement a full screen of the electronic device, and in addition, the second body may also be another structure connected with the first body in a sliding manner and capable of sliding relative to the first body to implement a certain function, which is not illustrated here one by one, and the open/close state of the second body may at least include the following four states: a slide-open state, a closed state, a state in which a slide-open operation is performed, and a state in which a close operation is performed.
In one implementation, the sound signal collected by the microphone may include a reflected signal of a sound wave signal emitted from a sound outlet of the receiver, where the receiver is disposed on the second body, a shielding member, such as a stainless steel mesh, may be disposed on the first body of the electronic device, and the shielding member on the first body shields the sound outlet of the receiver when the second body is in the closed state.
In the case where the electronic apparatus includes the above-described receiver and the shielding member, in order to detect the open-closed state of the second body, before acquiring the sound signal acquired by the microphone, a sound wave signal may be emitted through the sound outlet of the receiver, and a reflected signal of the sound wave signal may be acquired by the microphone, that is, the sound signal acquired in S101 includes a reflected signal of the sound wave signal emitted by the sound outlet of the receiver, and the reflected signal may be used to detect the open-closed state of the second body. Alternatively, the acoustic wave signal may be a constant energy acoustic wave signal.
Specifically, under the condition that the sound outlet of the receiver can emit a sound wave signal with constant energy, if the second body is in a closed state, the shielding component will shield the sound outlet of the receiver, at this time, the sound wave signal emitted from the sound outlet of the receiver will also be shielded by the shielding component, the energy of the reflected signal of the sound wave signal passing through the shielding component is obviously weakened, conversely, if the second body is in a sliding state, the shielding component will not shield the sound outlet of the receiver, at this time, the sound wave signal emitted from the sound outlet of the receiver will not be shielded by the shielding component, and the energy of the reflected signal of the sound wave signal will not be obviously weakened.
That is, based on the principle that the energy of the reflected signal collected by the microphone when the sound outlet of the receiver is blocked by the blocking member is weaker than the energy of the reflected signal collected when the sound outlet of the receiver is not blocked by the blocking member, the state of the second body can be detected by acquiring the sound signal collected by the microphone.
For convenience of understanding, the first body is taken as a host, and the second body is taken as a sliding cover for example. Please refer to fig. 2.
In fig. 2, the electronic device may include a host 21, a sliding cover 22, and a middle frame 23 (shown by thickening the frame of the host 21 in fig. 2) for fixing the host 21, and the sliding cover 22 may slide relative to the host 21. Wherein a microphone 24 and a receiver 25 may be arranged side by side at the edge above the slide cover 22, and the receiver 25 may include a sound outlet 26.
The host 21 may be provided with a screen 27 of the electronic device, and a shielding member 28, such as a stainless steel net or the like, is provided at an edge above the screen 27. The position of the shielding member 28 in the host 21 corresponds to the position of the receiver 25 in the slide cover 22, and when the slide cover 22 is in the closed state, the sound outlet 26 of the receiver 25 is shielded by the shielding member 28, and when the slide cover 22 is in the sliding state, the sound outlet 26 of the receiver 25 is not shielded by the shielding member 28.
In fig. 2, the sound outlet 26 of the receiver 25 may emit a sound wave signal with constant energy, where the energy of the sound wave signal may be represented as a, where the energy of the reflected signal of the sound wave signal collected by the microphone 24 may be represented as a1 in a case where the sound outlet 26 of the receiver 25 is blocked by the blocking member 28, that is, in a case where the slide cover 22 is in the closed state, and where the energy of the reflected signal of the sound wave signal collected by the microphone 24 is not blocked by the blocking member 28, that is, in a case where the slide cover 22 is in the slide-open state, may be represented as a 2. Since the shielding member 28 also shields the sound wave signal emitted from the sound outlet 26 when shielding the sound outlet 26 of the receiver 25, the energy of the reflected signal is reduced, and therefore a2 is larger than a 1.
It should be noted that, since the microphone 24 collects the reflected signal of the sound wave signal, in the case that the sound outlet 26 of the receiver 25 is not blocked by the blocking component 28, the energy of the reflected signal collected by the microphone 24 is slightly smaller than the energy of the sound wave signal, that is, a is slightly larger than a 2.
In another implementation manner, the sound signal collected by the microphone may be a first sound signal generated when the second body slides relative to the first body.
Specifically, when the second body slides relative to the first body, in the case that the second body is in different states (for example, the second body is performed with a slide-open operation, or is performed with a close operation, etc.), the position of mechanical impact of the second body is different, and the signal characteristics such as amplitude and frequency of the generated first sound signal are also different, that is, there is a correspondence between the open-close state of the second body and the first sound signal generated when the second body slides. In this way, in order to detect the open-close state of the second body, the microphone on the second body may collect the first sound signal generated when the second body slides relative to the first body, that is, the sound signal acquired in S101 includes the first sound signal generated when the second body slides relative to the first body.
Alternatively, in order to facilitate the collection of the first sound signal emitted when the second body slides relative to the first body, the microphone may be disposed near a sliding groove along which the second body slides when sliding relative to the first body.
S102: and determining the opening and closing state of the second body according to the sound signal.
As is apparent from the description in S101, the sound signal may include a first sound signal generated when the second body slides with respect to the first body or a reflected signal of a sound wave signal emitted from the sound outlet of the receiver, and therefore, when the open/close state of the second body is determined from the sound signal, a description may be given for different cases.
In one implementation, in the case where the sound signal comprises a reflection signal of a sound wave signal emitted by the sound outlet of the receiver, the state of the second body may be determined from the reflection signal, in particular:
first, the reflected signal may be converted into an electrical signal.
Since the reflected signal is an acoustic signal, it is necessary to convert the reflected signal into an electrical signal before determining the state of the second body from the reflected signal.
Secondly, the signal characteristics of the electrical signal, which may include amplitude, frequency, energy, and the like of the electrical signal, may be analyzed to determine whether the electrical signal satisfies a preset condition.
In this embodiment, the preset condition may include a first preset condition and a second preset condition, where the first preset condition may be that a characteristic value corresponding to a signal characteristic of the electrical signal is greater than or equal to a preset threshold, and the second preset condition may be that a characteristic value corresponding to a signal characteristic of the electrical signal is smaller than the preset threshold. The preset threshold value can be determined in advance according to the characteristic value of the signal characteristic of the collected electric signal when the microphone is in the sliding-open state and the closed state of the second body.
Specifically, when the second body is in a sliding-open state, the microphone may collect the reflected signal for multiple times, obtain multiple electrical signals according to the collected reflected signal, and determine a characteristic value X according to a characteristic value of a signal characteristic of the multiple electrical signals, where the characteristic value X may be an average value or a root-mean-square value corresponding to the characteristic value of the signal characteristic of the multiple electrical signals. Likewise, a characteristic value Y can also be determined in the same way when the second body is in the closed state, wherein Y is smaller than X.
After the characteristic values X and Y are obtained, X may be used as a preset threshold, or a certain value between Y and X may be determined as a preset threshold.
Finally, if the signal characteristic of the electrical signal satisfies the first preset condition, it can be stated that the reflected signal corresponding to the electrical signal is a reflected signal collected by the microphone when the second body is in the slide-open state, and at this time, it can be determined that the state of the second body is in the slide-open state.
If the signal characteristic of the electrical signal satisfies the second preset condition, it can be stated that the reflected signal corresponding to the electrical signal is a reflected signal collected by the microphone when the second body is in the closed state, and at this time, it can be determined that the state of the second body is in the closed state.
When the second body is determined to be in the slide-open state, the slide-open state may be a completely slide-open state, or may be a semi-slide-open non-closed state, that is, the slide-open state includes a completely slide-open state, and also includes a state that is not closed but not completely slide-open.
In another implementation, in a case where the sound signal includes a first sound signal generated when the second body slides with respect to the first body, the state of the second body may be determined according to the first sound signal generated when the second body slides, specifically:
first, the first sound signal generated when the second body slides may be matched with a preset sound signal.
In this embodiment, the preset sound signal may include a first preset sound signal and a second preset sound signal, wherein the first preset sound signal may be a sound signal generated by the second body when the second body is performed the slide-open operation, and the second preset sound signal may be a sound signal generated by the second body when the second body is performed the close operation.
Alternatively, in order to facilitate matching of the first sound signal generated when the second body slides with the first preset sound signal, when the second body is slid for a plurality of times in advance, the plurality of sound signals collected by the microphone may be stored in the first database (i.e., the first preset sound signal is collected through a large number of experiments), so that when the first sound signal generated when the second body slides is matched with the first preset sound signal, the first sound signal may be matched with the plurality of sound signals in the first database.
Similarly, in order to facilitate matching of the first sound signal generated when the second body slides with the second preset sound signal, when the second body is closed multiple times, the plurality of sound signals collected by the microphone may be stored in the second database in advance (i.e., the second preset sound signal is collected through a large number of experiments), so that when the first sound signal generated when the second body slides is matched with the second preset sound signal, the matching may be performed with the plurality of sound signals in the second database.
Then, if the first sound signal collected by the microphone matches the first preset sound signal, it can be stated that the first sound signal is a sound signal collected by the microphone when the second body is slid, and at this time, it can be determined that the state of the second body is in the state of being slid.
If the first sound signal collected by the microphone matches the second preset sound signal, it can be stated that the first sound signal is a sound signal collected by the microphone when the second body is closed, and at this time, it can be determined that the state of the second body is in the state where the closing operation is performed.
Alternatively, in order to make the difference of the sound signals generated when the second body is subjected to the slide-open operation and the close operation more obvious, that is, in order to make the difference of the above-described first preset sound signal and second preset sound signal more obvious, the material of the sliding groove of the second body, the material of the portion that the second body strikes when sliding, the position that the second body strikes when sliding, the sound cavity of the portion that the second body strikes when sliding, and the like may be changed. Thus, by increasing the difference between the first preset sound signal and the second preset sound signal, the matching error when matching the first sound signal actually collected with the preset sound signal can be reduced.
Optionally, after the opening and closing state of the second body is determined, a target control operation corresponding to the opening and closing state of the second body may be executed according to the opening and closing state of the second body.
For example, after determining that the open-close state of the second body is the slide-open state, the electronic device may control to turn on a self-timer mode in the camera application, and after determining that the open-close state of the second body is the close state, the electronic device may control to turn off the self-timer mode in the camera application; alternatively, the electronic device may perform a screen-on operation after determining that the state of the second body is the state in which the slide-off operation is performed, and may perform a screen-off operation after determining that the state of the second body is the state in which the close operation is performed.
In the embodiment of the present invention, in a case that the electronic device includes the first body and the second body that are slidably connected, when a user uses the electronic device, the microphone may collect a sound signal, and after the electronic device acquires the sound signal collected by the microphone, the electronic device may determine the open-close state of the second body according to the sound signal. In this way, the opening and closing state of the second body in the electronic equipment can be determined through the sound signals collected by the microphone, and the device in the electronic equipment cannot interfere with the sound signals collected by the microphone, so that the detection accuracy of the opening and closing state of the second body can be improved.
In addition, the opening and closing state of the second body in the electronic equipment is not required to be determined through the magnetic field intensity, so that a Hall switch and a magnet which are used for detecting the opening and closing state of the second body in the electronic equipment can be omitted, the stacking space of the electronic equipment can be saved, the stacking difficulty is reduced, and the manufacturing cost of the electronic equipment can be reduced.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. Electronic equipment includes first body and second body, the second body with first body sliding connection, just be provided with the microphone on the second body, electronic equipment still includes: an obtaining module 31 and a determining module 32, wherein:
an obtaining module 31, configured to obtain a sound signal collected by the microphone;
a determining module 32, configured to determine an opening/closing state of the second body according to the sound signal;
the sound signal comprises a first sound signal generated when the second body slides relative to the first body or a reflection signal of a sound wave signal emitted by a sound outlet of the telephone receiver, and the telephone receiver is arranged on the second body.
Optionally, in a case that the sound signal includes a reflected signal of a sound wave signal emitted from a sound outlet of the receiver, a shielding member is disposed on the first body, and the shielding member shields the sound outlet of the receiver when the second body is in a closed state;
the electronic device further includes:
and the transmitting module 33 is configured to send out a sound wave signal through the sound outlet of the receiver.
Optionally, the determining module 32 is specifically configured to:
converting the reflected signal into an electrical signal;
determining that the state of the second body is in a slide-open state under the condition that the signal characteristics of the electric signal meet a first preset condition;
and determining that the state of the second body is in a closed state under the condition that the signal characteristics of the electric signal meet a second preset condition.
Optionally, in the case that the sound signal includes a first sound signal generated when the second body slides with respect to the first body,
the determining module 32 is specifically configured to:
determining that the second body is in a state of being subjected to a slide-off operation under the condition that the first sound signal matches a first preset sound signal;
determining that the second body is in a state of being subjected to a closing operation when the first sound signal matches a second preset sound signal.
Optionally, the electronic device further comprises: a control module 34, wherein:
the control module 34 is configured to execute a target control operation corresponding to the open/close state of the second body.
The electronic device provided by the embodiment of the present invention can implement each process implemented by the electronic device in the above method embodiments, and is not described herein again to avoid repetition. In the embodiment of the present invention, in a case that the electronic device includes the first body and the second body that are slidably connected, when a user uses the electronic device, the microphone may collect a sound signal, and after the electronic device acquires the sound signal collected by the microphone, the electronic device may determine the open-close state of the second body according to the sound signal. In this way, the opening and closing state of the second body in the electronic equipment can be determined through the sound signals collected by the microphone, and the device in the electronic equipment cannot interfere with the sound signals collected by the microphone, so that the detection accuracy of the opening and closing state of the second body can be improved.
In addition, the opening and closing state of the second body in the electronic equipment is not required to be determined through the magnetic field intensity, so that a Hall switch and a magnet which are used for detecting the opening and closing state of the second body in the electronic equipment can be omitted, the stacking space of the electronic equipment can be saved, the stacking difficulty is reduced, and the manufacturing cost of the electronic equipment can be reduced.
Figure 4 is a hardware schematic diagram of an electronic device provided in an embodiment of the invention,
the electronic device 400 includes, but is not limited to: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor 410, and power supply 411. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 4 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 410 is configured to acquire a sound signal acquired by a microphone; and determining the opening and closing state of the second body according to the sound signal.
In this way, the opening and closing state of the second body in the electronic equipment can be determined through the sound signals collected by the microphone, and the device in the electronic equipment cannot interfere with the sound signals collected by the microphone, so that the detection accuracy of the opening and closing state of the second body can be improved.
In addition, the opening and closing state of the second body in the electronic equipment is not required to be determined through the magnetic field intensity, so that a Hall switch and a magnet which are used for detecting the opening and closing state of the second body in the electronic equipment can be omitted, the stacking space of the electronic equipment can be saved, the stacking difficulty is reduced, and the manufacturing cost of the electronic equipment can be reduced.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 410; in addition, the uplink data is transmitted to the base station. Typically, radio unit 401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio unit 401 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 402, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 403 may convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output as sound. Also, the audio output unit 403 may also provide audio output related to a specific function performed by the electronic apparatus 400 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
The input unit 404 is used to receive audio or video signals. The input Unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the Graphics processor 4041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 406. The image frames processed by the graphic processor 4041 may be stored in the memory 409 (or other storage medium) or transmitted via the radio frequency unit 401 or the network module 402. The microphone 4042 may receive sound, and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 401 in case of the phone call mode.
The electronic device 400 also includes at least one sensor 405, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 4061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 4061 and/or the backlight when the electronic apparatus 400 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 405 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 406 is used to display information input by the user or information provided to the user. The Display unit 406 may include a Display panel 4061, and the Display panel 4061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 407 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072. Touch panel 4071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 4071 using a finger, a stylus, or any suitable object or attachment). The touch panel 4071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 410, receives a command from the processor 410, and executes the command. In addition, the touch panel 4071 can be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 4071, the user input unit 407 may include other input devices 4072. Specifically, the other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 4071 can be overlaid on the display panel 4061, and when the touch panel 4071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 410 to determine the type of the touch event, and then the processor 410 provides a corresponding visual output on the display panel 4061 according to the type of the touch event. Although in fig. 4, the touch panel 4071 and the display panel 4061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 4071 and the display panel 4061 may be integrated to implement the input and output functions of the electronic device, and the implementation is not limited herein.
The interface unit 408 is an interface for connecting an external device to the electronic apparatus 400. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 408 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 400 or may be used to transmit data between the electronic apparatus 400 and an external device.
The memory 409 may be used to store software programs as well as various data. The memory 409 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 409 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 410 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 409 and calling data stored in the memory 409, thereby performing overall monitoring of the electronic device. Processor 410 may include one or more processing units; preferably, the processor 410 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
The electronic device 400 may further include a power supply 411 (e.g., a battery) for supplying power to various components, and preferably, the power supply 411 may be logically connected to the processor 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 400 includes some functional modules that are not shown, and are not described in detail herein.
Optionally, an embodiment of the present invention further provides an electronic device, which includes a processor 410, a memory 409, and a computer program that is stored in the memory 409 and can be run on the processor 410, and when being executed by the processor 410, the computer program implements each process of the device status detection method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned device status detection method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. The device state detection method is applied to electronic devices, and is characterized in that the electronic devices comprise a first body and a second body, the second body is connected with the first body in a sliding mode, a microphone is arranged on the second body, and the method comprises the following steps:
acquiring a sound signal collected by the microphone;
determining the opening and closing state of the second body according to the sound signal;
the sound signal comprises a first sound signal generated when the second body slides relative to the first body or a reflection signal of a sound wave signal emitted by a sound outlet of the telephone receiver, and the telephone receiver is arranged on the second body.
2. The method of claim 1, wherein in case the sound signal comprises a reflected signal of a sound wave signal emitted by a sound outlet of a receiver, a shielding member is provided on the first body, the shielding member shielding the sound outlet of the receiver when the second body is in a closed state;
before acquiring the sound signal collected by the microphone, the method further comprises:
and sending out sound wave signals through the sound outlet of the telephone receiver.
3. The method of claim 2, wherein determining the open-closed state of the second body according to the sound signal comprises:
converting the reflected signal into an electrical signal;
determining that the second body is in a sliding state under the condition that the signal characteristics of the electric signal meet a first preset condition;
and under the condition that the signal characteristics of the electric signal meet a second preset condition, determining that the second body is in a closed state.
4. The method of claim 1, wherein in the case that the sound signal includes a first sound signal generated when the second body slides relative to the first body, the determining the open/close state of the second body according to the first sound signal includes:
determining that the second body is in a state of being subjected to a slide-off operation under the condition that the first sound signal matches a first preset sound signal;
determining that the second body is in a state of being subjected to a closing operation when the first sound signal matches a second preset sound signal.
5. The method of claim 1, wherein after determining the open-closed state of the second body according to the sound signal, the method further comprises:
and executing target control operation corresponding to the opening and closing state of the second body.
6. The utility model provides an electronic equipment, its characterized in that, electronic equipment includes first body and second body, the second body with first body sliding connection, just be provided with the microphone on the second body, electronic equipment still includes:
the acquisition module is used for acquiring the sound signals collected by the microphone;
the determining module is used for determining the opening and closing state of the second body according to the sound signal;
the sound signal comprises a first sound signal generated when the second body slides relative to the first body or a reflection signal of a sound wave signal emitted by a sound outlet of the telephone receiver, and the telephone receiver is arranged on the second body.
7. The electronic device according to claim 6, wherein in a case where the sound signal includes a reflected signal of a sound wave signal emitted from a sound outlet of a receiver, a shielding member is provided on the first body, the shielding member shielding the sound outlet of the receiver when the second body is in a closed state;
the electronic device further includes:
and the transmitting module is used for transmitting sound wave signals through the sound outlet of the telephone receiver.
8. The electronic device of claim 7, wherein the determination module is specifically configured to:
converting the reflected signal into an electrical signal;
determining that the second body is in a sliding state under the condition that the signal characteristics of the electric signal meet a first preset condition;
and under the condition that the signal characteristics of the electric signal meet a second preset condition, determining that the second body is in a closed state.
9. The electronic device according to claim 6, wherein in a case where the sound signal includes a first sound signal generated when the second body slides with respect to the first body,
the determining module is specifically configured to:
determining that the second body is in a state of being subjected to a slide-off operation under the condition that the first sound signal matches a first preset sound signal;
determining that the second body is in a state of being subjected to a closing operation when the first sound signal matches a second preset sound signal.
10. The electronic device of claim 6, further comprising:
and the control module is used for executing target control operation corresponding to the opening and closing state of the second body.
CN202010118028.0A 2020-02-25 2020-02-25 Equipment state detection method and electronic equipment Pending CN111370026A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010118028.0A CN111370026A (en) 2020-02-25 2020-02-25 Equipment state detection method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010118028.0A CN111370026A (en) 2020-02-25 2020-02-25 Equipment state detection method and electronic equipment

Publications (1)

Publication Number Publication Date
CN111370026A true CN111370026A (en) 2020-07-03

Family

ID=71206560

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010118028.0A Pending CN111370026A (en) 2020-02-25 2020-02-25 Equipment state detection method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111370026A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113422848A (en) * 2021-06-10 2021-09-21 维沃移动通信有限公司 Electronic device, control method and control device of electronic device
CN115602192A (en) * 2022-04-06 2023-01-13 荣耀终端有限公司(Cn) Functional accessory detecting system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006211036A (en) * 2005-01-25 2006-08-10 Nec Access Technica Ltd Method for detecting closing or opening of folding mobile phone
CN102333266A (en) * 2010-06-01 2012-01-25 索尼公司 Audio-signal processing apparatus, method, program and microphone apparatus
CN102890557A (en) * 2011-07-19 2013-01-23 杜比实验室特许公司 Method and system for touch gesture detection in response to microphone output
CN108182418A (en) * 2017-12-30 2018-06-19 儒安科技有限公司 A kind of thump recognition methods based on multidimensional acoustic characteristic
CN110012143A (en) * 2019-04-28 2019-07-12 维沃移动通信有限公司 A kind of receiver control method and terminal
CN110072014A (en) * 2019-05-20 2019-07-30 维沃移动通信有限公司 A kind of screen folded state determines method and mobile terminal
CN110612237A (en) * 2018-03-28 2019-12-24 黄劲邦 Vehicle lock state detector, detection system and detection method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006211036A (en) * 2005-01-25 2006-08-10 Nec Access Technica Ltd Method for detecting closing or opening of folding mobile phone
CN102333266A (en) * 2010-06-01 2012-01-25 索尼公司 Audio-signal processing apparatus, method, program and microphone apparatus
CN102890557A (en) * 2011-07-19 2013-01-23 杜比实验室特许公司 Method and system for touch gesture detection in response to microphone output
CN108182418A (en) * 2017-12-30 2018-06-19 儒安科技有限公司 A kind of thump recognition methods based on multidimensional acoustic characteristic
CN110612237A (en) * 2018-03-28 2019-12-24 黄劲邦 Vehicle lock state detector, detection system and detection method
CN110012143A (en) * 2019-04-28 2019-07-12 维沃移动通信有限公司 A kind of receiver control method and terminal
CN110072014A (en) * 2019-05-20 2019-07-30 维沃移动通信有限公司 A kind of screen folded state determines method and mobile terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113422848A (en) * 2021-06-10 2021-09-21 维沃移动通信有限公司 Electronic device, control method and control device of electronic device
WO2022257884A1 (en) * 2021-06-10 2022-12-15 维沃移动通信有限公司 Electronic device, control method for electronic device, and control apparatus
CN115602192A (en) * 2022-04-06 2023-01-13 荣耀终端有限公司(Cn) Functional accessory detecting system
CN115602192B (en) * 2022-04-06 2023-11-14 荣耀终端有限公司 Functional accessory detection system

Similar Documents

Publication Publication Date Title
CN108459797B (en) Control method of folding screen and mobile terminal
CN109067418B (en) Antenna control method and mobile terminal
CN108347759B (en) Anti-interference method of flexible screen and mobile terminal
CN109768810B (en) Signal processing circuit, terminal equipment and signal processing method
CN109078319B (en) Game interface display method and terminal
CN109032445B (en) Screen display control method and terminal equipment
CN109828705B (en) Icon display method and terminal equipment
CN109739394B (en) SAR value processing method and mobile terminal
CN108196815B (en) Method for adjusting call sound and mobile terminal
CN109257505B (en) Screen control method and mobile terminal
CN109407948B (en) Interface display method and mobile terminal
CN110879737A (en) Notification message processing method and device, electronic equipment and storage medium
CN111443815A (en) Vibration reminding method and electronic equipment
CN111182118B (en) Volume adjusting method and electronic equipment
CN111246061B (en) Mobile terminal, method for detecting shooting mode and storage medium
CN109669656B (en) Information display method and terminal equipment
CN109443261B (en) Method for acquiring folding angle of folding screen mobile terminal and mobile terminal
CN108388459B (en) Message display processing method and mobile terminal
CN111370026A (en) Equipment state detection method and electronic equipment
CN111310165B (en) Account switching or registering method and electronic equipment
CN111328132B (en) Method for adjusting transmitting power and electronic equipment
CN110730013B (en) Method for improving transmission stray and mobile terminal
CN109327605B (en) Display control method and device and mobile terminal
CN108924319B (en) Proximity detection method and mobile terminal
CN109240531B (en) Touch data sampling compensation method and device, mobile terminal and storage 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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200703

WD01 Invention patent application deemed withdrawn after publication