CN113473539A - Data transmission method and electronic equipment - Google Patents

Data transmission method and electronic equipment Download PDF

Info

Publication number
CN113473539A
CN113473539A CN202110601477.5A CN202110601477A CN113473539A CN 113473539 A CN113473539 A CN 113473539A CN 202110601477 A CN202110601477 A CN 202110601477A CN 113473539 A CN113473539 A CN 113473539A
Authority
CN
China
Prior art keywords
indication information
access point
wireless access
frame
service data
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
Application number
CN202110601477.5A
Other languages
Chinese (zh)
Other versions
CN113473539B (en
Inventor
李铮
郭秋伦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202110601477.5A priority Critical patent/CN113473539B/en
Publication of CN113473539A publication Critical patent/CN113473539A/en
Application granted granted Critical
Publication of CN113473539B publication Critical patent/CN113473539B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints
    • H04W28/12Flow control between communication endpoints using signalling between network elements
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing 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

本申请提供一种数据传输方法及电子设备,涉及通信技术领域。其中,上述数据传输方法包括:在第一设备满足设定条件的情况下,第一设备向所述无线接入点发送第一指示信息;其中,第一指示信息包括指示申请低时延服务的标识;无线接入点接收所述第一设备发送的第三业务数据,接收所述第二设备发送的第四业务数据;所述无线接入点按照第二预设方式发送所述第三业务数据,按照所述第一预设方式发送所述第四业务数据;其中,所述第二预设方式的传输优先级高于所述第一预设方式的传输优先级。实现第一设备可根据实际的业务需求,及时获取到网络资源,提高该电子设备的数据传输时效性。

Figure 202110601477

The present application provides a data transmission method and an electronic device, and relates to the field of communication technologies. The above data transmission method includes: when the first device satisfies the set condition, the first device sends first indication information to the wireless access point; wherein the first indication information includes an indication of applying for a low-latency service ID; the wireless access point receives the third service data sent by the first device, and receives the fourth service data sent by the second device; the wireless access point sends the third service according to the second preset mode data, and send the fourth service data according to the first preset mode; wherein, the transmission priority of the second preset mode is higher than the transmission priority of the first preset mode. It is realized that the first device can obtain network resources in time according to actual service requirements, thereby improving the timeliness of data transmission of the electronic device.

Figure 202110601477

Description

一种数据传输方法及电子设备A data transmission method and electronic device

技术领域technical field

本申请涉及通信技术领域,尤其涉及一种数据传输方法及电子设备。The present application relates to the field of communication technologies, and in particular, to a data transmission method and an electronic device.

背景技术Background technique

随着网络通信技术的发展,实时类应用(也即,对数据传输时效性要求较高的应用)越来越多,同时,使用实时类应用的用户也越来越多。因此,用户对通信网络数据传输的时效要求越来越高。With the development of network communication technology, there are more and more real-time applications (that is, applications requiring high timeliness of data transmission), and at the same time, more and more users use real-time applications. Therefore, users have higher and higher requirements on the timeliness of data transmission in communication networks.

然而,在多个设备接入同一无线访问接入点,如基于无线保真(Wireless-Fidelity,Wi-Fi)技术的访问接入点时,该访问接入点按照先到先得的方式,给各设备分配空口资源。这就可能导致设备无法根据实际的业务需求,及时请求到网络资源,进而无法满足设备的低时延业务需求。However, when multiple devices access the same wireless access point, such as an access point based on Wireless-Fidelity (Wi-Fi) technology, the access point is based on a first-come, first-served basis. Allocate air interface resources to each device. As a result, the device may not be able to request network resources in time according to the actual service requirements, thereby failing to meet the low-latency service requirements of the device.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供一种数据传输方法及电子设备,在满足设定条件的情况下,向无线接入点发起指示激活低时延特性的指示信息,指示无线接入点优先将该电子设备的业务数据发出。实现电子设备可根据实际的业务需求,及时获取到网络资源,提高该电子设备的数据传输时效性。The embodiments of the present application provide a data transmission method and an electronic device. When a set condition is met, the wireless access point sends instruction information indicating activation of the low-latency feature, and instructs the wireless access point to give priority to the electronic device's Business data is sent. It is realized that the electronic device can obtain network resources in time according to actual business requirements, and the timeliness of data transmission of the electronic device is improved.

为达到上述目的,本申请实施例采用如下技术方案:In order to achieve the above purpose, the embodiment of the present application adopts the following technical solutions:

第一方面,本申请实施例提供了一种数据传输方法,应用于数据传输系统,所述数据传输系统包括无线接入点、以及接入所述无线接入点的第一设备和第二设备,所述方法包括:所述无线接入点接收所述第一设备发送的第一业务数据,接收所述第二设备发送的第二业务数据;所述无线接入点按照第一预设方式发送所述第一业务数据和所述第二业务数据;在所述第一设备满足设定条件的情况下,所述第一设备向所述无线接入点发送第一指示信息;其中,所述第一指示信息包括指示申请低时延服务的标识;所述无线接入点接收所述第一设备发送的第三业务数据,接收所述第二设备发送的第四业务数据;所述无线接入点按照第二预设方式发送所述第三业务数据,按照所述第一预设方式发送所述第四业务数据;其中,所述第二预设方式的传输优先级高于所述第一预设方式的传输优先级。In a first aspect, an embodiment of the present application provides a data transmission method, which is applied to a data transmission system, where the data transmission system includes a wireless access point, and a first device and a second device that access the wireless access point , the method includes: receiving, by the wireless access point, first service data sent by the first device, and receiving second service data sent by the second device; Send the first service data and the second service data; in the case that the first device satisfies the set condition, the first device sends the first indication information to the wireless access point; wherein, the The first indication information includes an identifier indicating to apply for a low-latency service; the wireless access point receives third service data sent by the first device and fourth service data sent by the second device; the wireless access point receives the third service data sent by the first device and the fourth service data sent by the second device; The access point sends the third service data according to the second preset mode, and sends the fourth service data according to the first preset mode; wherein, the transmission priority of the second preset mode is higher than that of the The transmission priority of the first preset mode.

在上述实施例中,在第一设备发送第一指示信息之前,无线接入点均按照第一预设方式处理第一设备和第二设备所发送的业务数据。在第一设备发送第一指示信息之后,无线接入点将采用优先级更高的第二预设方式传输第一设备的业务数据,继续采用第一预设方式传输第二设备的业务数据。由于第二预设方式的传输优先级高于第一预设方式的传输优先级,因此,在多个设备接入无线接入点的情况下,第一设备的业务数据也可先于其他设备的业务数据被发出,可减少第一设备的数据传输等待时长,提升第一设备的数据传输时效性。In the above embodiment, before the first device sends the first indication information, the wireless access point processes the service data sent by the first device and the second device according to the first preset manner. After the first device sends the first indication information, the wireless access point will transmit the service data of the first device in the second preset mode with higher priority, and continue to transmit the service data of the second device in the first preset mode. Since the transmission priority of the second preset mode is higher than the transmission priority of the first preset mode, when multiple devices access the wireless access point, the service data of the first device can also be prior to other devices. The service data of the first device is sent out, which can reduce the waiting time for data transmission of the first device and improve the timeliness of data transmission of the first device.

示例性地,所述第一指示信息为管理帧,指示申请所述低时延服务的标识包括在所述第一指示信息的保留信息元素中;或者,所述第一指示信息为控制帧,所述控制帧包括帧实体字节,指示申请所述低时延服务的标识包括在所述帧实体字节中。Exemplarily, the first indication information is a management frame, and the identifier indicating the application for the low-latency service is included in the reserved information element of the first indication information; or, the first indication information is a control frame, The control frame includes a frame entity byte, and an identifier indicating to apply for the low-latency service is included in the frame entity byte.

此外,上述设定条件可以指示第一设备具有低时延服务需求,第一设备通过判定自身是否满足设定条件,从而决策是否向无线接入点发送第一指示信息。从而,实现根据第一设备实际的业务需求,改善第一设备业务数据的传输时效性。In addition, the above setting conditions may indicate that the first device has a low-latency service requirement, and the first device decides whether to send the first indication information to the wireless access point by determining whether it meets the setting conditions. Therefore, it is realized that the transmission timeliness of the service data of the first device can be improved according to the actual service requirements of the first device.

结合第一方面,在一种可能的设计方式中,所述第一指示信息还包括第一应用的标识;所述第三业务数据为所述第一应用的业务数据;在所述第一设备向所述无线接入点发送第一指示信息之后,所述方法还包括:所述无线接入点接收所述第一设备发送的第五业务数据,所述第五业务数据为所述第一设备中第二应用的业务数据;所述无线接入点按照所述第一预设方式发送所述第五业务数据。With reference to the first aspect, in a possible design manner, the first indication information further includes an identifier of a first application; the third service data is service data of the first application; in the first device After sending the first indication information to the wireless access point, the method further includes: receiving, by the wireless access point, fifth service data sent by the first device, where the fifth service data is the first The service data of the second application in the device; the wireless access point sends the fifth service data according to the first preset manner.

示例性地,上述第一应用为第一设备内的实时类应用,上述第二应用为第一设备内非实时类应用。Exemplarily, the first application is a real-time application in the first device, and the second application is a non-real-time application in the first device.

在上述实施例中,对于第一设备向无线接入点发送的具有低时延需求的业务数据,如第三业务数据,采用第二预设方式进行发送,而对于第一设备向无线接入点发送的不具有低时延需求的业务数据,如第五业务数据,依然采用第一预设方式进行发送。避免第一设备长期且不必要的占用传输资源,影响到第四业务数据的发送。In the above embodiment, the service data with low latency requirements, such as the third service data, sent by the first device to the wireless access point is sent in the second preset manner, while for the first device to the wireless access point The service data that does not have a low latency requirement, such as the fifth service data sent by the point, is still sent in the first preset manner. The long-term and unnecessary occupation of transmission resources by the first device is avoided, which affects the sending of the fourth service data.

结合第一方面,在一种可能的设计方式中,所述第一指示信息为管理帧,所述第一应用的标识包括在所述第一指示信息的保留信息元素中;或者,所述第一指示信息为控制帧,所述第一应用的标识包括在所述帧实体字节中。With reference to the first aspect, in a possible design manner, the first indication information is a management frame, and the identifier of the first application is included in a reserved information element of the first indication information; or, the first indication information is a management frame. One indication information is a control frame, and the identifier of the first application is included in the frame entity byte.

结合第一方面,在一种可能的设计方式中,所述无线接入点按照第二预设方式发送所述第三业务数据,按照所述第一预设方式发送所述第四业务数据,包括:所述无线接入点将所述第三业务数据存储至第一队列,将所述第四业务数据存储至第二队列;所述第一队列的传输优先级高于所述第二队列的传输优先级;所述无线接入点发送所述第一队列中的所述第三业务数据,在所述第三业务数据发出后,发送所述第二队列中的所述第四业务数据。With reference to the first aspect, in a possible design manner, the wireless access point sends the third service data according to the second preset manner, and sends the fourth service data according to the first preset manner, Including: the wireless access point stores the third service data in the first queue, and stores the fourth service data in the second queue; the transmission priority of the first queue is higher than that of the second queue the transmission priority; the wireless access point sends the third service data in the first queue, and after the third service data is sent, sends the fourth service data in the second queue .

在上述实施例中,由于第三业务数据存储于第一队列,同时无线接入点优先发送第一队列中的数据。也即,在第一队列中无数据后,再依次发送第二队列中存储的数据。从而,确保第二队列中存储的业务数据(如,第四业务数据)不会影响到第三业务数据的发送。In the above embodiment, since the third service data is stored in the first queue, at the same time, the wireless access point preferentially sends the data in the first queue. That is, after there is no data in the first queue, the data stored in the second queue is sent in sequence. Therefore, it is ensured that the service data (eg, the fourth service data) stored in the second queue will not affect the sending of the third service data.

在一些可能的实施例中,上述第一预设方式还可以是:在没有需要通过第一预设方式发送的业务数据时,无线接入点按照接收的先后顺序,依次将需要通过第一预设方式发送的业务数据发送出去。In some possible embodiments, the above-mentioned first preset manner may also be: when there is no service data that needs to be sent through the first preset manner, the wireless access point will sequentially send the service data that needs to be sent through the first preset manner according to the order of reception. The business data sent in the setting mode is sent out.

例如,无线接入点先接收到业务数据b,再接受到业务数据a。在没有需要通过第一预设方式发送的业务数据时,无线接入点先将业务数据b发出,再将业务数据a发出。For example, the wireless access point receives service data b first, and then receives service data a. When there is no service data that needs to be sent in the first preset manner, the wireless access point first sends the service data b, and then sends the service data a.

在一些可能的实施例中,上述第一预设方式还可以是:在没有需要通过第一预设方式发送的业务数据时,无线接入点根据预先设置的业务优先级,依次将需要通过第一预设方式发送的业务数据发送出去。In some possible embodiments, the above-mentioned first preset manner may also be: when there is no service data that needs to be sent through the first preset manner, the wireless access point, according to the preset service priority, sequentially sends the service data that needs to be sent through the first preset manner. The service data sent in a preset mode is sent out.

上述预先设置的业务优先级可以是预先为不同类型业务配置的优先级。也即,无线接入点可以先识别业务数据对应的业务类型,再确定其对应的优先级,最后,根据优先级对业务数据进行排列,将业务数据发出。The above preset service priorities may be priorities preconfigured for different types of services. That is, the wireless access point can first identify the service type corresponding to the service data, then determine its corresponding priority, and finally, arrange the service data according to the priority, and send the service data.

例如,业务数据a的业务优先级高于业务数据b,在没有需要通过第一预设方式发送的业务数据时,无线接入点先将业务数据a发出,再将业务数据b发出。For example, the service priority of service data a is higher than that of service data b. When there is no service data to be sent in the first preset manner, the wireless access point first sends service data a and then sends service data b.

结合第一方面,在一种可能的设计方式中,在所述第一设备向所述无线接入点发送第一指示信息之后,所述方法还包括:所述无线接入点向所述第一设备发送第一响应信息;其中,所述第一响应信息包括指示所述低时延服务申请成功的标识。With reference to the first aspect, in a possible design manner, after the first device sends the first indication information to the wireless access point, the method further includes: the wireless access point sends the first indication information to the wireless access point. A device sends first response information; wherein, the first response information includes an identifier indicating that the low-latency service application is successful.

结合第一方面,在一种可能的设计方式中,所述方法还包括:在所述无线接入点的网络异常的情况下,向所述第一设备发送第二指示信息;其中,所述第二指示信息为管理帧,所述第二指示信息的保留信息元素包括指示切换通信通道的标识;或者,所述第二指示信息为控制帧,所述第二指示信息包括帧实体字节,所述帧实体字节包括指示切换通信通道的标识。With reference to the first aspect, in a possible design manner, the method further includes: when the network of the wireless access point is abnormal, sending second indication information to the first device; wherein the The second indication information is a management frame, and the reserved information element of the second indication information includes an identifier indicating switching of communication channels; or, the second indication information is a control frame, and the second indication information includes frame entity bytes, The frame entity byte includes an identifier indicating switching of the communication channel.

在上述实施例中,可以及时通知第一设备切换通信通道,改善第三业务数据受到网络异常的影响。In the above-mentioned embodiment, the first device can be notified in time to switch the communication channel, so that the third service data is affected by the network abnormality.

结合第一方面,在一种可能的设计方式中,所述方法还包括:在所述第一设备切换通信通道后,所述第一设备向所述无线接入点发送第二响应信息;其中,所述第二响应信息包括指示通道切换成功的标识;在所述无线接入点的网络恢复正常的情况下,向所述第一设备发送第三指示信息;其中,所述第三指示信息为管理帧,所述第三指示信息的保留信息元素包括指示接入所述无线接入点的标识;或者,所述第三指示信息为控制帧,所述第三指示信息包括帧实体字节,所述帧实体字节包括指示接入所述无线接入点的标识。With reference to the first aspect, in a possible design, the method further includes: after the first device switches the communication channel, the first device sends second response information to the wireless access point; wherein , the second response information includes an identifier indicating that the channel is switched successfully; when the network of the wireless access point returns to normal, send third indication information to the first device; wherein the third indication information is a management frame, and the reserved information element of the third indication information includes an identifier indicating access to the wireless access point; or, the third indication information is a control frame, and the third indication information includes frame entity bytes , the frame entity byte includes an identifier indicating access to the wireless access point.

结合第一方面,在一种可能的设计方式中,在所述第一设备向所述无线接入点发送第一指示信息之前,所述方法还包括:所述无线接入点广播信标Beacon帧;其中,所述信标帧的供应商专用字段包括指示支持低时延特性的标识。With reference to the first aspect, in a possible design, before the first device sends the first indication information to the wireless access point, the method further includes: the wireless access point broadcasts a beacon Beacon frame; wherein the vendor-specific field of the beacon frame includes a flag indicating that the low-latency feature is supported.

在上述实施例中,无线接入点可有效地通知第一设备和第二设备,该无线接入点支持低时延特性,以便第一设备和第二设备决策是否启动低时延服务。In the above embodiment, the wireless access point can effectively notify the first device and the second device that the wireless access point supports the low-latency feature, so that the first device and the second device can decide whether to start the low-latency service.

结合第一方面,在一种可能的设计方式中,在所述第一设备向所述无线接入点发送第一指示信息之前,所述方法还包括:所述第一设备向所述无线接入点发送探测请求probe request帧;所述无线接入点响应于所述probe request帧,向所述第一设备发送探测响应probe respond帧;其中,所述probe respond帧的供应商专用字段包括指示支持低时延特性的标识。With reference to the first aspect, in a possible design, before the first device sends the first indication information to the wireless access point, the method further includes: the first device sends the wireless access point to the wireless access point. The ingress point sends a probe request frame; the wireless access point sends a probe response probe respond frame to the first device in response to the probe request frame; wherein the vendor-specific field of the probe respond frame includes an indication Flags that support low-latency features.

在上述实施例中,无线接入点可有效地通知第一设备,该无线接入点支持低时延特性,以便第一设备决策是否启动低时延服务。In the above embodiment, the wireless access point can effectively notify the first device that the wireless access point supports the low-latency feature, so that the first device decides whether to start the low-latency service.

结合第一方面,在一种可能的设计方式中,在所述第一设备向所述无线接入点发送第一指示信息之前,所述方法还包括:所述第一设备向所述无线接入点发送第四指示信息;其中,所述第四指示信息为管理帧,所述第四指示信息的保留信息元素包括指示注册低时延特性的标识;或者,所述第四指示信息为控制帧,所述第四指示信息包括帧实体字节,所述帧实体字节包括指示注册低时延特性的标识;所述无线接入点向所述第一设备发送第四响应信息;所述第四响应信息包括指示低时延特性注册成功的标识。With reference to the first aspect, in a possible design, before the first device sends the first indication information to the wireless access point, the method further includes: the first device sends the wireless access point to the wireless access point. The ingress sends fourth indication information; wherein, the fourth indication information is a management frame, and the reserved information element of the fourth indication information includes an identifier indicating the registration of the low-latency feature; or, the fourth indication information is a control frame frame, the fourth indication information includes a frame entity byte, and the frame entity byte includes an identifier indicating a registered low-latency feature; the wireless access point sends fourth response information to the first device; the The fourth response information includes an identifier indicating that the registration of the low-latency feature is successful.

结合第一方面,在一种可能的设计方式中,所述方法还包括:在所述第一设备不满足所述设定条件的情况下,所述第一设备向所述无线接入点发送第五指示信息;其中,所述第五指示信息为管理帧,所述第五指示信息的保留信息元素包括指示关闭低时延服务的标识;所述第五指示信息为控制帧,所述第五指示信息包括帧实体字节,所述帧实体字节包括指示关闭低时延服务的标识;所述无线接入点接收所述第一设备发送的第六业务数据;所述无线接入点响应于所述第五指示信息,所述无线接入点按照所述第一预设方式发送所述第六业务数据。With reference to the first aspect, in a possible design manner, the method further includes: if the first device does not meet the set condition, sending, by the first device, to the wireless access point fifth indication information; wherein, the fifth indication information is a management frame, and the reserved information element of the fifth indication information includes an identifier indicating to close the low-latency service; the fifth indication information is a control frame, and the first 5. The indication information includes frame entity bytes, and the frame entity bytes include an identifier indicating that the low-latency service is turned off; the wireless access point receives the sixth service data sent by the first device; the wireless access point In response to the fifth indication information, the wireless access point sends the sixth service data according to the first preset manner.

结合第一方面,在一种可能的设计方式中,所述第一设备满足所述设定条件的方式包括以下一项或多项的组合:所述第一设备的所述第一应用启动运行;所述第一设备的设备温度超过预设温度值;所述第一设备的实时电量低于预设电量值;With reference to the first aspect, in a possible design manner, the manner in which the first device satisfies the set condition includes a combination of one or more of the following: the first application of the first device starts to run ; The device temperature of the first device exceeds a preset temperature value; the real-time power of the first device is lower than the preset power value;

所述第一设备不满足所述设定条件的方式包括以下一项或多项的组合:所述第一设备的所述第一应用停止运行;所述第一设备的设备温度不超过预设温度值;所述第一设备的实时电量不低于预设电量值。The manner in which the first device does not meet the set condition includes a combination of one or more of the following: the first application of the first device stops running; the device temperature of the first device does not exceed a preset value Temperature value; the real-time power of the first device is not lower than the preset power value.

第二方面,本申请实施例提供了一种数据传输方法,应用于无线接入点;所述方法包括:所述无线接入点接收电子设备发送的第一指示信息;其中,所述第一指示信息包括指示申请低时延服务的标识;所述无线接入点接收所述电子设备发送的第三业务数据;所述无线接入点中有待发送的第四业务数据;所述无线接入点较于所述第四业务数据,优先发送所述第三业务数据。In a second aspect, an embodiment of the present application provides a data transmission method, which is applied to a wireless access point; the method includes: the wireless access point receives first indication information sent by an electronic device; wherein the first indication information is The indication information includes an identifier indicating to apply for a low-latency service; the wireless access point receives the third service data sent by the electronic device; the wireless access point has fourth service data to be sent; the wireless access point The third service data is preferentially sent over the fourth service data.

示例性地,所述第一指示信息为管理帧,指示申请所述低时延服务的标识包括在所述第一指示信息的保留信息元素中;或者,所述第一指示信息为控制帧,所述控制帧包括帧实体字节,指示申请所述低时延服务的标识包括在所述帧实体字节中。Exemplarily, the first indication information is a management frame, and the identifier indicating the application for the low-latency service is included in the reserved information element of the first indication information; or, the first indication information is a control frame, The control frame includes a frame entity byte, and an identifier indicating to apply for the low-latency service is included in the frame entity byte.

作为一种实现方式,上述无线接入点较于所述第四业务数据,优先发送所述第三业务数据,可以是采用第一预设方式发送第四业务数据,并采用第二预设方式发送第三业务数据。As an implementation manner, the wireless access point sends the third service data preferentially over the fourth service data, which may be to send the fourth service data in a first preset manner, and use a second preset manner Send third service data.

结合第二方面,在一种可能的设计方式中,所述第一指示信息还包括第一应用的标识;所述第三业务数据为所述第一应用的业务数据。With reference to the second aspect, in a possible design manner, the first indication information further includes an identifier of the first application; and the third service data is service data of the first application.

结合第二方面,在一种可能的设计方式中,所述第一指示信息为管理帧,所述第一应用的标识包括在所述第一指示信息的保留信息元素中;或者,With reference to the second aspect, in a possible design manner, the first indication information is a management frame, and the identifier of the first application is included in the reserved information element of the first indication information; or,

所述第一指示信息为控制帧,所述第一应用的标识包括在所述帧实体字节中。The first indication information is a control frame, and the identifier of the first application is included in the frame entity byte.

结合第二方面,在一种可能的设计方式中,所述无线接入点较于所述第四业务数据,优先发送所述第三业务数据,包括:With reference to the second aspect, in a possible design manner, the wireless access point preferentially sends the third service data over the fourth service data, including:

所述无线接入点将所述第三业务数据存储至第一队列;其中,所述第四业务数据存储于第二队列,所述第一队列的传输优先级高于所述第二队列的传输优先级;The wireless access point stores the third service data in the first queue; wherein, the fourth service data is stored in the second queue, and the transmission priority of the first queue is higher than that of the second queue. transmission priority;

所述无线接入点发送所述第一队列中的所述第三业务数据,在所述第三业务数据发出后,发送所述第二队列中的所述第四业务数据。The wireless access point sends the third service data in the first queue, and sends the fourth service data in the second queue after the third service data is sent.

结合第二方面,在一种可能的设计方式中,在所述无线接入点接收电子设备发送的第一指示信息之后,所述方法还包括:With reference to the second aspect, in a possible design manner, after the wireless access point receives the first indication information sent by the electronic device, the method further includes:

所述无线接入点向所述电子设备发送第一响应信息;其中,所述第一响应信息包括指示所述低时延服务申请成功的标识。The wireless access point sends first response information to the electronic device; wherein, the first response information includes an identifier indicating that the low-latency service application is successful.

结合第二方面,在一种可能的设计方式中,所述方法还包括:With reference to the second aspect, in a possible design manner, the method further includes:

在所述无线接入点的网络异常的情况下,向所述电子设备发送第二指示信息;In the case that the network of the wireless access point is abnormal, send second indication information to the electronic device;

其中,所述第二指示信息为管理帧,所述第二指示信息的保留信息元素包括指示切换通信通道的标识;或者,所述第二指示信息为控制帧,所述第二指示信息包括帧实体字节,所述帧实体字节包括指示切换通信通道的标识。Wherein, the second indication information is a management frame, and the reserved information element of the second indication information includes an identifier indicating switching of communication channels; or, the second indication information is a control frame, and the second indication information includes a frame Entity byte, the frame entity byte includes an identifier indicating switching of the communication channel.

结合第二方面,在一种可能的设计方式中,所述方法还包括:With reference to the second aspect, in a possible design manner, the method further includes:

所述无线接入点接收所述电子设备发送的第二响应信息;其中,所述第二响应信息包括指示通道切换成功的标识;receiving, by the wireless access point, second response information sent by the electronic device; wherein the second response information includes an identifier indicating successful channel switching;

在所述无线接入点的网络恢复正常的情况下,向所述电子设备发送第三指示信息;In the case that the network of the wireless access point returns to normal, sending third indication information to the electronic device;

其中,所述第三指示信息为管理帧,所述第三指示信息的保留信息元素包括指示接入所述无线接入点的标识;或者,所述第三指示信息为控制帧,所述第三指示信息包括帧实体字节,所述帧实体字节包括指示接入所述无线接入点的标识。The third indication information is a management frame, and the reserved information element of the third indication information includes an identifier indicating access to the wireless access point; or, the third indication information is a control frame, and the third indication information is a control frame. The third indication information includes a frame entity byte, and the frame entity byte includes an identifier indicating access to the wireless access point.

结合第二方面,在一种可能的设计方式中,在所述无线接入点接收电子设备发送的第一指示信息之前,所述方法还包括:With reference to the second aspect, in a possible design, before the wireless access point receives the first indication information sent by the electronic device, the method further includes:

所述无线接入点广播信标Beacon帧;其中,所述信标帧的供应商专用字段包括指示支持低时延特性的标识。The wireless access point broadcasts a beacon frame; wherein, the vendor-specific field of the beacon frame includes an identifier indicating that the low-latency feature is supported.

结合第二方面,在一种可能的设计方式中,在所述无线接入点接收电子设备发送的第一指示信息之前,所述方法还包括:With reference to the second aspect, in a possible design, before the wireless access point receives the first indication information sent by the electronic device, the method further includes:

所述无线接入点接收所述电子设备发送的探测请求probe request帧;receiving, by the wireless access point, a probe request frame sent by the electronic device;

所述无线接入点响应于所述probe request帧,向所述电子设备发送探测响应probe respond帧;其中,所述probe respond帧的供应商专用字段包括指示支持低时延特性的标识。In response to the probe request frame, the wireless access point sends a probe response probe respond frame to the electronic device; wherein, a vendor-specific field of the probe respond frame includes an identifier indicating that the low-latency feature is supported.

结合第二方面,在一种可能的设计方式中,在所述无线接入点接收电子设备发送的第一指示信息之前,所述方法还包括:With reference to the second aspect, in a possible design, before the wireless access point receives the first indication information sent by the electronic device, the method further includes:

所述无线接入点接收所述电子设备发送的第四指示信息;其中,所述第四指示信息为管理帧,所述第四指示信息的保留信息元素包括指示注册低时延特性的标识;receiving, by the wireless access point, fourth indication information sent by the electronic device; wherein, the fourth indication information is a management frame, and the reserved information element of the fourth indication information includes an identifier indicating the registration of the low-latency feature;

或者,所述第四指示信息为控制帧,所述第四指示信息包括帧实体字节,所述帧实体字节包括指示注册低时延特性的标识;Alternatively, the fourth indication information is a control frame, and the fourth indication information includes a frame entity byte, and the frame entity byte includes an identifier indicating a registered low-latency feature;

所述无线接入点向所述电子设备发送第四响应信息;所述第四响应信息包括指示低时延特性注册成功的标识。The wireless access point sends fourth response information to the electronic device; the fourth response information includes an identifier indicating successful registration of the low-latency feature.

结合第二方面,在一种可能的设计方式中,所述方法还包括:With reference to the second aspect, in a possible design manner, the method further includes:

所述无线接入点接收所述电子设备发送第五指示信息;其中,所述第五指示信息为管理帧,所述第五指示信息的保留信息元素包括指示关闭低时延服务的标识;所述第五指示信息为控制帧,所述第五指示信息包括帧实体字节,所述帧实体字节包括指示关闭低时延服务的标识;receiving, by the wireless access point, fifth indication information sent by the electronic device; wherein, the fifth indication information is a management frame, and the reserved information element of the fifth indication information includes an identifier indicating that the low-latency service is turned off; The fifth indication information is a control frame, and the fifth indication information includes a frame entity byte, and the frame entity byte includes an identifier indicating that the low-latency service is turned off;

所述无线接入点接收所述电子设备发送的第六业务数据;receiving, by the wireless access point, sixth service data sent by the electronic device;

所述无线接入点响应于所述第五指示信息,所述无线接入点按照所述第一预设方式发送所述第六业务数据。In response to the fifth indication information, the wireless access point sends the sixth service data according to the first preset manner.

第三方面,本申请实施例提供了一种数据传输方法,应用于电子设备,所述方法包括:In a third aspect, an embodiment of the present application provides a data transmission method, which is applied to an electronic device, and the method includes:

在所述电子设备满足设定条件的情况下,向所述无线接入点发送第一指示信息;其中,所述第一指示信息包括指示申请低时延服务的标识;In the case that the electronic device satisfies the set condition, send first indication information to the wireless access point; wherein, the first indication information includes an identifier indicating to apply for a low-latency service;

所述电子设备接收所述无线接入点发送的第一响应信息;其中,所述第一响应信息包括指示所述低时延服务申请成功的标识;The electronic device receives the first response information sent by the wireless access point; wherein the first response information includes an identifier indicating that the low-latency service application is successful;

所述电子设备向所述无线接入点发送第三业务数据。The electronic device sends third service data to the wireless access point.

结合第三方面,在一种可能的设计方式中,所述第一指示信息还包括第一应用的标识;所述第三业务数据为所述第一应用的业务数据;With reference to the third aspect, in a possible design manner, the first indication information further includes an identifier of the first application; the third service data is service data of the first application;

所述第一指示信息为管理帧,所述第一应用的标识和指示申请所述低时延服务的标识包括在所述第一指示信息的保留信息元素中;或者,The first indication information is a management frame, and the identity of the first application and the identity of the indication to apply for the low-latency service are included in the reserved information element of the first indication information; or,

所述第一指示信息为控制帧,所述控制帧包括帧实体字节,所述第一应用的标识和指示申请所述低时延服务的标识包括在所述帧实体字节中。The first indication information is a control frame, and the control frame includes a frame entity byte, and an identifier of the first application and an identifier indicating to apply for the low-latency service are included in the frame entity byte.

结合第三方面,在一种可能的设计方式中,所述方法还包括:With reference to the third aspect, in a possible design manner, the method further includes:

在所述电子设备接收所述无线接入点发送的第二指示信息的情况下,切换发送所述第三业务的通信通道;In the case that the electronic device receives the second indication information sent by the wireless access point, switching the communication channel for sending the third service;

其中,所述第二指示信息为管理帧,所述第二指示信息的保留信息元素包括指示切换通信通道的标识;或者,所述第二指示信息为控制帧,所述第二指示信息包括帧实体字节,所述帧实体字节包括指示切换通信通道的标识;Wherein, the second indication information is a management frame, and the reserved information element of the second indication information includes an identifier indicating switching of communication channels; or, the second indication information is a control frame, and the second indication information includes a frame Entity byte, the frame entity byte includes an identifier indicating switching the communication channel;

在所述电子设备切换成功的情况下,向所述无线接入点发送所述第二响应信息;其中,所述第二响应信息包括指示通道切换成功的标识;In the case that the switching of the electronic device is successful, the second response information is sent to the wireless access point; wherein the second response information includes an identifier indicating that the channel switching is successful;

在所述电子设备切换失败的情况下,向所述无线接入点发送所述第二响应信息;其中,所述第二响应信息包括指示通道切换失败的标识及失败原因错误码。In the case that the switching of the electronic device fails, the second response information is sent to the wireless access point; wherein, the second response information includes an identifier indicating a channel switching failure and a failure cause error code.

结合第三方面,在一种可能的设计方式中,所述方法还包括:With reference to the third aspect, in a possible design manner, the method further includes:

所述电子设备接收所述无线接入点发送的第三指示信息;receiving, by the electronic device, third indication information sent by the wireless access point;

其中,所述第三指示信息为管理帧,所述第三指示信息的保留信息元素包括指示接入所述无线接入点的标识;或者,所述第三指示信息为控制帧,所述第三指示信息包括帧实体字节,所述帧实体字节包括指示接入所述无线接入点的标识;The third indication information is a management frame, and the reserved information element of the third indication information includes an identifier indicating access to the wireless access point; or, the third indication information is a control frame, and the third indication information is a control frame. The three indication information includes a frame entity byte, and the frame entity byte includes an identifier indicating access to the wireless access point;

所述电子设备通过所述无线接入点提供的通信通道发送所述第三业务数据。The electronic device sends the third service data through the communication channel provided by the wireless access point.

结合第三方面,在一种可能的设计方式中,在所述电子设备向所述无线接入点发送第一指示信息之前,所述方法还包括:With reference to the third aspect, in a possible design, before the electronic device sends the first indication information to the wireless access point, the method further includes:

所述电子设备接收所述无线接入点广播信标Beacon帧;其中,所述信标帧的供应商专用字段包括指示支持低时延特性的标识;The electronic device receives the wireless access point broadcast beacon Beacon frame; wherein, the provider-specific field of the beacon frame includes an identifier indicating that the low-latency feature is supported;

在所述电子设备接入所述无线接入点后,向所述无线接入点发送第四指示信息;其中,所述第四指示信息为管理帧,所述第四指示信息的保留信息元素包括指示注册低时延特性的标识;或者,所述第四指示信息为控制帧,所述第四指示信息包括帧实体字节,所述帧实体字节包括指示注册低时延特性的标识。After the electronic device accesses the wireless access point, send fourth indication information to the wireless access point; wherein the fourth indication information is a management frame, and the reserved information element of the fourth indication information It includes an identifier indicating the registration of the low-latency feature; or, the fourth indication information is a control frame, and the fourth instruction information includes a frame entity byte, and the frame entity byte includes an identifier indicating the registration of the low-latency feature.

结合第三方面,在一种可能的设计方式中,在所述电子设备向所述无线接入点发送第一指示信息之前,所述方法还包括:With reference to the third aspect, in a possible design, before the electronic device sends the first indication information to the wireless access point, the method further includes:

所述电子设备向所述无线接入点发送探测请求probe request帧;sending, by the electronic device, a probe request frame to the wireless access point;

所述电子设备接收所述无线接入点发送的probe respond帧;其中,所述proberespond帧的供应商专用字段包括指示支持低时延特性的标识;receiving, by the electronic device, a probe respond frame sent by the wireless access point; wherein, the vendor-specific field of the proberespond frame includes an identifier indicating that the low-latency feature is supported;

在所述电子设备接入所述无线接入点后,向所述无线接入点发送第四指示信息;其中,所述第四指示信息为管理帧,所述第四指示信息的保留信息元素包括指示注册低时延特性的标识;或者,所述第四指示信息为控制帧,所述第四指示信息包括帧实体字节,所述帧实体字节包括指示注册低时延特性的标识。After the electronic device accesses the wireless access point, send fourth indication information to the wireless access point; wherein the fourth indication information is a management frame, and the reserved information element of the fourth indication information It includes an identifier indicating the registration of the low-latency feature; or, the fourth indication information is a control frame, and the fourth instruction information includes a frame entity byte, and the frame entity byte includes an identifier indicating the registration of the low-latency feature.

结合第三方面,在一种可能的设计方式中,所述方法还包括:With reference to the third aspect, in a possible design manner, the method further includes:

在所述电子设备满足所述设定条件的情况下,所述电子设备向所述无线接入点发送第五指示信息;其中,所述第五指示信息为管理帧,所述第五指示信息的保留信息元素包括指示关闭低时延服务的标识;所述第五指示信息为控制帧,所述第五指示信息包括帧实体字节,所述帧实体字节包括指示关闭低时延服务的标识。In the case that the electronic device satisfies the set condition, the electronic device sends fifth indication information to the wireless access point; wherein, the fifth indication information is a management frame, and the fifth indication information The reserved information element includes an identifier indicating to close the low-latency service; the fifth instruction information is a control frame, and the fifth instruction information includes a frame entity byte, and the frame entity byte includes an instruction to close the low-latency service. logo.

结合第三方面,在一种可能的设计方式中,所述电子设备满足所述设定条件的方式包括以下一项或多项的组合:With reference to the third aspect, in a possible design manner, the manner in which the electronic device satisfies the setting condition includes a combination of one or more of the following:

所述电子设备的所述第一应用启动运行;The first application of the electronic device starts running;

所述电子设备的设备温度超过预设温度值;The device temperature of the electronic device exceeds a preset temperature value;

所述电子设备的实时电量低于预设电量值;The real-time power of the electronic device is lower than the preset power value;

所述电子设备不满足所述设定条件的方式包括以下一项或多项的组合:The manner in which the electronic device does not meet the set condition includes a combination of one or more of the following:

所述电子设备的所述第一应用停止运行;the first application of the electronic device stops running;

所述电子设备的设备温度不超过预设温度值;The device temperature of the electronic device does not exceed a preset temperature value;

所述电子设备的实时电量不低于预设电量值。The real-time power of the electronic device is not lower than the preset power value.

第四方面,本申请实施例提供了一种电子设备,所述电子设备包括一个或多个处理器及一个或多个存储器;所述一个或多个存储器与所述一个或多个处理器耦合,所述一个或多个存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述一个或多个处理器执行所述计算机指令时,实现如第二方面或第二方面的可能的实现方式中任一项所述的方法;再或者实现如第三方面或第三方面的可能的实现方式中任一项所述的方法。In a fourth aspect, an embodiment of the present application provides an electronic device, the electronic device includes one or more processors and one or more memories; the one or more memories are coupled to the one or more processors , the one or more memories are used to store computer program code, the computer program code includes computer instructions, when the one or more processors execute the computer instructions, to achieve the second aspect or the second aspect The method described in any one of the possible implementation manners; or the third aspect or the method described in any one of the possible implementation manners of the third aspect.

第五方面,本申请实施例提供了一种计算机存储介质,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如第二方面或第二方面的可能的实现方式中任一项所述的方法;再或者使得所述电子设备执行如第三方面或第三方面的可能的实现方式中任一项所述的方法。In a fifth aspect, an embodiment of the present application provides a computer storage medium, including computer instructions, when the computer instructions are executed on an electronic device, the electronic device is made to perform the second aspect or a possible implementation of the second aspect The method described in any one of the manners; or, the electronic device is caused to execute the method according to any one of the third aspect or possible implementation manners of the third aspect.

第六方面,本申请实施例提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如第一方面或第一方面的可能的实现方式中任一项所述的方法;或者实现如第二方面或第二方面的可能的实现方式中任一项所述的方法;再或者实现如第三方面或第三方面的可能的实现方式中任一项所述的方法。In a sixth aspect, an embodiment of the present application provides a computer program product, which, when the computer program product runs on a computer, causes the computer to execute the first aspect or any one of the possible implementations of the first aspect. or implement the method described in any one of the second aspect or possible implementation manners of the second aspect; or implement the third aspect or any one of the possible implementation manners of the third aspect Methods.

可以理解地,上述提供的第四方面所述的电子设备,第五方面所述的计算机存储介质,以及第六方面所述的计算机程序产品均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。It can be understood that the electronic device described in the fourth aspect, the computer storage medium described in the fifth aspect, and the computer program product described in the sixth aspect are all used to execute the corresponding methods provided above, so , the beneficial effects that can be achieved may refer to the beneficial effects in the corresponding methods provided above, which will not be repeated here.

附图说明Description of drawings

图1为支持Wi-Fi技术的站点接入支持Wi-Fi技术无线接入点的示意图;FIG. 1 is a schematic diagram of a station supporting Wi-Fi technology accessing a wireless access point supporting Wi-Fi technology;

图2为采用图1所示的方式接入路由器时,路由器对各接入设备的业务数据的发送先后顺序示例图;FIG. 2 is an example diagram of the sequence of sending the service data of each access device by the router when the mode shown in FIG. 1 is used to access the router;

图3为本申请实施例提供的一种数据传输方法的信令交互图之一;FIG. 3 is one of the signaling interaction diagrams of a data transmission method provided by an embodiment of the present application;

图4为采用图3所示的数据传输方法后,路由器对各接入设备的业务数据的发送先后顺序示例图;FIG. 4 is an example diagram of the sequence of sending the service data of each access device by the router after the data transmission method shown in FIG. 3 is adopted;

图5为本申请实施例提供一种Wi-Fi设备的结构示意图;FIG. 5 provides a schematic structural diagram of a Wi-Fi device according to an embodiment of the present application;

图6为本申请实施例提供的一种数据传输方法的步骤流程图之一;FIG. 6 is one of the flowcharts of steps of a data transmission method provided by an embodiment of the present application;

图7为本申请实施例提供的信标帧的结构示意图;FIG. 7 is a schematic structural diagram of a beacon frame provided by an embodiment of the present application;

图8为本申请实施例提供的指示信息2的结构示意图之一;FIG. 8 is one of the schematic structural diagrams of indication information 2 provided in an embodiment of the present application;

图9为本申请实施例提供的指示信息2的结构示意图之二;FIG. 9 is the second schematic structural diagram of the indication information 2 provided by the embodiment of the present application;

图10为本申请实施例提供的一种数据传输方法的步骤流程图之二;FIG. 10 is the second flowchart of the steps of a data transmission method provided by an embodiment of the present application;

图11为本申请实施例提供的一种数据传输方法的步骤流程图之三;FIG. 11 is the third flowchart of the steps of a data transmission method provided by an embodiment of the present application;

图12为本申请实施例提供的指示信息1的结构示意图之一;FIG. 12 is one of the schematic structural diagrams of indication information 1 provided in an embodiment of the present application;

图13为本申请实施例提供的指示信息1的结构示意图之二;FIG. 13 is the second schematic structural diagram of the indication information 1 provided by the embodiment of the present application;

图14为本申请实施例提供的一种数据传输方法的步骤流程图之四;FIG. 14 is the fourth flowchart of the steps of a data transmission method provided by an embodiment of the present application;

图15为本申请实施例提供的指示信息3的结构示意图;FIG. 15 is a schematic structural diagram of indication information 3 provided by an embodiment of the present application;

图16为本申请实施例提供的另一种场景示意图;FIG. 16 is a schematic diagram of another scenario provided by an embodiment of the present application;

图17为本申请实施例提供的一种芯片系统的组成示意图。FIG. 17 is a schematic diagram of the composition of a chip system according to an embodiment of the present application.

具体实施方式Detailed ways

本申请实施例提供一种数据传输方法,可以应用于基于Wi-Fi技术通信的电子设备之间。上述Wi-Fi技术是Wi-Fi联盟创建于电气和电子工程师协会(institute ofelectrical and electronic engineers,IEEE)802.11标准的无线局域网技术。The embodiments of the present application provide a data transmission method, which can be applied between electronic devices that communicate based on Wi-Fi technology. The above Wi-Fi technology is a wireless local area network technology established by the Wi-Fi Alliance based on the 802.11 standard of the Institute of Electrical and Electronic Engineers (IEEE).

示例性地,支持Wi-Fi技术的设备1通过Wi-Fi协议接入支持Wi-Fi技术的设备2后,设备1和设备2间可基于Wi-Fi协议进行通信。Exemplarily, after the device 1 supporting the Wi-Fi technology accesses the device 2 supporting the Wi-Fi technology through the Wi-Fi protocol, the device 1 and the device 2 can communicate based on the Wi-Fi protocol.

需要说明的是,本申请实施例中所述的设备1可以是支持Wi-Fi的电子设备,又可称为站点(station,STA)。示例性地。上述设备1可以是手机、电视机、平板电脑、桌面型、膝上型、手持计算机、笔记本电脑、个人计算机(personal computer,PC),上网本,蜂窝电话,个人数字助理(personal digital assistant,PDA),可穿戴式设备(如智能手表),车载电脑,游戏机,摄像头,音箱以及增强现实(augmented reality,AR)\虚拟现实(virtualreality,VR)设备等支持Wi-Fi的电子设备。本申请实施例对该设备1的具体形态不作特殊限制。It should be noted that the device 1 described in the embodiments of the present application may be an electronic device supporting Wi-Fi, and may also be referred to as a station (station, STA). Exemplarily. The above-mentioned device 1 may be a mobile phone, a television, a tablet computer, a desktop, a laptop, a handheld computer, a notebook computer, a personal computer (PC), a netbook, a cellular phone, a personal digital assistant (PDA) , wearable devices (such as smart watches), car computers, game consoles, cameras, speakers, and augmented reality (AR) \ virtual reality (virtual reality, VR) devices and other Wi-Fi-enabled electronic devices. The specific form of the device 1 is not particularly limited in this embodiment of the present application.

本申请实施例中所述的设备2可以是具备访问接入(access point,AP)能力的电子设备,也即可接入Wi-Fi网络的电子设备。例如,设备2可以是路由器。The device 2 described in this embodiment of the present application may be an electronic device with an access point (access point, AP) capability, that is, an electronic device that can access a Wi-Fi network. For example, device 2 may be a router.

当然,在一些可能的实施例中,上述设备2还可以是支持Wi-Fi直连的电子设备。如,设备2还可以是手机、电视机、平板电脑、桌面型、膝上型、手持计算机、笔记本电脑、个人计算机(personal computer,PC)等。Of course, in some possible embodiments, the above-mentioned device 2 may also be an electronic device supporting Wi-Fi Direct. For example, the device 2 may also be a mobile phone, a television, a tablet computer, a desktop, a laptop, a handheld computer, a notebook computer, a personal computer (personal computer, PC), and the like.

可理解地,无论是具有AP能力的设备2还是支持Wi-Fi直连的设备2,均可称为无线接入点。Understandably, whether it is the device 2 with AP capability or the device 2 supporting Wi-Fi direct connection, it can be referred to as a wireless access point.

通常上述设备1接入设备2的过程,可分为扫描阶段、身份认证阶段和关联阶段。作为一种示例,如图1中的(a)所示,上述扫描阶段可以是设备1向设备2发送探测请求信息,如probe request帧后,触发设备2向设备1发送探测响应信息,如probe respond帧。作为另一种示例,如图1中的(b)所示,上述扫描阶段还可以是由设备2主动向外发送信标帧,如Beacon帧。从而,设备1可以通过扫描的方式得到设备2发出的信标帧。Generally, the above-mentioned process of the device 1 accessing the device 2 can be divided into a scanning phase, an identity authentication phase and an association phase. As an example, as shown in (a) of FIG. 1 , the above scanning phase may be that device 1 sends probe request information to device 2, such as a probe request frame, triggering device 2 to send probe response information to device 1, such as probe respond frame. As another example, as shown in (b) of FIG. 1 , in the above-mentioned scanning phase, the device 2 may actively send out a beacon frame, such as a Beacon frame. Therefore, the device 1 can obtain the beacon frame sent by the device 2 by scanning.

也即,在扫描阶段中,设备1可以依据接收到的probe respond帧或Beacon帧,决策是否接入设备2。在设备1确定要接入设备2的情况下,进入身份认证阶段。That is, in the scanning phase, the device 1 can decide whether to access the device 2 according to the received probe respond frame or Beacon frame. When the device 1 determines to access the device 2, the identity authentication stage is entered.

在身份认证阶段中,设备1向设备2发送身份认证请求,如Authenticationrequest帧,以获取设备2反馈的身份认证响应,如,Authentication respond帧。In the identity authentication phase, the device 1 sends an identity authentication request, such as an Authentication request frame, to the device 2 to obtain an identity authentication response returned by the device 2, such as an Authentication respond frame.

作为一种实现方式,上述身份认证请求中携带指示认证算法类型的信息,如携带指示认证算法类型为Shared Key的信息。作为对述身份认证请求的响应,设备2向设备1反馈挑战明文(plain text challenge)。设备1利用预置的密钥对挑战明文加密后,得到挑战密文(Cipher text challenge),并向设备2发送。设备2将接收到的挑战密文进行解密后,与挑战明文进行比较。如果一致,设备2向设备1发送身份认证响应,从而,完成身份认证。As an implementation manner, the above-mentioned identity authentication request carries information indicating the authentication algorithm type, for example, carries information indicating that the authentication algorithm type is Shared Key. In response to the identity authentication request, device 2 feeds back a plain text challenge to device 1. After the device 1 encrypts the challenge plaintext with the preset key, it obtains the challenge cipher text (Cipher text challenge), and sends it to the device 2. Device 2 decrypts the received challenge ciphertext and compares it with the challenge plaintext. If they are consistent, device 2 sends an identity authentication response to device 1, thereby completing identity authentication.

在完成身份认证之后,设备1还需向设备2发送关联请求,如,associationrequest帧。设备2向设备1回复关联响应,如,association respond帧。之后,设备1即可与设备2进行通信。After completing identity authentication, device 1 also needs to send an association request to device 2, such as an associationrequest frame. Device 2 replies to device 1 with an association response, eg, an association respond frame. After that, device 1 can communicate with device 2.

当然,其他的支持Wi-Fi技术的设备也可以同样的方式接入设备2。显然,作为AP的设备2可以同时被多台支持Wi-Fi技术的设备接入。然而,设备2可提供的空口资源(时域资源、频域资源等)是有限的,在多台支持Wi-Fi技术的设备接入后,需按照轮询的调度方式,依次为各个接入的设备分配空口资源。这也就意味着,在设备2的空口资源被占用后,新接入的设备则需等待。也就是,在存在多台支持Wi-Fi技术的设备接入设备2的情况下,由于设备2的空口资源不足,一方面,设备2不能及时为新接入的设备1创建分组数据单元(packetdata unit,PDU)会话,另一方面,设备2不能及时调度空口资源为设备1发送业务数据至Wi-Fi网络侧,进而导致设备1出现数据传输延迟。Of course, other devices supporting the Wi-Fi technology can also access the device 2 in the same way. Obviously, the device 2 serving as an AP can be simultaneously accessed by multiple devices supporting the Wi-Fi technology. However, the air interface resources (time domain resources, frequency domain resources, etc.) that can be provided by device 2 are limited. After multiple Wi-Fi technology-enabled devices are connected, they need to follow the round-robin scheduling method to access each access in turn. The device allocates air interface resources. This also means that after the air interface resources of the device 2 are occupied, the newly connected device needs to wait. That is, when there are multiple devices supporting Wi-Fi technology accessing the device 2, because the air interface resources of the device 2 are insufficient, on the one hand, the device 2 cannot create a packet data unit for the newly accessed device 1 in time. unit, PDU) session, on the other hand, device 2 cannot schedule air interface resources in time for device 1 to send service data to the Wi-Fi network side, thereby causing device 1 to experience data transmission delays.

在此场景下,设备1很难满足实时类应用的数据传输要求。In this scenario, it is difficult for device 1 to meet the data transmission requirements of real-time applications.

如图2所示,以手机(设备1)、平板电脑(其他设备)、笔记本电脑(其他设备),均需接入路由器(设备2)进行举例。As shown in FIG. 2 , a mobile phone (device 1), a tablet computer (other devices), and a notebook computer (other devices) all need to be connected to a router (device 2) for example.

在图2示出的场景中,手机启动实时类应用,如,实时在线游戏时,需通过路由器与游戏服务器进行数据交互,如传输业务数据1。平板电脑启动直播视频时,需通过路由器接收直播服务器传输的直播数据流,如传输业务数据2。笔记本电脑启动聊天应用时,需通过路由器与聊天服务器进行数据交互,如传输业务数据3。其中,上述业务数据是设备内运行的应用所产生、需通过设备2发送的数据。In the scenario shown in FIG. 2 , when a mobile phone starts a real-time application, such as a real-time online game, it needs to perform data interaction with the game server through a router, such as transmitting service data 1 . When the tablet computer starts the live video, it needs to receive the live data stream transmitted by the live server through the router, such as the transmission of business data 2. When the laptop starts the chat application, it needs to exchange data with the chat server through the router, such as transmitting business data3. The above service data is data generated by an application running in the device and needs to be sent through the device 2 .

在图2所示场景中,路由器为平板电脑、笔记本电脑、手机创建PDU会话后,按照轮询的调度方式为平板电脑、笔记本电脑、手机所发出的业务数据分配空口资源。就可能出现利用空口资源发送业务数据1的时间,晚于业务数据2和业务数据3。In the scenario shown in Figure 2, after the router creates a PDU session for the tablet, laptop, and mobile phone, it allocates air interface resources for the service data sent by the tablet, laptop, and mobile phone according to the round-robin scheduling method. It may occur that the time for sending service data 1 by using air interface resources is later than that of service data 2 and service data 3.

然而,从各设备运行的应用角度看,手机使用的实时在线游戏对数据传输的时效性要求较高,且所需传输的数据量小。平板电脑需使用的直播视频对数据传输的时效性要求次之,且所需传输的数据量大。笔记本电脑需使用的聊天应用对数据传输的时效性要求低。However, from the perspective of applications running on various devices, real-time online games used by mobile phones have high requirements on the timeliness of data transmission, and the amount of data to be transmitted is small. The live video that needs to be used by the tablet computer has the next requirement on the timeliness of data transmission, and the amount of data to be transmitted is large. The chat application to be used by the laptop has low requirements on the timeliness of data transmission.

也就是,在相关技术中,手机内运行的实时类应用的低时延业务需求就得不到保障。如,手机出现严重的时延,导致无法正常启动实时在线游戏,影响用户的使用体验。That is, in the related art, the low-latency service requirements of real-time applications running in the mobile phone cannot be guaranteed. For example, a serious delay occurs on the mobile phone, so that the real-time online game cannot be started normally, which affects the user experience.

为了改善上述问题,本申请实施例提供了一种数据传输方法。上述方法包括:在设备1在接入设备2后,设备1通过向设备2请求启动低时延服务,通过低时延服务可提高设备1的数据传输优先级。从而,促使设备2优先为设备1创建PDU会话,及优先将设备1的业务数据发出,避免设备1出现数据传输延迟的问题。In order to improve the above problems, the embodiments of the present application provide a data transmission method. The above method includes: after the device 1 accesses the device 2, the device 1 requests the device 2 to start the low-latency service, and the low-latency service can improve the data transmission priority of the device 1. Therefore, the device 2 is urged to preferentially create a PDU session for the device 1, and to preferentially send the service data of the device 1, so as to avoid the problem of data transmission delay in the device 1.

示例性地,如图3所示,第一STA(也即,设备1)和第二STA接入AP(也即,设备2)的情况下,第一STA、第二STA和AP组成数据传输系统。如果第一STA向AP发送指示信息1,又称为第一指示信息。其中,上述指示信息1,用于指示启动低时延服务。在AP支持低时延特性且能够为第一STA提供低时延服务情况下,AP可向第一STA提供低时延服务。在低时延服务期间,即使AP先接受到第二STA的业务数据,AP也会优先利用空口资源将第一STA发送的业务数据发送出去。从而,减少设备1的等待时长,缩短设备1的业务数据的传输时耗。从而,提高设备1的数据传输时效性。Exemplarily, as shown in FIG. 3 , when the first STA (ie, device 1) and the second STA access the AP (ie, device 2), the first STA, the second STA and the AP constitute data transmission system. If the first STA sends indication information 1 to the AP, it is also referred to as the first indication information. The above-mentioned indication information 1 is used to instruct to start the low-latency service. Under the condition that the AP supports the low-latency feature and can provide the first STA with the low-latency service, the AP may provide the first STA with the low-latency service. During the low-latency service period, even if the AP receives the service data of the second STA first, the AP will preferentially use the air interface resources to send the service data sent by the first STA. Therefore, the waiting time of the device 1 is reduced, and the transmission time consumption of the service data of the device 1 is shortened. Therefore, the timeliness of data transmission of the device 1 is improved.

例如,在平板电脑、笔记本电脑、手机先后接入路由器的情况下,如图4所示,在手机(第一STA)申请了低时延服务,而平板电脑和笔记本电脑(第二STA)未申请低时延服务的情况下,业务数据1在路由器中的传输优先级高于业务数据2和业务数据3。如此,路由器会优先利用空口资源传输业务数据1,改善手机出现数据传输延迟的问题。提高用户的使用体验。For example, when a tablet computer, a laptop computer, and a mobile phone are successively connected to the router, as shown in Figure 4, the mobile phone (the first STA) applies for a low-latency service, but the tablet computer and the laptop computer (the second STA) do not In the case of applying for low-latency service, the transmission priority of service data 1 in the router is higher than that of service data 2 and service data 3. In this way, the router will preferentially use the air interface resources to transmit service data 1, so as to improve the problem of data transmission delay in the mobile phone. Improve user experience.

在一些实施例中,在第一STA发送指示信息1之前,同时段下,第一STA发送给AP的业务数据可称为第一业务数据,第二STA发送给AP的业务数据可称为第二业务数据。在第一STA发送指示信息1之后,同时段下,第一STA发送给AP的业务数据可称为第三业务数据。在一些实施例中,第三业务数据可以指代第一STA向AP发送的所有业务数据。在另一些实施例中,第三业务数据可以指代第一STA向AP发送的实时类应用的业务数据。第二STA发送给AP的业务数据可称为第四业务数据。此外,第四业务数据还可以指代未申请低时延服务的设备所发送的业务数据。In some embodiments, before the first STA sends the indication information 1, in the same period, the service data sent by the first STA to the AP may be called the first service data, and the service data sent by the second STA to the AP may be called the first service data. 2. Business data. After the first STA sends the indication information 1, in the same period, the service data sent by the first STA to the AP may be called third service data. In some embodiments, the third service data may refer to all service data sent by the first STA to the AP. In other embodiments, the third service data may refer to service data of real-time applications sent by the first STA to the AP. The service data sent by the second STA to the AP may be referred to as fourth service data. In addition, the fourth service data may also refer to service data sent by a device that has not applied for a low-latency service.

下面将结合附图对本申请实施例的实施方式进行详细描述。The implementation of the embodiments of the present application will be described in detail below with reference to the accompanying drawings.

如图5所示,为本申请实施例提供的设备1和设备2的结构示意图。为了方便描述,将设备1和设备2统称为Wi-Fi设备。As shown in FIG. 5 , it is a schematic structural diagram of a device 1 and a device 2 provided in an embodiment of the present application. For convenience of description, Device 1 and Device 2 are collectively referred to as Wi-Fi devices.

如图5所示,Wi-Fi设备可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中,传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。As shown in FIG. 5 , the Wi-Fi device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, key 190, motor 191, indicator 192, camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195 and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and an environmental sensor Light sensor 180L, bone conduction sensor 180M, etc.

可以理解的是,本实施例示意的结构并不构成对Wi-Fi设备的具体限定。在另一些实施例中,Wi-Fi设备可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the Wi-Fi device. In other embodiments, the Wi-Fi device may include more or fewer components than shown, or some components may be combined, or some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

例如,Wi-Fi设备为路由器的情况下,可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,无线通信模块160。For example, when the Wi-Fi device is a router, it may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, and a power management module 141 , battery 142, antenna 1, antenna 2, wireless communication module 160.

再例如,Wi-Fi设备为手机的情况下,可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。For another example, when the Wi-Fi device is a mobile phone, it may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1 , Antenna 2, Mobile Communication Module 150, Wireless Communication Module 160, Audio Module 170, Speaker 170A, Receiver 170B, Microphone 170C, Headphone Interface 170D, Sensor Module 180, Key 190, Motor 191, Indicator 192, Camera 193, Display Screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195 and so on.

此外,处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。In addition, the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processing image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and/or neural-network processing unit (NPU) )Wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.

控制器可以是Wi-Fi设备的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can be the nerve center and command center of a Wi-Fi device. The controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.

处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.

在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuitsound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purposeinput/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuitsound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver (universal asynchronous receiver) interface /transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and/or Universal serial bus (universal serial bus, USB) interface, etc.

充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过Wi-Fi设备的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为Wi-Fi设备供电。The charging management module 140 is used to receive charging input from the charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from the wired charger through the USB interface 130 . In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through the wireless charging coil of the Wi-Fi device. While the charging management module 140 is charging the battery 142, the power management module 141 can also supply power to the Wi-Fi device.

电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 . The power management module 141 receives input from the battery 142 and/or the charging management module 140 and supplies power to the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 . The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance). In some other embodiments, the power management module 141 may also be provided in the processor 110 . In other embodiments, the power management module 141 and the charging management module 140 may also be provided in the same device.

Wi-Fi设备的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the Wi-Fi device may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.

天线1和天线2用于发射和接收电磁波信号。Wi-Fi设备中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in a Wi-Fi device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.

移动通信模块150可以提供应用在Wi-Fi设备上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G, etc. applied on the Wi-Fi device. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 . In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .

调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Wherein, the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and passed to the application processor. The application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 . In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.

无线通信模块160可以提供应用在Wi-Fi设备上的包括无线局域网(wirelesslocal area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。例如,在本实施例中,无线通信模块160可以用于发送probe request帧,还可用于接收来自其他Wi-Fi设备的probe response帧。The wireless communication module 160 can provide applications on Wi-Fi devices including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites System (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 . For example, in this embodiment, the wireless communication module 160 may be configured to send probe request frames, and may also be configured to receive probe response frames from other Wi-Fi devices.

在一些实施例中,Wi-Fi设备的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得Wi-Fi设备可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(codedivision multiple access,CDMA),宽带码分多址(wideband code division multipleaccess,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidounavigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellitesystem,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the Wi-Fi device is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the Wi-Fi device can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code Wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM , and/or IR technology, etc. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou satellite navigation system (BDS), a quasi-zenith satellite system (quasi- zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).

数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当Wi-Fi设备在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。A digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when a Wi-Fi device selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy, etc.

外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展Wi-Fi设备的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the Wi-Fi device. The external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card.

内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行Wi-Fi设备的各种功能应用以及数据处理。例如,在本申请实施例中,处理器110可通过运行存储在内部存储器121的指令,使得Wi-Fi设备发送probe request帧,接收probe response帧。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储Wi-Fi设备使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。Internal memory 121 may be used to store computer executable program code, which includes instructions. The processor 110 executes various functional applications and data processing of the Wi-Fi device by executing the instructions stored in the internal memory 121 . For example, in this embodiment of the present application, the processor 110 may cause the Wi-Fi device to send a probe request frame and receive a probe response frame by executing an instruction stored in the internal memory 121 . The internal memory 121 may include a storage program area and a storage data area. The storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like. The storage data area can store data (such as audio data, phone book, etc.) created during the use of the Wi-Fi device. In addition, the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.

以下实施例中的方法均可以在具有上述硬件结构的设备中实现。The methods in the following embodiments can all be implemented in a device having the above-mentioned hardware structure.

下面以设备1为手机,设备2为路由器为例,描述本申请实施例所提供的方法。The method provided by the embodiment of the present application is described below by taking the device 1 as a mobile phone and the device 2 as a router as an example.

在本申请的一种实施例中,如图6所述,上述数据传输方法可以包括以下步骤:In an embodiment of the present application, as shown in FIG. 6 , the above data transmission method may include the following steps:

S101,路由器发送信标帧。S101, the router sends a beacon frame.

其中,上述信标帧是周期性发送的Wi-Fi帧,又称为Beacon帧。路由器通过发送信标帧让外界设备,如,手机、平板电脑、笔记本电脑等支持Wi-Fi功能的设备,发现该路由器。The above-mentioned beacon frame is a Wi-Fi frame sent periodically, and is also called a Beacon frame. The router allows external devices, such as mobile phones, tablet computers, laptops and other Wi-Fi-enabled devices, to discover the router by sending beacon frames.

在一些实施例中,上述信标帧中可以包括路由器的特性信息,如低时延特性信息。其中,上述特性信息可以用于指示路由器对各类特性是否支持,如,可以用于指示是否支持低时延特性。作为一种示例,上述用于指示是否支持低时延特性的特性信息可以包含在信标帧中的保留字段中,如,Beacon帧中的供应商专用字段(vendor-specific)中。In some embodiments, the above-mentioned beacon frame may include characteristic information of the router, such as low-latency characteristic information. The above feature information can be used to indicate whether the router supports various features, for example, can be used to indicate whether the low-latency feature is supported. As an example, the above-mentioned feature information for indicating whether the low-latency feature is supported may be included in a reserved field in the beacon frame, such as a vendor-specific field (vendor-specific) in the Beacon frame.

示例性地,参考图7,其示出了本申请实施例提供的Beacon帧700的帧结构。如图7所示,上述Beacon帧700包括帧头(即MAC头)701、帧实体(frame body)702和帧校验(framecheck sequence,FCS)域703。其中,上述MAC头701即为媒体访问控制(media accesscontrol,MAC)header。For example, referring to FIG. 7 , it shows the frame structure of the Beacon frame 700 provided by the embodiment of the present application. As shown in FIG. 7 , the above-mentioned Beacon frame 700 includes a frame header (ie, a MAC header) 701 , a frame body (frame body) 702 and a frame check sequence (FCS) field 703 . The above-mentioned MAC header 701 is a media access control (media access control, MAC) header.

其中,帧头701包括帧控制域(frame control)、持续时间(duration)、地址域(address)、站点的MAC地址(BSSID)、序列控制域(sequence Control)和高吞吐控制(HTControl)。帧控制域的类型type=00,亚型subtype=1000。The frame header 701 includes frame control, duration, address, station MAC address (BSSID), sequence control and high throughput control (HTControl). The frame control field has type type=00 and subtype subtype=1000.

其中,帧实体(frame body)702包括非信息元素的字段(Fields that are notinformation element)7021和信息元素的字段(Fields that are information element)7022。上述信息元素的字段7022由多个信息元素(information element)组成。每一个上述信息元素可以包括元素ID(element ID)、长度(Length)和信息(information)等部分。上述信息元素的类型包括SSID字段、支持速率(supported Rates)、扩展支持速率(extendedsupported rates)及“vendor-specific”字段等。在一些实施例中,可以通过信息元素的元素ID区分信息元素对应的类型。The frame body 702 includes a field (Fields that are not information element) 7021 and a field (Fields that are information element) 7022 of an information element. The field 7022 of the above-mentioned information element is composed of a plurality of information elements. Each of the above information elements may include elements such as element ID (element ID), length (Length) and information (information). The types of the above information elements include SSID fields, supported rates (supported rates), extended supported rates (extended supported rates), and "vendor-specific" fields. In some embodiments, the type corresponding to the information element can be distinguished by the element ID of the information element.

示例性地,元素ID为211的信息元素也即“vendor-specific”字段,元素ID为0的信息元素也即“SSID”字段,元素ID为1的信息元素也即“Rates”字段等。其他元素ID的信息元素对应的字段可参照Wi-Fi协议中的介绍,在此不再赘述。Exemplarily, the information element with the element ID of 211 is the "vendor-specific" field, the information element with the element ID of 0 is the "SSID" field, the information element with the element ID of 1 is the "Rates" field, and so on. For the fields corresponding to the information elements of other element IDs, reference may be made to the introduction in the Wi-Fi protocol, and details are not repeated here.

在一些实施例中,信标帧中的“vendor-specific”字段除了包括元素ID之外,还可以包括Length、information和组织唯一标识符(Organizationally unique identifier,OUI)。其中,OUI用于表明定义该字段的组织。In some embodiments, the "vendor-specific" field in the beacon frame may include, in addition to the element ID, Length, information, and an organizationally unique identifier (OUI). Among them, OUI is used to indicate the organization that defines the field.

作为一种示例,上述“vendor-specific”所对应的长度可以是9。上述“vendor-specific”所对应的information中可以包括值(value),上述value可以包括6个字节。不同字节对应不同的含义,也即,携带不同信息内容。As an example, the length corresponding to the above "vendor-specific" may be 9. The information corresponding to the above-mentioned "vendor-specific" may include a value, and the above-mentioned value may include 6 bytes. Different bytes correspond to different meanings, that is, carry different information contents.

例如,Value[0],也即Value中的第一个字节,用于指示字段的类型。如Value[0]可以是0x01,用于表示该信息元素为vendor-specific字段。Value[1]是Value中的第二个字节,为了可扩展性而预留的1个字节,Value[1]可置为rsv。Value[2:3],是Value中第三和第四个字节,用于枚举特性。不同特性类型和不同值之间的对应关系可以预先定义。如,预先定义0x0001指代低时延特性的情况下,Value[2:3]对应的值为0x0001,则指示枚举的特性为低时延特性。如此,Value[2:3]取其他值时,还可以用于指示枚举其他特性。Value[4:5],也即Value中的第五字节和第六字节,用于指示是否支持所枚举的特性。如Value[4:5]为0x0001时,用于指示本设备支持;再如Value[4:5]可以是0x0000时,用于指示本设备不支持。当然,还可以是在Value[4:5]为0x0000时,用于指示本设备支持;在Value[4:5]为0x0001时,用于指示本设备不支持。For example, Value[0], the first byte in Value, is used to indicate the type of the field. For example, Value[0] can be 0x01, which is used to indicate that the information element is a vendor-specific field. Value[1] is the second byte in Value, 1 byte reserved for scalability, Value[1] can be set to rsv. Value[2:3], the third and fourth bytes in Value, are used to enumerate properties. The correspondence between different property types and different values can be predefined. For example, if it is pre-defined that 0x0001 refers to the low-latency feature, the value corresponding to Value[2:3] is 0x0001, indicating that the enumerated feature is the low-latency feature. In this way, when Value[2:3] takes other values, it can also be used to indicate other characteristics of the enumeration. Value[4:5], that is, the fifth and sixth bytes in Value, are used to indicate whether the enumerated features are supported. For example, when Value[4:5] is 0x0001, it is used to indicate that the device supports it; for example, when Value[4:5] can be 0x0000, it is used to indicate that the device does not support it. Of course, when Value[4:5] is 0x0000, it can be used to indicate that the device supports it; when Value[4:5] is 0x0001, it can be used to indicate that the device does not support it.

如此,手机可以根据信标帧中的“vendor-specific”字段,确定路由器是否支持低时延特性。如,从信标帧中元素ID为221且Value[2:3]为0x0001的vendor-specific中,识别Value[4:5]的取值,如果Value[4:5]取值为0x0001,那么手机确认路由器支持低时延特性,如果Value[4:5]取值为0x0000,那么手机确认路由器不支持低时延特性。In this way, the mobile phone can determine whether the router supports the low-latency feature according to the "vendor-specific" field in the beacon frame. For example, identify the value of Value[4:5] from the vendor-specific whose element ID is 221 and Value[2:3] is 0x0001 in the beacon frame. If Value[4:5] is 0x0001, then The mobile phone confirms that the router supports the low-latency feature. If the Value[4:5] value is 0x0000, the mobile phone confirms that the router does not support the low-latency feature.

可以理解的,支持低时延特性的路由器可以向接入的设备提供低时延服务。故,路由器可以通过发送包含用于指示支持低时延特性的信标帧,通知外界设备(也即,发现该路由器的Wi-Fi设备,如手机)该路由器可提供低时延服务。如此,外接设备(如,手机)也可以据此决策是否向路由器请求低时延服务。It is understandable that a router that supports the low-latency feature can provide low-latency services to connected devices. Therefore, the router can notify external devices (ie, Wi-Fi devices that discover the router, such as mobile phones) that the router can provide low-latency services by sending a beacon frame containing a beacon frame indicating that the low-latency feature is supported. In this way, an external device (eg, a mobile phone) can also decide whether to request a low-latency service from the router accordingly.

当然,在另一些实施例中,信标帧也可以不携带指示是否支持低时延特性的特性信息。例如,在所有路由器都能够支持低时延特性的场景下,路由器所发送的信标帧中可以不携带指示是否支持低时延特性的特性信息。Of course, in other embodiments, the beacon frame may also not carry characteristic information indicating whether the low-latency characteristic is supported. For example, in a scenario where all routers can support the low-latency feature, the beacon frame sent by the routers may not carry feature information indicating whether the low-latency feature is supported.

S102,手机响应于信标帧,向路由器发送身份认证请求。S102, the mobile phone sends an identity authentication request to the router in response to the beacon frame.

在一些实施例中,上述身份认证请求可以是Authentication request帧。In some embodiments, the above-mentioned identity authentication request may be an Authentication request frame.

S103,路由器向手机发送身份认证响应。S103, the router sends an identity authentication response to the mobile phone.

在一些实施例中,上述身份认证响应可以是Authentication respond帧。In some embodiments, the above-mentioned authentication response may be an Authentication respond frame.

上述S102和S103可以是手机接入路由器的身份认证环节。在一些实施例中,可以采用Shared key的方式实现。当然,也可以采用其他方式进行身份认证。实现过程可参考相关技术和协议,在此不再赘述。在路由器向手机发送身份认证响应用于指示身份认证通过的情况下,流程进入S104。The above S102 and S103 may be an identity authentication link for the mobile phone to access the router. In some embodiments, it can be implemented in the manner of Shared key. Of course, other methods can also be used for identity authentication. For the implementation process, reference may be made to related technologies and protocols, which will not be repeated here. In the case that the router sends an identity authentication response to the mobile phone to indicate that the identity authentication is passed, the process proceeds to S104.

S104,手机向路由器发起关联请求。S104, the mobile phone initiates an association request to the router.

在一些实施例中,上述关联请求可以是association request帧。In some embodiments, the above association request may be an association request frame.

S105,路由器向手机发送关联响应。S105, the router sends an association response to the mobile phone.

在一些实施例中,上述关联响应可以是association respond帧。In some embodiments, the association response described above may be an association respond frame.

上述S104和S105可以是手机接入路由器的关联环节。实现过程可参考相关技术和协议,在此不再赘述。The above-mentioned S104 and S105 may be an association link for the mobile phone to access the router. For the implementation process, reference may be made to related technologies and protocols, which will not be repeated here.

在一些实施例中,在满足预设条件的情况下,流程进入S106。In some embodiments, if the preset condition is satisfied, the process proceeds to S106.

示例性地,上述满足预设条件包括手机与路由器之间关联成功。Exemplarily, the above-mentioned satisfying the preset condition includes that the association between the mobile phone and the router is successful.

又示例性地,上述满足预设条件还包括在手机与路由器之间关联成功后,手机启动实时类应用,如实时在线游戏。For another example, satisfying the preset conditions further includes that after the mobile phone and the router are successfully associated, the mobile phone starts a real-time application, such as a real-time online game.

此外,再示例性地,上述满足预设条件还包括手机确定路由器支持低时延特性。In addition, in another exemplary manner, satisfying the preset condition further includes that the mobile phone determines that the router supports the low-latency feature.

在一些实施例中,若所有路由器都是默认支持低时延特性的,那么手机也默认所有可接入的路由器都支持低时延特性,如此,信标帧中便可以不携带指示是否支持低时延特性的标识。在另一些实施例中,手机还可以根据信标帧中携带的特性信息判断路由器是否支持低时延特性,原理可参考前述实施例中的描述。从而,减少无效的空口交互,提高手机与路由器之间的数据交互效率。In some embodiments, if all routers support the low-latency feature by default, the mobile phone also supports the low-latency feature by default on all accessible routers. In this way, the beacon frame may not carry an indication whether the low-latency feature is supported. Identifier of the delay characteristic. In other embodiments, the mobile phone can also determine whether the router supports the low-latency feature according to the feature information carried in the beacon frame, and the principle may refer to the description in the foregoing embodiments. Therefore, invalid air interface interaction is reduced, and the data interaction efficiency between the mobile phone and the router is improved.

S106,在满足预设条件下,手机向路由器发送指示信息2。S106, the mobile phone sends indication information 2 to the router under the condition that the preset condition is satisfied.

在一些实施例中,上述指示信息2又称为第四指示信息。上述指示信息2可以是Wi-Fi帧。此外,上述指示信息2可用于指示注册低时延特性,又可称为指示低时延特性使能。上述指示信息2包括用于指示低时延特性注册的内容,该用于指示低时延特性注册的内容可以存放在Wi-Fi帧的保留字段中。上述Wi-Fi帧的结构可以参考Wi-Fi协议的规定。上述Wi-Fi帧可以分为多个类型,如控制帧、管理帧和数据帧。In some embodiments, the above-mentioned indication information 2 is also referred to as fourth indication information. The above-mentioned indication information 2 may be a Wi-Fi frame. In addition, the above-mentioned indication information 2 may be used to indicate the registration of the low-latency feature, and may also be referred to as indicating that the low-latency feature is enabled. The above-mentioned indication information 2 includes content for indicating the registration of the low-latency feature, and the content for indicating the registration of the low-latency feature may be stored in a reserved field of the Wi-Fi frame. For the structure of the above Wi-Fi frame, reference may be made to the Wi-Fi protocol. The above-mentioned Wi-Fi frames can be classified into multiple types, such as control frames, management frames, and data frames.

在本申请实施例中,指示信息2可以是控制帧,也可以是管理帧,对此不作限定。In this embodiment of the present application, the indication information 2 may be a control frame or a management frame, which is not limited.

按照Wi-Fi协议中的规定,Wi-Fi帧的每一个类型又对应着多个亚型。According to the regulations in the Wi-Fi protocol, each type of Wi-Fi frame corresponds to multiple subtypes.

如,管理帧的亚型还可以包括Beacon帧、Authentication request帧、Authentication respond帧、association request帧、association respond帧和Reserved帧等。参考表1:For example, the subtypes of the management frame may also include a Beacon frame, an Authentication request frame, an Authentication respond frame, an association request frame, an association respond frame, a Reserved frame, and the like. Refer to Table 1:

表1Table 1

Figure BDA0003093084490000141
Figure BDA0003093084490000141

如表1所示,Subtype可通过不同取值,指示该管理帧的亚型是Beacon帧、Authentication request帧、Authentication respond帧、association request帧、association respond帧、Probe request帧、Probe Response帧或保留帧等管理帧中的哪一种帧。As shown in Table 1, Subtype can take different values to indicate that the subtype of the management frame is Beacon frame, Authentication request frame, Authentication respond frame, association request frame, association respond frame, Probe request frame, Probe Response frame or reserved frame Which kind of frame in the management frame etc.

例如,当Type=00,Subtype=0000时,指示Wi-Fi帧为管理帧,对应的亚型为Association Request帧。当Type=00,Subtype=0001时,指示Wi-Fi帧为管理帧,对应的亚型为Association Response帧。当Type=00,Subtype=1011时,指示Wi-Fi帧为管理帧,对应的亚型为Authentication帧。当Type=00,Subtype=1000时,指示Wi-Fi帧是Beacon帧;当Type=00,Subtype=1111时,指示Wi-Fi帧为管理帧,对应的亚型为保留帧。For example, when Type=00 and Subtype=0000, it indicates that the Wi-Fi frame is a management frame, and the corresponding subtype is an Association Request frame. When Type=00 and Subtype=0001, it indicates that the Wi-Fi frame is a management frame, and the corresponding subtype is an Association Response frame. When Type=00 and Subtype=1011, it indicates that the Wi-Fi frame is a management frame, and the corresponding subtype is an Authentication frame. When Type=00, Subtype=1000, it indicates that the Wi-Fi frame is a Beacon frame; when Type=00, Subtype=1111, it indicates that the Wi-Fi frame is a management frame, and the corresponding subtype is a reserved frame.

再如,控制帧的亚型还可以包括Reserved帧、Trigger帧等。参考表2:For another example, the subtype of the control frame may also include a Reserved frame, a Trigger frame, and the like. Refer to Table 2:

表2Table 2

Figure BDA0003093084490000151
Figure BDA0003093084490000151

如表2所示,当Type=01,Subtype=0000时,指示Wi-Fi帧为控制帧,对应的亚型为保留帧。当Type=01,Subtype=0001时,指示Wi-Fi帧为控制帧,对应的亚型为保留帧。当Type=01,Subtype=0010时,指示Wi-Fi帧为控制帧,对应的亚型为触发帧等。As shown in Table 2, when Type=01 and Subtype=0000, it indicates that the Wi-Fi frame is a control frame, and the corresponding subtype is a reserved frame. When Type=01 and Subtype=0001, it indicates that the Wi-Fi frame is a control frame, and the corresponding subtype is a reserved frame. When Type=01 and Subtype=0010, it indicates that the Wi-Fi frame is a control frame, and the corresponding subtype is a trigger frame, etc.

当然,控制帧还可以包括其他亚型,具体可参见Wi-Fi协议中的规定,在此不再赘述。Of course, the control frame may also include other subtypes. For details, please refer to the regulations in the Wi-Fi protocol, which will not be repeated here.

当然,无论指示信息2是控制帧还是管理帧,指示信息2中用于指示低时延特性注册的内容均可以在对应的帧实体中。Certainly, regardless of whether the indication information 2 is a control frame or a management frame, the content in the indication information 2 for indicating the registration of the low-latency feature may be in the corresponding frame entity.

以指示信息2是管理帧,且对应的亚型为保留帧为例,用于指示低时延特性注册的内容可以保存在保留信息元素中。上述保留信息元素为管理帧的保留字段,以信息元素(information element)的形式存在,其元素ID可参照Wi-Fi协议。如图8所示,指示信息2所对应的帧头801的类型域中Type=00,Subtype=1111。指示信息2所对应的帧实体802包括保留的信息元素,信息元素中:Taking the indication information 2 as a management frame and the corresponding subtype as a reserved frame as an example, the content for indicating the registration of the low-latency feature may be stored in the reserved information element. The above-mentioned reserved information element is a reserved field of the management frame, and exists in the form of an information element (information element), and its element ID can refer to the Wi-Fi protocol. As shown in FIG. 8 , in the type field of the frame header 801 corresponding to the indication information 2, Type=00 and Subtype=1111. The frame entity 802 corresponding to the indication information 2 includes the reserved information element, in the information element:

Frame Body.dataByte[0-1],用于枚举特性,如,Frame Body.dataByte[0-1]为0x0001时,指示低时延特性。Frame Body.dataByte[0-1] is used to enumerate characteristics. For example, when Frame Body.dataByte[0-1] is 0x0001, it indicates low latency characteristics.

Frame Body.dataByte[2-3],用于指示被枚举特性的相关事项,如FrameBody.dataByte[0-1]为0x0001且Frame Body.dataByte[2-3]为0x0001时,用于指示低时延特性注册。可理解地,上述低时延特性注册是低时延特性的相关事项之一。Frame Body.dataByte[2-3] is used to indicate the related matters of the enumerated characteristics. For example, when FrameBody.dataByte[0-1] is 0x0001 and Frame Body.dataByte[2-3] is 0x0001, it is used to indicate low Delay feature registration. Understandably, the above-mentioned low-latency feature registration is one of the related matters of the low-latency feature.

也即,Frame Body.dataByte[0-1]为0x0001且Frame Body.dataByte[2-3]为0x0001为指示信息2中用于指示低时延特性注册的内容。That is, Frame Body.dataByte[0-1] is 0x0001 and Frame Body.dataByte[2-3] is 0x0001, which are the contents of the indication information 2 used to indicate the registration of the low-latency feature.

此外,Frame Body.dataByte[4-7]为保留字段。In addition, Frame Body.dataByte[4-7] is a reserved field.

当然,侦头801中还可以包括:持续时间(duration)、地址域(address)、站点的MAC地址(BSSID)、序列控制域(sequence Control)和高吞吐控制(HT Control),对此不再赘述。Of course, the detection header 801 may also include: duration, address field, station MAC address (BSSID), sequence control field (sequence Control), and high throughput control (HT Control), which is no longer required. Repeat.

以指示信息2是控制帧,且对应的亚型为保留帧为例,用于指示低时延特性注册的内容可以保存在帧实体902中。如图9所示,指示信息2所对应的帧头901的类型域中Type=01,Subtype=0000。指示信息2所对应的帧实体902中:Taking the indication information 2 as a control frame and the corresponding subtype as a reserved frame as an example, the content for indicating the registration of the low-latency feature may be stored in the frame entity 902 . As shown in FIG. 9 , in the type field of the frame header 901 corresponding to the indication information 2, Type=01, Subtype=0000. In the frame entity 902 corresponding to the indication information 2:

Frame Body.dataByte[0-1],用于枚举特性,如,Frame Body.dataByte[0-1]为0x0001时,用于指示低时延特性。Frame Body.dataByte[0-1] is used to enumerate characteristics. For example, when Frame Body.dataByte[0-1] is 0x0001, it is used to indicate low latency characteristics.

Frame Body.dataByte[2-3],用于指示被枚举特性的相关事项,如FrameBody.dataByte[0-1]为0x0001且Frame Body.dataByte[2-3]为0x0001时,用于指示低时延特性注册。可理解地,上述低时延特性注册为低时延特性的相关事项之一。Frame Body.dataByte[2-3] is used to indicate the related matters of the enumerated characteristics. For example, when FrameBody.dataByte[0-1] is 0x0001 and Frame Body.dataByte[2-3] is 0x0001, it is used to indicate low Delay feature registration. Understandably, the above-mentioned low-latency feature is registered as one of the related matters of the low-latency feature.

此外,Frame Body.dataByte[4-7]为保留字段。In addition, Frame Body.dataByte[4-7] is a reserved field.

S107,路由器向手机发送指示响应信息2。S107, the router sends indication response information 2 to the mobile phone.

在一些实施例中,上述指示响应信息2又称为第四响应信息。上述指示响应信息2用于指示特性注册的结果。上述指示响应信息2携带了用于指示特性注册结果的内容。上述指示响应信息2也可以是Wi-Fi帧,如可以控制帧或管理帧。上述用于指示特性注册结果的内容也可以存放在Wi-Fi帧的保留字段中。In some embodiments, the above-mentioned indication response information 2 is also referred to as fourth response information. The above-mentioned indication response information 2 is used to indicate the result of the feature registration. The above-mentioned indication response information 2 carries the content used to indicate the characteristic registration result. The above-mentioned indication response information 2 may also be a Wi-Fi frame, such as a control frame or a management frame. The above-mentioned content used to indicate the characteristic registration result may also be stored in the reserved field of the Wi-Fi frame.

其中,特性注册结果可以包括特性注册成功和特性注册失败。The feature registration result may include feature registration success and feature registration failure.

示例性地,在路由器关闭低时延特性的情况下,路由器可以判定手机所对应的特性注册结果为特性注册失败。Exemplarily, when the router disables the low-latency feature, the router may determine that the feature registration result corresponding to the mobile phone is the feature registration failure.

又示例性地,在路由器判断手机不具备使用低时延特性服务的条件时,路由器可以判定手机所对应的特性注册结果为特性注册失败。例如,手机被路由器列入不可使用低时延服务的设备名单的情况下,路由器可以判定手机所对应的特性注册结果为特性注册失败。For another example, when the router determines that the mobile phone does not have the conditions to use the low-latency feature service, the router may determine that the feature registration result corresponding to the mobile phone is the feature registration failure. For example, when the mobile phone is included in the list of devices that cannot use the low-latency service by the router, the router may determine that the feature registration result corresponding to the mobile phone is the feature registration failure.

再示例性地,在路由器开启低时延特性且路由器判定手机具备使用低时延特性服务的条件的情况下,可判定手机所对应的特性注册结果为特性注册成功。For another example, when the router enables the low-latency feature and the router determines that the mobile phone has the conditions to use the low-latency feature service, it may be determined that the feature registration result corresponding to the mobile phone is successful feature registration.

与特性注册结果相应地,指示响应信息2也分为注册成功信息和注册失败信息。Corresponding to the characteristic registration result, the indication response information 2 is also divided into registration success information and registration failure information.

在一些实施例中,在特性注册结果为特性注册成功的情况下,路由器可向手机发送注册成功信息。In some embodiments, if the feature registration result is that the feature registration is successful, the router may send registration success information to the mobile phone.

以注册成功信息是管理帧,且对应的亚型为保留帧为例,用于指示低时延特性注册的内容可存储在保留的信息元素中。注册成功信息所对应的帧头的类型域中Type=00,Subtype=1111。注册成功信息所对应的帧实体的保留的信息元素:Taking the registration success information as a management frame and the corresponding subtype as a reserved frame as an example, the content used to indicate the registration of the low-latency feature may be stored in the reserved information element. In the type field of the frame header corresponding to the registration success information, Type=00, Subtype=1111. The reserved information elements of the frame entity corresponding to the registration success information:

Frame Body.dataByte[0-1],用于枚举特性,如,Frame Body.dataByte[0-1]为0x0001时,指示低时延特性。Frame Body.dataByte[0-1] is used to enumerate characteristics. For example, when Frame Body.dataByte[0-1] is 0x0001, it indicates low latency characteristics.

Frame Body.dataByte[2-3],用于指示被枚举特性的相关事项,如FrameBody.dataByte[0-1]为0x0001且Frame Body.dataByte[2-3]为0x0002时,指示低时延特性的注册结果反馈。可理解地,上述低时延特性的注册结果反馈也是低时延特性的相关事项之一。Frame Body.dataByte[2-3] is used to indicate the related matters of the enumerated characteristics. For example, when FrameBody.dataByte[0-1] is 0x0001 and Frame Body.dataByte[2-3] is 0x0002, it indicates low latency Feature registration result feedback. Understandably, the above-mentioned feedback of the registration result of the low-latency feature is also one of the related matters of the low-latency feature.

Frame Body.dataByte[4-5],用于指示实际的注册结果,如,FrameBody.dataByte[0-1]为0x0001、Frame Body.dataByte[2-3]为0x0002且FrameBody.dataByte[4-5]为x0000时,指示低时延的特性注册成功。Frame Body.dataByte[4-5], used to indicate the actual registration result, for example, FrameBody.dataByte[0-1] is 0x0001, Frame Body.dataByte[2-3] is 0x0002 and FrameBody.dataByte[4-5 ] is x0000, indicating that the low-latency feature is successfully registered.

也即,Frame Body.dataByte[0-1]为0x0001、Frame Body.dataByte[2-3]为0x0002且Frame Body.dataByte[4-5]为x0000是注册成功信息中用于指示特性注册结果的内容。That is, Frame Body.dataByte[0-1] is 0x0001, Frame Body.dataByte[2-3] is 0x0002, and Frame Body.dataByte[4-5] is x0000, which are used in the registration success information to indicate the result of feature registration content.

此外,Frame Body.dataByte[6-7]为保留字段。In addition, Frame Body.dataByte[6-7] is a reserved field.

在另一些实施例中,在注册成功信息是控制帧,且对应的亚型为保留帧时,注册成功信息所对应的帧头的类型域中Type=01,Subtype=0000。属于控制帧的注册成功信息与属于管理帧的注册成功信息的帧实体相同,在此不再赘述。In other embodiments, when the registration success information is a control frame and the corresponding subtype is a reserved frame, Type=01 and Subtype=0000 in the type field of the frame header corresponding to the registration success information. The registration success information belonging to the control frame is the same as the frame entity of the registration success information belonging to the management frame, and details are not repeated here.

在一些实施例中,在特性注册结果为特性注册失败的情况下,路由器会向手机发送注册失败信息。In some embodiments, when the feature registration result is that the feature registration fails, the router sends registration failure information to the mobile phone.

上述注册失败信息和注册成功信息之间的区别可以包括:帧实体中FrameBody.dataByte[4-5]的取值不同。示例性地,若Frame Body.dataByte[0-1]为0x0001、Frame Body.dataByte[2-3]为0x0002且Frame Body.dataByte[4-5]为x0000,用于指示低时延特性的特性注册成功,那么Frame Body.dataByte[0-1]为0x0001、FrameBody.dataByte[2-3]为0x0002且Frame Body.dataByte[4-5]为x0001则用于指示低时延特性的特性注册失败。The difference between the above registration failure information and registration success information may include: the values of FrameBody.dataByte[4-5] in the frame entity are different. Exemplarily, if Frame Body.dataByte[0-1] is 0x0001, Frame Body.dataByte[2-3] is 0x0002, and Frame Body.dataByte[4-5] is x0000, it is used to indicate the characteristics of low latency characteristics If the registration is successful, then Frame Body.dataByte[0-1] is 0x0001, FrameBody.dataByte[2-3] is 0x0002, and Frame Body.dataByte[4-5] is x0001, which is used to indicate that the feature registration of the low-latency feature fails. .

也即,Frame Body.dataByte[0-1]为0x0001、Frame Body.dataByte[2-3]为0x0002且Frame Body.dataByte[4-5]为x0001是注册失败信息中用于指示特性注册结果的内容。That is, Frame Body.dataByte[0-1] is 0x0001, Frame Body.dataByte[2-3] is 0x0002, and Frame Body.dataByte[4-5] is x0001, which are used in the registration failure information to indicate the result of feature registration content.

在另外一些可能的实施例中,上述注册失败信息还可以携带特性注册失败的原因。如此,注册失败信息和注册成功信息之间的区别还可以包括:注册失败信息的帧实体中Frame Body.dataByte[6-7],用于携带失败原因错误码。比如,预先约定失败原因错误码为0时,指示由于特性关闭造成注册失败。再比如,预先约定失败原因错误码为1时,指示由于其他原因造成注册失败。如此,Frame Body.dataByte[0-1]为0x0001、FrameBody.dataByte[2-3]为0x0002、Frame Body.dataByte[4-5]为x0001且FrameBody.dataByte[6-7]为0x0000,指示低时延特性注册失败的原因为特性关闭。In some other possible embodiments, the above-mentioned registration failure information may further carry the reason for the failure of feature registration. In this way, the difference between the registration failure information and the registration success information may further include: Frame Body.dataByte[6-7] in the frame entity of the registration failure information, which is used to carry the failure cause error code. For example, when the pre-agreed failure cause error code is 0, it indicates that the registration failed due to feature shutdown. For another example, when the pre-agreed failure cause error code is 1, it indicates that the registration fails due to other reasons. Thus, Frame Body.dataByte[0-1] is 0x0001, FrameBody.dataByte[2-3] is 0x0002, Frame Body.dataByte[4-5] is x0001 and FrameBody.dataByte[6-7] is 0x0000, indicating low The reason for the delay feature registration failure is that the feature is disabled.

此外,一些实施例中,注册失败信息可以是管理帧,对应的帧头的类型域中Type=00,Subtype=1111。另一些实施例中,注册失败信息也可以是控制帧,对应的帧头的类型域中Type=01,Subtype=0000。In addition, in some embodiments, the registration failure information may be a management frame, and Type=00 and Subtype=1111 in the type field of the corresponding frame header. In other embodiments, the registration failure information may also be a control frame, and Type=01 and Subtype=0000 in the type field of the corresponding frame header.

在一些实施例中,通过上述S101至S107的空口交互,如果手机低时延特性注册成功,那么路由器可优先为手机创建PDU会话。避免出现由于PDU会话创建不及时,导致的时延。In some embodiments, through the above-mentioned air interface interaction from S101 to S107, if the registration of the low-latency feature of the mobile phone is successful, the router can preferentially create a PDU session for the mobile phone. Avoid delays caused by untimely creation of PDU sessions.

当然,图6所示的方法仅为一种示例,示出了本申请实施例提供的方法应用在手机被动接入路由器的场景下。在其他可能的实施例中,本申请实施例提供的方法还可以应用在手机主动接入路由器的场景。也即,如图10所示,本申请实施例提供的方法还包括:Of course, the method shown in FIG. 6 is only an example, which shows that the method provided by the embodiment of the present application is applied in a scenario where a mobile phone passively accesses a router. In other possible embodiments, the method provided by the embodiment of the present application may also be applied to a scenario in which a mobile phone actively accesses a router. That is, as shown in FIG. 10 , the method provided by the embodiment of the present application further includes:

S201,手机向路由器发送探测请求。S201, the mobile phone sends a detection request to the router.

在一些实施例中,上述探测请求可以是Probe request帧,也属于Wi-Fi帧中的管理帧。示例性地,当Type=00,Subtype=0100时,Wi-Fi帧也即Probe request帧。Proberequest帧的帧头和帧实体可参见Wi-Fi协议中的规定,在此不再赘述。In some embodiments, the above probe request may be a Probe request frame, which also belongs to a management frame in the Wi-Fi frame. Exemplarily, when Type=00 and Subtype=0100, the Wi-Fi frame is also the Probe request frame. For the frame header and frame entity of the Proberequest frame, reference may be made to the Wi-Fi protocol, which will not be repeated here.

S202,响应于探测请求,路由器向手机发送探测响应。S202, in response to the probe request, the router sends a probe response to the mobile phone.

在一些实施例中,路由器响应于手机发送的探测请求,向手机发送探测响应。上述探测响应可以是Probe Respons帧,也属于Wi-Fi帧中的管理帧。示例性地,当Type=00,Subtype=0101时,Wi-Fi帧也即Probe Respons帧。当然,与常规的Probe Respons帧不同的是,Probe Respons帧可以指示路由器是否支持各类特性。如,Probe Respons帧可以指示路由器是否支持低时延特性。在一些实施例中,路由器向手机发送的Probe Respons帧中可以携带路由器的特性信息,如,低时延特性信息。其中,上述特性信息可以用于指示路由器对各类特性是否支持。在一些实施例中,上述特性信息可以包含在Probe Respons帧中的供应商专用字段(vendor-specific)中。在Probe Respons帧的vendor-specific中配置特性信息的原理可参考前述实施例中在Beacon帧的vendor-specific中配置特性信息。在此不再赘述。In some embodiments, the router sends a probe response to the cell phone in response to the probe request sent by the cell phone. The above-mentioned probe response may be a Probe Respons frame, which also belongs to a management frame in a Wi-Fi frame. Exemplarily, when Type=00 and Subtype=0101, the Wi-Fi frame is also the Probe Respons frame. Of course, unlike the regular Probe Respons frame, the Probe Respons frame can indicate whether the router supports various features. For example, the Probe Respons frame can indicate whether the router supports the low-latency feature. In some embodiments, the Probe Respons frame sent by the router to the mobile phone may carry characteristic information of the router, such as low-latency characteristic information. The above feature information may be used to indicate whether the router supports various features. In some embodiments, the aforementioned characteristic information may be contained in a vendor-specific field (vendor-specific) in the Probe Respons frame. For the principle of configuring the feature information in the vendor-specific of the Probe Respons frame, reference may be made to configuring the feature information in the vendor-specific of the Beacon frame in the foregoing embodiment. It is not repeated here.

同样地,手机可以根据Probe Respons帧的“vendor-specific”字段,确定路由器是否支持低时延特性。如,从Probe Respons帧中元素ID为221且Value[2:3]为0x0001的vendor-specific中,识别Value[4:5]的取值,如果Value[4:5]取值为0x0001,那么手机确认路由器支持低时延特性,如果Value[4:5]取值为0x0000,那么手机确认路由器不支持低时延特性。Similarly, the mobile phone can determine whether the router supports the low-latency feature according to the "vendor-specific" field of the Probe Respons frame. For example, identify the value of Value[4:5] from the vendor-specific whose element ID is 221 and Value[2:3] is 0x0001 in the Probe Respons frame. If Value[4:5] is 0x0001, then The mobile phone confirms that the router supports the low-latency feature. If the Value[4:5] value is 0x0000, the mobile phone confirms that the router does not support the low-latency feature.

S203,手机响应于探测响应,向路由器发送身份认证请求。S203, the mobile phone sends an identity authentication request to the router in response to the detection response.

S204,路由器向手机发送身份认证响应。S204, the router sends an identity authentication response to the mobile phone.

S205,手机向路由器发起关联请求。S205, the mobile phone initiates an association request to the router.

S206,路由器向手机发送关联请求。S206, the router sends an association request to the mobile phone.

S207,在满足预设条件下,手机向路由器发送指示信息2。S207, the mobile phone sends indication information 2 to the router under the condition that the preset condition is satisfied.

S208,路由器向手机发送指示响应信息2。S208, the router sends indication response information 2 to the mobile phone.

可以理解的,上述S203至S208的原理可参考图6所示的方法中的S102-S107,对此不再赘述。It can be understood that, for the principles of the above S203 to S208, reference may be made to S102 to S107 in the method shown in FIG. 6 , which will not be repeated here.

在一些实施例中,通过上述S201至S208的空口交互,在特性注册结果为特性注册成功的情况下,路由器可优先为手机创建PDU会话。避免出现由于PDU会话创建不及时,导致的时延。In some embodiments, through the above-mentioned air interface interaction from S201 to S208, if the feature registration result is that the feature registration is successful, the router may preferentially create a PDU session for the mobile phone. Avoid delays caused by untimely creation of PDU sessions.

在另一些实施例中,低时延特性的特性注册成功之后,手机还可以根据是否运行实时类应用,向进行低时延服务的申请(又可称为低时延特性的激活)。在低时延服务请求成功的情况下,优先为手机调度空口资源。如此,可实现面向实际业务需求的低时延服务。In other embodiments, after the feature of the low-latency feature is successfully registered, the mobile phone can also apply for a low-latency service (also called activation of the low-latency feature) according to whether a real-time application is running. When the low-latency service request is successful, the air interface resources are preferentially scheduled for the mobile phone. In this way, low-latency services that meet actual business requirements can be realized.

也即,在一些实施例中,在上述S107或S208之后,如图11所述,上述方法还可以包括:That is, in some embodiments, after the foregoing S107 or S208, as shown in FIG. 11 , the foregoing method may further include:

S301,在手机满足设定条件时,手机向路由器发送指示信息1。S301, when the mobile phone satisfies the set condition, the mobile phone sends instruction information 1 to the router.

示例性地,上述满足设定条件的方式包括以下一项或多项的组合:Exemplarily, the above-mentioned manners for satisfying the set conditions include a combination of one or more of the following:

(1)手机启动第一应用。也即,可以是在第一应用启动时,触发手机向路由器发送对应的指示信息1。(1) The mobile phone starts the first application. That is, when the first application is started, the mobile phone may be triggered to send the corresponding indication information 1 to the router.

(2)手机的电量低于预设电值。此时,于手机而言,等待数据传输会增加电量的消耗,在手机电量低时,也可以视为此时手机具有低时延传输需求,也就可以手机向路由器发送对应的指示信息1。(2) The power of the mobile phone is lower than the preset power value. At this time, for the mobile phone, waiting for data transmission will increase the power consumption. When the power of the mobile phone is low, it can also be considered that the mobile phone has a low-latency transmission requirement at this time, and the mobile phone can send the corresponding instruction information to the router 1.

(3)手机的温度超过预设温度等。(3) The temperature of the mobile phone exceeds the preset temperature, etc.

在一些实施例中,上述指示信息1可以包括第一应用的标识。其中,上述第一应用可以是对数据传输时效性要求高的应用程序。例如,手机中对数据传输时效性要求高的实时在线游戏可以是第一应用。上述指示信息1可用于指示针对第一应用申请低时延服务,以便提升第一应用的业务数据的传输时效。In some embodiments, the above-mentioned indication information 1 may include the identifier of the first application. Wherein, the above-mentioned first application may be an application program requiring high timeliness of data transmission. For example, a real-time online game in a mobile phone that requires high timeliness of data transmission may be the first application. The above-mentioned indication information 1 may be used to instruct to apply for a low-latency service for the first application, so as to improve the transmission timeliness of the service data of the first application.

上述指示信息1还可以包括指示申请低时延服务的标识。The above-mentioned indication information 1 may further include an identifier indicating to apply for a low-latency service.

在一些实施例中,上述指示信息1可以是Wi-Fi帧中的控制帧,也可以是Wi-Fi帧中的管理帧。上述第一应用的标识和指示申请低时延服务的标识可以包含在Wi-Fi帧的帧实体中。如此,手机向路由器发送指示信息1,即可申请在路由器内提高第一应用的优先级,加快第一应用的数据传输时效性,满足实际运行需求。In some embodiments, the above-mentioned indication information 1 may be a control frame in a Wi-Fi frame, or a management frame in a Wi-Fi frame. The identifier of the first application and the identifier indicating the application for the low-latency service may be included in the frame entity of the Wi-Fi frame. In this way, the mobile phone sends the instruction information 1 to the router, and can apply to increase the priority of the first application in the router, speed up the timeliness of data transmission of the first application, and meet the actual operation requirements.

以指示信息1是管理帧,且对应的亚型为保留帧为例,上述第一应用的标识和指示申请低时延服务的标识存储在保留信息元素中。如图12所示,指示信息1所对应的帧头1201的类型域中Type=00,Subtype=1111。指示信息1所对应的帧实体1202中的保留信息元素:Taking the indication information 1 being a management frame and the corresponding subtype being a reserved frame as an example, the identifier of the first application and the identifier indicating the application for the low-latency service are stored in the reserved information element. As shown in FIG. 12 , in the type field of the frame header 1201 corresponding to the indication information 1, Type=00 and Subtype=1111. The reserved information element in the frame entity 1202 corresponding to the indication information 1:

Frame Body.dataByte[0-1],用于枚举特性,如,Frame Body.dataByte[0-1]为0x0001时,指示低时延特性。Frame Body.dataByte[0-1] is used to enumerate characteristics. For example, when Frame Body.dataByte[0-1] is 0x0001, it indicates low latency characteristics.

Frame Body.dataByte[2-3],用于指示被枚举特性的相关事项,如,FrameBody.dataByte[0-1]为0x0001且Frame Body.dataByte[2-3]为0x0003时,指示申请低时延服务。可理解地,上述低时延服务为具备低时延特性的设备可提供的服务,故,申请低时延服务也是低时延特性的相关事项之一。Frame Body.dataByte[2-3] is used to indicate the related matters of the enumerated characteristics. For example, when FrameBody.dataByte[0-1] is 0x0001 and Frame Body.dataByte[2-3] is 0x0003, it indicates that the application is low Delayed service. Understandably, the above-mentioned low-latency service is a service that can be provided by a device with a low-latency feature. Therefore, applying for a low-latency service is also one of the matters related to the low-latency feature.

另外,Frame Body.dataByte[0-1]为0x0001且Frame Body.dataByte[2-3]为0x0003是指示信息1中指示申请低时延服务的标识。In addition, Frame Body.dataByte[0-1] is 0x0001 and Frame Body.dataByte[2-3] is 0x0003, which are the identifiers in the indication information 1 indicating to apply for the low-latency service.

Frame Body.dataByte[4-7],用于指示第一应用使用的通信IP。上述通信IP属于第一应用的标识之一,用于路由器识别出第一应用。例如,Frame Body.dataByte[4-7]可以为0x123456789a。Frame Body.dataByte[4-7], used to indicate the communication IP used by the first application. The above-mentioned communication IP belongs to one of the identifiers of the first application, and is used by the router to identify the first application. For example, Frame Body.dataByte[4-7] can be 0x123456789a.

Frame Body.dataByte[8-9],用于指示第一应用使用的port。上述port也属于第一应用的标识之一,通过通信IP和port的配合路由器可快速识别出第一应用所发送的数据。例如,Frame Body.dataByte[8-9]可以为0x1234。Frame Body.dataByte[8-9], used to indicate the port used by the first application. The above-mentioned port also belongs to one of the identifiers of the first application, and the data sent by the first application can be quickly identified through the cooperation between the communication IP and the port. For example, Frame Body.dataByte[8-9] can be 0x1234.

此外,Frame Body.dataByte[10-13]为保留字段。In addition, Frame Body.dataByte[10-13] is a reserved field.

需要说明的是,指示信息1是控制帧时,如图13所示。此时的指示信息1与图12所示的指示信息1相比,二者帧头的类型域不同。也即,图13所示的指示信息1的帧头1301:Type=01,Subtype=0000。包含的第一应用标识和指示申请低时延服务的标识均存储在图13所示的帧实体1302中,在此不再赘述。It should be noted that when the indication information 1 is a control frame, as shown in FIG. 13 . The indication information 1 at this time is compared with the indication information 1 shown in FIG. 12 in that the type fields of the frame headers of the two are different. That is, the frame header 1301 of the indication information 1 shown in FIG. 13: Type=01, Subtype=0000. The included first application identifier and the identifier indicating the application for the low-latency service are both stored in the frame entity 1302 shown in FIG. 13 , which will not be repeated here.

S302,路由器向手机反馈指示响应信息1。S302, the router feeds back indication response information 1 to the mobile phone.

在一些实施例中,指示响应信息1又称为第一响应信息。上述指示响应信息1携带了指示低时延服务申请结果的标识。上述指示响应信息1可以是Wi-Fi帧,如,可以是控制帧或管理帧。上述指示低时延服务申请结果的标识也可以存放在Wi-Fi帧的保留字段中。In some embodiments, the indication response information 1 is also referred to as the first response information. The above-mentioned indication response information 1 carries an identifier indicating the result of the low-latency service application. The above-mentioned indication response information 1 may be a Wi-Fi frame, for example, a control frame or a management frame. The above-mentioned identifier indicating the result of the low-latency service application may also be stored in the reserved field of the Wi-Fi frame.

此外,低时延服务申请结果可以包括申请成功和申请失败。In addition, the low-latency service application result may include application success and application failure.

示例性地,在路由器的服务关闭的情况下,路由器可判定手机所对应的低时延服务申请结果为申请失败。Exemplarily, in the case that the service of the router is turned off, the router may determine that the application result of the low-latency service corresponding to the mobile phone is an application failure.

又示例性地,在路由器当前提供低时延服务的应用数量超过预设数值的情况下,路由器可判定手机所对应的低时延服务申请结果为申请失败。For another example, when the number of applications currently providing the low-latency service by the router exceeds a preset value, the router may determine that the application result for the low-latency service corresponding to the mobile phone is an application failure.

又示例性地,在路由器还具备提供低时延服务的能力,且服务未关闭的情况下,路由器可判定手机所对应的低时延服务申请结果为申请成功。For another example, in the case that the router also has the ability to provide a low-latency service, and the service is not turned off, the router may determine that the application result of the low-latency service corresponding to the mobile phone is successful.

与低时延服务申请结果相应地,上述指示响应信息1也可以包括申请成功信息和申请失败信息。Corresponding to the low-latency service application result, the above-mentioned indication response information 1 may also include application success information and application failure information.

在一些实施例中,在针对第一应用的低时延服务申请成功的情况下,路由器不仅会提高第一应用的业务数据(如称为第三业务数据)的传输优先级,还会向手机发送申请成功信息。In some embodiments, when the application for the low-latency service for the first application is successful, the router will not only increase the transmission priority of the service data of the first application (for example, called third service data), but will also send the service data to the mobile phone. Send application success message.

以申请成功信息是管理帧,且对应的亚型为保留帧为例,指示低时延服务申请结果的标识包含在保留信息元素中。申请成功信息所对应的帧头的类型域中Type=00,Subtype=1111。申请成功信息所对应的帧实体中保留信息元素:Taking the application success information as a management frame and the corresponding subtype as a reserved frame as an example, an identifier indicating the result of the low-latency service application is included in the reserved information element. In the type field of the frame header corresponding to the application success information, Type=00, Subtype=1111. The information element is reserved in the frame entity corresponding to the successful application information:

Frame Body.dataByte[0-1],用于枚举特性,如,Frame Body.dataByte[0-1]为0x0001时,指示低时延特性。Frame Body.dataByte[0-1] is used to enumerate characteristics. For example, when Frame Body.dataByte[0-1] is 0x0001, it indicates low latency characteristics.

Frame Body.dataByte[2-3],用于指示被枚举特性的相关事项,如FrameBody.dataByte[0-1]为0x0001且Frame Body.dataByte[2-3]为0x0004时,指示低时延服务申请结果反馈。可理解地,上述低时延服务申请结果反馈也是低时延特性的相关事项之一。Frame Body.dataByte[2-3] is used to indicate the related matters of the enumerated characteristics. For example, when FrameBody.dataByte[0-1] is 0x0001 and Frame Body.dataByte[2-3] is 0x0004, it indicates low latency Service application result feedback. Understandably, the above-mentioned feedback of the low-latency service application result is also one of the matters related to the low-latency feature.

Frame Body.dataByte[4-5],用于指示实际的注册结果,如,FrameBody.dataByte[0-1]为0x0001、Frame Body.dataByte[2-3]为0x0004且FrameBody.dataByte[4-5]为x0000时,指示低时延服务申请成功。Frame Body.dataByte[4-5], used to indicate the actual registration result, for example, FrameBody.dataByte[0-1] is 0x0001, Frame Body.dataByte[2-3] is 0x0004 and FrameBody.dataByte[4-5 ] is x0000, indicating that the low-latency service application is successful.

可以理解地,上述Frame Body.dataByte[0-1]为0x0001、Frame Body.dataByte[2-3]为0x0004且Frame Body.dataByte[4-5]为x0000也即申请成功信息中指示低时延服务申请结果的标识。Understandably, the above Frame Body.dataByte[0-1] is 0x0001, Frame Body.dataByte[2-3] is 0x0004, and Frame Body.dataByte[4-5] is x0000, that is, the application success information indicates low latency The identification of the service request result.

此外,Frame Body.dataByte[6-7]为保留字段。In addition, Frame Body.dataByte[6-7] is a reserved field.

在另一些实施例中,在申请成功信息是控制帧,且对应的亚型为保留帧时,申请成功信息所对应的帧头的类型域中Type=01,Subtype=0000。指示低时延服务申请结果的标识包含在帧实体中,例如,Frame Body.dataByte[0-1]:0x0001。Frame Body.dataByte[2-3]:0x0004。Frame Body.dataByte[4-5]:x0000。其中,Frame Body.dataByte[0-1]:0x0001、Frame Body.dataByte[2-3]:0x0004指示低时延特性服务申请结果。FrameBody.dataByte[4-5]:x0000指示申请成功。In other embodiments, when the application success information is a control frame and the corresponding subtype is a reserved frame, Type=01 and Subtype=0000 in the type field of the frame header corresponding to the application success information. An identifier indicating the result of the low-latency service application is included in the frame entity, for example, Frame Body.dataByte[0-1]: 0x0001. Frame Body.dataByte[2-3]: 0x0004. Frame Body.dataByte[4-5]: x0000. Among them, Frame Body.dataByte[0-1]: 0x0001, Frame Body.dataByte[2-3]: 0x0004 indicate the result of the low-latency feature service application. FrameBody.dataByte[4-5]: x0000 indicates that the application is successful.

在一些实施例中,在针对第一应用的低时延服务申请失败的情况下,路由器会向手机发送申请失败信息。In some embodiments, when the low-latency service application for the first application fails, the router sends application failure information to the mobile phone.

上述申请失败信息和申请成功信息之间的区别可以包括:帧实体中FrameBody.dataByte[4-5]的取值不同。示例性地,若Frame Body.dataByte[0-1]为0x0001、Frame Body.dataByte[2-3]为0x0004且Frame Body.dataByte[4-5]为x0000,指示低时延服务申请成功,那么Frame Body.dataByte[0-1]为0x0001、Frame Body.dataByte[2-3]为0x0004且Frame Body.dataByte[4-5]为x0001则指示低时延服务申请失败。The difference between the above application failure information and application success information may include: the values of FrameBody.dataByte[4-5] in the frame entity are different. Exemplarily, if Frame Body.dataByte[0-1] is 0x0001, Frame Body.dataByte[2-3] is 0x0004, and Frame Body.dataByte[4-5] is x0000, indicating that the low-latency service application is successful, then Frame Body.dataByte[0-1] is 0x0001, Frame Body.dataByte[2-3] is 0x0004, and Frame Body.dataByte[4-5] is x0001, indicating that the low-latency service application failed.

同样的,上述Frame Body.dataByte[0-1]为0x0001、Frame Body.dataByte[2-3]为0x0004且Frame Body.dataByte[4-5]为x0001也是申请失败信息中指示低时延服务申请结果的标识。Similarly, the above Frame Body.dataByte[0-1] is 0x0001, Frame Body.dataByte[2-3] is 0x0004, and Frame Body.dataByte[4-5] is x0001, which is also the indication of low-latency service application in the application failure information The ID of the result.

在另外一些可能的实施例中,上述申请失败信息还可以携带服务申请失败的原因。如此,申请失败信息和申请成功信息之间的区别还可以包括:申请失败信息的帧实体中Frame Body.dataByte[6-7],用于携带失败原因错误码。比如,预先约定失败原因错误码为0时,对应于服务关闭造成申请失败。再比如,预先约定失败原因错误码为1时,对应于其他原因造成申请失败。如此,Frame Body.dataByte[0-1]为0x0001、Frame Body.dataByte[2-3]为0x0004、Frame Body.dataByte[4-5]为x0001且Frame Body.dataByte[6-7]为0x0000,指示低时延服务申请失败的原因为服务关闭。In some other possible embodiments, the above-mentioned application failure information may also carry the reason for the failure of the service application. In this way, the difference between the application failure information and the application success information may further include: Frame Body.dataByte[6-7] in the frame entity of the application failure information, which is used to carry the failure cause error code. For example, when the pre-agreed failure cause error code is 0, it corresponds to the application failure caused by the service shutdown. For another example, when the pre-agreed failure reason error code is 1, the application fails due to other reasons. In this way, Frame Body.dataByte[0-1] is 0x0001, Frame Body.dataByte[2-3] is 0x0004, Frame Body.dataByte[4-5] is x0001 and Frame Body.dataByte[6-7] is 0x0000, Indicates that the low-latency service application failed because the service was shut down.

此外,一些实施例中,申请失败信息可以是管理帧,对应的帧头的类型域中Type=00,Subtype=1111。另一些实施例中,申请失败信息也可以是管理帧,对应的帧头的类型域中Type=01,Subtype=0000。In addition, in some embodiments, the application failure information may be a management frame, and Type=00 and Subtype=1111 in the type field of the corresponding frame header. In other embodiments, the application failure information may also be a management frame, and Type=01 and Subtype=0000 in the type field of the corresponding frame header.

可见,在S301和S302的配合下,若手机为第一应用成功申请低时延服务后,可以根据从指示信息1中获取到的通信IP和port,识别第一应用的业务数据,如称为第三业务数据。并将其存放在低时延队列(如称为第一队列)中,如此,在路由器中空口资源(又可称为传输资源)空闲时,优先利用空口资源将低时延队列中缓存的数据发出。从而,针对第一应用提升数据传输时效,增强用户使用体验。在此期间,手机中运行的非实时类应用,如称为第二应用,所产生的业务数据,可称为第五业务数据,可以按照增强分布式协调访问(enhanced distributed channel access,EDCA)优先级机制发送,避免对其他设备的业务数据传输产生影响。此外,其他设备的业务数据,如第四业务数据,也可以按照EDCA优先级机制发送。在一些实施例中,上述第二应用还可以指代手机中所有未申请低时延服务的应用。It can be seen that with the cooperation of S301 and S302, if the mobile phone successfully applies for the low-latency service for the first application, it can identify the service data of the first application according to the communication IP and port obtained from the instruction information 1, such as called Third business data. and store it in the low-latency queue (such as the first queue), so that when the air interface resources (also known as transmission resources) in the router are idle, the air interface resources are preferentially used to buffer the data in the low-latency queue. issue. Therefore, the data transmission time limit is improved for the first application, and the user experience is enhanced. During this period, the business data generated by the non-real-time application running in the mobile phone, such as the second application, can be called the fifth business data, which can be prioritized according to enhanced distributed channel access (EDCA) It is sent through the high-level mechanism to avoid affecting the service data transmission of other devices. In addition, the service data of other devices, such as the fourth service data, can also be sent according to the EDCA priority mechanism. In some embodiments, the above-mentioned second application may also refer to all applications in the mobile phone that have not applied for the low-latency service.

在一些实施例中,上述低时延队列有别于EDCA所提供的背景流(Backgroundtraffic,BG)队列、尽力传输流(Best effort traffic,BE)队列、视频流(Video traffic,VI)队列和声音流(Voice traffic,VO)队列。上述BG队列、BE队列、VI队列、VO队列称为第二队列。对于未申请低时延服务的应用所发送的业务数据,可以按照传统的EDCA优先级存储到BE队列、BG队列、VO队列和VI队列中。如此,在低时延队列中有数据时,优先将其内的数据发出。在低时延队列中无数据时,按照EDCA优先级的规则从BE队列、BG队列、VO队列和VI队列中选出需占用空口资源进行数据发送的队列。In some embodiments, the above-mentioned low-latency queues are different from background traffic (BG) queues, best effort traffic (BE) queues, video traffic (VI) queues, and audio queues provided by EDCA Flow (Voice traffic, VO) queue. The above-mentioned BG queue, BE queue, VI queue, and VO queue are called the second queue. For business data sent by applications that have not applied for low-latency services, they can be stored in the BE queue, BG queue, VO queue, and VI queue according to the traditional EDCA priority. In this way, when there is data in the low-latency queue, the data in it is sent first. When there is no data in the low-latency queue, the queue that needs to occupy air interface resources for data transmission is selected from the BE queue, BG queue, VO queue, and VI queue according to the EDCA priority rules.

上述“将业务数据存储到第二队列中。在第一队列内业务数据发送完毕后,利用空闲的空口资源发送第二队列内存储的数据发出的过程”可称为利用第一预设方式发送业务数据。The above-mentioned "store the service data in the second queue. After the service data in the first queue is sent, use the idle air interface resources to send the process of sending the data stored in the second queue" may be referred to as using the first preset mode to send business data.

上述“将业务数据存储到第一队列中,并利用空闲的空口资源将第一队列内存储的数据发出”可称为利用第二预设方式发送业务数据。The above-mentioned "storing the service data in the first queue, and using idle air interface resources to send the data stored in the first queue" may be referred to as using the second preset mode to send the service data.

在其他实施例中,上述利用第二预设方式发送业务数据还可以是:在具有空闲的空口资源时,无需等待,直接利用空口资源将业务数据发送出去。上述利用第一预设方式发送业务数据还可以是:在无需利用第二预设方式发送的业务数据的情况下,按照接收到的业务数据的先后顺序依次将业务数据发送出去,或者按照业务数据所对应的业务优先级,依次将业务数据发送出去。In other embodiments, the above-mentioned sending of the service data by using the second preset manner may also be: when there are idle air interface resources, the service data is directly sent out by using the air interface resources without waiting. The above-mentioned sending of the service data by using the first preset mode may also be: in the case where the service data sent by the second preset mode is not required, the service data is sent out in sequence according to the received service data, or the service data is sent out according to the order of the received service data. The corresponding service priorities are sent out in sequence.

可以理解的,上述第二预设方式的传输优先级高于第一预设方式的传输优先级。例如,在手机发送的第三业务数据采用第二预设方式进行传输、平板电脑发送的第四业务数据采用第一预设方法进行传输的情况下,较于第四业务数据,优先发送第三业务数据。It can be understood that the transmission priority of the second preset mode is higher than the transmission priority of the first preset mode. For example, when the third service data sent by the mobile phone is transmitted using the second preset method, and the fourth service data sent by the tablet computer is transmitted using the first preset method, the third service data is preferentially sent over the fourth service data. business data.

当然,在另一些实施例中,在经过S105或S206,也即,完成手机与路由器之间的关联后,流程可以直接进入S301。可以理解地,在所有的Wi-Fi设备都支持低时延特性的情况下,则不需再进行低时延特性的注册,也就是,在S105或S206之后,跳过S106和S207,流程进入S301。如此,在路由器确定为手机的第一应用提供低时延服务后,优先为手机创建PDU会话,并优先将第一应用的业务数据发送至Wi-Fi网络侧。若路由器确定为手机的第一应用提供低时延服务时,手机所对应的PDU会话已建立,则优先将第一应用的业务数据发送至Wi-Fi网络侧。Of course, in other embodiments, after passing through S105 or S206, that is, after completing the association between the mobile phone and the router, the process can directly enter S301. Understandably, in the case that all Wi-Fi devices support the low-latency feature, there is no need to register the low-latency feature, that is, after S105 or S206, skip S106 and S207, and the process enters S301. In this way, after the router determines to provide a low-latency service for the first application of the mobile phone, it preferentially creates a PDU session for the mobile phone, and preferentially sends the service data of the first application to the Wi-Fi network side. If the router determines to provide the low-latency service for the first application of the mobile phone, and the PDU session corresponding to the mobile phone has been established, the service data of the first application is preferentially sent to the Wi-Fi network side.

此外,在手机通过路由器传输数据的过程中,路由器还可以根据Wi-Fi网络侧实时的网络状态,建议手机选择所用网络。也即,在一些实施例中,如图14所示,上述数据传输方法还可以包括:In addition, when the mobile phone transmits data through the router, the router can also recommend the mobile phone to select the network to use according to the real-time network status of the Wi-Fi network side. That is, in some embodiments, as shown in FIG. 14 , the above data transmission method may further include:

S401,在路由器检测到网络不稳定因素时,向手机发送指示信息3。S401 , when the router detects a network instability factor, it sends instruction information 3 to the mobile phone.

在一些实施例中,上述指示信息3又称为第二指示信息。上述网络不稳定因素可以是路由器的有线侧出现拥塞、环境存在强干扰、Wi-Fi的载波受雷达影响要切换载波等。示例性地,可以是路由器检测到源端抑制报文时,判断路由器的有线侧出现拥塞。又示例性地,路由器可扫描所处环境的无线信号强度,在扫描到的无线信号强度超过预设阈值时,判断环境存在强干扰。其中,上述预设阈值可以是信号强度阈值,用于衡量环境中存在的无线信号是否为干扰信号。上述预设阈值可以预先在强干扰环境下测试得到。另一些实施例中,上述预设阈值可以用户配置的经验值。In some embodiments, the above-mentioned indication information 3 is also referred to as second indication information. The above-mentioned network instability factors can be congestion on the wired side of the router, strong interference in the environment, and the Wi-Fi carrier is affected by the radar, and the carrier needs to be switched. Exemplarily, when the router detects the source-end suppression packet, it may be determined that congestion occurs on the wired side of the router. For another example, the router may scan the wireless signal strength of the environment in which it is located, and when the scanned wireless signal strength exceeds a preset threshold, determine that there is strong interference in the environment. The above-mentioned preset threshold may be a signal strength threshold, which is used to measure whether a wireless signal existing in the environment is an interference signal. The above-mentioned preset threshold can be obtained by testing in a strong interference environment in advance. In other embodiments, the above-mentioned preset threshold may be an empirical value configured by a user.

在一些实施例中,上述指示信息3可以是Wi-Fi帧。指示信息3可用于指示切换通信通道。在一些实施例中,指示信息3中包括用于指示切换通信通道的标识。上述用于指示切换通信通道的标识存储在Wi-Fi帧中的保留位中。如此,手机接收到指示信息3后,可以自主切换到其他通信通道,如运营商移动数据通道或其他路由所提供的通信通道,以替代当前的Wi-Fi通信通道。从而改善当前Wi-Fi网络中不稳定因素影响到手机中第一应用的数据传输时效。进一步保障手机的数据传输时效性。此外,相较于手机彻底与路由器断连后,再切换到其他通信通道而言,通道切换更加及时。In some embodiments, the above-mentioned indication information 3 may be a Wi-Fi frame. The indication information 3 can be used to instruct to switch the communication channel. In some embodiments, the indication information 3 includes an identifier for instructing to switch the communication channel. The above-mentioned identifier for instructing to switch the communication channel is stored in a reserved bit in the Wi-Fi frame. In this way, after the mobile phone receives the indication information 3, it can autonomously switch to other communication channels, such as the mobile data channel of the operator or the communication channel provided by other routes, to replace the current Wi-Fi communication channel. Thereby, the data transmission time of the first application in the mobile phone due to unstable factors in the current Wi-Fi network is improved. Further guarantee the timeliness of data transmission of mobile phones. In addition, compared to switching to other communication channels after the mobile phone is completely disconnected from the router, channel switching is more timely.

此外,指示信息3也可以是管理帧或控制帧。In addition, the indication information 3 may also be a management frame or a control frame.

以指示信息3为管理帧且对应的亚型为保留帧为例,用于指示切换通信通道的标识包含在保留信息元素中。如图15所示,指示信息3所对应的帧头1501的类型域中Type=00,Subtype=1111。指示信息3所对应的帧实体中的保留信息元素:Taking the indication information 3 as a management frame and the corresponding subtype as a reserved frame as an example, the identifier for instructing the switching of the communication channel is included in the reserved information element. As shown in FIG. 15 , in the type field of the frame header 1501 corresponding to the indication information 3, Type=00 and Subtype=1111. The reserved information element in the frame entity corresponding to the indication information 3:

Frame Body.dataByte[0-1],用于枚举特性,如,Frame Body.dataByte[0-1]为0x0001时,指示低时延特性。Frame Body.dataByte[0-1] is used to enumerate characteristics. For example, when Frame Body.dataByte[0-1] is 0x0001, it indicates low latency characteristics.

Frame Body.dataByte[2-3],用于指示路由器所提供的网络服务质量不佳,需要切换通道,如,Frame Body.dataByte[2-3]为0x0010时,指示建议切换通道。换句话说,Frame Body.dataByte[2-3]为0x0010是指示信息3中用于指示切换通信通道的标识。Frame Body.dataByte[2-3] is used to indicate that the network service quality provided by the router is not good and the channel needs to be switched. For example, when Frame Body.dataByte[2-3] is 0x0010, it indicates that it is recommended to switch the channel. In other words, Frame Body.dataByte[2-3] is 0x0010, which is an identifier in the indication information 3 used to instruct to switch the communication channel.

此外,Frame Body.dataByte[4-7]为保留字段。In addition, Frame Body.dataByte[4-7] is a reserved field.

另外,在指示信息3为控制帧时,对应的Type=01,Subtype=0000。上述指示切换通信通道的标识包含在帧实体中,例如,Frame Body.dataByte[0-1]:0x0001。FrameBody.dataByte[2-3]:0x0010。Frame Body.dataByte[4-5]:x0000。其中,FrameBody.dataByte[0-1]:0x0001、Frame Body.dataByte[2-3]:0x0010为指示切换通信通道的标识。In addition, when the indication information 3 is a control frame, the corresponding Type=01 and Subtype=0000. The above-mentioned identifier indicating the switching of the communication channel is contained in the frame entity, for example, Frame Body.dataByte[0-1]: 0x0001. FrameBody.dataByte[2-3]: 0x0010. Frame Body.dataByte[4-5]: x0000. Among them, FrameBody.dataByte[0-1]: 0x0001, Frame Body.dataByte[2-3]: 0x0010 are identifiers indicating switching of communication channels.

S402,手机向路由器发送指示响应信息3。S402, the mobile phone sends indication response information 3 to the router.

在一些实施例中,指示响应信息3又称为第二响应信息。上述指示响应信息3携带了指示通道切换结果的内容。上述指示响应信息3也可以是Wi-Fi帧,如,可以控制帧或管理帧。上述指示通道切换结果的内容也可以存放在Wi-Fi帧的帧实体中。In some embodiments, the indication response information 3 is also referred to as the second response information. The above-mentioned indication response information 3 carries the content indicating the channel switching result. The above-mentioned indication response information 3 may also be a Wi-Fi frame, for example, a control frame or a management frame. The above content indicating the channel switching result may also be stored in the frame entity of the Wi-Fi frame.

此外,通道切换结果可以包括通道切换成功和通道切换失败。相应地,指示响应信息3也可以包括切换成功信息和切换失败信息。In addition, the channel switching result may include channel switching success and channel switching failure. Correspondingly, the indication response information 3 may also include handover success information and handover failure information.

在一些实施例中,在手机成功切换到其他通信通道的情况下,也即,手机启用其他通信通道发送第一应用的业务数据。手机向路由器发送切换成功信息。In some embodiments, when the mobile phone is successfully switched to other communication channels, that is, the mobile phone enables other communication channels to send the service data of the first application. The mobile phone sends a handover success message to the router.

以切换成功信息是管理帧,且对应的亚型为保留帧为例,指示通道切换结果的内容包含在保留信息元素中。切换成功信息所对应的帧头的类型域中Type=00,Subtype=1111。切换成功信息所对应的帧实体中的保留信息元素:Taking the switching success information as a management frame and the corresponding subtype as a reserved frame as an example, the content indicating the channel switching result is included in the reserved information element. In the type field of the frame header corresponding to the handover success information, Type=00, Subtype=1111. The reserved information element in the frame entity corresponding to the handover success information:

Frame Body.dataByte[0-1],用于枚举特性,如,Frame Body.dataByte[0-1]为0x0001时,指示低时延特性。Frame Body.dataByte[0-1] is used to enumerate characteristics. For example, when Frame Body.dataByte[0-1] is 0x0001, it indicates low latency characteristics.

Frame Body.dataByte[2-3],用于指示针对通道切换的反馈,如FrameBody.dataByte[0-1]为0x0001且Frame Body.dataByte[2-3]为0x0011。Frame Body.dataByte[2-3], used to indicate the feedback for channel switching, for example, FrameBody.dataByte[0-1] is 0x0001 and Frame Body.dataByte[2-3] is 0x0011.

Frame Body.dataByte[4-5],用于指示实际的切换结果,如,FrameBody.dataByte[2-3]为0x0011且Frame Body.dataByte[4-5]为x0000时,指示通道切换成功。Frame Body.dataByte[4-5] is used to indicate the actual switching result. For example, when FrameBody.dataByte[2-3] is 0x0011 and Frame Body.dataByte[4-5] is x0000, it indicates that the channel is switched successfully.

也即,Frame Body.dataByte[2-3]为0x0011且Frame Body.dataByte[4-5]为x0000是切换成功信息中指示通道切换结果的内容。That is, Frame Body.dataByte[2-3] is 0x0011 and Frame Body.dataByte[4-5] is x0000, which is the content indicating the channel switching result in the switching success information.

此外,Frame Body.dataByte[6-7]为保留字段。In addition, Frame Body.dataByte[6-7] is a reserved field.

在另一些实施例中,在切换成功信息是控制帧,且对应的亚型为保留帧时,切换成功信息所对应的帧头的类型域中Type=01,Subtype=0000。指示通道切换结果的内容包含在帧实体中,例如,帧实体包括Frame Body.dataByte[0-1]:0x0001。Frame Body.dataByte[2-3]:0x0011。Frame Body.dataByte[4-5]:x0000。In other embodiments, when the switching success information is a control frame and the corresponding subtype is a reserved frame, Type=01 and Subtype=0000 in the type field of the frame header corresponding to the switching success information. The content indicating the channel switching result is contained in the frame entity, for example, the frame entity includes Frame Body.dataByte[0-1]: 0x0001. Frame Body.dataByte[2-3]: 0x0011. Frame Body.dataByte[4-5]: x0000.

在一些实施例中,在手机切换到其他通信通道失败的情况下,路由器会向手机发送切换失败信息。In some embodiments, when the mobile phone fails to switch to another communication channel, the router will send the handover failure information to the mobile phone.

上述切换失败信息和切换成功信息之间的区别可以包括:帧实体中FrameBody.dataByte[4-5]的取值不同。示例性地,若Frame Body.dataByte[2-3]为0x0011且Frame Body.dataByte[4-5]为x0000,指示通道切换成功,那么Frame Body.dataByte[2-3]为0x0011且Frame Body.dataByte[4-5]为x0001则指示通道切换失败。The difference between the above handover failure information and handover success information may include: the values of FrameBody.dataByte[4-5] in the frame entity are different. Exemplarily, if Frame Body.dataByte[2-3] is 0x0011 and Frame Body.dataByte[4-5] is x0000, indicating that the channel switching is successful, then Frame Body.dataByte[2-3] is 0x0011 and Frame Body. If dataByte[4-5] is x0001, it indicates that the channel switching fails.

也即,Frame Body.dataByte[2-3]为0x0011且Frame Body.dataByte[4-5]为x0001是切换失败信息中指示通道切换结果的内容。That is, Frame Body.dataByte[2-3] is 0x0011 and Frame Body.dataByte[4-5] is x0001, which is the content indicating the channel switching result in the switching failure information.

在另外一些可能的实施例中,上述切换失败信息还可以携带通道切换失败的原因。如此,切换失败信息和切换成功信息之间的区别还可以包括:切换失败信息的帧实体中Frame Body.dataByte[6-7],用于携带失败原因错误码。比如,预先约定失败原因错误码为0时,指示信息错误造成切换失败。再比如,预先约定失败原因错误码为1时,指示由于其他原因造成切换失败。如此,Frame Body.dataByte[2-3]为0x0011、Frame Body.dataByte[4-5]为x0001且Frame Body.dataByte[6-7]为0x0000,指示通道切换失败的原因为信息错误。In some other possible embodiments, the above-mentioned switching failure information may also carry the reason for the channel switching failure. In this way, the difference between the handover failure information and the handover success information may further include: Frame Body.dataByte[6-7] in the frame entity of the handover failure information, which is used to carry the failure cause error code. For example, when the pre-agreed failure cause error code is 0, the indication information error causes the handover failure. For another example, when the pre-agreed failure cause error code is 1, it indicates that the handover fails due to other reasons. In this way, Frame Body.dataByte[2-3] is 0x0011, Frame Body.dataByte[4-5] is x0001, and Frame Body.dataByte[6-7] is 0x0000, indicating that the reason for the channel switching failure is an information error.

此外,一些实施例中,信息失败信息可以是管理帧,对应的帧头的类型域中Type=00,Subtype=1111。另一些实施例中,信息失败信息也可以是管理帧,对应的帧头的类型域中Type=01,Subtype=0000。In addition, in some embodiments, the information failure information may be a management frame, and Type=00 and Subtype=1111 in the type field of the corresponding frame header. In other embodiments, the information failure information may also be a management frame, and Type=01 and Subtype=0000 in the type field of the corresponding frame header.

在一些实施例中,路由器在接收到手机发送的切换成功信息之后,若检测到网络恢复正常,如,网络不稳定因素消失,则路由器向手机发送指示信息4,又称为第三指示信息,用于指示手机使用路由器提供的通信通道,也即,利用路由器提供的通信通道发送第一应用的业务数据。在一些实施例中,上述指示信息4可以是Wi-Fi帧中的控制帧,也可以是Wi-Fi帧中的管理帧。In some embodiments, after receiving the handover success information sent by the mobile phone, if the router detects that the network is back to normal, for example, the network instability factor disappears, the router sends indication information 4, also referred to as the third indication information, to the mobile phone, It is used to instruct the mobile phone to use the communication channel provided by the router, that is, to send the service data of the first application by using the communication channel provided by the router. In some embodiments, the above-mentioned indication information 4 may be a control frame in a Wi-Fi frame, or a management frame in a Wi-Fi frame.

以指示信息4是管理帧,且对应的亚型为保留帧为例。指示信息4所对应的帧头的类型域中Type=00,Subtype=1111。指示信息4所对应的帧实体中的保留信息元素:Take the indication information 4 as a management frame and the corresponding subtype as a reserved frame as an example. In the type field of the frame header corresponding to the indication information 4, Type=00, Subtype=1111. The reserved information element in the frame entity corresponding to the indication information 4:

Frame Body.dataByte[0-1],用于枚举特性,如,Frame Body.dataByte[0-1]为0x0001时,指示低时延特性。Frame Body.dataByte[0-1] is used to enumerate characteristics. For example, when Frame Body.dataByte[0-1] is 0x0001, it indicates low latency characteristics.

Frame Body.dataByte[2-3],可用于指示路由器所提供的网络服务恢复。示例性地,Frame Body.dataByte[2-3]为0x0012指示路由器提供的网络服务恢复。Frame Body.dataByte[2-3], which can be used to indicate the restoration of network services provided by the router. Exemplarily, Frame Body.dataByte[2-3] is 0x0012, indicating that the network service provided by the router is restored.

此外,Frame Body.dataByte[4-7]为保留字段。In addition, Frame Body.dataByte[4-7] is a reserved field.

在指示信息4为控制帧时,对应的帧头的类型域中Type=01,Subtype=0000。对应的帧实体可以为:Frame Body.dataByte[0-1]:0x0001。Frame Body.dataByte[2-3]:0x0012。此外,Frame Body.dataByte[4-7]为保留字段。When the indication information 4 is a control frame, Type=01 and Subtype=0000 in the type field of the corresponding frame header. The corresponding frame entity can be: Frame Body.dataByte[0-1]: 0x0001. Frame Body.dataByte[2-3]: 0x0012. In addition, Frame Body.dataByte[4-7] is a reserved field.

在一些实施例中,路由器指示手机切换通信通道,可以是针对已激活低时延特性的手机,也即,已针对第一应用申请低时延服务的手机。如此,本申请实施例中为第一应用所提供的低时延服务能够保证第一应用的数据传输时效性。即使出现路由器提供的网络服务质量不佳的情况下,也能有效且及时保证数据的传输。In some embodiments, the router instructs the mobile phone to switch the communication channel, which may be for the mobile phone that has activated the low-latency feature, that is, the mobile phone that has applied for the low-latency service for the first application. In this way, the low-latency service provided for the first application in the embodiment of the present application can ensure the timeliness of data transmission of the first application. Even if the network service quality provided by the router is poor, it can effectively and timely ensure the transmission of data.

当然,路由器可提供低时延服务的能力是有限的。在存在多个第一应用启用低时延服务之后,新的第一应用再申请启动低时延服务就容易出现申请失败的情况。为了改善上述问题,在第一应用不使用低时延服务的情况下,还可及时关闭第一应用所对应的低时延服务。故,本申请实施例所提供的方法还可以包括:手机向路由器发送指示信息5,用于指示关闭针对第一应用的低时延服务。Of course, the ability of routers to provide low-latency services is limited. After there are multiple first applications that enable the low-latency service, a new first application that applies for starting the low-latency service is prone to application failure. In order to improve the above problem, in the case where the first application does not use the low-latency service, the low-latency service corresponding to the first application may also be closed in time. Therefore, the method provided by the embodiment of the present application may further include: the mobile phone sends instruction information 5 to the router, which is used to instruct to close the low-latency service for the first application.

在一些实施例中,在手机不满足设定条件时,可以向路由器发送指示信息5。In some embodiments, when the mobile phone does not meet the set conditions, indication information 5 may be sent to the router.

示例性地,不满足设定条件的方式可以包括以下一项或多项的组合:Exemplarily, the manner in which the set condition is not met may include a combination of one or more of the following:

(1)手机关闭第一应用。(2)手机的温度不超过预设温度。(3)手机电量超过预设电量。(1) Close the first application on the mobile phone. (2) The temperature of the mobile phone does not exceed the preset temperature. (3) The power of the mobile phone exceeds the preset power.

上述指示信息5可以是Wi-Fi帧中的控制帧,也可以是Wi-Fi帧中的管理帧。上述第一应用的标识和指示关闭低时延服务的标识可以包含在Wi-Fi帧保留字段中。如此,路由器接收到指示信息5后,不再优先发送第一应用的业务数据。The above-mentioned indication information 5 may be a control frame in the Wi-Fi frame, or may be a management frame in the Wi-Fi frame. The identifier of the first application and the identifier indicating that the low-latency service is turned off may be included in the Wi-Fi frame reservation field. In this way, after receiving the indication information 5, the router does not preferentially send the service data of the first application.

以指示信息5是管理帧,且对应的亚型为保留帧为例。指示信息5所对应的帧头的类型域中Type=00,Subtype=1111。指示信息5所对应的帧实体中的保留信息元素:Take the indication information 5 as a management frame and the corresponding subtype as a reserved frame as an example. In the type field of the frame header corresponding to the indication information 5, Type=00, Subtype=1111. The reserved information element in the frame entity corresponding to the indication information 5:

Frame Body.dataByte[0-1],用于枚举特性,如,Frame Body.dataByte[0-1]为0x0001时,指示低时延特性。Frame Body.dataByte[0-1] is used to enumerate characteristics. For example, when Frame Body.dataByte[0-1] is 0x0001, it indicates low latency characteristics.

Frame Body.dataByte[2-3],用于指示被枚举特性的相关事项,如,FrameBody.dataByte[0-1]为0x0001且Frame Body.dataByte[2-3]为0x0005时,指示申请关闭低时延服务。可理解地,申请关闭低时延服务也是低时延特性的相关事项之一。Frame Body.dataByte[2-3] is used to indicate the related matters of the enumerated characteristics. For example, when FrameBody.dataByte[0-1] is 0x0001 and Frame Body.dataByte[2-3] is 0x0005, it indicates that the application is closed Low latency service. Understandably, the application for closing the low-latency service is also one of the related matters of the low-latency feature.

另外,Frame Body.dataByte[0-1]为0x0001且Frame Body.dataByte[2-3]为0x0005是指示信息5中指示关闭低时延服务的标识。In addition, Frame Body.dataByte[0-1] is 0x0001 and Frame Body.dataByte[2-3] is 0x0005, which are the identifiers in the indication information 5 indicating that the low-latency service is turned off.

Frame Body.dataByte[4-7],用于指示第一应用使用的通信IP。上述通信IP属于第一应用的标识之一,用于路由器识别出第一应用。例如,Frame Body.dataByte[4-7]可以为0x123456789a。Frame Body.dataByte[4-7], used to indicate the communication IP used by the first application. The above-mentioned communication IP belongs to one of the identifiers of the first application, and is used by the router to identify the first application. For example, Frame Body.dataByte[4-7] can be 0x123456789a.

Frame Body.dataByte[8-9],用于指示第一应用使用的port。上述port也属于第一应用的标识之一,通过通信IP和port的配合路由器可快速识别出第一应用所发送的数据。例如,Frame Body.dataByte[8-9]可以为0x1234。Frame Body.dataByte[8-9], used to indicate the port used by the first application. The above-mentioned port also belongs to one of the identifiers of the first application, and the data sent by the first application can be quickly identified through the cooperation between the communication IP and the port. For example, Frame Body.dataByte[8-9] can be 0x1234.

此外,Frame Body.dataByte[10-13]为保留字段。In addition, Frame Body.dataByte[10-13] is a reserved field.

需要说明的是,指示信息5是控制帧时,指示信息5的Type=01,Subtype=0000,上述第一应用的标识和指示关闭低时延服务的标识包含在帧实体中,对此不再赘述。It should be noted that when the indication information 5 is a control frame, the Type=01 and Subtype=0000 of the indication information 5, the identifier of the above-mentioned first application and the identifier indicating the closing of the low-latency service are included in the frame entity, which is no longer required. Repeat.

如此,路由器接收到指示信息5后,可确定需关闭的哪一个应用程序的低时延服务。避免对其他第一应用产生影响。In this way, after receiving the indication information 5, the router can determine the low-latency service of which application program needs to be shut down. Avoid affecting other first apps.

以上实施例是以设备1为手机,设备2为路由器进行举例。本申请实施例所提供的方法还可以应用在其他涉及Wi-Fi的场景中。In the above embodiment, the device 1 is a mobile phone and the device 2 is a router as an example. The methods provided by the embodiments of the present application may also be applied in other scenarios involving Wi-Fi.

如图16所示,设备1为支持Wi-Fi直连的手柄,设备2为支持Wi-Fi直连的智能电视。手柄通过Wi-Fi技术接入智能电视。在智能电视启动实时在线游戏时,手柄可以接收用户的操作,并转化为游戏交互数据。此外,手柄还需要通过智能电视将游戏交互数据发送给对应的游戏服务器。游戏服务器接收到游戏交互数据后,确定显示的游戏画面,并传递给智能电视进行显示。在此过程中,手柄对游戏交互数据的发送时效性要求便很高。当然,智能电视还可以被其他支持Wi-Fi技术的设备接入,如,平板电脑接入智能电视,通过智能电视访问视频服务器,查找视频并在智能电视的小窗口中播放。虽然智能电视通过划分显示区域的方式解决了多设备接入并使用的问题,但是智能电视可提供的空口资源更加有限,多个接入设备(如,手柄或平板电脑)需要通过智能电脑与对应的服务器进行数据交互时,将出现更为严重延迟。As shown in Figure 16, device 1 is a handle that supports Wi-Fi direct connection, and device 2 is a smart TV that supports Wi-Fi direct connection. The handle is connected to the smart TV through Wi-Fi technology. When the smart TV starts a real-time online game, the handle can receive the user's operation and convert it into game interaction data. In addition, the handle also needs to send game interaction data to the corresponding game server through the smart TV. After receiving the game interaction data, the game server determines the displayed game screen and transmits it to the smart TV for display. During this process, the controller has high requirements on the timeliness of sending game interaction data. Of course, a smart TV can also be connected to other devices that support Wi-Fi technology, for example, a tablet computer can be connected to a smart TV, access a video server through the smart TV, find videos and play them in a small window of the smart TV. Although smart TVs solve the problem of multiple device access and use by dividing the display area, the air interface resources provided by smart TVs are more limited, and multiple access devices (such as handles or tablet computers) need to be connected to corresponding devices through smart computers. There will be more serious delays when data interaction is performed on the server of the server.

故,在设备1为支持Wi-Fi技术的手柄,设备2为支持Wi-Fi技术的智能电视的场景下,也适用本申请实施例所提供的数据传输方法。也即,手柄相当于前述实施例中的手机,智能电视相当于前述实施例中的路由器。手柄接入智能电视后,可以注册低时延特性。并在实时在线游戏开始后,如,接收到用户操作手柄上的指定键,手柄向智能电视申请低时延服务。从而保证手柄的数据传输时效性。当然,其他接入智能电视的设备也可以申请低时延特性注册和低时延服务,原理同前述实施例,在此不再赘述。Therefore, in a scenario where the device 1 is a handle supporting the Wi-Fi technology, and the device 2 is a smart TV supporting the Wi-Fi technology, the data transmission method provided by the embodiment of the present application is also applicable. That is, the handle is equivalent to the mobile phone in the foregoing embodiment, and the smart TV is equivalent to the router in the foregoing embodiment. After the handle is connected to the smart TV, the low-latency feature can be registered. And after the real-time online game starts, for example, receiving the designated key on the user's operating handle, the handle applies to the smart TV for low-latency service. Thereby ensuring the timeliness of data transmission of the handle. Of course, other devices connected to the smart TV can also apply for low-latency feature registration and low-latency service.

本申请实施例还提供一种电子设备,该电子设备可以包括:存储器和一个或多个处理器。该存储器和处理器耦合。该存储器用于存储计算机程序代码,该计算机程序代码包括计算机指令。在上述电子设备指代设备1时,当处理器执行计算机指令时,可使得电子设备执行上述实施例中手机执行的各个步骤。在上述电子设备指代设备2时,当处理器执行计算机指令时,可使得电子设备执行上述实施例中路由器执行的各个步骤。当然,该电子设备包括但不限于上述存储器和一个或多个处理器。例如,该电子设备的结构可以参考图5所示的硬件结构。Embodiments of the present application further provide an electronic device, and the electronic device may include: a memory and one or more processors. The memory is coupled to the processor. The memory is used to store computer program code comprising computer instructions. When the above electronic device refers to the device 1, when the processor executes the computer instructions, the electronic device can be made to execute each step performed by the mobile phone in the above embodiment. When the above electronic device refers to the device 2, when the processor executes the computer instructions, the electronic device can be made to execute each step executed by the router in the above embodiment. Of course, the electronic device includes, but is not limited to, the aforementioned memory and one or more processors. For example, the structure of the electronic device may refer to the hardware structure shown in FIG. 5 .

本申请实施例还提供一种芯片系统,该芯片系统可以应用于前述实施例中的电子设备。如图17所示,该芯片系统包括至少一个处理器2201和至少一个接口电路2202。该处理器2201可以是上述电子设备中的处理器。处理器2201和接口电路2202可通过线路互联。该处理器2201可以通过接口电路2202从上述电子设备的存储器接收并执行计算机指令。在电子设备指代设备1时,当计算机指令被处理器2201执行时,可使得电子设备执行上述实施例中手机执行的各个步骤。在电子设备指代设备2时,当计算机指令被处理器2201执行时,可使得电子设备执行上述实施例中路由器执行的各个步骤。当然,该芯片系统还可以包含其他分立器件,本申请实施例对此不作具体限定。Embodiments of the present application further provide a chip system, which can be applied to the electronic devices in the foregoing embodiments. As shown in FIG. 17 , the chip system includes at least one processor 2201 and at least one interface circuit 2202 . The processor 2201 may be the processor in the above electronic device. The processor 2201 and the interface circuit 2202 may be interconnected by wires. The processor 2201 can receive and execute computer instructions from the memory of the above electronic device through the interface circuit 2202 . When the electronic device refers to the device 1, when the computer instructions are executed by the processor 2201, the electronic device can be made to execute each step executed by the mobile phone in the above-mentioned embodiment. When the electronic device refers to the device 2, when the computer instructions are executed by the processor 2201, the electronic device can be made to execute each step executed by the router in the above embodiment. Certainly, the chip system may also include other discrete devices, which are not specifically limited in this embodiment of the present application.

通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。From the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be allocated as required. It is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. For the specific working process of the system, apparatus and unit described above, reference may be made to the corresponding process in the foregoing method embodiments, and details are not described herein again.

在本申请实施例各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。Each functional unit in each of the embodiments of the embodiments of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:快闪存储器、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, and the computer software products are stored in a storage The medium includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: flash memory, removable hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.

以上所述,仅为本申请实施例的具体实施方式,但本申请实施例的保护范围并不局限于此,任何在本申请实施例揭露的技术范围内的变化或替换,都应涵盖在本申请实施例的保护范围之内。因此,本申请实施例的保护范围应以所述权利要求的保护范围为准。The above are only specific implementations of the embodiments of the present application, but the protection scope of the embodiments of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the embodiments of the present application shall be covered by this within the protection scope of the application examples. Therefore, the protection scope of the embodiments of the present application should be subject to the protection scope of the claims.

Claims (31)

1. A data transmission method applied to a data transmission system, the data transmission system including a wireless access point, and a first device and a second device accessing the wireless access point, the method comprising:
the wireless access point receives first service data sent by the first equipment and receives second service data sent by the second equipment;
the wireless access point sends the first service data and the second service data according to a first preset mode;
the method comprises the steps that under the condition that the first equipment meets set conditions, the first equipment sends first indication information to the wireless access point; the first indication information is a Management frame, and a reserved information element of the first indication information comprises an identifier indicating that a low-latency service is applied; or, the first indication information is a Control frame, where the Control frame includes a frame entity frame byte, and indicates that an identifier for applying for the low latency service is included in the frame body byte;
the wireless access point receives third service data sent by the first equipment and receives fourth service data sent by the second equipment;
the wireless access point sends the third service data according to a second preset mode and sends the fourth service data according to the first preset mode;
the transmission priority of the second preset mode is higher than that of the first preset mode.
2. The method of claim 1, wherein the first indication information further comprises an identification of a first application; the third service data is service data of the first application;
after the first device sends the first indication information to the wireless access point, the method further comprises:
the wireless access point receives fifth service data sent by the first equipment, wherein the fifth service data is service data of a second application in the first equipment;
and the wireless access point sends the fifth service data according to the first preset mode.
3. The method of claim 1, wherein the wireless access point transmitting the third traffic data according to a second predetermined manner and transmitting the fourth traffic data according to the first predetermined manner comprises:
the wireless access point stores the third service data to a first queue and stores the fourth service data to a second queue; the transmission priority of the first queue is higher than the transmission priority of the second queue;
and the wireless access point sends the third service data in the first queue, and sends the fourth service data in the second queue after the third service data is sent out.
4. The method of claim 1, wherein after the first device sends the first indication information to the wireless access point, the method further comprises:
the wireless access point sends first response information to the first equipment; wherein the first response information includes an identifier indicating that the low latency service application was successful.
5. The method of claim 1, wherein the method further comprises:
sending second indication information to the first equipment under the condition that the network of the wireless access point is abnormal;
the second indication information is a Management frame, and a reservation information element of the second indication information comprises an identifier indicating switching of a communication channel; or, the second indication information is a Control frame, the second indication information includes a frame body byte, and the frame body byte includes an identifier indicating switching of a communication channel.
6. The method of claim 5, wherein the method further comprises:
after the first equipment switches the communication channel, the first equipment sends second response information to the wireless access point; wherein the second response information comprises an identifier indicating that channel switching is successful;
under the condition that the network of the wireless access point is recovered to be normal, third indication information is sent to the first equipment;
the third indication information is a Management frame, and a reservation information element of the third indication information includes an identifier indicating access to the wireless access point; or, the third indication information is a Control frame, and the third indication information includes a frame body byte that includes an identifier indicating to access the wireless access point.
7. The method of claim 1, wherein prior to the first device sending first indication information to the wireless access point, the method further comprises:
the wireless access point broadcasts a Beacon frame; wherein the vendor-specific field of the beacon frame includes an identification indicating support of a low latency characteristic.
8. The method of claim 1, wherein prior to the first device sending first indication information to the wireless access point, the method further comprises:
the first device sends a probe request frame to the wireless access point;
the wireless access point responds to the probe request frame and sends a probe response frame to the first equipment; wherein a vendor-specific field of the probe response frame includes an identifier indicating that a low latency characteristic is supported.
9. The method of claim 1, wherein prior to the first device sending first indication information to the wireless access point, the method further comprises:
the first equipment sends fourth indication information to the wireless access point; the fourth indication information is a Management frame, and a reservation information element of the fourth indication information includes an identifier indicating a registered low-latency characteristic;
or, the fourth indication information is a Control frame, the fourth indication information includes a frame body byte, and the frame body byte includes an identifier indicating a registration low latency characteristic;
the wireless access point sends fourth response information to the first equipment; the fourth response information includes an identifier indicating that the registration of the low latency characteristic is successful.
10. The method of claim 1, wherein the method further comprises:
under the condition that the first equipment does not meet the set condition, the first equipment sends fifth indication information to the wireless access point; the fifth indication information is a Management frame, and a reservation information element of the fifth indication information includes an identifier indicating that the low latency service is closed; the fifth indication information is a Control frame, the fifth indication information includes a frame body byte, and the frame body byte includes an identifier indicating to close a low latency service;
the wireless access point receives sixth service data sent by the first equipment;
and the wireless access point responds to the fifth indication information, and the wireless access point sends the sixth service data according to the first preset mode.
11. The method of claim 2 or 10,
the way in which the first device satisfies the set condition includes a combination of one or more of:
starting and running a first application of the first device;
the equipment temperature of the first equipment exceeds a preset temperature value;
the real-time electric quantity of the first equipment is lower than a preset electric quantity value;
the manner in which the first device does not satisfy the set condition includes a combination of one or more of:
the first application of the first device stops running;
the equipment temperature of the first equipment does not exceed a preset temperature value;
the real-time electric quantity of the first equipment is not lower than a preset electric quantity value.
12. A data transmission method is applied to a wireless access point; the method comprises the following steps:
the wireless access point receives first indication information sent by electronic equipment; the first indication information is a Management frame, and the reserved information element of the first indication information comprises an identifier indicating that a low-latency service is applied; or, the first indication information is a Control frame, the Control frame includes a frame body byte, and an indication that the identifier for applying for the low latency service is included in the frame body byte;
the wireless access point receives third service data sent by the electronic equipment; fourth service data to be transmitted in the wireless access point;
and the wireless access point preferentially sends the third service data compared with the fourth service data.
13. The method of claim 12, wherein the first indication information further comprises an identification of a first application; the third service data is service data of the first application.
14. The method of claim 12, wherein the wireless access point prioritizes transmitting the third traffic data over the fourth traffic data, comprising:
the wireless access point stores the third service data to a first queue; the fourth service data is stored in a second queue, and the transmission priority of the first queue is higher than that of the second queue;
and the wireless access point sends the third service data in the first queue, and sends the fourth service data in the second queue after the third service data is sent out.
15. The method of claim 12, wherein after the wireless access point receives the first indication information transmitted by the electronic device, the method further comprises:
the wireless access point sends first response information to the electronic equipment; wherein the first response information includes an identifier indicating that the low latency service application was successful.
16. The method of claim 12, wherein the method further comprises:
sending second indication information to the electronic equipment under the condition that the network of the wireless access point is abnormal;
the second indication information is a Management frame, and a reservation information element of the second indication information comprises an identifier indicating switching of a communication channel; or, the second indication information is a Control frame, the second indication information includes a frame body byte, and the frame body byte includes an identifier indicating switching of a communication channel.
17. The method of claim 16, wherein the method further comprises:
the wireless access point receives second response information sent by the electronic equipment; wherein the second response information comprises an identifier indicating that channel switching is successful;
under the condition that the network of the wireless access point is recovered to be normal, third indication information is sent to the electronic equipment;
the third indication information is a Management frame, and a reservation information element of the third indication information includes an identifier indicating access to the wireless access point; or, the third indication information is a Control frame, and the third indication information includes a frame body byte that includes an identifier indicating to access the wireless access point.
18. The method of claim 12, wherein prior to the wireless access point receiving the first indication information transmitted by the electronic device, the method further comprises:
the wireless access point broadcasts a Beacon frame; wherein a carrier-specific field of the beacon frame includes an identification indicating that a low latency characteristic is supported.
19. The method of claim 12, wherein prior to the wireless access point receiving the first indication information transmitted by the electronic device, the method further comprises:
the wireless access point receives a probe request frame sent by the electronic equipment;
the wireless access point responds to the probe request frame and sends a probe response frame to the electronic equipment; wherein a vendor-specific field of the probe response frame includes an identifier indicating that a low latency characteristic is supported.
20. The method of claim 12, wherein prior to the wireless access point receiving the first indication information transmitted by the electronic device, the method further comprises:
the wireless access point receives fourth indication information sent by the electronic equipment; the fourth indication information is a Management frame, and a reservation information element of the fourth indication information includes an identifier indicating a registered low-latency characteristic;
or, the fourth indication information is a Control frame, the fourth indication information includes a frame body byte, and the frame body byte includes an identifier indicating a registration low latency characteristic;
the wireless access point sends fourth response information to the electronic equipment; the fourth response information includes an identifier indicating that the registration of the low latency characteristic is successful.
21. The method of claim 12, wherein the method further comprises:
the wireless access point receives fifth indication information sent by the electronic equipment; the fifth indication information is a Management frame, and a reservation information element of the fifth indication information includes an identifier indicating that the low latency service is closed; the fifth indication information is a Control frame, the fifth indication information includes a frame body byte, and the frame body byte includes an identifier indicating to close a low latency service;
the wireless access point receives sixth service data sent by the electronic equipment;
and the wireless access point responds to the fifth indication information, and the wireless access point sends the sixth service data according to a first preset mode.
22. A data transmission method, applied to an electronic device, the method comprising:
under the condition that the electronic equipment meets set conditions, first indication information is sent to a wireless access point; the first indication information is a Management frame, and the reserved information element of the first indication information comprises an identifier indicating that a low-latency service is applied; or, the first indication information is a Control frame, the Control frame includes a frame body byte, and an indication that the identifier for applying for the low latency service is included in the frame body byte;
the electronic equipment receives first response information sent by the wireless access point; wherein the first response information comprises an identifier indicating that the low-latency service application is successful;
and the electronic equipment sends third service data to the wireless access point.
23. The method of claim 22, wherein the first indication information further comprises an identification of a first application; the third service data is service data of the first application;
the first indication information is a Management frame, and the identifier of the first application is included in a reservation information element of the first indication information; or,
the first indication information is a Control frame, and the identifier of the first application is included in the frame body byte.
24. The method of claim 22, wherein the method further comprises:
under the condition that the electronic equipment receives second indication information sent by the wireless access point, switching a communication channel for sending the third service;
the second indication information is a Management frame, and a reservation information element of the second indication information comprises an identifier indicating switching of a communication channel; or, the second indication information is a Control frame, the second indication information includes a frame body byte, and the frame body byte includes an identifier indicating switching of a communication channel;
under the condition that the electronic equipment is successfully switched, second response information is sent to the wireless access point; wherein the second response information comprises an identifier indicating that channel switching is successful;
sending the second response information to the wireless access point under the condition that the electronic equipment fails to switch; wherein the second response information comprises an identifier indicating channel switching failure and a failure reason error code.
25. The method of claim 24, wherein the method further comprises:
the electronic equipment receives third indication information sent by the wireless access point;
the third indication information is a Management frame, and a reservation information element of the third indication information includes an identifier indicating access to the wireless access point; or the third indication information is a Control frame, the third indication information includes a frame body byte, and the frame body byte includes an identifier indicating to access the wireless access point;
and the electronic equipment transmits the third service data through a communication channel provided by the wireless access point.
26. The method of claim 22, wherein prior to the electronic device transmitting the first indication information to the wireless access point, the method further comprises:
the electronic equipment receives the Beacon frame broadcast by the wireless access point; wherein a vendor-specific field of the beacon frame includes an identification indicating that a low latency characteristic is supported;
after the electronic equipment accesses the wireless access point, sending fourth indication information to the wireless access point; the fourth indication information is a Management frame, and a reservation information element of the fourth indication information includes an identifier indicating a registered low-latency characteristic; or, the fourth indication information is a Control frame, and the fourth indication information includes a frame body byte, where the frame body byte includes an identifier indicating a registration low latency characteristic.
27. The method of claim 22, wherein prior to the electronic device transmitting the first indication information to the wireless access point, the method further comprises:
the electronic equipment sends a probe request frame to the wireless access point;
the electronic equipment receives a probe response frame sent by the wireless access point; wherein a vendor-specific field of the probe response frame includes an identifier indicating that a low latency characteristic is supported;
after the electronic equipment accesses the wireless access point, sending fourth indication information to the wireless access point; the fourth indication information is a Management frame, and a reservation information element of the fourth indication information includes an identifier indicating a registered low-latency characteristic; or, the fourth indication information is a Control frame, and the fourth indication information includes a frame body byte, where the frame body byte includes an identifier indicating a registration low latency characteristic.
28. The method of claim 22, wherein the method further comprises:
under the condition that the electronic equipment meets the set condition, the electronic equipment sends fifth indication information to the wireless access point; the fifth indication information is a Management frame, and a reservation information element of the fifth indication information includes an identifier indicating that the low latency service is closed; the fifth indication information is a Control frame, and the fifth indication information includes a frame body byte, and the frame body byte includes an identifier indicating that the low latency service is closed.
29. The method of claim 23 or 28,
the mode of the electronic equipment meeting the set condition comprises one or more of the following combinations:
starting and running a first application of the electronic equipment;
the equipment temperature of the electronic equipment exceeds a preset temperature value;
the real-time electric quantity of the electronic equipment is lower than a preset electric quantity value;
the mode that the electronic equipment does not meet the set condition comprises one or more of the following combinations:
the first application of the electronic device stops running;
the equipment temperature of the electronic equipment does not exceed a preset temperature value;
the real-time electric quantity of the electronic equipment is not lower than a preset electric quantity value.
30. An electronic device, comprising one or more processors and one or more memories; the one or more memories coupled to the one or more processors for storing computer program code comprising computer instructions which, when executed by the one or more processors, implement the method of any of claims 12-29.
31. A computer storage medium comprising computer instructions that, when executed on an electronic device, cause the electronic device to perform the method of any of claims 12-29.
CN202110601477.5A 2021-05-31 2021-05-31 Data transmission method and electronic equipment Active CN113473539B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110601477.5A CN113473539B (en) 2021-05-31 2021-05-31 Data transmission method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110601477.5A CN113473539B (en) 2021-05-31 2021-05-31 Data transmission method and electronic equipment

Publications (2)

Publication Number Publication Date
CN113473539A true CN113473539A (en) 2021-10-01
CN113473539B CN113473539B (en) 2022-07-05

Family

ID=77871728

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110601477.5A Active CN113473539B (en) 2021-05-31 2021-05-31 Data transmission method and electronic equipment

Country Status (1)

Country Link
CN (1) CN113473539B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1658611A (en) * 2005-03-22 2005-08-24 中国科学院计算技术研究所 A Method of Guaranteeing Quality of Service in Wireless Local Area Network
WO2013048228A1 (en) * 2011-09-29 2013-04-04 Mimos Berhad Cross - layer scheduling in particular for mobile wimax
CN104039016A (en) * 2013-03-08 2014-09-10 中兴通讯股份有限公司 Transmission processing method and apparatus of service data, and transmission method and apparatus of service data
WO2017196362A1 (en) * 2016-05-13 2017-11-16 Nokia Technologies Oy Mmwave 5g air-interface radio resource control states
US20180167915A1 (en) * 2015-05-29 2018-06-14 Lg Electronics Inc. Method for transmitting and receiving data in wireless communication system, and device therefor
CN111373788A (en) * 2017-10-31 2020-07-03 萨基姆宽带连接公司 Method for selecting primary channel for wireless communication

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1658611A (en) * 2005-03-22 2005-08-24 中国科学院计算技术研究所 A Method of Guaranteeing Quality of Service in Wireless Local Area Network
WO2013048228A1 (en) * 2011-09-29 2013-04-04 Mimos Berhad Cross - layer scheduling in particular for mobile wimax
CN104039016A (en) * 2013-03-08 2014-09-10 中兴通讯股份有限公司 Transmission processing method and apparatus of service data, and transmission method and apparatus of service data
US20180167915A1 (en) * 2015-05-29 2018-06-14 Lg Electronics Inc. Method for transmitting and receiving data in wireless communication system, and device therefor
WO2017196362A1 (en) * 2016-05-13 2017-11-16 Nokia Technologies Oy Mmwave 5g air-interface radio resource control states
CN111373788A (en) * 2017-10-31 2020-07-03 萨基姆宽带连接公司 Method for selecting primary channel for wireless communication

Also Published As

Publication number Publication date
CN113473539B (en) 2022-07-05

Similar Documents

Publication Publication Date Title
CN101951691B (en) Wireless hot spot sharing and accessing method and device
WO2018137284A1 (en) Method and device for transmitting paging message
US20190045476A1 (en) User device and message forwarding method
US10917834B2 (en) Method for transmitting system information and related devices
EP4167623A1 (en) Communication method and related device
WO2021155677A1 (en) Dual-sim dual-standby and dual-active method and device, and storage medium
CN113473622B (en) OFDMA frequency domain resource scheduling method, STA, AP and communication system
US20160309481A1 (en) Reduction of channel access delay in wireless systems
WO2018153245A1 (en) Discontinuous reception method, terminal, and network device
EP4258710A1 (en) Method for transmitting data in near field, device and system
WO2021047449A1 (en) Base station handover method and apparatus
JP2018125622A (en) Radio communication device and radio communication method
WO2014101563A1 (en) Data transmission method and data terminal
CN114828271A (en) System information sending method, system information obtaining method and related equipment
US20070183352A1 (en) Methods and apparatus for providing a shared server system for a platform of multiple wireless communication devices
WO2023284862A1 (en) Wireless channel resource management method, device and system
WO2020164522A1 (en) Data transmission control method and related product
CN113473539B (en) Data transmission method and electronic equipment
CN113556805A (en) Method and terminal for reducing power consumption
CN114173322A (en) A communication method and device
WO2016123750A1 (en) Resource scheduling method, device and system
CN115643625A (en) Multi-path data sending method, device and equipment
CN112788617A (en) Method and device for configuring quality of service parameters
EP4354961A1 (en) Assisted roaming
JP7516669B2 (en) Resource allocation method, device and terminal

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
CP03 Change of name, title or address

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Terminal Co.,Ltd.

Country or region after: China

Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong

Patentee before: Honor Device Co.,Ltd.

Country or region before: China