Transmission rate control method and device and computer readable storage medium

By distinguishing the transmission rate according to the type of packet to be transmitted, and using a stable rate to transmit related packets related to IP layer protocol auxiliary technology, the packet retransmission and packet loss problems caused by excessive speed in the prior art are solved, and the packet loss problems caused by excessive speed are improved. User experience and transmission stability.

CN119094087APending Publication Date: 2024-12-06SHENZHEN TCL DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411324515.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-20
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

In the prior art, the transmission rate of data packets depends on the negotiated rate between the router and the terminal device, resulting in excessive packet transmission rate when the transmission environment is interfering, resulting in data retransmission and packet loss, affecting user experience, especially for IP layer protocol auxiliary technology. The transmission of related messages (such as DHCP, ICMP, DNS) is unstable.

Method used

By determining the type of packet to be transmitted and transmitting according to different rates, the first type of packet (such as DHCP, ICMP, DNS) is packetized using a stable transmission rate to reduce the error rate caused by excessive speed. Improve transmission stability.

Benefits of technology

It reduces the packet error rate in wireless environments, ensures user experience, and improves the smoothness of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119094087A_ABST
    Figure CN119094087A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a transmission rate control method and device and a computer readable storage medium, and the method comprises the steps: determining the type of a to-be-transmitted message, the types comprise a first type and a second type, the transmission rate of the first type of message is a first transmission rate, and the transmission rate of the second type of message is a second transmission rate; the transmission rate of the message of the second type is a second transmission rate, and the first transmission rate is smaller than the second transmission rate; and when the type of the message to be transmitted is the first type, transmitting the message to be transmitted according to the first transmission rate. According to the embodiment of the invention, the probability that errors occur in the packet receiving and sending process in a wireless environment due to too high rate is reduced, the data transmission fluency of the target equipment used by a user is ensured, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communication technology, and specifically to a transmission rate control method, device, and computer-readable storage medium. Background Art

[0002] In daily life, using wireless fidelity (WiFi) for data transmission is one of the current mainstream communication methods. Due to the design of the data link layer, the transmission rate of data packets depends not only on the rate negotiated and supported by the router and the terminal, but also on the environmental factors during the transmission process; when the environmental interference is small and the packet retransmission is small, the packet will be sent at the highest transmission rate possible to achieve a higher data throughput. This high-speed packet transmission method is beneficial for scenarios that require high throughput, such as videos, games, and downloads, and can bring users a smooth user experience.

[0003] However, for Internet Control Message Protocol (ICMP) messages used for network detection, Dynamic Host Configuration Protocol (DHCP) messages used to obtain Internet Protocol (IP), and Domain Name System (DNS) messages used to obtain domain names, the higher the packet sending rate of such IP layer protocol auxiliary technology related messages, the more unstable the transmission will be, resulting in a greater possibility of data retransmission and packet loss, thus affecting the user experience. Summary of the invention

[0004] The embodiments of the present application provide a transmission rate control method, device and computer-readable storage medium, which can packetize target messages at a stable transmission rate, avoid the complicated process of speed reduction and retransmission of the speed selection strategy in the prior art, and improve the stability of data transmission.

[0005] In a first aspect, an embodiment of the present application provides a transmission rate control method, the method comprising:

[0006] Determine a type of a message to be transmitted, the type including a first type and a second type, wherein a transmission rate of the message of the first type is a first transmission rate, a transmission rate of the message of the second type is a second transmission rate, and the first transmission rate is less than the second transmission rate;

[0007] When the type of the message to be transmitted is the first type, the message to be transmitted is transmitted according to the first transmission rate.

[0008] Optionally, in some embodiments of the present application, after transmitting the to-be-transmitted message to the access point device according to the first transmission rate, the method further includes:

[0009] receiving a first confirmation frame from the access point device;

[0010] Setting the retransmission count value to 0 according to the first confirmation frame;

[0011] The first confirmation frame is used to indicate that the access point device has successfully received the message to be transmitted.

[0012] Optionally, in some embodiments of the present application, after transmitting the to-be-transmitted message to the access point device according to the first transmission rate, the method further includes:

[0013] When it is determined that the first accumulated duration exceeds the first duration, retransmitting the message to be transmitted to the access point device according to the first transmission rate;

[0014] The first accumulated time starts from the time when the message to be transmitted is transmitted to the access point device.

[0015] Optionally, in some embodiments of the present application, after retransmitting the to-be-transmitted message to the access point device according to the first transmission rate, the method further includes:

[0016] Increase the retransmission count by 1;

[0017] When the retransmission count value is greater than or equal to a first preset value, a detection data packet is sent to the access point device, where the detection data packet is used to determine a communication status with the access point device.

[0018] Optionally, in some embodiments of the present application, after sending the detection data packet to the access point device, the method further includes:

[0019] receiving a second confirmation frame from the access point device indicating that communication is normal;

[0020] Setting the error correction confirmation value to 0 according to the second confirmation frame;

[0021] Retransmit the message to be transmitted to the access point device according to the first transmission rate.

[0022] Optionally, in some embodiments of the present application, after sending the detection data packet to the access point device, the method further includes:

[0023] When it is determined that the second accumulated time exceeds the second time, the error correction confirmation value is increased by 1;

[0024] When the error correction confirmation value is greater than or equal to a second preset value, transmitting the message to be transmitted to the access point device according to the second transmission rate;

[0025] The second accumulated duration starts from when the detection data packet is sent to the access point device.

[0026] Optionally, in some embodiments of the present application, determining the type of the message to be transmitted includes:

[0027] Determining the protocol type of the message to be transmitted;

[0028] The type of the message to be transmitted is determined according to the preset filtering rules and the protocol type.

[0029] In a second aspect, an embodiment of the present application further provides a transmission rate control device, the device comprising:

[0030] A first determining module, used to determine the type of the message to be transmitted, the type including a first type and a second type, wherein the transmission rate of the message of the first type is a first transmission rate, the transmission rate of the message of the second type is a second transmission rate, and the first transmission rate is less than the second transmission rate;

[0031] The first transmission module is configured to transmit the message to be transmitted to the access point device according to the first transmission rate when the type of the message to be transmitted is the first type.

[0032] Optionally, in some embodiments of the present application, the transmission rate control device further includes:

[0033] A first receiving module, configured to receive a first confirmation frame from the access point device;

[0034] The first receiving module is further configured to set the retransmission count value to 0 according to the first confirmation frame;

[0035] The first confirmation frame is used to indicate that the access point device has successfully received the message to be transmitted.

[0036] Optionally, in some embodiments of the present application, the transmission rate control device further includes:

[0037] A second transmission module, configured to retransmit the message to be transmitted to the access point device according to the first transmission rate when it is determined that the first accumulated time duration exceeds the first time duration;

[0038] The first accumulated time starts from the time when the message to be transmitted is transmitted to the access point device.

[0039] Optionally, in some embodiments of the present application, the transmission rate control device further includes:

[0040] A first counting module, used for adding 1 to the retransmission count value;

[0041] The sending module is used to send a detection data packet to the access point device when the retransmission count value is greater than or equal to a first preset value, wherein the detection data packet is used to determine the communication status between the target device and the access point device.

[0042] Optionally, in some embodiments of the present application, the transmission rate control device further includes:

[0043] A second receiving module, used for receiving a second confirmation frame from the access point device indicating that the communication is normal;

[0044] The second receiving module is further configured to set the error correction confirmation value to 0 according to the second confirmation frame;

[0045] The first retransmission module is configured to retransmit the message to be transmitted to the access point device according to the first transmission rate.

[0046] Optionally, in some embodiments of the present application, the transmission rate control device further includes:

[0047] A second counting module, configured to add 1 to the error correction confirmation value when it is determined that the second accumulated duration exceeds the second duration;

[0048] A third transmission module, configured to transmit the message to be transmitted to the access point device according to the second transmission rate when the error correction confirmation value is greater than or equal to a second preset value;

[0049] The second accumulated duration starts from when the detection data packet is sent to the access point device.

[0050] Optionally, in some embodiments of the present application, the transmission rate control device further includes:

[0051] A second determination module, used to determine the protocol type of the message to be transmitted;

[0052] The third determination module is used to determine the type of the message to be transmitted according to a preset filtering rule and the protocol type.

[0053] In a third aspect, an embodiment of the present application further provides a transmission rate control device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps in the above-mentioned transmission rate control method are implemented.

[0054] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above-mentioned transmission rate control method are implemented.

[0055] In a fifth aspect, the embodiments of the present application further provide a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method provided in various optional implementations described in the embodiments of the present application.

[0056] In summary, the embodiments of the present application determine the type of messages to be transmitted, the types include a first type and a second type, wherein the transmission rate of the messages of the first type is a first transmission rate, the transmission rate of the messages of the second type is a second transmission rate, and the first transmission rate is less than the second transmission rate; when the type of the messages to be transmitted is the first type, a technical scheme of transmitting the messages to be transmitted to the access point device according to the first transmission rate classifies the messages to be transmitted and transmits them at different rates, and transmits the messages of the first type at a stable rate, thereby reducing the probability of errors in the packet receiving and sending process in a wireless environment due to an excessively high rate, ensuring the smoothness of data transmission of the target device used by the user, and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] In order to more clearly illustrate the technical solutions in the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0058] Figure 1 A flow chart of a transmission rate control method provided in an embodiment of the present application;

[0059] Figure 2 A schematic diagram of the structure of the target device provided in the embodiment of the present application;

[0060] Figure 3 A schematic diagram of the error correction logic flow provided for an embodiment of the present application;

[0061] Figure 4 The structure of the transmission rate control device provided in the embodiment of the present application is shown in FIG. Figure 1 ;

[0062] Figure 5The structure of the transmission rate control device provided in the embodiment of the present application is shown in FIG. Figure 2 . DETAILED DESCRIPTION

[0063] The following will be combined with the drawings in this application to clearly and completely describe the technical solutions in this application. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments in the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0064] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the above features. In the description of the present invention, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0065] In this application, the word "exemplary" is used to mean "serving as an example, illustration, or illustration." Any embodiment described in this application as "exemplary" is not necessarily to be construed as being preferred or advantageous over other embodiments. The following description is given to enable any person skilled in the art to implement and use the invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the invention can be implemented without using these specific details. In other instances, well-known structures and processes are not elaborated in detail to avoid obscuring the description of the invention with unnecessary details. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in this application.

[0066] The embodiments of the present application provide a transmission rate control method, device and computer-readable storage medium. Specifically, the embodiments of the present application provide a transmission rate control device suitable for a transmission rate control device, the transmission rate control device includes a terminal device, such as a smart device (such as a mobile phone, a computer, a tablet computer, etc.), and can also be used in other communication processing devices that need to perform data transmission, which are referred to as target devices in the embodiments of the present application.

[0067] In the prior art, the transmission rate of data packets depends on the rate supported by the router and the terminal device through negotiation. Currently, all devices based on the 802.11 protocol (a communication protocol used for data communication in wireless local area networks (WLAN)) support the use of speed selection and speed reduction mechanisms during data transmission. However, the 802.11 standard protocol does not specify how terminal devices should select and reduce speeds. Therefore, how to implement the rate selection is determined by the chip corresponding to the terminal device. Generally, the data transmission rate is controlled by the driver, firmware, etc. through programming.

[0068] Specifically, the current common speed selection and speed reduction mechanisms all need to go through the following process: the terminal device sends a packet signal quality test through the router's access point (AP) device (access point device) to define the initial packet rate of the terminal device's media access control layer (MAC layer); when the data link layer retransmission is small, and the packet error rate is low, and it continues for a certain period of time or the number of packets reaches a preset value, the data transmission rate is increased, and then the packet rate is increased; when the data link layer retransmission is high, and the packet error rate is high, and it continues for a certain period of time or the number of packets reaches a preset value, the data transmission rate is reduced, and then the packet rate is reduced.

[0069] The existing speed selection and speed reduction mechanism will increase the packet sending rate and data throughput, but will also increase the packet sending error rate. In addition, the data packets are in various forms, such as the data packets (Transmission Control Protocol segment, TCP packets) when the Transmission Control Protocol (TCP) transmits data in the network when browsing videos, and the data packets (User Datagram Protocol datagram, UDP packets) when the User Datagram Protocol (User Datagram Protocol) transmits data in the network when playing games. High data throughput will bring an intuitive and smooth experience. However, for IP layer protocol auxiliary technology related messages such as Dynamic Host Configuration Protocol (DHCP), Domain Name System (DNS), Internet Control Message Protocol (ICMP), Domain Name Resolution and Service Discovery Protocol (Multicast DNS, mDNS), they do not require very high data throughput and very high data transmission rate. The higher the packet sending rate, the more unstable the transmission will be, resulting in a greater possibility of data retransmission and packet loss, thus affecting the user experience.

[0070] In summary, the embodiment of the present application adopts a method of determining the type of message to be transmitted, and when the type of the message to be transmitted is the first type, transmitting the message to be transmitted according to the first transmission rate, and performing differentiated speed selection and packet sending by distinguishing the data packet type. For DHCP, ICMP, DNS, mDNS and other IP layer protocol auxiliary technology related messages that play a decisive role in network availability, the most stable data transmission rate is used for packet sending.

[0071] By adopting the embodiments of the present application, it is possible to select the rate for packet transmission according to the type of message to be transmitted, thereby avoiding a high error rate in sending and receiving packets and a high data packet retransmission rate in a wireless environment due to an excessively high rate, thereby affecting the user's Internet experience.

[0072] It should be noted that the order of description of the following embodiments is not intended to limit the priority order of the embodiments.

[0073] See also Figure 1 , Figure 1A flow chart of a transmission rate control method provided in an embodiment of the present application. Although a logical sequence is shown in the flow chart, in some cases, the steps shown or described may be performed in an order different from that shown in the accompanying drawings. Specifically, the specific flow of the transmission rate control method is as follows:

[0074] S101: Determine the type of the message to be transmitted.

[0075] In the embodiment of the present application, the above types include a first type and a second type.

[0076] In an embodiment of the present application, the first type of message may include: DHCP, DNS, ICMP, mDNS and other IP layer protocol auxiliary technology related messages, and the second type of message may include: UDP, TCP and other related messages that require higher data throughput and are used in scenarios such as video, games, and downloads.

[0077] It should be noted that the execution subject of the transmission rate control method provided in the embodiment of the present application is a station (STA), also known as a wireless station, which can be a terminal device or a client device in a wireless network, hereinafter referred to as a target device. The target device is a device connected to a wireless local area network, which communicates with an access point device, connects to a wireless network and transmits data.

[0078] As an optional embodiment, Figure 2 As shown, Figure 2 The target device provided in the embodiment of the present application may include three types of devices, namely, a frame recognition device, a speed selection device and an error correction device.

[0079] In an embodiment of the present application, the frame recognition device filters out the upper-layer UDP, TCP and other related messages that require higher data throughput for scenarios such as video, games, and downloads, and filters out messages related to IP layer protocol auxiliary technologies such as DHCP, DNS, ICMP, and mDNS according to the MAC header frame body filtering rules.

[0080] In an embodiment of the present application, the speed selection device modifies the packet sending rate of the message data related to the filtered IP layer protocol auxiliary technology, and limits the packet sending rate to a stable transmission rate for packet sending, that is, the first transmission rate; and uses the second transmission rate for sending related messages such as UDP, TCP, etc. in the upper layer for video, games, downloads, and other scenarios that require higher data throughput.

[0081] It should be noted that according to the 802.11 protocol specification, the above-mentioned stable transmission rate can be 1M / bps in the embodiment of the present application. 1M / bps is the packet sending speed supported by each protocol in the 802.11 protocol family. However, in order to avoid compatibility anomalies of some access point devices, when the 1M / bps packet sending error rate is high, an error correction mechanism will be triggered.

[0082] It should also be noted that the above stable transmission rate, namely the first transmission rate, includes but is not limited to 1M / bps, and can be set according to actual conditions. The above first transmission rate is lower than the above second transmission rate.

[0083] In an embodiment of the present application, after the error correction mechanism is triggered, the error correction device records the MAC address information of such access point device. In the subsequent data transmission process, when data is transmitted for this MAC address, the original speed selection mechanism of the chip module in the target device (that is, the second transmission rate is used for data transmission) can be used for packet processing to avoid unstable data transmission, which may lead to data retransmission and packet loss.

[0084] Optionally, the transmission rate control method provided in the embodiment of the present application also includes: determining the protocol type of the message to be transmitted; and determining the type of the message to be transmitted according to preset filtering rules and the protocol type.

[0085] Specifically, the frame identification device obtains the protocol stack of the message to be transmitted, and determines the protocol type corresponding to the message to be transmitted according to the field information of the message to be transmitted in the protocol stack. The MAC header frame body filtering rules are shown in Table 1:

[0086] Table 1

[0087] Protocol Type MAC header frame body filtering rules DHCP WLAN_RADIO:WLAN:LLC:IP:UDP:DHCP mDNS WLAN_RADIO:WLAN:LLC:IP:UDP:mDNS DNS WLAN_RADIO:WLAN:LLC:IP:UDP:DNS ICMP WLAN_RADIO:WLAN:LLC:IP:UDP:ICMP

[0088] Among them, WLAN_RADIO represents the physical layer (Physical Layer, PHY) and the radio transmission layer of the wireless local area network (WLAN). It includes protocols and functions related to the modulation, demodulation and radio frequency transmission of radio signals.

[0089] The data link layer (Media Access Control, MAC) of the wireless LAN is also called the wireless media access control (MAC) sublayer. It is responsible for managing the access to the wireless channel, the encapsulation and decapsulation of frames, etc.

[0090] The Logical Link Control (LLC) sublayer, which is part of the data link layer, is responsible for providing reliable data transmission and error detection.

[0091] Internet Protocol (IP) is part of the network layer and is responsible for the transmission and exchange of data packets through routing selection in different networks.

[0092] User Datagram Protocol (UDP), part of the transport layer, provides connectionless data transmission and is suitable for applications that require low latency and less error detection.

[0093] Dynamic Host Configuration Protocol (DHCP), part of the application layer, is used to automatically assign IP addresses and other network configuration information to devices on the network.

[0094] Multicast DNS (mDNS) is a protocol used for automatic device discovery and name resolution in a local area network. It uses multicast transmission and a specific message format to achieve automatic device discovery and host name resolution.

[0095] The Domain Name System (DNS) is a distributed naming system on the Internet used to resolve domain names or convert them into corresponding IP addresses.

[0096] The Internet Control Message Protocol (ICMP) is a protocol in the Internet Protocol Suite that is used for error handling and network status information delivery on IP networks. It is usually used at the network layer to send control messages to other devices in the network, report errors or request network status information.

[0097] As an optional embodiment, the MAC header frame body filtering rule is to filter the IP layer protocol auxiliary technology related messages with protocol types such as DHCP, ICMP, DNS, mDNS, etc. that have a decisive role in network availability into the first type, and filter other protocol types into the second type. After the filtering is completed, the speed selection device performs speed selection transmission.

[0098] S102: When the type of the message to be transmitted is the first type, transmit the message to be transmitted to an access point device according to the first transmission rate.

[0099] In the embodiment of the present application, the filtered message data related to the IP layer protocol auxiliary technology is transmitted and processed according to the first transmission rate.

[0100] It should be noted that the IP layer protocol auxiliary technology message (i.e. the first type of message to be transmitted) has the characteristics of small data volume and large impact of retransmission packet loss on the use of the entire network. After the frame recognition device identifies the IP layer protocol auxiliary technology message, the first transmission rate with high stability and high compatibility is selected for packet transmission during the transmission process to reduce the transmission error rate.

[0101] It should be noted that, in the embodiment of the present application, the first transmission rate takes the MAC layer rate of 1M / bps with high compatibility as an example, but the first transmission rate is not limited to only 1M / bps, and can be modified or set according to actual application conditions.

[0102] In the embodiment of the present application, although 1M / bps is a rate supported by the 802.11 protocol family, due to the wide variety of access point devices, some devices may be incompatible with the 1M / bps rate. Therefore, an error correction device is used to perform error correction processing based on the first confirmation frame of the access point device.

[0103] It should be noted that the first confirmation frame is used to indicate that the access point device has successfully received the message to be transmitted.

[0104] After sending the first type of to-be-transmitted message to the access point device at the first transmission rate, optionally, the transmission rate control method provided in the embodiment of the present application further includes: the access point device sends a first confirmation frame to the target device. Correspondingly, the target device receives the first confirmation frame from the access point device, and sets the retransmission count value to 0 according to the first confirmation frame.

[0105] Specifically, after the IP layer protocol auxiliary technology message is transmitted at a rate of 1M / bps, the device performing data transmission (ie, the target device) receives a first confirmation frame (Acknowledgment, ACK) from the access point device, and sets the retransmission count value to 0 according to the received first confirmation frame.

[0106] It should be noted that after sending the first type of to-be-transmitted message to the access point device at the first transmission rate, if the access point device successfully receives the first type of to-be-transmitted message, it will send a first confirmation frame to the target device.

[0107] When the first accumulated duration exceeds the first duration, optionally, the transmission rate control method provided in the embodiment of the present application further includes: retransmitting the message to be transmitted to the access point device according to the first transmission rate.

[0108] Optionally, the target device may be configured with one or more timers or timing devices, which are used to start timing immediately after the target device transmits the message to be transmitted to the access point device, to obtain the first accumulated duration. When the first accumulated duration exceeds the first duration, that is, the first confirmation frame of the access point device is not received within the first duration.

[0109] Specifically, after the target device transmits the IP layer protocol auxiliary technology message at a rate of 1M / bps, and does not receive the first confirmation frame from the access point device within a first period of time, a frame retransmission mechanism is performed.

[0110] It should be noted that the frame retransmission mechanism is that the target device retransmits the message to be transmitted according to the first transmission rate. In addition, each time the message to be transmitted is retransmitted, the retransmission count value is increased by 1. When the retransmission count value is greater than or equal to the first preset value, the transmission rate control method provided in the embodiment of the present application may further include: the target device sends a detection data packet to the access point device. In the embodiment of the present application, the detection data packet is used to determine the communication status between the target device and the access point device.

[0111] Specifically, after the above frame retransmission mechanism is repeated multiple times (the number of times corresponding to the first preset value), or the number of retransmissions reaches the first preset value, that is, the above retransmission count value is greater than or equal to the first preset value, the target device sends an empty data frame (QoS null data, that is, a detection data packet) to the access point device, and the empty data frame performs communication detection using a traditional speed selection mechanism.

[0112] It should be noted that the above-mentioned traditional speed selection mechanism is the above-mentioned second transmission rate.

[0113] After the target device sends the detection data packet, optionally, the transmission rate control method provided in the embodiment of the present application further includes: the access point device sends a second confirmation frame to the target device. Accordingly, the target device receives the second confirmation frame from the access point device and sets the error correction confirmation value to 0 according to the second confirmation frame.

[0114] It should be noted that after the target device sends the detection data packet to the access point device at the second transmission rate, if the access point device successfully receives the detection data packet, it will send a second confirmation frame to the target device. The second confirmation frame is used to indicate that the communication between the target device and the access point device is normal.

[0115] Specifically, after the target device sends the detection data packet, if it successfully receives the second confirmation frame (Acknowledgment, ACK) returned by the access point device within the second time period, it proves that the communication between the target device and the access point device is normal, and the above-mentioned message to be transmitted continues to be retransmitted at the first transmission rate.

[0116] When it is determined that the second accumulated duration exceeds the second duration, optionally, the transmission rate control method provided in the embodiment of the present application further includes: adding 1 to the error correction confirmation value.

[0117] Similarly, the target device can set one or more timers or timing devices to start timing immediately after the target device sends a detection data packet to the access point device to obtain the second accumulated time. When the second accumulated time exceeds the second time, that is, the second confirmation frame of the access point device is not received within the second time.

[0118] Specifically, after the target device sends a detection data packet, when the second cumulative time exceeds the second time (that is, the second confirmation frame returned by the access point device is not received), the error correction confirmation value is increased by 1, and the above-mentioned message to be transmitted continues to be retransmitted at the first transmission rate (continue the frame retransmission mechanism).

[0119] Specifically, after repeating the above-mentioned frame retransmission mechanism for multiple times, that is, when the number of retransmissions reaches the first preset value again, that is, when the above-mentioned retransmission count value is again greater than or equal to the first preset value, the target device sends a detection data packet to the access point device, and when the second time period is exceeded (that is, the second confirmation frame returned by the access point device is not received), the error correction confirmation value is increased by 1 again.

[0120] When the error correction confirmation value is greater than or equal to the second preset value, optionally, the transmission rate control method provided in the embodiment of the present application further includes: transmitting the message to be transmitted according to the second transmission rate.

[0121] Specifically, when the above-mentioned error correction confirmation value reaches the second preset value, the error correction logic is triggered to record the MAC address information of the access point device. When data is transmitted to this access point device in the future, the differentiated packet sending optimization logic will not be used (the first transmission rate is used for data transmission for IP layer protocol auxiliary technology related messages), and all messages will be sent using the chip module's native packet sending logic (the second transmission rate is used for data transmission).

[0122] like Figure 3 As shown, Figure 3The error correction logic flow diagram provided in the embodiment of the present application is that when the IP layer protocol auxiliary technology message is sent at a rate of 1M / bps, if the target device cannot receive the first confirmation frame of the access point device, the frame retransmission mechanism is performed, and the retransmission count value is increased by 1. When the number of retransmissions (retransmission count value) reaches the first preset value (the first preset value can be set to n, and n can be an arbitrary constant), a detection data packet (qos null date frame) is sent to detect at the second transmission rate. If the target device cannot obtain the second confirmation frame of the access point device after sending the detection data packet, the error correction count value is increased by 1. When the number of retransmissions of the IP layer protocol auxiliary technology message reaches n times again, this process is repeated again. When the retransmission is successful, the count is cleared. When the error correction count value reaches the second preset value (the second preset value can be set to 3), the error correction logic is triggered, and the MAC address information of the access point device is recorded. In the future, the packet sending to this access point device will not enter this differentiated packet sending optimization logic, and all messages are sent using the chip module native packet sending logic (second transmission rate).

[0123] It should be noted that the above-mentioned first preset value and second preset value are just examples, and the specific values ​​can be set according to actual conditions.

[0124] In an optional embodiment, if the retransmission count value reaches n multiple times and the error correction count value never reaches the second preset value, all messages may also be transmitted data at the second transmission rate.

[0125] In order to better implement the transmission rate control method of the present application, the present application also provides a transmission rate control device based on the above transmission rate control method. The meanings of the terms are the same as those in the above transmission rate control method, and the specific implementation details can refer to the description in the method embodiment.

[0126] See also Figure 4 , Figure 4 The structure of the transmission rate control device provided in the embodiment of the present application is shown in FIG. Figure 1 , specifically as follows:

[0127] A first determining module 401 is used to determine the type of the message to be transmitted, the type includes a first type and a second type, wherein the transmission rate of the message of the first type is a first transmission rate, the transmission rate of the message of the second type is a second transmission rate, and the first transmission rate is less than the second transmission rate;

[0128] The first transmission module 402 is configured to transmit the message to be transmitted to the access point device according to the first transmission rate when the type of the message to be transmitted is the first type.

[0129] Optionally, in some embodiments of the present application, the transmission rate control device further includes:

[0130] A first receiving module, configured to receive a first confirmation frame from the access point device;

[0131] The first receiving module is further used to set the retransmission count value to 0 according to the first confirmation frame;

[0132] The first confirmation frame is used to indicate that the access point device has successfully received the message to be transmitted.

[0133] Optionally, in some embodiments of the present application, the transmission rate control device further includes:

[0134] A second transmission module, configured to retransmit the message to be transmitted to the access point device according to the first transmission rate when it is determined that the first accumulated time duration exceeds the first time duration;

[0135] The first accumulated time starts from the time when the message to be transmitted is transmitted to the access point device.

[0136] Optionally, in some embodiments of the present application, the transmission rate control device further includes:

[0137] A first counting module, used for adding 1 to the retransmission count value;

[0138] The sending module is used to send a detection data packet to the access point device when the retransmission count value is greater than or equal to the first preset value, and the detection data packet is used to determine the communication status between the target device and the access point device.

[0139] Optionally, in some embodiments of the present application, the transmission rate control device further includes:

[0140] A second receiving module, used for receiving a second confirmation frame from the access point device indicating that the communication is normal;

[0141] The second receiving module is further configured to set the error correction confirmation value to 0 according to the second confirmation frame;

[0142] The first retransmission module is used to retransmit the message to be transmitted to the access point device according to the first transmission rate.

[0143] Optionally, in some embodiments of the present application, the transmission rate control device further includes:

[0144] A second counting module, configured to add 1 to the error correction confirmation value when it is determined that the second accumulated duration exceeds the second duration;

[0145] A third transmission module, configured to transmit the message to be transmitted to the access point device according to the second transmission rate when the error correction confirmation value is greater than or equal to the second preset value;

[0146] The second accumulated duration starts from the time when the detection data packet is sent to the access point device.

[0147] Optionally, in some embodiments of the present application, the first determining module 401 further includes:

[0148] A second determination module, used to determine the protocol type of the message to be transmitted;

[0149] The third determination module is used to determine the type of the message to be transmitted according to the preset filtering rules and the protocol type.

[0150] In the embodiment of the present application, the first determination module 401 first determines the type of the message to be transmitted, and the above type includes a first type and a second type, wherein the transmission rate of the above first type of message is a first transmission rate, the transmission rate of the above second type of message is a second transmission rate, and the above first transmission rate is less than the above second transmission rate. Then, the first transmission module 402 transmits the above message to be transmitted to the access point device according to the above first transmission rate when the type of the above message to be transmitted is the above first type.

[0151] In addition, the present application also provides a transmission rate control device, such as Figure 5 As shown, it shows the structure of the transmission rate control device involved in this application Figure 2 , specifically:

[0152] The transmission rate control device may include one or more processing core processors 501, one or more computer-readable storage media memories 502, a power supply 503, an input unit 504 and other components. Those skilled in the art will appreciate that Figure 5 The transmission rate control device structure shown in the figure does not constitute a limitation on the transmission rate control device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Among them:

[0153] The processor 501 is the control center of the transmission rate control device. It uses various interfaces and lines to connect various parts of the entire transmission rate control device. By running or executing software programs and / or modules stored in the memory 502, and calling data stored in the memory 502, it performs various functions of the transmission rate control device and processes data, thereby monitoring the transmission rate control device as a whole. Optionally, the processor 501 may include one or more processing cores; preferably, the processor 501 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 501.

[0154] The memory 502 can be used to store software programs and modules. The processor 501 executes various functional applications and data processing by running the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the transmission rate control device, etc. In addition, the memory 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.

[0155] The transmission rate control device also includes a power supply 503 for supplying power to each component. Preferably, the power supply 503 can be logically connected to the processor 501 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 503 can also include one or more DC or AC power supplies, recharging systems, power supply device debugging circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0156] The transmission rate control device may further include an input unit 504, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0157] Although not shown, the transmission rate control device may also include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 501 in the transmission rate control device will load the executable files corresponding to the processes of one or more application programs into the memory 502 according to the following instructions, and the processor 501 will run the application programs stored in the memory 502, thereby implementing the steps in any transmission rate control method provided in the embodiments of the present application.

[0158] The embodiment of the present application determines the type of message to be transmitted, the type includes a first type and a second type, wherein the transmission rate of the message of the first type is a first transmission rate, the transmission rate of the message of the second type is a second transmission rate, and the first transmission rate is less than the second transmission rate; in the case that the type of the message to be transmitted is the first type, a technical scheme of transmitting the message to be transmitted to the access point device at the first transmission rate is adopted, the messages to be transmitted are classified and transmitted at different rates, and the first type of message is transmitted at a stable rate, thereby reducing the probability of errors in the packet receiving and sending process in a wireless environment due to an excessively high rate, ensuring the smoothness of data transmission of the target device used by the user, and improving the user experience.

[0159] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0160] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0161] To this end, the present application provides a computer-readable storage medium, on which a computer program is stored. The computer program can be loaded by a processor to execute the steps in any transmission rate control method provided in the present application.

[0162] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0163] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0164] Since the instructions stored in the computer-readable storage medium can execute the steps in any transmission rate control method provided in the present application, the beneficial effects that can be achieved by any transmission rate control method provided in the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0165] The above is a detailed introduction to a transmission rate control method, device and computer-readable storage medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

[0166] It should be noted that in the specific implementation of this application, related data such as user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) are involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

Claims

1. A transmission rate control method, characterized in that: include: Determine a type of a message to be transmitted, the type including a first type and a second type, wherein a transmission rate of the message of the first type is a first transmission rate, a transmission rate of the message of the second type is a second transmission rate, and the first transmission rate is less than the second transmission rate; When the type of the message to be transmitted is the first type, the message to be transmitted is transmitted to the access point device according to the first transmission rate.

2. The method according to claim 1, characterized in that: After transmitting the message to be transmitted to the access point device according to the first transmission rate, the method further includes: receiving a first confirmation frame from the access point device; Setting the retransmission count value to 0 according to the first confirmation frame; The first confirmation frame is used to indicate that the access point device has successfully received the message to be transmitted.

3. The method according to claim 1, characterized in that After transmitting the message to be transmitted to the access point device according to the first transmission rate, the method further includes: When it is determined that the first accumulated duration exceeds the first duration, retransmitting the message to be transmitted to the access point device according to the first transmission rate; The first accumulated time starts from the time when the message to be transmitted is transmitted to the access point device.

4. The method according to claim 3, characterized in that After retransmitting the to-be-transmitted message to the access point device according to the first transmission rate, the method further includes: Increase the retransmission count by 1; When the retransmission count value is greater than or equal to a first preset value, a detection data packet is sent to the access point device, where the detection data packet is used to determine the communication status between the target device and the access point device.

5. The method according to claim 4, characterized in that After sending the detection data packet to the access point device, the method further includes: receiving a second confirmation frame from the access point device indicating that communication is normal; Setting the error correction confirmation value to 0 according to the second confirmation frame; Retransmit the message to be transmitted to the access point device according to the first transmission rate.

6. The method according to claim 4, characterized in that After sending the detection data packet to the access point device, the method further includes: When it is determined that the second accumulated time exceeds the second time, the error correction confirmation value is increased by 1; When the error correction confirmation value is greater than or equal to a second preset value, transmitting the message to be transmitted to the access point device according to the second transmission rate; The second accumulated duration starts from when the detection data packet is sent to the access point device.

7. The method according to claim 1, characterized in that The determining the type of the message to be transmitted includes: Determining the protocol type of the message to be transmitted; The type of the message to be transmitted is determined according to the preset filtering rules and the protocol type.

8. A transmission rate control device, characterized in that: include: A first determining module, used to determine the type of the message to be transmitted, the type including a first type and a second type, wherein the transmission rate of the message of the first type is a first transmission rate, the transmission rate of the message of the second type is a second transmission rate, and the first transmission rate is less than the second transmission rate; The second transmission module is configured to transmit the message to be transmitted to the access point device according to the first transmission rate when the type of the message to be transmitted is the first type.

9. A transmission rate control device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps in the transmission rate control method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the transmission rate control method according to any one of claims 1 to 7 are implemented.