CN104243089A - System and method for dynamically adjusting data transmission rate - Google Patents
System and method for dynamically adjusting data transmission rate Download PDFInfo
- Publication number
- CN104243089A CN104243089A CN201310243215.1A CN201310243215A CN104243089A CN 104243089 A CN104243089 A CN 104243089A CN 201310243215 A CN201310243215 A CN 201310243215A CN 104243089 A CN104243089 A CN 104243089A
- Authority
- CN
- China
- Prior art keywords
- speed
- physical interface
- data type
- described physical
- transmission rate
- 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.)
- Pending
Links
Landscapes
- Communication Control (AREA)
Abstract
The invention provides a system for dynamically adjusting the data transmission rate. The system for dynamically adjusting the data transmission rate comprises a setting module, a preset rate table, a determining module and a query module. The preset rate table comprises multiple data types and rates corresponding to the multiple data types. The determining module determines the type of the current data needing to be transmitted through a physical interface. The query module queries the rate corresponding to the determined data type according to the rate table. The setting module sets the rate of the physical interface according to the queried rate or sets the rate of the physical interface according to a preset default rate under the condition that the corresponding rate cannot be queried. The invention further provides a method for dynamically adjusting the data transmission rate. By the adoption of the system and method for dynamically adjusting data transmission rate, the rate of the physical interface can be dynamically adjusted.
Description
Technical field
The present invention relates to data transmission technology, particularly relate to a kind of message transmission rate dynamic debugging system and method.
Background technology
Multiplexer agreement (Multiplexer Protocol) is global system for mobile communications (GSM, Global System for Mobile communication) in a kind of agreement, be connected terminal installation (TE, Terminal Equipment) and module between tie, such as, described terminal installation can be mobile phone.Utilize described multiplexer agreement, multiple parallel logic channel can be fictionalized on single physical interface.Such as, described multiplexer agreement can be used on the application program end of mobile phone and modulator-demodulator end usually to realize virtual multiple logic channel.
Before terminal installation starts described multiplexer agreement, initialization need be carried out to the physical interface of this terminal installation, to set the transmission rate of physical interface.The transmission rate of this physical interface directly can have influence on the transmission rate of set up logic channel.At present, the normally direct transmission rate by this physical interface is set to maximum, but, if when not needing too high transmission rate without transfer of data or transfer of data, like this burden that can increase the weight of central processing unit is set, and increase the electrical source consumption of this terminal installation, decrease the stand-by time of terminal installation.
Summary of the invention
In view of above content, be necessary to provide a kind of message transmission rate dynamic debugging system and method, the transmission rate of this physical interface of dynamic conditioning can be carried out according to the change carrying out the data type of transfer of data of the physical interface via electronic installation, thus realize adjusting dynamically the speed of the logical channel of multiple simulation.
A kind of message transmission rate dynamic adjusting method, be applied to electronic installation, described electronic installation comprises physical interface and storage device, default Speedometer Drive is stored in described storage device, described Speedometer Drive comprises multiple data type and corresponds to the speed of each data type, and the method comprises: determine that needs carry out the data type of the current data transmitted via described physical interface; According to this established data type, from described Speedometer Drive, inquire about the speed that this established data type is corresponding; When inquiring speed corresponding to this established data type from described Speedometer Drive, the speed of described physical interface is set according to this speed inquired; Or when inquiring speed corresponding to this established data type from described Speedometer Drive, the speed of described physical interface is set according to the default rate preset.
A kind of message transmission rate dynamic debugging system, be applied to electronic installation, described electronic installation comprises physical interface and storage device, this system comprises: arrange module, for default default rate and Speedometer Drive, described Speedometer Drive comprises multiple data type and corresponds to the speed of each data type; Determination module, for determining the data type needing to carry out the current data transmitted via described physical interface; Enquiry module, for according to this established data type, inquires about the speed that this established data type is corresponding from described Speedometer Drive; And described module is set, also for when inquiring speed corresponding to this established data type from described Speedometer Drive, the speed of described physical interface is set according to this speed inquired; Or when inquiring speed corresponding to this established data type from described Speedometer Drive, the speed of described physical interface is set according to the default rate preset.
Compared to prior art, described message transmission rate dynamic debugging system and method, the transmission rate of this physical interface of dynamic conditioning can be carried out according to the change carrying out the data type of transfer of data of the physical interface via electronic installation, thus realize adjusting dynamically the speed of the logical channel of multiple simulation.Message transmission rate dynamic debugging system described in utilization and method, can guarantee that transfer of data is stable and carry out fast, can also reduce the burden of central processing unit, save the electrical source consumption of described electronic installation, and extend the stand-by time of this electronic installation.
Accompanying drawing explanation
Fig. 1 is the hardware structure figure of the better embodiment of message transmission rate dynamic debugging system of the present invention.
Fig. 2 is the functional block diagram of the better embodiment of message transmission rate dynamic debugging system of the present invention.
Fig. 3 is the schematic diagram of the Speedometer Drive of message transmission rate dynamic debugging system of the present invention.
Fig. 4 is the multichannel Establishing process figure of the better embodiment of message transmission rate dynamic adjusting method of the present invention.
Fig. 5 is the flow chart of the better embodiment of message transmission rate dynamic adjusting method of the present invention.
Main element symbol description
Electronic installation | 1 |
Rate adjustment system | 10 |
Module is set | 100 |
Initialization module | 102 |
Set up module | 104 |
Determination module | 106 |
Enquiry module | 108 |
Processor | 11 |
Storage device | 12 |
Physical interface | 13 |
Modulator-demodulator | 14 |
Following embodiment will further illustrate the present invention in conjunction with above-mentioned accompanying drawing.
Embodiment
As shown in Figure 1, be the hardware structure figure of better embodiment of message transmission rate dynamic debugging system of the present invention.Described message transmission rate dynamic debugging system 10(is hereinafter referred to as " rate adjustment system 10 ") be applied in electronic installation 1, described electronic installation 1 can be the devices such as mobile phone, panel computer, personal digital assistant, notebook computer.
Described electronic installation 1 also comprises processor 11, storage device 12, physical interface 13 and modulator-demodulator 14.Described processor 11 such as, for performing described rate adjustment system 10 and all kinds of softwares of installation in described electronic installation 1, operating system etc.Described storage device 12 can be dissimilar storage card or other memory devices.Described storage device 12 for storing Various types of data, such as, information such as video, audio frequency, image, file, and for the data set by rate adjustment system described in memory 10.
Described physical interface 13 is serial ports, in order to realize the transmission of data.
Described modulator-demodulator (Modem) 14 can be built in described electronic installation 1, is also external in described electronic installation 1 by wireless or cable network.
As shown in Figure 2, be the functional block diagram of better embodiment of message transmission rate dynamic debugging system of the present invention.In the present embodiment, described rate adjustment system 10 comprises multiple functional module, respectively: arrange module 100, initialization module 102, set up module 104, determination module 106 and enquiry module 108.
Module alleged by the present invention has been the program segment of a specific function, is more suitable for describing the implementation of software in described electronic installation 1 than program.The concrete function of each module is described below with reference to Fig. 4 and Fig. 5.
As shown in Figure 4, be the multichannel Establishing process figure of better embodiment of message transmission rate dynamic adjusting method of the present invention.
First, step S2, the physical interface 13 of electronic installation 1 described in described initialization module 102 initialization.Described initialization module 102 can multiple pre-conditioned be triggered time initialization is carried out to this physical interface 13.Described multiple pre-conditionedly to include, but are not limited to: the condition such as when described electronic installation 1 is started shooting, when switching pattern (such as, the switching to normal mode etc. from offline mode) of described electronic installation 1.
The initialization of described initialization module 102 to described physical interface 13 comprises, but be not limited to: open described physical interface 13, to the transceiver channel initialization of described physical interface 13, set the transmission rate (or being called " traffic rate ") of described physical interface 13; Call Interruption function: open Interruption, the Interruption time is set, setting triggering mode etc.
As described above, described physical interface 13 can be serial ports, and described initialization module 102 can call USART controller function and carry out initialization serial ports.
Step S4, described sets up the quantity that module 104 determines to need the logic channel set up according to multiplexer agreement.Described sets up module 104 can determine the logic channel that need set up quantity according to the data type of the multi-class data of required transmission.
Described data type includes, but are not limited to: network type types such as () 2G or 3G that AT command, short message, phone, sound, described electronic installation connect.
Step S6, described sets up module 104 sets up multiple simulation logic channel according to the quantity that this is determined.
Step S8, described module 104 of setting up is determined to need via the corresponding data type of each logic channel, then, process ends.Such as, described set up module 104 and can set up 6 logic channels, wherein, the data type that each logic channel is corresponding different, such as, AT command, short message etc.
It should be noted that, described by Fig. 4 is only a kind of mode setting up multiple logic channel, is not limited thereto in practical application, that is, also can realize the foundation of the multiple logic channels based on described physical interface 13 according to other existing technical approach.
As shown in Figure 5, be the flow chart of better embodiment of message transmission rate dynamic adjusting method of the present invention.
Step S10, the described module 100 that arranges presets default rate and Speedometer Drive, and described Speedometer Drive comprises multiple data type and corresponds to the speed of each data type.With reference to the example of Speedometer Drive as shown in Figure 3, multiple data type may correspond to identical or different speed.Such as, when the data type of the data if desired transmitted is short messages, corresponding speed can be as Fig. 3 19200 baud rates of illustrating, also can be 9600 baud rates.
Data type in Fig. 3 and the transmission rate of correspondence only illustrate, are not limited thereto in practical application.
In this better embodiment, when described default rate is used in and needs the data type of carrying out the data transmitted via described physical interface 13 not to be set forth in described Speedometer Drive, or current without the need to carrying out transfer of data by described physical interface 13 time, as the foundation arranged the transmission rate of this physical interface 13.
Step S12, described determination module 106 determines the data type needing to carry out the current data transmitted via described physical interface 13.
Step S14, described enquiry module 108, according to this established data type, is retrieved described Speedometer Drive and whether is comprised speed corresponding to this established data type to inquire about in described Speedometer Drive.
When described Speedometer Drive comprises speed corresponding to this established data type, in step S16, described arranges module 100 arranges described physical interface 13 speed according to the speed that this inquires, then, and process ends.
When not comprising speed corresponding to this established data type in described Speedometer Drive, in step S18, described arranges module 100 arranges described physical interface 13 speed according to the default rate preset, then, and process ends.
In addition, in other embodiments, if when described determination module 106 is determined to need the data type of carrying out the current data transmitted via described physical interface 13 to have multiple, described enquiry module 108 can determine from described Speedometer Drive the plurality of data type distinguish corresponding speed, if when having one or more data type not list in described Speedometer Drive, then determine the speed of default rate corresponding to described one or more data type.
Then, the described module 100 that arranges selects a speed the highest from the multiple speed determined, and the speed the highest according to this arranges the speed of described physical interface 13.
Further, in other embodiments, flow chart shown in Fig. 5 also can comprise following multiple steps further: described determination module 106, after described physical interface 13 completes the transmission to current data, judges whether that new data need to transmit via described physical interface 13; If need to transmit via described physical interface 13 without new data, and during the present rate non-default speed of described physical interface 13, the present rate of described physical interface 13 is set to default rate by the described module 100 that arranges; If or need to transmit via described physical interface 13 without new data, and when the present rate of described physical interface 13 is default rate, described arranges the present rate that module 100 maintains described physical interface 13; If or have new data to need to transmit via described physical interface 13, described arranges module 100 according to described Speedometer Drive, the speed of described physical interface 13 is set to the speed corresponding to data type of these new data.If the data type of these new data is identical with the present rate of described physical interface 13, then described the present rate that module 100 can not revise described physical interface 13 is again set.
In this better embodiment, utilize the dynamic conditioning that the transmission rate of said method flow process to described physical interface 13 is carried out, can realize carrying out dynamic conditioning to the speed of multiple logic channels of simulation, thus carrying out smoothly of transfer of data can be guaranteed, also can avoid carrying out excessive consumption to the resource of described electronic installation 1.
Above execution mode is only in order to illustrate technical scheme of the present invention and unrestricted, although with reference to above better embodiment to invention has been detailed description, those of ordinary skill in the art should be appreciated that and can modify to technical scheme of the present invention or be equal to the spirit and scope of replacing and should not depart from technical solution of the present invention.
Claims (10)
1. a message transmission rate dynamic adjusting method, be applied to electronic installation, described electronic installation comprises physical interface and storage device, it is characterized in that, default Speedometer Drive is stored in described storage device, described Speedometer Drive comprises multiple data type and corresponds to the speed of each data type, and the method comprises:
Determine the data type needing to carry out the current data transmitted via described physical interface;
According to this established data type, from described Speedometer Drive, inquire about the speed that this established data type is corresponding;
When inquiring speed corresponding to this established data type from described Speedometer Drive, the speed of described physical interface is set according to this speed inquired; Or
When inquiring speed corresponding to this established data type from described Speedometer Drive, the speed of described physical interface is set according to the default rate preset.
2. message transmission rate dynamic adjusting method as claimed in claim 1, it is characterized in that, the method also comprises:
The physical interface of electronic installation described in initialization;
Determine the quantity needing the logic channel set up according to multiplexer agreement; And
Set up multiple logic channel according to this quantity determined, and determine to need via the corresponding data type of each logic channel.
3. message transmission rate dynamic adjusting method as claimed in claim 1, it is characterized in that, the method also comprises:
When current needs have multiple via the data type that described physical interface carries out transfer of data, determine from described Speedometer Drive the plurality of data type distinguish corresponding speed;
Speed the highest is selected from the multiple speed determined; And
The speed the highest according to this arranges the speed of described physical interface.
4. message transmission rate dynamic adjusting method as claimed any one in claims 1 to 3, it is characterized in that, after described physical interface completes the transmission to current data, the method also comprises:
If need to transmit via described physical interface without new data, and during the speed non-default speed of described physical interface, the speed of described physical interface be set to default rate; Or
If need to transmit via described physical interface without new data, and when the speed of described physical interface is default rate, maintain the speed of described physical interface; Or
If there are new data to need to transmit via described physical interface, according to described Speedometer Drive, the speed of described physical interface is set to the speed corresponding to data type of these new data.
5. message transmission rate dynamic adjusting method as claimed any one in claims 1 to 3, it is characterized in that, described physical interface is serial ports, and described data type comprises the network type of AT command, short message, phone, sound, the connection of described electronic installation.
6. a message transmission rate dynamic debugging system, is applied to electronic installation, and described electronic installation comprises physical interface and storage device, it is characterized in that, this system comprises:
Arrange module, for default default rate and Speedometer Drive, described Speedometer Drive comprises multiple data type and corresponds to the speed of each data type;
Determination module, for determining the data type needing to carry out the current data transmitted via described physical interface;
Enquiry module, for according to this established data type, inquires about the speed that this established data type is corresponding from described Speedometer Drive; And
Described arranges module, also for when inquiring speed corresponding to this established data type from described Speedometer Drive, arranges the speed of described physical interface according to this speed inquired; Or when inquiring speed corresponding to this established data type from described Speedometer Drive, the speed of described physical interface is set according to the default rate preset.
7. message transmission rate dynamic debugging system as claimed in claim 6, it is characterized in that, this system also comprises:
Initialization module, for the physical interface of electronic installation described in initialization; And
Set up module, for determining the quantity needing the logic channel set up according to multiplexer agreement, and set up multiple logic channel according to the quantity that this is determined, and determine to need via the corresponding data type of each logic channel.
8. message transmission rate dynamic debugging system as claimed in claim 6, is characterized in that:
Described enquiry module, also for when current needs have multiple via the data type that described physical interface carries out transfer of data, determine from described Speedometer Drive the plurality of data type distinguish corresponding speed; And
Described arranges module also for selecting a speed the highest from the multiple speed determined, and the speed the highest according to this arranges the speed of described physical interface.
9. the message transmission rate dynamic debugging system according to any one of claim 6 to 8, is characterized in that, described arranges module after described physical interface completes the transmission to current data, also for:
If need to transmit via described physical interface without new data, and during the speed non-default speed of described physical interface, the speed of described physical interface be set to default rate; Or
If need to transmit via described physical interface without new data, and when the speed of described physical interface is default rate, maintain the speed of described physical interface; Or
If there are new data to need to transmit via described physical interface, according to described Speedometer Drive, the speed of described physical interface is set to the speed corresponding to data type of these new data.
10. message transmission rate dynamic debugging system as claimed in claim 6, it is characterized in that, described physical interface is serial ports, and described data type comprises the network type of AT command, short message, phone, sound, the connection of described electronic installation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310243215.1A CN104243089A (en) | 2013-06-19 | 2013-06-19 | System and method for dynamically adjusting data transmission rate |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310243215.1A CN104243089A (en) | 2013-06-19 | 2013-06-19 | System and method for dynamically adjusting data transmission rate |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104243089A true CN104243089A (en) | 2014-12-24 |
Family
ID=52230518
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310243215.1A Pending CN104243089A (en) | 2013-06-19 | 2013-06-19 | System and method for dynamically adjusting data transmission rate |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104243089A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106060012A (en) * | 2016-05-17 | 2016-10-26 | 北京神州绿盟信息安全科技股份有限公司 | Multiplexing method and apparatus |
CN108628544A (en) * | 2017-03-22 | 2018-10-09 | 慧荣科技股份有限公司 | Host device and data transmission rate control method |
CN109151058A (en) * | 2018-09-27 | 2019-01-04 | 视联动力信息技术股份有限公司 | A kind of data transmission method and device |
CN110505608A (en) * | 2018-09-14 | 2019-11-26 | 深圳市文鼎创数据科技有限公司 | Bluetooth shield supports the method more applied and bluetooth shield |
CN111835372A (en) * | 2019-04-18 | 2020-10-27 | 北京小米移动软件有限公司 | Radio frequency circuit and wireless communication equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102253967A (en) * | 2011-06-03 | 2011-11-23 | 用友软件股份有限公司 | Data searching system and data searching method |
CN102780563A (en) * | 2011-05-12 | 2012-11-14 | 国基电子(上海)有限公司 | Multi-core network device and power saving method thereof |
US20130039179A1 (en) * | 2009-11-04 | 2013-02-14 | Roke Manor Research Limited | Power manager and method |
-
2013
- 2013-06-19 CN CN201310243215.1A patent/CN104243089A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130039179A1 (en) * | 2009-11-04 | 2013-02-14 | Roke Manor Research Limited | Power manager and method |
CN102780563A (en) * | 2011-05-12 | 2012-11-14 | 国基电子(上海)有限公司 | Multi-core network device and power saving method thereof |
CN102253967A (en) * | 2011-06-03 | 2011-11-23 | 用友软件股份有限公司 | Data searching system and data searching method |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106060012A (en) * | 2016-05-17 | 2016-10-26 | 北京神州绿盟信息安全科技股份有限公司 | Multiplexing method and apparatus |
CN108628544A (en) * | 2017-03-22 | 2018-10-09 | 慧荣科技股份有限公司 | Host device and data transmission rate control method |
CN110505608A (en) * | 2018-09-14 | 2019-11-26 | 深圳市文鼎创数据科技有限公司 | Bluetooth shield supports the method more applied and bluetooth shield |
CN109151058A (en) * | 2018-09-27 | 2019-01-04 | 视联动力信息技术股份有限公司 | A kind of data transmission method and device |
CN111835372A (en) * | 2019-04-18 | 2020-10-27 | 北京小米移动软件有限公司 | Radio frequency circuit and wireless communication equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102635070B1 (en) | Communication methods and communication devices | |
CN108513290B (en) | Network slice selection method and device | |
US10862992B2 (en) | Resource cache management method and system and apparatus | |
CN110800358A (en) | Transmission configuration method and related product | |
CN107949064A (en) | Collocation method, device, base station and the computer-readable recording medium of channel | |
CN104243089A (en) | System and method for dynamically adjusting data transmission rate | |
CN104540176B (en) | Wireless network access method, device and terminal | |
CN110856263B (en) | Scheduling switching method and device | |
JPWO2008114351A1 (en) | Base station, radio control apparatus, radio apparatus, and data transfer method | |
KR102219015B1 (en) | Use of network support protocols to improve network usage | |
JP7027453B2 (en) | Methods and terminals for determining the reason for establishment | |
CN109428839B (en) | CDN scheduling method, device and system | |
EP3531619A1 (en) | Method, device and system for function scheduling | |
CN100432957C (en) | Method for management memory and memory | |
CN113543318A (en) | Carrier wave determining and indicating method, equipment, device and medium | |
CN104509039A (en) | Systems and methods for sharing a serial communication port between a plurality of communication channels | |
JP2012015803A (en) | Communication device, program, and communication method | |
CN101471833A (en) | Method and apparatus for processing data | |
CN103716907A (en) | Electronic equipment control method and electronic equipment | |
CN107534616A (en) | The service quality of USB | |
EP3694151A1 (en) | Terminal network sharing method, apparatus, air conditioning adjustment device, and storage medium | |
US20220174701A1 (en) | Information processing method, device, and computer-readable storage medium | |
KR102411028B1 (en) | Method and system for initial setup of energy storage system | |
JP2021510020A (en) | Wireless communication method and equipment | |
CN110839296B (en) | Network resource scheduling method, device, storage medium and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20141224 |
|
WD01 | Invention patent application deemed withdrawn after publication |