CN104734740A - Wireless audio data communication method and device - Google Patents

Wireless audio data communication method and device Download PDF

Info

Publication number
CN104734740A
CN104734740A CN201310713575.3A CN201310713575A CN104734740A CN 104734740 A CN104734740 A CN 104734740A CN 201310713575 A CN201310713575 A CN 201310713575A CN 104734740 A CN104734740 A CN 104734740A
Authority
CN
China
Prior art keywords
data
voice data
audio
audio data
source information
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.)
Granted
Application number
CN201310713575.3A
Other languages
Chinese (zh)
Other versions
CN104734740B (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.)
Nationz Technologies Inc
Original Assignee
Nationz Technologies Inc
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 Nationz Technologies Inc filed Critical Nationz Technologies Inc
Priority to CN201310713575.3A priority Critical patent/CN104734740B/en
Publication of CN104734740A publication Critical patent/CN104734740A/en
Application granted granted Critical
Publication of CN104734740B publication Critical patent/CN104734740B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention relates to the field of communication and provides a wireless audio data communication method and device. The method comprises the steps of carrying out coding on original data to generate first audio data, setting a flag bit which contains sending source information in the first audio data, starting to send the first audio data, initializing an audio receiving unit, and completing sending of the first audio data. According to the wireless audio data communication method, initialization is carried out on the audio receiving unit before the audio data are sent completely, the starting state of the audio receiving unit is kept all the time, the time for data interaction is shortened, the sending end information is recognized through the flag bit to filter out ineffective information except a target, and the data transmission efficiency is further improved.

Description

A kind of ANTENN AUDIO data communications method and device
Technical field
The invention belongs to the communications field, particularly relate to a kind of ANTENN AUDIO data communications method and device.
Background technology
At present, based in the ANTENN AUDIO data communication system of mobile terminal, mobile terminal plays the role of transmitting terminal or receiving terminal genetic system, mutual flow process normally mobile terminal sends voice data, the recording system of self is opened after being sent, the voice data that wait-receiving mode opposite end sends, then carries out recording, the process such as decoding.
But, because mobile terminal initialization recording system still needs the regular hour, be generally tens to hundreds of millisecond, this depends on that the performance of this mobile terminal is good and bad, therefore, existence is during this period of time delayed the interaction time of communicating pair greatly, reduces the efficiency of ANTENN AUDIO data communication.
Summary of the invention
The object of the embodiment of the present invention is to provide a kind of ANTENN AUDIO data communications method, is intended to solve the inefficient problem of current ANTENN AUDIO data communication.
The embodiment of the present invention is achieved in that a kind of ANTENN AUDIO data communications method, comprises the steps:
Initial data is encoded, generates the first voice data;
In described first voice data, arrange a bit flag position, described flag bit comprises transmission source information;
Start to send described first voice data;
Initialization audio frequency receiving element;
Complete described first voice data to send.
Another object of the embodiment of the present invention is to provide a kind of ANTENN AUDIO data communication equipment, and described device comprises:
First coding unit, for encoding to initial data, generates the first voice data, and arranges a bit flag position in described first voice data, and described flag bit comprises transmission source information;
Audio frequency receiving element, for receiving the voice data of external transmission;
Audio frequency transmitting element, for transmitting the first voice data to outside;
Initialization control unit, for after starting to send described first voice data first, controls the initialization of described audio frequency receiving element.
The embodiment of the present invention is after starting to send voice data, namely initialization is carried out to audio frequency receiving element before voice data is sent completely, and keep the opening of audio frequency receiving element always, make the preparation completing audio reception data in the very first time after transmission, voice data can be received in time, and when audio reception data again without the need to the audio frequency receiving element that reinitializes, substantially reduce the time that communication both-end carries out data interaction, improve communication transfer speeds, simultaneously also by flag bit identification transmitting terminal information, with the invalid information outside filtering target, further increase data transmission efficiency.。
Accompanying drawing explanation
The flow chart of the ANTENN AUDIO data communications method that Fig. 1 provides for first embodiment of the invention;
The flow chart of the ANTENN AUDIO data communications method that Fig. 2 provides for second embodiment of the invention;
The flow chart of the ANTENN AUDIO data communications method that Fig. 3 provides for third embodiment of the invention;
The structure chart of the ANTENN AUDIO data communication equipment that Fig. 4 provides for one embodiment of the invention;
The preferred exemplary construction figure of the ANTENN AUDIO data communication equipment that Fig. 5 provides for one embodiment of the invention.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The embodiment of the present invention is after starting to send voice data, namely initialization is carried out to audio frequency receiving element before voice data is sent completely, and keep the opening of audio frequency receiving element always, shorten the time of data interaction, simultaneously also by flag bit identification transmitting terminal information, with the invalid information outside filtering target, further increase data transmission efficiency.
Below in conjunction with specific embodiment, realization of the present invention is described in detail:
Fig. 1 shows the flow process of the ANTENN AUDIO data communications method that first embodiment of the invention provides, and for convenience of explanation, illustrate only part related to the present invention.
As one embodiment of the invention, this ANTENN AUDIO data communications method comprises the steps:
In step S101, initial data is encoded, generate the first voice data;
In step s 102, in the first voice data, arrange a bit flag position, this flag bit comprises transmission source information;
In embodiments of the present invention, first place or last position that flag bit can be arranged at voice data is sent, for identifying transmission source, and then the invalid information outside filtering target, such as, the flag bit representing transmitting terminal is set to 1, the flag bit representing receiving terminal is set to zero.
In step s 103, start to send the first voice data;
In step S104, initialization audio frequency receiving element;
As one embodiment of the invention, audio frequency receiving element can adopt recoding unit or other Audio storage unit to realize.
In step S105, complete the first voice data and send.
In embodiments of the present invention, transmitting terminal is after starting to send voice data, before voice data is sent completely, initialization is carried out to audio frequency receiving element, and after this audio frequency receiving element self-initialize, be in the state of audio reception data always, until communication interaction completes, in order to ensure that the voice data received is effective, instead of the voice data just sent from transmitting terminal, therefore the flag bit comprising transmission source information is set in voice data when sending, to distinguish.
The embodiment of the present invention is after starting to send voice data, namely initialization is carried out to audio frequency receiving element before voice data is sent completely, and keep the opening of audio frequency receiving element always, make the preparation completing audio reception data in the very first time after transmission, voice data can be received in time, and when audio reception data again without the need to the audio frequency receiving element that reinitializes, substantially reduce the time that communication both-end carries out data interaction, improve communication transfer speeds, simultaneously also by flag bit identification transmitting terminal information, with the invalid information outside filtering target, further increase data transmission efficiency.
Fig. 2 shows the flow process of the ANTENN AUDIO data communications method that second embodiment of the invention provides, and for convenience of explanation, illustrate only part related to the present invention.
As one embodiment of the invention, this ANTENN AUDIO data communications method comprises the steps:
In step s 201, initial data is encoded, generate the first voice data;
In step S202, in the first voice data, arrange a bit flag position, this flag bit comprises transmission source information;
In step S203, start to send the first voice data;
In step S204, initialization audio frequency receiving element;
In step S205, complete the first voice data and send;
In step S206, receive second audio data;
In step S207, judge that whether the transmission source information in second audio data is consistent with the transmission source information in the first voice data;
If so, then return and perform step S206;
If not, then perform step S208, to second audio data decoding, generate valid data;
In embodiments of the present invention, judge whether this voice data is the voice data that this transmitting terminal sends by flag bit, such as, the flag bit of transmitting terminal is set to 1, and the flag bit of receiving terminal is set to zero, so, when the transmitting terminal flag bit recognized in reception data is 1, think that this voice data is invalid data, these data do not processed, and when recognize flag bit be zero voice data just carry out decoding process.
In step S209, encode after data processing is carried out to valid data, generate the 3rd voice data;
In step S210, in the 3rd voice data, arrange a bit flag position, flag bit comprises transmission source information;
In step S211, send the 3rd voice data.
In embodiments of the present invention, audio frequency receiving element is in opening after completing initialization always, initialization is re-started after sending in every secondary data, until communication interaction completes, and in order to avoid audio frequency receiving element receives the invalid data self sent, the flag bit comprising transmission source information is set in voice data when sending, by to this audio-frequency information of identification of flag bit from transmitting terminal itself or receiving terminal, thus the voice data from receiving terminal is decoded, after data processing, transmission of again encoding.
The embodiment of the present invention is after starting to send voice data, namely initialization is carried out to audio frequency receiving element before voice data is sent completely, and keep the opening of audio frequency receiving element always, make the preparation completing audio reception data in the very first time after transmission, voice data can be received in time, and when audio reception data again without the need to the audio frequency receiving element that reinitializes, substantially reduce the time that communication both-end carries out data interaction, improve communication transfer speeds, simultaneously also by flag bit identification transmitting terminal information, with the invalid information outside filtering target, further increase data transmission efficiency.
Fig. 3 shows the flow process of the ANTENN AUDIO data communications method that third embodiment of the invention provides, and for convenience of explanation, illustrate only part related to the present invention.
As one embodiment of the invention, this ANTENN AUDIO data communications method comprises the steps:
In step S301, the coding unit of transmitting terminal is encoded to initial data, generates the first voice data;
In step s 302, a transmitting terminal flag bit is set in the first voice data;
In step S303, playback unit starts to send the first voice data;
In step s 304, initialization recoding unit;
In step S305, complete the first voice data and send;
In step S306, receive second audio data by recoding unit;
In step S307, judging unit judges that whether the transmission source information in second audio data is consistent with the transmission source information in the first voice data;
If so, then return and perform step S306;
If not, then perform step S308, by AD conversion unit, analog-to-digital conversion is carried out to second audio data, generate digital signal;
In step S309, decoding unit is decoded to this digital signal, generates valid data;
In step S310, coding unit is encoded after carrying out data processing to valid data, generates the 3rd voice data;
In step S311, a receiving terminal flag bit is set in the 3rd voice data;
In step S312, playback unit sends the 3rd voice data.
As one embodiment of the present invention, playback unit can also be realized by loud speaker, and recoding unit can also be realized by microphone.
In embodiments of the present invention, transmitting terminal can adopt the mobile terminal device such as mobile phone or panel computer, receiving terminal can adopt the mobile terminal device such as mobile phone or panel computer, also can be the other-end comprising digital-to-analogue/AD conversion unit, coding/decoding unit, process/judging unit and transmission/reception unit.
As one embodiment of the invention, if mobile terminal mobile phone or panel computer are as transmitting terminal, an other mobile phone or panel computer are as receiving terminal, and the method can realize ANTENN AUDIO transfer of data.
If mobile terminal mobile phone or panel computer are as transmitting terminal, another one terminal KEY is as receiving terminal, then the method can realize audio frequency mobile payment or authentication.
The embodiment of the present invention is after starting to send voice data, namely initialization is carried out to audio frequency receiving element before voice data is sent completely, mobile terminal opens recording module after being sent without the need to pending data such as grade again, and by this voice data of flag bit identification from transmitting terminal or receiving terminal, thus save the recoding unit initialized time, to reach shortening interaction time, improve the object of voice data interactive speed.
Fig. 4 shows the structure of the ANTENN AUDIO data communication equipment that the embodiment of the present invention provides, and for convenience of explanation, illustrate only part related to the present invention.
As one embodiment of the invention, this ANTENN AUDIO data communication equipment 1 comprises:
First coding unit 11, for encoding to initial data, generates the first voice data, and in the first voice data, arrange a bit flag position, and this flag bit comprises transmission source information;
Audio frequency receiving element 12, for receiving the voice data of external transmission;
Audio frequency transmitting element 13, for transmitting the first voice data to outside;
Initialization control unit 10, for controlling the initialization of audio frequency receiving element after starting to send the first voice data first.
In embodiments of the present invention, first place or last position that flag bit can be arranged at voice data is sent, for identifying transmission source, and then the invalid information outside filtering target, such as, the flag bit representing transmitting terminal is set to 1, the flag bit representing receiving terminal is set to zero.
In embodiments of the present invention, audio frequency transmitting element 13 is after starting to send voice data, control audio frequency receiving element 12 before voice data is sent completely and carry out initialization, and after this audio frequency receiving element 12 self-initialize, be in the state of audio reception data always, until communication interaction completes, in order to ensure that the voice data received is effective, instead of the voice data just sent from transmitting terminal, therefore the flag bit comprising transmission source information is set in voice data when sending, to distinguish.
The embodiment of the present invention is after starting to send voice data, namely initialization is carried out to audio frequency receiving element before voice data is sent completely, and keep the opening of audio frequency receiving element always, make the preparation completing audio reception data in the very first time after transmission, voice data can be received in time, and when audio reception data again without the need to the audio frequency receiving element that reinitializes, substantially reduce the time that communication both-end carries out data interaction, improve communication transfer speeds, simultaneously also by flag bit identification transmitting terminal information, with the invalid information outside filtering target, further increase data transmission efficiency.
Fig. 5 shows the preferred exemplary construction of the ANTENN AUDIO data communication equipment that the embodiment of the present invention provides, and for convenience of explanation, illustrate only part related to the present invention.
As one embodiment of the invention, audio frequency receiving element can adopt recoding unit or other Audio storage unit to realize.
As one embodiment of the invention, this ANTENN AUDIO data communication equipment 1 also comprises:
Judging unit 14, whether consistent with the transmission source information in the first voice data for judging the transmission source information in second audio data;
Decoding unit 15, for when the transmission source information in second audio data and the transmission source information in the first voice data inconsistent time, to second audio data decoding, generate valid data;
Processing unit 16, for carrying out data processing to valid data;
Second coding unit 17, for encoding to the valid data after data processing, generate the 3rd voice data, and arrange a bit flag position in the 3rd voice data, flag bit comprises transmission source information, then controls audio frequency transmitting element transmission the 3rd voice data.
As one embodiment of the invention, the first coding unit 11 and the second coding unit 17 can be multiplexing.
In embodiments of the present invention, by flag bit, judging unit 14 judges whether this voice data is the voice data that this transmitting terminal sends, such as, the flag bit of transmitting terminal is set to 1, and the flag bit of receiving terminal is set to zero, so, when the transmitting terminal flag bit recognized in reception data is 1, think that this voice data is invalid data, processing unit 16 does not process these data, and when recognize flag bit be zero voice data just carry out data processing and decoding.
As one embodiment of the present invention, audio frequency transmitting element 13 can adopt playback unit to realize, such as loud speaker.
As one embodiment of the present invention, audio frequency receiving element 12 can adopt recoding unit to realize, such as microphone.
As one embodiment of the present invention, this ANTENN AUDIO data communication equipment 1 can also comprise:
AD conversion unit 18, for carrying out analog-to-digital conversion to second audio data, generating digital signal, and digital signal is sent to decoding unit decodes.
In embodiments of the present invention, optimization process further can also be carried out by AD conversion unit or other data processing units to audio frequency receipt.
In embodiments of the present invention, transmitting terminal can adopt the mobile terminal device such as mobile phone or panel computer, receiving terminal can adopt the mobile terminal device such as mobile phone or panel computer, also can be the other-end comprising digital-to-analogue/AD conversion unit, coding/decoding unit, process/judging unit and transmission/reception unit.
As one embodiment of the invention, if mobile terminal mobile phone or panel computer are as transmitting terminal, an other mobile phone or panel computer are as receiving terminal, and the method can realize ANTENN AUDIO transfer of data.
If mobile terminal mobile phone or panel computer are as transmitting terminal, another one terminal KEY is as receiving terminal, then the method can realize audio frequency mobile payment or authentication.
The embodiment of the present invention is after starting to send voice data, namely initialization is carried out to audio frequency receiving element before voice data is sent completely, mobile terminal opens recording module after being sent without the need to pending data such as grade again, and by this voice data of flag bit identification from transmitting terminal or receiving terminal, thus save the recoding unit initialized time, to reach shortening interaction time, improve the object of voice data interactive speed.
These are only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1. an ANTENN AUDIO data communications method, is characterized in that, described method comprises the steps:
Initial data is encoded, generates the first voice data;
In described first voice data, arrange a bit flag position, described flag bit comprises transmission source information;
Start to send described first voice data;
Initialization audio frequency receiving element;
Complete described first voice data to send.
2. the method for claim 1, is characterized in that, described in complete voice data send step after also comprise the steps:
Receive second audio data;
Judge that whether the transmission source information in described second audio data is consistent with the transmission source information in described first voice data;
If so, the step performing described reception second audio data is then returned;
If not, then described second audio data is decoded, generate valid data;
Encode after data processing is carried out to described valid data, generate the 3rd voice data;
In described 3rd voice data, arrange a bit flag position, described flag bit comprises transmission source information;
Send described 3rd voice data.
3. method as claimed in claim 2, is characterized in that, describedly decodes to described second audio data, and the step generating valid data is specially:
Analog-to-digital conversion is carried out to described second audio data, generates digital signal;
Described digital signal is decoded, generates valid data.
4. the method for claim 1, is characterized in that, the flag bit that the voice data that transmitting terminal exports carries is set to 1, and the flag bit that the voice data that receiving terminal exports carries is set to 0.
5. an ANTENN AUDIO data communication equipment, is characterized in that, described device comprises:
First coding unit, for encoding to initial data, generates the first voice data, and arranges a bit flag position in described first voice data, and described flag bit comprises transmission source information;
Audio frequency receiving element, for receiving the voice data of external transmission;
Audio frequency transmitting element, for transmitting the first voice data to outside;
Initialization control unit, for controlling the initialization of described audio frequency receiving element after starting to send described first voice data first.
6. device as claimed in claim 5, it is characterized in that, described device also comprises:
Judging unit, whether consistent with the transmission source information in described first voice data for judging the transmission source information in described second audio data;
Decoding unit, for when the transmission source information in the transmission source information in described second audio data and described first voice data is inconsistent, decodes to described second audio data, generates valid data;
Processing unit, for carrying out data processing to described valid data;
Second coding unit, for encoding to the valid data after data processing, generating the 3rd voice data, and a bit flag position is set in described 3rd voice data, described flag bit comprises transmission source information, then controls described 3rd voice data of described audio frequency transmitting element transmission.
7. device as claimed in claim 6, it is characterized in that, described device also comprises:
AD conversion unit, for carrying out analog-to-digital conversion to described second audio data, generating digital signal, and described digital signal is sent to described decoding unit decodes.
8. device as claimed in claim 1, it is characterized in that, described audio frequency receiving element is recoding unit.
9. device as claimed in claim 1, it is characterized in that, described audio frequency transmitting element is playback unit.
CN201310713575.3A 2013-12-20 2013-12-20 A kind of wireless audio data communications method and device Active CN104734740B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310713575.3A CN104734740B (en) 2013-12-20 2013-12-20 A kind of wireless audio data communications method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310713575.3A CN104734740B (en) 2013-12-20 2013-12-20 A kind of wireless audio data communications method and device

Publications (2)

Publication Number Publication Date
CN104734740A true CN104734740A (en) 2015-06-24
CN104734740B CN104734740B (en) 2018-08-14

Family

ID=53458233

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310713575.3A Active CN104734740B (en) 2013-12-20 2013-12-20 A kind of wireless audio data communications method and device

Country Status (1)

Country Link
CN (1) CN104734740B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001041128A1 (en) * 1999-11-30 2001-06-07 Motorola Inc. Differentiation of error conditions in digital voice communication systems
CN102307271A (en) * 2011-05-05 2012-01-04 上海博超科技有限公司 Network digital integrated talkback system and transmission method thereof
CN102509216A (en) * 2011-11-08 2012-06-20 南京音优行信息技术有限公司 Method and device for realizing on-site mobile payment by using audio signal
CN103414982A (en) * 2013-07-31 2013-11-27 北京小米科技有限责任公司 Method and device for offering voice

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001041128A1 (en) * 1999-11-30 2001-06-07 Motorola Inc. Differentiation of error conditions in digital voice communication systems
CN102307271A (en) * 2011-05-05 2012-01-04 上海博超科技有限公司 Network digital integrated talkback system and transmission method thereof
CN102509216A (en) * 2011-11-08 2012-06-20 南京音优行信息技术有限公司 Method and device for realizing on-site mobile payment by using audio signal
CN103414982A (en) * 2013-07-31 2013-11-27 北京小米科技有限责任公司 Method and device for offering voice

Also Published As

Publication number Publication date
CN104734740B (en) 2018-08-14

Similar Documents

Publication Publication Date Title
CN109361984B (en) Charging box, wireless earphone, earphone set and voice processing system
US8818277B2 (en) Method, apparatus and system for transmitting multimedia data by bluetooth and real-time playing
CN102857631A (en) Method and system for reading RFID (Radio Frequency Identification)/NFC (Near Field Communication) tag by earphone jack of mobile phone
CN105379155A (en) Methods and apparatus for wireless communication via predefined sequence of change of characteristic of wireless signal
CN104427471A (en) Method for automatically establishing connection of mobile network and terminal
CN108243481A (en) Document transmission method and device
CN104702437A (en) Device for using two-dimensional code to perform network configuration for equipment
CN102394979A (en) Method for performing high-speed data transmission through communication earphone interface
CN102739864A (en) Method for realizing wireless earphone function of television set and wireless communication equipment
CN105187976A (en) Mobile terminal and sound amplification method based on Bluetooth sound box
CN102325319A (en) Method and system for wireless connection between mobile phone and computer
CN104954078A (en) Sound wave communication based control and response method and sound wave communication based control and response device
CN104580309A (en) Information pushing method as well as audio terminal, mobile terminal and pushing system
WO2015120759A1 (en) Audio signal transmission method, mobile terminal and intelligent key device
CN104796202A (en) Near-field data transmission device and system and operating method thereof
CN104735523A (en) Method for achieving wireless connection between mobile phone and automotive multimedia system and wireless co-screen device
CN203827335U (en) Wireless network device and communication system
CN104734740A (en) Wireless audio data communication method and device
CN105657691A (en) Mobile terminal and data sharing method of double-chip system thereof
CN102752019B (en) Data sending, receiving and transmitting method and system based on headset jack
CN101420275A (en) Audio wireless transmission method, public media audio transmitting device and mobile terminal
JP6497112B2 (en) Wireless receiver and mute control method thereof
CN206162174U (en) Smart home system
CN116261124A (en) Data transmission method and device, electronic equipment and intelligent terminal
CN110662205B (en) Bluetooth-based audio transmission method, device, medium and equipment

Legal Events

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