CN107969011A - The method being wirelessly transferred based on bluetooth and WiFi cooperative achievement voice data - Google Patents

The method being wirelessly transferred based on bluetooth and WiFi cooperative achievement voice data Download PDF

Info

Publication number
CN107969011A
CN107969011A CN201711208973.4A CN201711208973A CN107969011A CN 107969011 A CN107969011 A CN 107969011A CN 201711208973 A CN201711208973 A CN 201711208973A CN 107969011 A CN107969011 A CN 107969011A
Authority
CN
China
Prior art keywords
wifi
transmission
voice
bluetooth
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711208973.4A
Other languages
Chinese (zh)
Inventor
车云飞
蒲东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201711208973.4A priority Critical patent/CN107969011A/en
Publication of CN107969011A publication Critical patent/CN107969011A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/12Wireless traffic scheduling
    • H04W72/1215Wireless traffic scheduling for collaboration of different radio technologies
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/005Correction of errors induced by the transmission channel, if related to the coding algorithm
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/54Allocation or scheduling criteria for wireless resources based on quality criteria
    • H04W72/542Allocation or scheduling criteria for wireless resources based on quality criteria using measured or perceived quality
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals

Abstract

The present invention relates to digital communication technology, it discloses a kind of method being wirelessly transferred based on bluetooth and WiFi cooperative achievement voice data, solve it is single using easy distortion existing for Bluetooth transmission mode in conventional art, and it is single existed using WiFi transmission modes transmit the problem of unstable.This method may be summarized to be:Open WiFi UDP transmission channels and blue tooth RFCOMM transmission channel at the same time, and open heartbeat thread detection WiFi environment, if WiFi local network transports are unobstructed voice data transmission is carried out using WiFi UDP, otherwise, transmitted after being compressed to frame data using SBC by blue tooth RFCOMM transmission channel;After the data frame received by blue tooth RFCOMM transmission channel is carried out ISBC decompression reduction by phonetic incepting equipment, the data frame with WiFi UD channel receptions carries out frame synchronization, is then passed to voice application service.

Description

The method being wirelessly transferred based on bluetooth and WiFi cooperative achievement voice data
Technical field
The present invention relates to digital communication technology, and in particular to one kind is wireless based on bluetooth and WiFi cooperative achievement voice data The method of transmission.
Background technology
The rise of family's Internet of Things and the development of intelligent sound control technology greatly facilitate the life of people, also change The life of people, on the one hand intelligent sound control is advanced by leaps and bounds on speech recognition technology, on the other hand in voice collecting technology On also make rapid progress.The speech recognition of the voice data of high quality and high wisdom is complemented each other promotes language control technology step by step Development.
Existing equipment room voice data wireless transmission method mainly has Bluetooth transmission and WiFi transmission, inexpensive bluetooth Transmit it is bandwidth limited need to carry out data compression, and most of compression algorithm damages, for the A2DP of android system (agreement of Advanced Audio Distribution Profile Bluetooth audio frequencies mode) transport protocol, the SBC of acquiescence (subband compression coding and decoding algorithm) compression is lossy compression method, can cause certain distortion;For WiFi local network transports, in network WiFi UDP (User Datagram Protocol) easy packet loss in the case that environment is poor, actual measurement packet loss are likely to be breached 40%, and WiFi TCP (transmission control protocol) transmission is then easier to disconnect to cause Transmission.
The content of the invention
The technical problems to be solved by the invention are:It is proposed a kind of wireless based on bluetooth and WiFi cooperative achievement voice data The method of transmission, solves easy distortion existing for single use Bluetooth transmission mode in conventional art, and single using WiFi biographies Defeated mode, which exists, transmits the problem of unstable.
The present invention solves the technical solution that above-mentioned technical problem uses:
The method being wirelessly transferred based on bluetooth and WiFi cooperative achievement voice data, including:
A. by the WiFi UDP transmission channels and blue tooth RFCOMM transmission channel between voice sending device and receiving device Open at the same time;
B. the heartbeat thread detection WiFi environment between voice sending device and receiving device is opened;
C. the transmission of each frame data of voice sending device can all judge the testing result of current WiFi environment, such as Fruit WiFi local network transports are unobstructed then to carry out voice data transmission using WiFi UDP, otherwise, to this frame data using SBC (sons It is with pressure to reduce the staff decoding algorithm) be compressed after transmitted by blue tooth RFCOMM transmission channel;
D. the data frame received by blue tooth RFCOMM transmission channel is carried out ISBC (subband compression solutions by phonetic incepting equipment Code algorithm) decompression reduction after, with WiFi UD channel receptions data frame carry out frame synchronization, be then passed to voice application service.
Optimize as further, in step a, the WiFi UDP by between voice sending device and receiving device are transmitted Passage and blue tooth RFCOMM transmission channel are opened at the same time, are specifically included:
Open the bluetooth module of voice sending device and receiving device and establish connection;Voice sending device and reception are set Standby WiFi accesses same LAN, and ensures to open communicating for equipment room in LAN.
Optimize as further, in step b, the heartbeat thread detection opened between voice sending device and receiving device WiFi environment, specifically includes:Using heartbeat thread by equipment room transmit certain content PING bags and timing come monitor with Judge WiFi network state.
It is described to pass through the PING bags in equipment room transmission certain content and timing using heartbeat thread as further optimization To monitor and judge WiFi network state, specifically include:
Voice sending device sends PING bags to phonetic incepting equipment at regular intervals, and opens PONG bags and receive line Journey;
Phonetic incepting equipment replys PONG bags to voice sending device immediately after receiving PING bags;
Voice sending device judges WiFi environment after receiving PONG often losing a PONG response all increases by one Secondary network congestion marks COUNT, and WiFi transmission environments are defined after COUNT is more than 3:WiFi local network transports environment compared with Difference;Then restart to calculate heartbeat PONG responses, continuously normally receive after PONG is responded 3 times again to WiFi transmission environments It is defined:WiFi local network transports are unobstructed;
As further optimization, described is 100ms at regular intervals.
The beneficial effects of the invention are as follows:Use WiFi UDP (User Datagram Protocol) and blue tooth RFCOMM protocol Socket coordinating transmissions voice data, and using heartbeat thread monitoring WiFi environment, reach allotment transmission path in real time, maximum Limit ensures high quality and the high stability transmission of voice data.Voice data can be reduced in directions such as speech recognition controlleds in nothing Distortion after line transmission, improves phonetic recognization rate, and being wirelessly transferred aspect in real-time voice can be utilized well.
Brief description of the drawings
Fig. 1 is the schematic diagram based on bluetooth Yu WiFi cooperative achievement voice data real-time Transmissions in embodiment.
Embodiment
The present invention is directed to propose a kind of method being wirelessly transferred based on bluetooth and WiFi cooperative achievement voice data, solves to pass System technology is single to use easy distortion existing for Bluetooth transmission mode, and single unstable in the presence of transmitting using WiFi transmission modes The problem of.
The present invention uses the heart using WiFi UDP and the socket coordinating transmissions voice data of blue tooth RFCOMM protocol Wire jumper journey detects WiFi environment, reaches allotment transmission path in real time, ensures the high quality and high stable of voice data to greatest extent Property transmission.
Heartbeat thread monitors by transmitting PING bags and the timing of certain content in equipment room and judges network state, this On the one hand the way of sample is to take minimum bandwidth, on the other hand can detect the data transmission performance in LAN.According to Experimental standard is defined to the result of heartbeat inspecting:WiFi local network transports are unobstructed, WiFi local network transport environment is poor.
During data transfer, WiFi UDP transmission channels and blue tooth RFCOMM transmission channel are opened at the same time, each The transmission of frame data can all judge heart beat status, be passed if WiFi local network transports are unobstructed using WiFi UDP It is defeated, otherwise this frame data are carried out with further decoding after being transmitted after SBC is compressed by blue tooth RFCOMM transmission channel and passes to language Sound data receiver thread.
By the use of above-mentioned means, also can at utmost be protected in the case that WiFi lan networking environments are poor Demonstrate,prove voice data and transmit real-time and stability in equipment room, largely reduce distortion.
Embodiment:
As shown in Figure 1, wireless voice transmission using between voice sending device Dev A and phonetic incepting equipment Dev B as Example, realizes that the flow that stable and high-quality voice is wirelessly transferred includes:
1) Dev A and Dev B are subjected to bluetooth connection, and the WiFi of Dev A and Dev B is accessed into same local Net, and ensure to open equipment in net in LAN and communicate;
2) heartbeat between two equipment is set up by WiFi UDP, heartbeat content is as follows:
A) Dev A every 100ms to Dev B send PING bags (specific time interval can according to actual use demand carry out Adjustment), and open PONG bag receiving threads;
B) Dev B reply PONG bags to Dev A immediately after receiving PING bags;
C) Dev A judge WiFi environment after receiving PONG, and often losing a PONG response all increases once net Network Blocked flag COUNT, gives a definition WiFi transmission environments after COUNT is more than 3:WiFi local network transport environment is poor.So After restart to calculate heartbeat PONG response, continuously normally receive after PONG is responded 3 times again to fixed under WiFi transmission environments Justice:WiFi local network transports are unobstructed;
3) when carrying out voice data transmission, WiFi UDP transmission channels and bluetooth are opened at the same time between Dev A and Dev B RFCOMM transmission channels;
4) Dev A are to judging WiFi transmission environments after each frame data addition frame synchronization ID:
If WiFi local network transports are unobstructed, this frame data is transferred directly to Dev B by WiFi UDP channels;Such as Fruit WiFi local network transport environment is poor, is passed after this frame data progress SBC is compressed by blue tooth RFCOMM transmission channel It is defeated by Dev B;
5) data frame received by blue tooth RFCOMM transmission channel is carried out same WiFi after ISBC decompressions reduce by Dev B The frame that UDP is received passes to voice application service after carrying out frame synchronization.

Claims (5)

1. the method being wirelessly transferred based on bluetooth and WiFi cooperative achievement voice data, it is characterised in that including:
A. by the WiFi UDP transmission channels between voice sending device and receiving device and blue tooth RFCOMM transmission channel at the same time Open;
B. the heartbeat thread detection WiFi environment between voice sending device and receiving device is opened;
C. the transmission of each frame data of voice sending device can all judge the testing result of current WiFi environment, if WiFi local network transports are unobstructed then to carry out voice data transmission using WiFi UDP, and otherwise, this frame data is pressed using SBC Transmitted after contracting by blue tooth RFCOMM transmission channel;
D. after the data frame received by blue tooth RFCOMM transmission channel is carried out ISBC decompression reduction by phonetic incepting equipment, together The data frame of WiFi UD channel receptions carries out frame synchronization, is then passed to voice application service.
2. the method being wirelessly transferred as claimed in claim 1 based on bluetooth and WiFi cooperative achievement voice data, its feature are existed In, in step a, WiFi UDP transmission channels and the blue tooth RFCOMM transmission by between voice sending device and receiving device Passage is opened at the same time, is specifically included:
Open the bluetooth module of voice sending device and receiving device and establish connection;By voice sending device and receiving device WiFi accesses same LAN, and ensures to open communicating for equipment room in LAN.
3. the method being wirelessly transferred as claimed in claim 1 based on bluetooth and WiFi cooperative achievement voice data, its feature are existed In in step b, the heartbeat thread detection WiFi environment opened between voice sending device and receiving device, specifically includes:Profit Monitored by being transmitted PING bags and the timing of certain content in equipment room with heartbeat thread and judge WiFi network state.
4. the method being wirelessly transferred as claimed in claim 3 based on bluetooth and WiFi cooperative achievement voice data, its feature are existed In described to monitor by transmitting PING bags and the timing of certain content in equipment room using heartbeat thread and judge WiFi network State, specifically includes:
Voice sending device sends PING bags to phonetic incepting equipment at regular intervals, and opens PONG bag receiving threads;
Phonetic incepting equipment replys PONG bags to voice sending device immediately after receiving PING bags;
Voice sending device judges WiFi environment after receiving PONG often losing a PONG response all increases once net Network Blocked flag COUNT, is defined WiFi transmission environments after COUNT is more than 3:WiFi local network transport environment is poor; Then restart to calculate heartbeat PONG response, continuously normally receive after PONG is responded 3 times again to WiFi transmission environments into Row definition:WiFi local network transports are unobstructed.
5. the method being wirelessly transferred as claimed in claim 4 based on bluetooth and WiFi cooperative achievement voice data, its feature are existed In described is 100ms at regular intervals.
CN201711208973.4A 2017-11-27 2017-11-27 The method being wirelessly transferred based on bluetooth and WiFi cooperative achievement voice data Pending CN107969011A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711208973.4A CN107969011A (en) 2017-11-27 2017-11-27 The method being wirelessly transferred based on bluetooth and WiFi cooperative achievement voice data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711208973.4A CN107969011A (en) 2017-11-27 2017-11-27 The method being wirelessly transferred based on bluetooth and WiFi cooperative achievement voice data

Publications (1)

Publication Number Publication Date
CN107969011A true CN107969011A (en) 2018-04-27

Family

ID=61999027

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711208973.4A Pending CN107969011A (en) 2017-11-27 2017-11-27 The method being wirelessly transferred based on bluetooth and WiFi cooperative achievement voice data

Country Status (1)

Country Link
CN (1) CN107969011A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110517473A (en) * 2019-07-26 2019-11-29 安徽浩达电子科技有限公司 A kind of portable intelligent communication system and its working method
US10951243B2 (en) 2019-07-26 2021-03-16 Shure Acquisition Holdings, Inc. Wireless system having diverse transmission protocols
CN117135729A (en) * 2023-01-20 2023-11-28 荣耀终端有限公司 Multi-device cooperation method, system and terminal device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012010104A1 (en) * 2010-07-22 2012-01-26 Mediatek Inc. Method for wireless communication in a device with co-existence radio
CN102404093A (en) * 2010-09-10 2012-04-04 中国移动通信集团公司 Management method of data transmission modes and data transmission equipment
CN105611558A (en) * 2016-01-26 2016-05-25 杭州德澜科技有限公司 Equipment for performing ping packet test of WIFI module of IOT
CN106792954A (en) * 2016-12-16 2017-05-31 中南大学 A kind of bluetooth based on environment sensing and Wifi changing methods and transmission equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012010104A1 (en) * 2010-07-22 2012-01-26 Mediatek Inc. Method for wireless communication in a device with co-existence radio
CN102404093A (en) * 2010-09-10 2012-04-04 中国移动通信集团公司 Management method of data transmission modes and data transmission equipment
CN105611558A (en) * 2016-01-26 2016-05-25 杭州德澜科技有限公司 Equipment for performing ping packet test of WIFI module of IOT
CN106792954A (en) * 2016-12-16 2017-05-31 中南大学 A kind of bluetooth based on environment sensing and Wifi changing methods and transmission equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110517473A (en) * 2019-07-26 2019-11-29 安徽浩达电子科技有限公司 A kind of portable intelligent communication system and its working method
US10951243B2 (en) 2019-07-26 2021-03-16 Shure Acquisition Holdings, Inc. Wireless system having diverse transmission protocols
CN117135729A (en) * 2023-01-20 2023-11-28 荣耀终端有限公司 Multi-device cooperation method, system and terminal device

Similar Documents

Publication Publication Date Title
US10306380B2 (en) Hearing assistance system and method
CN107969011A (en) The method being wirelessly transferred based on bluetooth and WiFi cooperative achievement voice data
US20110090840A1 (en) Communication system for removing transmission overhead
WO2022068221A1 (en) Low-delay wireless audio sending and receiving method and device
MX2019008368A (en) 5g qos flow to radio bearer remapping.
WO2018213510A4 (en) Voice communication method
US8619731B2 (en) Fragmenting large packets in the presence of high priority packets
CN107750061B (en) Self-adaptive communication method and device from ZigBee to WiFi
CN106993317B (en) SSID (service set identifier) selection method and device based on dual-frequency wireless router
WO2021163954A1 (en) Data transmission method, apparatus, device, and system, and medium
US8045589B2 (en) Radio communication system with data structure change
US20200396681A1 (en) Wire-Free Bluetooth Communication System with Fast Pairing
US20060126586A1 (en) Wireless LAN device and method of monitoring status of wireless LAN
CN105532059B (en) Configuration indicating method and communication equipment
US20100254310A1 (en) Packet sniffer for ad hoc network
JP2019500765A5 (en)
AU2018323559A1 (en) Smart phone and bluetooth earset having digital two-way radio function
CA3048605C (en) Wearable wireless communication device and communication group setting method using the same
US10015652B2 (en) Near-field wireless communication equipment, and near-field wireless communication method
CN107404363B (en) Method, system, terminal and network side equipment for adjusting voice code rate
JP2014060735A (en) Relay device and communication system
WO2009009689A1 (en) System and method for reducing power consumption in a wireless device
EP3346737A1 (en) Wearable wireless communication device and communication group setting method using the same
JP2009188896A (en) Voice transmission device, and voice transmission relaying device
JP4637757B2 (en) Mobile communication system, base station apparatus, and control method for base station apparatus

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180427