CN117580141A - Power negotiation method, device, system, medium, routing equipment and terminal - Google Patents
Power negotiation method, device, system, medium, routing equipment and terminal Download PDFInfo
- Publication number
- CN117580141A CN117580141A CN202410052352.5A CN202410052352A CN117580141A CN 117580141 A CN117580141 A CN 117580141A CN 202410052352 A CN202410052352 A CN 202410052352A CN 117580141 A CN117580141 A CN 117580141A
- Authority
- CN
- China
- Prior art keywords
- target
- power
- test
- target terminal
- negotiation
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/04—Transmission power control [TPC]
- H04W52/06—TPC algorithms
- H04W52/14—Separate analysis of uplink or downlink
- H04W52/143—Downlink power control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/04—Transmission power control [TPC]
- H04W52/06—TPC algorithms
- H04W52/14—Separate analysis of uplink or downlink
- H04W52/146—Uplink power control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/04—Transmission power control [TPC]
- H04W52/54—Signalisation aspects of the TPC commands, e.g. frame structure
- H04W52/60—Signalisation aspects of the TPC commands, e.g. frame structure using different transmission rates for TPC commands
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/14—Backbone network devices
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域Technical field
本公开涉及通信技术领域,尤其涉及一种功率协商方法、装置、系统、介质、路由设备及终端。The present disclosure relates to the field of communication technology, and in particular, to a power negotiation method, device, system, medium, routing equipment and terminal.
背景技术Background technique
相关技术中,路由器作为用户家庭里的网络接入设备,一般需要长时间在线持续提供接入服务和数据传输转发服务。并且从全球范围来说,路由器的总量巨大,因此路由器的节能就变得极为重要。In related technologies, routers, as network access equipment in users' homes, generally need to be online for a long time to continuously provide access services and data transmission and forwarding services. And globally, the total number of routers is huge, so energy saving of routers has become extremely important.
发明内容Contents of the invention
为克服相关技术中存在的问题,本公开提供一种功率协商方法、装置、系统、介质、路由设备及终端。In order to overcome problems existing in related technologies, the present disclosure provides a power negotiation method, device, system, medium, routing equipment and terminal.
根据本公开实施例的第一方面,提供一种功率协商方法,所述路由设备具有支持功率协商的能力,所述方法包括:According to a first aspect of an embodiment of the present disclosure, a power negotiation method is provided. The routing device has the ability to support power negotiation. The method includes:
确定与所述路由设备关联的目标终端具有支持功率协商的能力;Determining that the target terminal associated with the routing device has the ability to support power negotiation;
与所述目标终端进行功率协商,得到用于与所述目标终端进行数据传输的目标功率。Perform power negotiation with the target terminal to obtain the target power used for data transmission with the target terminal.
可选地,所述目标功率包括用于所述路由设备向所述目标终端发送数据报文的目标下行功率,与所述目标终端进行功率协商,得到用于与所述目标终端进行数据传输的目标功率,包括:Optionally, the target power includes a target downlink power used by the routing device to send a data message to the target terminal, and power negotiation is performed with the target terminal to obtain a power used for data transmission with the target terminal. Target power, including:
以目标测试下行功率向所述目标终端发送第一测试报文;Send the first test message to the target terminal with the target test downlink power;
在接收到所述目标终端基于所述第一测试报文发送的第一应答报文时,降低所述目标测试下行功率,以得到当前测试下行功率;When receiving the first response message sent by the target terminal based on the first test message, reduce the target test downlink power to obtain the current test downlink power;
将所述当前测试下行功率作为新的所述目标测试下行功率,执行所述以目标测试下行功率向所述目标终端发送第一测试报文的步骤,直到未接收到所述目标终端基于所述第一测试报文所发送的第一应答报文时,将上一次发送第一测试报文的测试下行功率确定为所述目标下行功率。The current test downlink power is used as the new target test downlink power, and the step of sending the first test message to the target terminal with the target test downlink power is performed until the target terminal does not receive the target test message based on the target test downlink power. When sending the first response message of the first test message, the test downlink power of the last time the first test message was sent is determined as the target downlink power.
可选地,以目标测试下行功率向所述目标终端发送第一测试报文之前,所述方法还包括:Optionally, before sending the first test message to the target terminal with the target test downlink power, the method further includes:
确定向所述目标终端发送第一测试报文的第一目标编码速率;Determine the first target coding rate for sending the first test message to the target terminal;
根据所述第一目标编码速率,确定首次向所述目标终端发送第一测试报文的目标测试下行功率。According to the first target coding rate, the target test downlink power for sending a first test message to the target terminal for the first time is determined.
可选地,确定向所述目标终端发送第一测试报文的第一目标编码速率,包括:Optionally, determining the first target encoding rate for sending the first test message to the target terminal includes:
以第一目标测试编码速率向所述目标终端发送第二测试报文;Send a second test message to the target terminal at the first target test encoding rate;
在未接收到所述目标终端基于所述第二测试报文发送的第二应答报文时,降低所述第一目标测试编码速率,以得到第一当前测试编码速率;When the second response message sent by the target terminal based on the second test message is not received, reduce the first target test encoding rate to obtain a first current test encoding rate;
将所述第一当前测试编码速率作为新的所述第一目标测试编码速率,执行所述以第一目标测试编码速率向所述目标终端发送第二测试报文的步骤,直到接收到所述目标终端基于所述第二测试报文所发送的第二应答报文、且所述第二应答报文中包括用于表征本次发送的测试编码速率满足下行通信带宽需求的目标信息时,将本次发送第二测试报文的测试编码速率确定为所述第一目标编码速率。Use the first current test coding rate as the new first target test coding rate, and perform the step of sending a second test message to the target terminal at the first target test coding rate until the When the target terminal sends a second response message based on the second test message and the second response message includes target information indicating that the test encoding rate sent this time meets the downlink communication bandwidth requirement, The test encoding rate for sending the second test message this time is determined to be the first target encoding rate.
可选地,所述目标功率包括用于所述目标终端向所述路由设备发送数据报文的目标上行功率,与所述目标终端进行功率协商,得到用于与所述目标终端进行数据传输的目标功率,包括:Optionally, the target power includes a target uplink power used by the target terminal to send a data message to the routing device, and power negotiation is performed with the target terminal to obtain a power used for data transmission with the target terminal. Target power, including:
当接收到所述目标终端以目标测试上行功率发送的第三测试报文时,根据所述第三测试报文,向所述目标终端发送第三应答报文,以使所述目标终端在接收到所述第三应答报文时,降低所述目标测试上行功率,以得到当前测试上行功率;以及将所述当前测试上行功率作为新的所述目标测试上行功率,执行以目标测试上行功率向所述路由设备发送第三测试报文的步骤,直到未接收到所述路由设备基于所述第三测试报文所发送的第三应答报文时,将上一次发送第三测试报文的测试上行功率确定为所述目标上行功率;When receiving the third test message sent by the target terminal with the target test uplink power, send a third response message to the target terminal according to the third test message, so that the target terminal receives When the third response message is received, the target test uplink power is reduced to obtain the current test uplink power; and the current test uplink power is used as the new target test uplink power, and the target test uplink power is used as the target test uplink power. In the step of sending the third test message by the routing device, until the third response message sent by the routing device based on the third test message is not received, the test of the last time the third test message was sent will be performed. The uplink power is determined as the target uplink power;
接收所述目标终端发送的第一告知信息,所述第一告知信息包括所述目标上行功率。Receive first notification information sent by the target terminal, where the first notification information includes the target uplink power.
可选地,将上一次发送第一测试报文的测试下行功率确定为目标下行功率之后,所述方法还包括:Optionally, after determining the test downlink power of the last time the first test message was sent as the target downlink power, the method further includes:
向所述目标终端发送第二告知信息,所述第二告知信息中包括所述目标下行功率。Send second notification information to the target terminal, where the second notification information includes the target downlink power.
可选地,所述方法还包括:Optionally, the method also includes:
监测向所述目标终端发送数据报文的下行速率以及待发送给所述目标终端的数据报文的第一缓存量;Monitor the downlink rate of data packets sent to the target terminal and the first cache amount of data packets to be sent to the target terminal;
当所述下行速率不满足当前下行通信带宽需求,或所述第一缓存量在预设时长内持续增长,将所述目标下行功率恢复为所述路由设备的最大下行功率。When the downlink rate does not meet the current downlink communication bandwidth requirement, or the first cache amount continues to grow within a preset time period, the target downlink power is restored to the maximum downlink power of the routing device.
可选地,确定与所述路由设备关联的目标终端具有支持功率协商的能力,包括:Optionally, determining that the target terminal associated with the routing device has the ability to support power negotiation includes:
接收所述目标终端发送的关联请求报文,所述关联请求报文中包括用于表征所述目标终端具有支持功率协商的能力的第一标识信息;Receive an association request message sent by the target terminal, where the association request message includes first identification information used to indicate that the target terminal has the ability to support power negotiation;
根据所述第一标识信息,确定所述目标终端具有支持功率协商的能力。According to the first identification information, it is determined that the target terminal has the ability to support power negotiation.
根据本公开实施例的第二方面,提供一种功率协商方法,应用于目标终端,所述目标终端具有支持功率协商的能力,所述方法包括:According to a second aspect of an embodiment of the present disclosure, a power negotiation method is provided, applied to a target terminal, and the target terminal has the ability to support power negotiation. The method includes:
确定与所述目标终端关联的路由设备具有支持功率协商的能力;Determining that the routing device associated with the target terminal has the ability to support power negotiation;
与所述路由设备进行功率协商,得到用于与所述路由设备进行数据传输的目标功率。Perform power negotiation with the routing device to obtain the target power used for data transmission with the routing device.
可选地,所述目标功率包括用于所述路由设备向所述目标终端发送数据报文的目标下行功率,与所述路由设备进行功率协商,得到用于与所述路由设备进行数据传输的目标功率,包括:Optionally, the target power includes a target downlink power used by the routing device to send a data message to the target terminal. Power negotiation is performed with the routing device to obtain a power used for data transmission with the routing device. Target power, including:
当接收到所述路由设备以目标测试下行功率发送的第一测试报文时,根据所述第一测试报文,向所述目标终端发送第一应答报文,以使所述路由设备在接收到所述第一应答报文时,降低所述目标测试下行功率,以得到当前测试下行功率,以及将所述当前测试下行功率作为新的所述目标测试下行功率,执行以目标测试下行功率向所述目标终端发送第一测试报文的步骤,直到未接收到所述路由设备基于所述第一测试报文所发送的第一应答报文时,将上一次发送第一测试报文的测试下行功率确定为目标下行功率;When receiving the first test message sent by the routing device with the target test downlink power, send a first response message to the target terminal according to the first test message, so that the routing device receives When the first response message is received, the target test downlink power is reduced to obtain the current test downlink power, and the current test downlink power is used as the new target test downlink power, and the target test downlink power is used as the target test downlink power. The step of the target terminal sending the first test message until the first response message sent by the routing device based on the first test message is not received will be the test of the last time the first test message was sent. The downlink power is determined as the target downlink power;
接收所述路由设备发送的第二告知信息,所述第二告知信息包括所述目标下行功率。Receive second notification information sent by the routing device, where the second notification information includes the target downlink power.
可选地,所述目标功率包括用于所述目标终端向所述路由设备发送数据报文的目标上行功率,与所述路由设备进行功率协商,得到用于与所述路由设备进行数据传输的目标功率,包括:Optionally, the target power includes a target uplink power for the target terminal to send a data message to the routing device, and power negotiation is performed with the routing device to obtain a power for data transmission with the routing device. Target power, including:
以目标测试上行功率向所述目标终端发送第三测试报文;Send the third test message to the target terminal with the target test uplink power;
在接收到所述目标终端基于所述第三测试报文发送的第三应答报文时,降低所述目标测试上行功率,以得到当前测试上行功率;When receiving the third response message sent by the target terminal based on the third test message, reduce the target test uplink power to obtain the current test uplink power;
将所述当前测试上行功率作为新的所述目标测试上行功率,执行所述以目标测试上行功率向所述目标终端发送第三测试报文的步骤,直到未接收到所述目标终端基于所述第三测试报文所发送的第三应答报文时,将上一次发送第三测试报文的测试上行功率确定为所述目标上行功率。The current test uplink power is used as the new target test uplink power, and the step of sending the third test message to the target terminal with the target test uplink power is performed until the target terminal does not receive the target test message based on the target test uplink power. When the third response message is sent by the third test message, the test uplink power of the last time the third test message was sent is determined as the target uplink power.
可选地,以目标测试上行功率向所述目标终端发送第三测试报文之前,所述方法还包括:Optionally, before sending the third test message to the target terminal with the target test uplink power, the method further includes:
确定向所述路由设备发送第三测试报文的第二目标编码速率;Determine the second target encoding rate for sending the third test message to the routing device;
根据所述第二目标编码速率,确定首次向所述路由设备发送第三测试报文的目标测试下行功率。According to the second target encoding rate, the target test downlink power for sending a third test message to the routing device for the first time is determined.
可选地,确定向所述路由设备发送第三测试报文的第二目标编码速率,包括:Optionally, determining the second target encoding rate for sending the third test message to the routing device includes:
以第二目标测试编码速率向所述目标终端发送第四测试报文;Send a fourth test message to the target terminal at the second target test encoding rate;
在未接收到所述目标终端基于所述第四测试报文发送的第四应答报文时,降低所述第二目标测试编码速率,以得到第二当前测试编码速率;When the fourth response message sent by the target terminal based on the fourth test message is not received, reduce the second target test encoding rate to obtain a second current test encoding rate;
将所述第二当前测试编码速率作为新的所述第二目标测试编码速率,执行所述以第二目标测试编码速率向所述目标终端发送第四测试报文的步骤,直到接收到所述目标终端基于所述第四测试报文所发送的第四应答报文时,确定本次发送第四测试报文的测试编码速率是否满足上行通信带宽需求;Use the second current test encoding rate as the new second target test encoding rate, and perform the step of sending the fourth test message to the target terminal at the second target test encoding rate until the When the target terminal sends the fourth response message based on the fourth test message, determine whether the test encoding rate of the fourth test message sent this time meets the uplink communication bandwidth requirement;
将满足上行通信带宽需求的测试编码速率确定为所述第二目标编码速率。The test coding rate that meets the uplink communication bandwidth requirement is determined as the second target coding rate.
可选地,所述方法还包括:Optionally, the method also includes:
监测向所述路由设备发送数据报文的上行速率以及待发送给所述路由设备的数据报文的第二缓存量;Monitor the uplink rate of data packets sent to the routing device and the second cache amount of data packets to be sent to the routing device;
当所述上行速率不满足当前上行通信带宽需求,或所述第二缓存量在预设时长内持续增长,将所述目标上行功率恢复为所述目标终端的最大上行功率。When the uplink rate does not meet the current uplink communication bandwidth requirement, or the second cache amount continues to grow within a preset time period, the target uplink power is restored to the maximum uplink power of the target terminal.
根据本公开实施例的第三方面,提供一种功率协商装置,应用于路由设备,所述路由设备具有支持功率协商的能力,所述功率协商装置包括:According to a third aspect of the embodiment of the present disclosure, a power negotiation device is provided, which is applied to a routing device. The routing device has the ability to support power negotiation. The power negotiation device includes:
第一确定模块,被配置为确定与所述路由设备关联的目标终端具有支持功率协商的能力;A first determining module configured to determine that the target terminal associated with the routing device has the ability to support power negotiation;
第一协商模块,被配置为与所述目标终端进行功率协商,得到用于与所述目标终端进行数据传输的目标功率。The first negotiation module is configured to perform power negotiation with the target terminal to obtain the target power used for data transmission with the target terminal.
根据本公开实施例的第四方面,提供一种功率协商装置,应用于目标终端,所述目标终端具有支持功率协商的能力,所述功率协商装置包括:According to a fourth aspect of an embodiment of the present disclosure, a power negotiation device is provided, applied to a target terminal, and the target terminal has the ability to support power negotiation. The power negotiation device includes:
第二确定模块,被配置为确定与所述目标终端关联的路由设备具有支持功率协商的能力;a second determination module configured to determine that the routing device associated with the target terminal has the ability to support power negotiation;
第二协商模块,被配置为与所述路由设备进行功率协商,得到用于与所述路由设备进行数据传输的目标功率。The second negotiation module is configured to perform power negotiation with the routing device to obtain the target power used for data transmission with the routing device.
根据本公开实施例的第五方面,提供一种功率协商系统,包括本公开实施例第三方面的应用于路由设备的功率协商装置以及本公开实施例第四方面的应用于目标终端的功率协商装置。According to the fifth aspect of the embodiment of the present disclosure, a power negotiation system is provided, including the power negotiation device applied to the routing device according to the third aspect of the embodiment of the present disclosure and the power negotiation applied to the target terminal according to the fourth aspect of the embodiment of the present disclosure. device.
根据本公开实施例的第六方面,提供一种计算机存储介质,其上存储有计算机程序,该程序被处理装置执行时实现本公开实施例第一方面的应用于路由设备的功率协商方法或者本公开实施例第二方面的应用于目标终端的功率协商方法。According to a sixth aspect of the embodiment of the present disclosure, there is provided a computer storage medium on which a computer program is stored. When the program is executed by a processing device, the power negotiation method applied to a routing device of the first aspect of the embodiment of the present disclosure or the present invention is implemented. A power negotiation method applied to a target terminal according to the second aspect of the embodiment is disclosed.
根据本公开实施例的第七方面,提供一种路由设备,包括:According to a seventh aspect of the embodiment of the present disclosure, a routing device is provided, including:
存储装置,其上存储有计算机程序;a storage device having a computer program stored thereon;
处理装置,用于执行所述存储装置中的所述计算机程序,以实现本公开实施例第一方面的应用于路由设备的功率协商方法。A processing device, configured to execute the computer program in the storage device to implement the power negotiation method applied to routing equipment according to the first aspect of the embodiment of the present disclosure.
根据本公开实施例的第八方面,提供一种终端,包括:According to an eighth aspect of the embodiment of the present disclosure, a terminal is provided, including:
存储装置,其上存储有计算机程序;a storage device having a computer program stored thereon;
处理装置,用于执行所述存储装置中的所述计算机程序,以实现本公开实施例第二方面的应用于目标终端的功率协商方法。A processing device, configured to execute the computer program in the storage device to implement the power negotiation method applied to the target terminal in the second aspect of the embodiment of the present disclosure.
本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
本公开中,具有支持功率协商的能力的路由设备通过确定与路由设备关联的目标终端具有支持功率协商的能力,并与目标终端进行功率协商,得到用于与目标终端进行数据传输的目标功率。这样,通过协商得到的目标功率更适合于路由设备和目标终端间的数据传输,进一步可以在保证通信质量的前提下降低数据传输功耗,使得路由设备和目标终端实现节能的效果。In this disclosure, a routing device capable of supporting power negotiation determines that a target terminal associated with the routing device has the capability of supporting power negotiation, and performs power negotiation with the target terminal to obtain the target power used for data transmission with the target terminal. In this way, the target power obtained through negotiation is more suitable for data transmission between the routing device and the target terminal, which can further reduce data transmission power consumption while ensuring communication quality, so that the routing device and the target terminal can achieve energy saving effects.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only, and do not limit the present disclosure.
附图说明Description of the drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
图1是根据一示例性实施例示出的路由设备和家用终端设备的WiFi覆盖范围的示意图。FIG. 1 is a schematic diagram illustrating WiFi coverage of a routing device and a home terminal device according to an exemplary embodiment.
图2是根据一示例性实施例示出的一种应用于路由设备的功率协商方法的流程图。FIG. 2 is a flow chart illustrating a power negotiation method applied to a routing device according to an exemplary embodiment.
图3是根据一示例性实施例示出的一种应用于目标终端的功率协商方法的流程图。Figure 3 is a flowchart of a power negotiation method applied to a target terminal according to an exemplary embodiment.
图4是根据一示例性实施例示出的一种功率协商方法的流程图。Figure 4 is a flow chart of a power negotiation method according to an exemplary embodiment.
图5是根据一示例性实施例示出的一种上行功率协商方法的流程图。Figure 5 is a flow chart of an uplink power negotiation method according to an exemplary embodiment.
图6是根据一示例性实施例示出的一种下行功率协商方法的流程图。Figure 6 is a flow chart of a downlink power negotiation method according to an exemplary embodiment.
图7是根据一示例性实施例示出的一种应用于路由设备的功率协商装置的框图。Figure 7 is a block diagram of a power negotiation apparatus applied to routing equipment according to an exemplary embodiment.
图8是根据一示例性实施例示出的一种应用于目标终端的功率协商装置的框图。Figure 8 is a block diagram of a power negotiation device applied to a target terminal according to an exemplary embodiment.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with aspects of the disclosure as detailed in the appended claims.
路由器作为用户家庭里的网络接入设备,一般需要长时间在线持续提供接入服务和数据传输转发服务。As a network access device in users' homes, routers generally need to be online for a long time to continuously provide access services and data transmission and forwarding services.
WiFi(Wireless Fidelity,无线保真技术)作为一种常用的短距无线接入技术,已经成为多种家庭网络设备的首选连接技术,比如电视、智能音箱、家庭摄像头等家用终端设备基本都通过WiFi与路由器连接实现网络通信。目前存在的问题是路由设备和终端设备的发射功率均以预先设定的功率进行发送,功率越大,WiFi的覆盖范围越大。为了让WiFi的覆盖范围足够远,预先设定的默认功率一般是在满足法规要求条件下满足射频指标条件下的最大发射功率,因此默认功率一般比较高。WiFi (Wireless Fidelity, wireless fidelity technology), as a commonly used short-range wireless access technology, has become the preferred connection technology for a variety of home network devices. For example, home terminal devices such as TVs, smart speakers, and home cameras basically all use WiFi Connect to the router for network communication. The current problem is that the transmit power of routing equipment and terminal equipment is transmitted at a preset power. The greater the power, the greater the coverage of WiFi. In order to ensure that the WiFi coverage range is far enough, the preset default power is generally the maximum transmit power that meets the radio frequency indicators under the conditions of meeting regulatory requirements, so the default power is generally relatively high.
如图1所示,标识为A的虚线表示电视的WiFi覆盖范围,标识为B的虚线表示路由设备的WiFi覆盖范围,标识为C的虚线表示智能门锁的WiFi覆盖范围。以图1中的路由设备和电视为例,路由设备和电视靠的比较近,电视的WiFi覆盖范围和路由设备的WiFi覆盖范围均远超两者之间的实际距离。而路由设备和电视间以更低的功率发送数据也能满足通信的要求。这种场景下,发送功率越高,消耗的能源越多,如果以默认的功率发送数据,对能源较为浪费。As shown in Figure 1, the dotted line marked A indicates the WiFi coverage of the TV, the dotted line marked B indicates the WiFi coverage of the routing device, and the dotted line marked C indicates the WiFi coverage of the smart door lock. Taking the routing device and the TV in Figure 1 as an example, the routing device and the TV are relatively close, and the WiFi coverage range of the TV and the WiFi coverage range of the routing device far exceed the actual distance between them. The communication requirements can also be met by sending data at lower power between the routing equipment and the TV. In this scenario, the higher the sending power, the more energy is consumed. If data is sent at the default power, energy is wasted.
参见图2,图2是根据一示例性实施例示出的一种功率协商方法的流程图,如图2所示,该功率协商方法应用于路由设备,路由设备具有支持功率协商的能力,该功率协商方法包括以下步骤。Referring to Figure 2, Figure 2 is a flow chart of a power negotiation method according to an exemplary embodiment. As shown in Figure 2, the power negotiation method is applied to a routing device. The routing device has the ability to support power negotiation. The power The negotiation method includes the following steps.
在步骤S201中,确定与路由设备关联的目标终端具有支持功率协商的能力;In step S201, it is determined that the target terminal associated with the routing device has the ability to support power negotiation;
在步骤S202中,与目标终端进行功率协商,得到用于与目标终端进行数据传输的目标功率。In step S202, power negotiation is performed with the target terminal to obtain the target power used for data transmission with the target terminal.
示例地,路由设备是连接两个或多个网络的硬件设备,在网络间起网关的作用,可以读取每一个数据包中的地址然后决定如何传送的专用智能性的网络设备。目标终端可以与路由设备同处于一个空间内,进一步可以是在使用过程中不轻易挪动位置的设备,例如可以是电视、智能音箱、家庭摄像头、智能门锁等等。For example, a routing device is a hardware device that connects two or more networks and acts as a gateway between the networks. It is a dedicated intelligent network device that can read the address in each data packet and then decide how to transmit it. The target terminal can be in the same space as the routing device, and can be a device that cannot be easily moved during use, such as a TV, a smart speaker, a home camera, a smart door lock, etc.
示例地,在路由设备与目标终端进行功率协商时,路由设备和目标终端均具有支持功率协商的能力,进而可以通过功率协商流程,可以得到目标功率。目标功率可以是路由设备向目标终端发送数据报文的下行功率,也可以是目标终端向路由设备发送数据报文的上行功率,还可以包括路由设备向目标终端发送数据报文的下行功率和目标终端向路由设备发送数据报文的上行功率。For example, when the routing device and the target terminal perform power negotiation, both the routing device and the target terminal have the ability to support power negotiation, and the target power can be obtained through the power negotiation process. The target power can be the downlink power of the routing device sending data packets to the target terminal, or the uplink power of the target terminal sending data packets to the routing device. It can also include the downlink power of the routing device sending data packets to the target terminal and the target power. The uplink power of data packets sent from the terminal to the routing device.
本公开中,具有支持功率协商的能力的路由设备通过确定与路由设备关联的目标终端具有支持功率协商的能力,并与目标终端进行功率协商,得到用于与目标终端进行数据传输的目标功率。这样,通过协商得到的目标功率更适合于路由设备和目标终端间的数据传输,进一步可以在保证通信质量的前提下降低数据传输功耗,使得路由设备和目标终端实现节能的效果。In this disclosure, a routing device capable of supporting power negotiation determines that a target terminal associated with the routing device has the capability of supporting power negotiation, and performs power negotiation with the target terminal to obtain the target power used for data transmission with the target terminal. In this way, the target power obtained through negotiation is more suitable for data transmission between the routing device and the target terminal, which can further reduce data transmission power consumption while ensuring communication quality, so that the routing device and the target terminal can achieve energy saving effects.
作为一种可选的实施例,目标功率包括用于路由设备向目标终端发送数据报文的目标下行功率,与目标终端进行功率协商,得到用于与目标终端进行数据传输的目标功率,包括:As an optional embodiment, the target power includes the target downlink power used by the routing device to send data packets to the target terminal. Power negotiation is performed with the target terminal to obtain the target power used for data transmission with the target terminal, including:
以目标测试下行功率向目标终端发送第一测试报文;Send the first test message to the target terminal with the target test downlink power;
在接收到目标终端基于第一测试报文发送的第一应答报文时,降低目标测试下行功率,以得到当前测试下行功率;When receiving the first response message sent by the target terminal based on the first test message, reduce the target test downlink power to obtain the current test downlink power;
将当前测试下行功率作为新的目标测试下行功率,执行以目标测试下行功率向目标终端发送第一测试报文的步骤,直到未接收到目标终端基于第一测试报文所发送的第一应答报文时,将上一次发送第一测试报文的测试下行功率确定为目标下行功率。Use the current test downlink power as the new target test downlink power, and perform the step of sending the first test message to the target terminal with the target test downlink power until the first response message sent by the target terminal based on the first test message is not received. When sending the first test message, the test downlink power of the last time the first test message was sent is determined as the target downlink power.
示例地,目标测试下行功率是路由设备用于测试向目标终端发送数据报文的功率。当目标终端能够接收到路由设备以目标测试下行功率发送的第一测试报文,表明目标测试下行功率对应的覆盖范围能够覆盖到目标终端所在位置,可以根据第一测试报文向路由设备发送的第一应答报文。当目标终端不能接收到路由设备以目标测试下行功率发送的第一测试报文时,表明目标测试下行功率对应的覆盖范围不能覆盖到目标终端所在位置。For example, the target test downlink power is the power used by the routing device to test sending data packets to the target terminal. When the target terminal can receive the first test message sent by the routing device with the target test downlink power, it indicates that the coverage corresponding to the target test downlink power can cover the location of the target terminal, and the target terminal can be sent to the routing device according to the first test message. The first response message. When the target terminal cannot receive the first test message sent by the routing device with the target test downlink power, it indicates that the coverage range corresponding to the target test downlink power cannot cover the location of the target terminal.
示例地,这里的目标测试下行功率可以是预先设定的发射功率,例如可以是在满足法规要求条件下满足射频指标条件下的最大发射功率。当目标终端能够接收到路由设备以目标测试下行功率发送的第一测试报文,可以逐步降低目标测试下行功率,以确定目标终端是否能够接收到根据降低后的目标测试下行功率所发送的第一测试报文。For example, the target test downlink power here may be a preset transmission power, for example, it may be the maximum transmission power under the condition of meeting regulatory requirements and meeting radio frequency indicators. When the target terminal can receive the first test message sent by the routing device with the target test downlink power, the target test downlink power can be gradually reduced to determine whether the target terminal can receive the first test message sent according to the reduced target test downlink power. Test message.
示例地,路由设备通过向目标终端发送第一测试报文。当路由设备接收到第一应答报文时,判定可能目标测试下行功率可能不是最合适的下行功率,可以降低目标测试下行功率得到当前测试下行功率后,并再次以当前测试下行功率向目标终端发送第一测试报文。其中,目标测试下行功率与预设功率的差值即为当前测试下行功率,预设功率即为每一步骤下目标测试下行功率所降低的功率值。For example, the routing device sends the first test packet to the target terminal. When the routing device receives the first response message, it determines that the target test downlink power may not be the most appropriate downlink power. It can reduce the target test downlink power to obtain the current test downlink power, and then send the target terminal again with the current test downlink power. The first test message. Among them, the difference between the target test downlink power and the preset power is the current test downlink power, and the preset power is the power value reduced by the target test downlink power in each step.
示例地,通过每一次降低测试下行功率,可以不断降低路由设备向目标终端发送第一测试报文的功率。当前测试下行功率作为新的目标测试下行功率,并以当前测试下行功率向目标终端发送第一测试报文,直到未接收到目标终端基于第一测试报文所发送的第一应答报文时,此时目标终端不能接收到第一测试报文,即路由设备降低后的测试下行功率未覆盖到目标终端所在位置。因此可以将未接收到第一应答报文的上一次发送第一测试报文的测试下行功率确定为路由设备的目标下行功率。在确定目标下行功率后,路由设备可以以协商的目标下行功率向目标终端发送数据报文。For example, by reducing the test downlink power each time, the power of the routing device sending the first test packet to the target terminal can be continuously reduced. The current test downlink power is used as the new target test downlink power, and the first test message is sent to the target terminal with the current test downlink power until the first response message sent by the target terminal based on the first test message is not received. At this time, the target terminal cannot receive the first test message, that is, the test downlink power reduced by the routing device does not cover the location of the target terminal. Therefore, the test downlink power of the last time the first test message was sent without receiving the first response message can be determined as the target downlink power of the routing device. After determining the target downlink power, the routing device can send a data packet to the target terminal with the negotiated target downlink power.
示例地,功率协商的测试报文和应答报文的载体可以是自定义数据报文或者自定义action管理报文。For example, the carrier of the power negotiation test message and response message may be a custom data message or a custom action management message.
值得说明的是,为了保证测试报文不受信道内的其余因素干扰,保证传输环境较优,避免过在传输环境较差情况下多次发送测试报文对端也能收到的情形出现,这里的测试报文的发送均不采用无线重传机制,即一个测量报文只发送一次,如果对端没收到则认为发送失败。It is worth mentioning that in order to ensure that the test message is not interfered by other factors in the channel, ensure that the transmission environment is better, and avoid the situation where the test message is sent multiple times and the other end can receive it even if the transmission environment is poor, here The test packets are sent without using the wireless retransmission mechanism, that is, a measurement packet is only sent once. If the peer does not receive it, the transmission is considered failed.
本公开通过上述技术方案,可以让路由设备和目标终端间通过协商得到的目标下行功率进行数据通信,目标下行功率通过降低目标测试下行功率后得到,因此路由设备向目标终端发送数据报文的下行功率更低,可以实现对路由设备节能的效果。Through the above technical solution, the present disclosure can allow data communication between the routing device and the target terminal through the target downlink power obtained through negotiation. The target downlink power is obtained by reducing the target test downlink power. Therefore, the routing device sends the downlink of the data message to the target terminal. The power is lower, which can save energy on routing equipment.
作为一种可选的实施例,以目标测试下行功率向目标终端发送第一测试报文之前,方法还包括:As an optional embodiment, before sending the first test message to the target terminal with the target test downlink power, the method further includes:
确定向目标终端发送第一测试报文的第一目标编码速率;Determine the first target encoding rate for sending the first test message to the target terminal;
根据第一目标编码速率,确定首次向目标终端发送第一测试报文的目标测试下行功率。According to the first target coding rate, the target test downlink power for sending the first test message to the target terminal for the first time is determined.
示例地,编码速率是在对模拟信号采样、量化、编码完成后,数据流中有用信息部分所占的比例,可以表征设备之间发送数据报文的质量。在编码速率越大的情况下,则发送数据报文的质量越高,传输速率越高。发射功率较高的情况下可能发送数据报文的质量达不到要求,编码速率一般与功率为反比关系,因此较高的发射功率可以对应较低的编码速率,较低的发射功率可以对应较高的编码速率。For example, the encoding rate is the proportion of useful information in the data stream after the analog signal is sampled, quantized, and encoded. It can characterize the quality of data packets sent between devices. The higher the encoding rate, the higher the quality of the data packets sent and the higher the transmission rate. When the transmission power is high, the quality of the data packets sent may not meet the requirements. The coding rate is generally inversely proportional to the power. Therefore, a higher transmission power can correspond to a lower coding rate, and a lower transmission power can correspond to a higher coding rate. High encoding rate.
示例地,功率协商可以在保障目标终端的通信带宽需求的前提下进行协商,不同终端对通信带宽的需求可以根据终端类别提前由终端自定义。比如电视可能考虑最大分辨率下的在线视频的带宽需求作为电视的通信带宽需求,而智能门锁如果只是简单的数据通信,则对通信带宽的需求很小。For example, power negotiation can be performed on the premise of ensuring the communication bandwidth requirements of the target terminal. The communication bandwidth requirements of different terminals can be customized in advance by the terminal according to the terminal type. For example, a TV may consider the bandwidth requirement of online video at maximum resolution as the communication bandwidth requirement of the TV, while a smart door lock will have very little communication bandwidth requirement if it is only for simple data communication.
示例地,第一目标编码速率可以用于确保在对应的信道环境下可以以较高的传输速率传递数据。带宽可以决定网络连接的最大传输能力,即网络连接的上限速度。而编码速率则是实际传输过程中的速度,受到带宽以及传输协议、网络拥塞等多种因素的限制。因此这里通过将第一目标编码速率对应的目标测试下行功率作为用于功率协商的初始测试下行功率,可以保证信号传输的质量,进一步可以保证在目标终端的通信带宽需求下确定路由设备向目标终端的最合适的发射功率。For example, the first target encoding rate may be used to ensure that data can be transmitted at a higher transmission rate under a corresponding channel environment. Bandwidth can determine the maximum transmission capacity of a network connection, that is, the upper limit speed of a network connection. The encoding rate is the speed during the actual transmission process, which is limited by various factors such as bandwidth, transmission protocol, and network congestion. Therefore, by using the target test downlink power corresponding to the first target coding rate as the initial test downlink power for power negotiation, the quality of signal transmission can be ensured, and further it can be ensured that the routing device determines the direction to the target terminal under the communication bandwidth requirements of the target terminal. the most suitable transmitting power.
作为一种可选的实施例,确定路由设备向目标终端发送第一测试报文的第一目标编码速率,包括:As an optional embodiment, determining the first target encoding rate at which the routing device sends the first test message to the target terminal includes:
以第一目标测试编码速率向目标终端发送第二测试报文;Send the second test message to the target terminal at the first target test encoding rate;
在未接收到目标终端基于第二测试报文发送的第二应答报文时,降低第一目标测试编码速率,以得到第一当前测试编码速率;When the second response message sent by the target terminal based on the second test message is not received, reduce the first target test encoding rate to obtain the first current test encoding rate;
将第一当前测试编码速率作为新的第一目标测试编码速率,执行以第一目标测试编码速率向目标终端发送第二测试报文的步骤,直到接收到目标终端基于第二测试报文所发送的第二应答报文、且第二应答报文中包括用于表征当前测试编码速率满足下行通信带宽需求的目标信息时,将本次发送第二测试报文的测试编码速率确定为第一目标编码速率。Use the first current test encoding rate as the new first target test encoding rate, and perform the step of sending the second test message to the target terminal at the first target test encoding rate until receiving the second test message sent by the target terminal based on the second test message. When the second response message is sent, and the second response message includes target information used to indicate that the current test encoding rate meets the downlink communication bandwidth requirements, the test encoding rate for sending the second test message this time is determined as the first target. Encoding rate.
示例地,为了保证可以以较高的传输速率传递数据,即每次传输的数据携带的信息量较大,这里的第一目标测试编码速率可以是满足法规要求条件下满足射频指标条件下的最大发射功率所对应的最大编码速率。通过最大编码速率对应的默认功率向目标终端发送测量报文,最大编码速率对应的默认功率较小,因距离较远或者由于数据报文出现丢包、错包等情况,目标终端无法解析数据包,可能会出现发送失败的情况,目标终端不会响应该第二测试报文,即不会向路由设备发送第二应答报文。路由设备可以通过降低测试编码速率再向目标终端发送测量报文,直到接收到目标终端针对第二测试报文发送的第二应答报文后,将该测试编码速率确定为第一目标编码速率,并可以根据第一目标编码速率,确定首次向目标终端发送第一测试报文的目标测试下行功率。For example, in order to ensure that data can be transmitted at a higher transmission rate, that is, each transmitted data carries a larger amount of information, the first target test encoding rate here can be the maximum encoding rate that meets regulatory requirements and meets radio frequency indicators. The maximum coding rate corresponding to the transmit power. Send measurement packets to the target terminal using the default power corresponding to the maximum coding rate. The default power corresponding to the maximum coding rate is small. The target terminal cannot parse the data packets due to the long distance or packet loss or error in the data packets. , the transmission may fail, and the target terminal will not respond to the second test message, that is, it will not send the second response message to the routing device. The routing device can reduce the test encoding rate and then send the measurement message to the target terminal until it receives the second response message sent by the target terminal in response to the second test message, and then determines the test encoding rate as the first target encoding rate. And the target test downlink power for sending the first test message to the target terminal for the first time can be determined according to the first target coding rate.
这里,目标信息包括用于告知路由设备当前测试编码速率不满足下行通信带宽需求的第一信息以及用于告知路由设备当前测试编码速率满足下行通信带宽需求的第二信息。当目标终端判断当前的测试编码速率下的通信带宽是否满足下行通信带宽需求,如果不满足,则目标终端向路由设备发送的第二应答报文中包括告知路由设备当前测试编码速率不满足下行通信带宽需求的第一信息,则路由设备可以根据第二应答报文中的第一信息停止后续的下行功率协商过程。如果目标终端判断当前的测试编码速率下的通信带宽满足下行通信带宽需求,目标终端向路由设备发送的第二应答报文中可以包括告知路由设备当前测试编码速率满足下行通信带宽需求的第二信息,则路由设备可以根据第二应答报文中的第二信息继续下行功率协商。Here, the target information includes first information used to inform the routing device that the current test encoding rate does not meet the downlink communication bandwidth requirement and second information used to inform the routing device that the current test encoding rate meets the downlink communication bandwidth requirement. When the target terminal determines whether the communication bandwidth at the current test encoding rate meets the downlink communication bandwidth requirements, if not, the second response message sent by the target terminal to the routing device includes informing the routing device that the current test encoding rate does not meet the downlink communication requirements. If the first information of the bandwidth requirement is received, the routing device can stop the subsequent downlink power negotiation process according to the first information in the second response message. If the target terminal determines that the communication bandwidth at the current test encoding rate meets the downlink communication bandwidth requirements, the second response message sent by the target terminal to the routing device may include second information informing the routing device that the current test encoding rate meets the downlink communication bandwidth requirements. , then the routing device can continue the downlink power negotiation according to the second information in the second response message.
作为一种可选的实施例,目标功率包括用于目标终端向路由设备发送数据报文的目标上行功率,与目标终端进行功率协商,得到用于与目标终端进行数据传输的目标功率,包括:As an optional embodiment, the target power includes the target uplink power used by the target terminal to send data packets to the routing device. Power negotiation is performed with the target terminal to obtain the target power used for data transmission with the target terminal, including:
当接收到目标终端以目标测试上行功率发送的第三测试报文时,根据第三测试报文,向目标终端发送第三应答报文,以使目标终端在接收到第三应答报文时,降低目标测试上行功率,以得到当前测试上行功率;以及将当前测试上行功率作为新的目标测试上行功率,执行以目标测试上行功率向路由设备发送第三测试报文的步骤,直到未接收到路由设备基于第三测试报文所发送的第三应答报文时,将上一次发送第三测试报文的测试上行功率确定为目标上行功率;When receiving the third test message sent by the target terminal with the target test uplink power, send a third response message to the target terminal according to the third test message, so that when the target terminal receives the third response message, Reduce the target test uplink power to obtain the current test uplink power; and use the current test uplink power as the new target test uplink power, and perform the step of sending the third test message to the routing device with the target test uplink power until no route is received. When the device sends the third response message based on the third test message, the device determines the test uplink power of the last time the third test message was sent as the target uplink power;
接收目标终端发送的第一告知信息,第一告知信息包括目标上行功率。Receive first notification information sent by the target terminal, where the first notification information includes the target uplink power.
示例地,当路由设备与目标终端完成协商路由设备对目标终端发送数据报文的目标下行功率后,可以由目标终端向路由设备进行协商目标终端针对路由设备发送数据报文的目标上行功率。目标测试上行功率可以是预先设定的发射功率,例如可以是在满足法规要求条件下满足射频指标条件下的最大发射功率。在路由设备与目标终端协商上行功率时,若路由设备能够接收到目标终端以目标测试上行功率发送的第三测试报文,表明目标测试上行功率对应的覆盖范围能够覆盖到路由设备所在位置,路由设备可以根据第三测试报文向目标终端发送第三应答报文。For example, after the routing device and the target terminal complete negotiation on the target downlink power of the data packet sent by the routing device to the target terminal, the target terminal may negotiate with the routing device on the target uplink power of the target terminal on the data packet sent by the routing device. The target test uplink power may be a preset transmit power, for example, it may be the maximum transmit power under the condition of meeting regulatory requirements and meeting radio frequency indicators. When the routing device negotiates the uplink power with the target terminal, if the routing device can receive the third test message sent by the target terminal with the target test uplink power, it indicates that the coverage corresponding to the target test uplink power can cover the location of the routing device. The device may send a third response message to the target terminal according to the third test message.
示例地,当路由设备根据第三测试报文向目标终端发送第三应答报文时,目标终端可以降低目标测试上行功率后再向路由设备继续发送测试上行功率,以协商得到目标终端对路由设备最合适的发射功率。在确定目标上行功率后,目标终端可以向路由设备发送第一告知信息,第一告知信息包括目标上行功率,目标终端向路由设备发送第一告知信息时可以以目标终端的最大上行功率发送,也可以以协商出的目标上行功率进行发送。此后,目标终端可以以协商的目标上行功率向路由设备发送数据报文。For example, when the routing device sends the third response message to the target terminal according to the third test message, the target terminal can reduce the target test uplink power and then continue to send the test uplink power to the routing device to negotiate the target terminal's response to the routing device. The most suitable transmit power. After determining the target uplink power, the target terminal can send the first notification information to the routing device. The first notification information includes the target uplink power. When the target terminal sends the first notification information to the routing device, it can send it with the maximum uplink power of the target terminal, or Transmission can be performed at the negotiated target uplink power. Thereafter, the target terminal can send the data packet to the routing device with the negotiated target uplink power.
这里通过上述技术方案,可以让路由设备和目标终端间通过协商得到的目标上行功率进行数据通信,目标上行功率通过降低目标测试上行功率后得到,因此可以实现对目标终端节能的效果。此外,对于像智能门锁这种可能由电池供电的终端,通过上述技术方案,可以在智能门锁与路由设备同处一个房间等场景下提高电池的续航能力,提升用户体验。Here, through the above technical solution, the routing device and the target terminal can perform data communication with the target uplink power obtained through negotiation. The target uplink power is obtained by reducing the target test uplink power, so the energy saving effect on the target terminal can be achieved. In addition, for terminals that may be powered by batteries, such as smart door locks, through the above technical solution, the battery life can be improved and the user experience can be improved in scenarios such as smart door locks and routing devices being in the same room.
作为一种可选的实施例,将上一次发送第一测试报文的测试下行功率确定为目标下行功率之后,方法还包括:As an optional embodiment, after determining the test downlink power of the last time the first test message was sent as the target downlink power, the method further includes:
向目标终端发送第二告知信息,第二告知信息中包括目标下行功率。Send second notification information to the target terminal, where the second notification information includes the target downlink power.
示例地,当目标下行功率确定后,路由设备可以向目标终端发送第二告知信息,以告知目标终端完成下行功率协商,并同步将确定的目标下行发射功率告知目标终端。For example, after the target downlink power is determined, the routing device may send second notification information to the target terminal to notify the target terminal to complete the downlink power negotiation, and synchronously notify the target terminal of the determined target downlink transmission power.
作为一种可选的实施例,方法还包括:As an optional embodiment, the method also includes:
监测向目标终端发送数据报文的下行速率以及待发送给目标终端的数据报文的第一缓存量;Monitor the downlink rate of data packets sent to the target terminal and the first cache amount of data packets to be sent to the target terminal;
当下行速率不满足当前下行通信带宽需求,或第一缓存量在预设时长内持续增长,将目标下行功率恢复为路由设备的最大下行功率。When the downlink rate does not meet the current downlink communication bandwidth demand, or the first cache volume continues to grow within the preset time period, the target downlink power is restored to the maximum downlink power of the routing device.
示例地,在目标下行功率协商成功后,路由设备可以持续监测向目标终端发送数据报文的下行速率以及待发送给目标终端的数据报文的第一缓存量,一旦监测到下行速率不满足当前下行通信带宽需求且第一缓存量在预设时长内持续增长,则认为环境发生变化,不能满足路由设备的下行通信带宽需求,此时可以立即恢复为路由设备的默认的最大下行功率向目标终端发送数据报文。这里,路由设备的最大下行功率可以为当前编码速率对应的默认功率。For example, after the target downlink power negotiation is successful, the routing device can continuously monitor the downlink rate of data packets sent to the target terminal and the first cache amount of data packets to be sent to the target terminal. Once it detects that the downlink rate does not meet the current If the downlink communication bandwidth demand and the first cache amount continue to increase within the preset time period, it is considered that the environment has changed and the downlink communication bandwidth demand of the routing device cannot be met. At this time, the default maximum downlink power of the routing device can be immediately restored to the target terminal. Send data packets. Here, the maximum downlink power of the routing device may be the default power corresponding to the current coding rate.
值得说明的是,下行功率恢复为路由设备的最大下行功率后,可以再次进行下行功率协商,协商出新的合适的目标下行功率。另外,为了避免环境频繁变化带来的路由设备或终端在协商的目标功率和最大下行功率间频繁切换的问题,可以设定切换频次的阈值,当切换频次超过预设阈值后,可以停止下行功率协商,并使用路由设备的最大下行功率向目标终端发送数据报文而不再改变。It is worth noting that after the downlink power returns to the maximum downlink power of the routing device, the downlink power negotiation can be performed again to negotiate a new appropriate target downlink power. In addition, in order to avoid the problem of routing equipment or terminals frequently switching between the negotiated target power and the maximum downlink power caused by frequent changes in the environment, a threshold for switching frequency can be set. When the switching frequency exceeds the preset threshold, the downlink power can be stopped. Negotiate and use the maximum downlink power of the routing device to send data packets to the target terminal without changing it.
作为一种可选的实施例,确定与路由设备关联的目标终端具有支持功率协商的能力,包括:As an optional embodiment, determining that the target terminal associated with the routing device has the ability to support power negotiation includes:
接收目标终端发送的关联请求报文,关联请求报文中包括用于表征目标终端具有支持功率协商的能力的第一标识信息;Receive an association request message sent by the target terminal, where the association request message includes first identification information used to indicate that the target terminal has the ability to support power negotiation;
根据第一标识信息,确定目标终端具有支持功率协商的能力。According to the first identification information, it is determined that the target terminal has the ability to support power negotiation.
示例地,目标终端在使用路由设备的WiFi前,会与路由设备进行关联。路由设备和目标终端在关联过程中,可以互相宣告支持上述的功率协商能力。例如,目标终端可以在关联请求报文中增加Vendor Specific IE(Vendor Specific Information Elements,供应商特定信息要素)标识该目标终端具有支持功率协商的能力,路由设备也可以在关联应答报文中增加Vendor Specific IE标识该路由设备也具有支持功率协商的能力。当路由设备与目标终端的相对位置固定时,信道环境比较稳定,协商的协商功率后受环境波动影响较小。由于路由设备放置位置一般较为固定,因此可以均具有支持功率协商的能力。目标终端如电视、摄像头等终端设备,位置也相对比较固定,因此也可以具有支持功率协商的能力。For example, the target terminal will associate with the routing device before using the WiFi of the routing device. During the association process, the routing device and the target terminal can declare to each other that they support the above-mentioned power negotiation capabilities. For example, the target terminal can add Vendor Specific Information Elements (Vendor Specific Information Elements) in the association request message to identify that the target terminal has the ability to support power negotiation. The routing device can also add Vendor in the association response message. Specific IE indicates that the routing device also has the ability to support power negotiation. When the relative position of the routing device and the target terminal is fixed, the channel environment is relatively stable, and the negotiated power is less affected by environmental fluctuations. Since routing devices are generally placed at fixed locations, they can all have the ability to support power negotiation. Target terminals such as televisions, cameras and other terminal equipment are relatively fixed in location, so they may also have the ability to support power negotiation.
示例地,路由设备在接收目标终端发送的包含第一标识信息的关联请求报文时,还会向目标终端发送包含第二标识信息的关联应答报文,第二标识信息用于表征路由设备具有支持功率协商的能力。For example, when the routing device receives an association request message containing the first identification information sent by the target terminal, it will also send an association response message containing the second identification information to the target terminal. The second identification information is used to represent that the routing device has Ability to support power negotiation.
参见图3,图3是根据一示例性实施例示出的一种功率协商方法的流程图,如图3所示,该功率协商方法应用于目标终端,目标终端具有支持功率协商的能力,该功率协商方法包括以下步骤。Referring to Figure 3, Figure 3 is a flow chart of a power negotiation method according to an exemplary embodiment. As shown in Figure 3, the power negotiation method is applied to a target terminal. The target terminal has the ability to support power negotiation. The power The negotiation method includes the following steps.
在步骤S301中,确定与目标终端关联的路由设备具有支持功率协商的能力;In step S301, it is determined that the routing device associated with the target terminal has the ability to support power negotiation;
在步骤S302中,与路由设备进行功率协商,得到用于与路由设备进行数据传输的目标功率。In step S302, power negotiation is performed with the routing device to obtain the target power used for data transmission with the routing device.
本公开通过路由设备与目标终端进行功率协商,得到用于与目标终端进行数据传输的目标功率,其中,路由设备和目标终端均具有支持功率协商的能力。这样,通过协商得到的目标功率更适合于路由设备和目标终端间的数据传输,进一步可以在保证通信质量的前提下降低数据传输功耗,使得路由设备和目标终端实现节能的效果。In this disclosure, the routing device performs power negotiation with the target terminal to obtain the target power used for data transmission with the target terminal, where both the routing device and the target terminal have the ability to support power negotiation. In this way, the target power obtained through negotiation is more suitable for data transmission between the routing device and the target terminal, which can further reduce data transmission power consumption while ensuring communication quality, so that the routing device and the target terminal can achieve energy saving effects.
作为一种可选的实施例,目标功率包括用于路由设备向目标终端发送数据报文的目标下行功率,与路由设备进行功率协商,得到用于与路由设备进行数据传输的目标功率,包括:As an optional embodiment, the target power includes the target downlink power used by the routing device to send data packets to the target terminal. Power negotiation is performed with the routing device to obtain the target power used for data transmission with the routing device, including:
当接收到路由设备以目标测试下行功率发送的第一测试报文时,根据第一测试报文,向目标终端发送第一应答报文,以使路由设备在接收到第一应答报文时,降低目标测试下行功率,以得到当前测试下行功率,以及将当前测试下行功率作为新的目标测试下行功率,执行以目标测试下行功率向目标终端发送第一测试报文的步骤,直到未接收到路由设备基于第一测试报文所发送的第一应答报文时,将上一次发送第一测试报文的测试下行功率确定为目标下行功率;When receiving the first test message sent by the routing device with the target test downlink power, send the first response message to the target terminal according to the first test message, so that when the routing device receives the first response message, Reduce the target test downlink power to obtain the current test downlink power, and use the current test downlink power as the new target test downlink power, and perform the steps of sending the first test message to the target terminal with the target test downlink power until no route is received. When the device sends the first response message based on the first test message, the device determines the test downlink power of the last time the first test message was sent as the target downlink power;
接收路由设备发送的第二告知信息,第二告知信息包括目标下行功率。Receive second notification information sent by the routing device, where the second notification information includes the target downlink power.
示例地,在路由设备与目标终端协商下行功率时,若目标终端能够接收到路由设备以目标测试下行功率发送的第一测试报文,表明目标测试下行功率对应的覆盖范围能够覆盖到目标终端所在位置,目标终端可以根据第一测试报文向路由设备发送第一应答报文。For example, when the routing device negotiates the downlink power with the target terminal, if the target terminal can receive the first test message sent by the routing device with the target test downlink power, it indicates that the coverage corresponding to the target test downlink power can cover the location of the target terminal. location, the target terminal can send the first response message to the routing device according to the first test message.
示例地,当目标终端根据第一测试报文向路由设备发送第一应答报文时,路由设备可以降低目标测试下行功率后再向目标终端继续发送测试下行功率,以协商出路由设备针对目标终端最合适的发射功率。当路由设备确定出合适的目标下行功率时,可以向目标终端发送第二告知信息,第二告知信息包括目标下行功率。路由设备向目标终端发送第二告知信息时可以以路由设备的最大下行功率发送,也可以以协商出的目标下行功率进行发送。此后,路由设备可以以协商的目标下行功率向目标终端发送数据报文。For example, when the target terminal sends the first response message to the routing device according to the first test message, the routing device can reduce the target test downlink power and then continue to send the test downlink power to the target terminal to negotiate the routing device for the target terminal. The most suitable transmit power. When the routing device determines the appropriate target downlink power, it may send second notification information to the target terminal, where the second notification information includes the target downlink power. When the routing device sends the second notification information to the target terminal, it may send it using the maximum downlink power of the routing device, or it may send it using the negotiated target downlink power. Thereafter, the routing device can send the data packet to the target terminal with the negotiated target downlink power.
本公开通过上述技术方案,可以让路由设备和目标终端间通过协商得到的目标下行功率进行数据通信,目标下行功率通过降低目标测试下行功率后得到,因此可以实现对路由设备节能的效果。Through the above technical solution, the present disclosure allows data communication between the routing device and the target terminal using the target downlink power obtained through negotiation. The target downlink power is obtained by reducing the target test downlink power. Therefore, the energy saving effect of the routing device can be achieved.
作为一种可选的实施例,目标功率包括用于目标终端向路由设备发送数据报文的目标上行功率,与路由设备进行功率协商,得到用于与路由设备进行数据传输的目标功率,包括:As an optional embodiment, the target power includes the target uplink power used by the target terminal to send data packets to the routing device. Power negotiation is performed with the routing device to obtain the target power used for data transmission with the routing device, including:
以目标测试上行功率向目标终端发送第三测试报文;Send the third test message to the target terminal with the target test uplink power;
在接收到目标终端基于第三测试报文发送的第三应答报文时,降低目标测试上行功率,以得到当前测试上行功率;When receiving the third response message sent by the target terminal based on the third test message, reduce the target test uplink power to obtain the current test uplink power;
将当前测试上行功率作为新的目标测试上行功率,执行以目标测试上行功率向目标终端发送第三测试报文的步骤,直到未接收到目标终端基于第三测试报文所发送的第三应答报文时,将上一次发送第三测试报文的测试上行功率确定为目标上行功率。Use the current test uplink power as the new target test uplink power, and perform the step of sending the third test message to the target terminal with the target test uplink power until the third response message sent by the target terminal based on the third test message is not received. When sending the third test message, the test uplink power of the last time the third test message was sent is determined as the target uplink power.
示例地,目标终端与路由设备协商目标上行功率,可以通过目标终端以目标测试上行功率向路由设备发送第三测试报文,当路由设备能够接收到目标终端以目标测试上行功率发送的第三测试报文,表明目标测试上行功率对应的覆盖范围能够覆盖到路由设备所在位置,此时路由设备可以根据第三测试报文向目标终端发送第三应答报文。当路由设备不能接收到目标终端以目标测试上行功率发送的第三测试报文时,表明目标测试上行功率对应的覆盖范围不能覆盖到路由设备所在位置。For example, the target terminal negotiates the target uplink power with the routing device, and the target terminal can send a third test message to the routing device with the target test uplink power. When the routing device can receive the third test message sent by the target terminal with the target test uplink power, message, indicating that the coverage corresponding to the target test uplink power can cover the location of the routing device. At this time, the routing device can send a third response message to the target terminal according to the third test message. When the routing device cannot receive the third test message sent by the target terminal with the target test uplink power, it indicates that the coverage corresponding to the target test uplink power cannot cover the location of the routing device.
示例地,目标测试上行功率可以是预先设定的发射功率,例如可以是在满足法规要求条件下满足射频指标条件下的最大发射功率。目标终端在接收到第三应答报文时,可以降低目标测试上行功率,以得到当前测试上行功率。通过每一次降低测试上行功率,可以不断降低目标终端向路由设备发送第三测试报文的功率。将当前测试上行功率作为新的目标测试上行功率,并以当前测试上行功率向路由设备发送第三测试报文,直到未接收到路由设备基于第三测试报文所发送的第三应答报文时,此时路由设备不能接收到第三测试报文,即目标终端降低后的测试上行功率未覆盖到路由设备所在位置。因此可以将未接收到第三应答报文的上一次发送第三测试报文的测试上行功率确定为目标终端向路由设备发送数据的目标上行功率。在确定目标上行功率后,目标终端可以以协商的目标上行功率向路由设备发送数据报文。For example, the target test uplink power may be a preset transmission power, for example, it may be the maximum transmission power under the condition of meeting regulatory requirements and meeting radio frequency indicators. When receiving the third response message, the target terminal can reduce the target test uplink power to obtain the current test uplink power. By reducing the test uplink power each time, the power of the target terminal sending the third test packet to the routing device can be continuously reduced. Use the current test uplink power as the new target test uplink power, and send the third test message to the routing device with the current test uplink power until the third response message sent by the routing device based on the third test message is not received. , at this time the routing device cannot receive the third test message, that is, the reduced test uplink power of the target terminal does not cover the location of the routing device. Therefore, the test uplink power of the last third test message sent without receiving the third response message can be determined as the target uplink power for the target terminal to send data to the routing device. After determining the target uplink power, the target terminal can send a data packet to the routing device with the negotiated target uplink power.
这里通过上述技术方案,可以让路由设备和目标终端间通过协商得到的目标上行功率进行数据传输,目标上行功率通过降低目标测试上行功率后得到,因此可以实现对目标终端节能的效果。此外,对于像智能门锁这种可能由电池供电的终端,通过上述技术方案,可以在智能门锁与路由设备同处一个房间等场景下提高电池的续航能力,提升用户体验。Here, through the above technical solution, data can be transmitted at the target uplink power obtained through negotiation between the routing device and the target terminal. The target uplink power is obtained by reducing the target test uplink power, so the energy saving effect on the target terminal can be achieved. In addition, for terminals that may be powered by batteries, such as smart door locks, through the above technical solution, the battery life can be improved and the user experience can be improved in scenarios such as smart door locks and routing devices being in the same room.
作为一种可选的实施例,确定与目标终端关联的路由设备具有支持功率协商的能力,包括:As an optional embodiment, determining that the routing device associated with the target terminal has the ability to support power negotiation includes:
向路由设备发送关联请求报文,以使路由设备根据关联请求报文中包含的第一标识信息,向目标终端发送包含第二标识信息的关联应答报文,第一标识信息用于表征目标终端具有支持功率协商的能力,第二标识信息用于表征路由设备具有支持功率协商的能力;Send an association request message to the routing device, so that the routing device sends an association response message containing the second identification information to the target terminal according to the first identification information contained in the association request message. The first identification information is used to characterize the target terminal. Having the ability to support power negotiation, and the second identification information is used to indicate that the routing device has the ability to support power negotiation;
接收路由设备发送的关联应答报文,并根据关联应答报文中的第二标识信息,确定与目标终端关联的路由设备具有支持功率协商的能力。Receive the association response message sent by the routing device, and determine according to the second identification information in the association response message that the routing device associated with the target terminal has the ability to support power negotiation.
作为一种可选的实施例,将上一次发送第三测试报文的测试上行功率确定为目标上行功率之后,方法还包括:As an optional embodiment, after determining the test uplink power of the last time the third test message was sent as the target uplink power, the method further includes:
向路由设备发送第一告知信息,第一告知信息中包括目标上行功率。Send first notification information to the routing device, where the first notification information includes the target uplink power.
示例地,当目标终端确定目标上行功率后,可以向路由设备发送第一告知信息,以告知路由设备完成上行功率协商,并同步将确定的目标上行发射功率告知路由设备。For example, after the target terminal determines the target uplink power, it may send the first notification information to the routing device to notify the routing device to complete the uplink power negotiation, and synchronously notify the routing device of the determined target uplink transmission power.
作为一种可选的实施例,以目标测试上行功率向目标终端发送第三测试报文之前,方法还包括:As an optional embodiment, before sending the third test message to the target terminal with the target test uplink power, the method further includes:
确定向路由设备发送第三测试报文的第二目标编码速率;Determine the second target encoding rate for sending the third test message to the routing device;
根据第二目标编码速率,确定首次向路由设备发送第三测试报文的目标测试下行功率。According to the second target coding rate, determine the target test downlink power for sending the third test message to the routing device for the first time.
示例地,第二目标编码速率可以用于确保目标终端在对应的信道环境下可以以较高的传输速率向路由设备传递数据。这里的功率协商也可以在保障目标终端的通信带宽需求的前提下进行协商,不同终端对通信带宽的需求可以根据终端类别提前由终端自定义。For example, the second target coding rate may be used to ensure that the target terminal can transmit data to the routing device at a higher transmission rate under a corresponding channel environment. The power negotiation here can also be negotiated on the premise of ensuring the communication bandwidth requirements of the target terminal. The communication bandwidth requirements of different terminals can be customized by the terminal in advance according to the terminal type.
作为一种可选的实施例,确定向路由设备发送第三测试报文的第二目标编码速率,包括:As an optional embodiment, determining the second target encoding rate for sending the third test message to the routing device includes:
以第二目标测试编码速率向目标终端发送第四测试报文;Send the fourth test message to the target terminal at the second target test encoding rate;
在未接收到目标终端基于第四测试报文发送的第四应答报文时,降低第二目标测试编码速率,以得到第二当前测试编码速率;When the fourth response message sent by the target terminal based on the fourth test message is not received, reduce the second target test encoding rate to obtain the second current test encoding rate;
将第二当前测试编码速率作为新的第二目标测试编码速率,执行以第二目标测试编码速率向目标终端发送第四测试报文的步骤,直到接收到目标终端基于第四测试报文所发送的第四应答报文时,确定本次发送第四测试报文的测试编码速率是否满足上行通信带宽需求;Use the second current test encoding rate as the new second target test encoding rate, and perform the step of sending the fourth test message to the target terminal at the second target test encoding rate until receiving the fourth test message sent by the target terminal based on the fourth test message. When sending the fourth response message, determine whether the test encoding rate of the fourth test message sent this time meets the uplink communication bandwidth requirements;
将满足上行通信带宽需求的测试编码速率确定为第二目标编码速率。The test encoding rate that meets the uplink communication bandwidth requirement is determined as the second target encoding rate.
示例地,当路由设备与目标终端完成协商路由设备对目标终端发送数据报文的目标下行功率后,可以由目标终端向路由设备进行协商目标终端针对路由设备发送数据报文的目标上行功率。类似地,目标终端与路由设备协商目标上行功率,可以通过目标终端以目标测试上行功率向路由设备发送第三测试报文,当路由设备能够接收到目标终端以目标测试上行功率发送的第三测试报文,表明目标测试上行功率对应的覆盖范围能够覆盖到路由设备所在位置,此时路由设备可以根据第三测试报文向目标终端发送第三应答报文。当路由设备不能接收到目标终端以目标测试上行功率发送的第三测试报文时,表明目标测试上行功率对应的覆盖范围不能覆盖到路由设备所在位置。For example, after the routing device and the target terminal complete negotiation on the target downlink power of the data packet sent by the routing device to the target terminal, the target terminal may negotiate with the routing device on the target uplink power of the target terminal on the data packet sent by the routing device. Similarly, the target terminal negotiates the target uplink power with the routing device, and can send the third test message to the routing device through the target terminal with the target test uplink power. When the routing device can receive the third test message sent by the target terminal with the target test uplink power, message, indicating that the coverage corresponding to the target test uplink power can cover the location of the routing device. At this time, the routing device can send a third response message to the target terminal according to the third test message. When the routing device cannot receive the third test message sent by the target terminal with the target test uplink power, it indicates that the coverage corresponding to the target test uplink power cannot cover the location of the routing device.
示例地,目标终端在接收到第三应答报文时,可以降低目标测试上行功率,以得到当前测试上行功率。通过每一次降低测试上行功率,可以不断降低目标终端向路由设备发送第三测试报文的功率。将当前测试上行功率作为新的目标测试上行功率,并以当前测试上行功率向路由设备发送第三测试报文,直到未接收到路由设备基于第三测试报文所发送的第三应答报文时,此时路由设备不能接收到第三测试报文,即目标终端降低后的测试上行功率未覆盖到目标终端所在位置。因此可以将未接收到第三应答报文的上一次发送第三测试报文的测试上行功率确定为目标终端的目标上行功率。在确定目标上行功率后,目标终端可以以协商的目标上行功率向路由设备发送数据报文。For example, when receiving the third response message, the target terminal can reduce the target test uplink power to obtain the current test uplink power. By reducing the test uplink power each time, the power of the target terminal sending the third test packet to the routing device can be continuously reduced. Use the current test uplink power as the new target test uplink power, and send the third test message to the routing device with the current test uplink power until the third response message sent by the routing device based on the third test message is not received. , at this time the routing device cannot receive the third test message, that is, the reduced test uplink power of the target terminal does not cover the location of the target terminal. Therefore, the test uplink power of the last time the third test message was sent without receiving the third response message can be determined as the target uplink power of the target terminal. After determining the target uplink power, the target terminal can send a data packet to the routing device with the negotiated target uplink power.
这里通过上述技术方案,可以让路由设备和目标终端间通过协商得到的目标上行功率进行数据通信,目标上行功率通过降低目标测试上行功率后得到,因此可以实现对目标终端节能的效果。此外,对于像智能门锁这种可能由电池供电的终端,通过上述技术方案,可以在智能门锁与路由设备同处一个房间等场景下提高电池的续航能力,提升用户体验。Here, through the above technical solution, the routing device and the target terminal can perform data communication with the target uplink power obtained through negotiation. The target uplink power is obtained by reducing the target test uplink power, so the energy saving effect on the target terminal can be achieved. In addition, for terminals that may be powered by batteries, such as smart door locks, through the above technical solution, the battery life can be improved and the user experience can be improved in scenarios such as smart door locks and routing devices being in the same room.
作为一种可选的实施例,方法还包括:As an optional embodiment, the method also includes:
监测向路由设备发送数据报文的上行速率以及待发送给路由设备的数据报文的第二缓存量;Monitor the uplink rate of data packets sent to the routing device and the second cache amount of data packets to be sent to the routing device;
当上行速率不满足当前上行通信带宽需求,或第二缓存量在预设时长内持续增长,将目标上行功率恢复为目标终端的最大上行功率。When the uplink rate does not meet the current uplink communication bandwidth requirement, or the second cache amount continues to grow within a preset time period, the target uplink power is restored to the maximum uplink power of the target terminal.
示例地,在目标上行功率协商成功后,目标终端可以持续监测向目标终端发送数据报文的上行速率以及待发送给路由设备的数据报文的第二缓存量,一旦监测到上行速率不满足当前上行通信带宽需求且第二缓存量在预设时长内持续增长,则认为环境发生变化,不能满足目标终端的上行通信带宽需求,此时可以立即恢复为目标终端的最大上行功率向路由设备发送数据报文。这里目标终端的最大上行功率为当前编码速率对应的默认功率。For example, after the target uplink power negotiation is successful, the target terminal can continuously monitor the uplink rate of data packets sent to the target terminal and the second cache amount of data packets to be sent to the routing device. Once it is detected that the uplink rate does not meet the current If the uplink communication bandwidth requirement is required and the second cache amount continues to grow within the preset time period, it is considered that the environment has changed and the uplink communication bandwidth requirement of the target terminal cannot be met. At this time, data can be immediately restored to the maximum uplink power of the target terminal to send data to the routing device. message. Here, the maximum uplink power of the target terminal is the default power corresponding to the current coding rate.
值得说明的是,上行功率恢复为目标终端的最大上行功率后,可以再次执行上述上行功率协商的方法,协商出新的合适的目标上行功率。另外,为了避免环境频繁变化带来的终端在协商的目标功率和最大上行功率间频繁切换的问题,可以设定切换频次的阈值,当切换频次超过预设阈值后,可以停止上行功率协商,并使用最大上行功率向路由设备发送数据报文而不再改变。It is worth noting that after the uplink power is restored to the maximum uplink power of the target terminal, the above-mentioned uplink power negotiation method can be performed again to negotiate a new appropriate target uplink power. In addition, in order to avoid the problem of terminals frequently switching between the negotiated target power and the maximum uplink power caused by frequent changes in the environment, a threshold for switching frequency can be set. When the switching frequency exceeds the preset threshold, the uplink power negotiation can be stopped and Use the maximum uplink power to send data packets to the routing device without changing it.
值得说明的是,上行功率协商和下行功率协商可以仅执行一个,或者都执行。上行功率协商和下行功率协商之间不相互影响。上行功率协商和下行功率协商的顺序不限定,但为了保证路由设备的WiFi可以供目标终端使用,可以先执行上行功率协商再执行下行功率协商。It is worth noting that only one of the uplink power negotiation and the downlink power negotiation can be performed, or both of them can be performed. Uplink power negotiation and downlink power negotiation do not affect each other. The order of uplink power negotiation and downlink power negotiation is not limited, but in order to ensure that the WiFi of the routing device can be used by the target terminal, the uplink power negotiation can be performed first and then the downlink power negotiation can be performed.
作为一种示例性的实施例,参照图4-6,根据一示例性实施例示出了一种功率协商方法,使路由设备和终端间能基于终端对数据通信带宽需求协商出合适的发送功率。As an exemplary embodiment, referring to Figures 4-6, a power negotiation method is shown according to an exemplary embodiment, so that the routing device and the terminal can negotiate appropriate transmit power based on the terminal's data communication bandwidth requirements.
其中,AP(Access Point,无线接入点)在这里可以表示路由设备,STA(Station,在通信中指一个通信系统中的终端设备)可以表示目标终端。即在AP和STA关联过程中,可以互相宣告自身具有支持功率协商的能力。当AP与STA的相对位置固定时,信道环境比较稳定,协商的协商功率后受环境波动影响较小。由于路由设备放置的位置较为固定,因此可以宣告具有支持功率协商的能力。如电视、摄像头等终端设备,位置也比较固定,因此也可以宣称具有支持功率协商的能力。例如,可以在STA向AP发送的关联请求报文中添加VendorSpecific IE标识具有支持功率协商的能力,AP在向STA发送的关联应答报文中添加VendorSpecific IE标识具有支持功率协商的能力。Among them, AP (Access Point, wireless access point) here can represent the routing device, and STA (Station, in communication, refers to a terminal device in a communication system) can represent the target terminal. That is, during the association process, the AP and STA can declare to each other that they have the ability to support power negotiation. When the relative position of the AP and STA is fixed, the channel environment is relatively stable, and the negotiated power is less affected by environmental fluctuations. Since the routing device is placed at a relatively fixed location, it can declare its ability to support power negotiation. Terminal devices such as TVs and cameras have relatively fixed positions, so they can also claim to have the ability to support power negotiation. For example, the VendorSpecific IE identifier can be added to the association request message sent by the STA to the AP to support power negotiation, and the AP can add the VendorSpecific IE identifier to the association response message sent to the STA to support power negotiation.
当AP和STA互相宣告具有支持功率协商的能力并完成关联后,AP或STA即可开始发起下行功率协商或上行功率协商。参见图4和图5,下行功率协商是协商AP的合适的发射功率,由AP端发起。其中,AP端可以以最大编码速率A对应的默认功率a向STA发送测量报文,如果发送失败,即未收到STA的应答报文,AP可以降低编码速率,通过降低后的编码速率B对应的默认功率b向STA发送测量报文,直到收到STA的应答报文。若在最大编码速率A对应的默认功率a下能收到STA的应答报文,则可以以最大编码速率A对应的默认功率a进行后续的下行功率协商过程。这里,最大编码速率A大于编码速率B,默认功率a小于默认功率b。另外,STA收到AP发送的测量报文后,可以通过STA判断此编码速率下的通信带宽是否可满足下行通信带宽需求,如果不满足,则STA向AP发送测量应答报文告知不满足通信带宽需求,停止后续的下行功率协商。此后AP以最大发射功率向此STA发送数据;如果上述编码速率的通信带宽满足要求,STA向AP发送测量应答报文,告知AP当前编码速率满足下行通信带宽要求。When the AP and STA declare to each other that they have the ability to support power negotiation and complete the association, the AP or STA can start to initiate downlink power negotiation or uplink power negotiation. Referring to Figure 4 and Figure 5, downlink power negotiation is to negotiate the appropriate transmit power of the AP and is initiated by the AP. Among them, the AP can send measurement packets to the STA at the default power a corresponding to the maximum coding rate A. If the transmission fails, that is, no response packet from the STA is received, the AP can reduce the coding rate and use the reduced coding rate B corresponding to The default power b is used to send measurement packets to the STA until a response packet from the STA is received. If the STA's response message can be received at the default power a corresponding to the maximum coding rate A, the subsequent downlink power negotiation process can be performed at the default power a corresponding to the maximum coding rate A. Here, the maximum coding rate A is greater than the coding rate B, and the default power a is smaller than the default power b. In addition, after receiving the measurement message sent by the AP, the STA can determine whether the communication bandwidth at this coding rate can meet the downlink communication bandwidth requirements. If not, the STA sends a measurement response message to the AP to inform that the communication bandwidth is not met. demand, stop subsequent downlink power negotiation. Afterwards, the AP sends data to the STA at the maximum transmit power; if the communication bandwidth of the above coding rate meets the requirements, the STA sends a measurement response message to the AP to inform the AP that the current coding rate meets the downlink communication bandwidth requirements.
其中,根据MCS(Modulation and Coding Scheme,调制与编码策略)中射频速率配置的不同,每一个MCS索引对应了一组参数下的物理传输速率。例如,最大编码速率A可以为MCS7对应的最大传输速率,例如可以为135.0Mb/s-150.0Mb/s,编码速率B可以处于MCS0至MCS6之间,例如可以为13.5Mb/s-135.0Mb/s。编码速率A对应的默认功率可以为9dbm,编码速率B对应的默认功率可以为7dbm。这里的编码速率的数据和默认功率的数据仅为示例,不作为对本实施例的限制。Among them, according to the different radio frequency rate configurations in MCS (Modulation and Coding Scheme), each MCS index corresponds to the physical transmission rate under a set of parameters. For example, the maximum coding rate A can be the maximum transmission rate corresponding to MCS7, for example, it can be 135.0Mb/s-150.0Mb/s, and the coding rate B can be between MCS0 and MCS6, for example, it can be 13.5Mb/s-135.0Mb/ s. The default power corresponding to coding rate A can be 9dbm, and the default power corresponding to coding rate B can be 7dbm. The coding rate data and default power data here are only examples and are not intended to limit this embodiment.
以图5所示的下行功率协商流程为例,在确定编码速率B满足STA的通信带宽需求后,AP可以将编码速率B对应的默认功率b以设定功率依次步进调低功率,并以调低的测试下行功率发送测量报文,测量报文以固定的编码速率B进行编码。STA收到测量报文后发送应答报文应答AP,当测试下行功率调整到第H次步进后,首次出现AP未收到STA的测量应答,则认为第H次步进对应的测试下行功率无法满足下行通信带宽需求,可以将H-1次步进对应的测试下行功率确定为协商后的目标下行功率,其中,H为大于1的正整数。当确定目标下行功率后,AP向STA告知完成下行功率协商,并同步将确定的目标下行功率告知STA,STA应答AP后完成整个下行功率协商的过程。Taking the downlink power negotiation process shown in Figure 5 as an example, after determining that the coding rate B meets the communication bandwidth requirements of the STA, the AP can gradually lower the default power b corresponding to the coding rate B by the set power, and The test downlink power is reduced to send measurement packets, and the measurement packets are encoded at a fixed encoding rate B. After receiving the measurement message, the STA sends a response message to the AP. When the test downlink power is adjusted to the H-th step, and the AP does not receive the STA's measurement response for the first time, it is considered that the test downlink power corresponding to the H-th step is If the downlink communication bandwidth requirement cannot be met, the test downlink power corresponding to H-1 steps can be determined as the negotiated target downlink power, where H is a positive integer greater than 1. After determining the target downlink power, the AP notifies the STA of the completion of the downlink power negotiation and synchronously informs the STA of the determined target downlink power. The STA completes the entire downlink power negotiation process after responding to the AP.
参见图4和图6,上行功率协商是协商STA的合适的发射功率,由STA端发起。其中,STA端可以以最大编码速率M对应的默认功率m向AP发送测量报文,如果发送失败,即未收到AP的应答报文,则降低编码速率,通过降低后的编码速率N对应的默认功率n向AP发送测量报文,直到收到AP的应答报文,若在最大编码速率M对应的默认功率m下能收到AP的应答报文,则可以以最大编码速率M对应的默认功率m进行后续的上行功率协商过程。这里,最大编码速率M大于编码速率N,默认功率m小于默认功率n。另外,STA收到AP发送的应答报文后,可以通过STA评估发送成功的上行编码速率是否满足上行通信带宽需求,如果不满足则STA停止上行功率协商,并以STA的最大发射功率对AP传输数据。如果满足则以该编码速率对应的默认功率继续进行上行功率协商。Referring to Figure 4 and Figure 6, uplink power negotiation is to negotiate the appropriate transmit power of the STA and is initiated by the STA. Among them, the STA can send measurement packets to the AP at the default power m corresponding to the maximum coding rate M. If the transmission fails, that is, no response packet from the AP is received, the coding rate is reduced, and the coding rate corresponding to the reduced coding rate N is used. The default power n sends measurement packets to the AP until a response packet is received from the AP. If the AP's response packet can be received at the default power m corresponding to the maximum coding rate M, the default power m corresponding to the maximum coding rate M can be received. Power m carries out the subsequent uplink power negotiation process. Here, the maximum coding rate M is greater than the coding rate N, and the default power m is smaller than the default power n. In addition, after receiving the response message sent by the AP, the STA can evaluate whether the successfully sent uplink coding rate meets the uplink communication bandwidth requirements. If not, the STA stops uplink power negotiation and transmits to the AP with the STA's maximum transmit power. data. If satisfied, the uplink power negotiation continues with the default power corresponding to the coding rate.
其中,根据MCS中射频速率配置的不同,最大编码速率M可以为MCS7对应的最大传输速率,例如可以为65.0Mb/s-72.2Mb/s,编码速率N可以处于MCS0至MCS6之间,例如可以为6.5Mb/s-65.0Mb/s。编码速率M对应的默认功率m可以为21dbm,编码速率N对应的默认功率n可以为17dbm。这里的编码速率的数据和默认功率的数据也仅为示例,不作为对本实施例的限制。Among them, according to the different radio frequency rate configurations in MCS, the maximum coding rate M can be the maximum transmission rate corresponding to MCS7, for example, it can be 65.0Mb/s-72.2Mb/s, and the coding rate N can be between MCS0 and MCS6, for example is 6.5Mb/s-65.0Mb/s. The default power m corresponding to the coding rate M may be 21dbm, and the default power n corresponding to the coding rate N may be 17dbm. The coding rate data and default power data here are only examples and are not intended to limit this embodiment.
以图6所示的上行功率协商流程图为例,在确定编码速率N满足STA的通信带宽需求后,STA可以将编码速率N对应的默认功率n以设定的功率依次步进调低功率,并以调低的功率向AP发送测量报文,测量报文以固定的编码速率N进行编码,AP收到测量报文后发送应答报文应答STA。当测试上行功率调整到第K次步进后,首次出现STA未收到AP的测量应答时,则认为第K次步进对应的测试上行功率无法满足上行通信带宽需求,可以将第K-1次步进对应的测试上行功率确定为协商后的目标上行功率,其中,K为大于1的正整数。在确定目标上行功率后,STA向AP告知完成上行功率协商,并同步将确定的目标上行功率告知AP。Taking the uplink power negotiation flow chart shown in Figure 6 as an example, after determining that the coding rate N meets the communication bandwidth requirements of the STA, the STA can gradually lower the power n corresponding to the coding rate N by the set power. The measurement packet is sent to the AP with reduced power. The measurement packet is encoded at a fixed encoding rate N. After receiving the measurement packet, the AP sends a response packet to respond to the STA. When the test uplink power is adjusted to the K-th step and the STA does not receive the measurement response from the AP for the first time, it is considered that the test uplink power corresponding to the K-th step cannot meet the uplink communication bandwidth requirements, and the K-1 The test uplink power corresponding to the sub-step is determined as the negotiated target uplink power, where K is a positive integer greater than 1. After determining the target uplink power, the STA notifies the AP of the completion of the uplink power negotiation, and synchronously notifies the AP of the determined target uplink power.
在完成上行功率协商后,AP可以以协商的目标下行功率向此STA发送数据;完成下行功率协商后,STA可以以协商的目标上行功率向此AP发送数据。After completing the uplink power negotiation, the AP can send data to the STA at the negotiated target downlink power; after completing the downlink power negotiation, the STA can send data to the AP at the negotiated target uplink power.
在功率协商成功后,AP持续监测下行速率以及发送给此STA的数据报文的缓存量,一旦监测到下行速率无法保障下行通信带宽需求和/或数据缓存量持续增长,则认为环境发生变化影响到了STA的下行通信带宽保障,AP可以立即恢复为当前AP确定的编码速率下对应的默认下行功率向STA发送数据;类似地,STA也需要持续监测上行速率以及发送给此AP的数据报文的缓存量,一旦监测到上行速率无法保障上行通信带宽需求和/或数据缓存量持续增长,则STA可以立即恢复为当前STA确定的编码速率下对应的默认上行功率向AP发送数据。After the power negotiation is successful, the AP continues to monitor the downlink rate and the cache amount of data packets sent to this STA. Once it detects that the downlink rate cannot meet the downlink communication bandwidth requirements and/or the data cache amount continues to grow, it is considered that the environment has changed. When the STA's downlink communication bandwidth is guaranteed, the AP can immediately resume sending data to the STA at the default downlink power corresponding to the encoding rate determined by the current AP; similarly, the STA also needs to continuously monitor the uplink rate and the data packets sent to the AP. Cache amount, once it is detected that the uplink rate cannot meet the uplink communication bandwidth requirement and/or the data cache amount continues to grow, the STA can immediately resume sending data to the AP at the corresponding default uplink power at the coding rate determined by the current STA.
当上行功率或下行功率恢复为当前编码速率下对应的默认功率后,可以再次进行上行功率或下行功率的协商,协商出新的合适的功率。另外,为了避免环境频繁变化使得AP或STA在协商功率和默认功率间频繁切换的问题,可以设定切换频次的阈值,当切换频次超过设定阈值后,应停止上述功率协商流程并使用固定的最大功率。After the uplink power or downlink power is restored to the default power corresponding to the current coding rate, the uplink power or downlink power can be negotiated again to negotiate a new appropriate power. In addition, in order to avoid the problem of frequent changes in the environment that cause the AP or STA to frequently switch between the negotiated power and the default power, you can set a threshold for switching frequency. When the switching frequency exceeds the set threshold, the above power negotiation process should be stopped and a fixed power negotiation process should be used. Maximum power.
参照图7,图7是根据一示例性实施例示出的一种功率协商装置的框图。如图7所示,该功率协商装置应用于路由设备,路由设备具有支持功率协商的能力,包括:Referring to Figure 7, Figure 7 is a block diagram of a power negotiation device according to an exemplary embodiment. As shown in Figure 7, the power negotiation device is applied to routing equipment. The routing equipment has the ability to support power negotiation, including:
第一确定模块701,被配置为确定与所述路由设备关联的目标终端具有支持功率协商的能力;The first determining module 701 is configured to determine that the target terminal associated with the routing device has the ability to support power negotiation;
第一协商模块702,被配置为与所述目标终端进行功率协商,得到用于与所述目标终端进行数据传输的目标功率。The first negotiation module 702 is configured to perform power negotiation with the target terminal to obtain the target power used for data transmission with the target terminal.
作为一种可选的实施例,目标功率包括用于路由设备向目标终端发送数据报文的目标下行功率,第一协商模块702包括:As an optional embodiment, the target power includes the target downlink power used by the routing device to send data packets to the target terminal. The first negotiation module 702 includes:
第一发送模块,被配置为以目标测试下行功率向目标终端发送第一测试报文;The first sending module is configured to send the first test message to the target terminal with the target test downlink power;
第一降低模块,被配置为在接收到目标终端基于第一测试报文发送的第一应答报文时,降低目标测试下行功率,以得到当前测试下行功率;The first reduction module is configured to, when receiving the first response message sent by the target terminal based on the first test message, reduce the target test downlink power to obtain the current test downlink power;
第一功率确定模块,被配置为将当前测试下行功率作为新的目标测试下行功率,执行以目标测试下行功率向目标终端发送第一测试报文的步骤,直到未接收到目标终端基于第一测试报文所发送的第一应答报文时,将上一次发送第一测试报文的测试下行功率确定为目标下行功率。The first power determination module is configured to use the current test downlink power as the new target test downlink power, and perform the step of sending the first test message to the target terminal with the target test downlink power until the target terminal does not receive the first test message based on the first test. When the first response message is sent, the test downlink power of the last time the first test message was sent is determined as the target downlink power.
作为一种可选的实施例,该功率协商装置包括:As an optional embodiment, the power negotiation device includes:
第一编码速率确定模块,被配置为确定向目标终端发送第一测试报文的第一目标编码速率;A first coding rate determination module configured to determine a first target coding rate for sending a first test message to the target terminal;
测试下行功率确定模块,被配置为根据第一目标编码速率,确定首次向目标终端发送第一测试报文的目标测试下行功率。The test downlink power determination module is configured to determine the target test downlink power for sending the first test message to the target terminal for the first time according to the first target encoding rate.
作为一种可选的实施例,第一编码速率确定模块具体还被配置为:As an optional embodiment, the first coding rate determination module is specifically configured to:
以第一目标测试编码速率向目标终端发送第二测试报文;Send the second test message to the target terminal at the first target test encoding rate;
在未接收到目标终端基于第二测试报文发送的第二应答报文时,降低第一目标测试编码速率,以得到第一当前测试编码速率;When the second response message sent by the target terminal based on the second test message is not received, reduce the first target test encoding rate to obtain the first current test encoding rate;
将第一当前测试编码速率作为新的第一目标测试编码速率,执行以第一目标测试编码速率向目标终端发送第二测试报文的步骤,直到接收到目标终端基于第二测试报文所发送的第二应答报文、且第二应答报文中包括用于表征当前测试编码速率满足下行通信带宽需求的目标信息时,将本次发送第二测试报文的测试编码速率确定为第一目标编码速率。Use the first current test encoding rate as the new first target test encoding rate, and perform the step of sending the second test message to the target terminal at the first target test encoding rate until receiving the second test message sent by the target terminal based on the second test message. When the second response message is sent, and the second response message includes target information used to indicate that the current test encoding rate meets the downlink communication bandwidth requirements, the test encoding rate for sending the second test message this time is determined as the first target. Encoding rate.
作为一种可选的实施例,目标功率包括用于目标终端向路由设备发送数据报文的目标上行功率,第一协商模块702包括:As an optional embodiment, the target power includes the target uplink power used by the target terminal to send data packets to the routing device. The first negotiation module 702 includes:
第一应答模块,被配置为当接收到目标终端以目标测试上行功率发送的第三测试报文时,根据第三测试报文,向目标终端发送第三应答报文,以使目标终端在接收到第三应答报文时,降低目标测试上行功率,以得到当前测试上行功率;以及将当前测试上行功率作为新的目标测试上行功率,执行以目标测试上行功率向路由设备发送第三测试报文的步骤,直到未接收到路由设备基于第三测试报文所发送的第三应答报文时,将上一次发送第三测试报文的测试上行功率确定为目标上行功率;The first response module is configured to, when receiving the third test message sent by the target terminal with the target test uplink power, send a third response message to the target terminal according to the third test message, so that the target terminal receives When the third response message is received, the target test uplink power is reduced to obtain the current test uplink power; and the current test uplink power is used as the new target test uplink power, and the third test message is sent to the routing device with the target test uplink power. Steps, until the third response message sent by the routing device based on the third test message is not received, determine the test uplink power of the last time the third test message was sent as the target uplink power;
第一接收模块,被配置为接收目标终端发送的第一告知信息,第一告知信息包括目标上行功率。The first receiving module is configured to receive first notification information sent by the target terminal, where the first notification information includes the target uplink power.
作为一种可选的实施例,该功率协商装置具体还被配置为:As an optional embodiment, the power negotiation device is specifically configured to:
向目标终端发送第二告知信息,第二告知信息中包括目标下行功率。Send second notification information to the target terminal, where the second notification information includes the target downlink power.
作为一种可选的实施例,该功率协商装置具体还被配置为:As an optional embodiment, the power negotiation device is specifically configured to:
监测向目标终端发送数据报文的下行速率以及待发送给目标终端的数据报文的第一缓存量;Monitor the downlink rate of data packets sent to the target terminal and the first cache amount of data packets to be sent to the target terminal;
当下行速率不满足当前下行通信带宽需求,或第一缓存量在预设时长内持续增长,将目标下行功率恢复为路由设备的最大下行功率。When the downlink rate does not meet the current downlink communication bandwidth demand, or the first cache volume continues to grow within the preset time period, the target downlink power is restored to the maximum downlink power of the routing device.
作为一种可选的实施例,该第一确定模块701具体还被配置为:As an optional embodiment, the first determination module 701 is specifically configured to:
接收目标终端发送的关联请求报文,关联请求报文中包括用于表征目标终端具有支持功率协商的能力的第一标识信息;Receive an association request message sent by the target terminal, where the association request message includes first identification information used to indicate that the target terminal has the ability to support power negotiation;
根据第一标识信息,确定目标终端具有支持功率协商的能力。According to the first identification information, it is determined that the target terminal has the ability to support power negotiation.
关于上述实施例中应用于路由设备的功率协商装置,其中各个模块执行操作的具体方式已经在有关该应用于路由设备的功率协商方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the power negotiation device applied to routing equipment in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment related to the power negotiation method applied to routing equipment, and will not be elaborated here. illustrate.
参照图8,图8是根据一示例性实施例示出的一种功率协商装置的框图。如图8所示,该功率协商装置应用于目标终端,目标终端具有支持功率协商的能力,包括:Referring to Figure 8, Figure 8 is a block diagram of a power negotiation device according to an exemplary embodiment. As shown in Figure 8, the power negotiation device is applied to the target terminal. The target terminal has the ability to support power negotiation, including:
第二确定模块801,被配置为确定与所述目标终端关联的路由设备具有支持功率协商的能力;The second determination module 801 is configured to determine that the routing device associated with the target terminal has the ability to support power negotiation;
第二协商模块802,被配置为与路由设备进行功率协商,得到用于与所述路由设备进行数据传输的目标功率。The second negotiation module 802 is configured to perform power negotiation with the routing device to obtain the target power used for data transmission with the routing device.
作为一种可选的实施例,目标功率包括用于路由设备向目标终端发送数据报文的目标下行功率,第二协商模块802包括:As an optional embodiment, the target power includes the target downlink power used by the routing device to send data packets to the target terminal, and the second negotiation module 802 includes:
第二应答模块,被配置为当接收到路由设备以目标测试下行功率发送的第一测试报文时,根据第一测试报文,向目标终端发送第一应答报文,以使路由设备在接收到第一应答报文时,降低目标测试下行功率,以得到当前测试下行功率,以及将当前测试下行功率作为新的目标测试下行功率,执行以目标测试下行功率向目标终端发送第一测试报文的步骤,直到未接收到路由设备基于第一测试报文所发送的第一应答报文时,将上一次发送第一测试报文的测试下行功率确定为目标下行功率;The second response module is configured to, when receiving the first test message sent by the routing device with the target test downlink power, send the first response message to the target terminal according to the first test message, so that the routing device receives the first response message. When the first response message is received, the target test downlink power is reduced to obtain the current test downlink power, and the current test downlink power is used as the new target test downlink power, and the first test message is sent to the target terminal with the target test downlink power. The step of: until the first response message sent by the routing device based on the first test message is not received, determine the test downlink power of the last time the first test message was sent as the target downlink power;
第二接收模块,被配置为接收路由设备发送的第二告知信息,第二告知信息包括目标下行功率。The second receiving module is configured to receive second notification information sent by the routing device, where the second notification information includes the target downlink power.
作为一种可选的实施例,所述目标功率包括用于所述目标终端向所述路由设备发送数据报文的目标上行功率,第二协商模块802包括:As an optional embodiment, the target power includes the target uplink power used by the target terminal to send data packets to the routing device, and the second negotiation module 802 includes:
第二发送模块,被配置为以目标测试上行功率向目标终端发送第三测试报文;The second sending module is configured to send the third test message to the target terminal with the target test uplink power;
第二降低模块,被配置为在接收到目标终端基于第三测试报文发送的第三应答报文时,降低目标测试上行功率,以得到当前测试上行功率;The second reduction module is configured to, when receiving the third response message sent by the target terminal based on the third test message, reduce the target test uplink power to obtain the current test uplink power;
第二功率确定模块,被配置为将当前测试上行功率作为新的目标测试上行功率,执行以目标测试上行功率向目标终端发送第三测试报文的步骤,直到未接收到目标终端基于第三测试报文所发送的第三应答报文时,将上一次发送第三测试报文的测试上行功率确定为目标上行功率。The second power determination module is configured to use the current test uplink power as the new target test uplink power, and perform the step of sending the third test message to the target terminal with the target test uplink power until the target terminal does not receive the third test message based on the third test. When the third response message is sent by the test message, the test uplink power of the last time the third test message was sent is determined as the target uplink power.
作为一种可选的实施例,该功率协商装置还包括:As an optional embodiment, the power negotiation device also includes:
第二编码速率确定模块,被配置为确定向路由设备发送第三测试报文的第二目标编码速率;A second coding rate determination module configured to determine a second target coding rate for sending the third test message to the routing device;
测试下行功率确定模块,被配置为根据第二目标编码速率,确定首次向路由设备发送第三测试报文的目标测试下行功率。The test downlink power determination module is configured to determine the target test downlink power for sending the third test message to the routing device for the first time according to the second target encoding rate.
作为一种可选的实施例,该第二编码速率确定模块具体还被配置为:As an optional embodiment, the second coding rate determination module is specifically configured to:
以第二目标测试编码速率向目标终端发送第四测试报文;Send the fourth test message to the target terminal at the second target test encoding rate;
在未接收到目标终端基于第四测试报文发送的第四应答报文时,降低第二目标测试编码速率,以得到第二当前测试编码速率;When the fourth response message sent by the target terminal based on the fourth test message is not received, reduce the second target test encoding rate to obtain the second current test encoding rate;
将第二当前测试编码速率作为新的第二目标测试编码速率,执行以第二目标测试编码速率向目标终端发送第四测试报文的步骤,直到接收到目标终端基于第四测试报文所发送的第四应答报文时,确定本次发送第四测试报文的测试编码速率是否满足上行通信带宽需求;Use the second current test encoding rate as the new second target test encoding rate, and perform the step of sending the fourth test message to the target terminal at the second target test encoding rate until receiving the fourth test message sent by the target terminal based on the fourth test message. When sending the fourth response message, determine whether the test encoding rate of the fourth test message sent this time meets the uplink communication bandwidth requirements;
将满足上行通信带宽需求的测试编码速率确定为第二目标编码速率。The test encoding rate that meets the uplink communication bandwidth requirement is determined as the second target encoding rate.
作为一种可选的实施例,该功率协商装置具体还被配置为:As an optional embodiment, the power negotiation device is specifically configured to:
监测向路由设备发送数据报文的上行速率以及待发送给路由设备的数据报文的第二缓存量;Monitor the uplink rate of data packets sent to the routing device and the second cache amount of data packets to be sent to the routing device;
当上行速率不满足当前上行通信带宽需求,或第二缓存量在预设时长内持续增长,将目标上行功率恢复为目标终端的最大上行功率。When the uplink rate does not meet the current uplink communication bandwidth requirement, or the second cache amount continues to grow within a preset time period, the target uplink power is restored to the maximum uplink power of the target terminal.
关于上述实施例中应用于目标终端的功率协商装置,其中各个模块执行操作的具体方式已经在有关该应用于目标终端的功率协商方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the power negotiation device applied to the target terminal in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment related to the power negotiation method applied to the target terminal, and will not be elaborated here. illustrate.
本公开还提供一种功率协商系统,包括本公开提供的应用于路由设备的功率协商装置以及本公开提供的应用于目标终端的功率协商装置。The present disclosure also provides a power negotiation system, including the power negotiation device provided by the present disclosure and applied to a routing device and the power negotiation device provided by the present disclosure and applied to a target terminal.
本公开还提供一种计算机存储介质,其上存储有计算机程序,该程序被处理装置执行时实现本公开提供的应用于路由设备的功率协商方法或者本公开提供的应用于目标终端的功率协商方法。The present disclosure also provides a computer storage medium on which a computer program is stored. When the program is executed by a processing device, the power negotiation method applied to a routing device or the power negotiation method provided by the disclosure applied to a target terminal is implemented. .
本公开还提供一种路由设备,包括:The present disclosure also provides a routing device, including:
存储装置,其上存储有计算机程序;a storage device having a computer program stored thereon;
处理装置,用于执行所述存储装置中的所述计算机程序,以实现本公开提供的应用于路由设备的功率协商方法。A processing device, configured to execute the computer program in the storage device to implement the power negotiation method applied to routing equipment provided by the present disclosure.
本公开还提供一种终端,包括:The present disclosure also provides a terminal, including:
存储装置,其上存储有计算机程序;a storage device having a computer program stored thereon;
处理装置,用于执行所述存储装置中的所述计算机程序,以实现本公开提供的应用于目标终端的功率协商方法。A processing device, configured to execute the computer program in the storage device to implement the power negotiation method provided by the present disclosure and applied to the target terminal.
本领域技术人员在考虑说明书及实践本公开后,将容易想到本公开的其它实施方案。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the disclosure. The present disclosure is intended to cover any variations, uses, or adaptations of the disclosure that follow the general principles of the disclosure and include common common sense or customary technical means in the technical field that are not disclosed in the disclosure. . It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It is to be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the disclosure is limited only by the appended claims.
Claims (20)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410052352.5A CN117580141B (en) | 2024-01-12 | 2024-01-12 | Power negotiation method, device, system, medium, routing equipment and terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410052352.5A CN117580141B (en) | 2024-01-12 | 2024-01-12 | Power negotiation method, device, system, medium, routing equipment and terminal |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN117580141A true CN117580141A (en) | 2024-02-20 |
| CN117580141B CN117580141B (en) | 2024-04-16 |
Family
ID=89864660
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202410052352.5A Active CN117580141B (en) | 2024-01-12 | 2024-01-12 | Power negotiation method, device, system, medium, routing equipment and terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN117580141B (en) |
Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6697343B1 (en) * | 1999-08-26 | 2004-02-24 | Lucent Technologies Inc. | Method and apparatus for controlling power for variable-rate vocoded communications |
| US20050058151A1 (en) * | 2003-06-30 | 2005-03-17 | Chihsiang Yeh | Method of interference management for interference/collision avoidance and spatial reuse enhancement |
| KR20070020039A (en) * | 2006-11-20 | 2007-02-16 | 미쓰비시덴키 가부시키가이샤 | Retransmission control method and communication device |
| US20110292921A1 (en) * | 2010-05-26 | 2011-12-01 | WireFi Networks | Multi-Communications-Media Network Device |
| CN102422682A (en) * | 2009-05-08 | 2012-04-18 | 高通股份有限公司 | Suppression of transmit power in WWAN devices based on thermal input |
| CN105392162A (en) * | 2015-10-28 | 2016-03-09 | 广东欧珀移动通信有限公司 | Method and device of WiFi power dynamic adjustment and mobile terminal |
| CN108809475A (en) * | 2017-04-27 | 2018-11-13 | 华为技术有限公司 | A kind of messaging parameter determines method and apparatus |
| WO2020103056A1 (en) * | 2018-11-21 | 2020-05-28 | Oppo广东移动通信有限公司 | Power density adjusting method, device and storage medium |
| WO2022226257A1 (en) * | 2021-04-22 | 2022-10-27 | Texas Instruments Incorporated | Dynamic power negotiation outside enhanced beacon exchange in a wireless network via acknowledgment frames |
| CN116347574A (en) * | 2023-04-04 | 2023-06-27 | 普联技术有限公司 | Temperature regulation method, device, network equipment and readable storage medium |
-
2024
- 2024-01-12 CN CN202410052352.5A patent/CN117580141B/en active Active
Patent Citations (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6697343B1 (en) * | 1999-08-26 | 2004-02-24 | Lucent Technologies Inc. | Method and apparatus for controlling power for variable-rate vocoded communications |
| US20050058151A1 (en) * | 2003-06-30 | 2005-03-17 | Chihsiang Yeh | Method of interference management for interference/collision avoidance and spatial reuse enhancement |
| KR20070020039A (en) * | 2006-11-20 | 2007-02-16 | 미쓰비시덴키 가부시키가이샤 | Retransmission control method and communication device |
| CN102422682A (en) * | 2009-05-08 | 2012-04-18 | 高通股份有限公司 | Suppression of transmit power in WWAN devices based on thermal input |
| US20110292921A1 (en) * | 2010-05-26 | 2011-12-01 | WireFi Networks | Multi-Communications-Media Network Device |
| CN105392162A (en) * | 2015-10-28 | 2016-03-09 | 广东欧珀移动通信有限公司 | Method and device of WiFi power dynamic adjustment and mobile terminal |
| CN108809475A (en) * | 2017-04-27 | 2018-11-13 | 华为技术有限公司 | A kind of messaging parameter determines method and apparatus |
| WO2020103056A1 (en) * | 2018-11-21 | 2020-05-28 | Oppo广东移动通信有限公司 | Power density adjusting method, device and storage medium |
| CN112470530A (en) * | 2018-11-21 | 2021-03-09 | Oppo广东移动通信有限公司 | Power density adjustment method, device and storage medium |
| WO2022226257A1 (en) * | 2021-04-22 | 2022-10-27 | Texas Instruments Incorporated | Dynamic power negotiation outside enhanced beacon exchange in a wireless network via acknowledgment frames |
| CN116347574A (en) * | 2023-04-04 | 2023-06-27 | 普联技术有限公司 | Temperature regulation method, device, network equipment and readable storage medium |
Non-Patent Citations (1)
| Title |
|---|
| 林丛;向勇: "支持功率和速率控制的自组网MAC协议研究", 计算机应用, no. 08, 1 August 2008 (2008-08-01) * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN117580141B (en) | 2024-04-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP1992139B1 (en) | Method of and apparatus for adjusting qos in data transmission over sctp session | |
| JP5124838B2 (en) | Control method of intermittent reception | |
| US6704571B1 (en) | Reducing data loss during cell handoffs | |
| CN101432683B (en) | Wireless architecture for traditional wire-based protocols | |
| JP5677307B2 (en) | Data rate adaptation method for multicast communication | |
| CN101946470B (en) | Method of transmitting data and communication device | |
| US20080045149A1 (en) | Wireless architecture for a traditional wire-based protocol | |
| US11785120B2 (en) | Data transmission method and related apparatus | |
| TWI277325B (en) | Packet transmitting method of wireless network | |
| WO2013135196A1 (en) | Method and system for data packet transmission and sending terminal equipment and receiving terminal equipment | |
| JP2004507950A (en) | Method and apparatus for supporting wireless acknowledgment information for one-way user data channel | |
| WO2007139286A1 (en) | Method and apparatus to perform handover enhancing throughput | |
| WO2017008697A1 (en) | Data transmission method and device, multi-channel routing method, and user equipment | |
| CN110383733B (en) | HARQ feedback method, device and storage medium | |
| KR100750172B1 (en) | Power line communication network and power line communication method | |
| JP2003051781A (en) | Data communication method and data communication method | |
| KR100823263B1 (en) | UOS guarantee method and device | |
| EP3633890B1 (en) | Method, device, and system for transmitting data | |
| US20060126586A1 (en) | Wireless LAN device and method of monitoring status of wireless LAN | |
| WO2014139307A1 (en) | Method and apparatus for mcs switching | |
| CN117580141B (en) | Power negotiation method, device, system, medium, routing equipment and terminal | |
| KR100612650B1 (en) | A method of transmitting and receiving downlink traffic in a wireless portable internet system and a method for configuring the protocol therefor | |
| EP2051429B1 (en) | Apparatus and method for setting timer and counter in mobile communication system | |
| WO2023019595A1 (en) | Bar frame transmission methods and apparatus, device and storage medium | |
| KR20140089967A (en) | Method for Controlling Adaptive Non-Real-Time Traffic, Terminal and Apparatus Threrfor |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |