Wireless data transmission control method, WiFi module and network access device
By monitoring the channel conflict probability in the wireless data transmission control method and switching the transmission control mode, time sharding is dynamically allocated to meet different transmission needs, solving the problem of channel conflict caused by the inability to perceive signals by multiple senders, and improving the efficiency of wireless data transmission.
Patent Information
- Application Number
- CN202510177637.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-18
- Publication Date
- 2025-05-23
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In some special application scenarios, multiple senders cannot perceive the other party's transmission signals, resulting in the inability to achieve effective carrier monitoring and conflict avoidance, which seriously affects the efficiency of wireless data transmission.
A wireless data transmission control method is provided by monitoring the channel collision probability in the first transmission control mode and switching to the second transmission control mode when it is greater than the target value. In the second mode, the target time shard is periodically allocated to each sender and the CTS frame is actively sent to notify the sender to send data. This method dynamically adjusts the time slice through the PID controller to adapt to different transmission needs.
By actively allocating time sharding and dynamic adjustment, channel conflicts are effectively avoided, transmission efficiency is improved, and changes in different transmission needs are adapted to.
Smart Images

Figure CN120034982A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless transmission technology, and in particular to a wireless data transmission control method, a WiFi module and a network access device. Background Art
[0002] In wireless data transmission application scenarios, generally speaking, multiple senders can achieve channel conflict avoidance based on CSMA / CA (Carrier Sense Multiple Access / Collision Avoidance) protocol, RTS / CTS mechanism, etc.
[0003] However, in some special application scenarios, multiple senders connected to the same network access device may not be able to perceive each other's transmission signals. Therefore, effective carrier monitoring cannot be achieved. At the same time, collisions are prone to occur between RTS messages, resulting in the inability to achieve effective conflict avoidance based on the above method, which seriously affects the transmission efficiency. Summary of the invention
[0004] In order to ensure the transmission efficiency of wireless data, an embodiment of the present application provides a wireless data transmission control method, which is applied to an access party. The method includes the following steps: in a first transmission control mode, when it is identified that there are multiple senders, a conflict monitoring task is performed to count the channel conflict probability, and when the channel conflict probability is greater than a target value, switching to a second transmission control mode; in the second transmission control mode, a target time slice is periodically allocated to each sender, and a CTS frame is actively sent to notify each sender to send data based on the received time slice; wherein the method of periodically allocating time slices to each sender includes: obtaining the time slices of the previous week During the period, the actual sending speed, signal strength and actual time slice of each sender are calculated; based on the PID coefficient prediction model, each actual sending speed and each signal strength are calculated to obtain the control coefficient value of each PID controller; wherein each PID controller is set one-to-one with each sender; based on each control coefficient value, the corresponding PID controller is updated; based on the updated PID controller, the actual sending speed, the actual time slice and the signal strength are calculated to obtain the time slice adjustment value corresponding to the sender; based on the time slice adjustment value corresponding to each sender, each target time slice is calculated.
[0005] Based on the above technical solution, in the first transmission control mode, each sender avoids channel conflicts, and the access party monitors the conflict probability to switch to the second transmission control mode in time when the conflict probability is greater than the target value, and in the second transmission control mode, actively control the data transmission process of each sender by periodically allocating time slices. On the one hand, the transmission time periods of each sender are staggered by the allocation of time slices, thereby avoiding channel conflicts. On the other hand, the dynamic adjustment of time slices can adapt to changes in transmission requirements in different time periods to achieve the transmission control goals and thus ensure transmission efficiency.
[0006] In one implementation, the control coefficient value includes a proportional coefficient value, an integral coefficient value, a differential coefficient value, and an objective function, wherein the calculation formula in the PID controller is as follows: u(t)=Kp*e(t-1)+Ki*f1(e(t-1))+Kd*f2(e(t-1)) u(t) is the time slicing adjustment value of the current cycle; e(t-1) is the difference between the target slicing value and the actual slicing value of the previous cycle; Kp is the proportional coefficient; Ki is the integral coefficient; Kd is the differential coefficient; f1(e(t-1)) is the integral of e(t-1); f2(e(t-1)) is the differential of e(t-1); wherein e(t-1) is calculated based on the actual sending speed, the actual time slicing, the signal strength and the objective function.
[0007] In one implementation, the calculation formula of e(t-1) is as follows: e(t-1)=(V'(t-1)-V(t-1))*T(t-1) / V'(t-1) Wherein, V'(t-1) is the actual sending speed; V(t-1) is the theoretical sending speed of the previous cycle determined based on the objective function; and T(t-1) is the actual time slice.
[0008] Based on the above technical solution, the difference between the target slice value and the actual slice value of the previous cycle is calculated based on the actual sending speed, actual time slicing, signal emphasis and objective function, so that the calculation result is close to the actual situation, and the theoretical sending speed is calculated according to the signal strength, making the calculation result more objective and will not change with the user data demand.
[0009] In one implementation, the method also includes obtaining the target matching degree of each sender after each sender sends data based on the target time slice, and when the target matching degree is a second matching value, selecting a historical control coefficient value from the historical coefficient table according to the signal strength of each sender in the current period as the control coefficient value for the next period.
[0010] Based on the above technical solution, it is possible to provide feedback on the rationality of time slicing according to the actual data transmission situation, and adjust the selection method of the control coefficient value when the requirements are not met, thus avoiding the limitations of a single coefficient generation method in responding to various transmission requirements.
[0011] Based on the same inventive concept, an embodiment of the present application also provides a WiFi module, which is used to implement the above method.
[0012] An embodiment of the present application provides a network access device, which includes the above-mentioned WiFi module.
[0013] An embodiment of the present application further provides a WiFi module, which is applied to a data sending device. When the WiFi module receives a CTS frame carrying a time slice, the WiFi module sends data based on the time slice, wherein the CTS frame is generated by a network access device based on the above method.
[0014] In one implementation, before sending data based on the time slice, the WiFi module also performs local time synchronization according to the time synchronization information carried by the CTS frame, and sends data based on the synchronized local time and the time slice.
[0015] An embodiment of the present application also provides an electronic device, including a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction implements the above method when executed by the processor. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The drawings constituting a part of the present application are used to provide further understanding of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute improper limitations on the present application.
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0018] Figure 1 A schematic structural diagram of a wireless transmission system provided in an embodiment of the present application is shown.
[0019] Figure 2 A flow chart of a wireless data transmission control method provided by an embodiment of the present application is shown.
[0020] Figure 3A flow chart of a method for periodically allocating time slices in an embodiment of the present application is shown.
[0021] Figure 4 A schematic diagram of the structure of a WiFi module of a network access device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0022] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0023] In the description of the embodiments of the present application, unless otherwise specified, "multiple" means two or more, and "first", "second" and various digital numbers are only distinguished for the convenience of description and are not used to limit the scope of the embodiments of the present application.
[0024] The features, structures or characteristics in this application may be combined in one or more embodiments in any suitable manner. In various embodiments of this application, the size of the sequence number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0025] Some optional features in the embodiments of the present application may be implemented independently in some scenarios without relying on other features to solve corresponding technical problems and achieve corresponding effects. They may also be combined with other features in some scenarios as needed.
[0026] In this application, unless otherwise specified, the same or similar parts between the various embodiments can refer to each other. In the various embodiments of this application, if there is no special description and logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced to each other, and the technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships. The implementation methods of this application do not constitute a limitation on the scope of protection of this application.
[0027] The embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0028] Please refer to Figure 1 The wireless data transmission control method provided in the embodiment of the present application is applied to Figure 1In some application scenarios of the wireless transmission system shown, due to the long distance between the senders, at least one sender in the system cannot detect the carrier signal of at least one other sender. For example, senders located on different islands cannot perceive each other's signals and all access the wired network through the same network access device.
[0029] like Figure 1 As shown, the wireless transmission system includes multiple senders 11 and an access party 12, wherein each sender 11 sends data to the access party 12 based on a wireless network, and after receiving the data from the sender, the access party 12 forwards the data through a wired or wireless network so that the data from the sender can eventually reach the destination address.
[0030] Specifically, the sender 11 can be a wireless terminal device such as a smart phone, a tablet computer, a laptop computer, etc., which are collectively referred to as a data sending device in the embodiment of the present application. The data sending device includes a WiFi module for realizing wireless data transmission.
[0031] The access party 12 can be a wireless switch in a wireless network or a hub in a wireless network. It allows wireless devices (such as portable computers, mobile phone terminals, etc.) to access a wired network, thereby realizing mutual access between wireless devices and wired networks. In implementation, the access party 12 can be a wireless router, a switch, a repeater, and other devices capable of realizing wireless access functions, which are collectively referred to as network access devices in the embodiments of the present application. The network access device includes a WiFi module for realizing control of wireless data transmission within a wireless network.
[0032] In the implementation of the present application, the WiFi module in the network access device is provided with two transmission control modes: a first transmission control mode and a second transmission control mode. In the first transmission control mode, the WiFi module of the receiving party does not actively manage the data transmission mode of each sender, that is, the WiFi module of each data sender transmits data based on the CSMA / CA protocol or the RTS / CTS mechanism to avoid data conflicts; in the second transmission control mode, the WiFi module of the receiving party actively manages the data transmission mode of each sender. In one implementation, the first transmission control mode is set as the initial mode, and it can be switched to the second transmission control mode later according to the operation situation.
[0033] For details, please refer to Figure 2 Based on the above system, the embodiment of the present application provides a wireless data transmission control method, which is implemented by a WiFi module in a network access device and specifically includes the following steps: S201, in the first transmission control mode, when it is identified that there are multiple senders, a conflict monitoring task is performed.
[0034] In implementation, after being started, the WiFi module of the network access device may first operate based on the first transmission control mode and receive a connection request from a sender, and after establishing connections with multiple senders, perform a conflict monitoring task.
[0035] The conflict monitoring task is used to monitor whether there is a conflict in the communication channel, that is, multiple senders send data based on the communication channel at the same time.
[0036] In one example, the WiFi module of the network access device can determine whether there is a channel conflict based on the received signal strength or quality. Specifically, the WiFi module can continuously monitor the received signal strength or quality. If the received signal strength fluctuates drastically in a short period of time, such as a sudden drop, frequency shift, or the signal quality deteriorates, such as a large number of bit errors, it can be identified as a channel conflict.
[0037] When a channel conflict is detected, the WiFi module counts the channel conflict probability and switches to the second transmission control mode when the channel conflict probability is greater than the target value. The target value is a pre-set empirical value that can be obtained based on historical data analysis. When the channel conflict probability is less than or equal to the target value, the channel conflict probability is acceptable. When it is greater than the target value, it indicates that the conflict is unacceptable. The specific target value can also be combined with actual application requirements, and the present application is not limited thereto.
[0038] S202, in the second transmission control mode, periodically allocating time slices to each sender, and actively sending CTS frames to notify each sender to send data based on the received time slices.
[0039] Among them, the actively sent CTS frame is not a reply to the received RTS frame, but is directly sent by the access party.
[0040] In implementation, please refer to Figure 3 The method for the WiFi module of the network access device to periodically allocate time slices to each sender specifically includes the following steps.
[0041] S301, obtaining the actual sending speed, signal strength and actual time slice of each sender in the previous cycle.
[0042] In one implementation, please refer to Figure 4The WiFi module 121 of the network access device includes a transmission control unit 1211, a coefficient management unit 1212, a time allocation unit 1213 and a PID controller 1214, wherein the coefficient management unit 1212 is respectively connected to the transmission control unit 1211 and the time allocation unit 1213. The PID controller 1214 is created by the transmission control unit 1211 according to the accessed sender, and one PID controller 1214 is created for each sender.
[0043] The transmission control unit 1211 controls and manages data transmission based on a preset transmission cycle. Specifically, after each transmission cycle, the transmission control unit 1211 counts the transmission speed of each sender in the transmission cycle and determines the signal strength of each sender in the transmission cycle. In one example, the signal strength of each sender in the transmission cycle can be determined as the signal strength of each sender in the last data transmission process in the transmission cycle. In other examples, it can also be determined based on the mean or maximum value of the signal strength in the transmission cycle.
[0044] S302: Determine a coefficient generation method based on the target matching degree of each sender.
[0045] In implementation, the transmission control target can be set according to actual application requirements. For example, the total amount of data sent within a period can be maximized, the sending amount of each sender within the period can be the most even, or the data transmission amount of some senders can be prioritized.
[0046] The transmission control unit can calculate the transmission volume of each sender in the transmission cycle according to the preset evaluation rules to obtain the current target completion value, and then determine the target matching degree based on the current target completion value. The preset evaluation rules correspond to the transmission control target setting.
[0047] In one implementation, when the transmission control target is the most average transmission volume, the preset evaluation rule includes calculating the sum of the absolute values of the difference between the transmission volume of each sender cycle and the average transmission volume as the target current completion value, and determining the target matching degree according to the target current completion value, wherein when the target current completion value is less than or equal to the first evaluation value, the target matching degree is set to the first matching value; when the target completion value is greater than the first evaluation value, the target matching degree is set to the second matching value. The first evaluation value is set based on the mean or median of each target historical completion value corresponding to all historical transmission cycles.
[0048] In another implementation, when the transmission control target is to maximize the total amount of data transmission, the preset evaluation rules include accumulating each transmission amount to obtain the total transmission amount, determining it as the target current completion value, determining the second evaluation value based on the target historical completion value of all historical transmission cycles, and determining the target matching degree according to the relationship between the target current completion value and the second evaluation value. Specifically, the second evaluation value can be set according to the mean or median of the target historical completion value of each historical transmission cycle. Among them, when the target current completion value is greater than the second evaluation value, the target matching degree is set to the first matching value, otherwise, the target matching degree is set to the second matching value.
[0049] It is understandable that the transmission control target can be set based on actual needs, and the corresponding target matching degree is determined in a manner corresponding to the transmission control target, but the present application is not limited thereto.
[0050] After determining the target matching degree, the transmission control unit can determine the coefficient generation method based on the target matching degree value, where, in the initial case, the coefficient generation method is the first method. When the target matching degree value is the first matching value, the coefficient generation method is determined to continue to use the current coefficient generation method, that is, the first method; when the target matching degree value is the second matching value, it is determined to switch the coefficient generation method, that is, switch to the second method.
[0051] It is understandable that in the subsequent operation process, if the target matching value is the second matching value after transmission control is performed based on the control coefficient value generated by the second method, the first method is switched. In this way, by switching between the two methods, it is avoided that the same coefficient generation method is continuously used and cannot adapt to the changes in actual transmission requirements, thereby affecting the control results.
[0052] S303: Obtain a control coefficient value according to the determined coefficient generation method.
[0053] Among them, the method for generating coefficients based on the first method includes: calculating each actual sending speed and each signal strength based on the PID coefficient prediction model to obtain a control coefficient value, wherein the control coefficient value includes a proportional coefficient value, an integral coefficient value, a differential coefficient value and an objective function.
[0054] In one implementation, a PID coefficient prediction model can be constructed based on a neural network algorithm, and real application data can be collected as training samples for training, wherein the training samples include the transmission speeds, signal emphasis, and control coefficient values of multiple senders, and the target matching degree is marked, and the loss function can be set based on the transmission control target. The trained model is deployed on the coefficient management unit 1212. When the coefficient is generated based on the first method, the coefficient management unit can calculate the PID coefficient prediction model based on the actual transmission speed and signal strength of each sender in the previous cycle as the input layer to obtain the PID control coefficient value corresponding to each sender.
[0055] It is worth noting that since the sending speed of each sender is calculated based on the sending amount and the corresponding time slices, and there is a mutual constraint relationship between the time slices, and since the data sending demand may change over time, different time slice allocation methods will affect the sending reading speed of each sender. Based on this, in an embodiment of the present application, the PID coefficient prediction model is trained based on the sending speed and signal strength of each sender. On the one hand, it can capture the mutual influence between the sending speeds of each sender in the same cycle, and on the other hand, it can obtain the relationship between the sending speed and signal strength under different time slices. Compared with using the relevant data of a single sender for training, it can more accurately output the control coefficient values of different PID controllers applied to the same cycle.
[0056] The method for generating coefficients based on the second method includes: selecting a historical control coefficient value from the historical coefficient table according to each signal strength as the control coefficient value of the current cycle. It is worth noting that the transmission control unit will record the control coefficient value used in each control cycle in which the target matching value is the first matching value, and record the corresponding target matching degree and signal emphasis, so as to continuously update the historical coefficient table and provide more options for control under the second method.
[0057] In one example, the signal strengths may be sorted first, and a signal strength bar graph may be generated based on the sorted signal strengths, wherein the horizontal axis of the bar graph is the identifier of each sender, and the vertical axis is the corresponding signal strength. Then, based on the signal strength bar graph and a historical bar graph generated based on each historical signal strength in the historical coefficient table, a graphic match is performed to determine the historical bar graph with the highest matching degree as the target bar graph, wherein the historical bar graph is generated in the same manner as the signal emphasis bar graph. The historical control coefficient value corresponding to the target bar graph is determined as the control coefficient value of the current period.
[0058] It is worth noting that when determining the control coefficient value of the current period based on the historical control coefficient value, it is allocated according to the corresponding relationship of the signal strength, that is, the corresponding historical control coefficient value is allocated according to the corresponding relationship of the signal strength in the historical bar chart. Therefore, the control coefficient value assigned to sender 1 may be the historical control coefficient value of sender 2.
[0059] Based on this, by matching the target bar graph with the highest similarity, and then determining the historical control coefficient value as the control coefficient value of the current cycle according to the corresponding relationship between the signal strengths in the target bar graph and the signal emphasis in the current bar graph, the data sending speed of the current cycle can be predicted based on the signal strengths. Since the signal strength is not affected by the data sending demand, it is more accurate than selecting the control coefficient value based on the data sending speed of the previous cycle.
[0060] In this step, the coefficient management unit 1212 may obtain the control coefficient value corresponding to the PID controller of each sender in the current cycle according to the determined coefficient generation method, and send it to the time allocation unit.
[0061] S304: Update the corresponding PID controller based on each control coefficient value.
[0062] In implementation, the time allocation unit updates the PID controller corresponding to each sender based on the received control coefficient value, and the updating method includes replacing the algorithm coefficient in the PID controller based on the control coefficient value.
[0063] Specifically, the algorithm calculation formula in the PID controller is as follows: u(t)=Kp*e(t-1)+Ki*f1(e(t-1))+Kd*f2(e(t-1)) Among them, u(t) is the time slice adjustment value of the current cycle; e(t-1) is the difference between the target slice value and the actual slice value of the previous cycle; Kp is the proportional coefficient; Ki is the integral coefficient; Kd is the differential coefficient; f1(e(t-1)) is the integral of e(t-1); f2(e(t-1)) is the differential of e(t-1).
[0064] e(t-1) can be calculated based on the actual transmission speed, actual time slice, signal strength and objective function of the previous cycle. In one example, the calculation formula of e(t-1) is as follows: e(t-1)=(V'(t-1)-V(t-1))*T(t-1) / V'(t-1) Among them, V'(t-1) is the actual sending speed; V(t-1) is the theoretical sending speed of the previous cycle determined based on the objective function; T(t-1) is the actual time slice.
[0065] In one implementation, the calculation formula of V(t-1) is as follows: V(t-1)=f 3 (RSSI) Among them, f 3 is the objective function; RSSI is the signal strength.
[0066] It can be seen that the corresponding PID controller is updated based on each control coefficient value, that is, Kp, Ki, Kd and f in the above algorithm. 3 Replace it to get the updated PID controller.
[0067] S305, calculating the actual sending speed, the actual time slice and the signal strength based on the updated PID controllers to obtain the time slice adjustment value corresponding to each sender.
[0068] In implementation, the time allocation unit may input the actual sending speed, actual time slice and signal strength of each sender in the previous cycle into the updated PID controller and trigger calculation to obtain the time slice adjustment value of the current cycle.
[0069] S306: Calculate and obtain each target time slice based on the time slice adjustment value corresponding to each sender.
[0070] During implementation, the time allocation unit can calculate the sum of the time slice adjustment value and the actual time slice of the previous cycle, and then normalize the calculation results to obtain the time allocation ratio corresponding to each sender. Finally, each target time slice is calculated according to the duration of the cycle and the time allocation ratio, and each target time slice is sent to the transmission control unit. The transmission control unit generates a CTS frame based on each target time slice and sends it to each sending end in the form of a broadcast.
[0071] Based on the above technical solution, the WiFi module on the network access device actively monitors to obtain the channel conflict situation, and when the probability of channel conflict is greater than the target value, switches to the second transmission control mode to actively allocate time slices to each sender, thereby avoiding the occurrence of channel conflicts. At the same time, by creating a corresponding PID controller for each sender and periodically adjusting the coefficient of the PID controller according to the actual transmission situation, the allocated time slices can be more adaptable to the dynamically changing data transmission requirements and the data transmission capabilities of each sender, thereby achieving the transmission control goal to adapt to different demand scenarios.
[0072] Furthermore, in the process of periodically updating the PID controller, the control coefficient value is generated by using the PID coefficient prediction model, so that the control coefficient value can be quickly obtained, and by monitoring the target matching degree and timely adjusting the coefficient selection method, when the model output cannot meet the adjustment of the current period, the control coefficient value can be selected based on the historical coefficient table. This can not only avoid the limitations of coefficient value generation based on the same method, but also adapt to changes in different application scenarios through the effective use of historical data, and to a certain extent ensure the achievable target matching degree.
[0073] In an embodiment of the present application, a data sending device is further provided, corresponding to the above-mentioned sender, and the data sending device includes a WiFi module for realizing wireless data interaction.
[0074] Before receiving a CTS frame actively sent by the WiFi module of the network access device, the WiFi module in the data sending device can avoid channel conflicts during data sending based on the CSMA / CA protocol or the RTS / CTS mechanism.
[0075] After receiving the CTS frame actively sent by the WiFi module of the network access device, the data transmission period is determined based on the time slice carried in the CTS frame, and the data is sent in the corresponding period. At the same time, the conflict control based on the CSMA / CA protocol or RTS / CTS mechanism is stopped, and the CTS frame is received to generate data based on the time slice in the CTS frame.
[0076] Among them, the method of determining the sending period includes performing local time synchronization based on the time synchronization information carried by the CTS frame to keep the local time consistent with the time of the network access device, and after synchronization, determining the sending period corresponding to the time slice based on the local time.
[0077] Among them, the method of judging whether the CTS frame is actively sent by the WiFi module of the network access device includes determining whether an RTS frame is sent first or determining whether it is used to respond to the RTS frame based on the control identifier carried by the CTS frame.
[0078] In addition, an embodiment of the present application also provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements a method as in any one of the implementations in the embodiments of the present application; wherein the processor may adopt a general-purpose central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), a graphics processing unit (GPU), or one or more integrated circuits, for executing relevant programs to implement the method in any one of the implementations in the embodiments of the present application.
[0079] The processor may also be an integrated circuit electronic device with signal processing capability. In the implementation process, each step of the method in any implementation of the embodiments of the present application may be completed by an integrated logic circuit of hardware in the processor or by instructions in software form.
[0080] The above-mentioned processor can also be a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be combined and executed.
[0081] The software module may be located in a random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register or other mature storage media in the art. The storage medium is located in the memory, and the processor reads the information in the memory, and combines its hardware to complete the functions required to be performed by the units included in the data processing device of the embodiment of the present application, or executes the method in any one of the implementation modes in the embodiment of the present application.
[0082] Those skilled in the art can understand that all or part of the steps in the above-mentioned implementation method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including a number of instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of each implementation method of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0083] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Therefore, any equivalent changes made according to the structure, shape, and principle of the present application should be included in the protection scope of the present application.
Claims
1. A wireless data transmission control method, characterized in that: Applied to the access party, the method comprises the steps of: In the first transmission control mode, when it is identified that there are multiple senders, a conflict monitoring task is performed to count the channel conflict probability, and when the channel conflict probability is greater than a target value, the second transmission control mode is switched; In the second transmission control mode, target time slices are periodically allocated to each of the senders, and a CTS frame is actively sent to notify each of the senders to send data based on the received time slices; wherein the method of periodically allocating time slices to each of the senders includes: Obtaining the actual sending speed, signal strength and actual time slice of each sender in the previous cycle; The actual transmission speeds and signal strengths are calculated based on the PID coefficient prediction model to obtain control coefficient values of the PID controllers; wherein the PID controllers are set in one-to-one correspondence with the transmitters; Update the corresponding PID controller based on each of the control coefficient values; Calculating the actual sending speed, the actual time slice and the signal strength based on the updated PID controller to obtain a time slice adjustment value corresponding to the sender; Based on the time slice adjustment value corresponding to each sender, each target time slice is calculated.
2. The method according to claim 1, characterized in that The control coefficient value includes a proportional coefficient value, an integral coefficient value, a differential coefficient value and an objective function, wherein the calculation formula in the PID controller is as follows: u(t)=Kp*e(t-1)+Ki*f1(e(t-1))+Kd*f2(e(t-1)) u(t) is the time slicing adjustment value of the current cycle; e(t-1) is the difference between the target slicing value and the actual slicing value of the previous cycle; Kp is the proportional coefficient; Ki is the integral coefficient; Kd is the differential coefficient; f1(e(t-1)) is the integral of e(t-1); f2(e(t-1)) is the differential of e(t-1); wherein e(t-1) is calculated based on the actual sending speed, the actual time slicing, the signal strength and the objective function.
3. The method according to claim 2, characterized in that The calculation formula of e(t-1) is as follows: e(t-1)=(V'(t-1)-V(t-1))*T(t-1) / V'(t-1) Wherein, V'(t-1) is the actual sending speed; V(t-1) is the theoretical sending speed of the previous cycle determined based on the objective function; and T(t-1) is the actual time slice.
4. The method according to claim 1, characterized in that: The method also includes obtaining the target matching degree of each sender after each sender sends data based on the target time slice, and when the target matching degree takes a second matching value, selecting a historical control coefficient value from the historical coefficient table according to the signal strength of each sender in the current period as the control coefficient value for the next period.
5. WiFi module, characterized in that: The WiFi module is used to implement the method according to any one of claims 1 to 4.
6. Network access equipment, characterized in that: The network access device includes the WiFi module described in claim 5.
7. WiFi module, characterized in that: When the WiFi module receives a CTS frame carrying a time slice, it sends data based on the time slice, wherein the CTS frame is generated by a network access device based on the method described in any one of claims 1 to 4.
8. The WiFi module according to claim 7, characterized in that: Before sending data based on the time slice, the WiFi module also performs local time synchronization according to the time synchronization information carried by the CTS frame, and sends data based on the synchronized local time and the time slice.
9. A data transmission device, characterized in that: The data sending device includes the WiFi module described in claim 8.
10. An electronic device, characterized in that The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction implements the method according to any one of claims 1 to 4 when executed by the processor.