The content of the invention
For this reason, it may be necessary to provide a kind of bus transfer rate control program of communication module, solves existing communication module dissipation
The problem of controlling input cost height or undesirable effect, realize simple, low cost power consumption of communication module control.
To achieve the above object, a kind of bus transfer rate control method of communication module is inventor provided, including such as
Lower step:
The network connection speed of acquisition system communication requirement speed or communication module,
The bus transfer rate for the network connection speed for meeting system communication requirement speed or communication module is calculated,
The transmission rate for setting the bus being connected with communication module is the above-mentioned bus transfer rate calculated.
Further, methods described specifically comprises the following steps:
The network connection speed of acquisition system communication requirement speed and communication module,
The bus transfer rate for the network connection speed for meeting system communication requirement speed and communication module is calculated,
The transmission rate for the bus being connected with communication module is set to calculate the less bus transfer rate of value to be above-mentioned.
Further, it is described " to calculate the total of the network connection speed that meets system communication requirement speed or communication module
Line transmission rate " includes:The bus equal with the network connection speed of system communication requirement speed or communication module is calculated to pass
Defeated speed.
Further, set bus transfer rate to specifically include and bus interface clock speed is set.
Further, the communication module is WiFi module, and the bus is SDIO interface bus.
Based on the above method, inventor also provides a kind of bus transfer rate control device of communication module, including as follows
Module:
Rate information acquisition module:For obtaining the network connection speed of system communication requirement speed or communication module,
Bus Speed computing module:Meet the network connection speed of system communication requirement speed or communication module for calculating
The bus transfer rate of rate,
Bus Speed setup module:For set the transmission rate of bus being connected with communication module be it is above-mentioned calculate it is total
Line transmission rate.
Further, rate information acquisition module:It is additionally operable to the network of acquisition system communication requirement speed and communication module
Connection speed,
Bus Speed computing module:It is additionally operable to calculate the network connection for meeting system communication requirement speed and communication module speed
The bus transfer rate of rate,
Bus Speed setup module:It is additionally operable to set the transmission rate for the bus being connected with communication module to calculate value to be above-mentioned
Less bus transfer rate.
Further, Bus Speed computing module is used to calculate the net for meeting system communication requirement speed or communication module
The bus transfer rate of network connection speed specifically includes:For calculating the network with system communication requirement speed or communication module
The equal bus transfer rate of connection speed.
Further, Bus Speed setup module is used to set bus transfer rate to specifically include for setting EBI
Clock rate.
Further, the communication module is WiFi module, and the bus is SDIO interface bus.
It is different from prior art, above-mentioned technical proposal is according to different Internet Uses, the speed of dynamic control bus,
In the case where not influenceing user's use, power consumption of the equipment in bus is reduced, improves the standby endurance of mobile device,
Consumer's Experience is improved, at the same it is low using this programme cost.
Embodiment
To describe the technology contents of technical scheme, construction feature, the objects and the effects in detail, below in conjunction with specific reality
Apply example and coordinate accompanying drawing to be explained in detail.
Referring to Fig. 1, present embodiments provide a kind of bus transfer rate control method of communication module, this method can be with
Applied on electronic equipment, such as mobile phone, flat board and notebook computer, these electronic equipments, which typically have, to be used for and other equipment
The communication module to be communicated, including but not limited to wireless network module, mobile communication module, bluetooth module etc..Electronic equipment
Typically also there is the processing module for being used for being handled data, such as CPU.In order to realize the fast exchange of data, mould is handled
Block can be attached by bus and communication module, and then communication module can be sent out the data to be communicated with other equipment by bus
Processing module is given, the data of processing module can also be sent to by bus after communication module re-sends to it by communication module
His equipment.Electronic equipment in the present embodiment, in order to reach the purpose for saving power consumption, initially enters step when being communicated
S101:Acquisition system communication requirement speed.System is the operating system installed on electronic equipment, can have been run in system multiple
Application software, the application each run may have communication requirement.Specifically, these communication requirements should will be with communication module phase
Adapt to, if communication module is wireless network module, then the communication requirement of system is network service demand, or in communication module
When being bluetooth module, then the communication requirement of system is bluetooth data communication demand.Speed is the number of transmitted per unit time
According to amount, such as 10Mbit/S, including the speed of transmission and the speed of reception, it should by speed being defined greatly.Should for different
With software, then their communication requirement is different, and when such as communication module being wireless network module, online audio-visual software has
Larger network service demand and online chatting software has less communication requirement.Electronic equipment can be by system operation
Application software type is counted to obtain system communication requirement speed, or passes through the shape that communicated to the application software of system operation
Counting to obtain the communication requirement speed of system for state, specifically can be by walking by being counted to communications status as follows
Suddenly:In a preset time, obtain the highest communication speed needed for the application software of system operation, and using highest communication speed as
System communication requirement speed.
Then electronic equipment can calculate the bus transfer rate for meeting system communication requirement speed into step S102.It is full
Pedal system communication requirement speed is that guarantee system communication requirement is unaffected, and typically calculates the bus being connected with communication module
Transmission rate is slightly larger than system communication requirement speed, in some embodiments it is possible to be greater than a default ratio, such as
More than system communication requirement speed 5%;Or the part that may be greater than is a default speed, such as larger than system communication needs
Speed 10Kbit/S is sought, this can be selected according to actual conditions.Or in certain embodiments, calculated to simplify
Process, the bus transfer rate calculated are directly equal to system communication requirement speed, because system is operated in system communication requirement speed
The time of this state of rate typically will not be very long, and system communication requirement in most cases is unaffected, and will not give and use
Obvious harmful effect is brought at family, can but be greatly simplified calculating process.
After bus transfer rate calculates, the transmission that step S103 sets the bus being connected with communication module can be entered
Speed is the above-mentioned bus transfer rate calculated, relatively increasing universal serial bus, can be with when setting bus transfer rate
Reach the purpose of setting bus transfer rate by setting bus interface clock speed.Due to most of the time, electronic equipment
System communication requirement speed be low, then this method can substantially reduce the transmission rate for the bus being connected with communication module,
Then reduce power consumption of the electronic equipment in bus, when electronic equipment during mobile device, then can improve the continuous of electronic equipment
ETS estimated time of sailing.This method only needs to make modification on software, and cost is low, and effect is good.
Relative to the wireless communication (WiFi) increasingly popularized, the present embodiment will combine Fig. 2 and be carried out with the above method
Further illustrate.As shown in Fig. 2 having an electronic equipment 200, electronic equipment has processing module 210 and communication module i.e.
WiFi module 211, WiFi module 211 are connected by SDIO interface bus with the SDIO controller 220 in processing module 210, together
When WiFi module 211 and outside WAP 1 (802.11n) be communicatively coupled.Bandwidth demand in processing module 210
Module 223 is used to judging the application type of system operation and obtain system communication requirement speed (or bandwidth per second
Demand), such as system needs to carry out Online Video or applied with screen projection (WiFi display), now processing module 210
Need to carry out substantial amounts of data throughput using WiFi module 211 and WAP 1, electronic equipment can be by obtaining network video
The form of frequency, frame per second, or the image quality require information with screen projection, calculate system communication requirement speed.Then again by dynamic
State clock calculation module 221 calculates the clock frequency for the SDIO interface bus that must meet system communication requirement speed, then according to band
Wide demand dynamic adjusts the clock frequency of SDIO interfaces, so as to meet current bandwidth demand, so as to ensure that SDIO interfaces will not be into
For performance bottleneck.Specifically, can be produced by phase-locked loop clock generation module 222 the SDIO interfaces of required frequency when
Clock frequency, and the clock frequency is sent to SDIO controller 220 and is used to provide the institute that communicates between SDIO controller and WiFi module
With.
This method can also adjust the transmission rate of bus by obtaining the network connection speed of communication module, specifically
Ground, this method obtain the network connection speed of communication module in step S101 first.Network connection speed is that communication module is current
The lower highest communication speed that can reach of network mode connected.Communication module when being communicatively coupled with distinct device,
Under different network connection modes, there can be different network connection speed.When such as communication module being WiFi module,
Under 802.11a, 802.11b, 80211.g or 802.11n etc. different network connection modes, respectively with 54Mbps,
11Mbps, 20Mbps and 300Mbps etc. different network connection speed.When and for example communication module is mobile communication module,
When connecting different networks (such as 2G, 3G or 4G network), it may have different network connection speed.In certain embodiments, lead to
Believe module in different signal intensities, it may have different network connection speed, then can be by obtaining the signal of communication module
Intensity obtains network connection speed.
Then this method can calculate the bus transfer rate for meeting communication module network connection speed into step S102.
The present embodiment specifically can meet system communication requirement speed in the calculating to bus transfer rate as above-described embodiment
Rate is that guarantee system communication requirement is unaffected.Similarly, in order to simplify calculating process, the bus transfer speed calculated
Rate can be directly equal to network connection speed.
After bus transfer rate calculates, the transmission that step S103 sets the bus being connected with communication module can be entered
Speed is the above-mentioned bus transfer rate calculated, that is, is arranged to the bus transfer rate for meeting communication module network connection speed.
By the setting of the present embodiment, when the network mode of communication module connection be relatively low network connection speed, can reduce and
The transmission rate of the bus of communication module connection, so as to reduce power consumption of the electronic equipment in bus, when electronic equipment time shift
During dynamic equipment, then the cruising time of electronic equipment can be improved.This method only needs to make modification, cost on software
Low, effect is good.
Relative to the wireless communication (WiFi) increasingly popularized, the present embodiment will combine Fig. 3 and be carried out with the above method
Further illustrate.There are four WAPs (1-4) in Fig. 3, corresponding network mode be respectively 802.11a, 802.11b,
80211.g and 802.11n.When electronic equipment 200 is connected with WAP 2, what it was connected is the connection using 802.11b
Pattern, then the physical layer rate that its highest is supported is 11Mbps, also just means that this WiFi module 211 is logical with WAP 2
The flank speed of letter only has 11Mbps, and now the network connection speed of communication module is 11Mbps.And for example when electronic equipment 200
When WiFi module 211 is connected with WAP 1, the connection mode for getting WAP 1 is in 802.11a, its physics
The maximum connection speed 54Mbps of layer, i.e. the network connection speed of communication module is 54Mbps.Specifically, processing module 210 can be with
The network connection mode of WiFi module 211 is obtained to obtain network connection speed later by WiFi drivers.Obtain
Bi Hou, dynamic clock computing module 221 calculate the clock frequency for the SDIO interface bus that must meet system communication requirement speed.Specifically
Ground, the clock frequency of the SDIO interfaces of required frequency can be produced by phase-locked loop clock generation module 222, as network connects
When to connect speed be 54Mbps, because SDIO interface bus uses 4 data lines, then network connection speed is removed i.e. available in 4
SDIO interface clock rates, as 13.5Mhz;When network connection speed is 11Mbps, SDIO interface clock rates only need
2.57MHz can meet to require.Then counted clock frequency is sent to phase-locked loop clock production by dynamic clock computing module 221 again
Raw module 222, phase-locked loop clock generation module 222 produce required SDIO interface-clock-frequencies, SDIO interface clocks frequency
Used in rate is used to providing and communicate between SDIO controller and WiFi module.When WiFi module 211 is switched to nothing from WAP 1
During line access point 2, processing module can detect this change and according to network connection rate reduction bus transfer rate, reach
Reduce the purpose of electronic equipment bus low power.
In above-described embodiment respectively by obtain system communication requirement speed or by obtain communication module network connect
Speed is connect to adjust the transmission rate of bus, in certain embodiments, in order to reach more preferable effect, system can be obtained simultaneously
The network connection speed of communication requirement speed and communication module adjusts the transmission rate of bus.Satisfaction system is then calculated respectively
The bus transfer rate of the network connection speed of communication requirement speed of uniting and communication module, finally sets and is connected with communication module again
The transmission rate of bus calculate the less bus transfer rate of value to be above-mentioned.I.e. with system communication requirement speed and communication module
Less one of network connection speed intermediate value be defined, similarly, should be calculated and the mould that communicates in computing system communication requirement
System communication requirement corresponding to block.
Further, as a rule, system communication requirement speed is generally below network connection speed, so as to which bus passes
Defeated speed is drawn with system communication requirement rate calculations.During concrete application, system communication requirement speed may be sent out
Raw to change, in order to realize that the dynamic of bus transfer rate adjusts, this method can also comprise the following steps:It is default at interval of one
Time is judged whether all to work in a preset time period internal bus, is if it is improved bus transfer rate, is not otherwise entered
Row operation.After being reduced to 10Mbyte/s such as Bus Speed, judged that bus was within the ensuing 10S times at interval of 1 minute
Whether working condition is constantly in, if it is, explanation bus requirements are busy, it may not be possible to meet current system communication requirement,
System communication requirement can preferably be met by improving bus transfer rate, so as to improve the experience of user.
Based on the above method, inventor also provides a kind of bus transfer rate control device 400 of communication module, includes
Communication module, in addition to following module:
Rate information acquisition module 401:For obtaining the network connection speed of system communication requirement speed or communication module
Rate,
Bus Speed computing module 402:Meet that the network of system communication requirement speed or communication module connects for calculating
The bus transfer rate of speed is connect,
Bus Speed setup module 403:Calculated for setting the transmission rate for the bus being connected with communication module to be above-mentioned
Bus transfer rate.The device 400 of the present invention is by obtaining the network connection of system communication requirement speed or communication module
Speed, according to the network connection speed of different system communication requirement speed or communication module, bus transfer rate is carried out
Adjustment, bus can be avoided to be in high-frequency work state for a long time, so as to reduce the power consumption of device bus.
Further, rate information acquisition module 401:It is additionally operable to the net of acquisition system communication requirement speed and communication module
Network connection speed,
Bus Speed computing module 402:It is additionally operable to calculate the network for meeting system communication requirement speed and communication module company
The bus transfer rate of speed is connect,
Bus Speed setup module 403:The transmission rate for being additionally operable to set the bus being connected with communication module is above-mentioned calculation
Go out and be worth less bus transfer rate.The device 400 of the present invention by obtaining system communication requirement speed and communication module simultaneously
Network connection speed, according to less system communication requirement speed or the network connection speed of communication module, bus is passed
Defeated speed is adjusted, and the working frequency of bus can be further reduced within the most of the time, so as to reduce device bus
Power consumption.
In above-described embodiment, Bus Speed computing module is used to calculate to meet system communication requirement speed or communication module
The bus transfer rate of network connection speed specifically include:For calculating and system communication requirement speed or communication module
The equal bus transfer rate of network connection speed.The amount of calculation for calculating bus transfer rate can so be reduced.For serial
Bus, Bus Speed setup module can be by setting bus interface clock speed to realize in setting bus transfer rate.
Relative to the WiFi communication increasingly popularized, the present apparatus can apply to WiFi communication, and specifically, communication module is
WiFi module, the bus of connection communication module is SDIO interface bus.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality
Body or operation make a distinction with another entity or operation, and not necessarily require or imply and deposited between these entities or operation
In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to
Nonexcludability includes, so that process, method, article or terminal device including a series of elements not only include those
Key element, but also the other element including being not expressly set out, or it is this process, method, article or end also to include
The intrinsic key element of end equipment.In the absence of more restrictions, limited by sentence " including ... " or " including ... "
Key element, it is not excluded that other key element in the process including the key element, method, article or terminal device also be present.This
Outside, herein, " being more than ", " being less than ", " exceeding " etc. are interpreted as not including this number;" more than ", " following ", " within " etc. understand
It is to include this number.
It should be understood by those skilled in the art that, the various embodiments described above can be provided as method, apparatus or computer program production
Product.These embodiments can use the embodiment in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Form.All or part of step in the method that the various embodiments described above are related to can by program come instruct the hardware of correlation come
Complete, described program can be stored in the storage medium that computer equipment can be read, for performing the various embodiments described above side
All or part of step described in method.The computer equipment, include but is not limited to:Personal computer, server, general-purpose computations
It is machine, special-purpose computer, the network equipment, embedded device, programmable device, intelligent mobile terminal, intelligent home device, wearable
Smart machine, vehicle intelligent equipment etc.;Described storage medium, include but is not limited to:RAM, ROM, magnetic disc, tape, CD, sudden strain of a muscle
Deposit, USB flash disk, mobile hard disk, storage card, memory stick, webserver storage, network cloud storage etc..
The various embodiments described above are with reference to method, equipment (system) and the computer program product according to embodiment
Flow chart and/or block diagram describe.It should be understood that can be by every in computer program instructions implementation process figure and/or block diagram
One flow and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computers can be provided
Programmed instruction is to the processor of computer equipment to produce a machine so that passes through the finger of the computing device of computer equipment
Order, which produces, to be used to realize what is specified in one flow of flow chart or multiple flows and/or one square frame of block diagram or multiple square frames
The device of function.
These computer program instructions may be alternatively stored in the computer that computer equipment can be guided to work in a specific way and set
In standby readable memory so that the instruction being stored in the computer equipment readable memory produces the manufacture for including command device
Product, the command device is realized to be referred in one flow of flow chart or multiple flows and/or one square frame of block diagram or multiple square frames
Fixed function.
These computer program instructions can be also loaded on computer equipment so that performed on a computing device a series of
Operating procedure is to produce computer implemented processing, so as to which the instruction performed on a computing device is provided for realizing in flow
The step of function of being specified in one flow of figure or multiple flows and/or one square frame of block diagram or multiple square frames.
Although the various embodiments described above are described, those skilled in the art once know basic wound
The property made concept, then other change and modification can be made to these embodiments, so embodiments of the invention are the foregoing is only,
Not thereby the scope of patent protection of the present invention, every equivalent structure made using description of the invention and accompanying drawing content are limited
Or equivalent flow conversion, or other related technical areas are directly or indirectly used in, similarly it is included in the patent of the present invention
Within protection domain.