CN108811057A - A kind of data transmission method, device and electronic equipment - Google Patents

A kind of data transmission method, device and electronic equipment Download PDF

Info

Publication number
CN108811057A
CN108811057A CN201810556203.7A CN201810556203A CN108811057A CN 108811057 A CN108811057 A CN 108811057A CN 201810556203 A CN201810556203 A CN 201810556203A CN 108811057 A CN108811057 A CN 108811057A
Authority
CN
China
Prior art keywords
state
data
duration
wireless communication
communication module
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
CN201810556203.7A
Other languages
Chinese (zh)
Other versions
CN108811057B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201810556203.7A priority Critical patent/CN108811057B/en
Publication of CN108811057A publication Critical patent/CN108811057A/en
Application granted granted Critical
Publication of CN108811057B publication Critical patent/CN108811057B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

This disclosure relates to field of communication technology, more particularly to a kind of data transmission method, device and electronic equipment.Wherein, data transmission method includes:The wireless communication module of electronic equipment in first state sends the first data of the second duration to be played in the first duration;After the first data are completed to send and before starting to send the second data of the 4th duration to be played, wireless communication module switches to the second state by first state;Wireless communication module switches to first state by the second state, and the second data are sent in third duration;Wherein, the second duration is more than the first duration, and the 4th duration is more than third duration, and the power consumption of the second state is less than first state.Data transmission method, device and the electronic equipment of the disclosure can solve existing electronic equipment when carrying out data transmission using wireless communication module, the larger problem of the power consumption of electronic equipment.

Description

A kind of data transmission method, device and electronic equipment
Technical field
The present embodiments relate to field of communication technology, more particularly to a kind of data transmission method, device and electronic equipment.
Background technology
The electronic equipments such as smart mobile phone, tablet computer generally all have wireless communication module.Utilizing wireless communication module When sending the data for broadcasting to other playback equipments, in order to improve the usage experience of user, ensure that playback equipment can be steady Fixed constantly played data, wireless communication module need continuous transmission played data, cause it in running order always.Cause This, can make that the power consumption of electronic equipment is larger, power consumption rate is very fast.
Invention content
An embodiment of the present invention provides a kind of data transmission method, device and electronic equipments, can solve the prior art For electronic equipment when being carried out data transmission using wireless communication module, the power consumption of electronic equipment is larger, power consumption rate is asked faster Topic.
In order to solve the above-mentioned technical problem, an embodiment of the present invention provides the following technical solutions:
An embodiment of the present invention provides a kind of data transmission method, method includes:
Wireless communication module in first state sends the first number of the second duration to be played in the first duration According to;
After the first data are completed to send and before starting to send the second data of the 4th duration to be played, channel radio Letter module switches to the second state by first state;
Wireless communication module switches to first state by the second state, and the second data are sent in third duration;
Wherein, the second duration is more than the first duration, and the 4th duration is more than third duration, and the power consumption of the second state is less than first State.
Further, in the wireless communication module in first state, when sending to be played second in the first duration Before the first long data, including:
The first data are generated using multiple first subdatas, the second data are generated using multiple second subdatas.
Further, the first data are generated using multiple first subdatas, the second number is generated using multiple second subdatas According to, including:
Cancel the first transmission time interval between multiple first subdatas, makes multiple the first numbers of first subdata composition According to;Cancel the second transmission time interval between multiple second subdatas, multiple second subdatas is made to form the second data.
Further, the first data are generated using multiple first subdatas, the second number is generated using multiple second subdatas According to, including:
By the first data of multiple first subdata boil down tos with the first transmission time interval, when will have the second transmission Between the second data of multiple second subdata boil down tos for being spaced.
Further, wireless communication module switches to the second state by first state and includes:
Wireless communication module receives the first control instruction, and switches to the second shape by first state according to the first control instruction State.
Further, wireless communication module is switched to first state by the second state includes:
When wireless communication module, which switches to the second state, reaches five durations, wireless communication module receives the second control and refers to It enables, and first state is switched to by the second state according to the second control instruction, wherein the sum of the 5th duration and third duration are little In the second duration.
Further, wireless communication module is switched to first state by the second state includes:
First control instruction includes the 5th duration that control wireless communication module is in the second state, makes wireless communication module After switching to the second state the 5th duration of arrival, first state is switched to by the second state, wherein the 5th duration and third duration The sum of be not more than the second duration.
Further, further include:
Wireless communication module transmission data and switching state are controlled by processing module;
After the first data are completed to send and before starting to send the second data, processing module is switched to by the third state The power consumption of 4th state, the 4th state is less than the third state.
The embodiment of the present invention additionally provides a kind of data transmission device, including wireless communication module, wherein radio communication mold Block includes:
Data transmission unit is configured to send data to be played;
First control unit is configured to that the wireless communication module is made to be switched to first state or the second state;
Second control unit is configured to when wireless communication module is in first state, and control data transmission unit exists The first data of the second duration to be played are sent in first duration;After the first data are completed to send and starts to send and wait broadcasting Before second data of the 4th duration put, the first control unit of control makes wireless communication module switch to second by first state State;Controlling the first control unit makes wireless communication module switch to first state by the second state, and controls data and send list Member sends the second data in third duration;
Wherein, the second duration is more than the first duration, and the 4th duration is more than third duration, and the power consumption of the second state is less than first State.
The embodiment of the present invention additionally provide a kind of electronic equipment, including at least one processor, at least one processor with And computer program instructions stored in memory, when computer program instructions are executed by processor, processor can:
By the wireless communication module of the electronic equipment in first state, to be played second is sent in the first duration First data of duration;
After the first data are completed to send and before starting to send the second data of the 4th duration to be played, nothing is controlled Line communication module switches to the second state by first state;
Wireless communication module is switched into first state by the second state, and by radio communication module in third duration Send the second data;
Wherein, the second duration is more than the first duration, and the 4th duration is more than third duration, and the power consumption of the second state is less than first State.
Based on disclosed above, the advantageous effect of the embodiment of the present invention is:
Data transmission method, device and the electronic equipment of the embodiment of the present invention carry out to be played in wireless communication module When data transmission, can the first data complete send after and start send the second data before time in, by power consumption compared with High first state switches to lower second state of power consumption, carries out waiting broadcasting in module by radio communication to reduce electronic equipment The power consumption when data transmission put, and reduce the power consumption rate of electronic equipment.
Description of the drawings
Fig. 1 is the flow chart of the data transmission method of one embodiment of the invention;
Fig. 2 is the flow chart of the data transmission method of another embodiment of the present invention;
Fig. 3 is the structural schematic diagram of the data transmission device of the embodiment of the present invention;
Fig. 4 is the structural schematic diagram of the electronic equipment of the embodiment of the present invention.
Specific implementation mode
In the following, specific embodiments of the present invention are described in detail in conjunction with attached drawing, but it is not as limiting to the invention.
It should be understood that various modifications can be made to disclosed embodiments.Therefore, description above should not regard To limit, and only as the example of embodiment.Those skilled in the art will expect within the scope and spirit of this Other modifications.
The attached drawing being included in the description and forms part of the description shows embodiment of the disclosure, and with it is upper What face provided is used to explain the disclosure together to the substantially description of the disclosure and the detailed description given below to embodiment Principle.
It is of the invention by the description of the preferred form of the embodiment with reference to the accompanying drawings to being given as non-limiting examples These and other characteristic will become apparent.
Although being also understood that invention has been described with reference to some specific examples, people in the art Member realize with can determine the present invention many other equivalents, they have feature as claimed in claim and therefore all In the protection domain defined by whereby.
When read in conjunction with the accompanying drawings, in view of following detailed description, above and other aspect, the feature and advantage of the disclosure will become It is more readily apparent.
The specific embodiment of the disclosure is described hereinafter with reference to attached drawing;It will be appreciated, however, that the disclosed embodiments are only Various ways implementation can be used in the example of the disclosure.It is known and/or repeat function and structure be not described in detail to avoid Unnecessary or extra details so that the disclosure is smudgy.Therefore, specific structural and functionality disclosed herein is thin Section is not intended to restrictions, but as just the basis of claim and representative basis be used to instruct those skilled in the art with Substantially any appropriate detailed construction diversely uses the disclosure.
This specification can be used phrase " in one embodiment ", " in another embodiment ", " in another embodiment In " or " in other embodiments ", it can be referred to one or more of the identical or different embodiment according to the disclosure.
In the following, data transmission method, device and the electronic equipment of the embodiment of the present invention are described in detail in conjunction with attached drawing 1-4.
As shown in Figure 1, the present invention provides a kind of data transmission method, method includes:
The wireless communication module of S11, electronic equipment in first state, send to be played second in the first duration First data of duration.
S12, after the first data are completed to send and before starting to send the second data of the 4th duration to be played, nothing Line communication module switches to the second state by first state.
S13, wireless communication module switch to first state by the second state, and by radio communication module in third duration The second data of interior transmission.
In embodiments of the present invention, first state is in working condition, when wireless communication module is in running order, wirelessly All functional units of communication module are in working condition;Second state is dormant state, is stopped when wireless communication module is in When dormancy state, wireless communication module is only useful for receiving the drive control unit of wake-up signal and for connecting with other equipment Communication connection unit is in running order, other units are in inoperative such as information data transmission unit, control unit State.Therefore, the power consumption of the second state can be less than the power consumption of first state.
In embodiments of the present invention, first when a length of wireless communication module send the durations of the first data, second when, is a length of Other equipment plays the duration of the first data, and when third, a length of wireless communication module sent the duration of the second data, the 4th duration The duration of the second data is played for other equipment.Wherein, the second duration is more than the first duration, i.e. other equipment plays the first data Duration be more than wireless communication module send the first data duration.4th duration is more than third duration, i.e. other equipment plays The duration of second data is more than the duration that wireless communication module sends the second data.
When carrying out data transmission to be played due to wireless communication module, after the first data are completed to send and it can open It originates in the time sent before the second data, lower second state of power consumption is switched to by the higher first state of power consumption, therefore, Power consumption when wireless communication module carries out data transmission to be played can be reduced, to reduce with the wireless communication module The overall power and power consumption rate of electronic equipment.
In embodiments of the present invention, wireless communication module sends the first data at the first moment, and the is sent at the second moment Two data.Wherein, the first moment is earlier than the second moment.And start at the first moment after sending the first duration of the first data, First data are completed should be earlier than the second moment at the time of sending the first data.Start to receive the first number in the first moment other equipment According to the first duration after, the first data receiver of other equipment pair finishes, and starts to play the first data, when starting broadcasting first After second duration of data, other equipment is completed to be later than for the second moment at the time of playing the first data.
In embodiments of the present invention, electronic equipment can be the tools such as mobile phone, tablet computer, laptop or desktop computer There is the equipment of wireless communication module.Wireless communication module can be bluetooth module, WI-FI modules or ZigBee module, electronics Equipment module can wirelessly communicate the other equipment connecting with it to module by radio communication and carry out waiting broadcasting by radio communication The data transmission put.Other equipment can be wireless headset, smart television, mobile phone, tablet computer, laptop or desktop Brain etc. can be by being carried out wireless communication with electronic equipment equipment.Accordingly, data to be played can be at other Audio data, video data, lteral data or image data for being played out in equipment etc..
In an embodiment of the invention, electronic equipment can be mobile phone, and wireless communication module can be bluetooth module, His equipment can be bluetooth headset, and data to be played can be audio data.In mobile phone by bluetooth module to bluetooth headset It sends when the audio data that bluetooth headset plays, audio data can be divided into more audio subdatas and sent successively, wherein In two adjacent audio subdatas of sending time, the audio subdata first sent as the first data, send afterwards one Audio subdata is as the second data.It is waited for bluetooth headset transmission in the first duration at this point, mobile phone first passes through bluetooth module First data of the second duration played, then after the first data are completed to send and before starting to send the second data, control Bluetooth module processed switches to the second state by first state, finally, bluetooth module is switched to first state by the second state, and By bluetooth module the second data are sent to bluetooth headset in third duration.
In another embodiment of the invention, electronic equipment can be laptop, and wireless communication module can be WI- FI modules, other equipment can be smart television, and data to be played can be video data.Pass through WI- in laptop FI modules are sent to smart television when the video data that smart television plays, and video data can be divided into more video subnumbers According to, wherein in two adjacent video subdatas of sending time, a video subdata first sending as the first data, after The video subdata sent is as the second data.At this point, laptop first pass through WI-FI modules in the first duration to Smart television sends the first data of the second duration to be played, then after the first data are completed to send and starts transmission the Before two data, control WI-FI modules switch to the second state by first state, and finally, WI-FI modules are cut by the second state First state is shifted to, and the second data are sent to smart television in third duration by WI-FI modules.
But with the Bluetooth audio frequency mode of the bluetooth module of mobile phone and bluetooth headset agreement (Advanced Audio Distribution Profile, A2DP) for, when carrying out data transmission, audio data first can be divided into more by mobile phone terminal The smaller audio subdata of data volume, and more audio subdatas are sent successively.This makes when sending audio data, previous Duration before audio subdata is completed to start transmission to latter audio subdata after sending is shorter, and due to audio subnumber According to quantity it is more, cause bluetooth module need between the first state and a second state frequent switching therefore can also increase indigo plant The power consumption of tooth module and mobile phone, and shorten the service life of bluetooth module and mobile phone.
To solve the above-mentioned problems, the power consumption of wireless communication module and electronic equipment is further decreased, wireless communication is improved The service life of module and electronic equipment.In embodiments of the present invention, step S11:In the wireless communication module in first state, Before the first data for sending the second duration to be played in the first duration, further include:It is generated using multiple first subdatas First data generate the second data using multiple second subdatas.
Wherein, multiple first subdatas and multiple second subdatas are the subdata of same type, data volume size It is identical, and the transmission time interval between the first subdata of each two and the second subdata is identical.Multi-group data amount is smaller The first subdata be integrated into the first data, the second subdata is integrated into the second data so that the first data the last one The transmission time interval of first the second subdata of one subdata and the second data is compared to two adjacent first subdatas Or the transmission time interval between two adjacent second subdatas increases.Also, due to being sent successively according to multi-group data, phase It is reduced compared with the data transmission times sent successively according to each subdata.Therefore, can extend between sending two groups of data Time interval reduces the switching frequency of wireless communication module and electronic equipment, to reduce wireless communication module and electronic equipment Power consumption.
By taking the A2DP of the bluetooth module of above-mentioned mobile phone and bluetooth headset agreements as an example, audio data is divided into more audios After subdata, it is divided into multigroup, the audio subdata in one first sent group wherein in two adjacent groups audio subdata As the first subdata, this group of audio subdata generally the first data, the audio subdata in one group sent afterwards is as Two subdatas, this group of audio subdata generally the second data.After more audio subdata groupings are sent, you can so that every two Transmission time interval between group audio subdata is elongated relative to the time interval between sending every two audio subdatas, and And transmission times is reduced, the switching frequency of bluetooth module and mobile phone between first state and the second state is reduced, is further decreased The power consumption of bluetooth module and mobile phone.
In embodiments of the present invention, the first data are generated using multiple first subdatas, is given birth to using multiple second subdatas At the second data, there are following two ways:
First way is:Cancel the first transmission time interval between multiple first subdatas, makes multiple first subnumbers According to forming the first data;Cancel the second transmission time interval between multiple second subdatas, multiple second subdatas is made to form Second data.
By taking the A2DP of the bluetooth module of above-mentioned mobile phone and bluetooth headset agreements as an example, i.e., more audio subdatas are divided into It is multigroup, and the transmission time interval of the two neighboring audio subdata in every group is cancelled, continuously transmit multiple audios in group Subdata.After the completion of the one group of audio subdata sent in the ban continuously transmits, original multiple audio subdatas can be waited for After whole transmission time intervals, the audio subdata of later group is retransmited, increases the sending time between two groups of audio subdatas Interval.
The second way is:It, will by the first data of multiple first subdata boil down tos with the first transmission time interval The second data of multiple second subdata boil down tos with the second transmission time interval.
By taking the A2DP of the bluetooth module of above-mentioned mobile phone and bluetooth headset agreements as an example, i.e., more audio subdatas are divided into It is multigroup, and by multiple one data packet of audio subdata boil down in every group, then in same time parallel transmission group Multiple audio subdatas.After the one group of audio subdata sent in the ban is sent completely, original multiple audio subnumbers can be waited for After sending the sum of duration and whole transmission time intervals according to -1 data, the audio subdata of later group is retransmited, compared to the A kind of mode can further increase the transmission time interval between two groups of audio subdatas.
In the step S12 of the embodiment of the present invention, the method that wireless communication module switches to the second state by first state, Including:
Wireless communication module receives the first control instruction, and switches to the second shape by first state according to the first control instruction State.
Wherein, the first control instruction can be to be switched to dormant state by working condition for controlling wireless communication module Control signal.Using electronic equipment as mobile phone, wireless communication module be bluetooth module, other equipment is bluetooth headset, to be played It is for audio data, bluetooth module can be received to be switched to not when the first data are sent by working condition by data The control signal of dormancy state, bluetooth module can judge the time that the first data are sent according to the control signal, and by work It is switched to dormant state as state.
In order to enable wireless communication module to be waken up in time before the second moment, to send the to other equipment in time Two data, guarantee will not be long due to the transmission intercal between two data, so that user is experienced broadcasting interim card, to influence to use The usage experience at family.In embodiments of the present invention, wireless communication module switches to after the second state reaches the 5th duration, by second State switches to first state.Wherein, the 5th duration can be wireless communication module be in the second state (dormant state) when Long, the sum of the 5th duration and third duration are not more than the second duration, the i.e. maximum time of wireless communication module in a dormant state The sum of duration of the second data is sent with wireless communication module cannot be more than the duration of other the first data of data playback.Meanwhile Wireless communication module starts at the first moment after sending the first duration of the first data, completes to send the first data in the first data At the time of immediately enter dormant state, and be waken up in running order after the 5th duration at the time of, should be earlier than radio communication mold BOB(beginning of block) sends the second moment of the second data.
In the step S13 of one embodiment of the invention, wireless communication module is switched into first state by the second state Method, including:
When wireless communication module, which switches to the second state, reaches five durations, wireless communication module receives the second control and refers to It enables, and first state is switched to by the second state according to the second control instruction.
Wherein, the second control instruction can be in working condition for controlling wireless communication module by dormant state switching Control signal.Using electronic equipment as mobile phone, wireless communication module be bluetooth module, other equipment is bluetooth headset, to be played Data be audio data for, when bluetooth module, which is switched to dormant state, reaches five durations, bluetooth module can receive by It switches the control signal being in working condition by dormant state, and bluetooth module can be according to the control signal immediately by dormant state Switching is in working condition.
In embodiments of the present invention, the computational methods of the maximum time of the 5th duration are:It can be played using the first data The second duration subtract the second data and need the third duration that sends, the as maximum time of the 5th duration.Therefore, as long as Five durations are less than its maximum time, can ensure that the first data and the second data are not in playing interval, that is, be not in Play interim card.In practical application, in order to avoid wireless communication module switching frequency is too fast, when can be by the maximum of the 5th duration It is long to be used as the 5th duration.
In the step S13 of another embodiment of the present invention, wireless communication module is switched into the first shape by the second state The method of state, including:
First control instruction includes the 5th duration that control wireless communication module is in the second state, makes wireless communication module After switching to the second state the 5th duration of arrival, first state is switched to by the second state.
Wherein, the first control instruction can be to be switched by working condition in the 5th duration for controlling wireless communication module For the control signal of dormant state.It is bluetooth module using electronic equipment as mobile phone, wireless communication module, other equipment is bluetooth ear Machine, data to be played is for audio data, bluetooth module can receive it when the first data are sent the 5th The control signal of dormant state is switched in duration by working condition, bluetooth module can judge the first number according to the control signal It is switched to dormant state according to the time being sent, and by working condition, reaches the 5th when bluetooth module is switched to dormant state When duration, bluetooth module is automatically and immediately in working condition by dormant state switching.
In embodiments of the present invention, data transmission method further includes:The wireless communication module is controlled by processing module Transmission data and switching state.The wireless communication module of the electronic equipment of first state is in by processing module control, The first data of the second duration to be played are sent in first duration;After the first data are completed to send and starts to send and wait broadcasting Before second data of the 4th duration put, wireless communication module is controlled by processing module, the second shape is switched to by first state State;Wireless communication module is controlled by processing module, first state is switched to by the second state, and module exists by radio communication The second data are sent in third duration.
In order to further decrease the power consumption of electronic equipment, as shown in Fig. 2, the embodiment of the present invention additionally provides a kind of data biography Transmission method, including:
S21, processing module are sent by the wireless communication module of the electronic equipment in first state in the first duration First data of the second duration to be played.
S22, the first data complete send after and start send the second data before, processing module is cut by the third state The 4th state is shifted to, and controls wireless communication module after the first data are completed to send and when starting to send to be played the 4th Before the second long data, the second state is switched to by first state.
Wireless communication module is switched to first state, and module by radio communication by S23, processing module by the second state The second data are sent in third duration.
In embodiments of the present invention, first state is in working condition, when wireless communication module is in running order, wirelessly All functional units of communication module are in working condition;Second state is dormant state, is stopped when wireless communication module is in When dormancy state, wireless communication module is only useful for receiving the drive control unit of wake-up signal and for connecting with other equipment Communication connection unit is in running order, other units are in inoperative such as information data transmission unit, control unit State.Therefore, the power consumption of the second state is less than the power consumption of first state.
In embodiments of the present invention, the third state is in working condition, when processing module is in running order, processing module All functional units be in working condition;4th state is the in running order intermediate state between dormant state. When processing module is in four states, one in the control unit of electronic equipment, telephony unit, clock unit and collecting unit It is a or multiple 4th state is switched to by the third state.Meanwhile the CPU core number of processing unit can also reduce.Therefore, the 4th The power consumption of state is less than the power consumption of the third state.
In embodiments of the present invention, first when a length of wireless communication module send the durations of the first data, second when, is a length of Other equipment plays the duration of the first data, and when third, a length of wireless communication module sent the duration of the second data, the 4th duration The duration of the second data is played for other equipment.Wherein, the second duration is more than the first duration, i.e. other equipment plays the first data Duration be more than wireless communication module send the first data duration.4th duration is more than third duration, i.e. other equipment plays The duration of second data is more than the duration that wireless communication module sends the second data.
In embodiments of the present invention, processing module switches to after the 4th state reaches the 5th duration, is switched by the 4th state To the third state, the sum of the 5th duration and third duration are not more than the second duration.
In order to enable processing module to be waken up in time before the second moment, so as in time to wireless communication module transmission the Two data, guarantee will not be long due to the transmission intercal between two data, so that user is experienced broadcasting interim card, to influence to use The usage experience at family.In embodiments of the present invention, processing module switches to after the 4th state reaches the 5th duration, i.e., automatically by Four states switch to the third state.Wherein, the 5th duration can be that processing module is in the 4th state (intermediate state) simultaneously Duration, the sum of the 5th duration and third duration be not more than the second duration, i.e., the maximum time of electronic equipment in a dormant state with Wireless communication module, which sends the sum of duration of the second data, cannot be more than the duration of other the first data of data playback.Meanwhile locating At the time of reason module transmits the first data to radio communication mold BOB(beginning of block) after the first duration, completed to wireless communication in processing module Dormant state is immediately entered at the time of the first data of module transfer, and be waken up after the 5th duration it is in running order, this when At the time of quarter should be earlier than the second data be transmitted to wireless communication module.
In embodiments of the present invention, the computational methods of the maximum time of the 5th duration are:It can be played using the first data The second duration subtract the second data and need the third duration that sends, the as maximum time of the 5th duration.Therefore, as long as Five durations are less than its maximum time, can ensure that the first data and the second data are not in playing interval, that is, be not in Play interim card.In practical application, in order to avoid electronic equipment switching frequency is too fast, the maximum time of the 5th duration can be made For the 5th duration.
In an embodiment of the invention, when wireless communication module needs to control it by the second shape by the second control instruction When state switches to first state, after processing module switches to the third state by the 4th state, second is sent to wireless communication module Control instruction makes wireless communication module switch to first state by the second state.I.e. when wireless communication module completes the first data Transmission after, processing module is in the 4th state, and when wireless communication module is in the second state, processing module is switched to first Then three condition sends the second control signal for being switched to first state by the second state to wireless communication module, works as channel radio After letter module obtains the second control signal, first state is switched to by the second state according to the second control signal.
As shown in figure 3, the present invention also provides a kind of data transmission device, including wireless communication module 10, wherein it is wireless Communication module 10 includes:
Data transmission unit 11 is configured to send data to be played;
First control unit 12 is configured to that wireless communication module 10 is made to be switched to first state or the second state;
Second control unit 13 is configured to when wireless communication module 10 is in first state, and control data send single Member 11 sends the first data of the second duration to be played in the first duration;After the first data are completed to send and start to send out Before the second data for sending the 4th duration to be played, the first control unit 12 of control makes wireless communication module 10 by first state Switch to the second state;Controlling the first control unit 12 makes wireless communication module 10 switch to first state by the second state, and Control data transmission unit 11 sends the second data in third duration;
Wherein, the second duration is more than the first duration, and the 4th duration is more than third duration, and the power consumption of the second state is less than first State.
In embodiments of the present invention, first state is in working condition, when wireless communication module 10 is in running order, nothing All functional units of line communication module 10 are in working condition;Second state is dormant state, when wireless communication module 10 When in a dormant state, wireless communication module 10 is only useful for receiving the drive control unit of wake-up signal and for setting with other The communication connection unit of standby connection is in running order, other units such as data transmission unit 11,12 and of the first control unit Second control unit 13 etc. is in off working state.Therefore, the power consumption of the second state is less than the power consumption of first state.
In embodiments of the present invention, first when a length of wireless communication module 10 send the durations of the first data, the second duration Playing the duration of the first data for other equipment, when third, a length of wireless communication module 10 sent the duration of the second data, and the 4th Shi Changwei other equipments play the duration of the second data.Wherein, the second duration is more than the first duration, i.e. other equipment plays first The duration of data is more than the duration that wireless communication module 10 sends the first data.4th duration is more than third duration, i.e., other set The standby duration for playing the second data is more than the duration that wireless communication module 10 sends the second data.
It, can be complete in the first data when due to electronic equipment, module 10 carries out data transmission to be played by radio communication At after transmission and start send the second data before time in, by wireless communication module 10 by the higher first state of power consumption Lower second state of power consumption is switched to, therefore, it is possible to reduce when wireless communication module 10 carries out data transmission to be played Power consumption, to reduce the overall power and power consumption rate of electronic equipment.
In embodiments of the present invention, data transmission unit 11 is further configured in the wireless communication in first state Before the first data for sending the second duration to be played in the first duration, the is generated using multiple first subdatas for module 10 One data generate the second data using multiple second subdatas.
Specifically, in an embodiment of the invention, data transmission unit 11 is further configured to cancel multiple first The first transmission time interval between subdata makes multiple first subdatas form the first data;Cancel multiple second subdatas Between the second transmission time interval, so that multiple second subdatas is formed the second data.In another embodiment, number It is further configured to count multiple first subdata boil down tos first with the first transmission time interval according to transmission unit 11 According to by the second data of multiple second subdata boil down tos with the second transmission time interval.
In embodiments of the present invention, the first control unit 12 be further configured to receive the first control instruction, and according to Wireless communication module 10 is switched to the second state by the first control instruction by first state.
In embodiments of the present invention, wireless communication module 10 switches to after the second state reaches the 5th duration, by channel radio Letter module 10 switches to first state by the second state, and the sum of the 5th duration and third duration are not more than the second duration.Wherein, Five durations can be the duration that wireless communication module 10 is in the second state (dormant state), the sum of the 5th duration and third duration No more than the second duration, i.e. the maximum time of wireless communication module 10 in a dormant state sends second with wireless communication module 10 The sum of duration of data cannot be more than the duration of other the first data of data playback.Meanwhile wireless communication module 10 is at first After carving the first duration for starting to send the first data, suspend mode shape is immediately entered at the time of the first data complete the first data of transmission State, and be waken up in running order after the 5th duration at the time of should start to send the second data earlier than wireless communication module 20 The second moment.
In an embodiment of the invention, the first control unit 12 is further configured to switch when wireless communication module 10 To the second state reach five durations when, wireless communication module 10 receive the second control instruction, and according to the second control instruction by Second state switches to first state.In another embodiment, the first control that the first control unit 12 receives refers to It can include that control wireless communication module 10 be in the 5th duration of the second state in order, wireless communication module 10 is made to switch to the After two-state reaches the 5th duration, first state is switched to by the second state.
In embodiments of the present invention, the computational methods of the maximum time of the 5th duration are:It can be played using the first data The second duration subtract the second data and need the third duration that sends, the as maximum time of the 5th duration.Therefore, as long as Five durations are less than its maximum time, can ensure that the first data and the second data are not in playing interval, that is, be not in Play interim card.In practical application, in order to avoid wireless communication module switching frequency is too fast, when can be by the maximum of the 5th duration It is long to be used as the 5th duration.
In embodiments of the present invention, data transmission device can also include processing module 20, and be controlled by processing module 20 10 transmission data of wireless communication module and switching state processed.Wherein, after the first data are completed to send and start transmission second Before data, processing module 20 switches to the 4th state by the third state, and the power consumption of the 4th state is less than the third state.
In embodiments of the present invention, the third state is in working condition, and when processing module 20 is in running order, handles mould All functional units of block 20 are in working condition;4th state is the in running order intermediate shape between dormant state State.When processing module 20 is in four states, control unit, telephony unit, clock unit and the collecting unit of electronic equipment One or more of the 4th state is switched to by the third state.Meanwhile the CPU core number of processing unit can also reduce.Cause This, the power consumption of the 4th state is less than the power consumption of the third state.
In embodiments of the present invention, processing module 20 switches to after the 4th state reaches the 5th duration, i.e., automatically by the 4th State switches to the third state.Wherein, the 5th duration can be that processing module 20 is in the 4th state (intermediate state) simultaneously Duration, the sum of the 5th duration and third duration are not more than the second duration, the i.e. maximum time of processing module 20 in a dormant state The sum of duration of the second data is sent with wireless communication module 10 cannot be more than the duration of other the first data of data playback.Together When, it is complete in processing module 20 at the time of processing module 20 starts to transmit the first data to wireless communication module 10 after first duration Dormant state is immediately entered at the time of transmitting the first data to wireless communication module 10, and is waken up and is in after the 5th duration Working condition, at the time of which should be earlier than the second data be transmitted to wireless communication module 10.
In an embodiment of the invention, when wireless communication module 10 needs to control it by second by the second control instruction When state switches to first state, after processing module 20 switches to the third state by the 4th state, sent out to wireless communication module 10 The second control instruction is sent, wireless communication module 10 is made to switch to first state by the second state.I.e. when wireless communication module 10 is complete After transmission at the first data, processing module 20 is in the 4th state, when wireless communication module 10 is in the second state, handles mould Block 20 is switched to the third state first, and the second of first state is then switched to by the second state to the transmission of wireless communication module 10 Signal is controlled, after wireless communication module 10 obtains the second control signal, is cut by the second state according to the second control signal Shift to first state.
As shown in figure 4, the embodiment of the present invention additionally provides a kind of electronic equipment, for realizing the data of the embodiment of the present invention Transmission method.
The electronic equipment includes at least one processor 30, at least one processor 40 and is stored in memory 40 Computer program instructions, when computer program instructions are executed by processor 30, processor 30 is able to carry out:
By the wireless communication module of the electronic equipment in first state, to be played second is sent in the first duration First data of duration;
After the first data are completed to send and before starting to send the second data of the 4th duration to be played, nothing is controlled Line communication module switches to the second state by first state;
Wireless communication module is switched into first state by the second state, and by radio communication module in third duration Send the second data;
Wherein, the second duration is more than the first duration, and the 4th duration is more than third duration, and the power consumption of the second state is less than first State.
Specifically, above-mentioned processor 30 may include central processing unit or specific integrated circuit.Memory 40 can wrap Include the mass storage etc. for data or instruction.Processor 30 is by reading and executing the computer journey stored in memory Sequence instructs, to realize the data processing method of above-described embodiment.
In embodiments of the present invention, electronic equipment can also include communication interface 50 and bus 60.Wherein, communication interface 50 It is mainly used for realizing the communication in the embodiment of the present invention between each module, device, unit and/or equipment.Bus 60 may include The all parts of data processing equipment are coupled to each other together by hardware, software or both.
It is apparent to those skilled in the art that for convenience and simplicity of description, the data of foregoing description The electronic equipment that processing method is applied to can refer to the corresponding description in before-mentioned products embodiment, and details are not described herein.
Above example is only exemplary embodiment of the present invention, is not used in the limitation present invention, protection scope of the present invention It is defined by the claims.Those skilled in the art can within the spirit and scope of the present invention make respectively the present invention Kind modification or equivalent replacement, this modification or equivalent replacement also should be regarded as being within the scope of the present invention.

Claims (10)

1. a kind of data transmission method, the method includes:
Wireless communication module in first state sends the first data of the second duration to be played in the first duration;
After first data are completed to send and before starting to send the second data of the 4th duration to be played, the nothing Line communication module switches to the second state by the first state;
The wireless communication module switches to the first state by second state, and described is sent in third duration Two data;
Wherein, second duration is more than first duration, and the 4th duration is more than the third duration, second shape The power consumption of state is less than the first state.
2. data transmission method according to claim 1, wherein in the wireless communication module in first state, Before the first data of the second duration to be played being sent in one duration, including:
First data are generated using multiple first subdatas, second data are generated using multiple second subdatas.
3. data transmission method according to claim 2, wherein generate first number using multiple first subdatas According to, second data are generated using multiple second subdatas, including:
Cancel the first transmission time interval between the multiple first subdata, makes described in the multiple first subdata composition First data;Cancel the second transmission time interval between the multiple second subdata, makes the multiple second subdata group At second data.
4. data transmission method according to claim 2, wherein generate first number using multiple first subdatas According to, second data are generated using multiple second subdatas, including:
By the first data described in the multiple first subdata boil down to the first transmission time interval, there will be the second hair Send the second data described in the multiple second subdata boil down to of time interval.
5. data transmission method according to claim 1, wherein the wireless communication module is switched by the first state Include to the second state:
The wireless communication module receives the first control instruction, and is switched by the first state according to first control instruction To second state.
6. data transmission method according to claim 5, wherein cut the wireless communication module by second state Shifting to the first state includes:
When the wireless communication module, which switches to second state, reaches five durations, the wireless communication module receives the Two control instructions, and the first state is switched to by second state according to second control instruction, wherein described The sum of five durations and the third duration are not more than second duration.
7. data transmission method according to claim 5, wherein cut the wireless communication module by second state Shifting to the first state includes:
First control instruction includes the 5th duration for controlling the wireless communication module and being in second state, is made described After wireless communication module switches to the second state arrival the 5th duration, described first is switched to by second state State, wherein the sum of the 5th duration and the third duration are not more than second duration.
8. data transmission method according to claim 1, wherein further include:
The wireless communication module transmission data and switching state are controlled by processing module;
After first data are completed to send and before starting to send second data, the processing module is by third shape State switches to the 4th state, and the power consumption of the 4th state is less than the third state.
9. a kind of data transmission device, including wireless communication module, wherein the wireless communication module includes:
Data transmission unit is configured to send data to be played;
First control unit is configured to that the wireless communication module is made to be switched to first state or the second state;
Second control unit is configured to when the wireless communication module is in first state, is controlled the data and is sent list Member sends the first data of the second duration to be played in the first duration;After first data are completed to send and start Before the second data for sending the 4th duration to be played, controlling first control unit makes the wireless communication module by institute It states first state and switches to the second state;Controlling first control unit makes the wireless communication module by second state The first state is switched to, and controls the data transmission unit and sends second data in third duration;
Wherein, second duration is more than first duration, and the 4th duration is more than the third duration, second shape The power consumption of state is less than the first state.
10. a kind of electronic equipment, including at least one processor, at least one processor and it is stored in the memory Computer program instructions, when the computer program instructions are executed by the processor, the processor can:
By the wireless communication module of the electronic equipment in first state, to be played second is sent in the first duration First data of duration;
After first data are completed to send and before starting to send the second data of the 4th duration to be played, institute is controlled It states wireless communication module and the second state is switched to by the first state;
The wireless communication module is switched into the first state by second state, and passes through the wireless communication module Second data are sent in third duration;
Wherein, second duration is more than first duration, and the 4th duration is more than the third duration, second shape The power consumption of state is less than the first state.
CN201810556203.7A 2018-05-31 2018-05-31 Data transmission method and device and electronic equipment Active CN108811057B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810556203.7A CN108811057B (en) 2018-05-31 2018-05-31 Data transmission method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810556203.7A CN108811057B (en) 2018-05-31 2018-05-31 Data transmission method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN108811057A true CN108811057A (en) 2018-11-13
CN108811057B CN108811057B (en) 2020-12-18

Family

ID=64090923

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810556203.7A Active CN108811057B (en) 2018-05-31 2018-05-31 Data transmission method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN108811057B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103228031A (en) * 2013-05-02 2013-07-31 黄晓峰 Low power consumption wireless data acquisition device
CN104333891A (en) * 2014-10-30 2015-02-04 国家电网公司 Low-power WiFi communication chip based on passive awakening and method thereof
EP2775265B1 (en) * 2013-03-06 2017-08-02 Rohm Co., Ltd. Method and apparatus for reducing power consumption in a metering device
CN107851030A (en) * 2015-09-14 2018-03-27 三星电子株式会社 Display device and its control method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2775265B1 (en) * 2013-03-06 2017-08-02 Rohm Co., Ltd. Method and apparatus for reducing power consumption in a metering device
CN103228031A (en) * 2013-05-02 2013-07-31 黄晓峰 Low power consumption wireless data acquisition device
CN104333891A (en) * 2014-10-30 2015-02-04 国家电网公司 Low-power WiFi communication chip based on passive awakening and method thereof
CN107851030A (en) * 2015-09-14 2018-03-27 三星电子株式会社 Display device and its control method

Also Published As

Publication number Publication date
CN108811057B (en) 2020-12-18

Similar Documents

Publication Publication Date Title
CN102656939B (en) Method and system for announcement time of idle timeout for power saving operations in wireless networks
CN111713141B (en) Bluetooth playing method and electronic equipment
CN106559738A (en) The short-distance wireless packet of the sensitive application of prioritization time
TWI704823B (en) Mobile terminal and method of controlling power consumption in a computing device
CN102595568A (en) Method, device and system for discontinuous receiving
CN107041170B (en) Data sending method, device and terminal
TWI427987B (en) Communication apparatus and method and mobile telephone
CN104615016A (en) Low-power-consumption Bluetooth technology based host control method and device
EP3131348B1 (en) Power consumption control method for wearable device, and wearable device
CN110149568A (en) A kind of bluetooth headset and communication means, system, electronic equipment, computer media
CN104320699A (en) Method for dynamically adjusting Bluetooth sounding device
CN109314630A (en) Chain processing method, equipment and storage medium
CN102769898A (en) Power saving mode management method and device of communication equipment
US9083643B2 (en) Process of audio data exchanges of information between a central unit and a bluetooth controller
WO2021218855A1 (en) Downlink reception triggering method, and terminal and network side device
WO2021218842A1 (en) Downlink reception triggering method, terminal and network side device
TW201826843A (en) Method for data transmission and apparatus
US20200236465A1 (en) Method for controlling audio device and associated control circuit
CN108432302B (en) Power information sending method, terminal equipment and network equipment
CN108882345B (en) Bluetooth device, sleep control method and device thereof, and computer-readable storage medium
CN108811057A (en) A kind of data transmission method, device and electronic equipment
CN104780512A (en) Instant application message processing method and modem
WO2023051082A1 (en) Data transmission method based on wireless network (wi-fi), and electronic device
US8909304B1 (en) Wireless network with power save mode
US11550384B2 (en) Methods and apparatus for adaptive power profiling in a baseband processing system

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