CN116170851A - Data transmission control method and device, electronic equipment and storage medium - Google Patents

Data transmission control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116170851A
CN116170851A CN202310183565.7A CN202310183565A CN116170851A CN 116170851 A CN116170851 A CN 116170851A CN 202310183565 A CN202310183565 A CN 202310183565A CN 116170851 A CN116170851 A CN 116170851A
Authority
CN
China
Prior art keywords
communication
priority
frame
duration
determining
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.)
Pending
Application number
CN202310183565.7A
Other languages
Chinese (zh)
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.)
Shanghai Wuqi Microelectronics Co Ltd
Original Assignee
Shanghai Wuqi Microelectronics 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 Shanghai Wuqi Microelectronics Co Ltd filed Critical Shanghai Wuqi Microelectronics Co Ltd
Priority to CN202310183565.7A priority Critical patent/CN116170851A/en
Publication of CN116170851A publication Critical patent/CN116170851A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0055Transmission or use of information for re-establishing the radio link
    • H04W36/0069Transmission or use of information for re-establishing the radio link in case of dual connectivity, e.g. decoupled uplink/downlink
    • 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
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a data transmission control method, a data transmission control device, electronic equipment and a storage medium, wherein the method comprises the following steps: when a Wi-Fi frame is received, determining priority, duration and bandwidth information of Wi-Fi communication according to the Wi-Fi frame; and determining a data transmission mode of the electronic equipment in a time period corresponding to the duration of the Wi-Fi communication according to the priority, the duration, the bandwidth information and the state information of the Bluetooth communication. The data transmission control method is used for improving the real-time performance and the accuracy of data transmission control in a scene where Wi-Fi communication and Bluetooth communication coexist.

Description

Data transmission control method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of network communications, and in particular, to a data transmission control method, a data transmission control device, an electronic device, and a storage medium.
Background
The main applications of short-range communication are Wireless broadband (Wi-Fi) and Bluetooth (BT), and many electronic products support Wi-Fi communication and Bluetooth communication at the same time. Wi-Fi protocols operate in the 2.4G band and the 5G band, and BT protocols operate in the 2.4G band, so there is an overlap of the two in the 2.4G band. Whether Wi-Fi communication and Bluetooth communication in the electronic product are shared by a radio frequency antenna or respectively receive and dispatch data by utilizing different radio frequency antennas, interference must exist between the Wi-Fi communication and the Bluetooth communication on a 2.4G frequency band.
Currently, coexistence of Wi-Fi and BT is typically implemented on-chip using packet traffic arbitration (Packet traffic arbitration, PTA) techniques. However, the existing PTA framework generally only sets a fixed priority for Wi-Fi communication and bluetooth communication, and compares the priority of Wi-Fi communication and bluetooth communication only when a packet is transmitted, which is low in real-time and accuracy of data transmission control.
Disclosure of Invention
An embodiment of the application aims to provide a data transmission control method, a device, electronic equipment and a storage medium, which are used for improving the real-time performance and the accuracy of data transmission control in a scene where Wi-Fi communication and Bluetooth communication coexist.
In a first aspect, the present application provides a data transmission control method applied to an electronic device supporting Wi-Fi communication and bluetooth communication, the method including: when a Wi-Fi frame is received, determining priority, duration and bandwidth information of Wi-Fi communication according to the Wi-Fi frame; and determining a data transmission mode of the electronic equipment in a time period corresponding to the duration of the Wi-Fi communication according to the priority, the duration, the bandwidth information and the state information of the Bluetooth communication.
In the implementation process, compared with the prior art that a fixed priority is set for Wi-Fi communication and Bluetooth communication and the priority of Wi-Fi communication and Bluetooth communication is compared only when a data packet is sent, the data transmission control method provided by the embodiment of the application determines the priority, duration and bandwidth information of Wi-Fi communication when Wi-Fi frames are received each time. The priority of Wi-Fi communication is no longer a fixed value but varies from Wi-Fi frame to Wi-Fi frame. And then comparing the priority, duration and bandwidth information of Wi-Fi communication with the state information of Bluetooth communication, determining the data transmission mode of the electronic equipment in the time period corresponding to the duration of Wi-Fi communication, and improving the real-time performance and accuracy of data transmission control.
In an alternative embodiment, the determining the priority of the Wi-Fi communication according to the Wi-Fi frame includes: analyzing the MAC header of the Wi-Fi frame, and determining the priority of the Wi-Fi communication according to the priority field in the MAC header.
In an alternative embodiment, the determining the priority of the Wi-Fi communication according to the Wi-Fi frame includes: analyzing the MAC header of the Wi-Fi frame, and determining a first priority of the Wi-Fi frame according to a priority field in the MAC header; when the first priority of the Wi-Fi frame is higher than a preset priority, analyzing the MAC header of the Wi-Fi frame, and determining the sender address of the Wi-Fi frame; determining a second priority of the Wi-Fi frame according to the sender address of the Wi-Fi frame and a preset priority table, and taking the second priority of the Wi-Fi frame as the priority of the Wi-Fi communication; the preset priority table is used for representing the corresponding relation between the sender addresses and the priorities of different Wi-Fi frames.
In an alternative embodiment, the determining the duration of the Wi-Fi communication according to the Wi-Fi frame includes: analyzing the MAC header of the Wi-Fi frame, and determining the duration of Wi-Fi communication according to the duration field in the MAC header.
In an alternative embodiment, the determining bandwidth information of the Wi-Fi communication according to the Wi-Fi frame includes: the Wi-Fi frame comprises a trigger frame, and bandwidth information of the Wi-Fi communication is determined according to the trigger frame; or the Wi-Fi frame comprises an RTS frame and a CTS frame, and bandwidth information of the Wi-Fi communication is determined according to the RTS frame and the CTS frame.
In the implementation process, when the Wi-Fi communication adopts the OFDMA protocol for data transmission, bandwidth information corresponding to the Wi-Fi communication can be rapidly and accurately determined according to the information in the trigger frame; or when RTS/CTS dynamic bandwidth protocol is supported in Wi-Fi communication, bandwidth information corresponding to Wi-Fi communication can be rapidly and accurately determined according to the RTS frame and the CTS frame. Therefore, in a scene of coexistence of Wi-Fi communication and Bluetooth communication, the real-time performance and accuracy of data transmission control are further improved.
In an optional embodiment, the state information of the bluetooth communication includes priority and bandwidth information of the bluetooth communication, and determining, according to the priority, duration, bandwidth information of the Wi-Fi communication and the state information of the bluetooth communication, a data transmission manner of the electronic device in a period corresponding to the duration of the Wi-Fi communication includes: judging whether the priority of Wi-Fi communication is higher than the priority of Bluetooth communication or not if the isolation between a channel corresponding to the bandwidth information of the Wi-Fi communication and a channel corresponding to the bandwidth information of the Bluetooth communication is lower than a preset threshold in a time period corresponding to the duration of the Wi-Fi communication; if the priority of the Wi-Fi communication is higher than that of the Bluetooth communication, determining that the data transmission mode of the electronic equipment is Wi-Fi communication in a time period corresponding to the duration of the Wi-Fi communication; if the priority of the Wi-Fi communication is lower than that of the Bluetooth communication, determining that the data transmission mode of the electronic equipment is Bluetooth communication in a time period corresponding to the duration of the Wi-Fi communication.
In the implementation process, in the scene of coexistence of Wi-Fi communication and Bluetooth communication, the mutual influence of Wi-Fi communication and Bluetooth communication can be effectively avoided through the mode, the data transmission mode of the electronic equipment is adjusted to be a communication mode with high priority, and the data receiving and transmitting of the communication mode with high priority is ensured to be accurately completed.
In an optional embodiment, the state information of the bluetooth communication includes priority and bandwidth information of the bluetooth communication, and determining, according to the priority, duration, bandwidth information of the Wi-Fi communication and the state information of the bluetooth communication, a data transmission manner of the electronic device in a period corresponding to the duration of the Wi-Fi communication includes: and in a time period corresponding to the duration of Wi-Fi communication, if the isolation between a channel corresponding to the bandwidth information of the Wi-Fi communication and a channel corresponding to the bandwidth information of the Bluetooth communication is higher than a preset threshold, determining that the data transmission mode of the electronic equipment in the time period corresponding to the duration of Wi-Fi communication is Wi-Fi communication and Bluetooth communication coexistence.
In the implementation process, in the scene of coexistence of Wi-Fi communication and Bluetooth communication, when the mutual influence of Wi-Fi communication and Bluetooth communication is small, the electronic equipment can simultaneously carry out Wi-Fi communication and Bluetooth communication, delay of data packets in Wi-Fi communication and Bluetooth communication is effectively reduced, and user experience is improved.
In a second aspect, the present application provides a data transmission control apparatus applied to an electronic device supporting Wi-Fi communication and bluetooth communication, the apparatus comprising: the first determining module is used for determining the priority, duration and bandwidth information of Wi-Fi communication according to the Wi-Fi frame when the Wi-Fi frame is received; the second determining module is used for determining a data transmission mode of the electronic device in a time period corresponding to the duration of Wi-Fi communication according to the priority, the duration, the bandwidth information and the state information of the Bluetooth communication.
In an optional embodiment, the first determining module is specifically configured to parse a MAC header of the Wi-Fi frame, and determine a priority of the Wi-Fi communication according to a priority field in the MAC header.
In an optional embodiment, the first determining module is specifically configured to parse a MAC header of the Wi-Fi frame, and determine a first priority of the Wi-Fi frame according to a priority field in the MAC header; when the first priority of the Wi-Fi frame is higher than a preset priority, analyzing the MAC header of the Wi-Fi frame, and determining the sender address of the Wi-Fi frame; determining a second priority of the Wi-Fi frame according to the sender address of the Wi-Fi frame and a preset priority table, and taking the second priority of the Wi-Fi frame as the priority of the Wi-Fi communication; the preset priority table is used for representing the corresponding relation between the sender addresses and the priorities of different Wi-Fi frames.
In an optional embodiment, the first determining module is specifically configured to parse a MAC header of the Wi-Fi frame, and determine a duration of the Wi-Fi communication according to a duration field in the MAC header.
In an optional embodiment, the Wi-Fi frame includes a trigger frame, and the first determining module is specifically configured to determine bandwidth information of the Wi-Fi communication according to the trigger frame; or the Wi-Fi frame comprises an RTS frame and a CTS frame, and the first determining module is specifically configured to determine bandwidth information of the Wi-Fi communication according to the RTS frame and the CTS frame.
In an optional embodiment, the state information of the bluetooth communication includes priority and bandwidth information of the bluetooth communication, and the second determining module is specifically configured to determine, in a period corresponding to a duration of the Wi-Fi communication, if isolation between a channel corresponding to the bandwidth information of the Wi-Fi communication and a channel corresponding to the bandwidth information of the bluetooth communication is lower than a preset threshold, whether the priority of the Wi-Fi communication is higher than the priority of the bluetooth communication; if the priority of the Wi-Fi communication is higher than that of the Bluetooth communication, determining that the data transmission mode of the electronic equipment is Wi-Fi communication in a time period corresponding to the duration of the Wi-Fi communication; if the priority of the Wi-Fi communication is lower than that of the Bluetooth communication, determining that the data transmission mode of the electronic equipment is Bluetooth communication in a time period corresponding to the duration of the Wi-Fi communication.
In an optional embodiment, the state information of the bluetooth communication includes priority and bandwidth information of the bluetooth communication, and the second determining module is specifically configured to determine that, in a period corresponding to the duration of the Wi-Fi communication, a data transmission manner of the electronic device is coexistence of the Wi-Fi communication and the bluetooth communication, if an isolation between a channel corresponding to the bandwidth information of the Wi-Fi communication and a channel corresponding to the bandwidth information of the bluetooth communication is higher than a preset threshold.
In a third aspect, the present application provides an electronic device, including a Wi-Fi module, a bluetooth module, and a packet traffic arbitration module configured to perform the method of any of the foregoing embodiments.
In a fourth aspect, the present application provides a computer readable storage medium having stored thereon computer program instructions which, when read and executed by a computer, perform a method according to any of the preceding embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a data transmission control method provided in an embodiment of the present application;
fig. 2 is a schematic diagram of a MAC header according to an embodiment of the present application;
fig. 3 is a schematic diagram of a trigger frame according to an embodiment of the present application;
fig. 4 is a block diagram of a data transmission control device according to an embodiment of the present application;
fig. 5 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
The embodiment of the application provides a data transmission control method, a device, electronic equipment and a storage medium, which are used for improving the real-time performance and the accuracy of data transmission control in a scene of coexistence of Wi-Fi communication and Bluetooth communication.
The technology can be realized by adopting corresponding software, hardware and a combination of the software and the hardware. The following describes embodiments of the present application in detail.
The following will describe a data transmission control method provided in the present application.
Referring to fig. 1, fig. 1 is a flowchart of a data transmission control method provided in an embodiment of the present application, where the data transmission control method is applied to an electronic device supporting Wi-Fi communication and bluetooth communication, and the data transmission control method may include the following:
Step 101: when a Wi-Fi frame is received, priority, duration and bandwidth information of Wi-Fi communication are determined according to the Wi-Fi frame.
Step 102: and determining a data transmission mode of the electronic equipment in a time period corresponding to the duration of the Wi-Fi communication according to the priority, the duration, the bandwidth information and the state information of the Bluetooth communication of the Wi-Fi communication.
BT communication is based on TDMA (Time division multiple access ) communication systems. In TDMA communication systems, the object and destination of the content to be transmitted at a time are known. Therefore, for BT communication, the priority of which data transmission is performed at a certain timing is determined, the priority of BT communication can be determined in a preconfigured manner, and the system can know when BT communication is to be performed and the priority of BT communication.
Wi-Fi communication is based on CSMA (Carrier Sense Multiple Access, carrier sense multiple access system) communication systems. In TDMA communication systems, queues from different address transmissions have different priorities, and the channel is preempted between the different priority transmission queues, which priority queue preempts the channel at the next time is not predictable in advance. Therefore, for Wi-Fi communication, the priority of data transmission at a certain moment is not determinable because channels are preempted among different transmission queues. However, after a peer node (which may be an Access Point (AP) or a Station (STA)) obtains Access rights to a medium, medium usage duration and bandwidth information are determined for a period of time thereafter, and priority for the period of time can be determined.
Therefore, in a scene where Wi-Fi communication and Bluetooth communication coexist, when a Wi-Fi frame is received, firstly determining the priority, duration and bandwidth information of the Wi-Fi communication according to the Wi-Fi frame, and comparing the priority, duration and bandwidth information of the Wi-Fi communication with the state information of the Bluetooth communication, so as to determine the data transmission mode of the electronic device in a time period corresponding to the duration of the Wi-Fi communication.
It can be understood that, each time the electronic device receives a Wi-Fi frame, the steps 101 to 102 are executed once, and the data transmission mode of the electronic device is determined in the time period corresponding to the duration of the Wi-Fi communication, so that the real-time performance and accuracy of the data transmission control are improved.
The following describes the above steps in detail, taking the example of receiving a certain Wi-Fi frame.
Step 101: when a Wi-Fi frame is received, priority, duration and bandwidth information of Wi-Fi communication are determined according to the Wi-Fi frame.
In this embodiment of the present application, the priority of Wi-Fi communication is used to characterize priority information of Wi-Fi communication performed by the electronic device on a node corresponding to the Wi-Fi frame when performing data transmission control, and the higher the priority is, the data transmission and reception performed by the electronic device on the node corresponding to the Wi-Fi frame will be indicated. The duration of Wi-Fi communication is used to characterize the duration of data transceiving of the node corresponding to the Wi-Fi frame by the electronic device. The bandwidth information of Wi-Fi communication is used for representing a frequency band occupied by the electronic equipment when the electronic equipment carries out data receiving and transmitting with the node corresponding to the Wi-Fi frame.
The specific manner in which the priority, duration, and bandwidth information of Wi-Fi communications are determined from Wi-Fi frames is described below.
As an alternative embodiment, determining the priority of the Wi-Fi frame according to the Wi-Fi frame includes: analyzing the MAC header of the Wi-Fi frame, and determining the priority of the Wi-Fi frame according to the priority field in the MAC header.
In the embodiment of the present application, when the received Wi-Fi Frame is a Wi-Fi data Frame, the Wi-Fi data Frame may include a Frame header (MAC header), a Frame Body (Frame Body), and a Frame check sequence (Frame Check Sequence, FCS). As shown in fig. 2, the MAC header includes a priority field (corresponding to the Qos Control field in fig. 2), where the information in the Qos Control field is an Access Category (AC), and the priority of Wi-Fi communication can be determined according to the Access Category.
For example, taking Wi-Fi protocol IEEE 802.11 as an example, the access categories AC include four types: ac_vo, ac_vi, ac_be, and ac_bk. Ac_vo corresponds to voice call, ac_vi corresponds to video, ac_be corresponds to web browsing data traffic, ac_bk corresponds to file transfer, etc. The priority orders corresponding to the four access categories are sequentially reduced from high to low. The priority of Wi-Fi communication is set to be 4, and when the access category AC is AC_VO, the priority is 4, which means that the priority is highest; when the access category AC is AC_VI, the priority is 3, which means that the priority is high; when the access category AC is ac_be, the priority is 2, which indicates that the priority is low; when the access category AC is ac_bk, the priority is 1, indicating that the priority is lowest.
Further, as an alternative embodiment, determining the priority of Wi-Fi communication according to the Wi-Fi frame includes: analyzing the MAC header of the Wi-Fi frame, and determining the first priority of the Wi-Fi frame according to the priority field in the MAC header; when the first priority of the Wi-Fi frame is higher than a preset priority, analyzing the MAC header of the Wi-Fi frame, and determining the sender address of the Wi-Fi frame; determining a second priority of the Wi-Fi frame according to the sender address of the Wi-Fi frame and a preset priority table, and taking the second priority of the Wi-Fi frame as the priority of Wi-Fi communication; the preset priority table is used for representing the corresponding relation between the sender addresses and the priorities of different Wi-Fi frames.
In the embodiment of the present application, in a scenario where an electronic device establishes Wi-Fi communication with multiple nodes, priority fields in MAC headers in Wi-Fi frames sent by different nodes may be the same in different time periods. For example, the node a and the node B send voice call data to the electronic device in different time periods, and the access categories AC in the MAC headers corresponding to the node a and the node B are ac_vo, which have the same priority.
However, according to different practical application scenarios, even if the priority fields in the MAC header in the Wi-Fi frames sent by different nodes are the same, the priority of Wi-Fi communication performed by the electronic device and the different nodes may be different. For example, in an actual application scenario, if the distance between the node a and the electronic device is longer than the distance between the node B and the electronic device, the user wants to better receive the data sent by the node B that is closer to the electronic device, and reduce the interference caused by BT communication, then the priority of the node B should be higher than that of the node a when determining the priority. In another practical application scenario, if the distance between the node a and the electronic device is longer than the distance between the node B and the electronic device, in order to ensure that the user can better receive the data sent by the node a that is far away, and reduce the interference caused by BT communication, when determining the priority, the priority of the node a should be higher than the priority of the node B.
Therefore, in order to further divide the priority, when the first priority of the Wi-Fi frame (the priority determined according to the priority field in the MAC header) is higher than the preset priority, the MAC header of the Wi-Fi frame is parsed, and the sender Address (corresponding to the Address2 field in fig. 2) of the Wi-Fi frame is determined. And matching the sender address of the Wi-Fi frame with a preset priority table, so as to determine the second priority of the Wi-Fi frame, and taking the second priority of the Wi-Fi frame as the priority of Wi-Fi communication. When the first priority of the Wi-Fi frame (the priority determined according to the priority field in the MAC header) is lower than the preset priority, the first priority of the Wi-Fi frame is taken as the priority of Wi-Fi communication. The preset priority table is used for representing the corresponding relation between the sending end addresses of different Wi-Fi frames and the priorities, and the sending end addresses of the different Wi-Fi frames correspond to different nodes.
For example, the preset priority may be set to 2. When the preset priority is set to 2, the method indicates that when the Wi-Fi frame is video data or audio data, the second priority of the Wi-Fi frame is further determined according to the sender address of the Wi-Fi frame, and the second priority of the Wi-Fi frame is used as the priority of Wi-Fi communication. For Wi-Fi frames with a first priority of 1 or 2, considering that the first priority of the Wi-Fi frames is lower, in order to improve real-time performance, the electronic device does not need to spend more time and power consumption to determine the second priority, and takes the first priority of the Wi-Fi frames as the priority of Wi-Fi communication.
It should be noted that, in the embodiment of the present application, a specific value of the preset priority is not limited.
It can be appreciated that the correspondence between the sender addresses and the priorities of different Wi-Fi frames in the preset priority table may have a plurality of determining manners. In some embodiments, the corresponding relation between the sending end addresses of different Wi-Fi frames and the priorities can be determined according to the distance between each node and the electronic device, and the closer the distance between the node and the electronic device is, the higher the priority corresponding to the node is; conversely, the farther the distance between the node and the electronic device, the lower the priority the node corresponds to.
In other embodiments, the corresponding relation between the sending end addresses and the priorities of different Wi-Fi frames can be determined according to the signal intensity between each node and the electronic device, and the higher the signal intensity between the node and the electronic device is, the higher the priority corresponding to the node is; conversely, the lower the signal strength between the node and the electronic device, the lower the priority the node corresponds to.
It should be noted that, in the embodiment of the present application, a determination manner of a correspondence relationship between a sender address and a priority of different Wi-Fi frames in a preset priority table is not specifically limited. The above two embodiments are only two ways of determining the preset priority table provided in the embodiments of the present application, and the preset priority table may also be set according to other ways, for example, a priority of a node in the same lan group with the electronic device is higher than a priority of a node not in the same lan group with the electronic device, or the preset priority table is determined according to a remaining power of the node (the higher the power is, the higher the priority of the node is).
In this embodiment, after determining the first priority of the Wi-Fi frame according to the priority field in the MAC header, if the priority of the Wi-Fi frame is higher (higher than the preset priority), the data content of the Wi-Fi frame is important. And further determining a second priority of the Wi-Fi frame according to the sender address of the Wi-Fi frame and a preset priority table, and taking the second priority as the priority of Wi-Fi communication. By the method, the second priority determination is carried out on the important Wi-Fi frames, so that the accuracy of priority determination is improved.
As an alternative embodiment, determining the duration of Wi-Fi communication from Wi-Fi frames includes: and analyzing the MAC header of the Wi-Fi frame, and determining the duration of the Wi-Fi frame according to the duration field in the MAC header.
In this embodiment, as shown in fig. 2, a Duration field (corresponding to the Duration field in fig. 2) is included in the MAC header, where the Duration field identifies how long the Wi-Fi frame and its acknowledgement frame will occupy the channel, and the value of the Duration field is used for NAV calculation. The Duration of the Wi-Fi frame may be determined by parsing the Duration field in the MAC header.
As an alternative embodiment, determining bandwidth information of Wi-Fi communication according to Wi-Fi frames includes: and determining the bandwidth information of the Wi-Fi frame according to the physical layer information when the Wi-Fi frame is received.
In the embodiment of the application, the physical layer information when receiving the Wi-Fi frame includes CCA information and NAV information. In the IEEE 802.11 protocol, in a CSMA/CA mechanism, before a node sends a Wi-Fi frame, a physical layer listens to a physical channel through physical carrier sense (CCA mechanism) to determine the current occupancy state of a wireless medium; and virtual carrier sensing is implemented at the MAC layer using a network allocation vector (NAV mechanism). And when the interception results of the Wi-Fi frame and the Wi-Fi frame determine that the channel is idle, the node sends the Wi-Fi frame. Therefore, according to the CCA information and NAV information when the Wi-Fi frame is received, the bandwidth information of the Wi-Fi frame can be determined.
As another alternative embodiment, when the received Wi-Fi frame includes a trigger frame, determining bandwidth information of Wi-Fi communication according to the Wi-Fi frame includes: and determining bandwidth information of Wi-Fi communication according to the trigger frame.
In the embodiment of the present application, in the sixth generation Wi-Fi protocol, an orthogonal frequency division multiple access (Orthogonal Frequency Division Multiple Access, OFDMA) technology is introduced, so that multiple users use a frequency division multiplexing and space division multiplexing mode, and the same time resource is used together in uplink, so that data sent by multiple users are not interfered with each other, and transmission efficiency is improved. The OFDMA technology allocates channels for all nodes by sending trigger frames, and after all nodes receive the trigger frames, wi-Fi frames are sent on the allocated channels according to channel information carried in the trigger frames. Therefore, the bandwidth information of the Wi-Fi communication can be determined by analyzing the trigger frame corresponding to the Wi-Fi frame.
For example, as shown in fig. 3, a Trigger Frame includes a Common information field (a Common Info field in fig. 3) and a User information List field (a User Info List field in fig. 3), and bandwidth information of the Wi-Fi communication can be determined by parsing the Common Info field and the User Info List field in the Trigger Frame corresponding to the Wi-Fi Frame.
As another alternative embodiment, when the received Wi-Fi frame includes an RTS frame and a CTS frame, determining bandwidth information of Wi-Fi communication according to the Wi-Fi frame includes: and determining bandwidth information of Wi-Fi communication according to the RTS frame and the CTS frame.
In this embodiment of the present application, if an RTS/CTS (Request To Send/Clear To Send) dynamic bandwidth protocol is adopted between the electronic device and the node, the electronic device may receive an RTS frame and a CTS frame sent by the node in the Wi-Fi frame, and the electronic device may determine bandwidth information of Wi-Fi communication according To the RTS frame and the CTS frame.
By means of the method, the data transmission control method can be compatible with the RTS/CTS protocol, and when the RTS/CTS protocol is supported in Wi-Fi communication, bandwidth information corresponding to the Wi-Fi communication can be rapidly and accurately determined according to the RTS frame and the CTS frame.
Further, before determining priority, duration and bandwidth information of Wi-Fi communication according to Wi-Fi frames, the data transmission control method provided by the embodiment of the present application further includes: and verifying the correctness of the MAC header of the Wi-Fi frame.
In the embodiment of the application, the correctness of the MAC header of the Wi-Fi frame is verified first. After determining that the MAC header of the Wi-Fi frame is correct, step 101 is performed. By verifying the correctness of the MAC header of the Wi-Fi frame, the received Wi-Fi frame is ensured to contain the correct MAC header, so that the priority, duration and bandwidth information of Wi-Fi communication can be determined later.
Step 102: and determining a data transmission mode of the electronic equipment in a time period corresponding to the duration of the Wi-Fi communication according to the priority, the duration, the bandwidth information and the state information of the Bluetooth communication of the Wi-Fi communication.
In this embodiment, the state information of the bluetooth communication includes priority and bandwidth information of the bluetooth communication. From the foregoing description, it is known that BT communication communicates based on a TDMA communication system in which both an object of content to be transmitted at a time and a destination are known. Accordingly, the electronic device can determine when BT communication is to be performed and the priority of BT communication. When the electronic equipment performs data transmission control, after the priority, duration and bandwidth information of Wi-Fi communication are determined, the priority, duration and bandwidth information of Wi-Fi communication are compared with the state information of Bluetooth communication, so that the data transmission mode of the electronic equipment in the time period corresponding to the duration of Wi-Fi communication is determined.
As an alternative embodiment, the step 102 may include the following steps:
and in the time period corresponding to the duration of Wi-Fi communication, if the isolation between the channel corresponding to the bandwidth information of the Wi-Fi communication and the channel corresponding to the bandwidth information of the Bluetooth communication is higher than a preset threshold, determining that the data transmission mode of the electronic equipment in the time period corresponding to the duration of the Wi-Fi communication is coexistence of the Wi-Fi communication and the Bluetooth communication.
If the isolation between the channel corresponding to the bandwidth information of the Wi-Fi communication and the channel corresponding to the bandwidth information of the Bluetooth communication is lower than a preset threshold, judging whether the priority of the Wi-Fi communication is higher than that of the Bluetooth communication; if the priority of the Wi-Fi communication is higher than that of the Bluetooth communication, determining that the data transmission mode of the electronic equipment is Wi-Fi communication in a time period corresponding to the duration of the Wi-Fi communication; if the priority of the Wi-Fi communication is lower than that of the Bluetooth communication, determining that the data transmission mode of the electronic equipment is the Bluetooth communication in the time period corresponding to the duration of the Wi-Fi communication.
In the embodiment of the application, in a time period corresponding to the duration of Wi-Fi communication, whether the isolation between a channel corresponding to bandwidth information of Wi-Fi communication and a channel corresponding to bandwidth information of bluetooth communication is lower than a preset threshold is first determined.
If the isolation between the channel corresponding to the bandwidth information of the Wi-Fi communication and the channel corresponding to the bandwidth information of the Bluetooth communication is higher than a preset threshold, the Wi-Fi module and the Bluetooth module on the electronic device work simultaneously and cannot or have small influence on each other in a time period corresponding to the duration of the Wi-Fi communication. Therefore, the data transmission mode of the electronic device in the period corresponding to the duration of Wi-Fi communication is determined to be coexistence of Wi-Fi communication and Bluetooth communication, namely the electronic device can conduct Wi-Fi communication and Bluetooth communication simultaneously.
If the isolation between the channel corresponding to the bandwidth information of the Wi-Fi communication and the channel corresponding to the bandwidth information of the Bluetooth communication is lower than a preset threshold, the Wi-Fi module and the Bluetooth module on the electronic device work simultaneously to generate larger influence in a time period corresponding to the duration of the Wi-Fi communication, and the electronic device cannot conduct the Wi-Fi communication and the Bluetooth communication simultaneously in the time period. It is further necessary to determine whether the priority of Wi-Fi communication is higher than that of bluetooth communication during the period. If the priority of Wi-Fi communication is higher than that of Bluetooth communication, determining that the data transmission mode of the electronic device is Wi-Fi communication in a time period corresponding to the duration of Wi-Fi communication, namely the electronic device only performs Wi-Fi communication in the time period and does not perform Bluetooth communication. Otherwise, if the priority of the Wi-Fi communication is lower than the priority of the bluetooth communication, determining that the data transmission mode of the electronic device is bluetooth communication in the time period corresponding to the duration of the Wi-Fi communication, that is, the electronic device only performs bluetooth communication in the time period and does not perform Wi-Fi communication.
Further, before executing step 102, the data transmission control method provided in the embodiment of the present application further includes: when the distance between the node corresponding to the Wi-Fi frame and the electronic equipment exceeds the preset distance, determining that the data transmission mode of the electronic equipment is Wi-Fi communication and Bluetooth communication coexistence in the time period corresponding to the duration of the Wi-Fi frame.
In the embodiment of the present application, since the transmitting power of BT communication is generally low, after determining the transmitting end address of the Wi-Fi frame, the distance between the node corresponding to the Wi-Fi frame and the electronic device is determined according to the transmitting end address of the Wi-Fi frame. If the distance between the node corresponding to the Wi-Fi frame and the electronic equipment exceeds the preset distance, the BT communication does not have a large influence when the electronic equipment performs Wi-Fi communication with the node corresponding to the Wi-Fi frame, and the BT communication can freely receive packets without influencing the Wi-Fi communication. Therefore, in the above case, without performing step 102, the electronic device does not need to prohibit the BT communication, i.e., allow the BT communication to coexist with the Wi-Fi communication for a period corresponding to the duration of the Wi-Fi frame.
Based on the same inventive concept, the embodiment of the application also provides a data transmission control device. Referring to fig. 4, fig. 4 is a block diagram of a data transmission control device according to an embodiment of the present application, where the data transmission control device is configured to support an electronic device for Wi-Fi communication and bluetooth communication, and the data transmission control device 400 may include:
A first determining module 401, configured to determine, when a Wi-Fi frame is received, priority, duration and bandwidth information of the Wi-Fi communication according to the Wi-Fi frame;
a second determining module 402, configured to determine, according to the priority, duration, bandwidth information of the Wi-Fi communication and status information of the bluetooth communication, a data transmission manner of the electronic device in a period corresponding to the duration of the Wi-Fi communication.
In an optional embodiment, the first determining module 401 is specifically configured to parse a MAC header of the Wi-Fi frame, and determine a priority of the Wi-Fi communication according to a priority field in the MAC header.
In an optional embodiment, the first determining module 401 is specifically configured to parse a MAC header of the Wi-Fi frame, and determine a first priority of the Wi-Fi frame according to a priority field in the MAC header; when the first priority of the Wi-Fi frame is higher than a preset priority, analyzing the MAC header of the Wi-Fi frame, and determining the sender address of the Wi-Fi frame; determining a second priority of the Wi-Fi frame according to the sender address of the Wi-Fi frame and a preset priority table, and taking the second priority of the Wi-Fi frame as the priority of the Wi-Fi communication; the preset priority table is used for representing the corresponding relation between the sender addresses and the priorities of different Wi-Fi frames.
In an optional embodiment, the first determining module 401 is specifically configured to parse a MAC header of the Wi-Fi frame, and determine a duration of the Wi-Fi communication according to a duration field in the MAC header.
In an optional embodiment, the Wi-Fi frame includes a trigger frame, and the first determining module 401 is specifically configured to determine bandwidth information of the Wi-Fi communication according to the trigger frame; or the Wi-Fi frame includes an RTS frame and a CTS frame, and the first determining module 401 is specifically configured to determine bandwidth information of the Wi-Fi communication according to the RTS frame and the CTS frame.
In an optional implementation manner, the state information of the bluetooth communication includes priority and bandwidth information of the bluetooth communication, and the second determining module 402 is specifically configured to determine, in a period corresponding to the duration of the Wi-Fi communication, whether the priority of the Wi-Fi communication is higher than the priority of the bluetooth communication, if the isolation between a channel corresponding to the bandwidth information of the Wi-Fi communication and a channel corresponding to the bandwidth information of the bluetooth communication is lower than a preset threshold; if the priority of the Wi-Fi communication is higher than that of the Bluetooth communication, determining that the data transmission mode of the electronic equipment is Wi-Fi communication in a time period corresponding to the duration of the Wi-Fi communication; if the priority of the Wi-Fi communication is lower than that of the Bluetooth communication, determining that the data transmission mode of the electronic equipment is Bluetooth communication in a time period corresponding to the duration of the Wi-Fi communication.
In an optional embodiment, the state information of the bluetooth communication includes priority and bandwidth information of the bluetooth communication, and the second determining module 402 is specifically configured to determine that, in a period corresponding to the duration of the Wi-Fi communication, a data transmission manner of the electronic device is coexistence of the Wi-Fi communication and the bluetooth communication, if an isolation between a channel corresponding to the bandwidth information of the Wi-Fi communication and a channel corresponding to the bandwidth information of the bluetooth communication is higher than a preset threshold.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an electronic device 500 according to an embodiment of the present application, where the electronic device 500 includes a Wi-Fi module 501, a bluetooth module 502, and a packet traffic arbitration module 503. The packet traffic arbitration module 503 is configured to perform the steps of the data transmission control method in the above embodiment.
It is to be understood that the configuration shown in fig. 5 is merely illustrative, and that electronic device 500 may also include more or fewer components than those shown in fig. 5, or have a different configuration than that shown in fig. 5. The components shown in fig. 5 may be implemented in hardware, software, or a combination thereof. In this embodiment of the present application, the electronic device 500 may be, but is not limited to, a physical device such as a desktop, a notebook, a smart phone, an intelligent wearable device, a vehicle-mounted device, or a virtual device such as a virtual machine. In addition, the electronic device 500 is not necessarily a single device, and may be a combination of a plurality of devices, for example, a server cluster, or the like.
Furthermore, the present application also provides a computer-readable storage medium having a computer program stored thereon, which when executed by a computer, performs the steps of the data transmission control method in the above embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
Further, the units described as separate units may or may not be physically separate, and units displayed as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Furthermore, functional modules in various embodiments of the present application may be integrated together to form a single portion, or each module may exist alone, or two or more modules may be integrated to form a single portion.
It should be noted that the functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM) random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The foregoing is merely exemplary embodiments of the present application and is not intended to limit the scope of the present application, and various modifications and variations may be suggested to one skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims (10)

1. A data transmission control method applied to an electronic device supporting Wi-Fi communication and bluetooth communication, the method comprising:
when a Wi-Fi frame is received, determining priority, duration and bandwidth information of Wi-Fi communication according to the Wi-Fi frame;
and determining a data transmission mode of the electronic equipment in a time period corresponding to the duration of the Wi-Fi communication according to the priority, the duration, the bandwidth information and the state information of the Bluetooth communication.
2. The data transmission control method according to claim 1, wherein the determining the priority of the Wi-Fi communication from the Wi-Fi frame includes:
analyzing the MAC header of the Wi-Fi frame, and determining the priority of the Wi-Fi communication according to the priority field in the MAC header.
3. The data transmission control method according to claim 1, wherein the determining the priority of the Wi-Fi communication from the Wi-Fi frame includes:
analyzing the MAC header of the Wi-Fi frame, and determining a first priority of the Wi-Fi frame according to a priority field in the MAC header;
when the first priority of the Wi-Fi frame is higher than a preset priority, analyzing the MAC header of the Wi-Fi frame, and determining the sender address of the Wi-Fi frame;
determining a second priority of the Wi-Fi frame according to the sender address of the Wi-Fi frame and a preset priority table, and taking the second priority of the Wi-Fi frame as the priority of the Wi-Fi communication; the preset priority table is used for representing the corresponding relation between the sender addresses and the priorities of different Wi-Fi frames.
4. The data transmission control method according to claim 1, wherein the determining the duration of the Wi-Fi communication according to the Wi-Fi frame includes:
analyzing the MAC header of the Wi-Fi frame, and determining the duration of Wi-Fi communication according to the duration field in the MAC header.
5. The data transmission control method according to claim 1, wherein the determining bandwidth information of the Wi-Fi communication according to the Wi-Fi frame includes:
The Wi-Fi frame comprises a trigger frame, and bandwidth information of the Wi-Fi communication is determined according to the trigger frame;
or the Wi-Fi frame comprises an RTS frame and a CTS frame, and bandwidth information of the Wi-Fi communication is determined according to the RTS frame and the CTS frame.
6. The method of claim 1, wherein the state information of the bluetooth communication includes priority and bandwidth information of the bluetooth communication, and the determining, according to the priority, duration, bandwidth information of the Wi-Fi communication and the state information of the bluetooth communication, a data transmission manner of the electronic device in a period corresponding to the duration of the Wi-Fi communication includes:
judging whether the priority of Wi-Fi communication is higher than the priority of Bluetooth communication or not if the isolation between a channel corresponding to the bandwidth information of the Wi-Fi communication and a channel corresponding to the bandwidth information of the Bluetooth communication is lower than a preset threshold in a time period corresponding to the duration of the Wi-Fi communication;
if the priority of the Wi-Fi communication is higher than that of the Bluetooth communication, determining that the data transmission mode of the electronic equipment is Wi-Fi communication in a time period corresponding to the duration of the Wi-Fi communication;
If the priority of the Wi-Fi communication is lower than that of the Bluetooth communication, determining that the data transmission mode of the electronic equipment is Bluetooth communication in a time period corresponding to the duration of the Wi-Fi communication.
7. The method of claim 1, wherein the state information of the bluetooth communication includes priority and bandwidth information of the bluetooth communication, and the determining, according to the priority, duration, bandwidth information of the Wi-Fi communication and the state information of the bluetooth communication, a data transmission manner of the electronic device in a period corresponding to the duration of the Wi-Fi communication includes:
and in a time period corresponding to the duration of Wi-Fi communication, if the isolation between a channel corresponding to the bandwidth information of the Wi-Fi communication and a channel corresponding to the bandwidth information of the Bluetooth communication is higher than a preset threshold, determining that the data transmission mode of the electronic equipment in the time period corresponding to the duration of Wi-Fi communication is Wi-Fi communication and Bluetooth communication coexistence.
8. A data transmission control apparatus configured to an electronic device supporting Wi-Fi communication and bluetooth communication, the apparatus comprising:
The first determining module is used for determining the priority, duration and bandwidth information of Wi-Fi communication according to the Wi-Fi frame when the Wi-Fi frame is received;
the second determining module is used for determining a data transmission mode of the electronic device in a time period corresponding to the duration of Wi-Fi communication according to the priority, the duration, the bandwidth information and the state information of the Bluetooth communication.
9. An electronic device comprising a Wi-Fi module, a bluetooth module, and a packet traffic arbitration module configured to perform the method of any of claims 1-7.
10. A computer readable storage medium, having stored thereon computer program instructions, which when read and executed by a computer, perform the method according to any of claims 1-7.
CN202310183565.7A 2023-02-28 2023-02-28 Data transmission control method and device, electronic equipment and storage medium Pending CN116170851A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310183565.7A CN116170851A (en) 2023-02-28 2023-02-28 Data transmission control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310183565.7A CN116170851A (en) 2023-02-28 2023-02-28 Data transmission control method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116170851A true CN116170851A (en) 2023-05-26

Family

ID=86421790

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310183565.7A Pending CN116170851A (en) 2023-02-28 2023-02-28 Data transmission control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116170851A (en)

Similar Documents

Publication Publication Date Title
EP3993491B1 (en) Multilink communication method and apparatus
US11418999B2 (en) Buffer status report for high priority transmission
JP6721616B2 (en) Method and apparatus for requesting a buffer status report to implement a multi-user uplink medium access control protocol in a wireless network
EP3358899A1 (en) Basic bandwidth device on secondary channel
US8989158B2 (en) Channel access method for very high throughput (VHT) wireless local access network system and station supporting the channel access method
US7602759B2 (en) Wireless LAN system making quality of communication improve and a communication method therefor
EP1968260B1 (en) Wireless communication terminal and wireless communication method
CN113676298B (en) Multilink communication method and related device
US7933217B2 (en) Wireless network system and method for transmitting and receiving data in the wireless network
Dibaei et al. Full-duplex medium access control protocols in wireless networks: A survey
EP2961218A1 (en) Method and device for resource reservation
US20220338251A1 (en) Method for sharing multilink in next-generation wireless lan
JP7193609B2 (en) DATA TRANSMISSION METHOD AND RELATED DEVICE
US20160309492A1 (en) Multi-carrier aggregation method and apparatus, user equipment, and network side device
US9204466B2 (en) Method and apparatus of channel access in wireless local area network
KR101720319B1 (en) Method and apparatus of frame scheduling in a wireless local area network system
CN114698068A (en) Service transmission method, device and system
CN112425236B (en) Direct link transmission and downlink transmission in trigger-based multi-user transmission
WO2020031682A1 (en) Communication device
CN114095504B (en) Method, apparatus and storage medium for peer-to-peer communication using multilink
CN116170851A (en) Data transmission control method and device, electronic equipment and storage medium
JP5041491B2 (en) Communication quality providing steps using periodic channel time allocation
CN106488580B (en) Competition access method, competition access device, station and competition access system
CN118139197B (en) Wireless access point sending opportunity sharing method based on signaling negotiation
WO2013107394A1 (en) Data transmission 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