Summary of the invention
For this reason, need the bus transfer rate control program that a kind of communication module is provided, solve existing communication module dissipation and control the problem that input cost is high or effect is undesirable, realize power consumption of communication module that is simple, low cost and control.
For achieving the above object, inventor provide a kind of bus transfer rate control method of communication module, comprise the steps:
Obtain the network connection speed of system communication demand rate or communication module,
Calculate the bus transfer rate of the network connection speed meeting system communication demand rate or communication module,
The transmission rate arranging the bus be connected with communication module is the above-mentioned bus transfer rate calculated.
Further, described method specifically comprises the steps:
Obtain the network connection speed of system communication demand rate and communication module,
Calculate the bus transfer rate of the network connection speed meeting system communication demand rate and communication module,
Arranging the transmission rate of bus be connected with communication module is above-mentionedly calculate the less bus transfer rate of value.
Further, described " calculating the bus transfer rate of the network connection speed meeting system communication demand rate or communication module " comprising: calculate the bus transfer rate equal with the network connection speed of system communication demand rate or communication module.
Further, arrange bus transfer rate specifically to comprise and arrange bus interface clock speed.
Further, described communication module is WiFi module, and described bus is SDIO interface bus.
Based on said method, inventor also provides a kind of bus transfer rate control device of communication module, comprises as lower module:
Rate information acquisition module: for obtaining the network connection speed of system communication demand rate or communication module,
Bus Speed computing module: for calculating the bus transfer rate of the network connection speed meeting system communication demand rate or communication module,
Bus Speed arranges module: be the above-mentioned bus transfer rate calculated for arranging the transmission rate of the bus be connected with communication module.
Further, rate information acquisition module: also for obtaining the network connection speed of system communication demand rate and communication module,
Bus Speed computing module: also for calculating the bus transfer rate of the network connection speed meeting system communication demand rate and communication module,
Bus Speed arranges module: be also above-mentionedly calculate the less bus transfer rate of value for arranging the transmission rate of the bus be connected with communication module.
Further, Bus Speed computing module specifically comprises for the bus transfer rate calculating the network connection speed meeting system communication demand rate or communication module: for calculating the bus transfer rate equal with the network connection speed of system communication demand rate or communication module.
Further, Bus Speed arranges module and specifically comprises for arranging bus interface clock speed for arranging bus transfer rate.
Further, described communication module is WiFi module, and described bus is SDIO interface bus.
Be different from prior art, technique scheme is according to different Internet Uses, the speed of Dynamic controlling bus, when not affecting user and using, the power consumption of the equipment that reduces in bus, improve the standby flying power of mobile device, improve Consumer's Experience, use this programme cost low simultaneously.
Embodiment
By describe in detail technical scheme technology contents, structural feature, realized object and effect, coordinate accompanying drawing to be explained in detail below in conjunction with specific embodiment.
Refer to Fig. 1, present embodiments provide a kind of bus transfer rate control method of communication module, this method can be applied on electronic equipment, as mobile phone, flat board and notebook computer etc., these electronic equipments generally have for carrying out with other equipment the communication module that communicates, include but not limited to wireless network module, mobile communication module, bluetooth module etc.Electronic equipment generally also has the processing module for processing data, as CPU etc.In order to realize the quick exchange of data, processing module can be connected with communication module by bus, then the data with other devices communicatings can be sent to processing module by bus by communication module, re-send to other equipment after the data of processing module also can be sent to communication module by bus by communication module.Electronic equipment in the present embodiment, when communicating, in order to reach the object of saving power consumption, first enters step S101: obtain system communication demand rate.The operating system that system and electronic equipment are installed, system can run multiple application software, and the application of each operation may have communication requirement.Particularly, these communication requirements should adapt with communication module, and if communication module is wireless network module, then the communication requirement of system is network service demand, or when communication module is bluetooth module, then the communication requirement of system is bluetooth data communication demand.Speed is the data volume of transmitted per unit time, as 10Mbit/S etc., comprises the speed of transmission and the speed of reception, should with large being as the criterion of speed.For different application software, then their communication requirement is different, as communication module be wireless network module time, online audio-visual software has compared with macroreticular communication requirement that online chatting software has less communication requirement.Electronic equipment can obtain system communication demand rate by carrying out statistics to the application software type of system cloud gray model, or the communication requirement speed of system is obtained by the statistics of the application software communications status to system cloud gray model, particularly can as follows by adding up communications status: in a Preset Time, obtain the highest communication speed needed for application software of system cloud gray model, and with highest communication speed for system communication demand rate.
Then electronic equipment can enter step S102 and calculate the bus transfer rate meeting system communication demand rate.Meet system communication demand rate and namely ensure that system communication demand can not be affected, generally calculate the bus transfer rate that is connected with communication module slightly larger than system communication demand rate, in certain embodiments, can be greater than a default ratio, as being greater than system communication demand rate 5%; Or a default speed that can be the part be greater than be, as being greater than system communication demand rate 10Kbit/S, this can be selected according to actual conditions.Or in certain embodiments, in order to simplify computational process, the bus transfer rate calculated directly equals system communication demand rate, because system works generally can not be very long in the time of this state of system communication demand rate, system communication demand in most cases can not be affected, obvious harmful effect can not be brought to user, but can simplify computational process widely.
After bus transfer rate calculates, can enter the transmission rate that step S103 arranges the bus be connected with communication module is the above-mentioned bus transfer rate calculated, relatively increasing universal serial bus, when arranging bus transfer rate, can by arranging bus interface clock speed to reach the object arranging bus transfer rate.Due to time most of, the system communication demand rate of electronic equipment is low, then this method can reduce the transmission rate of the bus be connected with communication module greatly, then decrease the power consumption of electronic equipment in bus, when electronic equipment during mobile device, then can improve the cruising time of electronic equipment.This method only needs to make on software to revise, and cost is low, effective.
Relative to more and more universal wireless communication (WiFi), composition graphs 2 and said method are further described by the present embodiment.As shown in Figure 2, there is an electronic equipment 200, electronic equipment has processing module 210 and communication module and WiFi module 211, WiFi module 211 is connected with the SDIO controller 220 in processing module 210 by SDIO interface bus, and WiFi module 211 communicates to connect with outside WAP (wireless access point) 1 (802.11n) simultaneously.Bandwidth demand module 223 in processing module 210 is for judging the application type of system cloud gray model and obtaining system communication demand rate (or bandwidth demand per second), as system needs carry out Online Video or shield the application such as projection (WiFi display) together, now processing module 210 needs to utilize WiFi module 211 and WAP (wireless access point) 1 to carry out a large amount of data throughput, electronic equipment can by obtaining form, the frame per second of Internet video, or require information with the image quality of screen projection, calculate system communication demand rate.Then calculate meet the clock frequency of the SDIO interface bus of system communication demand rate by dynamic clock computing module 221 again, then according to the clock frequency of bandwidth demand dynamic conditioning SDIO interface, thus meet current bandwidth demand, thus ensure that SDIO interface can not become performance bottleneck.Particularly, the clock frequency of the SDIO interface of required frequency can be produced by phase-locked loop clock generation module 222, and this clock frequency is sent to SDIO controller 220 be used for providing communicate between SDIO controller with WiFi module used.
This method also can adjust the transmission rate of bus by the network connection speed of obtaining communication module, particularly, this method is first in the network connection speed of step S101 obtaining communication module.Network connection speed and current the connected lower highest communication speed that can reach of network schemer of communication module.Communication module, when communicating to connect with distinct device, under different network connection mode, can have different network connection speeds.As communication module be WiFi module time, under the network connection mode that 802.11a, 802.11b, 80211.g or 802.11n etc. are different, there is network connection speed that 54Mbps, 11Mbps, 20Mbps and 300Mbps etc. are different respectively.When and for example communication module is mobile communication module, when connecting different network (as 2G, 3G or 4G networks), also there is different network connection speeds.In certain embodiments, communication module, in different signal strength signal intensities, also has different network connection speeds, then can obtain network connection speed by the signal strength signal intensity of obtaining communication module.
Then this method can enter step S102 and calculate the bus transfer rate meeting communication module network connection speed.The present embodiment, specifically to can be the same with above-described embodiment in the calculating of bus transfer rate, namely meet system communication demand rate and namely ensures that system communication demand can not be affected.Similarly, in order to simplify computational process, the bus transfer rate calculated can directly equal network connection speed.
After bus transfer rate calculates, can enter the transmission rate that step S103 arranges the bus be connected with communication module is the above-mentioned bus transfer rate calculated, and is namely set to the bus transfer rate meeting communication module network connection speed.By the setting of the present embodiment, when the network schemer that communication module connects is lower network connection speed, the transmission rate of the bus be connected with communication module can be reduced, thus decrease the power consumption of electronic equipment in bus, when electronic equipment during mobile device, then can improve the cruising time of electronic equipment.This method only needs to make on software to revise, and cost is low, effective.
Relative to more and more universal wireless communication (WiFi), composition graphs 3 and said method are further described by the present embodiment.Have four WAP (wireless access point) (1-4) in Fig. 3, corresponding network schemer is 802.11a, 802.11b, 80211.g and 802.11n respectively.When electronic equipment 200 is connected with WAP (wireless access point) 2, what it connected is the connection mode using 802.11b, so the physical layer rate of its highest support is 11Mbps, also just mean that the flank speed that this WiFi module 211 communicates with WAP (wireless access point) 2 only has 11Mbps, now the network connection speed of communication module is 11Mbps.And for example when the WiFi module 211 of electronic equipment 200 is connected with WAP (wireless access point) 1, the connection mode getting WAP (wireless access point) 1 is in 802.11a, and the maximum connection speed 54Mbps of its physical layer, namely the network connection speed of communication module is 54Mbps.Particularly, processing module 210 can obtain the network connection mode of WiFi module 211 by WiFi driver and obtain network connection speed afterwards.After acquisition, dynamic clock computing module 221 is calculated meet the clock frequency of the SDIO interface bus of system communication demand rate.Particularly, the clock frequency of the SDIO interface of required frequency can be produced by phase-locked loop clock generation module 222, as network connection speed be 54Mbps time, because SDIO interface bus uses 4 data lines, then network connection speed is removed and can obtain SDIO interface clock rate in 4, be 13.5Mhz; When network connection speed is 11Mbps, SDIO interface clock rate only needs 2.57MHz to meet the demands.Then the clock frequency calculated is sent to phase-locked loop clock generation module 222 by dynamic clock computing module 221 again, phase-locked loop clock generation module 222 produces required SDIO interface-clock-frequency, this SDIO interface-clock-frequency be used for providing communicate between SDIO controller with WiFi module used.When WiFi module 211 is switched to WAP (wireless access point) 2 from WAP (wireless access point) 1, processing module can detect this change and reduce bus transfer rate according to network connection speed, reaches the object reducing electronic equipment bus low power.
Respectively by acquisition system communication demand rate or the transmission rate being adjusted bus by the network connection speed of obtaining communication module in above-described embodiment, in certain embodiments, in order to reach better effect, the network connection speed of system communication demand rate and communication module can be obtained to adjust the transmission rate of bus simultaneously.Then calculate the bus transfer rate of the network connection speed meeting system communication demand rate and communication module respectively, finally arranging the transmission rate of bus be connected with communication module is again above-mentionedly calculate the less bus transfer rate of value.Namely be as the criterion with less one of the network connection speed intermediate value of system communication demand rate and communication module, similarly, the system communication demand corresponding with communication module should be calculated when computing system communication requirement.
Further, as a rule, system communication demand rate is generally lower than network connection speed, thus bus transfer rate calculates with system communication demand rate.In embody rule process, system communication demand rate may change, in order to realize the dynamic conditioning of bus transfer rate, this method can also comprise the steps: to carry out judging whether all to work at a preset time period internal bus at interval of a Preset Time, if it is improve bus transfer rate, otherwise do not operate.After Bus Speed is reduced to 10Mbyte/s, judged whether bus is always in running order within the ensuing 10S time at interval of 1 minute, if, then illustrate that bus requirements is busy, current system communication requirement may not be met, system communication demand can be met better by improving bus transfer rate, thus the experience of user can be improved.
Based on said method, inventor also provides a kind of bus transfer rate control device 400 of communication module, includes communication module, also comprises as lower module:
Rate information acquisition module 401: for obtaining the network connection speed of system communication demand rate or communication module,
Bus Speed computing module 402: for calculating the bus transfer rate of the network connection speed meeting system communication demand rate or communication module,
Bus Speed arranges module 403: be the above-mentioned bus transfer rate calculated for arranging the transmission rate of the bus be connected with communication module.Device 400 of the present invention is by obtaining the network connection speed of system communication demand rate or communication module, according to the network connection speed of different system communication demand rate or communication module, bus transfer rate is adjusted, bus can be avoided to be in high-frequency work state for a long time, thus to reduce the power consumption of device bus.
Further, rate information acquisition module 401: also for obtaining the network connection speed of system communication demand rate and communication module,
Bus Speed computing module 402: also for calculating the bus transfer rate of the network connection speed meeting system communication demand rate and communication module,
Bus Speed arranges module 403: be also above-mentionedly calculate the less bus transfer rate of value for arranging the transmission rate of the bus be connected with communication module.Device 400 of the present invention is by obtaining the network connection speed of system communication demand rate and communication module simultaneously, according to the network connection speed of less system communication demand rate or communication module, bus transfer rate is adjusted, within the most of the time, the operating frequency of bus can be reduced further, thus reduce the power consumption of device bus.
In above-described embodiment, Bus Speed computing module specifically comprises for the bus transfer rate calculating the network connection speed meeting system communication demand rate or communication module: for calculating the bus transfer rate equal with the network connection speed of system communication demand rate or communication module.The amount of calculation calculating bus transfer rate can be reduced like this.For universal serial bus, Bus Speed arrange module bus transfer rate is set can by arranging bus interface clock speed to realize.
Relative to more and more universal WiFi communication, this device can be applied to WiFi communication, and particularly, communication module is WiFi module, and the bus connecting communication module is SDIO interface bus.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or terminal equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or terminal equipment.When not more restrictions, the key element limited by statement " comprising ... " or " comprising ... ", and be not precluded within process, method, article or the terminal equipment comprising described key element and also there is other key element.In addition, in this article, " be greater than ", " being less than ", " exceeding " etc. be interpreted as and do not comprise this number; " more than ", " below ", " within " etc. be interpreted as and comprise this number.
Those skilled in the art should understand, the various embodiments described above can be provided as method, device or computer program.These embodiments can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.The hardware that all or part of step in the method that the various embodiments described above relate to can carry out instruction relevant by program has come, described program can be stored in the storage medium that computer equipment can read, for performing all or part of step described in the various embodiments described above method.Described computer equipment, includes but not limited to: personal computer, server, all-purpose computer, special-purpose computer, the network equipment, embedded device, programmable device, intelligent mobile terminal, intelligent home device, wearable intelligent equipment, vehicle intelligent equipment etc.; Described storage medium, includes but not limited to: the storage of RAM, ROM, magnetic disc, tape, CD, flash memory, USB flash disk, portable hard drive, storage card, memory stick, the webserver, network cloud storage etc.
The various embodiments described above describe with reference to the flow chart of method, equipment (system) and computer program according to embodiment and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of computer equipment to produce a machine, making the instruction performed by the processor of computer equipment produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer equipment readable memory that works in a specific way of vectoring computer equipment, the instruction making to be stored in this computer equipment readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded on computer equipment, make to perform sequence of operations step on a computing device to produce computer implemented process, thus the instruction performed on a computing device is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Although be described the various embodiments described above; but those skilled in the art are once obtain the basic creative concept of cicada; then can make other change and amendment to these embodiments; so the foregoing is only embodiments of the invention; not thereby scope of patent protection of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included within scope of patent protection of the present invention.