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 PDFInfo
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W72/00—Local resource management
- H04W72/12—Wireless traffic scheduling
- H04W72/1215—Wireless traffic scheduling for collaboration of different radio technologies
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L19/00—Speech 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/005—Correction of errors induced by the transmission channel, if related to the coding algorithm
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W72/00—Local resource management
- H04W72/50—Allocation or scheduling criteria for wireless resources
- H04W72/54—Allocation or scheduling criteria for wireless resources based on quality criteria
- H04W72/542—Allocation or scheduling criteria for wireless resources based on quality criteria using measured or perceived quality
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L15/00—Speech recognition
- G10L15/22—Procedures used during a speech recognition process, e.g. man-machine dialogue
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/02—Terminal devices
- H04W88/06—Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Quality & Reliability (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Health & Medical Sciences (AREA)
- Computational Linguistics (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Multimedia (AREA)
- Mobile Radio Communication Systems (AREA)
- Small-Scale Networks (AREA)
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
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.
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)
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)
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 | 中国移动通信集团公司 | Data transmission mode management method and data transmission device |
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 |
-
2017
- 2017-11-27 CN CN201711208973.4A patent/CN107969011A/en active Pending
Patent Citations (4)
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 | 中国移动通信集团公司 | Data transmission mode management method and data transmission device |
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 (4)
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 |
CN117135729B (en) * | 2023-01-20 | 2024-05-24 | 荣耀终端有限公司 | Multi-device cooperation method, system and terminal device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2022068221A1 (en) | Low-delay wireless audio sending and receiving method and device | |
US20110090840A1 (en) | Communication system for removing transmission overhead | |
CN105554787B (en) | Data transmission method and intelligent collection device, intelligent terminal and cloud server | |
CN107969011A (en) | The method being wirelessly transferred based on bluetooth and WiFi cooperative achievement voice data | |
MX2019008368A (en) | 5g qos flow to radio bearer remapping. | |
JP5392062B2 (en) | Relay device and communication system | |
CN106993317B (en) | SSID (service set identifier) selection method and device based on dual-frequency wireless router | |
US20200396681A1 (en) | Wire-Free Bluetooth Communication System with Fast Pairing | |
US20080170553A1 (en) | Fragmenting Large Packets in the Presence of High Priority Packets | |
US10827333B1 (en) | Wireless communication device and method for balancing power consumption for two bluetooth devices by switching the receiving and relaying of audio streams | |
CA2461838A1 (en) | Auto-compression for media over ip | |
TWI716227B (en) | Method and apparatus of uplink data compression in mobile communications | |
CN111970293A (en) | Synchronous comparing, selecting and following technical method based on VoIP ground-air voice communication | |
US20100254310A1 (en) | Packet sniffer for ad hoc network | |
CN105532059B (en) | Configuration indicating method and communication equipment | |
CA3069409A1 (en) | Smart phone and bluetooth earset having digital two-way radio function | |
JP2019500765A5 (en) | ||
KR101088960B1 (en) | Communication control device, wireless communication device, communication control method and wireless communication method | |
CA3048605C (en) | Wearable wireless communication device and communication group setting method using the same | |
CN107404363B (en) | Method, system, terminal and network side equipment for adjusting voice code rate | |
US10015652B2 (en) | Near-field wireless communication equipment, and near-field wireless communication method | |
WO2022236197A8 (en) | Configuring discontinuous reception (drx) parameters for sidelink communications | |
US20060126586A1 (en) | Wireless LAN device and method of monitoring status of wireless LAN | |
EP4311368A3 (en) | Method and apparatus for interworking between networks in wireless communication system | |
JP5708751B2 (en) | Relay device |
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 |