CN106686747B - Method and device for controlling WeChat voice broadcast and wearable device - Google Patents

Method and device for controlling WeChat voice broadcast and wearable device Download PDF

Info

Publication number
CN106686747B
CN106686747B CN201611236943.XA CN201611236943A CN106686747B CN 106686747 B CN106686747 B CN 106686747B CN 201611236943 A CN201611236943 A CN 201611236943A CN 106686747 B CN106686747 B CN 106686747B
Authority
CN
China
Prior art keywords
state
call
current call
audio gateway
bluetooth headset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611236943.XA
Other languages
Chinese (zh)
Other versions
CN106686747A (en
Inventor
张路伟
胡明辉
秦振华
岳公和
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN201611236943.XA priority Critical patent/CN106686747B/en
Publication of CN106686747A publication Critical patent/CN106686747A/en
Application granted granted Critical
Publication of CN106686747B publication Critical patent/CN106686747B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/3827Portable transceivers
    • H04B1/385Transceivers carried on the body, e.g. in helmets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device
    • 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/1091Details not provided for in groups H04R1/1008 - H04R1/1083
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/3827Portable transceivers
    • H04B1/385Transceivers carried on the body, e.g. in helmets
    • H04B2001/3861Transceivers carried on the body, e.g. in helmets carried in a hand or on fingers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Environmental & Geological Engineering (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method, a device and wearable equipment for controlling WeChat voice broadcast, wherein the method comprises the following steps: receiving a state update report sent by an audio gateway device; sending a query instruction for querying the current call state to the audio gateway device according to the state update report; receiving a current call state list returned by the audio gateway device according to the query instruction; judging whether the current call is a WeChat voice call or not according to the current call state list; judging whether the wearable equipment is in a Bluetooth headset use state or not; if the current call is a WeChat voice call and the wearable device is not in a Bluetooth headset use state, an instruction for forbidding establishing a voice link is sent to the audio gateway device so as to perform WeChat voice broadcast at one end of the audio gateway device.

Description

Method and device for controlling WeChat voice broadcast and wearable device
Technical Field
The invention relates to a WeChat voice broadcast control technology of wearable equipment with a Bluetooth headset function, in particular to a method for controlling WeChat voice broadcast, a device for controlling WeChat voice broadcast and wearable equipment with the Bluetooth headset function.
Background
In recent years, hundreds of millions of consumers have begun to use the WeChat voice call function. As an audio transmission device, the bluetooth headset not only can be used for listening to music, but also can be used for performing WeChat voice call and mobile network call, and therefore, in order to improve the practicability of the wearable device, part of the wearable devices currently have the bluetooth headset function.
Under the state that wearable equipment and audio gateway devices such as cell-phone keep bluetooth to be connected, if detect the speech conversation incident of believe a little, directly establish the voice link between audio gateway device and wearable equipment at present to carry out the broadcast of the pronunciation of letter a little through wearable equipment, if after establishing the voice link, detect that wearable equipment is not in bluetooth headset user state, then break off the voice link that has already established again, in order to carry out the broadcast of the pronunciation of letter a little at the cell-phone end. Because the switching scheme is carried out after the voice link is established, the problem of incomplete voice broadcasting is likely to occur, and the user experience is reduced.
Disclosure of Invention
An object of an embodiment of the present invention is to provide a new technical solution for controlling a WeChat voice to be broadcast at an audio gateway device when an audio gateway device such as a mobile phone and a wearable device with a bluetooth headset function maintain a bluetooth connection.
According to a first aspect of the present invention, there is provided a method of controlling a WeChat Voice broadcast for a wearable device having a Bluetooth headset function, the method comprising:
receiving a state update report sent by an audio gateway device;
sending a query instruction for querying the current call state to the audio gateway device according to the state update report;
receiving a current call state list returned by the audio gateway device according to the query instruction;
judging whether the current call is a WeChat voice call or not according to the current call state list;
judging whether the wearable equipment is in a Bluetooth headset use state or not;
and if the current call is a WeChat voice call and the wearable equipment is not in a Bluetooth earphone using state, sending a command for forbidding establishing a voice link to the audio gateway device so as to perform WeChat voice broadcast at one end of the audio gateway device.
Optionally, the determining, according to the current call state list, whether the current call is a WeChat voice call includes:
extracting a call connection number from the current call state list;
judging whether the length of the call connection number is equal to that of the telephone number or not;
if not, determining that the current call is the WeChat voice call.
Optionally, the query instruction is an AT + CLCC instruction.
Optionally, the command for prohibiting the establishment of the voice link is an AT + CHUP command.
Optionally, the sending, according to the status update report, an inquiry instruction for inquiring a current call status to the audio gateway apparatus includes:
judging whether an effective call exists according to the state updating report;
if yes, an inquiry instruction for inquiring the current call state is sent to the audio gateway device.
According to a second aspect of the present invention, there is provided an apparatus for controlling a WeChat Voice broadcast for a wearable device having a Bluetooth headset function, the apparatus comprising:
a report receiving module, configured to receive a status update report sent by the audio gateway device;
the call state query module is used for sending a query instruction for querying the current call state to the audio gateway device according to the state update report;
a state list receiving module, configured to receive a current call state list returned by the audio gateway device according to the query instruction;
the call type judging module is used for judging whether the current call is a WeChat voice call or not according to the current call state list;
the using state judging module is used for judging whether the wearable equipment is in a Bluetooth headset using state or not; and the number of the first and second groups,
and the broadcast switching module is used for sending an instruction for forbidding establishing a voice link to the audio gateway device under the condition that the current call is a WeChat voice call and the wearable equipment is not in the use state of the Bluetooth headset, so that one end of the audio gateway device carries out WeChat voice broadcast.
Optionally, the call type determining module includes:
a number extraction unit, configured to extract a call connection number from the current call state list;
and the type judging unit is used for judging whether the length of the call connection number is equal to that of the telephone number or not, and if not, determining that the current call is a WeChat voice call.
Optionally, the call state query module is specifically configured to determine whether there is an active call according to the state update report, and send a query instruction for querying a current call state to the audio gateway device when it is determined that there is an active call.
According to a third aspect of the present invention, there is provided a wearable device with bluetooth headset functionality, comprising the apparatus for controlling a WeChat Voice broadcast according to the second aspect of the present invention and a usage status detection apparatus arranged to output a signal to the apparatus for controlling a WeChat Voice broadcast indicating whether the wearable device is in a bluetooth headset usage status.
Optionally, the wearable device further comprises a wrist band and a device body adapted to the wrist band; the using state detection device is set to output a signal representing whether the wearable device is in the using state of the Bluetooth headset to the device for controlling the WeChat voice broadcast according to whether the device body is installed in the wrist strap.
The method and the device for controlling the WeChat voice broadcast have the advantages that after receiving the state update report sent by the audio gateway device, the wearable device with the Bluetooth headset function actively sends an inquiry instruction for inquiring the current call state to the audio gateway device, so that whether the current call is the WeChat voice call is judged according to the current call state list returned by the audio gateway device, and an instruction for forbidding the establishment of the voice link is sent to the audio gateway device when the WeChat voice call is determined, but the voice link is not allowed to be established between the wearable device and the audio gateway device, so that the aim of directly performing the WeChat voice broadcast at one end of the audio gateway device is fulfilled. Therefore, the method and the device for controlling the WeChat voice broadcast can avoid the problem of incomplete voice broadcast caused by disconnecting the connected voice link.
Other features of the present invention and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a schematic flowchart of an embodiment of a method for controlling a WeChat voice broadcast according to the present invention;
fig. 2 is a block schematic diagram of an embodiment of a device for controlling a WeChat voice broadcast according to the present invention;
fig. 3 is a block schematic diagram of a hardware structure of the apparatus for controlling a WeChat Voice broadcast according to the present invention.
Fig. 4 is a block schematic diagram of an embodiment of a wearable device according to the invention.
Detailed Description
Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
Fig. 1 is a flowchart illustrating an embodiment of a method for controlling a WeChat voice broadcast according to the present invention, wherein a solid line in fig. 1 represents a processing flow of a wearable device 100 and an audio gateway apparatus 200 themselves, and a dotted line represents a portion of interaction between the wearable device 100 and the audio gateway apparatus 200.
According to fig. 1, the method of the invention may comprise the following steps:
in step S201, the audio gateway apparatus 200 detects a change in the setting state, and if a change is detected, step S202 is executed.
The Audio Gateway (AG) device is, for example, a device having a voice input/output function, such as a mobile phone and a tablet computer.
The audio gateway device has a WIFI module and a Bluetooth module to provide a networking function and a Bluetooth communication function.
The set state may be a Hands-Free protocol (HFP) defined device state.
The setting state includes a call state, a signal strength, a battery charging state, and the like.
HFP defines status indicators for representing these states, such as "Service," "Call," "calletup," "callhold," "Signal," "Roam," "Battchg," etc., where Service is a Service availability status indicator, Call is a Call status indicator, calletup is a bluetooth specific Call indicator, callhold is a bluetooth specific Call status indicator, Signal is a Signal strength indicator, Roam is a roaming status indicator, Battchg is a battery charge indicator, etc.
Each status indicator represents a different status by a different value, and therefore the audio gateway device can detect a change in status by detecting a change in the value of the status indicator.
Step S202, a status update report is sent to the wearable device 100.
Based on the HFP protocol, the audio gateway apparatus 200 may report the change of the status through a result code containing a status indicator, for example "+ CIEV: < status indicator > < value > ".
In step S101, the wearable device 100 receives the status update report transmitted by the audio gateway apparatus 200.
In step S102, the wearable device 100 actively sends an inquiry command for inquiring the current call state to the audio gateway apparatus 200 according to the state update report.
The query command may be an AT command, specifically an AT + CLCC command.
The step S102 may further be: and judging whether an effective call exists according to the state updating report, if so, actively sending an inquiry instruction for inquiring the current call state to the audio gateway device 200.
This may be done, for example, to determine whether there is an active call based on the value of the call status indicator.
Therefore, the step S102 may further include:
step S1021, according to the status update report, determining the value of the call status indicator.
Step S1022 is executed to determine whether there is an active call according to the value of the call state indicator, and if so, send an inquiry command for inquiring the current call state to the audio gateway apparatus 200.
In step S203, the audio gateway apparatus 200 receives the inquiry command sent by the wearable device 100.
In step S204, the audio gateway apparatus 200 returns the current call state list to the wearable device 100 according to the received query instruction.
The current call state list includes parameters of call connection numbers.
In step S102, the wearable device 100 receives the current call state list returned by the audio gateway apparatus 200 according to the query instruction.
In step S103, the wearable device 100 determines whether the current call is a WeChat voice call according to the current call state list.
The step S103 may further include:
step S1031, extracting the call connection number from the current call state list.
Step S1032, judging whether the length of the call connection number is equal to the length of the telephone number, if not, determining that the current call is a WeChat voice call, and if so, determining that the current call is a cellular mobile network call.
In step S104, the wearable device 100 determines whether it is in a bluetooth headset use state.
The determination method and the corresponding usage state detection device may be performed according to the specific structural configuration of the wearable device 100.
Taking wearable device 100 as an example of a smart bracelet, the smart bracelet includes a wrist band, a device body adapted to the wrist band, and a usage state detection device, the usage state detection device is configured to output a signal indicating whether wearable device 100 is in a bluetooth headset usage state according to whether the device body is installed in the wrist band.
The use state detection device can comprise a switch circuit positioned in the equipment body and a thimble arranged on the wrist strap, and the switch state of the switch circuit is controlled by the thimble. When the equipment body is installed in the wrist strap, the thimble will be used for making the switch circuit switch on the switch circuit, and then to the main control chip output of equipment body and show that the equipment body is installed in the wrist strap (can wear equipment 100 and not be in bluetooth headset user state) the signal of telecommunication. When the device body is taken out of the wrist strap, the switch circuit is disconnected due to the loss of the function of the thimble, and an electric signal indicating that the device body is not installed in the wrist strap (i.e., the wearable device 100 is in a bluetooth headset use state) is output to the main control chip of the device body.
The use state detection device may also include at least one sensing device, such as a capacitive touch sensing button or a pressure sensor, so that the sensing device is disposed at a position of the device body around the speaker of the earphone, and the range of the periphery is determined such that the sensing device contacts with the ear when the speaker portion is inserted into the ear. This means that when the device body is worn, the signal that causes the capacitive touch sensitive key or the pressure sensor to output is changed from the second state signal to the first state signal (corresponding to the wearable device 100 being in the bluetooth headset use state), and when the device body is taken out to be placed in the bluetooth headset use state, the signal that causes the capacitive touch sensitive key or the pressure sensor to output is changed from the first state signal to the second state signal (corresponding to the wearable device 100 not being in the bluetooth headset use state).
Step S105, if the current call is a WeChat voice call and the wearable device 100 is not in the bluetooth headset using state, sending an instruction to prohibit establishing the voice link to the audio gateway apparatus 200, otherwise, sending an instruction to establish the voice link to the audio gateway apparatus 200.
In step S204, the audio gateway device 200 performs a wechat voice broadcast at one end of the audio gateway device according to the instruction for prohibiting establishment of the voice link sent by the wearable device 100.
The command for prohibiting establishing the voice link may be an AT command, specifically an AT + CHUP command.
Therefore, according to the method of the present invention, after receiving the status update report, the wearable device 100 does not directly perform the processing of establishing the voice link, but actively sends an inquiry instruction to the audio gateway device 200 to obtain the current call status, and then performs the processing of whether to establish the voice link according to whether the current call is a WeChat voice call in combination with the use status of the wearable device, specifically, when the current call is a WeChat voice call and the wearable device 100 is not in the use status of the bluetooth headset, directly sends an instruction of prohibiting establishing the voice link to the audio gateway device 200, so as to achieve the purpose of broadcasting the WeChat voice at one end of the audio gateway device 200. Therefore, compared with the operation method for disconnecting the established voice link in the prior art, the method can avoid the incomplete voice broadcast phenomena such as word loss and the like.
Fig. 2 is a block schematic diagram of an embodiment of an apparatus for controlling a WeChat Voice broadcast for a wearable device having Bluetooth headset functionality according to the present invention.
According to fig. 2, the apparatus 300 for controlling the WeChat voice announcement of a wearable device includes a report receiving module 301, a call state query module 302, a state list receiving module 303, a call type determination module 304, a use state determination module 305, and an announcement switching module 306.
The apparatus 400 for controlling the WeChat voice broadcast of the audio gateway apparatus includes a report sending module 401, a query instruction receiving module 402, a query instruction processing module 403, and a play processing module 404.
The report sending module 401 is configured to send a status update report to the wearable device.
The report receiving module 301 is configured to receive a status update report sent by the audio gateway device.
The call state query module 302 is configured to send a query instruction for querying a current call state to the audio gateway device according to the state update report.
The query instruction receiving module 402 is configured to receive a query instruction sent by the wearable device to query a current call state.
The query instruction processing module 403 is configured to return a current call state list to the wearable device according to the query instruction.
The state list receiving module 303 is configured to receive a current call state list returned by the audio gateway device according to the query instruction.
The call type determining module 304 is configured to determine whether the current call is a WeChat voice call according to the current call state list.
The use state determination module 305 is used to determine whether the wearable device is in a bluetooth headset use state.
This report switch module 306 is used for talking for the believe voice communication a little at present, and under the wearable equipment was not in the condition of bluetooth headset user state, sends the instruction of forbidding to establish voice link to carry out the letter voice broadcast a little at audio gateway device one end.
This report processing module 406 is used for according to the instruction of forbidding to establish the voice link that wearable equipment sent, carries out the believe voice broadcast a little at one end of self.
The call type determination module 304 may further include a number extraction unit and a type determination unit (not shown in the figure). The number extraction unit is used for extracting the call connection number from the current call state list. The type judging unit is used for judging whether the length of the call connection number is equal to that of the telephone number or not, and if not, the current call is determined to be a WeChat voice call.
The call state query module 302 may be specifically configured to determine whether there is an effective call according to the state update report, and send a query instruction for querying a current call state to the audio gateway device when it is determined that there is an effective call.
The call state query module 302 may further include a value determination unit and a query unit (not shown). The value determining unit is used for determining the value of the call state indicator according to the state updating report. The inquiring unit is used for judging whether an effective call exists according to the numerical value of the call state indicator, if so, an inquiring instruction for inquiring the current call state is sent to the audio gateway device.
Fig. 3 is a schematic diagram of a hardware structure of the apparatus for controlling WeChat voice broadcasting for a wearable device according to the present invention.
In this embodiment, the means for controlling the WeChat voice broadcast of the wearable device is labeled 500, according to the illustration of FIG. 3.
The apparatus 500 may include a memory 501 and a processor 502, the memory 501 for storing instructions for controlling the processor 502 to operate to perform a method of controlling a WeChat Voice broadcast for a wearable device according to the present invention.
The memory 501 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
Fig. 4 is a block schematic diagram of one structure of a wearable device according to the present invention.
As shown in fig. 4, the wearable device may comprise the apparatus 300 or the apparatus 500 described above.
In addition to this, the wearable device may further include a use state detection means 610, an input means 620, a sensor means 630, an interface means 640, a communication means 650, an audio input output means 660, a display means 670, and the like.
The usage state detection means 610 is arranged to detect the usage state of the wearable device and output a signal to the means 300/500 indicating whether the wearable device is in a bluetooth headset usage state.
Taking the wearable device as an intelligent bracelet as an example, the wearable device may include a wrist strap, a device body adapted to the wrist strap, and a usage status detecting device, the usage status detecting device is configured to output a signal indicating whether the wearable device is in a bluetooth headset usage status to the device 300/500 according to whether the device body is installed in the wrist strap, specifically, if the device body is detected to be installed in the wrist strap, it indicates that the wearable device is not in the bluetooth headset usage status, and if the device body is detected to be not installed in the wrist strap, it indicates that the wearable device is in the bluetooth headset usage status.
The input device 620 may include, for example, a touch screen, a key, and the like.
The sensor device 630 includes, for example, an acceleration sensor, a gyroscope, a GPS tracker, a pressure sensor, a capacitive touch sensitive key, an altimeter, a camera, a magnetometer, a tilt sensor, and the like.
The interface device 640 includes, for example, a USB interface, a network port, and the like.
The communication device 650 can perform wired or wireless communication (WIFI and bluetooth), for example.
The audio input/output device 660 includes a speaker and a microphone.
The display device 670 includes a screen and related components.
The embodiments in the present disclosure are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments, but it should be clear to those skilled in the art that the embodiments described above can be used alone or in combination with each other as needed. In addition, for the device embodiment, since it corresponds to the method embodiment, the description is relatively simple, and for relevant points, refer to the description of the corresponding parts of the method embodiment. The above-described apparatus embodiments are merely illustrative, in that modules illustrated as separate components may or may not be physically separate.
The present invention may be an apparatus, method and/or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied therewith for causing a processor to implement various aspects of the present invention.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present invention may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, aspects of the present invention are implemented by personalizing an electronic circuit, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA), with state information of computer-readable program instructions, which can execute the computer-readable program instructions.
Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, by software, and by a combination of software and hardware are equivalent.
Having described embodiments of the present invention, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein were chosen in order to best explain the principles of the embodiments, the practical application, or technical improvements to the techniques in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the invention is defined by the appended claims.

Claims (9)

1. A method for controlling a WeChat voice broadcast for a wearable device having Bluetooth headset functionality, the method comprising:
receiving a state update report sent by an audio gateway device;
sending a query instruction for querying the current call state to the audio gateway device according to the state update report;
receiving a current call state list returned by the audio gateway device according to the query instruction;
judging whether the current call is a WeChat voice call or not according to the current call state list;
judging whether the wearable equipment is in a Bluetooth headset use state or not;
if the current call is a WeChat voice call and the wearable equipment is not in a Bluetooth earphone using state, sending a command for forbidding establishing a voice link to the audio gateway device so as to perform WeChat voice broadcast at one end of the audio gateway device;
the mode of judging whether the wearable equipment is in the Bluetooth headset use state is as follows:
under the condition that the wearable equipment is an intelligent bracelet, the wearable equipment comprises a wrist strap, an equipment body matched with the wrist strap and a use state detection device; the using state detection device comprises a switch circuit positioned in an equipment body and a thimble arranged on the wrist strap, wherein the switch state of the switch circuit is controlled by the thimble, and the equipment body is arranged in the wrist strap or is taken out of the wrist strap to output an electric signal of whether the wearable equipment is in the using state of the Bluetooth headset so as to judge whether the wearable equipment is in the using state of the Bluetooth headset;
or, user state detection device includes that at least one is located the equipment body, be located the peripheral induction element of position of earphone loudspeaker, through by induction element corresponds with ear contact state induction element output signal's change learns whether wearable equipment bluetooth headset is in bluetooth headset user state, wherein, induction element is capacitanc touch-sensitive button or pressure sensor.
2. The method of claim 1, wherein the determining whether the current call is a WeChat voice call according to the current call state list comprises:
extracting a call connection number from the current call state list;
judging whether the length of the call connection number is equal to that of the telephone number or not;
if not, determining that the current call is the WeChat voice call.
3. The method of claim 1, wherein the query command is an AT + CLCC command.
4. The method of claim 1 wherein the command to inhibit establishment of a voice link is an AT + CHUP command.
5. The method according to any one of claims 1 to 4, wherein the sending, according to the status update report, a query instruction for querying a current call status to the audio gateway device comprises:
judging whether an effective call exists according to the state updating report;
if yes, an inquiry instruction for inquiring the current call state is sent to the audio gateway device.
6. A device that is used for little letter voice broadcast of control of wearable equipment, wearable equipment has bluetooth headset function, its characterized in that, the device includes:
the report receiving module is used for receiving a state updating report sent by the audio gateway device;
the call state query module is used for sending a query instruction for querying the current call state to the audio gateway device according to the state update report;
a state list receiving module, configured to receive a current call state list returned by the audio gateway device according to the query instruction;
the call type judging module is used for judging whether the current call is a WeChat voice call or not according to the current call state list;
the using state judging module is used for judging whether the wearable equipment is in a Bluetooth headset using state or not; and the number of the first and second groups,
the broadcast switching module is used for sending a command for forbidding establishing a voice link to the audio gateway device under the condition that the current call is a WeChat voice call and the wearable equipment is not in a Bluetooth headset use state, so that WeChat voice broadcast is carried out at one end of the audio gateway device;
the using state judging module is specifically as follows: under the condition that the wearable equipment is an intelligent bracelet, the wearable equipment comprises a wrist strap, an equipment body matched with the wrist strap and a use state detection device; the using state detection device comprises a switch circuit positioned in an equipment body and a thimble arranged on the wrist strap, wherein the switch state of the switch circuit is controlled by the thimble, and the equipment body is arranged in the wrist strap or is taken out of the wrist strap to output an electric signal of whether the wearable equipment is in the using state of the Bluetooth headset so as to judge whether the wearable equipment is in the using state of the Bluetooth headset;
or, user state detection device includes that at least one is located the equipment body, be located the peripheral induction element of position of earphone loudspeaker, through by induction element corresponds with ear contact state induction element output signal's change learns whether wearable equipment bluetooth headset is in bluetooth headset user state, wherein, induction element is capacitanc touch-sensitive button or pressure sensor.
7. The apparatus of claim 6, wherein the call type determining module comprises:
a number extraction unit, configured to extract a call connection number from the current call state list;
and the type judging unit is used for judging whether the length of the call connection number is equal to that of the telephone number or not, and if not, determining that the current call is a WeChat voice call.
8. The apparatus according to claim 6 or 7, wherein the call state querying module is specifically configured to determine whether there is an active call according to the state update report, and send a query instruction for querying a current call state to the audio gateway apparatus when it is determined that there is an active call.
9. A wearable device with Bluetooth headset function, characterized by comprising the device for controlling the voice broadcast of WeChat according to any one of claims 6 to 8.
CN201611236943.XA 2016-12-28 2016-12-28 Method and device for controlling WeChat voice broadcast and wearable device Active CN106686747B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611236943.XA CN106686747B (en) 2016-12-28 2016-12-28 Method and device for controlling WeChat voice broadcast and wearable device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611236943.XA CN106686747B (en) 2016-12-28 2016-12-28 Method and device for controlling WeChat voice broadcast and wearable device

Publications (2)

Publication Number Publication Date
CN106686747A CN106686747A (en) 2017-05-17
CN106686747B true CN106686747B (en) 2020-03-17

Family

ID=58872906

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611236943.XA Active CN106686747B (en) 2016-12-28 2016-12-28 Method and device for controlling WeChat voice broadcast and wearable device

Country Status (1)

Country Link
CN (1) CN106686747B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110620969B (en) * 2019-09-29 2021-03-12 歌尔科技有限公司 Voice call control method and device, wireless earphone and storage medium
CN110602681B (en) * 2019-09-30 2021-02-19 联想(北京)有限公司 Information processing method and electronic device
CN114253148A (en) * 2021-12-09 2022-03-29 英华达(上海)科技有限公司 Intelligent device control method, gateway device and intelligent device control system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103428367A (en) * 2013-08-09 2013-12-04 北京纽曼腾飞科技有限公司 Method for transferring incoming and outgoing calls through one key of intelligent telephone
CN105159648A (en) * 2015-06-23 2015-12-16 上海卓易科技股份有限公司 Voice information output method and electronic equipment
CN105656523A (en) * 2016-01-06 2016-06-08 广东欧珀移动通信有限公司 Bluetooth master device, incoming call processing method and device of the same

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8331334B2 (en) * 2007-07-20 2012-12-11 Broadcom Corporation Method and system for a handheld wireless communication device for configuring connection to and use of local and remote resources
EP2787790B1 (en) * 2012-11-16 2017-07-26 Huawei Device Co., Ltd. Method, mobile terminal and system for establishing bluetooth connection
CN104202488B (en) * 2014-09-29 2018-09-14 广东欧珀移动通信有限公司 A kind of method and system carrying out interactive voice by bluetooth headset and mobile terminal
CN104980589A (en) * 2015-06-29 2015-10-14 惠州Tcl移动通信有限公司 Mobile phone, smart watch and voice input method based on smart watch of mobile phone
CN105744022A (en) * 2016-04-08 2016-07-06 努比亚技术有限公司 Mobile terminal as well as voice playing method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103428367A (en) * 2013-08-09 2013-12-04 北京纽曼腾飞科技有限公司 Method for transferring incoming and outgoing calls through one key of intelligent telephone
CN105159648A (en) * 2015-06-23 2015-12-16 上海卓易科技股份有限公司 Voice information output method and electronic equipment
CN105656523A (en) * 2016-01-06 2016-06-08 广东欧珀移动通信有限公司 Bluetooth master device, incoming call processing method and device of the same

Also Published As

Publication number Publication date
CN106686747A (en) 2017-05-17

Similar Documents

Publication Publication Date Title
CN109068206B (en) Master-slave earphone switching control method and related product
CN109040887B (en) Master-slave earphone switching control method and related product
CN107683459B (en) Accompanying communication device behavior based on state changes of wearable device
US11102697B2 (en) Method for controlling earphone switching and earphone
US10820272B2 (en) Connection method and connection device for Bluetooth device
EP2352308B1 (en) Apparatus and method for recognizing earphone mounting in portable terminal
KR101568176B1 (en) Method for recognition ear phone in potable terminal and apparatus thereof
CN106686747B (en) Method and device for controlling WeChat voice broadcast and wearable device
CN108777827B (en) Wireless earphone, volume adjusting method and related product
US11445285B2 (en) Interactive control method and device of an earphone case, earphone case and storage medium
CN111131951A (en) Wireless earphone positioning method, wireless earphone, electronic equipment and storage medium
CN105100484A (en) Method, device and system for ending voice call
CN110972058B (en) Method and device for determining position of wireless communication device
CN115190197A (en) Bluetooth headset-based communication method and device and storage medium
CN107197074B (en) Address book management method and device, storage medium and electronic equipment
CN110933551A (en) Operation method and system of wireless earphone and wireless communication equipment
CN112806023B (en) Control method of wireless earphone and related product
US9503556B2 (en) Handling voice calls
CN105653903A (en) Application program authority management method and device
CN112019678B (en) Terminal, processing method and computer storage medium
CN112771889A (en) Audio channel replacing method and related equipment
CN107124512B (en) The switching method and apparatus of audio-frequency play mode
JP2017046280A (en) Electronic apparatus
JP2017504988A (en) Earphone interface adapter device connection switching method and terminal
CN112118031B (en) Voice interaction device, control method and equipment thereof, and computer storage medium

Legal Events

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