CN109194998A - Data transmission method, device, electronic equipment and computer-readable medium - Google Patents

Data transmission method, device, electronic equipment and computer-readable medium Download PDF

Info

Publication number
CN109194998A
CN109194998A CN201810925253.8A CN201810925253A CN109194998A CN 109194998 A CN109194998 A CN 109194998A CN 201810925253 A CN201810925253 A CN 201810925253A CN 109194998 A CN109194998 A CN 109194998A
Authority
CN
China
Prior art keywords
data
electronic equipment
audio
audio playback
wireless audio
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
CN201810925253.8A
Other languages
Chinese (zh)
Other versions
CN109194998B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810925253.8A priority Critical patent/CN109194998B/en
Publication of CN109194998A publication Critical patent/CN109194998A/en
Application granted granted Critical
Publication of CN109194998B publication Critical patent/CN109194998B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4307Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4126The peripheral being portable, e.g. PDAs or mobile phones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/439Processing of audio elementary streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/647Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
    • H04N21/64723Monitoring of network processes or resources, e.g. monitoring of network load
    • H04N21/64738Monitoring network characteristics, e.g. bandwidth, congestion level

Abstract

The embodiment of the present application discloses a kind of data transmission method, device, electronic equipment and computer-readable medium, is related to field of communication technology.This method comprises: detecting the playing request whether electronic equipment receives audio data when electronic equipment connects wireless audio playback equipment;If receiving playing request, the upper limit number that the data between the electronic equipment and the wireless audio playback equipment retransmit is reduced;According to the upper limit number that the data after reduction retransmit, the audio data is sent to the wireless audio playback equipment, indicates the wireless audio playback equipment playing audio data.

Description

Data transmission method, device, electronic equipment and computer-readable medium
Technical field
This application involves field of communication technology, more particularly, to a kind of data transmission method, device, electronic equipment and Computer-readable medium.
Background technique
Currently, playing the audio data in electronic equipment using wireless audio playback equipment, wired earphone institute can be reduced Bring is inconvenient, still, since audio is by wireless network transmissions such as bluetooths, will cause audio and there is delay, especially broadcasting When putting video, audio in video can have delay, for example, delay is about 100-300ms, thus will cause picture with Audio it is asynchronous, for example, in game picture, the game neutron bomb sound delay of gunbattle greatly reduces user experience.
Summary of the invention
Present applicant proposes a kind of data transmission method, device, electronic equipment and computer-readable mediums, above-mentioned to improve Defect.
In a first aspect, the embodiment of the present application provides a kind of data transmission method, it is applied to electronic equipment.The method packet It includes: when electronic equipment connects wireless audio playback equipment, detecting the broadcasting whether electronic equipment receives audio data Request;If receiving playing request, reduce what the data between the electronic equipment and the wireless audio playback equipment retransmitted Upper limit number;According to the upper limit number that the data after reduction retransmit, the audio data is sent to the wireless audio Playback equipment indicates the wireless audio playback equipment playing audio data.
Second aspect, the embodiment of the present application also provides a kind of data transmission devices, are applied to electronic equipment.Described device It include: detection unit, adjustment unit and transmission unit.Detection unit, for connecting wireless audio playback equipment when electronic equipment When, detect the playing request whether electronic equipment receives audio data.Adjustment unit, if being asked for receiving broadcasting It asks, reduces the upper limit number that the data between the electronic equipment and the wireless audio playback equipment retransmit.Transmission unit is used In the upper limit number retransmitted according to the data after reduction, the audio data is sent to the wireless audio broadcasting and is set It is standby, indicate the wireless audio playback equipment playing audio data.
The third aspect, the embodiment of the present application also provides a kind of electronic equipment, including memory and processor, the storages Device is coupled with the processor;The memory store instruction, when executed by the processor, the processor Execute the above method.
Fourth aspect, the embodiment of the present application also provides a kind of computer-readable medium, the computer-readable storage Program code is stored in medium, said program code can be called by processor and execute the above method.
Data transmission method, device, electronic equipment and computer-readable medium provided by the embodiments of the present application, when electronics is set When standby connection wireless audio playback equipment, whether the electronic equipment is detected in playing audio-fequency data, is being broadcast in electronic equipment When playback frequency, the upper limit number that the data between electronic equipment and wireless audio playback equipment retransmit is reduced, then, further according to this Audio data is sent to the wireless audio playback equipment by the upper limit number that data retransmit, and indicates that the wireless audio broadcasting is set Standby playing audio data.The upper limit number that data are retransmitted as a result, reduces, and can reduce electronic equipment and broadcast with wireless audio It puts between equipment and extends the time that audio data is received by wireless headset because data retransmit, the audio received is avoided to prolong When it is excessively high, and reduce user experience.
Other feature and advantage of the embodiment of the present application will illustrate in subsequent specification, also, partly from specification In become apparent, or understood and implementing the embodiment of the present application.The purpose of the embodiment of the present application and other advantages can It is achieved and obtained by structure specifically indicated in the written description, claims, and drawings.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 shows the schematic diagram of voice system provided by the embodiments of the present application;
Fig. 2 shows a kind of method flow diagrams for data transmission method that one embodiment of the application provides;
Fig. 3 shows a kind of method flow diagram for data transmission method that another embodiment of the application provides;
Fig. 4 shows a kind of method flow diagram for data transmission method that the another embodiment of the application provides;
Fig. 5 shows a kind of method flow diagram of data transmission method of the application another embodiment offer;
Fig. 6 shows a kind of module frame chart of data transmission device provided by the embodiments of the present application;
Fig. 7 shows the module frame chart of electronic equipment provided by the embodiments of the present application;
Fig. 8 shows the structural schematic diagram of electronic equipment provided by the embodiments of the present application;
Fig. 9 shows provided by the embodiments of the present application for executing the electronic equipment of method provided by the embodiments of the present application Module frame chart.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Ground description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.Usually exist The component of the embodiment of the present application described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause This, is not intended to limit claimed the application's to the detailed description of the embodiments herein provided in the accompanying drawings below Range, but it is merely representative of the selected embodiment of the application.Based on embodiments herein, those skilled in the art are not being done Every other embodiment obtained under the premise of creative work out, shall fall in the protection scope of this application.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile the application's In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
Referring to Fig. 1, showing the module map of voice system 1 provided by the embodiments of the present application.Specifically, the voice system 1 includes electronic equipment 100 and wireless audio playback equipment 200.
In embodiments of the present invention, the application program that can play audio is installed in electronic equipment 100, it specifically, should Application program can be audio playing software, video jukebox software or call software etc..Electronic equipment 100 plays needs Audio is sent to wireless audio playback equipment 200, plays voice by wireless audio playback equipment 200.
Wherein, wireless audio playback equipment 200 refers to the equipment for playing audio independently of electronic equipment 100, The audio data of the transmission of electronic equipment 100 and broadcasting can be received.Such as: when user plays song using the electronic equipment, User can start music application program, or the behaviour using electronic equipment 100 on the display interface of electronic equipment 100 Make the song that the included player plays of system have locally saved, electronic equipment 100 is during playing song, to the song It is handled, obtains digitized audio data, and the audio data that processing obtains is sent to wireless audio playback equipment 200, wireless audio playback equipment 200 carries out digital-to-analogue conversion after receiving the audio data, to the audio data, obtains mould Quasi- signal, and the analog signal is played using the playing function of external voice equipment, to realize song by external voice equipment It plays.
In the embodiment of the present invention, carried out between electronic equipment 100 and wireless audio playback equipment 200 by wireless network Interaction is to transmit signal, wherein the wireless network can be bluetooth, wifi, LTE network or NFC etc..
Then in the embodiment of the present invention, wireless audio playback equipment 200 is Bluetooth audio device or bluetooth headset, and wireless audio is broadcast Put equipment 200 can by open Bluetooth function realize with the connection of electronic equipment 100, and after a connection is established, electronics is set Standby 100 voices for being needed to play are sent to Bluetooth audio device, realize that voice plays by Bluetooth audio device.
Specifically, after the starting of the Bluetooth function of electronic equipment 100 and wireless audio playback equipment 200, electronic equipment 100 By bluetooth equipment of the search in its preset distance, and the title of the bluetooth equipment searched is shown on its display interface, use After family is clicked in the display interface or selects wireless audio playback equipment 200, electronic equipment 100 is set to wireless audio broadcasting Standby 200 send connection request, and wireless audio playback equipment 200 will be established and electronic equipment 100 after receiving connection request Between connection, and feedback link success message.
Electronic equipment 100 is broadcast after establishing connection with wireless audio playback equipment 200 if electronic equipment 100 is in need When the audios such as the song put or video, which is processed into digital signal by electronic equipment, and is played to wireless audio Equipment 200 sends the audio data, and wireless audio playback equipment 200 is after receiving the audio data, to the audio number According to being handled and being played, the broadcasting of audio is realized.Specifically, electronic equipment 100 needs to send after audio data coding Specifically connected between electronic equipment 100 and wireless audio playback equipment 200 by bluetooth to wireless audio playback equipment 200 Connect, and between data and instruction transmission, in accordance with certain Bluetooth protocol, then audio data is sent to by electronic equipment 100 When wireless audio playback equipment 200, needing will according to the coded format under the Bluetooth protocol supported by the audio data Audio data coding, for example, audio is directed to, frequently with Apt-X, SBC, AAC, LDAC encryption algorithm.
Electronic equipment 100 will generate packets of audio data after audio data coding, then pass through electronic equipment 100 and wireless sound Packets of audio data is sent to wireless audio playback equipment 200, wireless audio by the Bluetooth transmission channel between frequency playback equipment 200 Playback equipment 200 will can get audio data, example after getting the packets of audio data after the decoded packet data Such as, SBC, SBC are that A2DP (Advanced Audio Distribution Profile, Bluetooth audio frequency transport protocol) agreement is strong Coded format as defined in making.All bluetooths can all support this agreement, so all Bluetooth audio frequency chips can also support this A agreement, by taking the audio of MP3 format as an example, cataloged procedure be electronic equipment by mp3 file the sample variance after pcm encoder Change, reconvert to SBC coded format is then forwarded to wireless audio playback equipment, and wireless audio playback equipment is by SBC format The audio data that PCM format is obtained after audio decoder, further according to portions such as the voice coils of pcm encoder driving wireless audio playback equipment Part vibration sounding.
Again illustratively, if user A is made a phone call using electronic equipment 100 to user B, and after closing of the circuit, user A makes Electronic equipment 100 receives the voice that the electronic equipment of user B is sent, and the electronic equipment 100 that user A is used will receive Voice be sent to wireless audio playback equipment 200, which is played by wireless audio playback equipment 200, enables user A Uppick user's B voice.As an implementation, it is provided with microphone on wireless audio playback equipment 200, then used For family A in speech, wireless audio playback equipment 200 will acquire the sound of user A, and generate voice, and the voice of generation is sent out The voice is sent to the electronic equipment that user B is used by the electronic equipment 100 by the electronic equipment 100 for giving user A, so that It can be realized the call between user A and user B.
Again illustratively, video is carried out using the mounted instant message applications of electronic equipment 100 and user B in user A When session, the video data that the electronic equipment 100 of user A sends the electronic equipment for receiving user B, electronic equipment 100 will The video data is handled, video picture data and video voice data are obtained, wherein electronic equipment 100 will shown Video picture data is shown on interface, and video audio data transmitting is given into the wireless audio that the electronic equipment 100 connects and is broadcast Equipment 200 is put, the video voice data, and the camera shooting on electronic equipment 100 are played simultaneously by the wireless audio playback equipment 200 The video image that head takes acquisition, sound when wireless audio playback equipment 200 talks acquisition user A, obtains voice Data, and collected voice data is sent to electronic equipment 100 by wireless audio playback equipment 200, electronic equipment 100 will be taken the photograph As collected video image and the collected voice data of wireless audio playback equipment 200 are handled, video counts are obtained According to, and the electronic equipment that user B is used is fed back to, the electronic equipment that user B is used completes the broadcasting of video, with reality Video session between current family A and user B.
Currently, playing the audio data in electronic equipment using wireless audio playback equipment, wired earphone institute can be reduced Bring is inconvenient, and still, inventor has found under study for action, when playing audio using wireless audio playback equipment, due to Audio is by wireless network transmissions such as bluetooths, and will cause audio, there are time delays, especially when playing video, video pictures Broadcasting be by electronic equipment parsing after play back, and the corresponding audio of video need electronic equipment by coding etc. one It is sent to wireless audio playback equipment after sequence of maneuvers and plays, during transmission, can there is delay, for example, delay Thus about 100-300ms will cause the asynchronous of picture and audio, for example, in game picture, the game neutron bomb of gunbattle Sound delay greatly reduces user experience.
Inventor find under study for action one that leads to above-mentioned delay the reason is that, since electronic equipment and wireless audio play It is transmitted between equipment by Bluetooth transmission protocol, under the agreement, for the integrality for guaranteeing data, is sent in data by transmitting terminal When receiving end, it can feed back one if receiving end receives the data and be used to indicate the mark for having received the data, for example, being One parametric variable.It can feed back one if receiving end does not receive the data and be used to indicate the mark for not receiving the data, Then transmitting terminal can retransmit the primary data, the as retransmission mechanism under Bluetooth transmission protocol.Although and the mechanism can guarantee The data of transmitting terminal are more completely sent to receiving end, avoid receiving end missing data, and still, repetition sends the data, can be somebody's turn to do The delay of data receiving end receives, while also resulting in the data sent in sequence after the data and being also delayed by reception.And such as Fruit is when wireless audio playback equipment plays audio data transmitted by electronic equipment, using above-mentioned retransmission mechanism, just It will lead to the delay of audio signal, and cause picture asynchronous with audio, reduce user experience.
Therefore, to solve the above-mentioned problems, referring to Fig. 2, the embodiment of the present application provides a kind of data transmission method, answer For electronic equipment, specifically, this method comprises: S201 to S203.
S201: when electronic equipment connects wireless audio playback equipment, detect whether the electronic equipment receives audio The playing request of data.
When the Bluetooth function of electronic equipment is opened, electronic equipment can set the bluetooth within the scope of certain distance around Standby scanning, specifically, after receiving scan command by the Bluetooth chip of electronic equipment or other bottom-layer network modules, according to pre- If scan channel sequence be scanned, such as first scan 1,7,13 channel of common channels, then scan other non-common channels, by This obtains the mark of all bluetooth equipments in present scope, and is shown in the bluetooth list interface of electronic equipment.
It had been connected and the preferable bluetooth of signal strength is set if existed in the mark of the bluetooth equipment scanned Standby, electronic equipment can be connect with the bluetooth equipment automatically, then user can also select a bluetooth to set in bluetooth list interface It is standby to be attached.
When electronic equipment is connect with external bluetooth equipment, then the system of electronic equipment, which can be crossed, goes to a state value, The state value indicates that electronic equipment has currently connected bluetooth equipment.To, electronic equipment is able to detect that bluetooth equipment, To get the device identification of bluetooth equipment.
After the device identification for getting connected bluetooth equipment, connected bluetooth is determined according to the device identification Whether equipment is wireless audio playback equipment, and specifically, which may include title or brand of equipment etc., example Such as, it can determine whether the equipment is the wireless audio playback equipment such as earphone or sound equipment according to the device identification, so as to true It is fixed whether to be connected with wireless audio playback equipment.Alternatively, it is also possible to be the device identification for determining connected bluetooth equipment, so Afterwards, the corresponding equipment kind of current connected device identification is obtained in the corresponding relationship of preset device identification and device category Whether class is wireless audio playback equipment so as to the type of the current connected equipment of determination.
When determining that electronic equipment connects wireless audio playback equipment, that is to say, that wireless in electronic equipment connection After audio-frequence player device, whether detection electronic equipment receives playing request, which is for requesting to play audio The request of data.
Specifically, playing request can be prompting message, be also possible to voice playing request.Wherein, prompting message includes The letter that call-prompting information, short message prompting message and clock alarming information etc. are used to remind the certain events of user triggered Breath.For example, call-prompting information is for reminding user currently to have incoming call.
As another embodiment, sounding request can be during electronic equipment sounding, play voice every time Request.Then sounding request can be the request of audio sounding, be also possible to the request of video sounding or call sounding request.
Specifically, multiple audio playing softwares are installed, then the software can be music APP, view in electronic equipment Frequency plays APP or recording APP etc..For example, video playing interface is provided with video playing key, by pressing to the video playing The detection of the touch-control of key, can determine whether electronic equipment currently receives the playing request of audio data, for example, user chooses Video clicks the broadcast button of the broadcast interface into the broadcast interface of video, and application program passes through to user's touch control operation It monitors, be able to detect that user currently clicked is what kind of video, and specifically, broadcast button is provided with default category Property, detect the attribute of the acquired corresponding broadcast button of touch control operation, it will be able to determine the view to be played that user is chosen Frequently, and then playing request and the corresponding audio of the playing request are got.
S202: the upper limit number that the data between the electronic equipment and the wireless audio playback equipment retransmit is reduced.
If receiving playing request, then it represents that current electronic device is in the state for preparing playing audio-fequency data, then obtains The upper limit number for taking the data between electronic equipment and wireless audio playback equipment to retransmit, specifically, the upper limit time that data retransmit Used Bluetooth protocol is related between several and electronic equipment and wireless audio playback equipment, and the corresponding data of the agreement retransmit Upper limit number be generally the numerical value of the corresponding fixation of the agreement, for example, the upper limit number that data retransmit is 3.
, can be by audio data coding at multiple packets of audio data in addition, when transmitting audio data, and multiple audios Data packet sends sequence according to certain data and is sent to wireless audio playback equipment, specifically, detects the electronic equipment hair The target audio data packet to the wireless audio playback equipment is sent whether to lose, wherein target audio data packet sets for electronics One in multiple data packets corresponding to the standby audio data to be played.Then mesh is successfully received in wireless audio playback equipment The state value of a successful reception can be fed back after mark packets of audio data to electronic equipment, then if being within a certain period of time reception To the state value, then electronic equipment determines that the wireless audio playback equipment is unsuccessfully received target audio data packet, i.e., described Electronic equipment is sent to the target audio data-bag lost of the wireless audio playback equipment, then, judges the audio data Wrap the upper limit number whether corresponding the number of transmissions is less than data re-transmission.Wherein, the number of transmissions is that this electronic equipment sends sound During frequency evidence to wireless audio playback equipment, the number of transmitted target audio data packet specifically sends target The number of packets of audio data can be recorded, and with the change of transmission times, perhaps the number of the target audio data packet is repaired Change, for example, one parameter value s of setting, parameter value s is used to record the number for sending target audio data packet, i.e., if sent 1 time, then s=1.After target packet is sent successfully, s can be reset.Assuming that a parameter value d, the d are for indicating data The upper limit number of re-transmission, for example, the upper limit number that data retransmit is 3, then parameter value d is 3.By s compared with d, the two is judged Between size.
Then if determining the corresponding the number of transmissions of packets of audio data less than the upper limit number that data retransmit, again by institute It states target audio data packet and is sent to the wireless audio playback equipment;If more than or be equal to, stop the target audio data The transmission of packet sends sequence according to preset data and sends audio data after the target audio data packet to the wireless sound Frequency playback equipment.
Specifically, it is assumed that it includes data packet 1, data packet 2, data packet 3, data packet 4, data packet 5 in sequence that data, which are sent, Etc..Then by taking target audio data packet is data packet 1 as an example, after data packet 1 sends failure, if the hair of the data packet 1 It send number to be greater than the upper limit number that data retransmit, then abandons data packet 1, and continue to send data packet 2 and subsequent data packet.
As it can be seen that the upper limit number that very high data retransmit can guarantee the integrality that data are sent, avoid losing some data of book, And if reducing the upper limit number that data retransmit, although some data can be lost, the acquisition of the data after the data Delay can reduce, if for example, above-mentioned data packet 1 is just immediately given up after sending primary failure and sends data packet 2, then Although being lost data packet 1, it can be quickly obtained data packet 2, without sending a data packet 1 until reattempting.
Therefore, in the embodiment of the present application, in order to reduce the delay of audio broadcasting, the electronic equipment and the nothing are reduced The upper limit number that data between line audio-frequence player device retransmit.As an implementation, by the electronic equipment with it is described The upper limit number that data between wireless audio playback equipment retransmit is revised as default value, and the default value is 1 or 0, tool Body, if the upper limit number that the data retransmit is greater than 1, the upper limit number that data retransmit can be revised as 1 or 0, if The upper limit number that the data retransmit is equal to 1, then the upper limit number that data retransmit can be revised as 0.
S203: the audio data is sent to described wireless by the upper limit number retransmitted according to the data after reduction Audio-frequence player device indicates the wireless audio playback equipment playing audio data.
Specifically, it detects the electronic equipment and is sent to the packets of audio data of the wireless audio playback equipment and whether lose It loses;If so, judging the upper limit number that the data whether corresponding the number of transmissions of the packets of audio data is less than after reducing retransmit;If It is less than, the packets of audio data is sent to the wireless audio playback equipment again;If more than or be equal to, stop the audio The transmission of data packet sends sequence according to preset data and sends audio data after the packets of audio data to the wireless sound Frequency playback equipment.Wherein, multiple numbers that the audio data that preset data sends that sequence is got by electronic equipment is split to form According to the transmission sequence of packet, which can divide according to the time shaft that audio plays.
In addition, it is necessary to which explanation, when electronic equipment is sent to wireless audio playback equipment non-audio data, is used Data retransmit upper limit number can not have to reduce, and use default upper limit number.
Therefore, the upper limit number retransmitted by above-mentioned reduction data, can be to avoid by some data in audio data It is excessive to wrap the number retransmitted, and the time for causing entire audio data to be sent to wireless audio playback equipment is not delayed.
Specifically, on the basis of the above embodiments, it is played for the audio data of broadcasting corresponding with image data, it can also Method to use the embodiment of the present application, it is asynchronous to avoid sound and picture, specifically, referring to Fig. 3, showing a kind of number According to transmission method, it is applied to electronic equipment, specifically, this method comprises: S301 to S304.
S301: when electronic equipment connects wireless audio playback equipment, detect whether the electronic equipment receives audio The playing request of data.
S302: judge whether the audio data belongs to the audio data of broadcasting corresponding with image data.
Specifically, audio data can be the corresponding data of independent audio file, for example, the song of mp3 or flac format Or recording, it is also possible to video data, specifically, video data includes the sound of image data and broadcasting corresponding with image data Frequency evidence includes specifically multiple image data and audio data in video, when video data plays, spininess figure As data are as shown by the display device of electronic equipment or the peripheral hardware display device connecting with electronic equipment, and audio data by Audio player, for example, wireless audio playback equipment plays, specifically, in the play time pair of a certain frame of image data Answer the play time of an audio data, and by some softwares can by video image and audio separate.
In view of broadcasting corresponding with image data audio data if postpone be played come out if, will lead to audio and Image data is asynchronous, and influences the viewing experience of user.Therefore, detecting that electronic equipment receives the broadcasting of audio data After request, judge whether the audio data belongs to the audio data of broadcasting corresponding with image data.
As an implementation, the mark of the application program of the available playing request for sending the audio data, sentences The mark for the application program of breaking belongs to pure audio class software still, if belonging to video class software, can be sentenced with video class software The fixed audio data is the audio data for belonging to broadcasting corresponding with image data.
As another embodiment, due to that both can play video there are some or play the software of pure audio, It is whether judgement is currently being broadcast that then whether audio data, which belongs to the mode of the audio data of broadcasting corresponding with image data, Video is put, specifically, electronic equipment can extract the audio data of broadcasting corresponding with image data when playing video Audio data is sent to sound to call audio frequency processing circuit in electronic equipment by the audio processing modules being sent in system Frequency processing circuit is operated with the coding etc. for carrying out audio, therefore after receiving the playing request of audio data, judgement is current Whether video is playing, if it is, indicating that the audio currently to be played is the sound belonged in the video being currently played Frequency evidence, i.e. the audio data audio data that belongs to broadcasting corresponding with image data.
As another embodiment, electronic equipment is in the process for playing video, after data solution agreement, decapsulation, It is divided into audio decoder and image decoding, decoded audio data is sent into audio-frequence player device and is played, image data is sent into Video playback apparatus plays.So for convenience play image and audio sync, it can be by the sound of broadcasting corresponding with image data Similar mark is arranged in frequency evidence and video frame, for example, audio and video frame all uses the mark format of A+B, wherein before A is Preamble section belongs to some video for indicating, then when getting the audio data to be played, according to the mark of the audio data Format just can determine whether the audio is corresponding with picture frame, i.e., whether belong to the audio number of broadcasting corresponding with image data According to.
After determining that audio data belongs to the audio data of broadcasting corresponding with image data, it is carried out S303 operation.
Furthermore, it is contemplated that not all video is required to reduce the upper limit that data retransmit in different video types Number transmits the corresponding audio data of the video, specifically, if audio data belongs to play corresponding with image data Audio data then reduces the tool for the upper limit number that the data between the electronic equipment and the wireless audio playback equipment retransmit Body embodiment may is that if audio data belongs to the audio data of broadcasting corresponding with image data, determine the audio number According to the video type of corresponding target video, judge whether the video type is default video type;If default video class Type then reduces the upper limit number that the data between the electronic equipment and the wireless audio playback equipment retransmit.
Specifically, it is determined that the corresponding target video of audio data specifically can be the mark according to audio data, really Fixed and audio data identifies matched target audio, such as the mark format of A+B described above, wherein and A is preamble, For indicating to belong to some video.It just can determine the corresponding target video of audio data as a result,.Then, then determine that target regards The type of frequency, specifically, video include summary info, can determine the content of the video by the summary info, convenient for passing through The summary info is to visual classification and finds the video, and specifically, which can be a certain frame figure in video Picture is also possible to one section of text description.It just can determine the classification of video according to the summary info, for example, summary info institute table Include the description of video content in the content shown, video classification is determined according to the video content, for example, video classification can be trip Play class, film, TV play, video calling etc..
Furthermore it is also possible to which determining should after determining that audio data belongs to the audio data of broadcasting corresponding with image data Then the corresponding target video of audio data determines the corresponding application program of target video, determines target according to the application program The video type of video.Specifically, it is determined that the embodiment of the video type of the corresponding target video of the audio are as follows: determine institute The corresponding target video of audio data is stated, determines the type for playing the application program of the target video, applies journey according to described The type of sequence determines the video type of the target video.
Specifically, after the mark for the application program for getting target video, application program is determined according to the mark Type, wherein the mark of application program can be the packet name of application program, title etc..For example, being previously stored in electronic equipment The mark of application program and corresponding relationship with the classification of application program, as shown in table 1 below:
Table 1
The mark of application program The classification of application program
Apk1 Game
Apk2 Video
Apk3 Audio
The mark of the application program according to shown in above-mentioned table 1 and the corresponding relationship with the classification of application program as a result, energy Enough determine the classification of application program corresponding to target video.For example, being set in the embodiment of the present application by wireless audio broadcasting The game picture of the standby Games Software for playing electronic equipment, which includes image and music, which can be trip Play music, sound effect of game etc., for example, the sound effect of game can be shot or footsteps.Then as one embodiment, audio number According to can be sound effect of game, then the corresponding application program of the sound effect of game is so-and-so game APP, and affiliated classification is game class Then type determines the video type of the target video according to the type of application program, specifically, can be by the class of application program Video type of the type as target video, for example, the type of application program is game, then the video type of target video is also trip Play.
As an implementation, the classification of above-mentioned application program can be the developer of application program when open The classification for application setting is waited, is also possible to application program after installation on an electronic device, user is application program The classification of setting, for example, user installs some application program on an electronic device, be installed and enter the application program it Afterwards, a dialog box can be shown, instruction user is application setting classification.Then which classification is application program particularly belong to, can To be set according to demand by user, for example, user can set certain social software to audio class, or it is set as video Class, or it is set as social category.
In addition, being equipped with the Appstore in application program installation software, such as ios system in electronic equipment.Then at this It is provided with the application list in application program installation software, user can download application program and can be more in the list New and opening application program, and application program installation software can be real according to classification by different application programs, for example, Audio class, video class or game class etc..Therefore, user using the application program installation software installation application program when It waits, just has been able to the classification for knowing the application program.Furthermore it if some application programs can play video, can also broadcast Playback frequency just sets video type for the type of the application program then if the application program supports the function of video playing, If not supporting the function of video playing, and the function of only supporting audio to play, then just the type of the application program is arranged For audio types.And specifically, whether application program supports video playback capability, can be described by the function of the application program In information, the description of the function that is included, for example, the broadcast format supported is to determine whether support the broadcasting of video format, Whether video playback module can be played in program module by detecting the application program, for example, the volume of some video playing Decoding algorithm etc., so as to determine whether the application program supports video playback capability.
As another embodiment, if some application programs can play video, audio, such as one can also be played A little video jukebox softwares can play pure audio files, can also play video, then the classification of the application program can be according to answering It is determined with the usage record of program, i.e., according to the usage record in the certain period of time of the application program, determines that user uses The application program is intended to broadcasting video and is still more likely to play audio.
Specifically, the operation behavior data of all users of the application program within a preset period of time are obtained, wherein all User refers to all users for installing the application program, then the operation behavior data can be by the corresponding server of application program Interior acquisition, that is to say, that user will use user's corresponding user account when using the application program and log in the application Program, and the corresponding operation behavior data of user account can be sent to the corresponding server of application program, then server will be obtained The operation behavior data taken storage corresponding with user account.In some embodiments, electronic equipment is sent for application program Operation behavior inquiry request is sent to the corresponding server of the application program, and server is useful by the institute in the certain predetermined period The operation behavior data at family are sent to electronic equipment.
The operation behavior data include the title and time and the video file played of played audio file Title and time just can determine the application program broadcasting within the certain predetermined period by analyzing the operation behavior data The quantity of audio file and total time, the quantity for the video file that also the available application program plays and it is total when Between, then the accounting according to the broadcasting total duration of audio and video file in the predetermined amount of time, determines the classification of application program, Specifically, accounting of the broadcasting total duration of audio and video file in the predetermined amount of time is obtained, for convenience of describing, by audio Accounting of the broadcasting total duration of file in the predetermined amount of time is denoted as audio and plays accounting, by the broadcasting total duration of video file Accounting in the predetermined amount of time is denoted as video playing accounting, will if video playing accounting is greater than audio and plays accounting The category setting of application program is video type, if audio plays accounting and is greater than video playing accounting, by application program Category setting is audio types.For example, preset time period is 30 days, i.e., 720 hours, and the broadcasting total duration of audio file is 200 hours, then it is 27.8% that audio, which plays accounting, and the broadcasting total duration of video file is 330 hours, then video playing accounting is 45.8%, then video playing accounting is greater than audio broadcasting accounting, then is video type by the category setting of application program.
In further embodiments, electronic equipment transmission is requested for the Query of application program to server, service Device operation behavior data according to corresponding to the application program obtained in advance determine that above-mentioned audio plays accounting and video playing Accounting, and the size relation between accounting and video playing accounting is played according to audio and determine the classification of application program, specifically Ground can refer to foregoing description.
After the video type of target video has been determined, judge whether the video type is default video type, In, presetting video type is the preset type for needing to reduce audio broadcast time-delay, can be user and sets according to demand Fixed, for example, default video type can be game class, video class etc..If the video type is default video type, Execute S303.
S303: the upper limit number that the data between the electronic equipment and the wireless audio playback equipment retransmit is reduced.
S304: the audio data is sent to described wireless by the upper limit number retransmitted according to the data after reduction Audio-frequence player device indicates the wireless audio playback equipment playing audio data.
As a result, in the embodiment of the present application, the transmission of video sound intermediate frequency data being played on can be reduced its data The upper limit number of re-transmission, to reduce the delay of audio data, for example, a video includes multiple video frames and one section of voice, The voice is " I am Chinese, I likes my country ", then the voice is splitted into " I is ", " Chinese ", " I likes ", " I The multiple data packets of country ", if wherein, " I is " does not send success, i.e. wireless audio playback equipment does not receive, then exists In the prior art, electronic equipment can send " I is " failure at this and then send once, until sending successfully or sending Number reaches the upper limit number of data re-transmission, and method provided by the embodiments of the present application, electronic equipment can send " I at this It is " fail and then sends once, regardless of whether this sends success, transmission " I is " is not being repeated, be also possible at this It after secondary transmission " I is " failure, directly abandons sending " I is ", and is to continue with after transmission " I is " " Chinese ".By This, although and causing user that can not hear " I is " due to " I is " not sent success, can subsequent " Chinese ", If be successfully transmitted, user can quickly hear " Chinese " and voice later for " I like ", " my country ", then exist When " Chinese ", " I likes ", " my country " play, it can guarantee that picture corresponding to the sound is synchronous.
It should be noted that the part being not described in detail in above-mentioned steps, can refer to previous embodiment, it is no longer superfluous herein It states.
Furthermore, it is contemplated that although some audios are not belonging to video, still, the real-time of itself is higher, if there is higher Delay, it is excessively high to will lead to user experience, therefore, in order to overcome the defect, referring to Fig. 4, showing a kind of data transmission Method, this method comprises: S401 to S405.
S401: when electronic equipment connects wireless audio playback equipment, detect whether the electronic equipment receives audio The playing request of data.
S402: the corresponding real-time rank of the audio data is determined.
If receiving the playing request of audio data, it is determined that the real-time rank of audio data.As a kind of embodiment party Formula determines the mark of the corresponding application program of audio data, determines the real-time of audio data further according to the mark of the application program Property rank.Specifically, it is determined that sending the mark of the application program of the playing request of the audio data, the application program is being determined The type of the corresponding application program of mark specifically can refer to the above embodiments.
Then, the corresponding real-time rank of audio data is determined further according to the type of the application program.Specifically, electronics is set It is stored with real-time rank corresponding to the type of application program in standby, as shown in table 2 below:
Table 2
The mark of application program The classification of application program Real-time rank
Apk1 Game J1
Apk2 Video J2
Apk3 Audio J3
Apk4 It is social J1
According to above-mentioned corresponding relationship, it will be able to determine real-time rank corresponding to audio data.For example, audio data Corresponding application program is identified as Apk4, then corresponding classification is social activity, and corresponding real-time rank is J1.Wherein, The rank highest of J1, secondly, J2, J3 are sequentially reduced.
S403: judge whether the real-time rank of the audio data belongs to and meet pre-set level.
Wherein, pre-set level is the preset corresponding real-time rank of type for needing to reduce audio broadcast time-delay, Can be user according to demand and set.For example, pre-set level is J2 or more.Then if the corresponding real-time of audio data Rank is J1, then the real-time rank of audio data meets pre-set level, then executes S404.
If the corresponding real-time rank of audio data is J3, the real-time rank of audio data is unsatisfactory for default grade Not, then the step of can terminating this method, above-mentioned S302 can also be executed, as a result, if some application program is newly to install Application program, and not set real-time rank, then can further determine whether to need by the operation of above-mentioned S302 by The upper limit number that data between electronic equipment and the wireless audio playback equipment retransmit reduces.
It is the audio number in the judgement result of S302 furthermore it is also possible to be to first carry out S302 before executing S402 step When according to the audio data for belonging to broadcasting corresponding with image data, then execute S402.
S405: the audio data is sent to described wireless by the upper limit number retransmitted according to the data after reduction Audio-frequence player device indicates the wireless audio playback equipment playing audio data.
It wherein, can also be after the judging result of above-mentioned S302 be to be to the determination of the real-time rank of audio data It executes, is also possible to determining real-time rank and then executing above-mentioned S302.
It should be noted that the part being not described in detail in above-mentioned steps, can refer to previous embodiment, it is no longer superfluous herein It states.
It is different in view of transmitting the channel quality of channel of data between electronic equipment and the wireless audio playback equipment When, the number of re-transmission can be different, for example, retransmitted often when channel quality is good, and bad channel quality when It is few to wait the number retransmitted, therefore, can be adjusted based on channel quality between electronic equipment and the wireless audio playback equipment Data retransmit upper limit number reduction amplitude, specifically, referring to Fig. 5, showing one kind provided by the embodiments of the present application Data transmission method, specifically, this method comprises: S501 to S504.
S501: when electronic equipment connects wireless audio playback equipment, detect whether the electronic equipment receives audio The playing request of data.
S502: the channel matter that the channel of data is transmitted between the electronic equipment and the wireless audio playback equipment is obtained Amount.
Wherein, channel quality can be the error vector magnitude of channel, access point number, signal strength etc..Wherein, error Vector magnitude (Error Vector Magnitude, abbreviation EVM) refers in the ideal error free reference signal of given time and reality The vector difference for emitting signal, for measuring the range error and phase error of modulated signal, EVM specifically indicates to receive terminal to letter The degree of closeness of the IQ component and ideal signal component that generate when number being demodulated, is a kind of finger for considering modulated signal quality Mark.EVM is smaller, and the channel quality of channel is better.And the number of access point can also obtain each letter when scan channel Thus access point on road just can determine the access point number on each channel, the number of access point is more, and channel quality is got over Difference, conversely, better.Similarly, signal strength can also obtain when scan channel, and signal strength is higher, then channel quality It is higher, conversely, lower.
Mobile terminal, can be according to preset channel scanning sequency to being supported when entering a new network environment Multiple channels be scanned, and in the scanning process of each channel, the wireless access point on the channel can be obtained, thus It just can determine the channel where each wireless access point, in the embodiment of the present application, wireless access point can be bluetooth access Point.It just can determine the channel where connected wireless audio playback equipment as a result, and then obtain the corresponding error of the channel Vector magnitude.
S503: the data between the electronic equipment and the wireless audio playback equipment are reduced according to the channel quality The upper limit number of re-transmission.
The drop for the upper limit number that data between channel quality and electronic equipment and the wireless audio playback equipment retransmit Low amplitude is inversely proportional, i.e., channel quality is higher, then reduces that amplitude is smaller, and channel quality is smaller, then it is bigger to reduce amplitude, as a result, When channel quality is higher, the fast speed of data transmission, then it is shorter to retransmit the spent time, in order to guarantee data Integrality, it may be considered that several times, i.e. the reduction amplitude of the upper limit number of data re-transmission is smaller for multiple biography, and if channel quality Poor, the speed of possible data transmission is lower, then in order to guarantee the timeliness of data transmission, then the upper limit number that data retransmit Reduction amplitude is larger, i.e., the upper limit number that initial data retransmit is 3, then if the upper limit time that number needs to retransmit data Number reduces, if channel quality is poor, upper limit number is reduced to 1, if channel quality is preferable, upper limit number is reduced It is 2.
S504: the audio data is sent to described wireless by the upper limit number retransmitted according to the data after reduction Audio-frequence player device indicates the wireless audio playback equipment playing audio data.
In addition, it is necessary to explanation, above-mentioned S502 and S503 are to how reducing the electronic equipment and described wireless The specific embodiment for the upper limit number that data between audio-frequence player device retransmit can be regarded as to S202, figure in Fig. 2 The specific embodiment of the S404 in S303 and Fig. 4 in 3, can combine with the above embodiments.
It should be noted that the part being not described in detail in above-mentioned steps, can refer to previous embodiment, it is no longer superfluous herein It states.
Referring to Fig. 6, showing a kind of data transmission device provided by the embodiments of the present application, specifically, which includes: Detection unit 601, adjustment unit 602 and transmission unit 603.
Detection unit 601, for whether detecting the electronic equipment when electronic equipment connects wireless audio playback equipment Receive the playing request of audio data.
Adjustment unit 602, if reducing the electronic equipment for receiving playing request and being set with wireless audio broadcasting The upper limit number that data between standby retransmit.
Transmission unit 603, the upper limit number for being retransmitted according to the data after reduction, the audio data is sent To the wireless audio playback equipment, the wireless audio playback equipment playing audio data is indicated.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description It with the specific work process of unit, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
Referring to Fig. 7, showing a kind of electronic equipment provided by the embodiments of the present application, including memory 104 and processor 102, the memory 104 is coupled with the processor 102;104 store instruction of memory, when described instruction is by described When managing the execution of device 102, the processor 102 executes the above method.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description It with the specific work process of unit, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
Referring to Fig. 8, the embodiment of the present application also provides a kind of electronic equipment 100, example based on above-mentioned method and apparatus Property, electronic equipment 100 can be in various types of computer system devices that are mobile or portable and executing wireless communication Any one (in Fig. 8 only illustratively show a kind of form).Specifically, electronic equipment 100 can for mobile phone or Smart phone (for example, being based on iPhone TM, the phone based on Android TM), portable gaming device (such as Nintendo DS TM, PlayStation Portable TM, Gameboy Advance TM, iPhone TM), laptop computer, PDA, just Take formula internet device, music player and data storage device, other handheld devices and such as wrist-watch, earphone, pendant, Earphone etc., electronic equipment 100 can also be other wearable devices (for example, such as electronic glasses, electronics clothes, electronic hand Bracelet, electronics necklace, electronics tatoo, the headset equipment (HMD) of electronic equipment or smartwatch).
Electronic equipment 100 can also be that any one of multiple electronic equipments, multiple electronic equipments include but is not limited to Cellular phone, smart phone, other wireless telecom equipments, personal digital assistant, audio player, other media players, sound Happy logger, video recorder, camera, other medium recorders, radio, Medical Devices, vehicle transport instrument, calculator, can Program remote controler, pager, laptop computer, desktop computer, printer, netbook computer, personal digital assistant (PDA), portable media player (PMP), Motion Picture Experts Group's (MPEG-1 or MPEG-2) audio layer 3 (MP3) play Device, portable medical device and digital camera and combinations thereof.
In some cases, electronic equipment 100 can execute multiple functions and (for example, playing music, show video, storage Picture and send and receive call).If desired, electronic equipment 100 can be such as cellular phone, media play The portable device of device, other handheld devices, watch equipment, pendant equipment, receiver device or other compact portable equipment.
It includes electronic body portion 10 to above-mentioned electronic equipment 100, and the electronic body portion 10 includes that shell 12 and setting exist Main display 120 on the shell 12.Metal can be used in the shell 12, such as steel, aluminium alloy are made.In the present embodiment, The main display 120 generally includes display panel 111, may also comprise and carries out touch-control to the display panel 111 for responding The circuit etc. of operation.The display panel 111 can for liquid crystal display panel (Liquid Crystal Display, LCD), in some embodiments, the display panel 111 is a touch screen 109 simultaneously.
Please refer to Fig. 9, in actual application scenarios, the electronic equipment 100 can be used as intelligent mobile phone terminal into It exercises and uses, the electronic body portion 10 also typically includes one or more (only showing one in figure) processors in this case 102, memory 104, RF (Radio Frequency, radio frequency) module 106, voicefrequency circuit 110, sensor 114, input module 118, power module 122.It will appreciated by the skilled person that structure shown in Fig. 9 is only to illustrate, not to described The structure in electronic body portion 10 causes to limit.For example, the electronic body portion 10 may also include than shown in Fig. 9 more or more Few component, or with the configuration different from shown in Fig. 8.
It will appreciated by the skilled person that every other component belongs to for the processor 102 It is coupled between peripheral hardware, the processor 102 and these peripheral hardwares by multiple Peripheral Interfaces 124.The Peripheral Interface 124 can Based on following standard implementation: Universal Asynchronous Receive/sending device (Universal Asynchronous Receiver/ Transmitter, UART), universal input/output (General Purpose Input Output, GPIO), serial peripheral connect Mouthful (Serial Peripheral Interface, SPI), internal integrated circuit (Inter-Integrated Circuit, I2C), but it is not limited to above-mentioned standard.In some instances, the Peripheral Interface 124 can only include bus;In other examples In, the Peripheral Interface 124 may also include other elements, such as one or more controller, such as connecting the display The display controller of panel 111 or storage control for connecting memory.In addition, these controllers can also be from described It detaches, and is integrated in the processor 102 or in corresponding peripheral hardware in Peripheral Interface 124.
The memory 104 can be used for storing software program and module, and the processor 102 is stored in institute by operation The software program and module in memory 104 are stated, thereby executing various function application and data processing.The memory 104 may include high speed random access memory, may also include nonvolatile memory, and such as one or more magnetic storage device dodges It deposits or other non-volatile solid state memories.In some instances, the memory 104 can further comprise relative to institute The remotely located memory of processor 102 is stated, these remote memories can pass through network connection to the electronic body portion 10 Or the main display 120.The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile communication Net and combinations thereof.
The RF module 106 is used to receive and transmit electromagnetic wave, realizes the mutual conversion of electromagnetic wave and electric signal, thus It is communicated with communication network or other equipment.The RF module 106 may include various existing for executing these functions Circuit element, for example, antenna, RF transceiver, digital signal processor, encryption/deciphering chip, subscriber identity module (SIM) card, memory etc..The RF module 106 can be carried out with various networks such as internet, intranet, wireless network Communication is communicated by wireless network and other equipment.Above-mentioned wireless network may include cellular telephone networks, wireless Local area network or Metropolitan Area Network (MAN).Various communication standards, agreement and technology can be used in above-mentioned wireless network, including but not limited to Global system for mobile communications (Global System for Mobile Communication, GSM), enhanced mobile communication skill Art (Enhanced Data GSM Environment, EDGE), Wideband CDMA Technology (wideband code Division multipleaccess, W-CDMA), Code Division Multiple Access (Code division access, CDMA), time-division Multiple access technology (time division multiple access, TDMA), adopting wireless fidelity technology (Wireless, Fidelity, WiFi) (such as American Institute of Electrical and Electronics Engineers's standard IEEE 802.10A, IEEE 802.11b, IEEE802.11g and/ Or IEEE 802.11n), the networking telephone (Voice over internet protocal, VoIP), worldwide interoperability for microwave accesses (Worldwide Interoperability for Microwave Access, Wi-Max), other be used for mail, Instant Messenger The agreement and any other suitable communications protocol of news and short message, or even may include that those are not developed currently yet Agreement.
Voicefrequency circuit 110, earpiece 101, sound jack 103, microphone 105 provide user and the electronic body portion jointly Audio interface between 10 or the main display 120.Specifically, the voicefrequency circuit 110 receives from the processor 102 Voice data is converted to electric signal by voice data, by electric signal transmission to the earpiece 101.The earpiece 101 is by electric signal Be converted to the sound wave that human ear can be heard.The voicefrequency circuit 110 receives electric signal also from the microphone 105, by electric signal Voice data is converted to, and gives the processor 102 to be further processed data transmission in network telephony.Audio data can be with It is obtained from the memory 104 or through the RF module 106.In addition, audio data also can store to the storage It is sent in device 104 or by the RF module 106.
The setting of sensor 114 is in the electronic body portion 10 or in the main display 120, the sensor 114 example includes but is not limited to: optical sensor, pressure sensor, acceleration transducer 114F, proximity sensor 114J with And other sensors.
Specifically, the optical sensor may include light sensor.Light sensor ring according to locating for electronic equipment The light in border adjusts the brightness of screen.For example, bright and clear local screen can be very bright, on the contrary, if in the dark, screen Darker (setting with screen intensity also has relationship), had not only protected eyes in this way but also had saved electricity.
Wherein, pressure sensor can detecte the sensor by pressing the pressure generated in electronic equipment 100.That is, pressure Sensor detection is by the contact between user and electronic equipment or presses the pressure generated, such as is set by the ear of user with electronics The pressure that contact or pressing between standby generate.Therefore, pressure sensor may be used to determine user and electronic equipment 100 it Between whether contacted or pressed and the size of pressure.
Referring to Fig. 8, specifically in the embodiment shown in fig. 8, the light sensor and the pressure sensing Device is arranged adjacent to the display panel 111.The light sensor can when there is object close to the main display 120, such as When the electronic body portion 10 is moved in one's ear, the processor 102 closes display output.
As a kind of motion sensor, acceleration transducer 114F can detect in all directions (generally three axis) and accelerate The size of degree can detect that size and the direction of gravity when static, can be used to identify the application of 100 posture of electronic equipment (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.. In addition, the electronic body portion 10 can also configure the other sensors such as gyroscope, barometer, hygrometer, thermometer, herein no longer It repeats,
In the present embodiment, the input module 118 may include the touch screen being arranged on the main display 120 109, the touch screen 109 collects the touch operation of user on it or nearby, and (for example user is any using finger, stylus etc. Operation of the suitable object or attachment on the touch screen 109 or near the touch screen 109), and according to presetting The corresponding attachment device of driven by program.Optionally, the touch screen 109 may include touch detecting apparatus and touch controller. Wherein, the touch orientation of the touch detecting apparatus detection user, and touch operation bring signal is detected, it transmits a signal to The touch controller;The touch controller receives touch information from the touch detecting apparatus, and by the touch information It is converted into contact coordinate, then gives the processor 102, and order that the processor 102 is sent can be received and executed. Furthermore, it is possible to realize the touching of the touch screen 109 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves Touch detection function.
The information and the electronics that the main display 120 is used to show information input by user, is supplied to user The various graphical user interface of body part 10, these graphical user interface can by figure, text, icon, number, video and its Any combination is constituted, in an example, the touch screen 109 may be disposed on the display panel 111 to it is described Display panel 111 constitutes an entirety.
The power module 122 is used to provide power supply to the processor 102 and other each components.Specifically, The power module 122 may include power-supply management system, one or more power supply (such as battery or alternating current), charging circuit, Power-fail detection circuit, inverter, indicator of the power supply status and any other and the electronic body portion 10 or the master The generation, management of electric power and the relevant component of distribution in display screen 120.
The electronic equipment 100 further includes locator 119, and the locator 119 is for determining 100 institute of electronic equipment The physical location at place.In the present embodiment, the locator 119 realizes the positioning of the electronic equipment 100 using positioning service, The positioning service, it should be understood that the location information of the electronic equipment 100 is obtained by specific location technology (as passed through Latitude coordinate), it is marked on the electronic map by the technology or service of the position of positioning object.
In conclusion data transmission method provided by the embodiments of the present application, device, electronic equipment and computer-readable Jie Matter detects the electronic equipment whether in playing audio-fequency data, in electronics when electronic equipment connects wireless audio playback equipment When equipment is playing audio, the upper limit number that the data between electronic equipment and wireless audio playback equipment retransmit is reduced, so Afterwards, audio data is sent to the wireless audio playback equipment by the upper limit number retransmitted further according to the data, indicates the nothing Line audio-frequence player device playing audio data.The upper limit number that data are retransmitted as a result, reduces, and can reduce electronic equipment Extend the time that audio data is received by wireless headset because data retransmit between wireless audio playback equipment, avoids connecing The audio delay received is excessively high, and reduces user experience.
It should be appreciated that each section of the application can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.In addition, in each embodiment of the application In each functional unit can integrate in a processing module, be also possible to each unit and physically exist alone, can also two A or more than two units are integrated in a module.Above-mentioned integrated module both can take the form of hardware realization, can also It is realized in the form of using software function module.If the integrated module realized in the form of software function module and as Independent product when selling or using, also can store in a computer readable storage medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above Embodiments herein is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as the limit to the application System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of application Type.
Finally, it should be noted that above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although The application is described in detail with reference to the foregoing embodiments, those skilled in the art are when understanding: it still can be with It modifies the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;And These are modified or replaceed, do not drive corresponding technical solution essence be detached from each embodiment technical solution of the application spirit and Range.

Claims (10)

1. a kind of data transmission method, which is characterized in that be applied to electronic equipment, which comprises
When electronic equipment connects wireless audio playback equipment, the broadcasting whether electronic equipment receives audio data is detected Request;
If receiving playing request, the upper of the data re-transmission between the electronic equipment and the wireless audio playback equipment is reduced Limit number;
According to the upper limit number that the data after reduction retransmit, the audio data is sent to the wireless audio broadcasting and is set It is standby, indicate the wireless audio playback equipment playing audio data.
2. reduce the electronics and set the method according to claim 1, wherein if described receive playing request The upper limit number that the standby data between the wireless audio playback equipment retransmit, comprising:
If receiving playing request, judge whether the audio data belongs to the audio data of broadcasting corresponding with image data;
If belonging to, the upper limit number that the data between the electronic equipment and the wireless audio playback equipment retransmit is reduced.
3. according to the method described in claim 2, it is characterized in that, if described belong to, reduce the electronic equipment with it is described The upper limit number that data between wireless audio playback equipment retransmit, comprising:
If belonging to, the video type of the corresponding target video of the audio data is determined;
Judge whether the video type is default video type;
If default video type, then reduce what the data between the electronic equipment and the wireless audio playback equipment retransmitted Upper limit number.
4. according to the method described in claim 3, it is characterized in that, the video of the corresponding target video of the determination audio Type, comprising:
Determine the corresponding target video of the audio data;
Determine the type for playing the application program of the target video;
The video type of the target video is determined according to the type of the application program.
5. reduce the electronics and set the method according to claim 1, wherein if described receive playing request The upper limit number that the standby data between the wireless audio playback equipment retransmit, comprising:
If receiving playing request, the corresponding real-time rank of the audio data is determined;
If the real-time rank meets pre-set level, reduce between the electronic equipment and the wireless audio playback equipment Data retransmit upper limit number.
6. reduce the electronics and set the method according to claim 1, wherein if described receive playing request The upper limit number that the standby data between the wireless audio playback equipment retransmit, comprising:
If receiving playing request, by the upper limit of the data re-transmission between the electronic equipment and the wireless audio playback equipment Number is revised as default value.
7. reduce the electronics and set the method according to claim 1, wherein if described receive playing request The upper limit number that the standby data between the wireless audio playback equipment retransmit, comprising:
If receiving playing request, the channel that data are transmitted between the electronic equipment and the wireless audio playback equipment is obtained Channel quality;
The upper of the re-transmission of the data between the electronic equipment and the wireless audio playback equipment is reduced according to the channel quality Limit number.
8. a kind of data transmission device, which is characterized in that be applied to electronic equipment, described device includes:
Detection unit, for detecting whether the electronic equipment receives when electronic equipment connects wireless audio playback equipment The playing request of audio data;
Adjustment unit, if being reduced between the electronic equipment and the wireless audio playback equipment for receiving playing request Data retransmit upper limit number;
The audio data is sent to described by transmission unit, the upper limit number for being retransmitted according to the data after reduction Wireless audio playback equipment indicates the wireless audio playback equipment playing audio data.
9. a kind of electronic equipment, which is characterized in that including memory and processor, the memory is coupled with the processor; The memory store instruction, when executed by the processor, the processor execute the claim 1-7 Any one the method.
10. a kind of computer-readable medium, which is characterized in that be stored with program generation in the computer-readable storage medium Code, said program code can be called by processor and execute any one of claim 1-7 the method.
CN201810925253.8A 2018-08-14 2018-08-14 Data transmission method and device, electronic equipment and computer readable medium Active CN109194998B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810925253.8A CN109194998B (en) 2018-08-14 2018-08-14 Data transmission method and device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810925253.8A CN109194998B (en) 2018-08-14 2018-08-14 Data transmission method and device, electronic equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN109194998A true CN109194998A (en) 2019-01-11
CN109194998B CN109194998B (en) 2021-05-11

Family

ID=64921771

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810925253.8A Active CN109194998B (en) 2018-08-14 2018-08-14 Data transmission method and device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN109194998B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110958484A (en) * 2019-12-13 2020-04-03 深圳市爱图仕影像器材有限公司 Audio data transmitting and receiving method and device, audio data transmission system and storage medium
CN113472764A (en) * 2021-06-24 2021-10-01 深圳市亚昱科技有限公司 Electronic device and audio transmission method
CN115567086A (en) * 2022-09-09 2023-01-03 安克创新科技股份有限公司 Audio transmission device, audio playback device, and audio transmission and synchronization system

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101416510A (en) * 2006-03-29 2009-04-22 索尼爱立信移动通讯有限公司 Method and system for managing audio data
US20100223523A1 (en) * 2009-03-02 2010-09-02 Clear Wireless Llc Communication retransmission based on transmission performance relative to expected quality of service
CN101964996A (en) * 2010-01-18 2011-02-02 华为终端有限公司 Method and devices for optimizing wireless data transmission
CN102340389A (en) * 2011-09-30 2012-02-01 歌尔声学股份有限公司 Wireless digital communication method
CN104221317A (en) * 2012-06-04 2014-12-17 松下知识产权经营株式会社 Transmission device, reception device, transmission method, and reception method
CN104243111A (en) * 2014-09-01 2014-12-24 广州华多网络科技有限公司 Method and device for transmitting data packet
CN105451164A (en) * 2015-11-30 2016-03-30 深圳市金立通信设备有限公司 Data transmission control method, device and system and relevant equipment
CN105474701A (en) * 2013-08-20 2016-04-06 株式会社东芝 Communication control apparatus, communication control method and program
JP2016082245A (en) * 2014-10-09 2016-05-16 Kddi株式会社 Radio communication apparatus, radio communication method, and radio communication program
CN105812439A (en) * 2014-12-31 2016-07-27 华为技术有限公司 Audio transmission method and device
CN105827849A (en) * 2016-04-28 2016-08-03 维沃移动通信有限公司 Method for adjusting sound effect and mobile terminal
CN106470472A (en) * 2015-08-18 2017-03-01 Gn瑞声达A/S The method exchanging different size packet between the first and second portable communication devices
US9729630B2 (en) * 2004-06-04 2017-08-08 Apple Inc. System and method for synchronizing media presentation at multiple recipients
CN108111194A (en) * 2018-02-09 2018-06-01 南京中感微电子有限公司 Bluetooth communication method, system and bluetooth method of reseptance, equipment
CN108337074A (en) * 2018-06-22 2018-07-27 恒玄科技(上海)有限公司 The bluetooth headset wireless communications method of high reliability

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9729630B2 (en) * 2004-06-04 2017-08-08 Apple Inc. System and method for synchronizing media presentation at multiple recipients
CN101416510A (en) * 2006-03-29 2009-04-22 索尼爱立信移动通讯有限公司 Method and system for managing audio data
US20100223523A1 (en) * 2009-03-02 2010-09-02 Clear Wireless Llc Communication retransmission based on transmission performance relative to expected quality of service
CN101964996A (en) * 2010-01-18 2011-02-02 华为终端有限公司 Method and devices for optimizing wireless data transmission
CN102340389A (en) * 2011-09-30 2012-02-01 歌尔声学股份有限公司 Wireless digital communication method
CN104221317A (en) * 2012-06-04 2014-12-17 松下知识产权经营株式会社 Transmission device, reception device, transmission method, and reception method
CN105474701A (en) * 2013-08-20 2016-04-06 株式会社东芝 Communication control apparatus, communication control method and program
CN104243111A (en) * 2014-09-01 2014-12-24 广州华多网络科技有限公司 Method and device for transmitting data packet
JP2016082245A (en) * 2014-10-09 2016-05-16 Kddi株式会社 Radio communication apparatus, radio communication method, and radio communication program
CN105812439A (en) * 2014-12-31 2016-07-27 华为技术有限公司 Audio transmission method and device
CN106470472A (en) * 2015-08-18 2017-03-01 Gn瑞声达A/S The method exchanging different size packet between the first and second portable communication devices
CN105451164A (en) * 2015-11-30 2016-03-30 深圳市金立通信设备有限公司 Data transmission control method, device and system and relevant equipment
CN105827849A (en) * 2016-04-28 2016-08-03 维沃移动通信有限公司 Method for adjusting sound effect and mobile terminal
CN108111194A (en) * 2018-02-09 2018-06-01 南京中感微电子有限公司 Bluetooth communication method, system and bluetooth method of reseptance, equipment
CN108337074A (en) * 2018-06-22 2018-07-27 恒玄科技(上海)有限公司 The bluetooth headset wireless communications method of high reliability

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
RAUL RONDON,MIKAEL GIDLUND,KRISTER LANDERNAS: "Evaluating Bluetooth Low Energy Suitability for Time-Critical Industrial IoT Applications", 《INT J WIRELESS INF NETWORKS》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110958484A (en) * 2019-12-13 2020-04-03 深圳市爱图仕影像器材有限公司 Audio data transmitting and receiving method and device, audio data transmission system and storage medium
CN110958484B (en) * 2019-12-13 2021-12-07 深圳市爱图仕影像器材有限公司 Audio data transmitting and receiving method and device, audio data transmission system and storage medium
CN113472764A (en) * 2021-06-24 2021-10-01 深圳市亚昱科技有限公司 Electronic device and audio transmission method
CN113472764B (en) * 2021-06-24 2024-03-08 深圳市亚昱科技有限公司 Electronic device and audio transmission method
CN115567086A (en) * 2022-09-09 2023-01-03 安克创新科技股份有限公司 Audio transmission device, audio playback device, and audio transmission and synchronization system
CN115567086B (en) * 2022-09-09 2024-03-26 安克创新科技股份有限公司 Audio transmission device, audio playing device and audio transmission and synchronization system

Also Published As

Publication number Publication date
CN109194998B (en) 2021-05-11

Similar Documents

Publication Publication Date Title
US10466961B2 (en) Method for processing audio signal and related products
EP3547710B1 (en) Method for processing signals, terminal device, and non-transitory computer-readable storage medium
CN109274405B (en) Data transmission method and device, electronic equipment and computer readable medium
CN107464557B (en) Call recording method and device, mobile terminal and storage medium
CN100382621C (en) Information processing device
CN108347529B (en) Audio playing method and mobile terminal
CN107846516B (en) Call scene prompting method and mobile terminal
EP3542522A1 (en) Incoming call management method and apparatus
CN105262878B (en) The processing method and mobile terminal of call automatic recording
CN110536193B (en) Audio signal processing method and device
WO2017215661A1 (en) Scenario-based sound effect control method and electronic device
CN109194998A (en) Data transmission method, device, electronic equipment and computer-readable medium
CN107707728A (en) A kind of audio transmission switching method, terminal and computer-readable recording medium
CN105848306A (en) Method for establishing connection between terminals and terminal
CN107911777B (en) Processing method and device for return-to-ear function and mobile terminal
CN106506437A (en) A kind of audio data processing method, and equipment
CN105704106B (en) A kind of visualization IVR implementation method and mobile terminal
CN113921002A (en) Equipment control method and related device
CN107635083A (en) The tinkle of bells method to set up, mobile terminal and readable storage medium storing program for executing
CN107659328B (en) Call control method, device, terminal, phone system and readable storage medium storing program for executing
CN107728990B (en) Audio playing method, mobile terminal and computer readable storage medium
CN109688268A (en) A kind of method and device, mobile terminal and the storage medium of mixed audio output
CN105763929A (en) Audio switching method and audio switching device
CN107920312A (en) Headset control method, mobile terminal and storage medium based on ultrasonic wave
CN111081283A (en) Music playing method and device, storage medium and terminal equipment

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