CN113840272A - Data transmission method, data transmission device and electronic device - Google Patents

Data transmission method, data transmission device and electronic device Download PDF

Info

Publication number
CN113840272A
CN113840272A CN202111186911.4A CN202111186911A CN113840272A CN 113840272 A CN113840272 A CN 113840272A CN 202111186911 A CN202111186911 A CN 202111186911A CN 113840272 A CN113840272 A CN 113840272A
Authority
CN
China
Prior art keywords
data
transmission rate
memory
transmission
data transmission
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
CN202111186911.4A
Other languages
Chinese (zh)
Other versions
CN113840272B (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.)
Beijing Eswin Computing Technology Co Ltd
Guangzhou Quanshengwei Information Technology Co Ltd
Original Assignee
Beijing Eswin Computing Technology Co Ltd
Guangzhou Quanshengwei Information Technology 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 Beijing Eswin Computing Technology Co Ltd, Guangzhou Quanshengwei Information Technology Co Ltd filed Critical Beijing Eswin Computing Technology Co Ltd
Priority to CN202111186911.4A priority Critical patent/CN113840272B/en
Priority claimed from CN202111186911.4A external-priority patent/CN113840272B/en
Publication of CN113840272A publication Critical patent/CN113840272A/en
Application granted granted Critical
Publication of CN113840272B publication Critical patent/CN113840272B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • 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/0215Traffic management, e.g. flow control or congestion control based on user or device properties, e.g. MTC-capable devices
    • 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/0231Traffic management, e.g. flow control or congestion control based on communication conditions
    • H04W28/0236Traffic management, e.g. flow control or congestion control based on communication conditions radio quality, e.g. interference, losses or delay

Abstract

The disclosure provides a data transmission method, a data transmission device and an electronic device. In the data transmission method, data received from a data transmission device is buffered in a first memory and then stored in a second memory. The data transmission method comprises the following steps: acquiring the idle capacity state of a second memory; and responding to the free capacity state of the second memory being smaller than the first threshold value, sending a first notice to the data sending device, and informing the data sending device to transmit data at a second transmission rate, wherein the second transmission rate is lower than the first transmission rate currently used. The data transmission method adjusts the data transmission rate according to the operating condition of the communication equipment, and improves the stability of wireless network data transmission.

Description

Data transmission method, data transmission device and electronic device
Technical Field
The disclosure relates to a data transmission method, a data transmission device and an electronic device.
Background
Currently, with the rapid development of science and technology, electronic devices supporting wireless communication functions are rapidly popularized. The wireless communication function of electronic devices has been an important basic function of electronic devices. However, in some cases, the processing power of an electronic device for data received over a wireless communication network cannot match the data transfer rate of its wireless communication.
Disclosure of Invention
Some embodiments of the present disclosure provide a data transmission method, in which data received from a data transmission apparatus is buffered in a first memory before being stored in a second memory, the method including: acquiring the idle capacity state of the second memory; and responding to the condition that the free capacity state of the second memory is smaller than a first threshold value, sending a first notice to the data sending equipment, and informing the data sending equipment to transmit data at a second transmission rate, wherein the second transmission rate is lower than the first transmission rate which is currently used.
For example, some embodiments of the present disclosure provide a data transmission method further including: and responding to the free capacity state of the second memory being larger than or equal to the first threshold value, sending a second notice to the data sending device, and informing the data sending device to carry out data transmission at the first transmission rate.
For example, some embodiments of the present disclosure provide a data transmission method, where the first notification includes a first notification frame for requesting the data transmission device to perform a first action of transmitting at the second transmission rate, and the second notification includes a second notification frame for requesting the data transmission device to perform a second action of transmitting at the first transmission rate.
For example, in a data transmission method provided in some embodiments of the present disclosure, the second transmission rate includes: a transmission rate candidate selected from a plurality of transmission rate candidates determined in advance with the data transmission apparatus, wherein the plurality of transmission rate candidates are determined when a connection is established with the data transmission apparatus.
For example, some embodiments of the present disclosure provide a data transmission method, where data received from the data sending device includes multiple classes of data items, each of the multiple classes of data items corresponding to a priority, and the data transmission method further includes: in response to the free capacity state of the second memory being less than a second threshold value, reserving at least one of the plurality of types of data items having a priority greater than or equal to a selected first priority, and ceasing to reserve at least one of the plurality of types of data items having a priority less than the first priority, wherein the second threshold value is less than the first threshold value; in response to the free capacity state of the second memory being equal to or greater than the second threshold, restoring retention of at least one of the plurality of types of data items having a priority equal to or greater than the first priority while retaining at least one of the plurality of types of data items having a priority less than the first priority.
For example, in a data transmission method provided in some embodiments of the present disclosure, the data item corresponding to the first priority includes a notification frame for managing the data transmission.
For example, some embodiments of the present disclosure provide a data transmission method further including: in response to the free capacity state of the first memory being less than a third threshold, switching from a current data transfer state to only reserving data items for declaring a connection exists.
In response to the free capacity state of the first memory being greater than or equal to the third threshold, switching from the data transfer state of only reserved data items to a data transfer state that also receives other notification frames than the data item for declaring the existence of a connection.
Some embodiments of the present disclosure provide a data transmission method, including: receiving a first notification from a data receiving device, the first notification being notified of data transmission at a second transmission rate, wherein the second transmission rate is lower than a currently used first transmission rate, the data receiving device buffering received data in a first memory before storing the data in a second memory, the first notification being issued in response to a state of free capacity of the second memory being less than a first threshold; switching from the first transmission rate to the second transmission rate.
For example, in a data transmission method provided in some embodiments of the present disclosure, the second transmission rate includes: a selected one of a plurality of alternative transmission rates predetermined with the data reception apparatus, wherein the plurality of alternative transmission rates are determined when a connection is established with the data reception apparatus.
For example, some embodiments of the present disclosure provide a data transmission method further including: receiving a second notification from the data receiving device, and transmitting data at the first transmission rate in response to the second notification.
For example, some embodiments of the present disclosure provide a data transmission method, wherein the first notification includes a first notification frame notifying that a first action of transmission at the second transmission rate is performed, and the second notification includes a second notification frame notifying that a second action of transmission at the first transmission rate is performed.
Some embodiments of the present disclosure provide a data transmission method, including: the data receiving equipment firstly caches the data received from the data sending equipment in a first memory of the data receiving equipment and then stores the data in a second memory of the data receiving equipment; the data receiving equipment acquires the idle capacity state of the second memory; and the data receiving equipment responds to that the free capacity state of the second memory is smaller than a first threshold value, and sends a first notice to the data sending equipment, and the data sending equipment carries out data transmission at a second transmission rate according to the notice, wherein the second transmission rate is lower than the currently used first transmission rate.
Some embodiments of the present disclosure provide a data transmission device, including: a first memory configured to buffer data received from a data transmission apparatus; a second memory configured to store the data cached by the first memory; and the control module is configured to acquire the free capacity state of the second memory, and in response to the free capacity state of the second memory being smaller than a first threshold, send a first notification to the data sending device to notify that data transmission is performed at a second transmission rate, wherein the second transmission rate is lower than the currently used first transmission rate.
Some embodiments of the present disclosure provide a data transmission device, including: a signal sending and receiving module configured to receive a first notification from a data receiving apparatus, the first notification being notified of data transmission at a second transmission rate, wherein the second transmission rate is lower than a currently used first transmission rate, the data receiving apparatus buffering received data in a first memory before storing the received data in a second memory, the first notification being issued in response to a state of free capacity of the second memory being smaller than a first threshold; a control module configured to switch a transmission rate with the data receiving device from the first transmission rate to the second transmission rate according to the first notification.
Some embodiments of the present disclosure provide an electronic device, comprising: a processor; a memory storing computer-executable instructions; wherein the computer executable instructions are stored in the memory and configured to be executed by the processor to implement the data transmission method described above.
Some embodiments of the present disclosure provide a storage medium storing non-transitory computer-executable instructions that, when executed by a processor, implement the data transmission method described above.
Drawings
To more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings of the embodiments will be briefly introduced below, and it is apparent that the drawings in the following description relate only to some embodiments of the present disclosure and are not limiting to the present disclosure.
FIG. 1 is a schematic diagram of a wireless communication system;
fig. 2 is a flowchart of a data transmission method according to at least one embodiment of the present disclosure;
fig. 3 is a flow chart of another data transmission method provided by at least one embodiment of the present disclosure;
fig. 4 is a schematic diagram of a data transmission device according to at least one embodiment of the present disclosure;
fig. 5 is a schematic diagram of another data transmission apparatus provided in at least one embodiment of the present disclosure; and
fig. 6 is a schematic view of an electronic device according to at least one embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more apparent, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings of the embodiments of the present disclosure. It is to be understood that the described embodiments are only a few embodiments of the present disclosure, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the described embodiments of the disclosure without any inventive step, are within the scope of protection of the disclosure.
Unless otherwise defined, technical or scientific terms used herein shall have the ordinary meaning as understood by one of ordinary skill in the art to which this disclosure belongs. The use of "first," "second," and similar terms in this disclosure is not intended to indicate any order, quantity, or importance, but rather is used to distinguish one element from another. Also, the use of the terms "a," "an," or "the" and similar referents do not denote a limitation of quantity, but rather denote the presence of at least one. The word "comprising" or "comprises", and the like, means that the element or item listed before the word covers the element or item listed after the word and its equivalents, but does not exclude other elements or items. The terms "connected" or "coupled" and the like are not restricted to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", and the like are used merely to indicate relative positional relationships, and when the absolute position of the object being described is changed, the relative positional relationships may also be changed accordingly.
The present disclosure is illustrated by the following specific examples. A detailed description of known functions and known parts (elements) may be omitted in order to keep the following description of the embodiments of the present disclosure clear and concise. When any element of an embodiment of the present disclosure appears in more than one drawing, that element is identified in each drawing by the same or similar reference numeral.
The electronic device supports various Wireless communication modes, such as Bluetooth (Bluetooth), Global System for Mobile Communications (GSM), Code Division Multiplexing (CDMA), Long Term Evolution (LTE), fifth generation Mobile communication (5G), Wireless Local Area Network (WLAN) (e.g., Wireless Fidelity (WiFi)), ZigBee protocol, Ultra Wideband (UWB) Wireless protocol, and other common Wireless communication modes.
For example, an electronic device receives data using a wireless local area network as shown in fig. 1. As shown in fig. 1, the data transmission device 11 performs data transmission with the data reception device 12 through wireless communication such as a wireless local area network (e.g., WiFi). The data transmission device 11 or the data reception device 12 may be an Access Point (AP) or a Station (STA).
For example, the data receiving device 12 may include a transceiver module 121, a processing module 122, a Buffer (Buffer)123, a memory 124, and a control module 125, wherein the transceiver module 121 may include a Radio Frequency (RF) antenna sub-module, a modem sub-module, and the like, and the processing module 122 may include a baseband signal processing sub-module, a digital signal processing sub-module, and the like. The data transmission device 11 transmits data through a wireless local area network, for example, the data transmission device 11 also includes a Radio Frequency (RF) antenna sub-module, a modem sub-module (not shown), and the like.
The data receiving device 12 receives data transmitted by the data transmitting device 11 via the wireless lan via the transceiver module 121 under the control of the control module 125, processes the received data via the processing module 122, and temporarily stores the processed data in the buffer 123. After the received data is stored in the buffer 123, the buffer 123 may send an event to the control module 125 to notify the control module 125, such that the control module 125 triggers a workflow for the data receiving device 12 to read the received data from the buffer 123. The data receiving apparatus 12 can read the data in the buffer 123 on the premise that the data receiving apparatus 12 applies for or reserves a memory space on the storage 124 thereof, and the applied or reserved memory space can store the data currently stored in the buffer 123.
On the one hand, if the memory 124 does not have enough memory space, the data stored in the buffer 123 will be retained therein. When the buffer 123 is full due to too much data staying in the buffer 123, the subsequently received data cannot be stored in the buffer 123, and the data that cannot be stored in the buffer 123 is discarded, thereby affecting the normal operation of the communication. On the other hand, if the data receiving apparatus 12 cannot process the received data in time and continuously read the data from the buffer 123, the buffer 123 is full, so that the subsequently received data cannot be stored in the buffer 123, and therefore, the subsequently received data is discarded, thereby affecting the normal operation of the communication.
Both of the above problems are related to the operation state of the data reception device, and have a large influence on the user use of the data reception device. For example, in a wireless local area network, loss of a key frame (e.g., a management frame) related to the connection state of the wireless local area network may cause a problem such as disconnection of a wireless connection between a data receiving apparatus and a data transmitting apparatus.
At least one embodiment of the present disclosure provides a data transmission method. With this data transmission method, data received from a data transmission device is buffered in a first memory before being stored in a second memory. The method comprises the following steps: acquiring the idle capacity state of a second memory; and responding to the free capacity state of the second memory being smaller than the first threshold value, sending a first notice to the data sending device, and informing the data sending device to transmit data at a second transmission rate, wherein the second transmission rate is lower than the first transmission rate currently used. The data transmission method solves the problems of data loss and unstable connection between communication devices caused by mismatching of data processing and transmission rate between the communication devices. Meanwhile, the data transmission method can effectively improve the reliability and stability of data transmission between communication devices, thereby improving the user experience.
At least one embodiment of the present disclosure further provides another data transmission method. With the data transmission method, data received from the data transmission device is buffered in the first memory before being stored in the second memory, and the data received from the data transmission device includes a plurality of types of data items, each of the plurality of types of data items corresponding to a priority. The data transmission method comprises the following steps: and in response to the free capacity state of the second memory being less than a threshold value, reserving at least one of the plurality of types of data items having a priority greater than or equal to the selected first priority, and ceasing to reserve at least one of the plurality of types of data items having a priority less than the first priority. The data transmission method helps to keep the connection between the communication devices stable when the data receiving device cannot process the received data in time.
At least one embodiment of the present disclosure further provides another data transmission method. With this data transmission method, data received from a data transmission device is buffered in a first memory before being stored in a second memory. The data transmission method comprises the following steps: in response to the free capacity state of the first memory being less than a threshold, switching from the current data transfer state to a state in which only data items for declaring the existence of a connection are reserved. The data transmission method helps to keep the connection between the communication devices stable when the data receiving device cannot process the received data in time.
Each data transmission method provided by at least one embodiment of the present disclosure is described below with reference to fig. 2. Fig. 2 is a flowchart of a data transmission method according to at least one embodiment of the present disclosure.
The data transmission method is applicable to, for example, the wireless communication system shown in fig. 1. The data sending device and the data receiving device perform data transmission at a certain data transmission rate through a wireless communication protocol (for example, WiFi). The data transmitting device or the data receiving device may be an Access Point (AP) or a Station (STA), and the specific type of the wireless communication protocol is not limited by the embodiments of the present disclosure. In the data transmission method, data received from the data transmission device may be buffered in the first memory before being stored in the second memory, for example, the data received from the data transmission device may include a plurality of types of data items.
For example, data items (data packets) transmitted by the data transmitting device and the data receiving device through the wireless communication protocol may include, but are not limited to, data packets (data frames), management packets (management frames), control packets (control frames), and the like according to different wireless network protocols. For example, for the 802.11 protocol, the following are briefly described for a data packet, a management packet, and a control packet, respectively:
(1) the data packet is used for carrying higher-level data (such as an IP data packet) and is responsible for transmitting data between devices;
(2) the management packet controls the management functions of the network, primarily to join or leave the wireless network, and to handle the transfer of connections between access points. For example, the management packet includes:
beacon frames (Beacon), regular wireless signals (heartbeat signals) sent at regular intervals in sequence, in a timed manner, in the wireless device, for positioning and synchronization;
authentication (authentication) and Deauthentication (Deauthentication)
Probe Request (Probe Request), Probe Response (Probe Response)
Request and Response (Request and Response)
Association Request (Association Request), Association Response (Association Response)
Reassociation Request (Reassociation Request), Reassociation Response (Reassociation Response)
Disassociation (Disassocitation)
Notification Transmission Message (ATIM)
(3) Control packets, known under the term "Media Access Control (MAC)", are used to Control Access to a shared medium (i.e., a physical medium), and are usually used in conjunction with data frames to clear areas, acquire channels, and maintain carrier sense, and respond when data is received. For example, the control packet includes:
request To Send (Request To Send, RTS)
Clear To Send (CTS)
Acknowledgement (ACK)
Power saving-Poll (PS-Poll)
In the embodiment of the present disclosure, the data receiving apparatus temporarily stores the received data item in a first memory, and a specific example of the first memory includes a buffer or other storage device that temporarily holds the received data; then, the data receiving device fetches and stores the data from the first storage into its second storage, which may be, for example, a Memory, a Random Access Memory (RAM), or the like, according to the need of its data processing, so that the data receiving device processes the received data. Here, the first memory and the second memory may be implemented by, for example, a semiconductor storage medium. The data receiving device may further include a third memory, which may be used, for example, to store data from the second memory, which may be, for example, a magnetic disk, a solid state disk, or the like, as needed.
For example, fig. 2 shows seven steps of step S201 to step S207 in the data transmission method, and the seven steps are explained in detail below. These steps are described in terms of the data receiving device, i.e., the execution subject is the data receiving device.
In step S201, the free capacity state of the second memory is acquired.
Step S202, responding to the idle capacity state of the second memory being smaller than the first threshold, sending a first notice to the data sending device, and informing the data sending device to transmit data at the second transmission rate. The second transmission rate is lower than the first transmission rate currently in use.
When the data processing capacity of the data receiving equipment is insufficient, the received data can be discarded due to the fact that the received data cannot be processed in time, the data throughput can be reduced by reducing the data volume received by the network equipment in unit time, the data transmission rate can be reduced, the reduced data processing capacity of the data receiving equipment is matched, and the phenomenon that the data is discarded due to the fact that the data receiving equipment cannot process the received data in time is reduced. By determining the data processing capability of the data receiving device according to the free state of the memory of the data receiving device, it may be determined, for example, whether the free capacity state of the second storage of the data receiving device, for example, the free capacity state of the memory, is less than a certain threshold (referred to as a first threshold herein), for example, the first threshold may be a certain lower specific threshold of the free capacity state of the memory, for example, between 20% and 40%, or for example, 30%. For example, when the memory free capacity state of the data receiving device is lower than 50%, although the memory is free, the data processing capability of the data receiving device is close to saturation, and accordingly, the data receiving device has no redundant processing capability to process data received at a corresponding normal data rate when the data processing capability is sufficient. For example, a memory free capacity state of between 20% and 40% corresponds to the data receiving device not being able to process data received at the previous normal data rate in time; a memory free capacity state of less than 20% corresponds to the data receiving device not being able to process the data received at the lowest data rate in time, it being necessary to discard the received data (data item). Therefore, it is determined whether the data processing capability of the data receiving device is not enough to process the data transmitted at the first transmission rate in time according to whether the value of the memory free capacity state of the data receiving device is smaller than the first threshold, for example, the first transmission rate may be a data transmission rate on the current network. The first threshold may be preset in the data receiving device, or may be dynamically set by the data receiving device according to its own operating condition.
For example, when the data receiving apparatus determines that the data transmission rate is insufficient to process the data that is continuously received, the data receiving apparatus may issue a first notification to the data transmitting apparatus to notify the data transmitting apparatus to decrease the data transmission rate to the second transmission rate. For example, the first notification includes a first notification frame for requesting the data transmission apparatus to perform a first action of transmitting at the second transmission rate. For example, the first notification may be a message frame that may include a flag bit instructing to perform a reduction of the data transmission rate, or in other cases, the message frame may further include a field information bit of a value of the second transmission rate to be reduced. For example, the data sending device parses the first notification after receiving the first notification, and learns from the first notification that the data transmission rate needs to be decreased and the second transmission rate to which the data transmission rate may need to be decreased, so that the first action may be performed according to the first notification, for example, the first action may be an action of actively selecting a certain transmission rate lower than the first transmission rate (thereby serving as the second transmission rate) to send data, or may be an action of sending data at the second lower transmission rate specified by the first notification. For example, the second transmission rate may be, but is not limited to, a lower data transmission rate of 50%, 30%, or 20%, etc. of the first transmission rate.
For example, the second transmission rate includes one alternative transmission rate selected from a plurality of alternative transmission rates predetermined with the data transmission apparatus. For example, the plurality of alternative transmission rates are determined when a connection is established with the data transmitting device, and the second transmission rate may be selected from the set of different alternative transmission rate values. For example, the first transmission rate may be a conventional transmission rate, such as an optimal transmission rate (or a recommended transmission rate), and the set of different alternative transmission rate values may be a plurality of transmission rate values lower than the optimal transmission rate negotiated by sending a message frame when the data receiving device establishes a connection with the data sending device, and the alternative transmission rate values may be stored in the data sending device or the data receiving device and may be selected for the data sending device to select when needed.
Through the two steps, the problem of data loss caused by mismatching of the data processing capacity and the transmission rate of the communication equipment can be solved, and therefore the stability of data transmission when the communication equipment carries out wireless communication is improved.
In addition to the above step S201 and step S202, the data transmission method may further include the following five steps according to different situations.
Step S203, responding to the idle capacity state of the second memory being larger than or equal to the first threshold, sending a second notice to the data sending device, and informing the data sending device to transmit data at the first transmission rate.
For example, during operation, the data receiving device may continuously monitor its own operating condition, and when the memory free capacity state (memory free rate) of the second storage of the data receiving device is greater than or equal to the first threshold, the data receiving device may send a second notification to the data sending device to notify the data sending device of the normal data transmission rate before the data sending device recovers. For example, the second notification includes a second notification frame for requesting the data transmission apparatus to perform a second action of increasing the data transmission rate, for example, transmitting at the first transmission rate. For example, the second notification may be a message frame that includes an instruction flag to increase the data transmission rate, or in some cases, an instruction flag to perform recovery of the first data transmission rate, or a message frame that includes field information bits to be increased to (or recovered to) the value of the first transmission rate. For example, the data sending device parses the second notification after receiving the second notification, and learns from the second notification that the data transmission rate needs to be increased and the first transmission rate that may be increased, so that the second action may be performed according to the message frame, e.g., the second action may be an action of sending data at the previous first transmission rate specified by the message frame.
It should be noted that the present disclosure is not limited to a downshift from the first transmission rate to the second transmission rate, and then a return from the second transmission rate to the first transmission rate is made as needed, but may also be an increase from the second transmission rate to a third transmission rate, which may be less than or greater than the first transmission rate, as needed.
During operation, the network connection state between the data transmission apparatus and the data reception apparatus may be further deteriorated, and thus a further coping process is required for the situation.
And step S204, responding to the idle capacity state of the second memory being smaller than the second threshold, reserving at least one type of data items with the priority being larger than or equal to the selected first priority in the plurality of types of data items, and stopping reserving at least one type of data items with the priority being smaller than the first priority in the plurality of types of data items.
Here, the second threshold value is smaller than the first threshold value. And, the data item corresponding to the first priority includes a notification frame for managing data transmission.
For example, each of the plurality of classes of data items corresponds to a priority. For example, each data item in the received data may be classified into different classes according to the importance degree, priority, etc. of the data item, for example, may be classified into: high priority data items, medium priority data items, and low priority data items, although embodiments of the present disclosure are not limited to a particular prioritization method. For example, high priority data items may be used to manage the rate of data transfer, connection status, network configuration, etc.; the medium priority data items may be used to send transactional notifications, assist the high priority data items in performing the above-mentioned management issues, and so on; the low priority data items may be used for transmitting content data or the like. For example, high priority data items may include certain control frames or certain management frames, as well as medium priority data items, which overlap with high priority data items.
For example, when the memory free capacity state of the data receiving device is less than the second threshold, for example, when the data processing capability of the data receiving device is further deteriorated and data has to be discarded, the data receiving device may select to retain data items corresponding to a first priority, for example, a high priority, and discard data items corresponding to priorities lower than the high priority, for example, retain at least one type of data items having a priority greater than or equal to the selected first priority among a plurality of types of data items. For example, the user of the data receiving device may set the category of the priority of the data item corresponding to the first priority according to the actual situation, for example, the category is a medium priority. For example, the second threshold may be a certain threshold of the memory free capacity state that is lower relative to the first threshold, for example, may be a value less than 20%, for example, 15%. For example, the second threshold may correspond to a data processing capability of the data receiving apparatus being more deteriorated and having to choose to discard a part of the currently received data items. The second threshold may be preset in the data receiving device, or may be dynamically set by the data receiving device according to the operating condition of the data receiving device.
In step S205, in response to the free capacity state of the second memory being greater than or equal to the second threshold, at least one type of data items with a priority greater than or equal to the first priority among the plurality of types of data items is retained, and at least one type of data items with a priority less than the first priority among the plurality of types of data items is restored.
For example, during operation, the data receiving device may continuously monitor its own operating condition, and when the memory free capacity state of the second storage of the data receiving device is greater than or equal to the second threshold, the data processing capability of the data receiving device is improved, for example, more data items may be processed to reduce or avoid discarding the data items. The data reception device may gradually restore the retention of the data items corresponding to other priorities lower than the first priority on the basis of continuing the retention of the data items corresponding to the first priority, for example, in the case where the first priority is the medium priority, the retention of the data items corresponding to the medium priority and the data items corresponding to the low priority may gradually restore the retention as the data processing capability of the data reception device improves.
During operation, the network connection state between the data transmission device and the data reception device may be further deteriorated, and thus it is necessary to provide a further coping step for the situation.
In response to the free capacity state of the first memory being less than the third threshold, a switch is made from the current data transfer state to a state in which only data items for declaring the existence of a connection are reserved, step S206.
For example, when the buffer vacancy of the data receiving apparatus is less than the third threshold, for example, when the data processing capability of the data receiving apparatus deteriorates to be unable to process most of the received data items, the data receiving apparatus may switch from the current data receiving state to a state of selecting to retain a specific data item, and discard most of the data items. For example, the specific data item may be a beacon frame for declaring that a connection relationship between the data transmitting apparatus and the data receiving apparatus exists, for example, a data item with the highest priority among the high-priority data items, for example, a management frame for maintaining the connection relationship. For example, the third threshold may be a certain threshold of the buffer vacancy rate, for example, may be a value less than 30%, for example, 15%. The buffer vacancy rate of the data receiving device has a direct correspondence with whether the buffer is to discard the data item received by the data receiving device. For example, when the buffer vacancy rate of the data receiving apparatus is lower than 30%, it means that the buffer of the data receiving apparatus has insufficient capacity to store the received data items in time, so that the data receiving apparatus discards most of the data items. Therefore, it is determined whether the data processing capability of the data receiving apparatus is deteriorated to be unable to process most of the received data items according to whether the value of the buffer vacancy rate of the data receiving apparatus is smaller than the third threshold, and thus a specific data item for maintaining the network connection has to be selected and most of the currently received data items are discarded. The third threshold may be preset in the data receiving device, or may be dynamically set by the data receiving device according to its own operating condition.
Step S207, in response to the free capacity state of the first memory being equal to or greater than the third threshold, switches from the data transmission state in which only the data item is retained to the data transmission state in which other notification frames than the data item for declaring the existence of the connection are also received.
For example, during operation, the data receiving device may continuously monitor its own operating condition, and when the buffer idle rate of the data receiving device is greater than or equal to the third threshold, the data processing capability of the data receiving device is improved, for example, more data items may be processed to reduce the discarded data items. The data receiving device may gradually resume retaining other notification frames on the basis of continuing to retain data items for declaring the existence of a connection, which may be other management frames, control frames or data frames, for example.
Therefore, through the steps, the problem that the data processing capacity and the transmission rate of the communication equipment are not matched seriously, so that the transmitted data has to be lost and the stability of wireless data transmission and connection is influenced can be solved, and the stability of data transmission and connection when the communication equipment carries out wireless communication is improved.
It is to be understood that the above-mentioned operation combinations of step S201 to step S203, operation combinations of step S204 to step S205, and operation combinations of step S206 to step S207 may have no dependency relationship with each other, and may be considered and set individually. That is, the combination of operations in step S204 to step S205 is not dependent on the combination of operations in step S201 to step S203, and the combination of operations in step S206 to step S207 is not dependent on the combination of operations in step S206 to step S207.
For example, at least one embodiment of the present disclosure further provides a data transmission method. Fig. 3 is a flowchart of another data transmission method according to at least one embodiment of the present disclosure.
As shown in fig. 3, for example, the data transmission method may include the following three steps. These steps are described from the perspective of the data transmission device, i.e., the execution subject is the data transmission device.
Step S301, receiving a first notification from the data receiving apparatus, notified of data transmission at a second transmission rate.
Here, the second transmission rate is lower than the first transmission rate currently used between the data transmission apparatus and the data reception apparatus. The data receiving device caches the received data in the first storage, and then stores the data in the second storage, for example, the first storage is a cache, and the second storage is a memory. The first notification is issued by the data receiving device in response to the free capacity state of the storage second memory being less than a first threshold. The second transmission rate may be one alternative transmission rate selected from a plurality of alternative transmission rates predetermined with the data reception apparatus. For example, the plurality of alternative transmission rates are determined when a connection is established with the data receiving device. The first threshold may be preset in the data receiving device, or may be dynamically set by the data receiving device according to its own operating condition.
For example, the first notification may be a message frame that may include a flag bit instructing to perform a reduction of the data transmission rate, or in other cases, the message frame may further include a field information bit of a value of the second transmission rate to be reduced.
Step S302, switch from the first transmission rate to the second transmission rate.
For example, the data sending device parses the first notification after receiving the first notification, and learns from the first notification that the data transmission rate needs to be decreased and the second transmission rate to which the data transmission rate may need to be decreased, so that the first action may be performed according to the first notification, for example, the first action may be an action of actively selecting a certain transmission rate lower than the first transmission rate (thereby serving as the second transmission rate) to send data, or may be an action of sending data at the second lower transmission rate specified by the first notification. After performing the first action, the data transmitting apparatus switches from the first transmission rate to the second transmission rate.
Step S303, receiving a second notification from the data receiving device, and performing data transmission at the first transmission rate in response to the second notification.
For example, in the working process, the data receiving device may continuously monitor its own working condition, and when the memory free capacity state of the data receiving device is greater than or equal to the first threshold, the data receiving device may send a second notification to the data sending device to notify the data sending device of the normal data transmission rate before the data sending device recovers. For example, the second notification includes a second notification frame for requesting the data transmission apparatus to perform a second action of increasing the data transmission rate, for example, transmitting at the first transmission rate. For example, the second notification may be a message frame that includes an instruction flag to increase the data transmission rate, or in some cases, an instruction flag to perform recovery of the first data transmission rate, or a message frame that includes field information bits to be increased to (or recovered to) the value of the first transmission rate. For example, the data sending device parses the second notification after receiving the second notification, and learns from the second notification that the data transmission rate needs to be increased and the first transmission rate that may be increased, so that the second action may be performed according to the message frame, e.g., the second action may be an action of sending data at the previous first transmission rate specified by the message frame. After performing the second action, the data transmission apparatus switches from the second transmission rate to the first transmission rate.
The above steps have been described in detail in the data transmission method provided in at least one embodiment of the present disclosure, and the technical effects are also the same as those set forth in the foregoing method, which are not described herein again.
At least one embodiment of the present disclosure also proposes a data transmission method corresponding to, for example, the data transmission system including the data transmission device and the data reception device shown in fig. 1. The data transmission method can comprise the steps that the data receiving equipment firstly buffers data received from the data sending equipment in a first memory of the data receiving equipment and then stores the data in a second memory of the data receiving equipment; the data receiving equipment acquires the idle capacity state of the second memory; and the data receiving equipment responds to that the free capacity state of the second memory is smaller than a first threshold value, sends a first notice to the data sending equipment, and the data sending equipment carries out data transmission at a second transmission rate according to the notice, wherein the second transmission rate is lower than the currently used first transmission rate.
A data transmission method proposed by at least one embodiment of the present disclosure will be described below with reference to a specific but non-limiting example.
In one example, in a wireless lan communication network, the data sending device and the data receiving device both support the network communication protocol of the wireless lan network, for example, the network protocol of the wireless network may be an 802.11 protocol, an 802.16 protocol, etc. according to different wireless lan types. Taking the example that the data sending device and the data receiving device both support the 802.11 protocol, the wireless local area network formed by the two devices may be a wireless fidelity network (WiFi). In the same WiFi network, both the data sending device and the data receiving device may be an STA or an AP, respectively. For example, the data transmitting device may be an AP or a STA, and the data receiving device may be a STA or an AP, respectively. For example, the data receiving device may include a wireless transceiver module, a data processing module, a buffer, a memory, and a control module; the data transmission device can comprise a wireless transceiving module, a data processing module, a control module and the like.
For example, the data receiving device may be specifically a wireless router, a mobile phone, a tablet computer, a laptop computer, a desktop computer, an intelligent wearable device (e.g., a watch), a television, a refrigerator, a sweeping robot, an automobile, a navigation device, and the like; similarly, the data receiving device may also be specifically a wireless router, a mobile phone, a tablet computer, a laptop computer, a desktop computer, an intelligent wearable device (e.g., a watch), a television, a refrigerator, a sweeping robot, an automobile, a navigation device, and the like.
The data sending device can send data to the data receiving device through the WiFi network, and the data receiving device receives the data sent by the data sending device through the WiFi network. For example, the data includes a plurality of data items, such as but not limited to data frames, management frames, control frames, and the like.
For example, after the data transmission device and the data reception device establish a connection through the WiFi network, and before data transmission is performed, a data transmission protection method may be turned on in advance, for example, a data transmission protection mode may be enabled in advance. The data transmission protection mode is mainly used for adjusting the data transmission rate of the WiFi network, for example, reducing the transmission rate, so as to avoid that too many received data packets which are not processed in time have to be discarded when the data receiving device finds that the data processing capacity of the data receiving device is not enough to match the current data transmission rate, so that data which exceeds the processing capacity, such as data packets or information frames, is discarded.
For example, the data receiving device may detect, through the control module, a processing condition of the data receiving device itself on the received data, for example, by acquiring a usage condition of a memory (memory) of the data receiving device itself, which may be a value of a memory free capacity state, for example.
For example, the value of the memory free capacity state may be compared with a speed reduction threshold T1, where the speed reduction threshold T1 represents whether the capability of the data receiving device currently processing the received data is saturated with respect to the data transmission rate. Depending on the actual situation, the deceleration threshold T1 may be a value between 20% and 40%, for example 30%. It should be noted that the specific value of the speed reduction threshold T1 may have different value ranges according to different situations, for example, according to different data receiving devices, different network states of data transmission, and the like, and the value range may be obtained by presetting at the data receiving device.
For example, when the free rate of the self memory acquired by the data receiving device is smaller than the speed reduction threshold T1, a notification is sent to the data sending device, where the notification is used to enable the data sending device to reduce the data transmission rate, the notification includes a control instruction for reducing the data transmission rate currently and normally used to a specified transmission rate, and the data sending device, after receiving the notification, parses out the control instruction for reducing the current data transmission rate to the specified transmission rate, and reduces the data transmission rate to the specified rate according to the instruction. For example, the designated rate may be unilaterally designated by the data receiving apparatus, or may be previously agreed between the data receiving apparatus and the data transmitting apparatus.
On the other hand, the specified rate may be selected from a plurality of rates agreed upon by the data reception apparatus and the data transmission apparatus at the time of establishing the connection. Assuming that the transmission rate used by the current data transmission apparatus is 100Mbps, the data transmission apparatus can be lowered from 100Mbps to one of 50Mbps, 30Mbps, 10Mbps constant rate values, for example, the data transmission apparatus is lowered from 100Mbps to 30 Mbps.
For example, the notification of the reduced data transmission rate is a data item determined according to the network protocol used that can instruct the receiving party to take a sender-specific Action, which in the present example may be an Action (Action) frame in a WiFi network that supports the 802.11 protocol. For example, the action frame includes an action flag bit that triggers a data rate reduction and a field that includes a specified data rate to be reduced to, depending on the need to reduce the transmission rate. For example, when the data transmitting apparatus receives the action frame from the data receiving apparatus through its wireless transceiver module, the control module of the data transmitting apparatus parses the action frame, and controls the wireless transceiver module to decrease the data transmission rate to the specified data transmission rate according to the parsed value of the action flag bit for decreasing the data rate and the value of the field containing the specified data transmission rate to be decreased.
On the other hand, when the free rate of the own memory acquired by the data receiving apparatus is equal to or greater than the slowdown threshold T1, a notification for causing the data transmitting apparatus to recover to the previous normal data transmission rate is issued to the data transmitting apparatus. The notification may contain control instructions to restore the lower specified transmission rate to the previous normal data transmission rate. After receiving the notification, the data sending apparatus may parse out a control instruction for restoring the lower specified transmission rate to the previous normal data transmission rate, and restore the data transmission rate to the previous normal data transmission rate according to the instruction, for example, may restore from 30Mbps to the previous 100 Mbps.
For example, the notification of the normal data transmission rate before recovery may be an action frame, for example, the action frame includes an action flag bit triggering the normal data transmission rate before recovery and a field including the normal data transmission rate before recovery according to the above-mentioned requirement for recovering the transmission rate. For example, when the data transmitting device receives the action frame from the data receiving device through its wireless transceiver module, the control module of the data transmitting device parses the action frame, and controls its wireless transceiver module to recover the previous normal data transmission rate according to the parsed value of the action flag bit for recovering the previous normal data transmission rate and the value of the field containing the previous normal data transmission rate.
For example, when the free rate of the self memory acquired by the data receiving device is too small to match the lowest value of the data transmission rate, for example, the free rate of the memory is smaller than a threshold T2 smaller than the threshold T1, it is necessary to selectively receive the data packet while discarding a part of the data packet. For example, when the data sending device sends data at the lowest rate of data transmission allowed by the wireless network protocol and the data receiving device still cannot process the received data in time and has to discard the data packets, the data packets with higher priority than the priority agreed with the data sending device in advance are selected to be reserved and the data packets with lower priority are discarded.
For example, the priority of the selection may be determined by the user according to the type of frame received by the data receiving device, and may be, but is not limited to, a management frame, a control frame, a data frame, a subframe of a management frame, a subframe of a control frame, or a subframe of a data frame. For example, the selected priority may be set as an important frame, for example, as a priority corresponding to one or more management frames, so that the control module of the data reception apparatus controls to retain packets having a priority higher than that of the management frames and to discard packets having a priority lower than that of the management frames.
The data receiving device may identify, at a Media Access Control (MAC) layer, whether a priority of a received frame is higher than a selected priority, and if so, may select to retain the received frame, otherwise discard the received frame, and for example, may select to retain a management frame such as an action frame or a Beacon (Beacon) frame, where the Beacon frame may be set as a frame with the highest priority, and a normal data frame may be discarded at the MAC layer of the data receiving device.
The above-mentioned higher priority frames such as management frames have an important role in maintaining the stability of the network, so that the stability of the network can be maintained as much as possible with less loss when the operation state of the data receiving device does not match the network data transmission rate.
For example, the threshold T2 may be smaller than the threshold T1, may be a value between 0% and 20%, and may be 15%, for example, depending on the actual situation.
On the other hand, when the value of the memory free capacity state of the data reception device is higher than the threshold value T2, the operation state of the data reception device is restored to the previous normal state, and thus the data reception device can restore the normal data reception state, for example, the MAC layer does not prioritize and discard the received frames any more, but normally retains the received frames.
For example, when the idle rate of the buffer of the data receiving apparatus is lower than the threshold R1, for example, the threshold R1 may be a value less than 30%, for example, may be 10%, and only specific data may be received. The operation state of the data receiving device is in a more serious data processing congestion state, so that the data which can be received and processed at this time is more limited than the case when the memory free capacity state of the data receiving device is lower than the threshold T2. Therefore, the data receiving device only receives the most important data when the vacancy rate of the buffer of the data receiving device is lower than the threshold R1, for example, the received data may be a frame type preset when the data receiving device establishes a connection with the data transmitting device, for example, only a beacon frame for maintaining the connection relationship between the data receiving device and the data transmitting device may be received, thereby ensuring that the communication connection between the two devices is not interrupted.
On the other hand, when the idle rate of the buffer of the data receiving apparatus is higher than the threshold R1, the data receiving apparatus may restore the previous data receiving state, for example, may not receive only the data of the preset frame type any more, but may restore the previous receiving state of the data.
In the above example, data loss is caused by mismatching of processing data and transmission rate between current communication devices, and by reducing the data transmission rate, or only retaining data items with high priority, or even only retaining the most important management frames for maintaining network connection, reliability and stability of data transmission between communication devices can be effectively improved, thereby improving user experience.
It should be noted that the data transmission method based on the wireless network according to the embodiment of the present disclosure is not only applicable to the WiFi network, but also applicable to other wireless communication scenarios, for example, can also be used for Bluetooth (Bluetooth), global system for mobile communications (GSM), Code Division Multiple Access (CDMA), Long Term Evolution (LTE), fifth generation mobile communication (5G), ZigBee protocol, Ultra Wideband (UWB) wireless protocol, and the like, which is not limited in this disclosure.
For example, at least one embodiment of the present disclosure provides a data transmission apparatus. Fig. 4 is a schematic diagram of a data transmission device according to at least one embodiment of the present disclosure. As shown in fig. 4, for example, the data transmission apparatus 100 may include a first memory 101, a second memory 102, and a control module 103, and may further include a signal transmitting and receiving module 104. The data transmission device is used to realize a data receiving apparatus, and may perform a combination of operations of step S201 to step S203, a combination of operations of step S204 to step S205, or a combination of operations of step S206 to step S207 shown in fig. 2.
The first memory 101 is configured to buffer data received from the data transmission apparatus; the second memory 102 is configured to store the data cached by the first memory 101; the control module 103 is configured to obtain a free capacity status of the second memory, and in response to the free capacity status of the second memory being less than a first threshold, send a first notification to the data sending device informing of data transmission at the second transmission rate. Here, the second transmission rate is lower than the first transmission rate currently used.
For example, the first memory 101 may be a temporary storage module such as a cache, a temporary storage, etc.; the second memory can be a memory module such as a memory, a random access memory and the like; the control module 103 may be implemented as a processor, a single chip, or the like, for example, as hardware or firmware such as a CPU, SoC, FPGA, ASIC, or any combination of hardware or firmware and software; the signal transmitting and receiving module 104 may be implemented as a wireless network card or the like. The embodiment of the present disclosure does not limit the implementation manner of the control module 103, the signal transmitting and receiving module 104, and the like.
Under the control of the control module 103, the data transmission apparatus 100 may receive data transmitted by the data transmission apparatus through the wireless network, and perform processing operations such as, but not limited to, demodulation, signal processing, etc. on the received data; the first memory 101 may buffer the processed received data; the data transmission device 100 can read and store the data buffered in the first memory 101 into the second memory 102; the control module 103 may obtain the idle rate of the second storage 102 during the data processing to obtain the operating status of itself, and may send a notification to the data sending device to decrease the current data transmission rate to one of a plurality of second data transmission rates lower than the current first transmission rate, which are agreed in advance, when the idle rate of the second storage is smaller than the first threshold. For example, the first threshold may be a free rate of the second memory corresponding to the data transmission apparatus 100 being unable to timely handle the reception of data from the data transmission device at the current data transmission rate.
The data transmission device of the embodiment of the disclosure can solve the problem of data loss caused by mismatching of the data processing capacity and the transmission rate of the communication equipment, and improve the stability of data transmission when the communication equipment performs wireless communication.
For example, at least one embodiment of the present disclosure provides another data transmission apparatus. Fig. 5 is a schematic diagram of another data transmission apparatus according to at least one embodiment of the disclosure. As shown in fig. 5, for example, the data transmission apparatus 200 may include a signal transmitting and receiving module 201 and a control module 202. The data transmission device is used to implement a data transmission apparatus, and may perform the operations of step S301 to step S303 of the data transmission method described above to transmit data to the data transmission device shown in fig. 4, for example, the data transmission device shown in fig. 4 may send a notification to the data transmission device shown in fig. 5.
The signal transmission and reception module 201 is configured to receive a first notification from the data reception apparatus, which is notified of data transmission at a second transmission rate. Here, the second transmission rate is lower than the first transmission rate currently used, the data reception apparatus buffers the received data in the first memory first and then stores it in the second memory, and the first notification is issued in response to the free capacity state in which the second memory is stored being less than the first threshold. The control module 202 is configured to switch the transmission rate with the data receiving device from the first transmission rate to the second transmission rate according to the first notification.
For example, in the data transmission apparatus 200, the control module 202 may be implemented as a processor, a single chip, or the like, and may be implemented as hardware or firmware such as a CPU, SoC, FPGA, ASIC, or any combination of hardware or firmware and software; the signal transmitting and receiving module 201 may be implemented as a wireless network card or the like. The embodiment of the present disclosure does not limit the implementation manner of the control module 202, the signal sending and receiving module 201, and the like.
For example, the control module 202 may receive and parse a notification to lower the data transmission rate from the data receiving apparatus and transmit the parsed notification to the signal transmission and reception module 201. For example, the data receiving device may temporarily buffer the received data in the first memory, and then read the data from the first memory and store the data in the second memory. For example, when the data reception apparatus detects that the free rate of its own second memory is low, for example, lower than the first threshold value, a notification for lowering the data transmission rate is transmitted to the data transmission apparatus. The control module 202 reduces the current data transmission rate between the data sending device and the data receiving device to a data transmission rate lower than the current data transmission rate according to the analyzed notification. Therefore, the data transmission equipment can send and receive data at a lower data rate when the received data cannot be processed in time, so that the loss of the data is reduced, and the stability of data transmission between the wireless communication equipment is improved.
For example, at least one embodiment of the present disclosure provides an electronic device. Fig. 6 is a schematic view of an electronic device according to at least one embodiment of the present disclosure. For example, the electronic device shown in fig. 6 may be used to implement a data transmission apparatus as shown in fig. 4 or fig. 5. It should be noted that the electronic device 300 shown in fig. 6 is only an example, and does not bring any limitation to the functions and the scope of the application of the embodiments of the present disclosure.
As shown in fig. 6, the electronic device 300 may include a processing device (e.g., a central processing unit) 301 that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)302 or a program loaded from a storage device 306 into a Random Access Memory (RAM) 303.
Various programs and data necessary for the operation of the electronic apparatus 300 are also stored in the RAM 303. The processing device 301, the ROM302, and the RAM303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
For example, storage 306 may include magnetic tape, magnetic disks, solid state drives, and the like; the communication module 307 may allow the electronic apparatus 300 to wirelessly communicate with other electronic devices to exchange data, connect with an antenna, transmit and receive wireless signals, and implement transmission and reception of data. These devices may be connected to the I/O interface 305.
While fig. 6 illustrates an electronic device 300 having various means, it is to be understood that not all illustrated means are required to be implemented or provided, and that the electronic device 300 may alternatively be implemented or provided with more or less means.
For example, according to the embodiment of the present disclosure, the processing device 301 runs corresponding executable codes, may execute the above data transmission method, and may implement the functions defined in the data transmission method provided by the embodiment of the present disclosure. For example, the storage device 306 may be a storage medium according to embodiments of the present disclosure, e.g., may store non-transitory computer-executable instructions that when executed by the processing device 301, e.g., a processor, implement the aforementioned data transmission method. In addition, the electronic device can achieve the technical effects similar to those of the data transmission method, and the details are not repeated herein.
For the present disclosure, there are also the following points to be explained:
(1) the drawings of the embodiments of the disclosure only relate to the structures related to the embodiments of the disclosure, and other structures can refer to the common design.
(2) Without conflict, embodiments of the present disclosure and features of the embodiments may be combined with each other to arrive at new embodiments.
The above are merely specific embodiments of the present disclosure, but the scope of the present disclosure is not limited thereto, and the scope of the present disclosure should be determined by the scope of the claims.

Claims (16)

1. A data transmission method in which data received from a data transmission apparatus is buffered in a first memory before being stored in a second memory, the method comprising:
acquiring the idle capacity state of the second memory;
and responding to the condition that the free capacity state of the second memory is smaller than a first threshold value, sending a first notice to the data sending equipment, and informing the data sending equipment to transmit data at a second transmission rate, wherein the second transmission rate is lower than the first transmission rate which is currently used.
2. The data transmission method of claim 1, further comprising:
and responding to the free capacity state of the second memory being larger than or equal to the first threshold value, sending a second notice to the data sending device, and informing the data sending device to carry out data transmission at the first transmission rate.
3. The data transmission method according to claim 2, wherein the first notification includes a first notification frame for requesting the data transmission apparatus to perform a first action of transmitting at the second transmission rate, and the second notification includes a second notification frame for requesting the data transmission apparatus to perform a second action of transmitting at the first transmission rate.
4. A data transmission method as claimed in any one of claims 1 to 3, wherein said second transmission rate comprises:
a transmission rate candidate selected from a plurality of transmission rate candidates determined in advance with the data transmission apparatus, wherein the plurality of transmission rate candidates are determined when a connection is established with the data transmission apparatus.
5. The data transmission method according to claim 1, wherein the data received from the data transmission device includes a plurality of classes of data items, each of the plurality of classes of data items corresponding to a priority, the data transmission method further comprising:
in response to the free capacity state of the second memory being less than a second threshold value, reserving at least one of the plurality of types of data items having a priority greater than or equal to a selected first priority, and ceasing to reserve at least one of the plurality of types of data items having a priority less than the first priority, wherein the second threshold value is less than the first threshold value;
in response to the free capacity state of the second memory being equal to or greater than the second threshold, restoring retention of at least one of the plurality of types of data items having a priority equal to or greater than the first priority while retaining at least one of the plurality of types of data items having a priority less than the first priority.
6. The data transmission method according to claim 5, wherein the data item corresponding to the first priority includes a notification frame for managing the data transmission.
7. The data transmission method according to claim 5 or 6, further comprising:
in response to the free capacity state of the first memory being less than a third threshold, switching from a current data transfer state to a state in which only data items for declaring a connection exist are reserved;
in response to the free capacity state of the first memory being equal to or greater than the third threshold, switching from the data transfer state in which only data items are reserved to a data transfer state in which other notification frames than the data item for declaring the existence of a connection are also received.
8. A method of data transmission, comprising:
receiving a first notification from a data receiving device, the first notification being notified of data transmission at a second transmission rate, wherein the second transmission rate is lower than a currently used first transmission rate, the data receiving device buffering received data in a first memory before storing the data in a second memory, the first notification being issued in response to a state of free capacity of the second memory being less than a first threshold;
switching from the first transmission rate to the second transmission rate.
9. The data transmission method of claim 8, wherein the second transmission rate comprises:
a selected one of a plurality of alternative transmission rates predetermined with the data reception apparatus, wherein the plurality of alternative transmission rates are determined when a connection is established with the data reception apparatus.
10. The data transmission method of claim 8, further comprising:
receiving a second notification from the data receiving device, and transmitting data at the first transmission rate in response to the second notification.
11. The data transmission method according to claim 10, wherein the first notification includes a first notification frame notifying execution of a first action of transmission at the second transmission rate, and the second notification includes a second notification frame notifying execution of a second action of transmission at the first transmission rate.
12. A method of data transmission, comprising:
the data receiving equipment firstly caches the data received from the data sending equipment in a first memory of the data receiving equipment and then stores the data in a second memory of the data receiving equipment;
the data receiving equipment acquires the idle capacity state of the second memory;
the data receiving device sends a first notice to the data sending device in response to the free capacity state of the second memory being less than a first threshold;
and the data sending equipment transmits data at a second transmission rate according to the notification, wherein the second transmission rate is lower than the currently used first transmission rate.
13. A data transmission apparatus comprising:
a first memory configured to buffer data received from a data transmission apparatus;
a second memory configured to store the data cached by the first memory;
and the control module is configured to acquire the free capacity state of the second memory, and in response to the free capacity state of the second memory being smaller than a first threshold, send a first notification to the data sending device to notify that data transmission is performed at a second transmission rate, wherein the second transmission rate is lower than the currently used first transmission rate.
14. A data transmission apparatus comprising:
a signal sending and receiving module configured to receive a first notification from a data receiving apparatus, the first notification being notified of data transmission at a second transmission rate, wherein the second transmission rate is lower than a currently used first transmission rate, the data receiving apparatus buffering received data in a first memory before storing the received data in a second memory, the first notification being issued in response to a state of free capacity of the second memory being smaller than a first threshold;
a control module configured to switch a transmission rate with the data receiving device from the first transmission rate to the second transmission rate according to the first notification.
15. An electronic device, comprising:
a processor;
a memory storing computer-executable instructions;
wherein the computer-executable instructions are stored in the memory and configured to be executed by the processor to implement the data transmission method of any of claims 1-11.
16. A storage medium storing non-transitory computer-executable instructions that, when executed by a processor, perform the data transmission method of any one of claims 1-11.
CN202111186911.4A 2021-10-12 Data transmission method, data transmission device and electronic device Active CN113840272B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111186911.4A CN113840272B (en) 2021-10-12 Data transmission method, data transmission device and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111186911.4A CN113840272B (en) 2021-10-12 Data transmission method, data transmission device and electronic device

Publications (2)

Publication Number Publication Date
CN113840272A true CN113840272A (en) 2021-12-24
CN113840272B CN113840272B (en) 2024-05-14

Family

ID=

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004139431A (en) * 2002-10-18 2004-05-13 Seiko Epson Corp Method and device for controlling data transfer and display device
CN1568609A (en) * 2002-04-19 2005-01-19 松下电器产业株式会社 Data reception device and data distribution system
WO2006011193A1 (en) * 2004-07-26 2006-02-02 Mitsubishi Denki Kabushiki Kaisha Data transmitting apparatus
CN103685061A (en) * 2013-11-29 2014-03-26 华为技术有限公司 Cache data control method and device
WO2014092551A1 (en) * 2012-12-13 2014-06-19 Mimos Berhad System and method for optimal memory management between cpu and fpga unit
CN104683647A (en) * 2013-11-29 2015-06-03 佳能株式会社 Communication apparatus performing communication speed changing process and communication control method
CN106489136A (en) * 2014-06-02 2017-03-08 美光科技公司 For adjusting the system and method for bag transmission in expansible accumulator system agreement
CN110022268A (en) * 2018-01-09 2019-07-16 腾讯科技(深圳)有限公司 A kind of data transfer control method, device and storage medium
CN112969169A (en) * 2021-05-19 2021-06-15 北京百瑞互联技术有限公司 Low-power-consumption Bluetooth communication flow control method, system, storage medium and equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1568609A (en) * 2002-04-19 2005-01-19 松下电器产业株式会社 Data reception device and data distribution system
JP2004139431A (en) * 2002-10-18 2004-05-13 Seiko Epson Corp Method and device for controlling data transfer and display device
WO2006011193A1 (en) * 2004-07-26 2006-02-02 Mitsubishi Denki Kabushiki Kaisha Data transmitting apparatus
WO2014092551A1 (en) * 2012-12-13 2014-06-19 Mimos Berhad System and method for optimal memory management between cpu and fpga unit
CN103685061A (en) * 2013-11-29 2014-03-26 华为技术有限公司 Cache data control method and device
CN104683647A (en) * 2013-11-29 2015-06-03 佳能株式会社 Communication apparatus performing communication speed changing process and communication control method
CN106489136A (en) * 2014-06-02 2017-03-08 美光科技公司 For adjusting the system and method for bag transmission in expansible accumulator system agreement
CN110022268A (en) * 2018-01-09 2019-07-16 腾讯科技(深圳)有限公司 A kind of data transfer control method, device and storage medium
CN112969169A (en) * 2021-05-19 2021-06-15 北京百瑞互联技术有限公司 Low-power-consumption Bluetooth communication flow control method, system, storage medium and equipment

Similar Documents

Publication Publication Date Title
JP3774464B2 (en) Wireless communication system and base station apparatus thereof
JP5715637B2 (en) Wireless communication apparatus, wireless communication method, and processing circuit
US20050129009A1 (en) Power saving in a wireless local area network
US11044630B2 (en) Method and apparatus for adjusting data sending rate of terminal
JP2016522631A (en) Access point response to PS-POLL
EP3254382A1 (en) Coexistence interference mitigation management for multi-user mimo systems
JP2006060788A (en) Method of optimizing energy consumption of communication station in radio network, and method of controlling communication station
US11184850B2 (en) Bidirectional communication using a wake-up radio
EP3488634B1 (en) Improving uplink airtime fairness through basic service set steering
EP3278625B1 (en) Clock drift management for coexistence and concurrency
CN114390608A (en) Secondary cell state configuration method, secondary cell activation method, device and medium
US20100238807A1 (en) Reducing channel overhead in a wireless coexistence network
US20130223309A1 (en) Mobile station and power saving method thereof
CN113840272B (en) Data transmission method, data transmission device and electronic device
CN113840272A (en) Data transmission method, data transmission device and electronic device
US11936473B2 (en) Station performance enhancement with multi-link operations (MLO)
WO2019024121A1 (en) Monitoring method and terminal device
CN114258157A (en) Aggregation configuration method, device and terminal
JP4634135B2 (en) Wireless communication terminal device and program thereof
CN116349162A (en) Cross-carrier scheduling method, terminal equipment and access network equipment
US20210378052A1 (en) Communication control method, user equipment, and base station
US20220217699A1 (en) Control information transmission method, apparatus, and system
EP3476161A1 (en) Adaptive inactivity timeout management
EP4017137A1 (en) Methods and devices for adaptive rate based latency tolerance reporting
CN114640413A (en) Channel monitoring method and device

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
CB02 Change of applicant information

Address after: Room 101, 1st Floor, Building 3, Yard 18, Kechuang 14th Street, Beijing Economic and Technological Development Zone, Daxing District, Beijing 101102

Applicant after: Beijing yisiwei Computing Technology Co.,Ltd.

Applicant after: GUANGZHOU QUANSHENGWEI INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 101102 No. 2179, floor 2, building D, building 33, No. 99, Kechuang 14th Street, Beijing Economic and Technological Development Zone (centralized office area)

Applicant before: Beijing yisiwei Computing Technology Co.,Ltd.

Applicant before: GUANGZHOU QUANSHENGWEI INFORMATION TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
CB02 Change of applicant information

Address after: 101102 Room 101, 1/F, Building 3, No. 18 Courtyard, Kechuang 10th Street, Beijing Economic and Technological Development Zone, Daxing District, Beijing

Applicant after: Beijing yisiwei Computing Technology Co.,Ltd.

Applicant after: GUANGZHOU QUANSHENGWEI INFORMATION TECHNOLOGY Co.,Ltd.

Address before: Room 101, 1st Floor, Building 3, Yard 18, Kechuang 14th Street, Beijing Economic and Technological Development Zone, Daxing District, Beijing 101102

Applicant before: Beijing yisiwei Computing Technology Co.,Ltd.

Applicant before: GUANGZHOU QUANSHENGWEI INFORMATION TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant