WO2018201943A1 - 一种设备控制方法、装置及系统 - Google Patents

一种设备控制方法、装置及系统 Download PDF

Info

Publication number
WO2018201943A1
WO2018201943A1 PCT/CN2018/084403 CN2018084403W WO2018201943A1 WO 2018201943 A1 WO2018201943 A1 WO 2018201943A1 CN 2018084403 W CN2018084403 W CN 2018084403W WO 2018201943 A1 WO2018201943 A1 WO 2018201943A1
Authority
WO
WIPO (PCT)
Prior art keywords
bluetooth headset
electronic device
bluetooth
voice signal
connection
Prior art date
Application number
PCT/CN2018/084403
Other languages
English (en)
French (fr)
Inventor
陈兴龙
Original Assignee
青岛海尔股份有限公司
北京一数科技有限公司
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 青岛海尔股份有限公司, 北京一数科技有限公司 filed Critical 青岛海尔股份有限公司
Publication of WO2018201943A1 publication Critical patent/WO2018201943A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2201/00Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
    • H04R2201/10Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups

Definitions

  • the present invention relates to the field of electronic device technologies, and in particular, to a device control method, device, and system.
  • Bluetooth headset Since the advent of Bluetooth technology in the 1990s, it has developed rapidly in the last two decades. As a Bluetooth-based hands-free headset, Bluetooth headset has been widely used in recent years. It allows the user to exempt from the limitations of the wires and to make random calls or listen to music. With no hands-on and no wires, Bluetooth headsets are a great tool for improving productivity.
  • Electronic devices with Bluetooth functions such as mobile phones, computers, watches, etc., can establish a Bluetooth connection with a Bluetooth headset, thereby enabling functions such as answering a call.
  • some electronic devices have a connection buckle, which can be fixed on the electronic device.
  • the Bluetooth headset the user can remove it from the electronic device for use.
  • the Bluetooth headset is detachably fixed together with the electronic device.
  • the Bluetooth headset needs to be removed from the electronic device, and needs to be manually set.
  • functions such as making a call and playing music.
  • the button on the Bluetooth headset needs to be pressed, or the button on the electronic device is pressed to put the Bluetooth headset into a working state. Obviously, such operation is cumbersome, the user Poor experience.
  • An object of the embodiments of the present invention is to provide a device control method, device, and system, so as to reduce user complexity and improve user experience.
  • the specific technical solutions are as follows:
  • an embodiment of the present invention provides a device control method, which is applied to an electronic device having a Bluetooth function; a Bluetooth headset is detachably connected to the electronic device, the electronic device has a first connection position, and the Bluetooth headset Having a second connection location, the first connection location being electrically coupled to the second connection location when the Bluetooth headset is physically coupled to the electronic device; the method comprising: monitoring a level of the first connection location Whether a change occurs; if yes, a control command is sent to the Bluetooth headset according to the level values before and after the level change of the first connection position, so that the Bluetooth headset is in a working state and a non-working state. Switch between states.
  • the method further includes: obtaining an operation request; responding to the operation request, and obtaining a response content corresponding to the operation request; and sending the response content to the location when the Bluetooth headset is in an active state
  • the Bluetooth headset is described to enable the Bluetooth headset to receive and play the response content.
  • the operation request is: a voice interaction request; the step of responding to the operation request, and obtaining the response content corresponding to the operation request, comprising: responding to the voice interaction request, and obtaining the peer device sending a first voice signal, wherein the peer device is a device other than the electronic device and the Bluetooth headset; the sending the response content to the Bluetooth headset to enable the Bluetooth headset to receive and play
  • the step of responding to the content includes: transmitting the first voice signal to the Bluetooth headset to enable the Bluetooth headset to receive and play the first voice signal; the method further comprising: receiving the Bluetooth headset to send The second voice signal, wherein the second voice signal is a voice signal sent by a user obtained by the Bluetooth headset; and the second voice signal is sent to the peer device.
  • the method further includes: detecting a signal strength of the second voice signal, and determining whether the signal strength is lower than a preset strength; if the preset strength is lower than the preset strength, sending the Bluetooth headset to work Switching the state to a non-operating state control command to the Bluetooth headset to cause the Bluetooth headset to enter a non-working state, and playing the received first voice signal, acquiring a third voice signal, and transmitting the third voice Signaling to the peer device, where the third voice signal is a voice signal sent by a user obtained by the electronic device; if not lower than a preset strength, detecting a signal to noise ratio of the second voice signal, And determining whether the signal to noise ratio is lower than a preset signal to noise ratio; if the signal to noise ratio is lower than the preset signal to noise ratio, rejecting processing the second voice signal; and acquiring the third voice signal, sending the Three voice signals to the peer device.
  • the electronic device has a third connection location
  • the Bluetooth headset has a fourth connection location
  • the third connection location and the fourth connection location The method further includes: receiving, by the third connection location, a power value sent by the Bluetooth headset through the fourth connection location; determining whether the power value is less than a preset power value; if yes, Then charge the Bluetooth headset.
  • the method further includes: detecting whether the Bluetooth headset disconnects from the Bluetooth device by the electronic device; If yes, the time when the electronic device disconnects the Bluetooth connection from the Bluetooth headset is recorded; when the time reaches the preset time value, the Bluetooth headset loss information is output.
  • an embodiment of the present invention provides another device control method, which is applied to a Bluetooth headset; the Bluetooth headset is detachably connected to an electronic device having a Bluetooth function, and the electronic device has a first connection location, the Bluetooth The earphone has a second connection position, and the first connection location is electrically connected to the second connection location when the Bluetooth headset is physically connected to the electronic device; the method includes: receiving a control instruction sent by the electronic device The control command is: an instruction generated by the electronic device after detecting a level change of the first connection position, according to a level value before and after the level change; according to the control instruction, State switching between a working state and a non-working state.
  • an embodiment of the present invention provides a device control apparatus, which is applied to an electronic device having a Bluetooth function; a Bluetooth headset is detachably connected to the electronic device, the electronic device has a first connection position, and the Bluetooth headset Having a second connection location, the first connection location is electrically connected to the second connection location when the Bluetooth headset is physically connected to the electronic device; the device includes: a monitoring module, configured to monitor the first Whether the level of the connection position changes; the control module, configured to change the level before and after the level change of the first connection position in a case where the level of the first connection position changes The Bluetooth headset sends a control command to cause the Bluetooth headset to switch state between an active state and a non-working state.
  • an embodiment of the present invention provides another device control apparatus, which is applied to a Bluetooth headset;
  • the Bluetooth headset is detachably connected to an electronic device having a Bluetooth function, and the electronic device has a first connection location, the Bluetooth The earphone has a second connection position, and the first connection location is electrically connected to the second connection location when the Bluetooth headset is physically connected to the electronic device;
  • the device comprises: an instruction receiving module, configured to receive the a control command sent by the electronic device, wherein the control command is: an instruction generated by the electronic device after detecting a level change of the first connection position, according to a level value before and after the level change;
  • the state conversion module is configured to perform state switching between the working state and the non-working state according to the control instruction.
  • an embodiment of the present invention further provides a device control system, where the system includes an electronic device having a Bluetooth function and a Bluetooth headset, and the Bluetooth headset is detachably connected to the electronic device, and the electronic device has a a connection location, the Bluetooth headset has a second connection location, and when the Bluetooth headset is physically connected to the electronic device, the first connection location is electrically connected to the second connection location; wherein the electronic device, a method for monitoring whether a level of the first connection position changes; and a level value before and after the level change of the first connection position in a case where a level of the first connection position changes Sending a control command to the Bluetooth headset; the Bluetooth headset is configured to receive the control command, and perform state switching between a working state and a non-working state according to the control command.
  • a device control method, device and system are provided.
  • the Bluetooth headset is detachably connected to the electronic device, the electronic device has a first connection position, the Bluetooth headset has a second connection position, and the Bluetooth headset is physically connected to the electronic device.
  • the first connection position is electrically connected to the second connection position.
  • the electronic device monitors whether the level of the first connection position changes, and if so, sends a control command to the Bluetooth headset according to the level values before and after the level change of the first connection position, so that the Bluetooth headset is in working state and State switching between non-working states.
  • the switching of the working state of the Bluetooth headset does not require manual setting by the user, but is controlled by the electronic device according to the level values before and after the level change of the first connection position, thereby reducing the cumbersomeness of the user operation and improving the user.
  • the electronic device does not require manual setting by the user, but is controlled by the electronic device according to the level values before and after the level change of the first connection position, thereby reducing the cumbersomeness of the user operation and improving the user.
  • FIG. 1 is a flowchart of a first device control method according to an embodiment of the present invention
  • FIG. 2 is a flow chart of an operation request response method based on the embodiment shown in FIG. 1;
  • FIG. 3 is a flow chart of another operation request response method based on the embodiment shown in FIG. 2;
  • FIG. 4 is a flow chart of a method for charging a Bluetooth headset based on the embodiment shown in FIG. 1;
  • FIG. 5 is a flow chart of a method for outputting Bluetooth headset loss information based on the embodiment shown in FIG. 1;
  • FIG. 6 is a flowchart of a second device control method according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a first device control apparatus according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a second device control apparatus according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a device control system according to an embodiment of the present invention.
  • the device control method, device and system are provided in the following embodiments of the present invention.
  • the first device control method provided by the embodiment of the present invention can be applied to an electronic device (hereinafter referred to as an electronic device) having a Bluetooth function, for example, a mobile phone, a computer, a watch, and a projection having a Bluetooth function.
  • Equipment, bracelets, etc. are not specifically limited here.
  • the electronic device is detachably connected to the Bluetooth earphone, and the two can be detachably connected by means of a buckle or the like.
  • the electronic device has a first connection position, and the Bluetooth headset has a second connection position. When the Bluetooth headset is physically connected to the electronic device, the first connection location is electrically connected to the second connection location.
  • the embodiment of the present invention is not specifically limited.
  • it may be in the form of an elastic piece, a port, or the like, as long as electrical connection can be realized and an electrical signal can be transmitted.
  • a device control method is applied to an electronic device having a Bluetooth function, the method comprising: S101, monitoring whether the level of the first connection position changes, and if so, executing step S102; Understandably, if the user needs to use a Bluetooth headset, the Bluetooth headset will be removed from the electronic device. If the user does not need to use the Bluetooth headset, the Bluetooth headset will be fixed on the electronic device, thereby showing that Bluetooth The physical connection status of the headset and the electronic device is closely related to the usage status of the Bluetooth headset.
  • the inventor has intensively considered setting the first connection position on the electronic device and setting the second connection position on the Bluetooth headset, when the Bluetooth headset and the electronic device When physically connecting, the first connection location is electrically connected to the second connection location, such that when the Bluetooth headset is fixed on the electronic device, the first connection location is electrically connected to the second connection location, and when the Bluetooth headset is removed from the electronic device, The first connection position is electrically disconnected from the second connection position, and therefore, the level of the first connection position changes when the physical connection state of the Bluetooth headset and the electronic device changes.
  • the electronic device can determine the physical connection state of the Bluetooth headset and the electronic device by monitoring whether the level of the first connection position changes, that is, if the level of the first connection position changes, then the description of the electronic device
  • the electrical connection state of the first connection location and the second connection location of the Bluetooth headset changes, that is, the physical connection state of the Bluetooth headset and the electronic device changes. It can be understood that, at this time, the user may remove the Bluetooth headset from the electronic device, or fix the Bluetooth headset that has been removed to the electronic device, then step S102 may be performed. In this way, the electronic device can detect the physical connection state of the Bluetooth headset with the user without manually notifying the electronic device.
  • the level of the first connection position of the electronic device when the Bluetooth headset is fixed on the electronic device, the level of the first connection position of the electronic device is a low level, generally indicated by 0; when the Bluetooth headset is removed from the electronic device, the electronic device The level of the first connection position is a high level, generally indicated by 1.
  • the level of the first connection position of the electronic device when the Bluetooth headset is fixed on the electronic device, the level of the first connection position of the electronic device is a high level, generally indicated by 1; when the Bluetooth headset is removed from the electronic device, the electronic The level of the first connection position of the device is low level, generally indicated by 0. In this way, the physical connection state of the Bluetooth headset to the electronic device can be determined by the level change of the first connection position.
  • the high level of the first connection location or the second connection location may be provided by a power management chip, for example, a power management chip capable of providing voltages of 1.5V, 1.8V, 2.0V, etc., which are all reasonable.
  • the low level of the first connection position or the second connection position can be achieved by grounding, that is, providing a voltage of 0V, thereby achieving a low level.
  • S102 Send a control instruction to the Bluetooth headset according to a level value before and after the level change of the first connection position, so that the Bluetooth headset performs state switching between an active state and a non-working state.
  • the control command can be sent to the Bluetooth headset, so that the Bluetooth headset enters the working state, so that the user can use the Bluetooth headset to achieve the corresponding function.
  • the level of the first connection position is detected to change and changes from a high level to a low level, it can be determined that the Bluetooth headset is fixed to the electronic device at this time, indicating that the user may not need to use Bluetooth at this time. Headphones, then you can send control commands to the Bluetooth headset to put the Bluetooth headset into a non-working state.
  • the control command can be sent to the Bluetooth headset to make the Bluetooth headset enter the non-working state.
  • the control command can be sent to the Bluetooth headset to put the Bluetooth headset into operation so that the user can use the Bluetooth headset to achieve the corresponding function.
  • the preset application or function can be activated for the user to use.
  • the dialing program can be activated to facilitate the user to make a call;
  • the voice receiving and recognizing function can also be activated, so that the user can send an operation instruction through the Bluetooth headset to respond to the electronic device, for example, start music software, dial someone's phone, and enable navigation. Wait.
  • the Bluetooth headset is detachably connected to the electronic device, the electronic device has a first connection position, and the Bluetooth headset has a second connection location, and when the Bluetooth headset is physically connected to the electronic device, The first connection location is electrically coupled to the second connection location.
  • the electronic device monitors whether the level of the first connection position changes, and if so, sends a control command to the Bluetooth headset according to the level values before and after the level change of the first connection position, so that the Bluetooth headset is in working state and State switching between non-working states.
  • the switching of the working state of the Bluetooth headset does not require manual setting by the user, but is controlled by the electronic device according to the level values before and after the level change of the first connection position, thereby reducing the cumbersomeness of the user operation and improving the user.
  • the electronic device does not require manual setting by the user, but is controlled by the electronic device according to the level values before and after the level change of the first connection position, thereby reducing the cumbersomeness of the user operation and improving the user.
  • the embodiment of the present invention when the electronic device obtains the operation request, the embodiment of the present invention further provides the following response manner, as shown in FIG. 2, which specifically includes the following steps: S201: The operation request; it can be understood that the user can press an button on the electronic device or touch the screen to issue an operation request, and the electronic device can obtain the operation request.
  • the operation request may be sent by the user through a voice signal, and when the Bluetooth headset is in a non-working state, that is, the Bluetooth headset is fixed on the electronic device, the Bluetooth headset cannot receive the voice signal sent by the user.
  • the electronic device can collect the voice signal sent by the user through its own microphone, and perform voice recognition on the collected voice signal to obtain an operation request.
  • the electronic device may further analyze the voice recognition result to determine that the user requests to play the music, and the name of the played music is “ Play Fire, and then get the operation request for "Playing Music "Playing Fire”. For another example, the electronic device may receive an incoming call, and then the user may send a voice signal such as “answering” as an operation request, and then the electronic device obtains an operation request that the content is “answering the phone”.
  • the Bluetooth headset When the Bluetooth headset is in working state, that is, the Bluetooth headset is not fixed on the electronic device, the Bluetooth headset can collect the voice signal sent by the user, and of course, the electronic device can also collect the voice signal sent by the user, then the electronic device can obtain It is also reasonable to use the voice signal collected by the Bluetooth headset and/or the voice signal collected by the electronic device to perform voice recognition on the obtained voice signal to obtain an operation request.
  • the operation request may be triggered by an incoming call, that is, when the electronic device receives the incoming call, the electronic device obtains an operation request to connect the call.
  • the electronic device when the electronic device detects that the level of the first connection position changes, and the level change indicates that the Bluetooth headset is disconnected from the physical connection of the electronic device, then the electronic device may also Obtaining a preset operation request, the preset operation request may be opening a dialing program, or turning on a voice control mode or the like.
  • the electronic device may respond to the operation request, thereby obtaining a response content corresponding to the operation request.
  • the electronic device can respond to the operation instruction to obtain audio data of the music "playing fire", that is, the response content.
  • the operation instruction is "play voice navigation”
  • the electric device can obtain the audio data of the navigation information in response to the operation instruction. If the operation request is to answer the call, the electronic device responds to the operation request, that is, connects the phone, and then obtains the voice signal sent by the peer device, that is, the response content.
  • the peer device is a device other than an electronic device and a Bluetooth headset.
  • S203 Send the response content to the Bluetooth headset when the Bluetooth headset is in an active state, so that the Bluetooth headset receives and plays the response content.
  • the Bluetooth headset when the electronic device detects that the level of the first connection position changes, and the level change indicates that the Bluetooth headset is disconnected from the physical connection of the electronic device, the Bluetooth headset enters a working state.
  • the electronic device can send the response content to the Bluetooth headset, and the Bluetooth headset can receive and play the response content.
  • the electronic device obtains the response content such as audio data or a voice signal of the music “Playing Fire”, the level of the first connection position is monitored to change, and the level change indicates that the Bluetooth headset is disconnected.
  • the physical connection with the electronic device the electronic device can send the audio data or voice signal to the bluetooth earphone, and the bluetooth earphone can receive the audio data or the voice signal after receiving the audio data or the voice signal, and the user can pass the bluetooth.
  • the headphones listen to the music or voice signals.
  • the electronic device does not detect that the level of the first connection position changes at this time, but at this time, the Bluetooth headset is not physically connected to the electronic device, and then the Bluetooth headset is in working state, and the electronic device can be The response content is sent to the Bluetooth headset, and the Bluetooth headset can receive and play the response content.
  • the electronic device obtains the response content such as audio data or voice signal of the music "Playing Fire", it is detected that the level of the first connection position is not changed, but the Bluetooth headset is not The electronic device is physically connected, and then the electronic device can send the audio data or the voice signal to the Bluetooth earphone, and the Bluetooth earphone can receive the audio data or the voice signal after receiving the audio data or the voice signal, and the user can listen through the Bluetooth headset.
  • the music or voice signal is not limited to the music “Playing Fire"
  • the electronic device in response to the operation request, is based on the device control method, and after the user removes the Bluetooth headset from the electronic device, the user can listen to the response content through the Bluetooth headset without any manual setting, and the operation is simple. User experience is good.
  • the electronic device detects that the level of the first connection position changes, indicating that the user fixes the Bluetooth headset to the electronic device at this time, then the electronic device can send a control command to Turn the Bluetooth headset to a non-working state. Furthermore, the electronic device can continue to play the corresponding content, or stop playing the corresponding content, which is reasonable.
  • the step of responding to the operation request and obtaining the response content corresponding to the operation request may include: responding to the voice Interacting the request and obtaining the first voice signal sent by the peer device.
  • the voice interaction request includes various voice type requests, such as an incoming call, a voice chat, and the like.
  • the electronic device After the electronic device obtains the voice interaction request, it can respond to the voice interaction request. Assuming that the voice interaction request is an incoming call request, the electronic device can connect the incoming call, and then the first voice signal sent by the peer device can be obtained, wherein the peer device is a device other than the electronic device and the Bluetooth headset. The first voice signal can be collected by the peer device and sent to the electronic device, and of course, the peer device can be forwarded to the electronic device, which is reasonable.
  • the electronic device After the electronic device obtains the voice interaction request, it detects that the level of the first connection location changes, and the level change indicates that the Bluetooth headset disconnects from the physical connection of the electronic device, then the electronic device The voice interaction request is immediately responded to, and if the voice interaction request is an incoming call, the incoming call is connected.
  • the electronic device obtains the voice interaction request, the level of the first connection location does not change, but the Bluetooth headset is not physically connected to the electronic device, and the Bluetooth headset is in the working state.
  • the electronic device immediately responds to the voice interaction request, and if the voice interaction request is an incoming call, then the incoming call is connected.
  • the electronic device After the electronic device obtains the voice interaction request, the level of the first connection location does not change, and the Bluetooth headset is physically connected to the electronic device, and the Bluetooth headset is in a non-working state, the electronic device Generally, after the response operation sent by the electronic device is obtained, the user responds to the voice interaction request. If the voice interaction request is an incoming call, the user may press the answer button on the electronic device, and then the electronic device obtains the response operation and then turns on. Call.
  • the step of sending the response content to the Bluetooth headset to enable the Bluetooth headset to receive and play the response content may include: sending the first voice signal to the Bluetooth headset, so that The Bluetooth headset receives and plays the first voice signal.
  • the electronic device obtains the first voice signal sent by the peer device, if the Bluetooth headset is in an active state at this time, that is, if the electronic device detects that the level of the first connection position changes at this time, and the level changes Indicates that the Bluetooth headset is disconnected from the physical connection of the electronic device, or, at this time, the Bluetooth headset is not physically connected to the electronic device, then the voice interaction command is responded to, and then the electronic device can send the received peer device.
  • the first voice signal is sent to the Bluetooth headset, and after receiving the first voice signal, the Bluetooth headset can play it out for the user to listen to.
  • the first voice signal is a voice signal sent by a person who is in a call with the user, and the peer device sends the first voice signal to the electronic device, and the electronic device sends the first voice signal.
  • the Bluetooth headset can play the first voice signal, and the user can hear the voice content spoken by the person talking with him.
  • the method may further include: receiving a second voice signal sent by the Bluetooth headset, and sending the second voice signal to the peer device, in order to enable a voice interaction with the user to hear the voice content of the user.
  • the second voice signal is a voice signal sent by a user obtained by the Bluetooth headset.
  • the Bluetooth headset can collect the second voice signal sent by the user through its own microphone, and send the second voice signal to the electronic device through the Bluetooth connection. After receiving the second voice signal, the electronic device can then use the second voice signal. The signal is sent to the peer device, and then the person who performs voice interaction with the user can hear the voice content spoken by the user, thereby implementing voice interaction.
  • the electronic device obtains the voice interaction instruction
  • the voice interaction instruction is automatically responded, and the voice is played and collected through the Bluetooth headset.
  • the signal enables the user to perform voice interaction through the Bluetooth headset without manual setting by the user, and the operation is convenient and the user experience is better.
  • the electronic device detects that the level of the first connection position changes, indicating that the user fixes the Bluetooth headset to the electronic device at this time, and then the electronic device can send the control. Command to switch the Bluetooth headset to an inactive state. Furthermore, the electronic device can continue to play the first voice signal, or end the response to the voice interaction command, which is reasonable.
  • the user can ensure that the user can hear the voice content sent by the other party during the voice interaction process.
  • the foregoing method further includes the following steps: S301: Detect a signal strength of the second voice signal, and determine whether the signal strength is lower than a preset strength, if the preset strength is lower, perform step S302; if not lower than the preset
  • the electronic device may detect the signal strength of the received second signal when receiving the second voice signal sent by the Bluetooth headset, wherein the manner of detecting the signal strength of the second signal may be
  • the arbitrary signal strength detection method is not limited as long as it can achieve the detection purpose. Since the second voice signal is required to be transmitted by the electronic device to the peer device, the signal strength of the second voice signal directly affects the quality of the electronic device in response to the voice interaction command process.
  • the preset strength may be determined by a person skilled in the art according to factors such as an actual response environment of the voice interaction instruction, and is not specifically limited herein.
  • the electronic device can play the received first voice signal through the player to listen to the user, and can obtain the third voice signal through the microphone of the user, and the third voice signal is sent by the user obtained by the electronic device. voice signal. After the electronic device obtains the third voice signal, the third voice signal can be sent to the terminal device, and then the person who performs voice interaction with the user can receive the third voice signal, and further, perform voice interaction.
  • step S303 detecting a signal to noise ratio of the second voice signal, and determining whether the signal to noise ratio is lower than a preset signal to noise ratio. If the signal to noise ratio is lower than the preset signal to noise ratio, step S304 is performed; if not lower than the preset The signal-to-noise ratio is performed in step S305.
  • the electronic device detects that the signal strength of the second voice signal is not lower than the preset strength, it indicates that the intensity of the second voice signal sent by the Bluetooth headset is strong, in order to further ensure the voice.
  • the electronic device can further detect the signal to noise ratio of the second speech signal.
  • the signal to noise ratio refers to the ratio of signal to noise, so the higher the signal to noise ratio, the noise in the speech signal The smaller the signal-to-noise ratio, the lower the noise in the speech signal.
  • the preset signal to noise ratio may be determined by a person skilled in the art according to factors such as the actual response environment of the voice interaction instruction, and is not specifically limited herein.
  • the electronic device detects that the signal to noise ratio of the second voice signal is lower than the preset signal to noise ratio, indicating that the noise in the second voice signal is large at this time, then, if the received Bluetooth headset is sent at this time.
  • the second voice signal is sent to the peer device, it is likely that the person who performs voice interaction with the user cannot distinguish the voice content spoken by the user, and then the electronic device can refuse to process the second voice signal, that is, not the second The voice signal is sent to the peer device, but the third voice signal is collected through its own microphone, and the third voice signal is sent to the peer device.
  • the signal noise of the second voice signal collected by the Bluetooth headset is relatively low at this time, this does not affect the player playing the voice signal of the Bluetooth headset. Therefore, the first voice signal can still be played through the Bluetooth headset at this time.
  • the Bluetooth headset can continue to be in the working state, that is, maintain the current state.
  • the response mode remains unchanged, and the first voice signal sent by the peer device is continuously played through the Bluetooth headset, and the second voice signal sent by the user is collected through the Bluetooth headset, and the second voice signal is sent to the peer device.
  • the electronic device can control the working state of the Bluetooth headset by monitoring the signal strength and the signal-to-noise ratio, without requiring the user to manually set, further improving the user experience. .
  • the electronic device in order to monitor the power of the Bluetooth headset in real time and ensure that the Bluetooth headset has sufficient power, the electronic device may also have a third connection location, the Bluetooth headset may have a fourth connection location, and the electronic device and the Bluetooth headset physical When the connection is made, the third connection position is electrically connected to the fourth connection position.
  • the method may further include: S401, receiving, by the third connection position, the Bluetooth headset through the fourth The power value sent by the connection location; the Bluetooth headset can obtain its own power value, and send the power value to the electronic device in real time through the fourth connection location, then the electronic device can pass the third connection electrically connected to the fourth connection location Location, received the power value.
  • the third connection position and the fourth connection position are similar to the first connection position and the second connection position, and the specific implementation manners of the third connection position and the fourth connection position are not specifically limited in the embodiment of the present invention, for example, In the form of shrapnel, port, etc., as long as electrical connection can be achieved, and the power value can be transmitted.
  • the electronic device may determine the received power value. Whether it is less than the preset power value.
  • the preset power value can be determined by a person skilled in the art according to the implementation of the Bluetooth headset, for example, 50%, 30%, 20% of the rated power of the Bluetooth headset, etc., which are all reasonable, and are not specific here. limited.
  • the electronic device determines that the current power value of the Bluetooth headset (ie, the power value of the Bluetooth headset received by the electronic device) is less than the preset power value, indicating that the Bluetooth headset has less power, then in order to ensure that the Bluetooth headset can meet the work requirements, The Bluetooth headset can now be charged.
  • the Bluetooth headset may not be charged.
  • the Bluetooth headset can be charged when the battery is low, ensuring that the Bluetooth headset does not suddenly enter the non-working state due to insufficient power and affects the user experience.
  • the above method may further include: detecting, by the S501, whether the Bluetooth headset disconnects the Bluetooth connection from the electronic device; if yes, executing step S502; it may be understood that the control command issued by the electronic device is: causing the Bluetooth headset to be non- When the working state is switched to the working state, the Bluetooth headset is not fixed on the electronic device. At this time, the user may use the Bluetooth headset, or the Bluetooth headset may fall, which is prone to loss.
  • the electronic device can detect whether the Bluetooth headset and the electronic device are disconnected from the Bluetooth connection, and if yes, step S502 can be performed, if the Bluetooth connection is not disconnected, Then, when the user is using the Bluetooth headset, the Bluetooth headset is not lost, and no reminder operation is required.
  • S502 Record a time when the electronic device disconnects the Bluetooth connection from the Bluetooth headset. If it detects that the Bluetooth headset is disconnected from the electronic device, then the Bluetooth headset is likely to be lost, but the signal is not in the Bluetooth connection. When it is stable, there may be a short disconnection of the Bluetooth connection. Therefore, in order to avoid frequently prompting the user to lose the Bluetooth headset, the electronic device can record the time of disconnecting the Bluetooth connection from the Bluetooth headset.
  • the Bluetooth headset loss information is output.
  • the recorded time reaches the preset time value, it indicates that the Bluetooth headset and the electronic device are disconnected from the Bluetooth device for a long time, then the Bluetooth headset is likely to be lost, and the electronic device can output the Bluetooth headset loss information to remind the user of the Bluetooth.
  • the headset may be lost.
  • the preset time value may be set by a person skilled in the art according to factors such as the actual use scenario of the Bluetooth headset, and may be, for example, 8 seconds, 10 seconds, 20 seconds, etc., and is not specifically limited herein.
  • the electronic device can output Bluetooth headset loss information by vibration, lighting, buzzing, and the like. If the electronic device has a display screen, the Bluetooth headset loss information can also be output through the display screen. Of course, the Bluetooth headset loss information can also be outputted in a combination of the above manners, which is reasonable.
  • the Bluetooth headset loss information can be output in time to prompt the user to avoid the loss of the Bluetooth headset to the user. Unusable problems and economic losses.
  • the present invention further provides another device control method.
  • the second device control method provided by the embodiment of the present invention is introduced below.
  • the second device control method provided by the embodiment of the present invention can be applied to a Bluetooth headset, and the Bluetooth headset is detachably connected to the electronic device, and the two can be detachably connected by means of a buckle or the like.
  • the electronic device has a first connection position
  • the Bluetooth headset has a second connection position.
  • the first connection location is electrically connected to the second connection location.
  • the embodiment of the present invention is not specifically limited. For example, it may be in the form of an elastic piece, a port, or the like, as long as electrical connection can be achieved and an electrical signal can be transmitted.
  • a device control method is applied to a Bluetooth headset.
  • the method includes: S601, receiving a control command sent by the electronic device; the Bluetooth headset can receive a control command sent by the electronic device at any time, wherein the control The command is: an instruction generated by the electronic device after the level of the first connection position is changed, according to the level values before and after the level change.
  • the electronic device can monitor whether the level of the first connection position changes, and if the level of the first connection position changes, the first connection position of the electronic device and the second connection position of the Bluetooth headset are electrically
  • the connection status changes that is, the physical connection status of the Bluetooth headset to the electronic device has changed. It can be understood that at this time, the user may remove the Bluetooth headset from the electronic device, or fix the Bluetooth headset that has been removed to the electronic device.
  • the level of the first connection position of the electronic device when the Bluetooth headset is fixed on the electronic device, the level of the first connection position of the electronic device is a low level, generally 0; when the Bluetooth headset is removed from the electronic device, the electronic device The level of the first connection position is a high level, generally one. At this time, if the electronic device detects that the level of the first connection position changes and changes from a low level to a high level, it can be determined that the Bluetooth headset is removed from the electronic device at this time, indicating that the user is likely to need it at this time. With a Bluetooth headset, you can send control commands to the Bluetooth headset to put the Bluetooth headset into operation so that the user can use the Bluetooth headset to perform the function.
  • the Bluetooth headset is fixed to the electronic device at this time, indicating that the user may not need to use Bluetooth at this time. Headphones, then you can send control commands to the Bluetooth headset, so that the Bluetooth headset enters the non-working state, the Bluetooth headset will also receive control commands.
  • the level of the first connection position of the electronic device when the Bluetooth headset is fixed on the electronic device, the level of the first connection position of the electronic device is a high level, generally 1; when the Bluetooth headset is removed from the electronic device, the electronic device The level of the first connection position is low, generally 0.
  • the physical connection state of the Bluetooth headset to the electronic device can be determined by the level change of the first connection position. If it is detected that the level of the first connection position changes, and changes from low level to high level, it can be determined that the Bluetooth headset is fixed to the electronic device at this time, indicating that the user may not need to use the Bluetooth headset at this time. Then, a control command can be sent to the Bluetooth headset to make the Bluetooth headset enter a non-working state.
  • the Bluetooth headset is removed from the electronic device at this time, indicating that the user is likely to need to use Bluetooth at this time. Headphones, then you can send control commands to the Bluetooth headset, so that the Bluetooth headset enters the working state, the Bluetooth headset will also receive control commands.
  • the high level of the first connection location or the second connection location may be provided by a power management chip, for example, a power management chip capable of providing voltages of 1.5V, 1.8V, 2.0V, etc., which are all reasonable.
  • the low level of the first connection position or the second connection position can be achieved by grounding, that is, providing a voltage of 0V, thereby achieving a low level.
  • S602. Perform state switching between the working state and the non-working state according to the control instruction.
  • the Bluetooth headset After receiving the above control command, the Bluetooth headset can perform state switching between the working state and the non-working state according to the received control command. It can be understood that if the control command is an instruction to switch the Bluetooth headset from the working state to the non-working state, the Bluetooth headset switches to the non-working state. Conversely, if the control command is to change the Bluetooth headset from the non-working state to the working state. The status of the command, then the Bluetooth headset will enter the working state.
  • the Bluetooth headset is detachably connected to the electronic device, the electronic device has a first connection position, and the Bluetooth headset has a second connection location, and when the Bluetooth headset is physically connected to the electronic device, The first connection location is electrically coupled to the second connection location.
  • the electronic device further has a third connection location
  • the Bluetooth headset has a fourth connection location
  • the third connection is when the electronic device is physically connected to the Bluetooth headset.
  • the third connection position and the fourth connection position are similar to the first connection position and the second connection position, and the specific implementation manners of the third connection position and the fourth connection position are not specifically limited in the embodiment of the present invention, for example, In the form of shrapnel, port, etc., as long as electrical connection can be achieved, and the power value can be transmitted.
  • the Bluetooth headset can obtain its own power value in real time, and send the power value to the electronic device in real time through the fourth connection position, and then the electronic device can receive the power through the third connection position electrically connected with the fourth connection position. value.
  • the electronic device determines that the current power value of the Bluetooth headset (ie, the power value of the Bluetooth headset received by the electronic device) is less than the preset power value, indicating that the Bluetooth headset has less power, then in order to ensure that the Bluetooth headset can meet the work requirements, You can charge your Bluetooth headset.
  • the electronic device determines that the current power value of the Bluetooth headset (ie, the power value of the Bluetooth headset received by the electronic device) is not less than the preset power value, indicating that the Bluetooth headset has more power, then the Bluetooth headset may not be charged. .
  • the preset power value can be determined by a person skilled in the art according to the implementation of the Bluetooth headset, for example, 50%, 30%, 20% of the rated power of the Bluetooth headset, etc., which are all reasonable, and are not specific here. limited.
  • the electronic device can charge the Bluetooth headset when the battery is low, ensuring that the Bluetooth headset does not suddenly enter the non-working state due to insufficient power and affects the user experience.
  • the embodiment of the present invention further provides a device control device, and the first device control device provided by the embodiment of the present invention is introduced below.
  • a device control device is applied to an electronic device having a Bluetooth function; a Bluetooth headset is detachably connected to the electronic device, the electronic device has a first connection position, and the Bluetooth headset has a second connection a location, the first connection location is electrically connected to the second connection location when the Bluetooth headset is physically connected to the electronic device; the device includes: a monitoring module 710, configured to monitor the first connection location Whether the level changes; the control module 720 is configured to: when the level of the first connection position changes, according to the level values before and after the level change of the first connection position, to the The Bluetooth headset sends a control command to cause the Bluetooth headset to switch state between a working state and a non-working state.
  • the Bluetooth headset is detachably connected to the electronic device, the electronic device has a first connection position, and the Bluetooth headset has a second connection location, and when the Bluetooth headset is physically connected to the electronic device, The first connection location is electrically coupled to the second connection location.
  • the electronic device monitors whether the level of the first connection position changes, and if so, sends a control command to the Bluetooth headset according to the level values before and after the level change of the first connection position, so that the Bluetooth headset is in working state and State switching between non-working states.
  • the switching of the working state of the Bluetooth headset does not require manual setting by the user, but is controlled by the electronic device according to the level values before and after the level change of the first connection position, thereby reducing the cumbersomeness of the user operation and improving the user.
  • the electronic device does not require manual setting by the user, but is controlled by the electronic device according to the level values before and after the level change of the first connection position, thereby reducing the cumbersomeness of the user operation and improving the user.
  • the apparatus may further include: a request obtaining module (not shown in FIG. 7) for obtaining an operation request; and a request response module (not shown in FIG. 7) for Responding to the operation request, and obtaining response content corresponding to the operation request; a content sending module (not shown in FIG. 7), configured to send the response content to the location when the Bluetooth headset is in an active state
  • a request obtaining module for obtaining an operation request
  • a request response module for Responding to the operation request, and obtaining response content corresponding to the operation request
  • a content sending module (not shown in FIG. 7), configured to send the response content to the location when the Bluetooth headset is in an active state
  • the Bluetooth headset is described to enable the Bluetooth headset to receive and play the response content.
  • the electronic device In the process of responding to the operation request, the electronic device is based on the device control method described above. After the user removes the Bluetooth headset from the electronic device, the user can listen to the response content through the Bluetooth headset without any manual setting, and the operation is simple and the user experience is good.
  • the request obtaining module may include: a voice signal obtaining unit (not shown in FIG. 7), configured to obtain a voice signal collected by the Bluetooth headset and/or the electronic The voice signal collected by the device; an operation request obtaining unit (not shown in FIG. 7) for performing voice recognition on the obtained voice signal to obtain an operation request.
  • the operation request may be: a voice interaction request;
  • the request response module may include: a first voice signal acquisition unit (not shown in FIG. 7), configured to respond to the a voice interaction request, and obtaining a first voice signal sent by the peer device, where the peer device is a device other than the electronic device and the Bluetooth headset;
  • the content sending module may include: a first voice signal a sending unit (not shown in FIG. 7), configured to send the first voice signal to the Bluetooth headset, so that the Bluetooth headset receives and plays the first voice signal;
  • the device may further include: a second voice signal receiving module (not shown in FIG.
  • the second voice signal sending module (not shown in FIG. 7) is configured to send the second voice signal to the peer device.
  • the electronic device obtains the voice interaction instruction
  • the voice interaction instruction is automatically responded, and the voice signal is played and collected through the Bluetooth headset.
  • the user can perform voice interaction through the Bluetooth headset without manual setting by the user, the operation is convenient, and the user experience is better.
  • the device may further include: a first detecting module (not shown in FIG. 7), configured to detect a signal strength of the second voice signal, and determine the signal strength Whether it is lower than the preset strength; the first switching module (not shown in FIG.
  • the Bluetooth headset is configured to send the Bluetooth headset from the working state if the signal strength of the second voice signal is lower than the preset strength Switching to a non-operating state control command to the Bluetooth headset to cause the Bluetooth headset to enter a non-working state, and playing the received first voice signal, acquiring a third voice signal, and transmitting the third voice signal To the peer device, wherein the third voice signal is a voice signal sent by a user obtained by the electronic device; and a second detecting module (not shown in FIG. 7) is configured to be in the second voice signal If the signal strength is not lower than the preset intensity, detecting a signal to noise ratio of the second voice signal, and determining whether the signal to noise ratio is lower than a preset signal to noise ratio; the second switching module (not shown in FIG. 7 Show) for use in the letter Ratio is less than the predetermined SNR case, rejection of the second speech signal processing; and acquiring the third voice signal, the third voice signal transmitted to the peer device.
  • the electronic device can control the working state of the Bluetooth headset without requiring the user to manually set, thereby further improving the user experience.
  • the electronic device has a third connection location
  • the Bluetooth headset has a fourth connection location
  • the third connection location is when the electronic device is physically connected to the Bluetooth headset.
  • the device may further include: a power value receiving module (not shown in FIG. 7), configured to receive the Bluetooth headset through the fourth through the third connection location a power value sent by the connection location; a power value determination module (not shown in FIG. 7), configured to determine whether the power value is less than a preset power value; and a charging module (not shown in FIG. 7) for When the power value is less than the preset power value, the Bluetooth headset is charged.
  • the Bluetooth headset can be charged when the battery is low, ensuring that the Bluetooth headset does not suddenly enter the non-working state due to insufficient power and affects the user experience.
  • the device may further include: a Bluetooth connection detecting module (not shown in FIG. 7), configured to: switch the Bluetooth headset from an inactive state in the control command When the instruction to the working state is up, detecting whether the Bluetooth headset is disconnected from the electronic device by a Bluetooth connection; an event recording module (not shown in FIG. 7) is configured to disconnect the Bluetooth device from the electronic device In the case of connection, recording the time when the electronic device disconnects the Bluetooth connection from the Bluetooth headset; the missing information output module (not shown in FIG. 7) is configured to output the Bluetooth when the time reaches the preset time value. The headset lost information.
  • a Bluetooth connection detecting module (not shown in FIG. 7), configured to: switch the Bluetooth headset from an inactive state in the control command When the instruction to the working state is up, detecting whether the Bluetooth headset is disconnected from the electronic device by a Bluetooth connection
  • an event recording module (not shown in FIG. 7) is configured to disconnect the Bluetooth device from the electronic device In the case of connection, recording the time when the electronic device disconnects the Bluetooth connection from the Bluetooth headset
  • the Bluetooth headset loss information can be output in time to prompt the user to avoid the loss of the Bluetooth headset to the user. Problems and economic losses.
  • the second device control device provided by the embodiment of the present invention is introduced below.
  • a device control device is applied to a Bluetooth headset; the Bluetooth headset is detachably connected to an electronic device having a Bluetooth function, the electronic device has a first connection position, and the Bluetooth headset has a second connection Position: when the Bluetooth headset is physically connected to the electronic device, the first connection location is electrically connected to the second connection location; the device includes: an instruction receiving module 810, configured to receive, sent by the electronic device And the control command is: the electronic device detects an instruction generated by the level value before and after the level change after the level of the first connection position is changed; the working state conversion module 820 And for performing state switching between the working state and the non-working state according to the control instruction.
  • the Bluetooth headset is detachably connected to the electronic device, the electronic device has a first connection position, and the Bluetooth headset has a second connection location, and when the Bluetooth headset is physically connected to the electronic device, The first connection location is electrically coupled to the second connection location.
  • the electronic device may have a third connection location, the Bluetooth headset has a fourth connection location, and the third connection is when the electronic device is physically connected to the Bluetooth headset.
  • the device is further electrically connected to the fourth connection position; the device may further include: a power value acquisition module (not shown in FIG. 8) for obtaining a current power value; and a power value transmission module (not shown in FIG. 8) And transmitting, by the fourth connection location, the power value to the electronic device, so that the electronic device charges the Bluetooth headset when the power value is less than a preset power value.
  • the electronic device can charge the Bluetooth headset when the battery is low, ensuring that the Bluetooth headset does not suddenly enter the non-working state due to insufficient power and affects the user experience.
  • An embodiment of the present invention further provides a device control system.
  • the following describes a device control system provided by an embodiment of the present invention.
  • a device control system includes a Bluetooth-enabled electronic device 910 and a Bluetooth headset 920.
  • the Bluetooth headset 920 is detachably connected to the electronic device 910, and the electronic device 910 has a a connection location, the Bluetooth headset 920 has a second connection location, and when the Bluetooth headset 920 is physically connected to the electronic device 910, the first connection location is electrically connected to the second connection location;
  • the electronic device 910 is configured to monitor whether a level of the first connection position changes; in a case where a level of the first connection position changes, before and after the level change of the first connection position
  • the level value sends a control command to the Bluetooth headset;
  • the Bluetooth headset 920 is configured to receive the control instruction, and perform state switching between an active state and a non-working state according to the control instruction.
  • the Bluetooth headset is detachably connected to the electronic device, the electronic device has a first connection position, and the Bluetooth headset has a second connection location, and when the Bluetooth headset is physically connected to the electronic device, The first connection location is electrically coupled to the second connection location.
  • the electronic device 910 may be further configured to obtain an operation request, respond to the operation request, and obtain a response content corresponding to the operation request; and the Bluetooth headset is in a working state.
  • the response content is sent to the Bluetooth headset, so that the Bluetooth headset receives and plays the response content.
  • the electronic device 910 may be specifically configured to obtain a voice signal collected by the Bluetooth headset and/or a voice signal collected by the electronic device, and perform voice recognition on the obtained voice signal. , get an operation request.
  • the operation request is: a voice interaction request; the electronic device 910 may be specifically configured to respond to the voice interaction request, and obtain a first voice signal sent by the peer device, where The peer device is a device other than the electronic device and the Bluetooth headset; the electronic device 910 may be specifically configured to send the first voice signal to the Bluetooth headset, so that the Bluetooth headset receives And playing the first voice signal; the electronic device 910 is further configured to receive a second voice signal sent by the Bluetooth headset, where the second voice signal is a voice signal sent by a user obtained by the Bluetooth headset. Sending the second voice signal to the peer device.
  • the electronic device 910 may be further configured to detect a signal strength of the second voice signal, and determine whether the signal strength is lower than a preset strength; if the preset strength is lower than a preset strength Sending a control command for switching the Bluetooth headset from the working state to the non-working state to the Bluetooth headset, so that the Bluetooth headset enters a non-working state, and plays the received first voice signal to obtain a third a voice signal, and sending the third voice signal to the peer device, wherein the third voice signal is a voice signal sent by a user obtained by the electronic device; if not lower than a preset strength, detecting the location Determining a signal to noise ratio of the second voice signal, and determining whether the signal to noise ratio is lower than a preset signal to noise ratio; if the signal to noise ratio is lower than the preset signal to noise ratio, rejecting processing the second voice signal; The third voice signal is sent, and the third voice signal is sent to the peer device.
  • the electronic device has a third connection location
  • the Bluetooth headset has a fourth connection location
  • the third connection location is when the electronic device is physically connected to the Bluetooth headset.
  • Electrically connected to the fourth connection location; the electronic device 910 is further configured to receive, by using the third connection location, a power value sent by the Bluetooth headset through the fourth connection location; determining whether the power value is Less than the preset power value; if yes, the Bluetooth headset is charged.
  • the electronic device 910 may be further configured to detect the Bluetooth headset when the control instruction is: an instruction to switch the Bluetooth headset from a non-working state to a working state. Whether the electronic device disconnects the Bluetooth connection; if yes, records the time when the electronic device disconnects the Bluetooth connection from the Bluetooth headset;
  • the Bluetooth headset loss information is output.
  • the electronic device has a third connection location
  • the Bluetooth headset has a fourth connection location
  • the third connection location is when the electronic device is physically connected to the Bluetooth headset. Electrically connecting with the fourth connection location; the Bluetooth headset is further configured to obtain a current power value; and send the power value to the electronic device by using the fourth connection location, so that the electronic device is in the Charging the Bluetooth headset when the battery value is less than the preset battery value.

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

本发明提供了一种设备控制方法、装置及系统,蓝牙耳机与电子设备可拆卸连接,电子设备的第一连接位置与蓝牙耳机的第二连接位置电连接;监测第一连接位置的电平是否变化;若是,根据第一连接位置的电平变化前、后的电平值,向蓝牙耳机发送控制指令,以使蓝牙耳机在工作状态和非工作状态之间切换,不需要手动设置,操作简单。

Description

[根据细则37.2由ISA制定的发明名称] 一种设备控制方法、装置及系统
本申请要求了申请日为2017年05月03日,申请号为201710304661.7,发明名称为“一种设备控制方法、装置及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及电子设备技术领域,特别是涉及一种设备控制方法、装置及系统。
背景技术
自二十世纪九十年代蓝牙技术问世以来,最近二十年里得到飞速发展,蓝牙耳机作为一种基于蓝牙技术的免持耳机,近年来得到广泛应用。它让使用者可以免除电线的限制,随意进行通话或听音乐等操作。由于无需手持,且无电线限制,蓝牙耳机也成为了提升工作效率的优良工具。
具有蓝牙功能的电子设备,例如手机、电脑、手表等,可以与蓝牙耳机建立蓝牙连接,进而实现接听电话等功能。为了携带方便,有一些电子设备具有连接卡扣,可以将蓝牙耳机固定在电子设备上,用户在需要使用蓝牙耳机时,可以将其从电子设备上取下,进行使用。
但是上述电子设备与蓝牙耳机仅仅是机械连接,只是将蓝牙耳机与电子设备可拆卸地固定在一起,在用户需要使用蓝牙耳机时,需要将蓝牙耳机从电子设备上取下,并需要通过手动设置以使蓝牙耳机从非工作状态转换至工作状态,进而实现接打电话、播放音乐等功能。例如,用户将蓝牙耳机从电子设备上取下后,需要按动蓝牙耳机上的按键,或按动电子设备上的按键来使蓝牙耳机进入工作状态,显然,这样的操作是比较繁琐的,用户体验不佳。
发明内容
本发明实施例的目的在于提供一种设备控制方法、装置及系统,以降低用户操作繁琐度,提高用户体验。具体技术方案如下:
第一方面,本发明实施例提供了一种设备控制方法,应用于具有蓝牙功能的电子设备;蓝牙耳机与所述电子设备可拆卸连接,所述电子设备具有第一连接位置,所述蓝牙耳机具有第二连接位置,所述蓝牙耳机与所述电子设备物理连接时,所述第一连接位置与所述第二连接位置电连接;所述方法包括:监测所述第一连接位置的电平是否发生变化;若为是,根据所述第一连接位置的电平变化前、后的电平值,向所述蓝牙耳机发送控制指令,以使得所述蓝牙耳机在工作状态和非工作状态之间进行状态切换。
可选的,所述方法还包括:获得操作请求;响应所述操作请求,并获得所述操作请求对应的响应内容;在所述蓝牙耳机处于工作状态的情况下,发送所述响应内容至所述蓝牙耳机,以使所述蓝牙耳机接收并播放所述响应内容。
可选的,所述操作请求为:语音交互请求;所述响应所述操作请求,并获得所述操作请求对应的响应内容的步骤,包括:响应所述语音交互请求,并获得对端设备发送的第一语音信号,其中,所述对端设备为除所述电子设备及所述蓝牙耳机以外的设备;所述发送所述响应内容至所述蓝牙耳机,以使所述蓝牙耳机接收并播放所述响应内容的步骤,包括:发送所述第一语音信号至所述蓝牙耳机,以使所述蓝牙耳机接收并播放所述第一语音信号;所述方法还包括:接收所述蓝牙耳机发送的第二语音信号,其中,所述第二语音信号为所述蓝牙耳机获得的用户发出的语音信号;发送所述第二语音信号至所述对端设备。
可选的,所述方法还包括:检测所述第二语音信号的信号强度,并判断所述信号强度是否低于预设强度;如果低于预设强度,则发送使所述蓝牙耳机从工作状态切换至非工作状态的控制指令至所述蓝牙耳机,以使所述蓝牙耳机进入非工作状态,并播放所接收到的第一语音信号,获取第三语音信号,并发送所述第三语音信号至所述对端设备,其中,所述第三语音信号为所述电子设备获得的用户发出的语音信号;如果不低于预设强度,则检测所述第二语音信号的信噪比,并判断所述信噪比是否低于预设信噪比;如果低于预设信噪比,则拒绝对所述第二语音信号进行处理;并获取所述第三语音信号,发送所述第三语音信号至所述对端设备。
可选的,所述电子设备具有第三连接位置,所述蓝牙耳机具有第四连接位置,所述电子设备与所述蓝牙耳机物理连接时,所述第三连接位置与所述第四连接位置电连接;所述方法还包括:通过所述第三连接位置,接收所述蓝牙耳机通过所述第四连接位置发送的电量值;判断所述电量值是否小于预设电量值;若为是,则为所述蓝牙耳机充电。
可选的,在所述控制指令为:使得所述蓝牙耳机从非工作状态切换至工作状态的指令时,所述方法还包括:检测所述蓝牙耳机与所述电子设备是否断开蓝牙连接;若为是,则记录所述电子设备与所述蓝牙耳机断开蓝牙连接的时间;当所述时间达到预设时间值时,输出蓝牙耳机丢失信息。
第二方面,本发明实施例提供了另一种设备控制方法,应用于蓝牙耳机;所述蓝牙耳机与具有蓝牙功能的电子设备可拆卸连接,所述电子设备具有第一连接位置,所述蓝牙耳机具有第二连接位置,所述蓝牙耳机与所述电子设备物理连接时,所述第一连接位置与所述第二连接位置电连接;所述方法包括:接收所述电子设备发送的控制指令,其中,所述控制指令为:所述电子设备监测到所述第一连接位置的电平发生变化后,根据电平变化前、后的电平值生成的指令;根据所述控制指令,在工作状态和非工作状态之间进行状态切换。
第三方面,本发明实施例提供了一种设备控制装置,应用于具有蓝牙功能的电子设备;蓝牙耳机与所述电子设备可拆卸连接,所述电子设备具有第一连接位置,所述蓝牙耳机具有第二连接位置,所述蓝牙耳机与所述电子设备物理连接时,所述第一连接位置与所述第二连接位置电连接;所述装置包括:监测模块,用于监测所述第一连接位置的电平是否发生变化;控制模块,用于在所述第一连接位置的电平发生变化的情况下,根据所述第一连接位置的电平变化前、后的电平值,向所述蓝牙耳机发送控制指令,以使得所述蓝牙耳机在工作状态和非工作状态之间进行状态切换。
第四方面,本发明实施例提供了另一种设备控制装置,应用于蓝牙耳机;所述蓝牙耳机与具有蓝牙功能的电子设备可拆卸连接,所述电子设备具有第一连接位置,所述蓝牙耳机具有第二连接位置,所述蓝牙耳机与所述电子设备物理连接时,所述第一连接位置与所述第二连接位置电连接;所述装置包括:指令接收模块,用于接收所述电子设备发送的控制指令,其中,所述控制指令为:所述电子设备监测到所述第一连接位置的电平发生变化后,根据电平变化前、后的电平值生成的指令;工作状态转换模块,用于根据所述控制指令,在工作状态和非工作状态之间进行状态切换。
第五方面,本发明实施例还提供了一种设备控制系统,所述系统包括具有蓝牙功能的电 子设备及蓝牙耳机,所述蓝牙耳机与所述电子设备可拆卸连接,所述电子设备具有第一连接位置,所述蓝牙耳机具有第二连接位置,所述蓝牙耳机与所述电子设备物理连接时,所述第一连接位置与所述第二连接位置电连接;其中,所述电子设备,用于监测所述第一连接位置的电平是否发生变化;在所述第一连接位置的电平发生变化的情况下,根据所述第一连接位置的电平变化前、后的电平值,向所述蓝牙耳机发送控制指令;所述蓝牙耳机,用于接收所述控制指令,并根据所述控制指令,在工作状态和非工作状态之间进行状态切换。
本发明实施例提供的一种设备控制方法、装置及系统,蓝牙耳机与所述电子设备可拆卸连接,电子设备具有第一连接位置,蓝牙耳机具有第二连接位置,蓝牙耳机与电子设备物理连接时,第一连接位置与第二连接位置电连接。电子设备监测第一连接位置的电平是否发生变化,若为是,根据第一连接位置的电平变化前、后的电平值,向蓝牙耳机发送控制指令,以使得蓝牙耳机在工作状态和非工作状态之间进行状态切换。可见,蓝牙耳机工作状态的切换不需要用户进行手动设置,而是由电子设备根据第一连接位置的电平变化前、后的电平值进行控制,降低了用户操作的繁琐度,提高了用户体验。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例所提供的第一种设备控制方法的流程图;
图2为基于图1所示实施例的一种操作请求响应方法流程图;
图3为基于图2所示实施例的另一种操作请求响应方法流程图;
图4为基于图1所示实施例的一种为蓝牙耳机进行充电方法的流程图;
图5为基于图1所示实施例的一种蓝牙耳机丢失信息的输出方法流程图;
图6为本发明实施例所提供的第二种设备控制方法的流程图;
图7为本发明实施例所提供的第一种设备控制装置的结构示意图;
图8为本发明实施例所提供的第二种设备控制装置的结构示意图;
图9为本发明实施例所提供的一种设备控制系统的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
为了降低用户操作繁琐度,提高用户体验,本发明实施例提供了一种设备控制方法、装置及系统,下面首先对本发明实施例所提供的第一种设备控制方法的进行介绍。
首先需要说明的是,本发明实施例所提供的第一种设备控制方法可以应用于具有蓝牙功能的电子设备(以下简称电子设备),例如,可以为具有蓝牙功能的手机、电脑、手表、投影设备、手环等,在此不做具体限定。该电子设备与蓝牙耳机可拆卸连接,二者可以通过卡扣等方式进行可拆卸连接。该电子设备具有第一连接位置,蓝牙耳机具有第二连接位置,当蓝牙耳机与电子设备物理连接时,第一连接位置与第二连接位置电连接。对于第一连接位置及第二连接位置的具体实现形式,本发明实施例不做具体限定,例如,可以为弹片、端口等能 形式,只要可以实现电连接,且可以传递电信号即可。
如图1所示,一种设备控制方法,应用于具有蓝牙功能的电子设备,所述方法包括:S101,监测所述第一连接位置的电平是否发生变化,若为是,执行步骤S102;可以理解的是,如果用户需要使用蓝牙耳机,那么便会将蓝牙耳机从电子设备上取下,如果用户不需要使用蓝牙耳机,那么便会将蓝牙耳机固定在电子设备上,由此可见,蓝牙耳机与电子设备的物理连接状态与蓝牙耳机的使用状态息息相关。
所以为了能快速判断蓝牙耳机与电子设备的物理连接状态,发明人经过深入考虑,在电子设备上设置了第一连接位置,并在蓝牙耳机上设置了第二连接位置,当蓝牙耳机与电子设备物理连接时,第一连接位置与第二连接位置电连接,这样当蓝牙耳机固定于电子设备上时,第一连接位置与第二连接位置电连接,将蓝牙耳机从电子设备上取下时,第一连接位置与第二连接位置断开电连接,因此,在蓝牙耳机与电子设备的物理连接状态发生改变时,第一连接位置的电平也会发生变化。
那么,电子设备便可以通过监测第一连接位置的电平是否发生变化来判断蓝牙耳机与电子设备的物理连接状态,也就是说,如果第一连接位置的电平发生变化,那么说明电子设备的第一连接位置与蓝牙耳机的第二连接位置的电连接状态发生变化,也就是蓝牙耳机与电子设备的物理连接状态发生了改变。可以理解的是,此时用户可能将蓝牙耳机从电子设备上取下,或者,将原本已取下的蓝牙耳机固定到电子设备上,那么便可以执行步骤S102。这样,无需用户手动通知电子设备,电子设备便可以检测到蓝牙耳机与其的物理连接状态。
在一种实施方式中,当蓝牙耳机固定在电子设备上时,电子设备的第一连接位置的电平为低电平,一般以0表示;当蓝牙耳机从电子设备上取下时,电子设备的第一连接位置的电平为高电平,一般以1表示。在另一种实施方式中,当蓝牙耳机固定在电子设备上时,电子设备的第一连接位置的电平为高电平,一般以1表示;当蓝牙耳机从电子设备上取下时,电子设备的第一连接位置的电平为低电平,一般以0表示。这样,通过第一连接位置的电平变化便可以确定蓝牙耳机与电子设备的物理连接状态。
其中,第一连接位置或第二连接位置的高电平可以通过电源管理芯片提供,例如可以为可提供1.5V、1.8V、2.0V等电压的电源管理芯片,这都是合理的。而第一连接位置或第二连接位置的低电平则可以通过接地的方式实现,即提供0V电压,进而实现低电平。
S102,根据所述第一连接位置的电平变化前、后的电平值,向所述蓝牙耳机发送控制指令,以使得所述蓝牙耳机在工作状态和非工作状态之间进行状态切换。
针对于上述第一种实施方式所提供的情况而言,如果监测到第一连接位置的电平发生变化,且从低电平变为高电平,那么可以确定此时蓝牙耳机被从电子设备上取下,说明此时用户很可能需要使用蓝牙耳机,那么便可以向蓝牙耳机发送控制指令,以使蓝牙耳机进入工作状态,以便用户使用蓝牙耳机实现相应功能。相反,如果监测到第一连接位置的电平发生变化,且从高电平变为低电平,那么可以确定此时蓝牙耳机被固定到电子设备上,说明此时用户很可能不需要使用蓝牙耳机,那么便可以向蓝牙耳机发送控制指令,以使蓝牙耳机进入非工作状态。
针对于上述第二种实施方式所提供的情况而言,如果监测到第一连接位置的电平发生变 化,且从低电平变为高电平,那么可以确定此时蓝牙耳机被固定到电子设备上,说明此时用户很可能不需要使用蓝牙耳机,那么便可以向蓝牙耳机发送控制指令,以使蓝牙耳机进入非工作状态。相反,如果监测到第一连接位置的电平发生变化,且从高电平变为低电平,那么可以确定此时蓝牙耳机被从电子设备上取下,说明此时用户很可能需要使用蓝牙耳机,那么便可以向蓝牙耳机发送控制指令,以使蓝牙耳机进入工作状态,以便用户使用蓝牙耳机实现相应功能。
需要说明的是,当蓝牙耳机从非工作状态转换至工作状态时,可以启动预设应用程序或功能,以便用户使用。例如,可以启动拨号程序,便于用户拨打电话;也可以启动语音接收及识别功能,以便用户通过蓝牙耳机发出操作指令,以使电子设备进行响应,例如,启动音乐软件、拨打某人电话、开启导航等。
可见,本发明实施例所提供的设备控制方法中,蓝牙耳机与所述电子设备可拆卸连接,电子设备具有第一连接位置,蓝牙耳机具有第二连接位置,蓝牙耳机与电子设备物理连接时,第一连接位置与第二连接位置电连接。电子设备监测第一连接位置的电平是否发生变化,若为是,根据第一连接位置的电平变化前、后的电平值,向蓝牙耳机发送控制指令,以使得蓝牙耳机在工作状态和非工作状态之间进行状态切换。可见,蓝牙耳机工作状态的切换不需要用户进行手动设置,而是由电子设备根据第一连接位置的电平变化前、后的电平值进行控制,降低了用户操作的繁琐度,提高了用户体验。
作为本发明实施例的一种实施方式,基于上述设备控制方法,当电子设备获得操作请求时,本发明实施例还提供了如下响应方式,如图2所示,具体包括以下步骤:S201,获得操作请求;可以理解的是,用户可以按动电子设备上的按钮或者触摸屏幕发出操作请求,进而电子设备便可以获得该操作请求。
在一种实施方式中,操作请求可能是用户通过语音信号发出的,那么当蓝牙耳机处于非工作状态时,也就是蓝牙耳机固定在电子设备上时,此时蓝牙耳机不能接收用户发出的语音信号,电子设备便可以通过自身的麦克风采集用户发出的语音信号,并对所采集的语音信号进行语音识别,进而获得操作请求。
例如,电子设备发出的语音信号对应的语音识别结果为“播放音乐《玩火》”,那么电子设备可以进一步对上述语音识别结果进行分析,确定用户请求播放音乐,并且所播放音乐的名称为《玩火》,然后获得内容为“播放音乐《玩火》”的操作请求。又例如,电子设备可能正接收到来电,那么用户可以发出“接听”等语音信号作为操作请求,那么电子设备便会获得该内容为“接听电话”的操作请求。
当蓝牙耳机处于工作状态时,也就是蓝牙耳机没有固定在电子设备上时,此时蓝牙耳机可以采集用户发出的语音信号,当然电子设备也可以采集用户发出的语音信号,那么电子设备便可以获得蓝牙耳机采集的语音信号和/或电子设备采集的语音信号,进而对所获得的语音信号进行语音识别,获得操作请求,这也是合理的。
在另一种实施方式中,操作请求可能是来电触发的,也就是说,电子设备接收到来电,那么电子设备便获得了接通电话的操作请求。
在另一种实施方式中,当电子设备检测到第一连接位置的电平发生变化时,且该电平变 化指示的是蓝牙耳机断开与电子设备的物理连接,那么此时电子设备也可以获得预设的操作请求,该预设的操作请求可以为开启拨号程序、或者开启语音控制模式等。
S202,响应所述操作请求,并获得所述操作请求对应的响应内容;获得了操作请求后,电子设备便可以响应该操作请求,进而获得操作请求对应的响应内容。
假设操作请求的内容为“播放音乐《玩火》”,那么电子设备便可以响应该操作指令,获得音乐《玩火》的音频数据,也就是响应内容。假设操作指令为“播放语音导航”,那么电设备便可以响应该操作指令,获得导航信息的音频数据。如果操作请求为接听电话,那么电子设备便会响应该操作请求,即接通电话,进而获得对端设备发送的语音信号,也就是响应内容。该对端设备为除电子设备及蓝牙耳机以外的设备。
S203,在所述蓝牙耳机处于工作状态的情况下,发送所述响应内容至所述蓝牙耳机,以使所述蓝牙耳机接收并播放所述响应内容。
在一种实施方式中,此时电子设备如果监测到第一连接位置的电平发生变化,且该电平变化指示的是蓝牙耳机断开与电子设备的物理连接,那么蓝牙耳机便进入工作状态,电子设备便可以发送响应内容至蓝牙耳机,进而蓝牙耳机便可以接收并播放该响应内容。
举例而言,如果电子设备获得了音乐《玩火》的音频数据或者语音信号等响应内容,此时监测到第一连接位置的电平发生变化,且该电平变化指示的是蓝牙耳机断开与电子设备的物理连接,那么电子设备便可以将该音频数据或者语音信号发送至蓝牙耳机,蓝牙耳机接收到该音频数据或者语音信号便可以进行音频数据或者语音信号的播放,用户便可以通过蓝牙耳机收听该音乐或者语音信号。
在另一种实施方式中,电子设备此时并未监测到第一连接位置的电平发生变化,但是此时蓝牙耳机并未与电子设备物理连接,那么蓝牙耳机处于工作状态,电子设备便可以发送响应内容至蓝牙耳机,进而蓝牙耳机便可以接收并播放该响应内容。
举例而言,如果电子设备获得了音乐《玩火》的音频数据或者语音信号等响应内容,此时监测到并未监测到第一连接位置的电平发生变化,但是此时蓝牙耳机并未与电子设备物理连接,那么电子设备便可以将该音频数据或者语音信号发送至蓝牙耳机,蓝牙耳机接收到该音频数据或者语音信号便可以进行音频数据或者语音信号的播放,用户便可以通过蓝牙耳机收听该音乐或者语音信号。
由上可见,电子设备在响应操作请求的过程中,基于上述设备控制方法,用户从电子设备上取下蓝牙耳机后,无需进行任何手动设置,便可以通过蓝牙耳机收听到响应内容,操作简单,用户体验好。
需要说明的是,如果蓝牙耳机在播放响应内容时,电子设备监测到第一连接位置的电平发生变化,说明此时用户将蓝牙耳机固定到电子设备上,那么电子设备便可以发送控制指令以使蓝牙耳机转换至非工作状态。进而,电子设备可以继续播放相应内容,或者,停止播放相应内容,这都是合理的。
在上述操作请求为语音交互请求情况下,作为本发明实施例的一种实施方式,所述响应所述操作请求,并获得所述操作请求对应的响应内容的步骤,可以包括:响应所述语音交互请求,并获得对端设备发送的第一语音信号。
可以理解的是,语音交互请求包括各种语音类的请求,例如来电、语音聊天等。电子设备获得该语音交互请求后,便可以响应该语音交互请求。假设语音交互请求为来电请求,那么电子设备便可以接通来电,进而便可以获得对端设备发送的第一语音信号,其中,对端设备为除电子设备及蓝牙耳机以外的设备。第一语音信号可以为该对端设备采集并发送至电子设备的,当然也可以是对端设备转发至电子设备的,这都是合理的。
在第一种实施方式中,电子设备获得语音交互请求后,监测到第一连接位置的电平发生变化,且该电平变化指示的是蓝牙耳机断开与电子设备的物理连接,那么电子设备便立即响应该语音交互请求,假设该语音交互请求为来电,那么便接通来电。
在第二种实施方式中,电子设备获得语音交互请求后,并未监测到第一连接位置的电平发生变化,但是此时蓝牙耳机并未与电子设备物理连接,那么蓝牙耳机处于工作状态,电子设备便立即响应该语音交互请求,假设该语音交互请求为来电,那么便接通来电。
在第三种实施方式中,电子设备获得语音交互请求后,并未监测到第一连接位置的电平发生变化,此时蓝牙耳机与电子设备物理连接,那么蓝牙耳机处于非工作状态,电子设备一般获得用户通过电子设备发出的响应操作后便响应该语音交互请求,假设该语音交互请求为来电,那么用户可能按动电子设备上的接听按钮,那么电子设备获得该响应操作后,便接通来电。
相应的,所述发送所述响应内容至所述蓝牙耳机,以使所述蓝牙耳机接收并播放所述响应内容的步骤,可以包括:发送所述第一语音信号至所述蓝牙耳机,以使所述蓝牙耳机接收并播放所述第一语音信号。
在电子设备获得对端设备发送的第一语音信号时,如果此时蓝牙耳机处于工作状态,也就是说,如果电子设备此时监测到第一连接位置的电平发生变化,且该电平变化指示的是蓝牙耳机断开与电子设备的物理连接,或者,此时蓝牙耳机不与电子设备物理连接,那么便响应该语音交互指令,进而,电子设备便可以将接收到的对端设备发送的第一语音信号发送至蓝牙耳机,蓝牙耳机接收到该第一语音信号后,便可以将其播放出来以便用户收听。
如果上述语音交互指令为来电,那么第一语音信号便为与用户进行通话的人发出的语音信号,对端设备将该第一语音信号发送至电子设备,电子设备进而将该第一语音信号发送至蓝牙耳机,那么蓝牙耳机便可以将该第一语音信号进行播放,那么用户也就可以听见与其通话的人所说的语音内容。
为了使与用户进行语音交互的人可以听到用户所说的语音内容,上述方法还可以包括:接收所述蓝牙耳机发送的第二语音信号;发送所述第二语音信号至所述对端设备,其中,所述第二语音信号为所述蓝牙耳机获得的用户发出的语音信号。
蓝牙耳机可以通过自身的麦克风采集用户发出的第二语音信号,并通过蓝牙连接将第二语音信号发送至电子设备,进而,电子设备接收到该第二语音信号后,便可以将该第二语音信号发送对端设备,那么与用户进行语音交互的人也就可以听到用户所说的语音内容,从而实现语音交互。
可见,在电子设备获得语音交互指令时,如果此时用户将蓝牙耳机从电子设备上取下,或蓝牙耳机正处于工作状态,那么便自动响应该语音交互指令,并通过蓝牙耳机播放及采集 语音信号,使用户可以通过蓝牙耳机进行语音交互,无需用户进行手动设置,操作方便,用户体验更佳。
需要说明的是,如果蓝牙耳机在播放第一语音信号时,电子设备监测到第一连接位置的电平发生变化,说明此时用户将蓝牙耳机固定到电子设备上,那么电子设备并可以发送控制指令以使蓝牙耳机转换至非工作状态。进而,电子设备可以继续播放第一语音信号,或者,结束对语音交互指令的响应,这都是合理的。
为了保证电子设备响应语音交互指令过程中的语音信号的质量,保证用户可以听清语音交互过程中对方发出的语音内容,作为本发明实施例的一种实施方式,如图3所示,上述方法还可以包括以下步骤:S301,检测所述第二语音信号的信号强度,并判断所述信号强度是否低于预设强度,如果低于预设强度,则执行步骤S302;如果不低于预设强度,则执行步骤S303;电子设备在接收到蓝牙耳机发送的第二语音信号时,可以检测所接收到的第二信号的信号强度,其中,检测第二信号的信号强度的方式可以采用现有任意信号强度检测方式,只要能够达到检测目的即可,在此不作具体限定。由于第二语音信号是电子设备需要发送至对端设备的,所以第二语音信号的信号强度直接影响电子设备响应该语音交互指令过程的质量。
需要说明的是,该预设强度可以由本领域技术人员根据语音交互指令的实际响应环境等因素进行确定,在此不做具体限定。
S302,发送使所述蓝牙耳机从工作状态切换至非工作状态的控制指令至所述蓝牙耳机,以使所述蓝牙耳机进入非工作状态,并播放所接收到的第一语音信号,获取第三语音信号,并发送所述第三语音信号至所述对端设备;当电子设备检测到第二语音信号的信号强度低于上述预设强度时,说明此时蓝牙耳机发送的第二语音信号的强度较弱,与用户进行语音交互的人很可能无法辨别第二语音信号的内容,那么,此时电子设备便可以发送控制指令至蓝牙耳机,以控制蓝牙耳机从工作状态转换至非工作状态,也就是说,此时便不再通过蓝牙耳机响应该语音交互指令。
进而,电子设备便可以通过自身的播放器播放所接收到的第一语音信号以便用户收听,并可以通过自身的麦克风获取第三语音信号,该第三语音信号即为电子设备获得的用户发出的语音信号。电子设备获得了第三语音信号后,便可以发送第三语音信号至端设备,那么与用户进行语音交互的人也就可以接收到该第三语音信号,进而,继续进行语音交互。
S303,检测所述第二语音信号的信噪比,并判断所述信噪比是否低于预设信噪比,如果低于预设信噪比,则执行步骤S304;如果不低于预设信噪比,则执行步骤S305;当电子设备检测到第二语音信号的信号强度不低于上述预设强度时,说明此时蓝牙耳机发送的第二语音信号的强度较强,为了进一步保证语音交互过程的信号质量,电子设备可以进一步检测第二语音信号的信噪比,可以理解的是,信噪比指的是信号与噪声的比例,因此信噪比越高,说明语音信号中的噪声越小,信噪比越低,说明语音信号中的噪声越大。
需要说明的是,该预设信噪比可以由本领域技术人员根据语音交互指令的实际响应环境等因素进行确定,在此不做具体限定。
S304,拒绝对所述第二语音信号进行处理;并获取所述第三语音信号,发送所述第三 语音信号至所述对端设备。
如果电子设备检测到第二语音信号的信噪比低于上述预设信噪比,说明此时第二语音信号中的噪声较大,那么,如果此时将所接收到的蓝牙耳机发送的第二语音信号发送至对端设备,很可能造成与用户进行语音交互的人无法辨别用户所说的语音内容,那么电子设备便可以拒绝对第二语音信号进行处理,也就是说,不将第二语音信号发送至对端设备,而是通过自身的麦克风采集第三语音信号,将第三语音信号发送至对端设备。
可以理解的是,由于此时只是蓝牙耳机所采集的第二语音信号的信噪比较低,这并不影响蓝牙耳机的播放器播放语音信号。因此,此时仍然可以通过蓝牙耳机播放第一语音信号。
S305,保持当前响应模式不变。
如果电子设备检测到第二语音信号的信噪比不低于上述预设信噪比,说明此时第二语音信号中的噪声较小,那么便可以继续保持蓝牙耳机在工作状态,即维持当前的响应模式不变,继续通过蓝牙耳机播放对端设备发送的第一语音信号,并通过蓝牙耳机采集用户发出的第二语音信号,并将该第二语音信号发送至对端设备。
可见,通过上述方式可以保证在响应语音交互指令过程中的信号质量,通过对信号强度及信噪比的监测,电子设备可以控制蓝牙耳机的工作状态,不需要用户进行手动设置,进一步提高用户体验。
作为本发明实施例的一种实施方式,为了实时监测蓝牙耳机的电量,保证蓝牙耳机电量充足,电子设备还可以具有第三连接位置,蓝牙耳机可以具有第四连接位置,电子设备与蓝牙耳机物理连接时,第三连接位置与第四连接位置电连接,相应的,如图4所示,上述方法还可以包括:S401,通过所述第三连接位置,接收所述蓝牙耳机通过所述第四连接位置发送的电量值;蓝牙耳机可以获取自身的电量值,并通过第四连接位置,将该电量值实时发送至电子设备,那么电子设备便可以通过与第四连接位置电连接的第三连接位置,接收到该电量值。
其中,第三连接位置及第四连接位置与上述第一连接位置及第二连接位置相似,第三连接位置及第四连接位置的具体实现形式,本发明实施例不做具体限定,例如,可以为弹片、端口等能形式,只要可以实现电连接,且可以传递电量值即可。
S402,判断所述电量值是否小于预设电量值;若为是,则执行步骤S403;若为否,则执行步骤S404;电子设备接收到上述电量值后,便可以判断所接收到的电量值是否小于预设电量值。其中,该预设电量值可以由本领域技术人员根据蓝牙耳机的实现使用情况确定,例如可以为蓝牙耳机额定电量的50%、30%、20%等,这都是合理的,在此不做具体限定。
S403,为所述蓝牙耳机充电。
当电子设备判断出蓝牙耳机当前电量值(即电子设备所接收的蓝牙耳机发送的电量值)小于预设电量值,说明此时蓝牙耳机的电量较少,那么为了保证蓝牙耳机可以满足工作需要,此时便可以为蓝牙耳机进行充电。
S404,不为所述蓝牙耳机充电。
当电子设备判断出蓝牙耳机当前电量值(即电子设备所接收的蓝牙耳机发送的电量值)不小于预设电量值,说明此时蓝牙耳机的电量还较多,那么便可以不为蓝牙耳机充电。
可见,通过上述监测电量的方式,可以在蓝牙耳机电量不足时为其充电,保证蓝牙耳机不会突然因电量不足进入非工作状态而影响用户体验。
为了防止蓝牙耳机丢失,在电子设备所发出的控制指令为:使得所述蓝牙耳机从非工作状态切换至工作状态的指令时,作为本发明的一种实施方式,如图5所示,上述方法还可以包括:S501,检测所述蓝牙耳机与所述电子设备是否断开蓝牙连接;若为是,则执行步骤S502;可以理解的是,电子设备所发出的控制指令为:使得蓝牙耳机从非工作状态切换至工作状态的指令时,蓝牙耳机是没有固定在电子设备上的,此时可能用户在使用蓝牙耳机,也可能蓝牙耳机掉落,容易发生丢失的危险。
那么为了在蓝牙耳机可能丢失的情况下,及时提醒用户,避免经济损失,电子设备可以检测蓝牙耳机与电子设备是否断开蓝牙连接,如果是,则可以执行步骤S502,如果未断开蓝牙连接,那么说明此时用户正在使用蓝牙耳机,那么蓝牙耳机便没有丢失,也就无需进行任何提醒操作。
S502,记录所述电子设备与所述蓝牙耳机断开蓝牙连接的时间;如果检测到蓝牙耳机与电子设备断开了蓝牙连接,那么此时蓝牙耳机很可能丢失,但是由于在蓝牙连接的信号不稳定时也可能出现短时的断开蓝牙连接现象,所以此时为了避免频繁提示用户蓝牙耳机丢失给用户带来困扰,电子设备可以记录与蓝牙耳机断开蓝牙连接的时间。
S503,当所述时间达到预设时间值时,输出蓝牙耳机丢失信息。
当所记录的时间达到预设时间值时,说明此时蓝牙耳机与电子设备断开蓝牙连接的时间较长,那么蓝牙耳机很可能丢失,此时电子设备便可以输出蓝牙耳机丢失信息以提醒用户蓝牙耳机可能丢失。
需要说明的是,上述预设时间值可以由本领域技术人员根据蓝牙耳机实际使用场景等因素进行设定,例如可以为8秒、10秒、20秒等,在此不做具体限定。
对于电子设备输出蓝牙耳机丢失信息的方式,本发明实施例也不做具体限定。例如,电子设备可以通过振动、亮灯、蜂鸣等方式输出蓝牙耳机丢失信息。如果电子设备具有显示屏幕,也可以通过显示屏幕输出蓝牙耳机丢失信息,当然,也可以采用上述方式中多种方式结合的方式输出蓝牙耳机丢失信息,这都是合理的。
由上可见,电子设备与蓝牙耳机未物理连接时,通过对蓝牙连接断开时间的记录,可以在蓝牙耳机可能丢失的情况下,及时输出蓝牙耳机丢失信息以提示用户,避免蓝牙耳机丢失给用户造成的无法使用问题及经济损失。
相应于上述方法实施例,本发明还要提供了另一种设备控制方法,下面对本发明实施例所提供的第二种设备控制方法进行介绍。
首先需要说明的是,本发明实施例所提供的第二种设备控制方法的可以应用于蓝牙耳机,该蓝牙耳机与电子设备可拆卸连接,二者可以通过卡扣等方式进行可拆卸连接。该电子设备具有第一连接位置,蓝牙耳机具有第二连接位置,当蓝牙耳机与电子设备物理连接时,第一连接位置与第二连接位置电连接。对于第一连接位置及第二连接位置的具体实现形式,本发明实施例不做具体限定,例如,可以为弹片、端口等能形式,只要可以实现电连接,且可以传递电信号即可。
如图6所示,一种设备控制方法,应用于蓝牙耳机,所述方法包括:S601,接收所述电子设备发送的控制指令;蓝牙耳机可以随时接受电子设备发送的控制指令,其中,该控制指令为:电子设备监测到第一连接位置的电平发生变化后,根据电平变化前、后的电平值生成的指令。
也就是说,电子设备可以监测上述第一连接位置的电平是否发生变化,如果第一连接位置的电平发生变化,那么说明电子设备的第一连接位置与蓝牙耳机的第二连接位置的电连接状态发生变化,也就是蓝牙耳机与电子设备的物理连接状态发生了改变。可以理解的是,此时用户可能将蓝牙耳机从电子设备上取下,或者,将原本已取下的蓝牙耳机固定到电子设备上。
在一种实施方式中,当蓝牙耳机固定在电子设备上时,电子设备的第一连接位置的电平为低电平,一般为0;当蓝牙耳机从电子设备上取下时,电子设备的第一连接位置的电平为高电平,一般为1。此时如果电子设备监测到第一连接位置的电平发生变化,且从低电平变为高电平,那么可以确定此时蓝牙耳机被从电子设备上取下,说明此时用户很可能需要使用蓝牙耳机,那么便可以向蓝牙耳机发送控制指令,以使蓝牙耳机进入工作状态,以便用户使用蓝牙耳机实现相应功能。相反,如果监测到第一连接位置的电平发生变化,且从高电平变为低电平,那么可以确定此时蓝牙耳机被固定到电子设备上,说明此时用户很可能不需要使用蓝牙耳机,那么便可以向蓝牙耳机发送控制指令,以使蓝牙耳机进入非工作状态,蓝牙耳机也就会接收到控制指令。
在另一种实施方式中,当蓝牙耳机固定在电子设备上时,电子设备的第一连接位置的电平为高电平,一般为1;当蓝牙耳机从电子设备上取下时,电子设备的第一连接位置的电平为低电平,一般为0。这样,通过第一连接位置的电平变化变可以确定蓝牙耳机与电子设备的物理连接状态。如果监测到第一连接位置的电平发生变化,且从低电平变为高电平,那么可以确定此时蓝牙耳机被固定到电子设备上,说明此时用户很可能不需要使用蓝牙耳机,那么便可以向蓝牙耳机发送控制指令,以使蓝牙耳机进入非工作状态。相反,如果监测到第一连接位置的电平发生变化,且从高电平变为低电平,那么可以确定此时蓝牙耳机被从电子设备上取下,说明此时用户很可能需要使用蓝牙耳机,那么便可以向蓝牙耳机发送控制指令,以使蓝牙耳机进入工作状态,蓝牙耳机也就会接收到控制指令。
其中,第一连接位置或第二连接位置的高电平可以通过电源管理芯片提供,例如可以为可提供1.5V、1.8V、2.0V等电压的电源管理芯片,这都是合理的。而第一连接位置或第二连接位置的低电平则可以通过接地的方式实现,即提供0V电压,进而实现低电平。
S602,根据所述控制指令,在工作状态和非工作状态之间进行状态切换。
蓝牙耳机接收到上述控制指令后,便可以根据所接收到的控制指令,在工作状态和非工作状态之间进行状态切换。可以理解的是,若控制指令为使蓝牙耳机从工作状态转换至非工作状态的指令,那么蓝牙耳机便转换至非工作状态,相反的,如果控制指令为使蓝牙耳机从非工作状态转换至工作状态的指令,那么蓝牙耳机便进入工作状态。
可见,本发明实施例所提供的设备控制方法中,蓝牙耳机与所述电子设备可拆卸连接,电子设备具有第一连接位置,蓝牙耳机具有第二连接位置,蓝牙耳机与电子设备物理连接时, 第一连接位置与第二连接位置电连接。接收所述电子设备发送的控制指令,并根据控制指令,在工作状态和非工作状态之间进行状态切换。可见,蓝牙耳机工作状态的切换不需要用户进行手动设置,而是由电子设备根据第一连接位置的电平变化前、后的电平值进行控制,降低了用户操作的繁琐度,提高了用户体验。
作为本发明实施例的一种实施方式,所述电子设备还具有第三连接位置,所述蓝牙耳机具有第四连接位置,所述电子设备与所述蓝牙耳机物理连接时,所述第三连接位置与所述第四连接位置电连接;上述方法还可以包括:
获得当前电量值;通过所述第四连接位置发送所述电量值至所述电子设备,以使所述电子设备在所述电量值小于预设电量值时为所述蓝牙耳机充电。
其中,第三连接位置及第四连接位置与上述第一连接位置及第二连接位置相似,第三连接位置及第四连接位置的具体实现形式,本发明实施例不做具体限定,例如,可以为弹片、端口等能形式,只要可以实现电连接,且可以传递电量值即可。
蓝牙耳机可以实时获取自身的电量值,并通过第四连接位置,将该电量值实时发送至电子设备,那么电子设备便可以通过与第四连接位置电连接的第三连接位置,接收到该电量值。
当电子设备判断出蓝牙耳机当前电量值(即电子设备所接收的蓝牙耳机发送的电量值)小于预设电量值,说明此时蓝牙耳机的电量较少,那么为了保证蓝牙耳机可以满足工作需要,可以为蓝牙耳机进行充电。当电子设备判断出蓝牙耳机当前电量值(即电子设备所接收的蓝牙耳机发送的电量值)不小于预设电量值,说明此时蓝牙耳机的电量还较多,那么便可以不为蓝牙耳机充电。
其中,该预设电量值可以由本领域技术人员根据蓝牙耳机的实现使用情况确定,例如可以为蓝牙耳机额定电量的50%、30%、20%等,这都是合理的,在此不做具体限定。
可见,通过上述方式,电子设备可以在蓝牙耳机电量不足时为其充电,保证蓝牙耳机不会突然因电量不足进入非工作状态而影响用户体验。
相应于上述方法实施例,本发明实施例还提供了设备控制装置,下面对本发明实施例所提供的第一种设备控制装置进行介绍。
如图7所示,一种设备控制装置,应用于具有蓝牙功能的电子设备;蓝牙耳机与所述电子设备可拆卸连接,所述电子设备具有第一连接位置,所述蓝牙耳机具有第二连接位置,所述蓝牙耳机与所述电子设备物理连接时,所述第一连接位置与所述第二连接位置电连接;所述装置包括:监测模块710,用于监测所述第一连接位置的电平是否发生变化;控制模块720,用于在所述第一连接位置的电平发生变化的情况下,根据所述第一连接位置的电平变化前、后的电平值,向所述蓝牙耳机发送控制指令,以使得所述蓝牙耳机在工作状态和非工作状态之间进行状态切换。
可见,本发明实施例所提供的设备控制装置中,蓝牙耳机与所述电子设备可拆卸连接,电子设备具有第一连接位置,蓝牙耳机具有第二连接位置,蓝牙耳机与电子设备物理连接时,第一连接位置与第二连接位置电连接。电子设备监测第一连接位置的电平是否发生变化,若为是,根据第一连接位置的电平变化前、后的电平值,向蓝牙耳机发送控制指令,以使得蓝牙耳机在工作状态和非工作状态之间进行状态切换。可见,蓝牙耳机工作状态的切换不需要 用户进行手动设置,而是由电子设备根据第一连接位置的电平变化前、后的电平值进行控制,降低了用户操作的繁琐度,提高了用户体验。
作为本发明实施例的一种实施方式,所述装置还可以包括:请求获得模块(图7中未示出),用于获得操作请求;请求响应模块(图7中未示出),用于响应所述操作请求,并获得所述操作请求对应的响应内容;内容发送模块(图7中未示出),用于在所述蓝牙耳机处于工作状态的情况下,发送所述响应内容至所述蓝牙耳机,以使所述蓝牙耳机接收并播放所述响应内容。
电子设备在响应操作请求的过程中,基于上述设备控制方法,用户从电子设备上取下蓝牙耳机后,无需进行任何手动设置,便可以通过蓝牙耳机收听到响应内容,操作简单,用户体验好。
作为本发明实施例的一种实施方式,所述请求获得模块,可以包括:语音信号获得单元(图7中未示出),用于获得所述蓝牙耳机采集的语音信号和/或所述电子设备采集的语音信号;操作请求获得单元(图7中未示出),用于对所获得的语音信号进行语音识别,获得操作请求。
作为本发明实施例的一种实施方式,所述操作请求可以为:语音交互请求;所述请求响应模块可以包括:第一语音信号获取单元(图7中未示出),用于响应所述语音交互请求,并获得对端设备发送的第一语音信号,其中,所述对端设备为除所述电子设备及所述蓝牙耳机以外的设备;所述内容发送模块可以包括:第一语音信号发送单元(图7中未示出),用于发送所述第一语音信号至所述蓝牙耳机,以使所述蓝牙耳机接收并播放所述第一语音信号;所述装置还可以包括:第二语音信号接收模块(图7中未示出),用于接收所述蓝牙耳机发送的第二语音信号,其中,所述第二语音信号为所述蓝牙耳机获得的用户发出的语音信号;第二语音信号发送模块(图7中未示出),用于发送所述第二语音信号至所述对端设备。
在电子设备获得语音交互指令时,如果此时用户将蓝牙耳机从电子设备上取下,或蓝牙耳机正处于工作状态,那么便自动响应该语音交互指令,并通过蓝牙耳机播放及采集语音信号,使用户可以通过蓝牙耳机进行语音交互,无需用户进行手动设置,操作方便,用户体验更佳。
作为本发明实施例的一种实施方式,所述装置还可以包括:第一检测模块(图7中未示出),用于检测所述第二语音信号的信号强度,并判断所述信号强度是否低于预设强度;第一切换模块(图7中未示出),用于在所述第二语音信号的信号强度低于预设强度的情况下,发送使所述蓝牙耳机从工作状态切换至非工作状态的控制指令至所述蓝牙耳机,以使所述蓝牙耳机进入非工作状态,并播放所接收到的第一语音信号,获取第三语音信号,并发送所述第三语音信号至所述对端设备,其中,所述第三语音信号为所述电子设备获得的用户发出的语音信号;第二检测模块(图7中未示出),用于在所述第二语音信号的信号强度不低于预设强度的情况下,检测所述第二语音信号的信噪比,并判断所述信噪比是否低于预设信噪比;第二切换模块(图7中未示出),用于在所述信噪比低于预设信噪比的情况下,拒绝对所述第二语音信号进行处理;并获取所述第三语音信号,发送所述第三语音信号至所述对端设备。
通过上述方式可以保证在响应语音交互指令过程中的信号质量,通过对信号强度及信噪比的监测,电子设备可以控制蓝牙耳机的工作状态,不需要用户进行手动设置,进一步提高 用户体验。
作为本发明实施例的一种实施方式,所述电子设备具有第三连接位置,所述蓝牙耳机具有第四连接位置,所述电子设备与所述蓝牙耳机物理连接时,所述第三连接位置与所述第四连接位置电连接;所述装置还可以包括:电量值接收模块(图7中未示出),用于通过所述第三连接位置,接收所述蓝牙耳机通过所述第四连接位置发送的电量值;电量值判断模块(图7中未示出),用于判断所述电量值是否小于预设电量值;充电模块(图7中未示出),用于在所述电量值小于预设电量值的情况下,为所述蓝牙耳机充电。
通过上述监测电量的方式,可以在蓝牙耳机电量不足时为其充电,保证蓝牙耳机不会突然因电量不足进入非工作状态而影响用户体验。
作为本发明实施例的一种实施方式,所述装置还可以包括:蓝牙连接检测模块(图7中未示出),用于在所述控制指令为:使得所述蓝牙耳机从非工作状态切换至工作状态的指令时,检测所述蓝牙耳机与所述电子设备是否断开蓝牙连接;事件记录模块(图7中未示出),用于在所述蓝牙耳机与所述电子设备断开蓝牙连接的情况下,记录所述电子设备与所述蓝牙耳机断开蓝牙连接的时间;丢失信息输出模块(图7中未示出),用于当所述时间达到预设时间值时,输出蓝牙耳机丢失信息。
电子设备与蓝牙耳机未物理连接时,通过对蓝牙连接断开时间的记录,可以在蓝牙耳机可能丢失的情况下,及时输出蓝牙耳机丢失信息以提示用户,避免蓝牙耳机丢失给用户造成的无法使用问题及经济损失。
下面对本发明实施例所提供的第二种设备控制装置进行介绍。
如图8所示,一种设备控制装置,应用于蓝牙耳机;所述蓝牙耳机与具有蓝牙功能的电子设备可拆卸连接,所述电子设备具有第一连接位置,所述蓝牙耳机具有第二连接位置,所述蓝牙耳机与所述电子设备物理连接时,所述第一连接位置与所述第二连接位置电连接;所述装置包括:指令接收模块810,用于接收所述电子设备发送的控制指令,其中,所述控制指令为:所述电子设备监测到所述第一连接位置的电平发生变化后,根据电平变化前、后的电平值生成的指令;工作状态转换模块820,用于根据所述控制指令,在工作状态和非工作状态之间进行状态切换。
可见,本发明实施例所提供的设备控制装置中,蓝牙耳机与所述电子设备可拆卸连接,电子设备具有第一连接位置,蓝牙耳机具有第二连接位置,蓝牙耳机与电子设备物理连接时,第一连接位置与第二连接位置电连接。接收所述电子设备发送的控制指令,并根据控制指令,在工作状态和非工作状态之间进行状态切换。可见,蓝牙耳机工作状态的切换不需要用户进行手动设置,而是由电子设备根据第一连接位置的电平变化前、后的电平值进行控制,降低了用户操作的繁琐度,提高了用户体验。
作为本发明实施例的一种实施方式,所述电子设备可以具有第三连接位置,所述蓝牙耳机具有第四连接位置,所述电子设备与所述蓝牙耳机物理连接时,所述第三连接位置与所述第四连接位置电连接;所述装置还可以包括:电量值获取模块(图8中未示出),用于获得当前电量值;电量值发送模块(图8中未示出),用于通过所述第四连接位置发送所述电量值至所述电子设备,以使所述电子设备在所述电量值小于预设电量值时为所述蓝牙耳机充电。
通过上述方式,电子设备可以在蓝牙耳机电量不足时为其充电,保证蓝牙耳机不会突然因电量不足进入非工作状态而影响用户体验。
本发明实施例还提供了一种设备控制系统,下面对本发明实施例所提供的一种设备控制系统进行介绍。
如图9所示,一种设备控制系统,所述系统包括具有蓝牙功能的电子设备910及蓝牙耳机920,所述蓝牙耳机920与所述电子设备910可拆卸连接,所述电子设备910具有第一连接位置,所述蓝牙耳机920具有第二连接位置,所述蓝牙耳机920与所述电子设备910物理连接时,所述第一连接位置与所述第二连接位置电连接;其中,所述电子设备910,用于监测所述第一连接位置的电平是否发生变化;在所述第一连接位置的电平发生变化的情况下,根据所述第一连接位置的电平变化前、后的电平值,向所述蓝牙耳机发送控制指令;所述蓝牙耳机920,用于接收所述控制指令,并根据所述控制指令,在工作状态和非工作状态之间进行状态切换。
可见,本发明实施例所提供的设备控制系统中,蓝牙耳机与所述电子设备可拆卸连接,电子设备具有第一连接位置,蓝牙耳机具有第二连接位置,蓝牙耳机与电子设备物理连接时,第一连接位置与第二连接位置电连接。接收所述电子设备发送的控制指令,并根据控制指令,在工作状态和非工作状态之间进行状态切换。可见,蓝牙耳机工作状态的切换不需要用户进行手动设置,而是由电子设备根据第一连接位置的电平变化前、后的电平值进行控制,降低了用户操作的繁琐度,提高了用户体验。
作为本发明实施例的一种实施方式,所述电子设备910还可以用于获得操作请求;响应所述操作请求,并获得所述操作请求对应的响应内容;在所述蓝牙耳机处于工作状态的情况下,发送所述响应内容至所述蓝牙耳机,以使所述蓝牙耳机接收并播放所述响应内容。
作为本发明实施例的一种实施方式,所述电子设备910具体可以用于获得所述蓝牙耳机采集的语音信号和/或所述电子设备采集的语音信号;对所获得的语音信号进行语音识别,获得操作请求。
作为本发明实施例的一种实施方式,所述操作请求为:语音交互请求;所述电子设备910具体可以用于响应所述语音交互请求,并获得对端设备发送的第一语音信号,其中,所述对端设备为除所述电子设备及所述蓝牙耳机以外的设备;所述电子设备910具体可以用于发送所述第一语音信号至所述蓝牙耳机,以使所述蓝牙耳机接收并播放所述第一语音信号;所述电子设备910还可以用于接收所述蓝牙耳机发送的第二语音信号,其中,所述第二语音信号为所述蓝牙耳机获得的用户发出的语音信号;发送所述第二语音信号至所述对端设备。
作为本发明实施例的一种实施方式,所述电子设备910还可以用于检测所述第二语音信号的信号强度,并判断所述信号强度是否低于预设强度;如果低于预设强度,则发送使所述蓝牙耳机从工作状态切换至非工作状态的控制指令至所述蓝牙耳机,以使所述蓝牙耳机进入非工作状态,并播放所接收到的第一语音信号,获取第三语音信号,并发送所述第三语音信号至所述对端设备,其中,所述第三语音信号为所述电子设备获得的用户发出的语音信号;如果不低于预设强度,则检测所述第二语音信号的信噪比,并判断所述信噪比是否低于预设信噪比;如果低于预设信噪比,则拒绝对所述第二语音信号进行处理;并获取所述第三语音 信号,发送所述第三语音信号至所述对端设备。
作为本发明实施例的一种实施方式,所述电子设备具有第三连接位置,所述蓝牙耳机具有第四连接位置,所述电子设备与所述蓝牙耳机物理连接时,所述第三连接位置与所述第四连接位置电连接;所述电子设备910还可以用于通过所述第三连接位置,接收所述蓝牙耳机通过所述第四连接位置发送的电量值;判断所述电量值是否小于预设电量值;若为是,则为所述蓝牙耳机充电。
作为本发明实施例的一种实施方式,所述电子设备910还可以用于在所述控制指令为:使得所述蓝牙耳机从非工作状态切换至工作状态的指令时,检测所述蓝牙耳机与所述电子设备是否断开蓝牙连接;若为是,则记录所述电子设备与所述蓝牙耳机断开蓝牙连接的时间;
当所述时间达到预设时间值时,输出蓝牙耳机丢失信息。
作为本发明实施例的一种实施方式,所述电子设备具有第三连接位置,所述蓝牙耳机具有第四连接位置,所述电子设备与所述蓝牙耳机物理连接时,所述第三连接位置与所述第四连接位置电连接;所述蓝牙耳机还用于,获得当前电量值;通过所述第四连接位置发送所述电量值至所述电子设备,以使所述电子设备在所述电量值小于预设电量值时为所述蓝牙耳机充电。
对于上述装置及系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。
以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。

Claims (11)

  1. 一种设备控制方法,其特征在于,应用于具有蓝牙功能的电子设备;蓝牙耳机与所述电子设备可拆卸连接,所述电子设备具有第一连接位置,所述蓝牙耳机具有第二连接位置,所述蓝牙耳机与所述电子设备物理连接时,所述第一连接位置与所述第二连接位置电连接;所述方法包括:监测所述第一连接位置的电平是否发生变化;若为是,根据所述第一连接位置的电平变化前、后的电平值,向所述蓝牙耳机发送控制指令,以使得所述蓝牙耳机在工作状态和非工作状态之间进行状态切换。
  2. 如权利要求1所述的方法,其特征在于,所述方法还包括:获得操作请求;响应所述操作请求,并获得所述操作请求对应的响应内容;在所述蓝牙耳机处于工作状态的情况下,发送所述响应内容至所述蓝牙耳机,以使所述蓝牙耳机接收并播放所述响应内容。
  3. 如权利要求2所述的方法,其特征在于,所述操作请求为:语音交互请求;所述响应所述操作请求,并获得所述操作请求对应的响应内容的步骤,包括:响应所述语音交互请求,并获得对端设备发送的第一语音信号,其中,所述对端设备为除所述电子设备及所述蓝牙耳机以外的设备;所述发送所述响应内容至所述蓝牙耳机,以使所述蓝牙耳机接收并播放所述响应内容的步骤,包括:发送所述第一语音信号至所述蓝牙耳机,以使所述蓝牙耳机接收并播放所述第一语音信号;所述方法还包括:接收所述蓝牙耳机发送的第二语音信号,其中,所述第二语音信号为所述蓝牙耳机获得的用户发出的语音信号;发送所述第二语音信号至所述对端设备。
  4. 如权利要求3所述的方法,其特征在于,所述方法还包括:检测所述第二语音信号的信号强度,并判断所述信号强度是否低于预设强度;如果低于预设强度,则发送使所述蓝牙耳机从工作状态切换至非工作状态的控制指令至所述蓝牙耳机,以使所述蓝牙耳机进入非工作状态,并播放所接收到的第一语音信号,获取第三语音信号,并发送所述第三语音信号至所述对端设备,其中,所述第三语音信号为所述电子设备获得的用户发出的语音信号;如果不低于预设强度,则检测所述第二语音信号的信噪比,并判断所述信噪比是否低于预设信噪比;如果低于预设信噪比,则拒绝对所述第二语音信号进行处理;并获取所述第三语音信号,发送所述第三语音信号至所述对端设备。
  5. 如权利要求1所述的方法,其特征在于,所述电子设备具有第三连接位置,所述蓝牙耳机具有第四连接位置,所述电子设备与所述蓝牙耳机物理连接时,所述第三连接位置与所述第四连接位置电连接;所述方法还包括:通过所述第三连接位置,接收所述蓝牙耳机通过所述第四连接位置发送的电量值;判断所述电量值是否小于预设电量值;若为是,则为所述蓝牙耳机充电。
  6. 如权利要求5所述的方法,其特征在于,在所述控制指令为:使得所述蓝牙耳机从非工作状态切换至工作状态的指令时,所述方法还包括:检测所述蓝牙耳机与所述电子设备是否断开蓝牙连接;若为是,则记录所述电子设备与所述蓝牙耳机断开蓝牙连接的时间;当所述时间达到预设时间值时,输出蓝牙耳机丢失信息。
  7. 一种设备控制方法,其特征在于,应用于蓝牙耳机;所述蓝牙耳机与具有蓝牙功能的电子设备可拆卸连接,所述电子设备具有第一连接位置,所述蓝牙耳机具有第二连接位置,所述蓝牙耳机与所述电子设备物理连接时,所述第一连接位置与所述第二连接位置电连接;所述方法包括:接收所述电子设备发送的控制指令,其中,所述控制指令为:所述电子设备监测到所述第一连接位置的电平发生变化后,根据电平变化前、后的电平值生成的指令;根据所述控制指令,在工作状态和非工作状态之间进行状态切换。
  8. 如权利要求7所述的方法,其特征在于,所述电子设备具有第三连接位置,所述蓝 牙耳机具有第四连接位置,所述电子设备与所述蓝牙耳机物理连接时,所述第三连接位置与所述第四连接位置电连接;所述方法还包括:获得当前电量值;通过所述第四连接位置发送所述电量值至所述电子设备,以使所述电子设备在所述电量值小于预设电量值时为所述蓝牙耳机充电。
  9. 一种设备控制装置,其特征在于,应用于具有蓝牙功能的电子设备;蓝牙耳机与所述电子设备可拆卸连接,所述电子设备具有第一连接位置,所述蓝牙耳机具有第二连接位置,所述蓝牙耳机与所述电子设备物理连接时,所述第一连接位置与所述第二连接位置电连接;所述装置包括:监测模块,用于监测所述第一连接位置的电平是否发生变化;控制模块,用于在所述第一连接位置的电平发生变化的情况下,根据所述第一连接位置的电平变化前、后的电平值,向所述蓝牙耳机发送控制指令,以使得所述蓝牙耳机在工作状态和非工作状态之间进行状态切换。
  10. 一种设备控制装置,其特征在于,应用于蓝牙耳机;所述蓝牙耳机与具有蓝牙功能的电子设备可拆卸连接,所述电子设备具有第一连接位置,所述蓝牙耳机具有第二连接位置,所述蓝牙耳机与所述电子设备物理连接时,所述第一连接位置与所述第二连接位置电连接;所述装置包括:指令接收模块,用于接收所述电子设备发送的控制指令,其中,所述控制指令为:所述电子设备监测到所述第一连接位置的电平发生变化后,根据电平变化前、后的电平值生成的指令;工作状态转换模块,用于根据所述控制指令,在工作状态和非工作状态之间进行状态切换。
  11. 一种设备控制系统,其特征在于,所述系统包括具有蓝牙功能的电子设备及蓝牙耳机,所述蓝牙耳机与所述电子设备可拆卸连接,所述电子设备具有第一连接位置,所述蓝牙耳机具有第二连接位置,所述蓝牙耳机与所述电子设备物理连接时,所述第一连接位置与所述第二连接位置电连接;其中,所述电子设备,用于监测所述第一连接位置的电平是否发生变化;在所述第一连接位置的电平发生变化的情况下,根据所述第一连接位置的电平变化前、后的电平值,向所述蓝牙耳机发送控制指令;所述蓝牙耳机,用于接收所述控制指令,并根据所述控制指令,在工作状态和非工作状态之间进行状态切换。
PCT/CN2018/084403 2017-05-03 2018-04-25 一种设备控制方法、装置及系统 WO2018201943A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710304661.7 2017-05-03
CN201710304661.7A CN107135438B (zh) 2017-05-03 2017-05-03 一种设备控制方法、装置及系统

Publications (1)

Publication Number Publication Date
WO2018201943A1 true WO2018201943A1 (zh) 2018-11-08

Family

ID=59716717

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/084403 WO2018201943A1 (zh) 2017-05-03 2018-04-25 一种设备控制方法、装置及系统

Country Status (2)

Country Link
CN (1) CN107135438B (zh)
WO (1) WO2018201943A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107135438B (zh) * 2017-05-03 2020-01-10 北京一数科技有限公司 一种设备控制方法、装置及系统
CN109473097B (zh) * 2017-09-08 2021-08-10 北京君林科技有限公司 一种智能语音设备及其控制方法
CN109618417B (zh) * 2018-12-07 2021-08-06 歌尔科技有限公司 一种交互实现方法、系统、配件以及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050059344A1 (en) * 2003-09-12 2005-03-17 Chia-Hao Chang Accommodation device for bluetooth earphone
CN201114038Y (zh) * 2007-07-25 2008-09-10 中兴通讯股份有限公司 一种蓝牙手机及其蓝牙耳机
WO2009012633A1 (fr) * 2007-07-26 2009-01-29 Shanghai Hewlett-Packard Co., Ltd Oreillette bluetooth et dispositif de machine principale l'appliquant
CN202524445U (zh) * 2012-04-28 2012-11-07 叶晓林 带有蓝牙耳机的手机
CN107135438A (zh) * 2017-05-03 2017-09-05 北京数科技有限公司 一种设备控制方法、装置及系统

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10666785B2 (en) * 2014-07-28 2020-05-26 Huawei Technologies Co., Ltd. Bluetooth communication method and device
CN104702742A (zh) * 2015-03-26 2015-06-10 福建时中通讯科技有限公司 一种将蓝牙耳机放置在腕式手机表带上的方法
CN104868932B (zh) * 2015-04-30 2017-08-04 青岛歌尔声学科技有限公司 一种可穿戴电子设备及其通信方法及装置
CN105245644B (zh) * 2015-09-21 2018-09-07 广东欧珀移动通信有限公司 电话手表和电话手表的表盘
CN106507249A (zh) * 2016-12-02 2017-03-15 歌尔科技有限公司 一种手环

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050059344A1 (en) * 2003-09-12 2005-03-17 Chia-Hao Chang Accommodation device for bluetooth earphone
CN201114038Y (zh) * 2007-07-25 2008-09-10 中兴通讯股份有限公司 一种蓝牙手机及其蓝牙耳机
WO2009012633A1 (fr) * 2007-07-26 2009-01-29 Shanghai Hewlett-Packard Co., Ltd Oreillette bluetooth et dispositif de machine principale l'appliquant
CN202524445U (zh) * 2012-04-28 2012-11-07 叶晓林 带有蓝牙耳机的手机
CN107135438A (zh) * 2017-05-03 2017-09-05 北京数科技有限公司 一种设备控制方法、装置及系统

Also Published As

Publication number Publication date
CN107135438B (zh) 2020-01-10
CN107135438A (zh) 2017-09-05

Similar Documents

Publication Publication Date Title
WO2018201944A1 (zh) 一种设备控制方法及装置
US11616871B2 (en) Mobile system with wireless earbud
US10630826B2 (en) Information processing device
WO2019090726A1 (zh) 选择蓝牙设备的方法、终端和系统
US8588849B2 (en) System and method for resuming media
US20200404089A1 (en) Wearable Personal Wireless Media Station
WO2020019820A1 (zh) 麦克风堵孔检测方法及相关产品
WO2013087099A1 (en) Headset base with holder for mobile communication device
JP2011125015A (ja) 携帯用端末機におけるイヤホン装着を認識する装置及びその方法
WO2018201943A1 (zh) 一种设备控制方法、装置及系统
WO2020019843A1 (zh) 麦克风堵孔检测方法及相关产品
CN115190197B (zh) 基于蓝牙耳机的通话方法、装置及存储介质
CN101938546A (zh) 一种基于手机的耳机麦克风检测方法及手机
CN108432220B (zh) 一种切换通话模式的方法和终端
CN108566221B (zh) 通话控制方法及相关设备
CN103795873A (zh) 一种根据通话状态提示用户响应的方法及装置
US10230830B2 (en) Sensor-based mute control for a softphone client
JP2017046280A (ja) 電子機器
CN106657675B (zh) 一种通过蓝牙播放设备播放移动终端音视频的方法及系统
CN109274827A (zh) 自动接听手机通话的方法、装置、设备及介质
CN210986386U (zh) 一种tws蓝牙耳机
WO2021208864A1 (zh) 一种声音通道管理方法、系统和移动终端
US20240187510A1 (en) Wearable Personal Wireless Media Station
WO2020097914A1 (zh) 一种音频模式调节的方法、装置及电子设备
JP2021093760A (ja) 情報処理装置、携帯電話及びシステム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18794170

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18794170

Country of ref document: EP

Kind code of ref document: A1