CN107257266B - Method and device for adjusting transmission rate - Google Patents
Method and device for adjusting transmission rate Download PDFInfo
- Publication number
- CN107257266B CN107257266B CN201710370008.0A CN201710370008A CN107257266B CN 107257266 B CN107257266 B CN 107257266B CN 201710370008 A CN201710370008 A CN 201710370008A CN 107257266 B CN107257266 B CN 107257266B
- Authority
- CN
- China
- Prior art keywords
- noise floor
- transmission rate
- floor value
- cycle
- preset
- 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.)
- Active
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 252
- 238000000034 method Methods 0.000 title claims abstract description 32
- 238000012545 processing Methods 0.000 claims description 9
- 238000013461 design Methods 0.000 description 9
- 230000008859 change Effects 0.000 description 7
- 230000008901 benefit Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 238000012546 transfer Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 3
- 230000008054 signal transmission Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/0001—Systems modifying transmission characteristics according to link quality, e.g. power backoff
- H04L1/0002—Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission rate
Landscapes
- Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Communication Control (AREA)
Abstract
本发明提供了一种传输速率的调整方法和装置,其方法包括:S110获取第N个周期的本底噪声数值和传输速率,比较所述第N个周期的本底噪声数值与预设本底噪声数值的大小关系;S120根据所述第N个周期的本底噪声数值与所述预设本底噪声数值的大小关系,调整第N+1个周期的传输速率;N为整数,且N≥0。本发明根据本底噪声数值来判定无线AP设备当前所需要的传输速率,使得该无线AP设备能够在PCIE1.1和PCIE2.0两种传输速率间自主切换,确保在性能和干扰间的一个平衡。
The present invention provides a method and device for adjusting a transmission rate. The method includes: S110 acquiring a noise floor value and a transmission rate of the Nth cycle, and comparing the noise floor value of the Nth cycle with a preset background The magnitude relationship of the noise value; S120 adjusts the transmission rate of the N+1th cycle according to the magnitude relationship between the noise floor value of the Nth cycle and the preset noise floor value; N is an integer, and N≥ 0. The present invention determines the transmission rate currently required by the wireless AP device according to the noise floor value, so that the wireless AP device can switch autonomously between the two transmission rates of PCIE1.1 and PCIE2.0, ensuring a balance between performance and interference .
Description
技术领域technical field
本发明涉及数据传输领域,尤指一种传输速率的调整方法和装置。The present invention relates to the field of data transmission, in particular to a transmission rate adjustment method and device.
背景技术Background technique
在最近几年,无线AP的数量增长迅猛,无线网络的方便与高效使其能够得到迅速的普及。除了在目前的一些公共地方有AP之外,国外已经有先例以无线标准来建设城域网,因此,WiFi的无线地位将会日益牢固。 WiFi最主要的优势在于不需要布线,可以不受布线条件的限制,只要有信号源,可以随时随地使用,非常适合移动办公用户的需要。In recent years, the number of wireless APs has grown rapidly, and the convenience and efficiency of wireless networks have enabled them to be rapidly popularized. In addition to having APs in some public places at present, there have been precedents in foreign countries to build metropolitan area networks with wireless standards. Therefore, the wireless status of WiFi will become increasingly firm. The main advantage of WiFi is that it does not require wiring and is not restricted by wiring conditions. As long as there is a signal source, it can be used anytime and anywhere, which is very suitable for the needs of mobile office users.
PCIE是PCI-Express的简写。指最新的总线和接口标准,PCIe属于高速串行点对点双通道高带宽传输,所连接的设备分配独享通道带宽,不共享总线带宽,其主要优势就是数据传输速率高,最常见的PCIe 1.1就有 2.5GT/s传输率,单信道数据传输率为250MB/s,4个链接(×4)就能提供高达10Gb/s的带宽与1GB/s数据传输率,×8与×16规格的传输带宽更达到20Gb/s与40Gb/s。PCIe 2.0规格则将传输率进一步提升到5GT/s,单信道数据传输率达500MB/s,较PCIe 1.1提高一倍,×4、×8与×16 规格的PCIe 2.0带宽亦分别增加到20Gb/s、40Gb/s与80Gb/s。无线AP 设备连通后,在MAIN页面可看到无线链路连接状态,包括NoiseFloor,其显示的是以dBm为单位信号质量(RSSI)的信噪比。PCIE is short for PCI-Express. Refers to the latest bus and interface standards. PCIe belongs to high-speed serial point-to-point dual-channel high-bandwidth transmission. The connected devices allocate exclusive channel bandwidth and do not share bus bandwidth. Its main advantage is high data transmission rate. The most common PCIe 1.1 With 2.5GT/s transfer rate, single-channel data transfer rate of 250MB/s, 4 links (×4) can provide up to 10Gb/s bandwidth and 1GB/s data transfer rate, transmission of ×8 and ×16 specifications The bandwidth reaches 20Gb/s and 40Gb/s. The PCIe 2.0 specification further increases the transfer rate to 5GT/s, and the single-channel data transfer rate reaches 500MB/s, which is doubled compared to PCIe 1.1. The PCIe 2.0 bandwidth of ×4, ×8 and ×16 specifications also increases to 20Gb/s, respectively. s, 40Gb/s and 80Gb/s. After the wireless AP device is connected, you can see the wireless link connection status on the MAIN page, including NoiseFloor, which displays the signal-to-noise ratio of signal quality (RSSI) in dBm.
但是,目前的硬件设计,当无线AP需要扩展工作板时,各工作板之间只能通过一种速率进行传输,如果PCIE的规格提高,传输速率虽然会增大,但是会增加硬件成本,通常使用的是PCIE1.1或者PCIE2.0中的一种,不能在PCIE1.1和PCIE2.0两者之间进行自动切换。However, in the current hardware design, when the wireless AP needs to expand the work board, the work boards can only transmit at one rate. If the PCIE specification is improved, the transmission rate will increase, but the hardware cost will increase. Usually One of PCIE1.1 or PCIE2.0 is used, and automatic switching between PCIE1.1 and PCIE2.0 cannot be performed.
发明内容SUMMARY OF THE INVENTION
本发明的目的是提供一种传输速率的调整方法和装置,实现无线AP设备能够在PCIE1.1和PCIE2.0之间自动切换传输速率。The purpose of the present invention is to provide a method and device for adjusting the transmission rate, so that the wireless AP device can automatically switch the transmission rate between PCIE1.1 and PCIE2.0.
本发明提供的技术方案如下:The technical scheme provided by the present invention is as follows:
本发明提供一种传输速率的调整方法,包括步骤:获取第N个周期的本底噪声数值和传输速率,比较所述第N个周期的本底噪声数值与预设本底噪声数值的大小关系;根据所述第N个周期的本底噪声数值与所述预设本底噪声数值的大小关系,调整第N+1个周期的传输速率;N为整数,且N≥0。The present invention provides a method for adjusting a transmission rate, comprising the steps of: acquiring a noise floor value and a transmission rate of the Nth cycle, and comparing the magnitude relationship between the noise floor value of the Nth cycle and a preset noise floor value ; According to the magnitude relationship between the noise floor value of the Nth cycle and the preset noise floor value, adjust the transmission rate of the N+1th cycle; N is an integer, and N≥0.
进一步的,所述根据所述第N个周期的本底噪声数值与所述预设本底噪声数值的大小关系,调整第N+1个周期的传输速率包括:确定所述第N 个周期的本底噪声数值与所述预设本底噪声数值的大小关系;当所述第N 个周期的本底噪声数值等于所述预设本底噪声数值时,控制第N+1个周期的传输速率为所述第N个周期的传输速率;当所述第N个周期的本底噪声数值大于所述预设本底噪声数值时,控制第N+1个周期的传输速率为PCIE 1.1对应的传输速率;当所述第N个周期的本底噪声数值小于所述预设本底噪声数值时,控制第N+1个周期的传输速率为PCIE 2.0对应的传输速率。Further, according to the magnitude relationship between the noise floor value of the Nth cycle and the preset noise floor value, adjusting the transmission rate of the N+1th cycle includes: determining the Nth cycle. The relationship between the noise floor value and the preset noise floor value; when the noise floor value of the Nth cycle is equal to the preset noise floor value, control the transmission rate of the N+1th cycle is the transmission rate of the Nth cycle; when the noise floor value of the Nth cycle is greater than the preset noise floor value, the transmission rate of the N+1th cycle is controlled to be the transmission corresponding to PCIE 1.1 rate; when the noise floor value of the Nth cycle is smaller than the preset noise floor value, the transmission rate of the N+1th cycle is controlled to be the transmission rate corresponding to PCIE 2.0.
进一步的,所述调整第N+1个周期的传输速率之前,包括:在预设时长后进行调整所述第N+1个周期的传输速率。Further, before the adjusting the transmission rate of the N+1 th cycle includes: adjusting the transmission rate of the N+1 th cycle after a preset time period.
本发明还提供一种传输速率的调整方法,包括步骤:获取第N个周期的本底噪声数值和传输速率,比较所述第N个周期的本底噪声数值与预设本底噪声数值范围的大小关系;根据所述第N个周期的本底噪声数值与所述预设本底噪声数值范围的大小关系,调整第N+1个周期的传输速率;N 为整数,且N≥0。The present invention also provides a method for adjusting the transmission rate, comprising the steps of: acquiring the noise floor value and the transmission rate of the Nth cycle, and comparing the noise floor value of the Nth cycle with a predetermined range of the noise floor value. The magnitude relationship; according to the magnitude relationship between the noise floor value of the Nth cycle and the preset noise floor value range, adjust the transmission rate of the N+1th cycle; N is an integer, and N≥0.
进一步的,所述根据所述第N个周期的本底噪声数值与所述预设本底噪声数值范围的大小关系,调整第N+1个周期的传输速率包括:确定所述第N个周期的本底噪声数值与所述预设本底噪声数值范围的大小关系;当所述第N个周期的本底噪声数值在所述预设本底噪声数值范围内时,控制第N+1个周期的传输速率为所述第N个周期的传输速率;当所述第N 个周期的本底噪声数值大于所述预设本底噪声数值范围的最大值时,控制第N+1个周期的传输速率为PCIE 1.1对应的传输速率;当所述第N个周期的本底噪声数值小于所述预设本底噪声数值范围的最小值时,控制第 N+1个周期的传输速率为PCIE 2.0对应的传输速率。Further, according to the magnitude relationship between the noise floor value of the Nth cycle and the preset noise floor value range, adjusting the transmission rate of the N+1th cycle includes: determining the Nth cycle. The relationship between the value of the noise floor and the preset noise floor value range; when the noise floor value of the Nth cycle is within the preset noise floor value range, control the N+1th cycle. The transmission rate of the cycle is the transmission rate of the Nth cycle; when the noise floor value of the Nth cycle is greater than the maximum value of the preset noise floor value range, control the transmission rate of the N+1th cycle. The transmission rate is the transmission rate corresponding to PCIE 1.1; when the noise floor value of the Nth cycle is less than the minimum value of the preset noise floor value range, the transmission rate of the N+1th cycle is controlled to be PCIE 2.0 corresponding transmission rate.
本发明还提供一种传输速率的调整装置,包括:第一获取模块,获取第N个周期的本底噪声数值和传输速率;第一比较模块,比较所述第一获取模块获取的所述第N个周期的本底噪声数值与预设本底噪声数值的大小关系;第一调整模块,根据所述第一比较模块比较得到的所述第N个周期的本底噪声数值与所述预设本底噪声数值的大小关系,调整第N+1个周期的传输速率;N为整数,且N≥0。The present invention also provides a transmission rate adjustment device, comprising: a first acquisition module for acquiring the noise floor value and transmission rate of the Nth cycle; a first comparison module for comparing the The magnitude relationship between the noise floor value of N cycles and the preset noise floor value; the first adjustment module compares the Nth cycle noise floor value obtained by the first comparison module with the preset noise floor value. Adjust the transmission rate of the N+1th cycle according to the magnitude of the noise floor value; N is an integer, and N≥0.
进一步的,所述第一调整模块包括:第一确定子模块,确定所述第N 个周期的本底噪声数值与所述预设本底噪声数值的大小关系;第一控制子模块,用于当所述第N个周期的本底噪声数值等于所述预设本底噪声数值时,控制第N+1个周期的传输速率为所述第N个周期的传输速率;第二控制子模块,用于当所述第N个周期的本底噪声数值大于所述预设本底噪声数值时,控制第N+1个周期的传输速率为PCIE 1.1对应的传输速率;第三控制子模块,用于当所述第N个周期的本底噪声数值小于所述预设本底噪声数值时,控制第N+1个周期的传输速率为PCIE 2.0对应的传输速率。Further, the first adjustment module includes: a first determination submodule for determining the magnitude relationship between the noise floor value of the Nth cycle and the preset noise floor value; a first control submodule for When the noise floor value of the Nth cycle is equal to the preset noise floor value, the transmission rate of the N+1th cycle is controlled to be the transmission rate of the Nth cycle; the second control submodule, For when the noise floor value of the Nth cycle is greater than the preset noise floor value, the transmission rate of the N+1th cycle is controlled to be the transmission rate corresponding to PCIE 1.1; the third control submodule, using When the noise floor value of the Nth cycle is smaller than the preset noise floor value, the transmission rate of the N+1th cycle is controlled to be the transmission rate corresponding to PCIE 2.0.
进一步的,所述第一调整模块包括:处理子模块,用于在预设时长后进行调整所述第N+1个周期的传输速率。Further, the first adjustment module includes: a processing sub-module configured to adjust the transmission rate of the N+1th cycle after a preset time period.
本发明还提供一种传输速率的调整装置,包括:第二获取模块,获取第N个周期的本底噪声数值和传输速率;第二比较模块,比较所述第二获取模块获取的所述第N个周期的本底噪声数值与预设本底噪声数值范围的大小关系;第二调整模块,根据所述第二比较模块比较得到的所述第N 个周期的本底噪声数值与所述预设本底噪声数值范围的大小关系,调整第 N+1个周期的传输速率;N为整数,且N≥0。The present invention also provides a transmission rate adjustment device, comprising: a second acquisition module, which acquires the noise floor value and transmission rate of the Nth cycle; and a second comparison module, which compares the first The magnitude relationship between the noise floor value of N cycles and the preset noise floor value range; the second adjustment module, according to the second comparison module, compares the noise floor value of the Nth cycle with the preset noise floor value. Set the size relationship of the noise floor numerical range, and adjust the transmission rate of the N+1th cycle; N is an integer, and N≥0.
进一步的,所述第二调整模块包括:第二确定子模块,确定所述第N 个周期的本底噪声数值与所述预设本底噪声数值的大小关系;第四控制子模块,用于当所述第N个周期的本底噪声数值等于所述预设本底噪声数值范围时,控制第N+1个周期的传输速率为所述第N个周期的传输速率;第五控制子模块,用于当所述第N个周期的本底噪声数值大于所述预设本底噪声数值范围的最大值时,控制第N+1个周期的传输速率为PCIE 1.1 对应的传输速率;第六控制子模块,用于当所述第N个周期的本底噪声数值小于所述预设本底噪声数值范围的最小值时,控制第N+1个周期的传输速率为PCIE 2.0对应的传输速率。Further, the second adjustment module includes: a second determination submodule, which determines the magnitude relationship between the noise floor value of the Nth cycle and the preset noise floor value; a fourth control submodule, used for When the noise floor value of the Nth cycle is equal to the preset noise floor value range, control the transmission rate of the N+1th cycle to be the transmission rate of the Nth cycle; the fifth control sub-module , for controlling the transmission rate of the N+1th cycle to be the transmission rate corresponding to PCIE 1.1 when the noise floor value of the Nth cycle is greater than the maximum value of the preset noise floor value range; sixth A control submodule, configured to control the transmission rate of the N+1th cycle to be the transmission rate corresponding to PCIE 2.0 when the noise floor value of the Nth cycle is less than the minimum value of the preset noise floor value range .
通过本发明提供的一种传输速率的调整方法和装置,能够带来以下至少一种有益效果:The method and device for adjusting the transmission rate provided by the present invention can bring about at least one of the following beneficial effects:
1、本发明中,通过比较第N个周期的本底噪声数值与预设本底噪声数值的大小关系,具有以下优点:1. In the present invention, by comparing the magnitude relationship between the noise floor value of the Nth cycle and the preset noise floor value, it has the following advantages:
1)由于本底噪声Noise Floor的值越小,那么干扰越小,无线信号越清晰,所需要的传输速率越大,因此通过比较第N个周期的本底噪声数值与预设本底噪声数值的大小关系,能够使得根据本底噪声数值来判定无线AP设备当前所需要的传输速率,使得该无线AP设备能够在PCIE1.1和PCIE2.0两种速率间自主切换。1) Since the smaller the value of Noise Floor, the smaller the interference, the clearer the wireless signal, and the larger the required transmission rate. Therefore, by comparing the noise floor value of the Nth cycle with the preset noise floor value The magnitude relationship of , enables the current required transmission rate of the wireless AP device to be determined according to the noise floor value, so that the wireless AP device can autonomously switch between the two rates of PCIE1.1 and PCIE2.0.
2)由于通过比较第N个周期的本底噪声数值与预设本底噪声数值的大小关系,得到实际需要进行PCIE的传输速率(PCIE1.1或PCIE2.0),使得物理传输速率得到更好的利用,传输速率的使用率提高的同时,还能相应的减少干扰,使得系统瓶颈不再存在于PCIE上,同时保证系统传输链路均达到最大性能。2) By comparing the magnitude relationship between the noise floor value of the Nth cycle and the preset noise floor value, the actual transmission rate (PCIE1.1 or PCIE2.0) required for PCIE is obtained, so that the physical transmission rate is better. While the utilization rate of the transmission rate is increased, the interference can be reduced accordingly, so that the system bottleneck no longer exists on the PCIE, and at the same time, the maximum performance of the system transmission link can be ensured.
3)由于通过比较第N个周期的本底噪声数值与预设本底噪声数值的大小关系,得到实际需要进行PCIE的传输速率,不需要通过增加PCIE的链路条数,避免增加硬件设计复杂度,最大限度的利用切换PCIE速率来提升带宽的使用率。3) By comparing the magnitude relationship between the noise floor value of the Nth cycle and the preset noise floor value, the actual transmission rate required for PCIE is obtained, and it is not necessary to increase the number of PCIE links to avoid increasing the complexity of hardware design. To maximize the use of switching the PCIE rate to improve the bandwidth usage.
4)由于无线AP设备WIFI为传输速率为PCIE1.1时,如果测量出本底噪声数值大于或等于预设本底噪声数值时,调整该无线AP的传输速率为 PCIE1.1,这样可以无线信号覆盖率低的情况下使用2.4G,避免用户STC与无线AP掉线。如果测量出本底噪声数值小于预设本底噪声数值时,调整该无线 AP的传输速率为PCIE2.0,这样减少频段之间的干扰,提升传输速率,增强用户的使用体验。4) Since the transmission rate of the wireless AP device WIFI is PCIE1.1, if the measured noise floor value is greater than or equal to the preset noise floor value, adjust the transmission rate of the wireless AP to PCIE1.1, so that the wireless signal Use 2.4G in the case of low coverage to avoid user STC and wireless AP disconnection. If the measured noise floor value is lower than the preset noise floor value, adjust the transmission rate of the wireless AP to PCIE2.0, which reduces the interference between frequency bands, increases the transmission rate, and enhances the user experience.
2、本发明中,通过在预设时长后进行调整所述第N+1个周期的传输速率,具有以下优点:2. In the present invention, by adjusting the transmission rate of the N+1th cycle after a preset duration, it has the following advantages:
5)由于每次切换前需要在变化区域保持预设时长后如一分钟的趋势才能进行,避免频繁切换,能够节省系统计算资源,CPU处理效率,进而节省电量消耗。5) Since it is necessary to maintain a preset time in the change area before each switch, such as a trend of one minute, to avoid frequent switching, it can save system computing resources, CPU processing efficiency, and thus save power consumption.
6)由于每次切换前需要在变化区域保持预设时长后如一分钟的趋势才能进行,避免频繁切换,能够STC和无线AP设备之间减少掉线的情况。6) Since it is necessary to maintain a preset time in the change area before each switch, such as a trend of one minute, to avoid frequent switching, it can reduce the disconnection between the STC and the wireless AP device.
附图说明Description of drawings
下面将以明确易懂的方式,结合附图说明优选实施方式,对一种传输速率的调整方法和装置的上述特性、技术特征、优点及其实现方式予以进一步说明。The preferred embodiments will be described below in a clear and easy-to-understand manner with reference to the accompanying drawings, and further description will be given of the above-mentioned characteristics, technical features, advantages and implementation manners of a method and apparatus for adjusting a transmission rate.
图1是本发明一种传输速率的调整方法的一个实施例的流程图;1 is a flowchart of an embodiment of a method for adjusting a transmission rate of the present invention;
图2是本发明一种传输速率的调整方法的另一个实施例的流程图;2 is a flowchart of another embodiment of a method for adjusting a transmission rate of the present invention;
图3是本发明一种传输速率的调整方法的另一个实施例的流程图;3 is a flowchart of another embodiment of a method for adjusting a transmission rate of the present invention;
图4是本发明一种传输速率的调整方法的另一个实施例的流程图;4 is a flowchart of another embodiment of a method for adjusting a transmission rate of the present invention;
图5是本发明一种传输速率的调整方法的另一个实施例的流程图;5 is a flowchart of another embodiment of a method for adjusting a transmission rate of the present invention;
图6是本发明一种传输速率的调整装置的一个实施例的结构示意图;6 is a schematic structural diagram of an embodiment of an apparatus for adjusting a transmission rate of the present invention;
图7是本发明一种传输速率的调整装置的另一个实施例的结构示意图;7 is a schematic structural diagram of another embodiment of an apparatus for adjusting a transmission rate of the present invention;
图8是本发明一种传输速率的调整装置的另一个实施例的结构示意图;8 is a schematic structural diagram of another embodiment of an apparatus for adjusting a transmission rate of the present invention;
图9是本发明一种传输速率的调整装置的另一个实施例的结构示意图;9 is a schematic structural diagram of another embodiment of an apparatus for adjusting a transmission rate of the present invention;
图10是本发明一种传输速率的调整方法的一个实例的流程图;10 is a flowchart of an example of a method for adjusting a transmission rate of the present invention;
图11是本发明一种传输速率的调整方法的另一个实例的流程图;11 is a flowchart of another example of a method for adjusting a transmission rate of the present invention;
图12是本发明一种传输速率的调整方法及系统的一个实例的硬件结构图。FIG. 12 is a hardware structure diagram of an example of a method and system for adjusting a transmission rate of the present invention.
具体实施方式Detailed ways
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对照附图说明本发明的具体实施方式。显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图,并获得其他的实施方式。In order to more clearly describe the embodiments of the present invention or the technical solutions in the prior art, the specific embodiments of the present invention will be described below with reference to the accompanying drawings. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative efforts, and obtain other implementations.
为使图面简洁,各图中只示意性地表示出了与本发明相关的部分,它们并不代表其作为产品的实际结构。另外,以使图面简洁便于理解,在有些图中具有相同结构或功能的部件,仅示意性地绘示了其中的一个,或仅标出了其中的一个。在本文中,“一个”不仅表示“仅此一个”,也可以表示“多于一个”的情形。In order to keep the drawings concise, the drawings only schematically show the parts related to the present invention, and they do not represent its actual structure as a product. In addition, in order to make the drawings concise and easy to understand, in some drawings, only one of the components having the same structure or function is schematically shown, or only one of them is marked. As used herein, "one" not only means "only one", but also "more than one".
参考图1所示,本发明提供一种传输速率的调整方法一个实施例,包括:Referring to FIG. 1, the present invention provides an embodiment of a transmission rate adjustment method, including:
S110获取第N个周期的本底噪声数值和传输速率,比较所述第N个周期的本底噪声数值与预设本底噪声数值的大小关系;S110 obtains the noise floor value and transmission rate of the Nth cycle, and compares the magnitude relationship between the noise floor value of the Nth cycle and a preset noise floor value;
S120根据所述第N个周期的本底噪声数值与所述预设本底噪声数值的大小关系,调整第N+1个周期的传输速率;N为整数,且N≥0。S120, according to the magnitude relationship between the noise floor value of the Nth cycle and the preset noise floor value, adjust the transmission rate of the N+1th cycle; N is an integer, and N≥0.
具体的,本实施例中,无线路由器需要分板设计或者扩展子工作板时,各分板之间只能通过一种速率进行传输,如果想要更换传输速率,则需要手动去设置切换。由于本底噪声Noise Floor的值越小,那么干扰越小,无线信号越清晰,所需要的传输速率越大,因此通过比较第N个周期的本底噪声数值与预设本底噪声数值的大小关系,能够使得根据本底噪声数值来判定无线AP设备当前所需要的传输速率,使得该无线AP设备能够在PCIE1.1和PCIE2.0两种速率间自主切换。而本实施例则是通过获取无线路由器的当前时刻的本底噪声信数值,然后根据所述当前时刻的第N个本底噪声数值与所述预设本底噪声数值进行大小关系的比较,得到比较结果从而根据该比较结果调整第N+1个周期的传输速率,根据本底噪声数值的大小关系作出是否需要调整传输速率的判断,本实施例可以根据具体的情况自动进行传输速率的调整,确保在性能和干扰间的一个平衡。Specifically, in this embodiment, when the wireless router needs a sub-board design or expansion of sub-working boards, only one rate can be used for transmission between sub-boards. If the transmission rate needs to be changed, it needs to be manually set and switched. Because the smaller the value of the noise floor, the smaller the interference, the clearer the wireless signal, and the greater the required transmission rate. Therefore, by comparing the noise floor value of the Nth cycle with the preset noise floor value Therefore, the current required transmission rate of the wireless AP device can be determined according to the noise floor value, so that the wireless AP device can autonomously switch between the two rates of PCIE1.1 and PCIE2.0. In this embodiment, the signal value of the noise floor at the current moment of the wireless router is obtained, and then the magnitude relationship is compared between the Nth noise floor value at the current moment and the preset noise floor value to obtain Compare the results so as to adjust the transmission rate of the N+1th cycle according to the comparison result, and make a judgment on whether the transmission rate needs to be adjusted according to the magnitude relationship of the noise floor value. This embodiment can automatically adjust the transmission rate according to the specific situation. Ensure a balance between performance and interference.
参考图2所示,本发明提供一种传输速率的调整方法的另一个实施例,包括:Referring to FIG. 2, the present invention provides another embodiment of a method for adjusting a transmission rate, including:
S210获取第N个周期的本底噪声数值和传输速率,比较所述第N个周期的本底噪声数值与预设本底噪声数值的大小关系;S210 obtains the noise floor value and transmission rate of the Nth cycle, and compares the magnitude relationship between the noise floor value of the Nth cycle and a preset noise floor value;
S220确定所述第N个周期的本底噪声数值与所述预设本底噪声数值的大小关系;S220 determine the magnitude relationship between the noise floor value of the Nth cycle and the preset noise floor value;
S230当所述第N个周期的本底噪声数值等于所述预设本底噪声数值时,控制第N+1个周期的传输速率为所述第N个周期的传输速率;S230, when the noise floor value of the Nth cycle is equal to the preset noise floor value, control the transmission rate of the N+1th cycle to be the transmission rate of the Nth cycle;
S240当所述第N个周期的本底噪声数值大于所述预设本底噪声数值时,控制第N+1个周期的传输速率为PCIE 1.1对应的传输速率;S240, when the noise floor value of the Nth cycle is greater than the preset noise floor value, control the transmission rate of the N+1th cycle to be the transmission rate corresponding to PCIE 1.1;
S250当所述第N个周期的本底噪声数值小于所述预设本底噪声数值时,控制第N+1个周期的传输速率为PCIE 2.0对应的传输速率。S250 , when the noise floor value of the Nth cycle is smaller than the preset noise floor value, control the transmission rate of the N+1th cycle to be the transmission rate corresponding to PCIE 2.0.
具体的,本实施例中,通过比较第N个周期的本底噪声数值与预设本底噪声数值的大小关系,得到实际需要进行PCIE的传输速率(PCIE1.1或PCIE2.0),使得物理传输速率得到更好的利用,传输速率的使用率提高的同时,还能相应的减少干扰,使得系统瓶颈不再存在于PCIE上,同时保证系统传输链路均达到最大性能。能够使得根据本底噪声数值来判定无线AP设备当前所需要的传输速率,使得该无线AP设备能够在PCIE1.1和PCIE2.0两种速率间自主切换。例如,A路由器默认的传输速率为PCIE1.1,A路由器启动后便会按照PCIE1.1对应的传输速率运行数据传输,如果本底噪声小于预设本底噪声数值,那么,路由器自身受到的干扰较小,数据或信号传输所需要的传输速率较大,就需要将A路由器切换自身的传输速率为PCIE2.0。如果本底噪声大于预设本底噪声数值,那么,路由器自身受到的干扰较大,数据或信号传输所需要的传输速率越较小,A路由器将自身的传输速率切换调整为PCIE1.1。这样,就能够根据路由器自身的实时性能调整传输速率,节省带宽,提升带宽和资源利用率。由于通过比较第N个周期的本底噪声数值与预设本底噪声数值的大小关系,得到实际需要进行PCIE的传输速率,不需要通过增加PCIE的链路条数,避免增加硬件设计复杂度,最大限度的利用切换PCIE速率来提升带宽的使用率。Specifically, in this embodiment, by comparing the magnitude relationship between the noise floor value of the Nth cycle and the preset noise floor value, the actual transmission rate (PCIE1.1 or PCIE2.0) required for PCIE is obtained, so that the physical The transmission rate is better utilized, and while the utilization rate of the transmission rate is increased, the interference can be correspondingly reduced, so that the system bottleneck no longer exists on the PCIE, and at the same time, the maximum performance of the system transmission link can be ensured. The current required transmission rate of the wireless AP device can be determined according to the noise floor value, so that the wireless AP device can automatically switch between the two rates of PCIE1.1 and PCIE2.0. For example, the default transmission rate of router A is PCIE1.1. After router A is started, it will run data transmission at the transmission rate corresponding to PCIE1.1. If the noise floor is less than the preset noise floor value, then the router itself is interfered with If it is smaller, the transmission rate required for data or signal transmission is larger, so router A needs to switch its own transmission rate to PCIE2.0. If the noise floor is greater than the preset noise floor value, then the router itself is subject to greater interference, and the transmission rate required for data or signal transmission is smaller. Router A switches its own transmission rate to PCIE1.1. In this way, the transmission rate can be adjusted according to the real-time performance of the router itself, thereby saving bandwidth and improving bandwidth and resource utilization. By comparing the relationship between the noise floor value of the Nth cycle and the preset noise floor value, the actual transmission rate required for PCIE can be obtained. It is not necessary to increase the number of PCIE links to avoid increasing the complexity of hardware design. Maximize the use of switching PCIE rates to improve bandwidth usage.
参考图3所示,本发明提供一种传输速率的调整方法的另一个实施例,包括:Referring to FIG. 3 , the present invention provides another embodiment of a method for adjusting a transmission rate, including:
S310获取第N个周期的本底噪声数值和传输速率,比较所述第N个周期的本底噪声数值与预设本底噪声数值的大小关系;S310 obtains the noise floor value and transmission rate of the Nth cycle, and compares the magnitude relationship between the noise floor value of the Nth cycle and a preset noise floor value;
S320确定所述第N个周期的本底噪声数值与所述预设本底噪声数值的大小关系;S320 determine the magnitude relationship between the noise floor value of the Nth cycle and the preset noise floor value;
S330当所述第N个周期的本底噪声数值等于所述预设本底噪声数值时,3、在预设时长后控制第N+1个周期的传输速率为所述第N个周期的传输速率;S330 When the noise floor value of the Nth cycle is equal to the preset noise floor value, 3. After a preset time period, control the transmission rate of the N+1th cycle to be the transmission of the Nth cycle rate;
S340当所述第N个周期的本底噪声数值大于所述预设本底噪声数值时,在预设时长后控制第N+1个周期的传输速率为PCIE 1.1对应的传输速率;S340, when the noise floor value of the Nth cycle is greater than the preset noise floor value, control the transmission rate of the N+1th cycle to be the transmission rate corresponding to PCIE 1.1 after a preset duration;
S350当所述第N个周期的本底噪声数值小于所述预设本底噪声数值时,在预设时长后控制第N+1个周期的传输速率为PCIE 2.0对应的传输速率。S350 , when the noise floor value of the Nth cycle is smaller than the preset noise floor value, control the transmission rate of the N+1th cycle to be the transmission rate corresponding to PCIE 2.0 after a preset duration.
具体的,本实施例中,通过比较第N个周期的本底噪声数值与预设本底噪声数值的大小关系,得到实际需要进行PCIE的传输速率(PCIE1.1或PCIE2.0),使得物理传输速率得到更好的利用,传输速率的使用率提高的同时,还能相应的减少干扰,使得系统瓶颈不再存在于PCIE上,同时保证系统传输链路均达到最大性能。由于PCIE1.1频率为1.25GHz,PCIE2.0频率为2.5GHz,无线 AP设备WIFI为2.4GHz,一般WIFI为2.4GHz时,使用PCIE 2.0就会由于频率相近而产生干扰。在预设时长后进行调整所述第N+1个周期的传输速率,即每次切换前需要在变化区域保持预设时长后如一分钟的趋势才能进行,避免频繁切换,能够节省系统计算资源,CPU处理效率,进而节省电量消耗。也能够减少掉线的情况。Specifically, in this embodiment, by comparing the magnitude relationship between the noise floor value of the Nth cycle and the preset noise floor value, the actual transmission rate (PCIE1.1 or PCIE2.0) required for PCIE is obtained, so that the physical The transmission rate is better utilized, and while the utilization rate of the transmission rate is increased, the interference can be correspondingly reduced, so that the system bottleneck no longer exists on the PCIE, and at the same time, the maximum performance of the system transmission link can be ensured. Since the frequency of PCIE1.1 is 1.25GHz, the frequency of PCIE2.0 is 2.5GHz, the WIFI of the wireless AP device is 2.4GHz, and the general WIFI is 2.4GHz, the use of PCIE 2.0 will cause interference due to the similar frequency. Adjust the transmission rate of the N+1th cycle after the preset time period, that is, before each switch, it is necessary to maintain the preset period of time in the change area and then keep the trend of one minute, so as to avoid frequent switching, which can save system computing resources. CPU processing efficiency, thereby saving power consumption. It can also reduce disconnection.
如果B路由器的当前传输速率为PCIE2.0时,如果测出当前时刻的本底噪声小于预设本底噪声数值,那么,路由器自身受到的干扰较小,数据或信号传输所需要的传输速率较大,就需要B路由器保持自身的传输速率为 PCIE2.0,即传输速率并不产生变化,直至下一时刻B路由器的本底噪声大于预设本底噪声数值时,才会由于路由器自身受到的干扰增大,在预设时长后如一分钟后将自身的传输速率切换调整为PCIE1.1。这样,就能够根据路由器自身的实时性能调整传输速率,节省带宽,提升带宽和资源利用率。由于通过比较第N个周期的本底噪声数值与预设本底噪声数值的大小关系,得到实际需要进行PCIE的传输速率,不需要通过增加PCIE的链路条数,避免增加硬件设计复杂度,最大限度的利用切换PCIE速率来提升带宽的使用率。避免用户STC 与无线AP掉线减少频段之间的干扰,提升传输速率,增强用户的使用体验。能够使得根据本底噪声数值来判定无线AP设备当前所需要的传输速率,使得该无线AP设备能够在PCIE1.1和PCIE2.0两种速率间自主切换。If the current transmission rate of router B is PCIE2.0, if the measured noise floor at the current moment is less than the preset noise floor value, then the interference on the router itself is relatively small, and the transmission rate required for data or signal transmission is relatively small. If it is too large, router B needs to keep its own transmission rate at PCIE2.0, that is, the transmission rate does not change until the noise floor of router B is greater than the preset noise floor value at the next moment. When the interference increases, it will switch its own transmission rate to PCIE1.1 after a preset time period, such as one minute later. In this way, the transmission rate can be adjusted according to the real-time performance of the router itself, thereby saving bandwidth and improving bandwidth and resource utilization. By comparing the relationship between the noise floor value of the Nth cycle and the preset noise floor value, the actual transmission rate required for PCIE can be obtained. It is not necessary to increase the number of PCIE links and avoid increasing the complexity of hardware design. Maximize the use of switching PCIE rates to improve bandwidth usage. Avoid user STC and wireless AP disconnection, reduce interference between frequency bands, increase transmission rate, and enhance user experience. The current required transmission rate of the wireless AP device can be determined according to the noise floor value, so that the wireless AP device can automatically switch between the two rates of PCIE1.1 and PCIE2.0.
参考图4所示,本发明提供一种传输速率的调整方法的另一个实施例,包括:Referring to FIG. 4, the present invention provides another embodiment of a method for adjusting a transmission rate, including:
S410获取第N个周期的本底噪声数值和传输速率,比较所述第N个周期的本底噪声数值与预设本底噪声数值范围的大小关系;S410 obtains the noise floor value and transmission rate of the Nth cycle, and compares the magnitude relationship between the noise floor value of the Nth cycle and a preset noise floor value range;
S420根据所述第N个周期的本底噪声数值与所述预设本底噪声数值范围的大小关系,调整第N+1个周期的传输速率;N为整数,且N≥0。S420 adjusts the transmission rate of the N+1th cycle according to the magnitude relationship between the noise floor value of the Nth cycle and the preset noise floor value range; N is an integer, and N≥0.
具体的,本实施例中,无线路由器需要分板设计或者扩展子工作板时,各分板之间只能通过一种速率进行传输,如果想要更换传输速率,则需要手动去设置切换。由于本底噪声Noise Floor的值越小,那么干扰越小,无线信号越清晰,所需要的传输速率越大,因此通过比较第N个周期的本底噪声数值与预设本底噪声数值范围的大小关系,能够使得根据本底噪声数值来判定无线AP设备当前所需要的传输速率,使得该无线AP设备能够在PCIE1.1和PCIE2.0两种速率间自主切换。而本实施例则是通过获取无线路由器的当前时刻的本底噪声信数值,然后根据所述当前时刻的第N个本底噪声数值与所述预设本底噪声数值范围中的最大值和最小值进行大小关系的比较,得到比较结果从而根据该比较结果调整第N+1个周期的传输速率,根据本底噪声数值的大小关系作出是否需要调整传输速率的判断,本实施例可以根据具体的情况自动进行传输速率的调整,确保在性能和干扰间的一个平衡。Specifically, in this embodiment, when the wireless router needs a sub-board design or expansion of sub-working boards, only one rate can be used for transmission between sub-boards. If the transmission rate needs to be changed, it needs to be manually set and switched. Since the smaller the value of Noise Floor, the smaller the interference, the clearer the wireless signal, and the greater the required transmission rate. Therefore, by comparing the noise floor value of the Nth cycle with the value of the preset noise floor value range The size relationship can make the current required transmission rate of the wireless AP device be determined according to the noise floor value, so that the wireless AP device can autonomously switch between the two rates of PCIE1.1 and PCIE2.0. In this embodiment, the signal value of the noise floor at the current moment of the wireless router is obtained, and then the maximum value and the minimum value in the range of the Nth noise floor value at the current moment and the preset noise floor value range are obtained. Compare the magnitude relationship between the values, obtain the comparison result, and adjust the transmission rate of the N+1th cycle according to the comparison result, and judge whether the transmission rate needs to be adjusted according to the magnitude relationship of the noise floor value. The transmission rate is automatically adjusted according to the situation, ensuring a balance between performance and interference.
参考图5所示,本发明提供一种传输速率的调整方法的另一个实施例,包括:Referring to FIG. 5, the present invention provides another embodiment of a method for adjusting a transmission rate, including:
S510确定所述第N个周期的本底噪声数值与所述预设本底噪声数值范围的大小关系;S510 determine the magnitude relationship between the noise floor value of the Nth cycle and the preset noise floor value range;
S520当所述第N个周期的本底噪声数值在所述预设本底噪声数值范围内时,控制第N+1个周期的传输速率为所述第N个周期的传输速率;S520, when the noise floor value of the Nth cycle is within the preset noise floor value range, control the transmission rate of the N+1th cycle to be the transmission rate of the Nth cycle;
S530当所述第N个周期的本底噪声数值大于所述预设本底噪声数值范围的最大值时,控制第N+1个周期的传输速率为PCIE 1.1对应的传输速率;S530, when the noise floor value of the Nth cycle is greater than the maximum value of the preset noise floor value range, control the transmission rate of the N+1th cycle to be the transmission rate corresponding to PCIE 1.1;
S540当所述第N个周期的本底噪声数值小于所述预设本底噪声数值范围的最小值时,控制第N+1个周期的传输速率为PCIE 2.0对应的传输速率。S540, when the noise floor value of the Nth cycle is smaller than the minimum value of the preset noise floor value range, control the transmission rate of the N+1th cycle to be the transmission rate corresponding to PCIE 2.0.
具体的,本实施例中,通过比较第N个周期的本底噪声数值与预设本底噪声数值范围的大小关系,得到实际需要进行PCIE的传输速率(PCIE1.1或 PCIE2.0),使得物理传输速率得到更好的利用,传输速率的使用率提高的同时,还能相应的减少干扰,使得系统瓶颈不再存在于PCIE上,同时保证系统传输链路均达到最大性能。由于PCIE1.1频率为1.25GHz,PCIE 2.0频率为2.5GHz,无线AP设备WIFI为2.4GHz,一般WIFI为2.4GHz时,使用PCIE 2.0就会由于频率相近而产生干扰。在本底噪声有个预设范围能够避免频繁切换,节省系统计算资源,CPU处理效率,避免频繁切换造成的手机、电脑等上网终端掉线的情况。能够使得根据本底噪声数值来判定无线AP设备当前所需要的传输速率,使得该无线AP设备能够在PCIE1.1和PCIE2.0两种速率间自主切换。Specifically, in this embodiment, by comparing the magnitude relationship between the noise floor value of the Nth cycle and the preset noise floor value range, the actual transmission rate (PCIE1.1 or PCIE2.0) required for PCIE is obtained, so that The physical transmission rate is better utilized, and while the utilization rate of the transmission rate is increased, the interference can be correspondingly reduced, so that the system bottleneck no longer exists on the PCIE, and at the same time, the maximum performance of the system transmission link is ensured. Since the frequency of PCIE1.1 is 1.25GHz, the frequency of PCIE 2.0 is 2.5GHz, the WIFI of the wireless AP device is 2.4GHz, and the general WIFI is 2.4GHz, the use of PCIE 2.0 will cause interference due to the similar frequency. There is a preset range in the background noise, which can avoid frequent switching, save system computing resources, CPU processing efficiency, and avoid the disconnection of Internet terminals such as mobile phones and computers caused by frequent switching. The current required transmission rate of the wireless AP device can be determined according to the noise floor value, so that the wireless AP device can automatically switch between the two rates of PCIE1.1 and PCIE2.0.
参考图6所示,本发明提供一种传输速率的调整装置100的一个实施例,包括:Referring to FIG. 6, the present invention provides an embodiment of a transmission rate adjustment apparatus 100, including:
第一获取模块110,获取第N个周期的本底噪声数值和传输速率;The first obtaining module 110 obtains the noise floor value and transmission rate of the Nth cycle;
第一比较模块120,比较所述第一获取模块110获取的所述第N个周期的本底噪声数值与预设本底噪声数值的大小关系;The first comparison module 120 compares the magnitude relationship between the noise floor value of the Nth cycle obtained by the first obtaining module 110 and the preset noise floor value;
第一调整模块130,根据所述第一比较模块120比较得到的所述第N个周期的本底噪声数值与所述预设本底噪声数值的大小关系,调整第N+1个周期的传输速率;N为整数,且N≥0。The first adjustment module 130 adjusts the transmission of the N+1th cycle according to the magnitude relationship between the noise floor value of the Nth cycle obtained by the comparison of the first comparison module 120 and the preset noise floor value rate; N is an integer, and N≥0.
具体的,本实施例中,通过比较第N个周期的本底噪声数值与预设本底噪声数值的大小关系,能够使得根据本底噪声数值来判定无线AP设备当前所需要的传输速率,使得该无线AP设备能够在PCIE1.1和PCIE2.0两种速率间自主切换。而本实施例则是通过获取无线路由器的当前时刻的本底噪声信数值,然后根据所述当前时刻的第N个本底噪声数值与所述预设本底噪声数值进行大小关系的比较,得到比较结果从而根据该比较结果调整第N+1个周期的传输速率,根据本底噪声数值的大小关系作出是否需要调整传输速率的判断,本实施例可以根据具体的情况自动进行传输速率的调整,确保在性能和干扰间的一个平衡。Specifically, in this embodiment, by comparing the magnitude relationship between the noise floor value of the Nth cycle and the preset noise floor value, the current required transmission rate of the wireless AP device can be determined according to the noise floor value, so that The wireless AP device can automatically switch between two rates of PCIE1.1 and PCIE2.0. In this embodiment, the signal value of the noise floor at the current moment of the wireless router is obtained, and then the magnitude relationship is compared between the Nth noise floor value at the current moment and the preset noise floor value to obtain Compare the results so as to adjust the transmission rate of the N+1th cycle according to the comparison result, and make a judgment on whether the transmission rate needs to be adjusted according to the magnitude relationship of the noise floor value. This embodiment can automatically adjust the transmission rate according to the specific situation. Ensure a balance between performance and interference.
参考图7所示,相对于图6所示的实施例,本发明提供一种传输速率的调整装置100的另一个实施例,包括:第一获取模块110,第一比较模块120,和第一调整模块130,区别在于,所述第一调整模块130还包括:Referring to FIG. 7 , relative to the embodiment shown in FIG. 6 , the present invention provides another embodiment of a transmission rate adjustment apparatus 100 , including: a first acquisition module 110 , a first comparison module 120 , and a first The adjustment module 130, the difference is that the first adjustment module 130 further includes:
第一确定子模块131,确定所述第N个周期的本底噪声数值与所述预设本底噪声数值的大小关系;The first determination sub-module 131 determines the magnitude relationship between the noise floor value of the Nth cycle and the preset noise floor value;
第一控制子模块132,用于当所述第N个周期的本底噪声数值等于所述预设本底噪声数值时,控制第N+1个周期的传输速率为所述第N个周期的传输速率;The first control sub-module 132 is configured to control the transmission rate of the N+1th cycle to be equal to that of the Nth cycle when the noise floor value of the Nth cycle is equal to the preset noise floor value. Transmission rate;
第二控制子模块133,用于当所述第N个周期的本底噪声数值大于所述预设本底噪声数值时,控制第N+1个周期的传输速率为PCIE 1.1对应的传输速率;The second control submodule 133 is configured to control the transmission rate of the N+1th cycle to be the transmission rate corresponding to PCIE 1.1 when the noise floor value of the Nth cycle is greater than the preset noise floor value;
第三控制子模块134,用于当所述第N个周期的本底噪声数值小于所述预设本底噪声数值时,控制第N+1个周期的传输速率为PCIE 2.0对应的传输速率。The third control submodule 134 is configured to control the transmission rate of the N+1th cycle to be the transmission rate corresponding to PCIE 2.0 when the noise floor value of the Nth cycle is smaller than the preset noise floor value.
具体的,本实施例中,通过比较第N个周期的本底噪声数值与预设本底噪声数值的大小关系,得到实际需要进行PCIE的传输速率(PCIE1.1或PCIE2.0),使得物理传输速率得到更好的利用,传输速率的使用率提高的同时,还能相应的减少干扰,使得系统瓶颈不再存在于PCIE上,同时保证系统传输链路均达到最大性能。能够使得根据本底噪声数值来判定无线AP设备当前所需要的传输速率,使得该无线AP设备能够在PCIE1.1和PCIE2.0两种速率间自主切换。由于通过比较第N个周期的本底噪声数值与预设本底噪声数值的大小关系,得到实际需要进行PCIE的传输速率,不需要通过增加PCIE的链路条数,避免增加硬件设计复杂度,最大限度的利用切换PCIE速率来提升带宽的使用率。Specifically, in this embodiment, by comparing the magnitude relationship between the noise floor value of the Nth cycle and the preset noise floor value, the actual transmission rate (PCIE1.1 or PCIE2.0) required for PCIE is obtained, so that the physical The transmission rate is better utilized, and while the utilization rate of the transmission rate is increased, the interference can be correspondingly reduced, so that the system bottleneck no longer exists on the PCIE, and at the same time, the maximum performance of the system transmission link can be ensured. The current required transmission rate of the wireless AP device can be determined according to the noise floor value, so that the wireless AP device can automatically switch between the two rates of PCIE1.1 and PCIE2.0. By comparing the relationship between the noise floor value of the Nth cycle and the preset noise floor value, the actual transmission rate required for PCIE can be obtained. It is not necessary to increase the number of PCIE links to avoid increasing the complexity of hardware design. Maximize the use of switching PCIE rates to improve bandwidth usage.
优选的,所述第一调整模块130还包括处理子模块135,用于在预设时长后进行调整所述第N+1个周期的传输速率。Preferably, the first adjustment module 130 further includes a
处理子模块135与在预设时长后进行调整所述第N+1个周期的传输速率,即每次切换前需要在变化区域保持预设时长后如一分钟的趋势才能进行,避免频繁切换,能够节省系统计算资源,CPU处理效率,进而节省电量消耗。也能够减少掉线的情况。The
参考图8所示,本发明提供一种传输速率的调整装置200的一个实施例,包括:Referring to FIG. 8, the present invention provides an embodiment of a transmission rate adjustment apparatus 200, including:
第二获取模块210,获取第N个周期的本底噪声数值和传输速率;The second obtaining module 210 obtains the noise floor value and transmission rate of the Nth cycle;
第二比较模块220,比较所述第二获取模块210获取的所述第N个周期的本底噪声数值与预设本底噪声数值范围的大小关系;The second comparison module 220 compares the magnitude relationship between the noise floor value of the Nth cycle obtained by the second obtaining module 210 and a preset noise floor value range;
第二调整模块230,根据所述第二比较模块220比较得到的所述第N个周期的本底噪声数值与所述预设本底噪声数值范围的大小关系,调整第N+1个周期的传输速率;N为整数,且N≥0。The second adjustment module 230, according to the magnitude relationship between the noise floor value of the Nth cycle obtained by the comparison of the second comparison module 220 and the preset noise floor value range, adjust the N+1th cycle. Transmission rate; N is an integer, and N≥0.
具体的,本实施例中,通过比较第N个周期的本底噪声数值与预设本底噪声数值范围的大小关系,能够使得根据本底噪声数值来判定无线AP设备当前所需要的传输速率,使得该无线AP设备能够在PCIE1.1和PCIE2.0两种速率间自主切换。而本实施例则是通过获取无线路由器的当前时刻的本底噪声信数值,然后根据所述当前时刻的第N个本底噪声数值与所述预设本底噪声数值范围中的最大值和最小值进行大小关系的比较,得到比较结果从而根据该比较结果调整第N+1个周期的传输速率,根据本底噪声数值的大小关系作出是否需要调整传输速率的判断,本实施例可以根据具体的情况自动进行传输速率的调整,确保在性能和干扰间的一个平衡。Specifically, in this embodiment, by comparing the magnitude relationship between the noise floor value of the Nth cycle and the preset noise floor value range, it is possible to determine the transmission rate currently required by the wireless AP device according to the noise floor value. This enables the wireless AP device to switch autonomously between two rates of PCIE1.1 and PCIE2.0. In this embodiment, the signal value of the noise floor at the current moment of the wireless router is obtained, and then the maximum value and the minimum value in the range of the Nth noise floor value at the current moment and the preset noise floor value range are obtained. Compare the magnitude relationship between the values, obtain the comparison result, and adjust the transmission rate of the N+1th cycle according to the comparison result, and judge whether the transmission rate needs to be adjusted according to the magnitude relationship of the noise floor value. The transmission rate is automatically adjusted according to the situation, ensuring a balance between performance and interference.
参考图9所示,相对于图8所示的实施例,本发明提供一种传输速率的调整装置200的另一个实施例,包括:第二获取模块210,第二比较模块220,和第二调整模块230,区别在于,所述第二调整模块230还包括:Referring to FIG. 9 , with respect to the embodiment shown in FIG. 8 , the present invention provides another embodiment of an apparatus 200 for adjusting a transmission rate, including: a second acquisition module 210 , a second comparison module 220 , and a second The adjustment module 230, the difference is that the second adjustment module 230 further includes:
第二确定子模块231,确定所述第N个周期的本底噪声数值与所述预设本底噪声数值的大小关系;The second determination sub-module 231 determines the magnitude relationship between the noise floor value of the Nth cycle and the preset noise floor value;
第四控制子模块232,用于当所述第N个周期的本底噪声数值等于所述预设本底噪声数值范围时,控制第N+1个周期的传输速率为所述第N个周期的传输速率;The fourth control sub-module 232 is configured to control the transmission rate of the N+1th cycle to be the Nth cycle when the noise floor value of the Nth cycle is equal to the preset noise floor value range transmission rate;
第五控制子模块233,用于当所述第N个周期的本底噪声数值大于所述预设本底噪声数值范围的最大值时,控制第N+1个周期的传输速率为PCIE 1.1 对应的传输速率;The fifth control submodule 233 is configured to control the transmission rate of the N+1th cycle to correspond to PCIE 1.1 when the noise floor value of the Nth cycle is greater than the maximum value of the preset noise floor value range transmission rate;
第六控制子模块234,用于当所述第N个周期的本底噪声数值小于所述预设本底噪声数值范围的最小值时,控制第N+1个周期的传输速率为PCIE 2.0 对应的传输速率。The sixth control sub-module 234 is configured to control the transmission rate of the N+1th cycle to correspond to PCIE 2.0 when the noise floor value of the Nth cycle is less than the minimum value of the preset noise floor value range transmission rate.
具体的,本实施例中,通过比较第N个周期的本底噪声数值与预设本底噪声数值范围的大小关系,得到实际需要进行PCIE的传输速率(PCIE1.1或 PCIE2.0),使得物理传输速率得到更好的利用,传输速率的使用率提高的同时,还能相应的减少干扰,使得系统瓶颈不再存在于PCIE上,同时保证系统传输链路均达到最大性能。由于PCIE1.1频率为1.25GHz,PCIE 2.0频率为2.5GHz,无线AP设备WIFI为2.4GHz,一般WIFI为2.4GHz时,使用PCIE 2.0就会由于频率相近而产生干扰。在本底噪声有个预设范围能够避免频繁切换,节省系统计算资源,CPU处理效率,避免频繁切换造成的手机、电脑等上网终端掉线的情况。能够使得根据本底噪声数值来判定无线AP设备当前所需要的传输速率,使得该无线AP设备能够在PCIE1.1和PCIE2.0两种速率间自主切换。例如,假设预设本底噪声数值范围为-80dBm~-95dBm,无线路由器C此时的传输速率为PCIE2.0,当检测无线路由器C的当前本底噪声为-104dBm时,由于 -104dBm小于-80dBm,因此直至下一进程进行测量本地噪声时,无线路由器C 保存此时的传输速率PCIE2.0不变。当检测无线路由器C的当前本底噪声为 -78dBm时,由于-78dBm大于-95dBm,因此无线路由器C切换自身的传输速率为PCIE1.1,直至下一进程进行测量本地噪声时在判断是否需要切换调整无线路由器C的传输速率。当检测无线路由器C的当前本底噪声为-85dBm时,由于-85dBm大于-80dBm并且小于-95dBm,因此直至下一进程进行测量本地噪声时,无线路由器C保存此时的传输速率PCIE2.0不变。Specifically, in this embodiment, by comparing the magnitude relationship between the noise floor value of the Nth cycle and the preset noise floor value range, the actual transmission rate (PCIE1.1 or PCIE2.0) required for PCIE is obtained, so that The physical transmission rate is better utilized, and while the utilization rate of the transmission rate is increased, the interference can be correspondingly reduced, so that the system bottleneck no longer exists on the PCIE, and at the same time, the maximum performance of the system transmission link is ensured. Since the frequency of PCIE1.1 is 1.25GHz, the frequency of PCIE 2.0 is 2.5GHz, the WIFI of the wireless AP device is 2.4GHz, and the general WIFI is 2.4GHz, the use of PCIE 2.0 will cause interference due to the similar frequency. There is a preset range in the background noise, which can avoid frequent switching, save system computing resources, CPU processing efficiency, and avoid the disconnection of Internet terminals such as mobile phones and computers caused by frequent switching. The current required transmission rate of the wireless AP device can be determined according to the noise floor value, so that the wireless AP device can automatically switch between the two rates of PCIE1.1 and PCIE2.0. For example, assuming that the preset noise floor value range is -80dBm to -95dBm, and the transmission rate of wireless router C is PCIE2.0 at this time, when the current noise floor of wireless router C is detected to be -104dBm, because -104dBm is less than - 80dBm, so until the next process to measure the local noise, the wireless router C keeps the current transmission rate PCIE2.0 unchanged. When the current noise floor of wireless router C is -78dBm, since -78dBm is greater than -95dBm, wireless router C switches its own transmission rate to PCIE1.1 until the next process to measure local noise before judging whether it needs to be switched Adjust the transmission rate of wireless router C. When the current noise floor of the wireless router C is -85dBm, since -85dBm is greater than -80dBm and less than -95dBm, the wireless router C saves the current transmission rate PCIE2.0 until the next process to measure the local noise. Change.
参考图10所示,本发明提供一种传输速率的调整方法的一个实例,包括:Referring to Figure 10, the present invention provides an example of a method for adjusting a transmission rate, including:
S101通过控制CPU发送GPIO信号;S101 sends GPIO signal by controlling CPU;
S102控制路由器读取内核中的Noise Floor;S102 controls the router to read the Noise Floor in the kernel;
S103判断读取的Noise Floor与-85dBm的大小关系;S103 judges the relationship between the read Noise Floor and -85dBm;
S104当Noise Floor<-85dBm时,一分钟后切换传出速率为PCIE2.0;S104 When Noise Floor<-85dBm, switch the outgoing rate to PCIE2.0 after one minute;
S105当Noise Floor=-85dBm时,保持上一次传输速率一分钟不变;S105 When Noise Floor=-85dBm, keep the last transmission rate unchanged for one minute;
S106当Noise Floor>-85dBm时,一分钟后切换传出速率为PCIE1.1;S106 When Noise Floor>-85dBm, switch the outgoing rate to PCIE1.1 after one minute;
本实施例中是设定一个固定的切换值,这里选用NOISE FLOOR的数值作为切换的条件,NOISE FLOOR是结合终端的收发性能,接收功率等综合计算出来的值,实验证明-85dBm是一个性能从好变坏的点,小于-85dBm时则切换为PCIE2.0,大于—85dBm时测切换为PCIE1.1,在-85dBm保持上一个状态不变,每次切换前需要在变化区域保持一分钟的趋势才能进行,目的是避免频繁切换。与现有最好技术相比,本发明能够实现PCIE1.1和PCIE2.0两种传输速率之间的自动切换,性能和抗干扰的平衡更好。In this embodiment, a fixed switching value is set. Here, the value of NOISE FLOOR is selected as the switching condition. NOISE FLOOR is a value comprehensively calculated by combining the transceiver performance and received power of the terminal. Experiments show that -85dBm is a performance from The point of good and bad, when it is less than -85dBm, switch to PCIE2.0, when it is greater than -85dBm, switch to PCIE1.1, keep the previous state unchanged at -85dBm, and need to keep it in the change area for one minute before each switch. The trend can be carried out in order to avoid frequent switching. Compared with the best existing technology, the present invention can realize automatic switching between the two transmission rates of PCIE1.1 and PCIE2.0, and has a better balance between performance and anti-interference.
参考图11所示,本发明提供一种传输速率的调整方法的另一个实例,包括:Referring to FIG. 11, the present invention provides another example of a method for adjusting a transmission rate, including:
S111通过控制CPU发送GPIO信号;S111 sends GPIO signal by controlling CPU;
S112控制路由器读取内核中的Noise Floor;S112 controls the router to read the Noise Floor in the kernel;
S113判断读取的Noise Floor与-80dBm~-85dBm的大小关系;S113 judges the relationship between the read Noise Floor and -80dBm~-85dBm;
S114当Noise Floor<-85dBm时,切换传出速率为PCIE2.0;S114 When Noise Floor<-85dBm, switch the outgoing rate to PCIE2.0;
S115当-80dBm<Noise Floor<-85dBm时,保持上一次传输速率不变;S115 when -80dBm<Noise Floor<-85dBm, keep the last transmission rate unchanged;
S116当Noise Floor>-80dBm时,切换传出速率为PCIE1.1;S116 when Noise Floor>-80dBm, switch the outgoing rate to PCIE1.1;
本实施例中是设定一个判断的区间,判断的区间范围在-85dBm到-80dBm 之间,小于-85dBm时则切换为PCIE2.0,大于-80dBm的时候用PCIE1.1,在 -85dBm和-80dBm之间时,保持上一个PCIE速率的状态不变。本实施例同时支持两种PCIE传输速率,两种传输速率可以自动切换,保持性能和抗干扰性的平衡,切换时候对客户使用没有影响,提升用户的使用体验。In this embodiment, a judgment interval is set. The judgment interval is between -85dBm and -80dBm. When it is less than -85dBm, it is switched to PCIE2.0. When it is greater than -80dBm, PCIE1.1 is used. When it is between -80dBm, keep the state of the last PCIE rate unchanged. This embodiment supports two PCIE transmission rates at the same time, and the two transmission rates can be automatically switched to maintain a balance between performance and anti-interference, and the switching has no impact on the use of the customer, thereby improving the user's use experience.
具体的,上述任一个实施例均采用了如图12所示的硬件设计,2.4G和5G 芯片通过转接板与CPU连接,通过寄存器的值的变化得到本底噪声数值的计算,从而根据计算得到的本底噪声数值来实现判断并完成速率的切换。采用转接板使得空间上设置更合理,分板设计也更能避免干扰。Specifically, any of the above embodiments adopts the hardware design shown in Figure 12. The 2.4G and 5G chips are connected to the CPU through an adapter board, and the noise floor value is calculated by changing the value of the register. The obtained noise floor value is used to realize the judgment and complete the rate switching. The use of an adapter board makes the space setting more reasonable, and the sub-board design can also avoid interference.
应当说明的是,上述实施例均可根据需要自由组合。以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。It should be noted that the above embodiments can be freely combined as required. The above are only the preferred embodiments of the present invention. It should be pointed out that for those skilled in the art, without departing from the principles of the present invention, several improvements and modifications can be made. It should be regarded as the protection scope of the present invention.
Claims (6)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710370008.0A CN107257266B (en) | 2017-05-23 | 2017-05-23 | Method and device for adjusting transmission rate |
PCT/CN2017/102733 WO2018214354A1 (en) | 2017-05-23 | 2017-09-21 | Method and apparatus for adjusting transmission rate |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710370008.0A CN107257266B (en) | 2017-05-23 | 2017-05-23 | Method and device for adjusting transmission rate |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107257266A CN107257266A (en) | 2017-10-17 |
CN107257266B true CN107257266B (en) | 2020-11-27 |
Family
ID=60027645
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710370008.0A Active CN107257266B (en) | 2017-05-23 | 2017-05-23 | Method and device for adjusting transmission rate |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107257266B (en) |
WO (1) | WO2018214354A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US12072831B2 (en) * | 2022-01-20 | 2024-08-27 | Mediatek Inc. | Dynamic PCIE speed-adjusting method and wireless device and user equipment thereof |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1391745A (en) * | 1999-09-17 | 2003-01-15 | 艾利森电话股份有限公司 | Method for estimating residual noise in signal and apparatus utilizing this method |
WO2003088520A1 (en) * | 2002-04-08 | 2003-10-23 | Motorola, Inc. | System and method for predictive transmit power control for mobile stations in a multiple access wireless communication system |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1146173C (en) * | 2001-04-30 | 2004-04-14 | 华为技术有限公司 | Capacity increasing method for CDMA mobile communication system |
US6959171B2 (en) * | 2002-02-28 | 2005-10-25 | Intel Corporation | Data transmission rate control |
CN104714910B (en) * | 2013-12-17 | 2018-11-30 | 研祥智能科技股份有限公司 | The method and system of adaptive configuration PCIE bus interface |
CN104915303B (en) * | 2015-06-23 | 2017-11-21 | 北京工业大学 | High speed digital I based on PXIe buses/O systems |
-
2017
- 2017-05-23 CN CN201710370008.0A patent/CN107257266B/en active Active
- 2017-09-21 WO PCT/CN2017/102733 patent/WO2018214354A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1391745A (en) * | 1999-09-17 | 2003-01-15 | 艾利森电话股份有限公司 | Method for estimating residual noise in signal and apparatus utilizing this method |
WO2003088520A1 (en) * | 2002-04-08 | 2003-10-23 | Motorola, Inc. | System and method for predictive transmit power control for mobile stations in a multiple access wireless communication system |
Also Published As
Publication number | Publication date |
---|---|
WO2018214354A1 (en) | 2018-11-29 |
CN107257266A (en) | 2017-10-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107432000B (en) | Apparatus and method for managing wireless communication | |
US9942851B2 (en) | Dynamic power management in a wireless device | |
EP3310012B1 (en) | Transmission device, reception device, communication system, signal transmission method, signal reception method, and communication method | |
CN103596227B (en) | Method for switching network and system | |
CN108282907B (en) | Electronic device, wireless networking system, wireless networking device, control method for wireless networking device, and storage device | |
CN107182069B (en) | Wireless router transmission rate switching method, control method and wireless router | |
US20150341907A1 (en) | Method for transmitting data, method for acquiring data, base station, and user equipment | |
CN104871610B (en) | A kind of method and device controlling transmission power | |
TWI507881B (en) | Communication device and method of configuring data transmission | |
CN113727294A (en) | Communication method and device | |
JP2022538207A (en) | Communication method | |
CN107257266B (en) | Method and device for adjusting transmission rate | |
WO2014166375A1 (en) | Distributed base station and data processing method and apparatus therein | |
WO2019034001A1 (en) | Power consumption control method and apparatus | |
KR101158330B1 (en) | Method and apparatus for allocating dynamic bandwidth in the access point | |
CN114466441B (en) | Method and device for adjusting transmitting power, storage medium and WiFi equipment | |
JP4896067B2 (en) | Wireless communication terminal that automatically controls the no-communication monitoring timer | |
WO2018225624A1 (en) | Wireless communication device and control method therefor | |
CN113938902B (en) | Cell selection method and device | |
CN104124986A (en) | Wireless signal receiver and signal processing method thereof | |
JP6002645B2 (en) | COMMUNICATION CONTROL SYSTEM, BAND ALLOCATION DEVICE, RELAY DEVICE, AND COMMUNICATION CONTROL METHOD | |
CN109842864B (en) | Data dynamic regulation system | |
CN114765514B (en) | Idle state reference signal confirmation method and related products | |
CN105451316B (en) | A kind of wireless communications method and equipment | |
TW201440445A (en) | System capable of decreasing RF interference and method thereof |
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 | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20200409 Address after: No. 2-3167, zone a, Nonggang City, No. 2388, Donghuan Avenue, Hongjia street, Jiaojiang District, Taizhou City, Zhejiang Province Applicant after: Taizhou Jiji Intellectual Property Operation Co.,Ltd. Address before: 201616 Shanghai city Songjiang District Sixian Road No. 3666 Applicant before: Phicomm (Shanghai) Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20230118 Address after: 313000 room 1019, Xintiandi commercial office, Yishan street, Wuxing District, Huzhou, Zhejiang, China Patentee after: Huzhou YingLie Intellectual Property Operation Co.,Ltd. Address before: No.2-3167, area a, Nonggang City, 2388 Donghuan Avenue, Hongjia street, Jiaojiang District, Taizhou City, Zhejiang Province, 318000 Patentee before: Taizhou Jiji Intellectual Property Operation Co.,Ltd. |
|
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20241203 Address after: 327-1740, 3rd Floor, Building 1, No. 10 Longyu North Street, Changping District, Beijing 102200 (Cluster Registration) Patentee after: Beijing Zhongxuan Congbai Technology Co.,Ltd. Country or region after: China Address before: 313000 room 1019, Xintiandi commercial office, Yishan street, Wuxing District, Huzhou, Zhejiang, China Patentee before: Huzhou YingLie Intellectual Property Operation Co.,Ltd. Country or region before: China |