Scheduling command processing method and device, equipment, storage medium and chip
By preprocessing scheduling commands and synchronously generating MPDUs in the wireless Wi-Fi system, the problem of low efficiency in hardware waiting for backoff before processing scheduling commands in traditional systems is solved, and the efficiency of data transmission is improved.
Patent Information
- Application Number
- CN202310160760.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-23
- Publication Date
- 2024-08-23
AI Technical Summary
In traditional wireless Wi-Fi systems, the hardware needs to wait for the backoff mechanism to be completed before starting to process scheduling commands, resulting in reduced data transmission efficiency.
By preprocessing the scheduling command, the media access control protocol data unit MPDU is generated, and is sent directly when the transmission start signal is obtained, and the MPDU required for the next transmission is synchronously generated.
The scheduling command data sending time is reduced and the data sending efficiency is improved. By directly using the pre-generated MPDU at the beginning of each sending process, the time of generating MPDU is saved.
Smart Images

Figure CN118540285A
Abstract
Description
Technical Field
[0001] The present application relates to wireless communication technology, and in particular to a scheduling command processing method, device, equipment, storage medium and chip. Background Art
[0002] In traditional wireless fidelity (Wi-Fi) systems, the solution for processing scheduling commands is that when the software gives a scheduling command and waits until the hardware backoff mechanism is completed, the hardware starts to read the scheduling command given by the software and sends data according to the scheduling command. The sending process needs to generate a media protocol data unit (MAC protocol data unit, MPDU) first, and then send the MPDU. However, it takes a lot of time to generate MPDU. The hardware waits until the backoff is completed before starting to read the instructions of the scheduling command to send data, which takes a lot of time and reduces the efficiency of data transmission. Summary of the invention
[0003] The embodiments of the present application are intended to provide a scheduling command processing method, apparatus, device, storage medium and chip.
[0004] The technical solution of this application is implemented as follows:
[0005] In a first aspect, a scheduling command processing method is provided, comprising:
[0006] Preprocessing the first scheduling command to generate a medium access control protocol data unit MPDU of the first scheduling command;
[0007] storing the MPDU of the first scheduling command in a first data storage unit corresponding to the first scheduling command;
[0008] When a sending start signal is obtained, the MPDU of the first scheduling command in the first data storage unit is sent.
[0009] In a second aspect, a scheduling command processing device is provided, comprising:
[0010] A generating unit, configured to pre-process the first scheduling command and generate a medium access control protocol data unit MPDU of the first scheduling command;
[0011] A storage unit, configured to store the MPDU of the first scheduling command into a first data storage unit corresponding to the first scheduling command;
[0012] The sending unit is configured to send the MPDU of the first scheduling command in the first data storage unit when a sending start signal is obtained.
[0013] In a third aspect, a scheduling command processing device is provided, comprising: a processor and a memory configured to store a computer program that can be run on the processor,
[0014] Wherein, the processor is configured to execute the steps of the aforementioned method when running the computer program.
[0015] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, wherein the computer program implements the steps of the aforementioned method when executed by a processor.
[0016] In a fifth aspect, a chip is provided, comprising a processor, wherein the processor is configured to execute the steps of the aforementioned method.
[0017] In the embodiments of the present application, a scheduling command processing method, device, equipment, storage medium and chip are provided. The method includes: pre-processing the first scheduling command to generate the media access control protocol data unit MPDU of the first scheduling command; storing the MPDU of the first scheduling command in the first data storage unit corresponding to the first scheduling command; and sending the MPDU of the first scheduling command in the first data storage unit when a sending start signal is obtained. In this way, by pre-processing the scheduling command, the pre-generated MPDU can be directly sent at the beginning of each sending process, saving the time of generating the MPDU and reducing the time of sending the scheduling command data.
[0018] Furthermore, within one transmission opportunity, the MPDU required for the next transmission can be synchronously generated during each MPDU transmission process, and the MPDU transmission and MPDU generation are performed synchronously, further reducing the scheduling command data transmission time. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 A schematic diagram of a first flow chart of a scheduling command processing method provided in an embodiment of the present application;
[0020] Figure 2 This is a schematic diagram of the structure of the first command queue in an embodiment of the present application;
[0021] Figure 3 This is a schematic diagram of the structure of the second command queue in an embodiment of the present application;
[0022] Figure 4 A schematic diagram of the arbitration process of scheduling command processing in an embodiment of the present application;
[0023] Figure 5 A second flow chart of the scheduling command processing method provided in an embodiment of the present application;
[0024] Figure 6This is a schematic diagram of the cring structure in the embodiment of the present application;
[0025] Figure 7 A third flow chart of the scheduling command processing method provided in the embodiment of the present application;
[0026] Figure 8 This is a schematic diagram of a data transmission process for one transmission opportunity in an embodiment of the present application;
[0027] Fig. 9 This is a schematic diagram of the structure of the scheduling command processing device in the embodiment of the present application;
[0028] Fig.10 This is a schematic diagram of the composition structure of the scheduling command processing device in an embodiment of the present application;
[0029] Fig.11 It is a schematic structural diagram of the chip of an embodiment of the present application. DETAILED DESCRIPTION
[0030] In order to enable a more detailed understanding of the features and technical contents of the embodiments of the present application, the implementation of the embodiments of the present application is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present application.
[0031] Figure 1 A first flow chart of the scheduling command processing method provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the method includes:
[0032] Step 101: pre-processing a first scheduling command to generate a medium access control protocol data unit MPDU of the first scheduling command;
[0033] It should be noted that the first scheduling command can be any scheduling command given when the software is running. Before obtaining a data transmission opportunity, the sending device pre-processes the scheduling command to generate an MPDU and stores it. In the pre-processing stage, the first scheduling command can be understood as the current pre-processing scheduling command, and in the data sending stage, the first scheduling command can be understood as the current sending scheduling command.
[0034] Exemplarily, in some embodiments, the method further includes: pre-reading identification information of the first scheduling command, and storing the identification information of the first scheduling command into the first command queue; reading the identification information of the first scheduling command from the first command queue; and determining the first scheduling command based on the identification information of the first scheduling command.
[0035] It should be noted that when multiple scheduling commands are generated, the identification information of the pre-read scheduling command is first stored in the first command queue, and the first scheduling command is read for pre-processing when the pre-processing condition is met. Exemplarily, the identification information of the first scheduling command can be the first scheduling command index information, or it can be the first scheduling command itself.
[0036] Exemplarily, in some embodiments, reading identification information of the first scheduling command from the first command queue includes: when the identification information of the scheduling command indicated by the write indication identifier of the first command queue and the identification information of the scheduling command indicated by the pre-read indication identifier are different, reading the identification information of the indicated first scheduling command from the first command queue according to the pre-read indication identifier of the first command queue.
[0037] It should be noted that the presence of an unpre-read scheduling command in the first command queue storing the scheduling command identification information (i.e., the write indication identifier and the pre-read indication identifier do not point to the same scheduling command) will trigger the pre-processing process and generate an MPDU. Among them, the unpre-read scheduling command can also be understood as an unpre-processed scheduling command.
[0038] Exemplarily, in some embodiments, the method further includes: when a sending end signal is obtained, updating the read indication flag of the first command queue; the read indication flag of the first command queue is used to indicate identification information of the next read scheduling command in the first command queue.
[0039] The first command queue is used to store identification information of at least one scheduling command. Figure 2 As shown, the write indication mark of the first command queue is used to indicate the write position of the identification information of the next scheduling command, the pre-read indication mark of the first command queue is used to indicate the pre-processing scheduling command position, and the read indication mark of the first command queue is used to indicate the sending scheduling command position.
[0040] Exemplarily, in some embodiments, pre-reading identification information of the first scheduling command includes: when the identification information of the scheduling command indicated by the first write indication identifier of the second command queue and the identification information of the scheduling command indicated by the first pre-read indication identifier are different, pre-reading the identification information of the first scheduling command from the second command queue according to the first pre-read indication identifier; wherein the identification information of at least one scheduling command is pre-stored in the second command queue.
[0041] It should be noted that when there is a non-pre-read scheduling command in the second command queue (ie, the first write indicator and the first pre-read indicator do not point to the same scheduling command), a pre-reading (also called "pre-fetching") process will be triggered.
[0042] Exemplarily, in some embodiments, after storing the identification information of the first scheduling command in the first command queue, the method further includes: updating the second pre-read indication identifier of the second command queue; wherein the second pre-read indication identifier is used to indicate the identification information of the latest scheduling command stored in the first command queue.
[0043] It should be noted that the first command queue can be a hardware module for recording identification information of the scheduling command, and the second command queue can be a software module for recording identification information of the scheduling command. The software module gives a scheduling command and first stores the identification information of the scheduling command in the second command queue. When the hardware module processes the scheduling command, it needs to first read the scheduling command identification information from the second command queue and store it in the first command queue in sequence. Every time the identification information of a scheduling command is written into the first command queue, the second pre-read indication flag fed back by the hardware will point to the next pre-read scheduling command position.
[0044] Exemplarily, in some embodiments, when a sending end signal is obtained, the first read indication identifier of the second command queue is updated; wherein the first read indication identifier is used to indicate identification information of the current read scheduling command in the first command queue.
[0045] It should be noted that, each time the MPDU sending of a scheduling command is completed, the first read indication flag fed back by the hardware will point to the location of the next scheduling command to be sent.
[0046] The second command queue is used to store identification information of at least one scheduling command. Figure 3 As shown, the first write indication mark of the second command queue is the write position of the identification information of the next scheduling command recorded by the software, the first pre-read indication mark of the second command queue is the pre-read scheduling command identification information position recorded by the software, and the first read indication mark of the second command queue is the sending scheduling command position recorded by the software. The second read indication mark of the second command queue is the sending scheduling command position indicated by the hardware feedback, and the second pre-read indication mark of the second command queue is the pre-read scheduling command identification information indicated by the hardware feedback. Among them, software control is represented by a solid arrow, and hardware feedback is represented by a dotted arrow.
[0047] Exemplarily, in some embodiments, the method further includes: when the identification information of the scheduling command indicated by the first write indication identifier of the second command queue and the identification information of the scheduling command indicated by the first pre-read indication identifier are different, determining the pre-read number according to the first write indication identifier and the first pre-read indication identifier; and pre-reading the identification information of at least one scheduling command from the second command queue according to the first pre-read indication identifier and the pre-read number.
[0048] Exemplarily, in some embodiments, the method further includes: determining the remaining space of the first command queue; and determining the number of pre-reads according to the remaining space of the first command queue, the first write indicator, and the first pre-read indicator.
[0049] It should be noted that the number of pre-fetched scheduling commands can be calculated based on the first write indicator and the first pre-read indicator in the second command queue, and the number of pre-fetched scheduling commands can also be determined based on the remaining space in the second command queue.
[0050] Exemplarily, in some embodiments, the identification information of the first scheduling command includes a storage address of the first scheduling command in the first command storage unit. In practical applications, the storage address may be the storage address itself, or a storage address offset.
[0051] Exemplarily, in some embodiments, determining the first scheduling command according to identification information of the first scheduling command includes: reading the first scheduling command from a first command storage unit according to a storage address of the first scheduling command.
[0052] Exemplarily, in some embodiments, at least two command queues are pre-set, wherein different command queues are used to store identification information of different types of scheduling commands; the method further includes: obtaining identification information of at least two scheduling commands in advance; storing the identification information of at least two scheduling commands in at least two command queues. The at least two command queues obtain the opportunity to pre-process and generate MPDUs through arbitration.
[0053] Exemplarily, in some embodiments, the method also includes: obtaining at least two first requests of at least two command queues; arbitrating the at least two first requests based on a first arbitration strategy to determine a first permission for a target command queue among the at least two command queues; and pre-processing the scheduling command in the target command queue based on the first permission.
[0054] It should be noted that the first arbitration strategy is used to arbitrate the preprocessing requests of at least two command queues, determine a target command queue that is allowed, preprocess the scheduling command in the target command queue, and generate an MPDU. In the preprocessing stage, the first scheduling command can be understood as the current preprocessing scheduling command, that is, the target scheduling command.
[0055] In some embodiments, the first arbitration strategy is used to determine a target command queue from the first requests of more than two command queues and pre-process the scheduling commands of the target command queue. Exemplarily, the first arbitration strategy can be round-robin scheduling arbitration or priority arbitration.
[0056] Exemplarily, in some embodiments, at least two command queues and at least two command storage units are pre-set, wherein different command storage units are used to store different types of scheduling commands.
[0057] Step 102: storing the MPDU of the first scheduling command into a first data storage unit corresponding to the first scheduling command;
[0058] Exemplarily, in some embodiments, at least two command queues and at least two data storage units are pre-set, wherein different data storage units are used to store MPDUs of different types of scheduling commands. When the target command queue obtains a transmission opportunity, it obtains the MPDU from the data storage unit corresponding to the target command queue.
[0059] It should be noted that the at least two command queues here can be understood as command queues managed by the hardware module, for example, the first command queue mentioned in the embodiment of the present application. Correspondingly, the software module also manages at least two command queues, for example, the second command queue mentioned in the embodiment of the present application.
[0060] In some embodiments, the command queue may be a ring queue.
[0061] Step 103: When a sending start signal is obtained, the MPDU of the first scheduling command in the first data storage unit is sent.
[0062] Exemplarily, in some embodiments, sending the start signal includes a first sending signal and a second sending signal;
[0063] In some embodiments, the sending start signal may be generated according to the MPDU sending time determined by the backoff mechanism, or may be generated when the communication quality (eg, measured by CQI or SINR) of the communication link is good.
[0064] When a sending start signal is obtained, the MPDU of the first scheduling command in the first data storage unit is sent, including: when the first sending signal is obtained, the MPDU of the first scheduling command in the first data storage unit is aggregated to generate an aggregated MPDU; when the second sending signal is obtained, the aggregated MPDU of the first scheduling command is sent.
[0065] Exemplarily, in some embodiments, the method further includes: obtaining a first transmission signal and a second transmission signal according to a preset backoff mechanism; wherein the generation time of the first transmission signal is earlier than the generation time of the second transmission signal.
[0066] Exemplarily, in some embodiments, the method further includes: in the process of sending the MPDU of the first scheduling command in the first data storage unit, continuing to generate the MPDU of the first scheduling command.
[0067] It should be noted that within a transmission opportunity, the MPDU required for the next transmission can be generated synchronously during each MPDU transmission process, and the MPDU transmission and MPDU generation are performed synchronously, further reducing the scheduling command data transmission time. Transmission Opportunity (TXOP) is a complete data transmission opportunity. In some related technologies, data transmission channel resources may be competed by multiple communication systems with different communication standards, and the data transmission channel may belong to an unlicensed frequency band. For example, Wireless Fidelity (WiFi) system and Long Term Evolution (LTE) system, New Radio Based Unlicensed Access (NR-U) communication system based on the new air interface and the next generation mobile communication system based on 5G can compete for the use of frequency domain resources on the unlicensed spectrum.
[0068] In order to achieve coexistence, the carrier sense (Listen Before Talk, LBT) technology based on idle channel detection is introduced. LBT is a carrier sense technology for the use of unlicensed spectrum. Before the sending device and the receiving device have a conversation, they use the LBT technology to listen to whether the channel is idle. If the channel is idle, it sends RTS to the receiving device after the LBT is successful; if the RTS sent by other devices is heard on the channel, it backs off according to the backoff time indicated by the RTS sent by other devices. This technology aims to achieve fair sharing of unlicensed spectrum. In some embodiments, "compete once and get a period of transmission time", that is, after the node successfully competes, it obtains a period of channel usage time, during which time it can transmit multiple data frames.
[0069] Exemplarily, in some embodiments, the method further includes: generating a second request for the first command queue during the process of sending the MPDU of the first scheduling command in the first data storage unit; arbitrating the second request of the first command queue and the first request of the target command queue based on the second arbitration strategy to determine a second permission for the first command queue; and continuing to generate the MPDU of the first scheduling command during the process of sending the MPDU of the first scheduling command in the first data storage unit based on the second permission.
[0070] Figure 4 FIG. 1 is a schematic diagram of the arbitration process of scheduling command processing in an embodiment of the present application. Figure 4As shown, ring0-ring10 represents 11 command queues. When there is a scheduling command in ring0-ring10, the first request signal req0-req10 is sent to the round-robin scheduling arbitrator (round_robin ARB) for arbitration to determine the target command queue ringX, and the corresponding permission response (gnt0) is generated. RingX and the Tx processing module send the second request signal to the fixed priority arbitration (fixedARB). The second request signal of the Tx processing module has the highest priority, so the corresponding permission response (gnt1) is generated, and the Gen_mpdu module generates the MPDU of the current scheduling command of the Tx processing module. After the Gen_mpdu module is completed, the end signal Gen_end is generated to pull the high level of the corresponding request signal down.
[0071] In some embodiments, a first command queue is set up for hardware storage of identification information of scheduling commands, which is denoted as pring. Pring can be a fifo for storing identification information of scheduling commands. A second command queue is set up for software storage of identification information of scheduling commands, which is denoted as cring. The internal process is divided into three stages: pre-fetching, pre-processing and sending. The pointers of cring and pring are controlled at different stages to complete the pre-processing process of scheduling commands through joint scheduling of software and hardware. After the whole process of generating MPDU is completed, the backoff signal is obtained to start the data sending process.
[0072] Figure 5 A second flow chart of the scheduling command processing method provided in the embodiment of the present application is as follows: Figure 5 As shown, the method includes:
[0073] Step 501: pre-read identification information of a first scheduling command from a second command queue, and store the identification information of the first scheduling command into the first command queue;
[0074] For example, the software writes the address corresponding to the scheduling command in DDR in the cring, and gives the location information of the current read, write, and pre-read pointers (according to the design, there are 11 crings with different priorities). Figure 6 The solid arrow pointer is controlled by software, the dotted arrow pointer is fed back by hardware, and when the number of read commands reaches the set threshold or the command is not read after a timeout, an interrupt signal is generated to update the position information of the read pointer controlled by the software.
[0075] Among them, the DDR address of the scheduling command that has been written into the Ring_aval software queue, the write pointer of the Ring_wptr software queue (i.e., the first write indication mark),
[0076] The read pointer (i.e., the first read indicator) of the Ring_rptr software queue, the pre-read pointer (i.e., the first pre-read indicator) of the Ring_pre_rptr software queue, the DDR address of the pre-read scheduling command in the Ring_pre_aval software queue, and the number of DDR addresses of scheduling commands allowed to be written in the Ring_boundry software queue;
[0077] The read pointer (i.e., the second read indication identifier) of the Rpt_cring_rptr hardware queue, and the pre-read pointer (i.e., the second pre-read indication identifier) of the Rpt_cring_pre_rptr hardware queue.
[0078] When the write pointer (Ring_wptr) and the pre-read pointer (Ring_pre_rptr) of cring are not in the same position, the pre-fetch process will be triggered. The number of pre-reads that can be calculated is based on the pre-read pointer and write pointer in the cring, and the number of pre-fetches is determined by the remaining space in the pring corresponding to the current scheduling command. The address information of the output scheduling command is sent to the hardware module of the MAC layer through the bus.
[0079] The address information in the pre-fetched cring read back by the hardware module of the MAC layer through the bus will be written into the local pring in sequence. Every time a piece of data is written into the pring, the Rpt_cring_pre_rptr pointer fed back by the hardware will increase.
[0080] Step 502: Read identification information of a first scheduling command from a first command queue;
[0081] Exemplarily, when the identification information of the scheduling command indicated by the write indication identifier of the first command queue is different from the identification information of the scheduling command indicated by the pre-read indication identifier, the identification information of the indicated first scheduling command is read from the first command queue according to the pre-read indication identifier of the first command queue.
[0082] Step 503: Determine the first scheduling command according to the identification information of the first scheduling command;
[0083] Step 504: pre-process the first scheduling command to generate an MPDU of the first scheduling command;
[0084] Step 505: Store the MPDU of the first scheduling command into the first data storage unit corresponding to the first scheduling command;
[0085] When the prefetch is completed, if there is a scheduling command that has not been pre-read in the pring (that is, the write pointer and the pre-read pointer do not point to the same address), the pre-generation of the MPDU process will be triggered. First, the identification information of the first scheduling command is read from the first command queue, and according to the storage address of the first scheduling command, the first scheduling command is obtained from the first command storage unit corresponding to the first command unit for preprocessing.
[0086] It should be noted that the identification information of the scheduling command may also include the ID information indicating the command queue and / or data storage unit, the source of the command queue and / or the decision of which data storage unit to select. If the MPDU generated twice is stored in the same data storage unit, due to the limited size of the storage unit, the size of the MPDU generated twice may exceed the limit of the storage unit size, which will make the second generation of the MPDU meaningless. Exemplarily, there are two constraints when pre-generating MPDU: 1. The operation of pre-generating MPDU is performed for at most two scheduling commands; 2. The ID information in the two scheduling commands cannot be the same.
[0087] In some embodiments, the data storage unit may be a storage queue.
[0088] When there are multiple command queues, and more than two command queues have scheduling commands, arbitration is required. Figure 4 As shown, since there are 11 types of rings, arbitration is required when there are scheduling commands. After the current ring (cring or pring) obtains the arbitration success request, it will wait for the module that generates the MPDU to generate the end and return the pulse that generates the end. After returning the end mark, the pre-read pointer of the pring that stores the scheduling command identification information increases and triggers the ring's sending process. At the same time, the data transmission process can be started after the tx_backoff process is completed. The ring's sending process will terminate after the entire data sending process is completed. At this time, the pring's read pointer and cring's Rpt_cring_rptr pointer point to the next storage address.
[0089] Step 506: When a sending start signal is obtained, the MPDU of the first scheduling command in the first data storage unit is sent, and the MPDU of the first scheduling command continues to be generated.
[0090] Since a scheduling command needs to manage a txop process, the above process is to generate the MPDU required for the first data transmission in a txop, and the MPDU required for the second data transmission will be generated when the first data transmission is transmitted, and has a higher priority than the generation of MPDU in 11 rings, such as Figure 4As shown, this ensures that before each data transmission of a txop, the MPDU data to be sent has been generated in the storage queue.
[0091] It should be noted that, according to the size limit of the data storage unit, the above process can also generate the MPDU required for the first N data transmissions in a txop, and the MPDU required for the N+1th data transmission will be generated when the first data transmission is transmitted.
[0092] When a scheduling command is generated, the preprocessing mechanism of the scheduling command is completed through the cooperation of three processes: pre-reading, generating MPDU and sending through TX. Figure 7 This is a third flow chart of the scheduling command processing method provided in the embodiment of the present application. Figure 7 As shown, the black horizontal arrows represent time stamps, which increase from left to right, and the top signal represents the interface signal with other modules.
[0093] S1: Generate a scheduling command;
[0094] S2: pre-reading process;
[0095] S3: trigger the preprocessing process according to the scheduling command information stored in pring;
[0096] S4: Send a generation request Gen_req to the Gen_mpdu module;
[0097] S5: Receive the generation permission Gen_gnt returned by the Gen_mpdu module;
[0098] S6: Generate mpdu;
[0099] S7: MPDU generation ends, triggering the sending process;
[0100] S8: Get aggregated mpdu;
[0101] S9: Send aggregated MPDU to the receiving end;
[0102] S10: Receive and send a response signal.
[0103] The scheduling command processing method provided by the embodiment of the present application can complete the aggregation of msdu to form MPDU before the data starts to be transmitted. After the scheduling command is obtained and before the data is sent, an msdu will be generated first. During a txop time in the sending process, the first list uses the mpdu data generated in advance after the scheduling command is obtained. After the list and before the next data is sent, the command to generate mpdu will be initiated again during the sending process to generate the MPDU required for the next transmission during this txop process.
[0104] Figure 8 Schematic diagram of the data transmission process of one transmission opportunity in the embodiment of the present application, such as Figure 8 As shown, TXPPDU is a data transmission process. The transmitter starts the Tx transmission process after obtaining Pre_bo_done, aggregates MPDUs to generate A-MPDUs in the list stage, and sends A-MPDUs when receiving the backoff signal. At this time, the generation priority of the MPDU of the current scheduling command is the highest, and the MPDU is generated during the A-MPDU transmission process. Among them, pre_bo_done can be understood as a signal of a period of time in advance of the backoff signal, that is, the first transmission signal, which can also be called pre_backoff, in order to aggregate the mpdu in advance to generate A-mpdu.
[0105] It should be noted that the MAC layer sends the A-MPDU to the physical layer, and the physical layer adds a frame header and a frame trailer (if any) to obtain a physical layer protocol data unit (PPDU), and the transmitter sends the PPDU to the receiver. Among them, the frame header and the frame trailer contain some necessary control information, such as synchronization information, address information, error control information, etc.; the data part contains the data A-MPDU or MPDU passed down by the MAC layer, etc.
[0106] The receiving end, after receiving the A-MPDU, feeds back the BA after the short inter-frame spacing (SIFS) time; the transmitting end, after receiving the BA, sends the next MPDU until the end of this TXOP.
[0107] SIFS: The interval between frames after a device occupies a channel for data transmission or interaction is the minimum inter-frame interval. Due to the short time interval, the device still has the right to use the channel after SIFS. It is mainly used for the time interval of the immediate interactive frames between the sending device and the receiving device during the transmission time, such as the interactive interval of the ACK frame and CTS frame.
[0108] The sending device in this embodiment is the sender in a certain TXOP process, or the sender in a certain period of time or a certain data transmission process, but it does not mean that the sending device only has a sending function. In different time periods, different states or different data transmission processes, the same device can be used as a sending device or a receiving device.
[0109] The embodiment of the present application proposes a method for processing scheduling commands, including a pre-reading method, software control of cring pointer, and a hardware module storing the scheduling commands given in the software in a local pring and feeding back the reading information, which can reduce the number of times the software is involved and better coordinate the hardware and software.
[0110] The invention also includes a scheduling command preprocessing method. The scheduling command given by the software is preprocessed by controlling cring and local pring, so that the process of aggregating MPDU can be directly carried out at the beginning of each sending process, saving the time required for each sending.
[0111] To implement the method of the embodiment of the present application, based on the same inventive concept, the embodiment of the present application also provides a scheduling command processing device, such as Fig. 9 As shown, the scheduling command processing device 90 includes:
[0112] A generating unit 901 is configured to pre-process the first scheduling command and generate a medium access control protocol data unit MPDU of the first scheduling command;
[0113] A storage unit 902, configured to store the MPDU of the first scheduling command into a first data storage unit corresponding to the first scheduling command;
[0114] The sending unit 903 is configured to send the MPDU of the first scheduling command in the first data storage unit when a sending start signal is obtained.
[0115] Exemplarily, in some embodiments, the apparatus further includes: a reading unit, configured to pre-read identification information of the first scheduling command, and store the identification information of the first scheduling command into the first command queue;
[0116] The generating unit 901 is configured to read identification information of a first scheduling command from a first command queue; and determine the first scheduling command according to the identification information of the first scheduling command.
[0117] Exemplarily, in some embodiments, the reading unit is used to read the identification information of the indicated first scheduling command from the first command queue according to the pre-read indication identifier of the first command queue when the identification information of the scheduling command indicated by the write indication identifier of the first command queue and the identification information of the scheduling command indicated by the pre-read indication identifier are different.
[0118] Exemplarily, in some embodiments, the reading unit is used to update the read indication flag of the first command queue when receiving the sending end signal; the read indication flag of the first command queue is used to indicate the identification information of the next read scheduling command in the first command queue.
[0119] Exemplarily, in some embodiments, the reading unit is used to pre-read the identification information of the first scheduling command from the second command queue according to the first pre-read indication identifier when the identification information of the scheduling command indicated by the first write indication identifier of the second command queue is different from the identification information of the scheduling command indicated by the first pre-read indication identifier; wherein the identification information of at least one scheduling command is pre-stored in the second command queue.
[0120] Exemplarily, in some embodiments, the reading unit is used to determine the number of pre-reads based on the first write indication identifier and the first pre-read indication identifier when the identification information of the scheduling command indicated by the first write indication identifier of the second command queue is different from the identification information of the scheduling command indicated by the first pre-read indication identifier; and pre-read the identification information of at least one scheduling command from the second command queue based on the first pre-read indication identifier and the pre-read number.
[0121] Exemplarily, in some embodiments, the reading unit is used to determine the remaining space of the first command queue; and determine the number of pre-reads according to the remaining space of the first command queue, the first write indicator and the first pre-read indicator.
[0122] Exemplarily, in some embodiments, the reading unit is used to update the second pre-read indication identifier of the second command queue after storing the identification information of the first scheduling command in the first command queue; wherein the second pre-read indication identifier is used to indicate the identification information of the latest scheduling command stored in the first command queue.
[0123] Exemplarily, in some embodiments, the identification information of the first scheduling command includes a storage address of the first scheduling command in the first command storage unit.
[0124] Exemplarily, in some embodiments, the reading unit is used to read the first scheduling command from the first command storage unit according to the storage address of the first scheduling command.
[0125] Exemplarily, in some embodiments, the apparatus further comprises: an arbitration unit, configured to obtain at least two first requests of at least two command queues; arbitrate the at least two first requests based on a first arbitration strategy, and determine a first permission for a target command queue of the at least two command queues;
[0126] The generating unit 901 is configured to pre-process the scheduling command in the target command queue based on the first permission.
[0127] Exemplarily, in some embodiments, the arbitration unit is configured to generate a second request for the first command queue during the process of sending the MPDU of the first scheduling command in the first data storage unit; arbitrate the second request of the first command queue and the first request of the target command queue based on the second arbitration strategy to determine a second permission for the first command queue;
[0128] The generating unit 901 is configured to continue generating the MPDU of the first scheduling command in the process of sending the MPDU of the first scheduling command in the first data storage unit based on the second permission.
[0129] Exemplarily, in some embodiments, the second arbitration strategy includes priority-based arbitration, and in the process of sending the MPDU of the first scheduling command in the first data storage unit, the second request of the first command queue has the highest priority.
[0130] Exemplarily, in some embodiments, the generation unit 901 is used to pre-process the first scheduling command when the first scheduling command meets the preset constraint conditions; when the first scheduling command does not meet the preset constraint conditions, stop pre-processing the first scheduling command.
[0131] Exemplarily, in some embodiments, the constraint condition includes at least one of the following:
[0132] Pre-generate corresponding MPDUs for at most N consecutive first scheduling commands; where N is an integer greater than or equal to 1;
[0133] There is remaining space in the first data storage unit.
[0134] Exemplarily, in some embodiments, sending the start signal includes a first sending signal and a second sending signal;
[0135] The sending unit 903 is used to aggregate the MPDU of the first scheduling command in the first data storage unit to generate an aggregated MPDU when the first sending signal is obtained; and send the aggregated MPDU of the first scheduling command when the second sending signal is obtained.
[0136] Exemplarily, in some embodiments, the sending unit 903 is configured to obtain the first sending signal and the second sending signal according to a preset backoff mechanism;
[0137] The generation time of the first transmission signal is earlier than the generation time of the second transmission signal.
[0138] Exemplarily, in some embodiments, the generating unit 901 is configured to continue generating the MPDU of the first scheduling command during the process of sending the MPDU of the first scheduling command in the first data storage unit.
[0139] Optionally, the above-mentioned scheduling command processing device is applied to the MAC layer.
[0140] Based on the hardware implementation of each unit in the above-mentioned scheduling command processing device, the embodiment of the present application also provides a scheduling command processing device, such as Fig.10As shown, the scheduling command processing device 100 includes: a processor 1001 and a memory 1002 configured to store a computer program that can be run on the processor;
[0141] The processor 1001 is configured to execute the method steps in the aforementioned embodiment when running a computer program.
[0142] Of course, in practical applications, Fig.10 As shown, each component in the scheduling command processing device is coupled together through a bus system 1003. It can be understood that the bus system 1003 is used to realize the connection communication between these components. In addition to the data bus, the bus system 1003 also includes a power bus, a control bus and a status signal bus. However, for the sake of clear explanation, various buses are marked as bus system X03 in the figure.
[0143] In practical applications, the processor may be at least one of an application-specific integrated circuit (ASIC), a digital signal processing device (DSPD), a programmable logic device (PLD), a field-programmable gate array (FPGA), a controller, a microcontroller, and a microprocessor. It is understandable that for different devices, the electronic device used to implement the functions of the processor may also be other, and the embodiments of the present application do not specifically limit this.
[0144] The above-mentioned memory can be a volatile memory (volatile memory), such as a random access memory (RAM); or a non-volatile memory (non-volatile memory), such as a read-only memory (ROM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD); or a combination of the above-mentioned types of memory, and provide instructions and data to the processor.
[0145] In practical applications, the above device can be a sending device or a chip applied to a sending device. In the present application, the device can realize the functions of multiple units by software, hardware, or a combination of software and hardware, so that the device can execute the scheduling command processing method provided in any of the above embodiments. The technical effects of each technical solution of the device can refer to the technical effects of the corresponding technical solution in the scheduling command processing method, and this application will not repeat them one by one.
[0146] In an exemplary embodiment, the present application also provides a chip. Fig.11 It is a schematic structural diagram of the chip of an embodiment of the present application. Fig.11 The chip 1100 shown includes a processor 1110, which can call and run a computer program from a memory to implement the method in the embodiment of the present application.
[0147] Alternatively, if Fig.11 As shown, the chip 1100 may further include a memory 1120. The processor 1110 may call and run a computer program from the memory 1120 to implement the method in the embodiment of the present application.
[0148] The memory 1120 may be a separate device independent of the processor 1110 , or may be integrated into the processor 1110 .
[0149] Optionally, the chip 1100 may further include an input interface 1130. The processor 1110 may control the input interface 1130 to communicate with other devices or chips, and specifically, may obtain information or data sent by other devices or chips.
[0150] Optionally, the chip 1100 may further include an output interface 1140. The processor 1110 may control the output interface 1140 to communicate with other devices or chips, and specifically, may output information or data to other devices or chips.
[0151] In an exemplary embodiment, the embodiment of the present application further provides a computer-readable storage medium, such as a memory including a computer program, and the computer program can be executed by a processor of a scheduling command processing device to complete the steps of the aforementioned method.
[0152] An embodiment of the present application also provides a computer program product, including computer program instructions.
[0153] Optionally, the computer program product can be applied to the scheduling command processing device in the embodiments of the present application, and the computer program instructions enable the computer to execute the corresponding processes implemented by the scheduling command processing device in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.
[0154] The embodiment of the present application also provides a computer program.
[0155] Optionally, the computer program can be applied to the scheduling command processing device in the embodiments of the present application. When the computer program runs on a computer, the computer executes the corresponding processes implemented by the scheduling command processing device in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.
[0156] It should be understood that the terms used in the present application are only for the purpose of describing specific embodiments, but are not intended to limit the present application. The singular forms of "a", "said" and "the" used in the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in this article refers to and includes any or all possible combinations of one or more associated listed items. The expressions "having", "may have", "include" and "include", or "may include" and "may include" in this application can be used to indicate the presence of corresponding features (e.g., elements such as numerical values, functions, operations or components), but the presence of additional features is not excluded.
[0157] It should be understood that although the terms first, second, third, etc. may be used in this application to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other and are not necessarily used to describe a specific order or sequence. For example, without departing from the scope of the present invention, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information.
[0158] The technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.
[0159] In the several embodiments provided in the present application, it should be understood that the disclosed methods, devices and equipment can be implemented in other ways. The embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0160] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0161] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0162] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
Claims
1. A scheduling command processing method, characterized in that: The method comprises: Preprocessing the first scheduling command to generate a medium access control protocol data unit MPDU of the first scheduling command; storing the MPDU of the first scheduling command in a first data storage unit corresponding to the first scheduling command; When a sending start signal is obtained, the MPDU of the first scheduling command in the first data storage unit is sent.
2. The method according to claim 1, characterized in that The method further comprises: Pre-reading identification information of the first scheduling command, and storing the identification information of the first scheduling command in a first command queue; Reading identification information of the first scheduling command from the first command queue; The first scheduling command is determined according to the identification information of the first scheduling command.
3. The method according to claim 2, characterized in that The reading identification information of the first scheduling command from the first command queue includes: When the identification information of the scheduling command indicated by the write indication identifier of the first command queue is different from the identification information of the scheduling command indicated by the pre-read indication identifier of the first command queue, the identification information of the indicated first scheduling command is read from the first command queue according to the pre-read indication identifier of the first command queue.
4. The method according to claim 3, characterized in that The method further comprises: When a sending end signal is obtained, updating the read indication flag of the first command queue; The read indication mark of the first command queue is used to indicate the identification information of the next read scheduling command in the first command queue.
5. The method according to claim 2, characterized in that: The pre-reading of identification information of the first scheduling command includes: In a case where the identification information of the scheduling command indicated by the first write indication identifier of the second command queue is different from the identification information of the scheduling command indicated by the first pre-read indication identifier, pre-reading the identification information of the first scheduling command from the second command queue according to the first pre-read indication identifier; Wherein, identification information of at least one scheduling command is pre-stored in the second command queue.
6. The method according to claim 5, characterized in that The method further comprises: When the identification information of the scheduling command indicated by the first write indication identifier of the second command queue is different from the identification information of the scheduling command indicated by the first pre-read indication identifier, determining the pre-read number according to the first write indication identifier and the first pre-read indication identifier; Pre-read identification information of at least one scheduling command from the second command queue according to the first pre-read indication identifier and the pre-read number.
7. The method according to claim 6, characterized in that The method further comprises: Determining remaining space of the first command queue; The pre-read quantity is determined according to the remaining space of the first command queue, the first write indication flag, and the first pre-read indication flag.
8. The method according to claim 5, characterized in that After storing the identification information of the first scheduling command in the first command queue, the method further includes: Update the second pre-reading indication mark of the second command queue; wherein the second pre-reading indication mark is used to indicate the identification information of the latest scheduling command stored in the first command queue.
9. The method according to any one of claims 2 to 8, characterized in that: The identification information of the first scheduling command includes a storage address of the first scheduling command in the first command storage unit.
10. The method according to claim 9, characterized in that The determining the first scheduling command according to the identification information of the first scheduling command includes: The first scheduling command is read from the first command storage unit according to the storage address of the first scheduling command.
11. The method according to claim 2, characterized in that The method further comprises: Obtain at least two first requests of at least two command queues; arbitrating the at least two first requests based on a first arbitration strategy to determine a first permission for a target command queue of the at least two command queues; Based on the first permission, the scheduling commands in the target command queue are pre-processed.
12. The method according to claim 11, characterized in that The method further comprises: generating a second request for the first command queue during the sending of the MPDU of the first scheduling command in the first data storage unit; arbitrating the second request of the first command queue and the first request of the target command queue based on a second arbitration strategy, and determining a second permission for the first command queue; Based on the second permission, the MPDU of the first scheduling command continues to be generated during the process of sending the MPDU of the first scheduling command in the first data storage unit.
13. The method according to claim 12, characterized in that The second arbitration strategy includes priority-based arbitration, and in the process of sending the MPDU of the first scheduling command in the first data storage unit, the second request of the first command queue has the highest priority.
14. The method according to claim 1, characterized in that The preprocessing of the first scheduling command includes: When the first scheduling command meets the preset constraint condition, preprocessing the first scheduling command; When the first scheduling command does not meet the preset constraint condition, preprocessing the first scheduling command is stopped.
15. The method according to claim 14, characterized in that The constraint condition includes at least one of the following: Pre-generate corresponding MPDUs for at most N consecutive first scheduling commands; where N is an integer greater than or equal to 1; There is remaining space in the first data storage unit.
16. The method according to claim 1, characterized in that The sending start signal includes a first sending signal and a second sending signal; In the case where the sending start signal is obtained, sending the MPDU of the first scheduling command in the first data storage unit includes: When the first transmission signal is acquired, aggregating the MPDU of the first scheduling command in the first data storage unit to generate an aggregated MPDU; When the second transmission signal is acquired, an aggregated MPDU of the first scheduling command is transmitted.
17. The method according to claim 16, characterized in that The method further comprises: Obtaining the first transmission signal and the second transmission signal according to a preset backoff mechanism; The generation time of the first sending signal is earlier than the generation time of the second sending signal.
18. The method according to claim 1, characterized in that The method further comprises: During the process of sending the MPDU of the first scheduling command in the first data storage unit, the MPDU of the first scheduling command continues to be generated.
19. A scheduling command processing device, characterized in that: The device comprises: A generating unit, configured to pre-process the first scheduling command and generate a medium access control protocol data unit MPDU of the first scheduling command; A storage unit, configured to store the MPDU of the first scheduling command into a first data storage unit corresponding to the first scheduling command; The sending unit is configured to send the MPDU of the first scheduling command in the first data storage unit when a sending start signal is obtained.
20. A scheduling command processing device, characterized in that: The device comprises: a processor and a memory configured to store a computer program capable of being executed on the processor, Wherein, the processor is configured to execute the steps of the method according to any one of claims 1 to 18 when running the computer program.
21. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 18 are implemented.
22. A chip comprising a processor, wherein the processor is configured to execute the steps of the method according to any one of claims 1 to 18.
