CN111770541B - Key frame sending method and device, storage medium and terminal - Google Patents
Key frame sending method and device, storage medium and terminal Download PDFInfo
- Publication number
- CN111770541B CN111770541B CN202010700828.3A CN202010700828A CN111770541B CN 111770541 B CN111770541 B CN 111770541B CN 202010700828 A CN202010700828 A CN 202010700828A CN 111770541 B CN111770541 B CN 111770541B
- Authority
- CN
- China
- Prior art keywords
- key frame
- sent
- receiving state
- frame
- channel
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/0005—Control or signalling for completing the hand-off
- H04W36/0083—Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/14—Reselecting a network or an air interface
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域technical field
本发明涉及通信技术领域,尤其涉及一种关键帧发送方法及装置、存储介质、终端。The present invention relates to the field of communication technologies, and in particular, to a key frame sending method and device, a storage medium and a terminal.
背景技术Background technique
在WiFi和蓝牙(Blue Tooth,BT)共存场景、或者WiFi多身份共存场景(比如STA链接AP+WiFi直连共存),会涉及到射频(Radio Frequency,RF)资源的分时切换。为了保证分时切换对WiFi业务不影响,都会发送一些关键帧(比如,PM1 NULL frame通知对端进入睡眠或者CTS2SELF帧占据信道)。In a WiFi and Bluetooth (Blue Tooth, BT) coexistence scenario, or a WiFi multi-identity coexistence scenario (such as STA link AP + WiFi direct connection coexistence), time-sharing handover of radio frequency (RF) resources will be involved. In order to ensure that time-sharing handover does not affect WiFi services, some key frames are sent (for example, PM1 NULL frame notifies the peer to go to sleep or CTS2SELF frame occupies the channel).
但是,现有方案只能被动等待信道空闲才能发送关键帧,如果第三方设备占据空口的时间很长(如没有遵循WiFi协议规定的时间),就会导致关键帧无法及时发送,那么RF资源就无法及时切换,影响WiFi或者BT的业务;甚至可能导致关键帧无法发送,那么关键帧不发送就进行RF资源切换,会影响WiFi业务。However, the existing solution can only passively wait for the channel to be idle before sending the key frame. If the third-party device occupies the air interface for a long time (for example, the time specified by the WiFi protocol is not followed), the key frame cannot be sent in time, and the RF resources will not be sent in time. Failure to switch in time will affect WiFi or BT services; it may even cause key frames to fail to be sent. If key frames are not sent, RF resource switching will be performed, which will affect WiFi services.
发明内容SUMMARY OF THE INVENTION
本发明解决的技术问题是如何实现关键帧及时发送,保证RF资源的及时切换。The technical problem solved by the present invention is how to realize timely transmission of key frames and ensure timely switching of RF resources.
为解决上述技术问题,本发明实施例提供一种关键帧发送方法,关键帧发送方法包括:确定关键帧的待发送时刻,并检测所述关键帧的发送状态;如果在所述待发送时刻之后的预设时长内,所述关键帧未被发送出去,则检测当前设备所处的数据接收状态;根据所述数据接收状态打断当前时刻其他设备的TXOP,并竞争信道发送所述关键帧。In order to solve the above technical problem, an embodiment of the present invention provides a method for sending a key frame. The method for sending a key frame includes: determining the time to be sent of the key frame, and detecting the sending state of the key frame; if the key frame is sent after the time to be sent If the key frame is not sent out within the preset time period, the current data receiving state of the device is detected; the TXOP of other devices at the current moment is interrupted according to the data receiving state, and the key frame is sent by competing channels.
可选的,所述根据所述数据接收状态打断当前时刻其他设备的TXOP包括:在所述数据接收状态为未处于收包状态时,直接竞争信道;如果在竞争信道期间需要回复确认帧,则不回复确认帧并继续竞争信道。Optionally, the interrupting the TXOP of other devices at the current moment according to the data receiving state includes: when the data receiving state is not in the packet receiving state, directly contending for a channel; if a confirmation frame needs to be replied during the contention for the channel, Then do not reply to the confirmation frame and continue to contend for the channel.
可选的,所述根据所述数据接收状态打断当前时刻其他设备的TXOP包括:在所述数据接收状态为未处于收包状态时,直接竞争信道;如果在竞争信道期间需要回复确认帧,则直接在需要回复确认帧的时刻发送所述关键帧;或者,如果在竞争信道期间检测到CCA忙,则继续检测所述数据接收状态。Optionally, the interrupting the TXOP of other devices at the current moment according to the data receiving state includes: when the data receiving state is not in the packet receiving state, directly contending for a channel; if a confirmation frame needs to be replied during the contention for the channel, Then, the key frame is sent directly at the moment when the confirmation frame needs to be replied; or, if it is detected that the CCA is busy during the contention channel period, the data receiving state is continued to be detected.
可选的,所述根据所述数据接收状态打断当前时刻其他设备的TXOP包括:在所述数据接收状态为处于收包状态时,检测接收数据是否是发送给所述当前设备的;如果所述接收数据是发送给所述当前设备的,则不回复确认帧并竞争信道发送所述关键帧;或者,如果所述接收数据是发送给所述当前设备的,则直接在需要回复确认帧的时刻发送所述关键帧。Optionally, the interrupting the TXOP of other devices at the current moment according to the data receiving state includes: when the data receiving state is in the packet receiving state, detecting whether the received data is sent to the current device; If the received data is sent to the current device, it does not reply to the confirmation frame and competes for the channel to send the key frame; or, if the received data is sent to the current device, it directly responds to the confirmation frame when it is needed. The key frame is sent at the moment.
可选的,所述根据所述数据接收状态打断当前时刻其他设备的TXOP包括:如果所述数据接收状态为处于收包状态,检测接收数据是否是发送给所述当前设备的;如果所述接收数据不是发送给所述当前设备的或者无法确定所述接收数据是发送给所述当前设备的,则发送干扰信号;竞争信道发送所述关键帧。Optionally, the interrupting the TXOP of other devices at the current moment according to the data receiving state includes: if the data receiving state is in a packet receiving state, detecting whether the received data is sent to the current device; If the received data is not sent to the current device or it cannot be determined that the received data is sent to the current device, an interference signal is sent; the contention channel sends the key frame.
可选的,所述发送干扰信号包括:在检测到所述当前信道空闲设定时长后,发送所述干扰信号;或者,在所述接收数据是确认帧时,直接发送所述干扰信号。Optionally, the sending the interference signal includes: after detecting that the current channel is idle for a set duration, sending the interference signal; or, when the received data is an acknowledgment frame, directly sending the interference signal.
可选的,所述关键帧为需要回复确认的帧,所述方法还包括:如果未收到针对所述需要回复确认的帧的确认帧,则继续发送所述干扰信号。Optionally, the key frame is a frame that needs to be acknowledged, and the method further includes: if an acknowledgement frame for the frame that needs to be acknowledged is not received, continuing to send the interference signal.
可选的,所述检测所述关键帧的发送状态包括:在所述待发送时刻启动计时器,并在所述计时器的计时时长内检测所述关键帧的发送状态,所述计时器的计时时长为所述预设时长。Optionally, the detecting the sending state of the key frame includes: starting a timer at the to-be-sent moment, and detecting the sending state of the key frame within the time duration of the timer, and the timer The timing duration is the preset duration.
为解决上述技术问题,本发明实施例还公开了一种关键帧发送装置,关键帧发送装置包括:待发送时刻确定模块,用以确定关键帧的待发送时刻,并检测所述关键帧的发送状态;数据接收状态检测模块,用以如果在所述待发送时刻之后的预设时长内,所述关键帧未被发送出去,则检测当前设备所处的数据接收状态;关键帧发送模块,用以根据所述数据接收状态打断当前时刻其他设备的TXOP,并竞争信道发送所述关键帧。In order to solve the above technical problem, an embodiment of the present invention further discloses a key frame sending device, the key frame sending device includes: a time-to-be-sent time determining module for determining the time-to-be-sent time of the key frame, and detecting the sending of the key frame The data receiving state detection module is used to detect the data receiving state of the current device if the key frame is not sent within the preset time period after the to-be-sent time; the key frame sending module, using The TXOP of other devices at the current moment is interrupted according to the data receiving state, and the key frame is sent on a competing channel.
本发明实施例还公开了一种存储介质,其上存储有计算机程序,所述计算机程序被处理器运行时执行所述关键帧发送方法的步骤。The embodiment of the present invention also discloses a storage medium, on which a computer program is stored, and the computer program executes the steps of the key frame sending method when the computer program is run by a processor.
本发明实施例还公开了一种终端,包括存储器和处理器,所述存储器上存储有可在所述处理器上运行的计算机程序,所述处理器运行所述计算机程序时执行所述关键帧发送方法的步骤。An embodiment of the present invention further discloses a terminal, including a memory and a processor, the memory stores a computer program that can be run on the processor, and the processor executes the key frame when running the computer program The steps of the sending method.
与现有技术相比,本发明实施例的技术方案具有以下有益效果:Compared with the prior art, the technical solutions of the embodiments of the present invention have the following beneficial effects:
本发明技术方案中,确定关键帧的待发送时刻,并检测所述关键帧的发送状态;如果在所述待发送时刻之后的预设时长内,所述关键帧未被发送出去,则确定射频资源被占用;检测当前设备所处的数据接收状态;根据所述数据接收状态打断当前时刻的发送机会(Transmission opportunity,TXOP),并竞争信道发送所述关键帧。本发明技术方案在检查到射频资源被占用,也即空中接口被占用时,能够基于当前的数据接收状态打断当前时刻其他设备的TXOP,以能够竞争信道来发送关键帧,保证关键帧在超时未发送的情况下及时发送出去,实现RF资源的及时切换,保证当前设备的WIFI业务或BT业务的正常执行。In the technical scheme of the present invention, the time to be sent of the key frame is determined, and the transmission state of the key frame is detected; if the key frame is not sent within a preset time period after the time to be sent, the radio frequency is determined. The resource is occupied; the current data receiving state of the device is detected; the transmission opportunity (TXOP) at the current moment is interrupted according to the data receiving state, and the key frame is sent by competing for a channel. The technical scheme of the present invention can interrupt the TXOP of other devices at the current moment based on the current data receiving state when it is detected that the radio frequency resource is occupied, that is, the air interface is occupied, so as to be able to compete for the channel to send the key frame, and ensure that the key frame is timed out. If it is not sent, it will be sent in time to realize the timely switching of RF resources and ensure the normal execution of the WIFI service or BT service of the current device.
进一步地,在所述数据接收状态为未处于收包状态时,直接竞争信道;如果在竞争信道期间需要回复确认帧,则不回复确认帧并继续竞争信道,或者直接在需要回复确认帧的时刻发送所述关键帧。本发明技术方案通过不回复确认帧或者在需要回复确认帧的时刻发送所述关键帧,可以破坏对端设备的TXOP,以能够竞争信道发送关键帧或者直接发送关键帧。Further, when the data receiving state is not in the state of receiving packets, the channel is directly contended; if the confirmation frame needs to be replied during the contention of the channel, the confirmation frame is not returned and the contention for the channel is continued, or directly when the confirmation frame needs to be returned. The key frame is sent. The technical solution of the present invention can destroy the TXOP of the opposite end device by not replying to the confirmation frame or sending the key frame when the confirmation frame needs to be returned, so that the key frame can be sent through the competition channel or the key frame can be sent directly.
进一步地,如果所述数据接收状态为处于收包状态,检测接收数据是否是发送给所述当前设备的;如果所述接收数据不是发送给所述当前设备的或者无法确定所述接收数据是发送给所述当前设备的,则发送干扰信号;竞争信道发送所述关键帧。本发明技术方案通过发送一个干扰帧或者干扰信号打断其他设备的发送TXOP,通过和其他设备一起竞争空中接口来发送关键帧。Further, if the data receiving state is in the receiving state, it is detected whether the received data is sent to the current device; if the received data is not sent to the current device or it cannot be determined that the received data is sent For the current device, the interference signal is sent; the contention channel sends the key frame. The technical scheme of the present invention interrupts the transmission TXOP of other devices by sending an interference frame or interference signal, and transmits the key frame by competing with other devices for the air interface.
附图说明Description of drawings
图1是本发明实施例一种关键帧发送方法的流程图;1 is a flowchart of a method for sending a key frame according to an embodiment of the present invention;
图2是图1所示步骤S103的一种具体实施方式的流程图;FIG. 2 is a flowchart of a specific implementation of step S103 shown in FIG. 1;
图3和图4是本发明实施例一种具体应用场景的示意图;3 and 4 are schematic diagrams of a specific application scenario of an embodiment of the present invention;
图5是图1所示步骤S103的另一种具体实施方式的流程图;FIG. 5 is a flowchart of another specific implementation of step S103 shown in FIG. 1;
图6是本发明实施例另一种具体应用场景的示意图;6 is a schematic diagram of another specific application scenario of an embodiment of the present invention;
图7是图1所示步骤S103的又一种具体实施方式的流程图;FIG. 7 is a flowchart of another specific implementation manner of step S103 shown in FIG. 1;
图8-图10是本发明实施例又一种具体应用场景的示意图;8-10 are schematic diagrams of another specific application scenario of an embodiment of the present invention;
图11是本发明实施例一种关键帧发送装置的结构示意图。FIG. 11 is a schematic structural diagram of an apparatus for sending a key frame according to an embodiment of the present invention.
具体实施方式Detailed ways
如背景技术中所述,现有方案只能被动等待信道空闲才能发送关键帧,如果第三方设备占据空口的时间很长(如没有遵循WiFi协议规定的时间),就会导致关键帧无法及时发送,那么RF资源就无法及时切换,影响WiFi或者BT的业务;甚至可能导致关键帧无法发送,那么关键帧不发送就进行RF资源切换,会影响WiFi业务。As described in the Background Art, the existing solution can only passively wait for the channel to be idle before sending the key frame. If the third-party device occupies the air interface for a long time (for example, the time specified by the WiFi protocol is not followed), the key frame cannot be sent in time. , then RF resources cannot be switched in time, affecting WiFi or BT services; it may even cause key frames to fail to be sent, and RF resource switching will be performed without key frames being sent, which will affect WiFi services.
本发明技术方案在检查到射频资源被占用,也即空中接口被占用时,能够基于当前的数据接收状态打断当前时刻其他设备的TXOP,以能够竞争信道来发送关键帧,保证关键帧在超时未发送的情况下及时发送出去,实现RF资源的及时切换,保证当前设备的WIFI业务或BT业务的正常执行。The technical scheme of the present invention can interrupt the TXOP of other devices at the current moment based on the current data receiving state when it is detected that the radio frequency resource is occupied, that is, the air interface is occupied, so as to be able to compete for the channel to send the key frame, and ensure that the key frame is timed out. If it is not sent, it will be sent in time to realize the timely switching of RF resources and ensure the normal execution of the WIFI service or BT service of the current device.
为使本发明的上述目的、特征和优点能够更为明显易懂,下面结合附图对本发明的具体实施例做详细的说明。In order to make the above objects, features and advantages of the present invention more clearly understood, the specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
图1是本发明实施例一种关键帧发送方法的流程图。FIG. 1 is a flowchart of a method for sending a key frame according to an embodiment of the present invention.
所述关键帧发送方法可以用于终端设备侧,所述终端设备能够支持WIFI业务,或者同时支持WIFI业务和BT业务。The key frame sending method can be used on the terminal device side, and the terminal device can support WIFI service, or support WIFI service and BT service at the same time.
所述关键帧发送方法具体可以包括以下步骤:The key frame sending method may specifically include the following steps:
步骤S101:确定关键帧的待发送时刻,并检测所述关键帧的发送状态;Step S101: determine the time to be sent of the key frame, and detect the sending state of the key frame;
步骤S102:如果在所述待发送时刻之后的预设时长内,所述关键帧未被发送出去,则检测当前设备所处的数据接收状态;Step S102: if the key frame is not sent out within a preset time period after the to-be-sent time, detect the data receiving state of the current device;
步骤S103:根据所述数据接收状态打断当前时刻其他设备的TXOP,并竞争信道发送所述关键帧。Step S103: Interrupt the TXOP of other devices at the current moment according to the data receiving state, and compete for a channel to send the key frame.
需要指出的是,本实施例中各个步骤的序号并不代表对各个步骤的执行顺序的限定。It should be noted that the sequence numbers of the steps in this embodiment do not represent limitations on the execution order of the steps.
对于涉及到RF资源分时切换的场景,例如WiFi和BT需要同时工作、或者WiFi多身份共存,RF资源的切换时刻可以是预先设定好的,相应地,关键帧的发送时刻也是预先设定好的。其中,WiFi多身份可以是指作为STA连接路由器可以和其他设备进行WiFi直连、可以作为SoftAp(热点)共享网络,当这些不同模式共存时可能会处于多通道协调(Multichannel concorunt,MCC)场景,因此需要动态切换RF资源。For scenarios involving time-sharing switching of RF resources, such as WiFi and BT need to work at the same time, or the coexistence of multiple WiFi identities, the switching time of RF resources can be preset, and accordingly, the transmission time of key frames is also preset. OK Among them, the WiFi multi-identity may refer to the connection of the router as a STA to connect directly with other devices via WiFi, and to share the network as a SoftAp (hotspot). Therefore, dynamic switching of RF resources is required.
RF资源切换前需要通知与之关联的设备停止和其进行通信,否则对方设备会不停发包导致丢包。关键帧的作用正是通知与之关联的设备停止和其进行通信。如关键帧为PM1NULL frame(又称PowerSave frame)能够通知关联的设备(如路由器)进入睡眠状态,这样路由器就不会再发送数据直到WiFi设备发送了激活帧(Active frame)。Before switching the RF resource, you need to notify the device associated with it to stop communicating with it, otherwise the other device will keep sending packets and cause packet loss. The role of the keyframe is to notify the device associated with it to stop communicating with it. If the key frame is PM1NULL frame (also known as PowerSave frame), it can notify the associated device (such as the router) to enter the sleep state, so that the router will not send data until the WiFi device sends an Active frame.
在步骤S101的具体实施中,可以根据预先设定好的关键帧的发送时间序列确定关键帧的待发送时刻,并检测所述关键帧的发送状态。关键帧的发送时间序列可以包含需要发送关键帧的各个时刻。如果在关键帧的待发送时刻检测到关键帧发送出去,则不再继续执行步骤S102-S103。否则,需要继续监测关键帧的发送状态。In the specific implementation of step S101, the time to be sent of the key frame can be determined according to the preset sending time sequence of the key frame, and the sending state of the key frame is detected. The transmission time sequence of the key frame may include various moments when the key frame needs to be transmitted. If it is detected that the key frame is sent out at the moment when the key frame is to be sent, steps S102-S103 are not continued. Otherwise, it is necessary to continue to monitor the sending status of key frames.
在步骤S102的具体实施中,在待发送时刻之后的预设时长内检测到关键帧始终未被发送出去,则可以确定射频资源被占用,需要采取干预措施来使得关键帧能够被发送出去。In the specific implementation of step S102, if it is detected that the key frame has not been sent out within a preset time period after the time to be sent, it can be determined that radio frequency resources are occupied, and intervention measures need to be taken to enable the key frame to be sent out.
在一个具体的实施例中,可以在所述待发送时刻启动计时器,并在所述计时器的计时时长内检测所述关键帧的发送状态,所述计时器的计时时长为所述预设时长。In a specific embodiment, a timer may be started at the to-be-sent moment, and the sending state of the key frame may be detected within the timing duration of the timer, where the timing duration of the timer is the preset duration duration.
本实施例中通过设置计时器来设置关键帧的发送状态需要检测的时间长度。具体可以在关键帧的待发送时刻启动计时器,计时器结束后关键帧未被发送出去,则可以确定射频资源被占用,关键帧无法竞争信道成功而发送不出去。这种情况下可以继续执行步骤S102-步骤S103。In this embodiment, a timer is set to set the time length that needs to be detected for the sending state of the key frame. Specifically, a timer can be started at the moment when the key frame is to be sent. After the timer expires, the key frame has not been sent, and it can be determined that the radio frequency resource is occupied, and the key frame cannot be successfully sent out because it cannot compete for the channel. In this case, steps S102 to S103 can be continued.
在步骤S102和步骤S103的具体实施中,在计时器超时的时刻,检测当前设备所处的数据接收状态,并根据所述数据接收状态打断当前时刻其他设备的TXOP,并竞争信道发送所述关键帧。本实施例只有在打断当前时刻其他设备的TXOP的情况下,才能保证关键帧能够竞争信道成功并发送出去。In the specific implementation of step S102 and step S103, when the timer expires, the data receiving state of the current device is detected, and the TXOP of other devices at the current moment is interrupted according to the data receiving state, and the competition channel sends the data. Keyframe. In this embodiment, only in the case of interrupting the TXOP of other devices at the current moment, it can be ensured that the key frame can successfully compete for the channel and be sent out.
具体地,数据接收状态可以表示当前设备(也即本机)是否正在收包,也即是否正在接收数据包。Specifically, the data receiving state may indicate whether the current device (that is, the local machine) is receiving packets, that is, whether it is receiving data packets.
进一步地,在竞争信道发送所述关键帧时,可以是采用点协调帧间间隔(PointCoordination Function InterFrame Space,PIFS)来竞争信道。PCFIFS为25微秒。也就是说,本发明实施例是采用一个比正常信道竞争时间间隔(通常是大于等于34微秒)更短的时间间隔来竞争信道,以保证信道竞争的成功率更高。Further, when the key frame is sent through the contention channel, a point coordination interframe space (Point Coordination Function InterFrame Space, PIFS) may be used to compete for the channel. PCFIFS is 25 microseconds. That is to say, in the embodiment of the present invention, a time interval shorter than a normal channel contention time interval (usually greater than or equal to 34 microseconds) is used to compete for a channel, so as to ensure a higher success rate of channel contention.
在一个可选实施例中,还可以采用短帧间间隔(Short InterFrame Space,SIFS)来竞争信道。In an optional embodiment, a short interframe space (SIFS) may also be used to contend for a channel.
本发明实施例在检查到射频资源被占用,也即空中接口被占用时,能够基于当前的数据接收状态打断当前时刻其他设备的TXOP,以能够竞争信道来发送关键帧,保证关键帧在超时未发送的情况下及时发送出去,实现RF资源的及时切换,保证当前设备的WIFI业务或BT业务的正常执行。In the embodiment of the present invention, when it is detected that the radio frequency resource is occupied, that is, the air interface is occupied, the TXOP of other devices at the current moment can be interrupted based on the current data receiving state, so as to be able to compete for the channel to send the key frame, so as to ensure that the key frame is timed out. If it is not sent, it will be sent in time to realize the timely switching of RF resources and ensure the normal execution of the WIFI service or BT service of the current device.
在本发明一个非限制性的实施例中,请参照图2,图1所示步骤S103可以包括以下步骤:In a non-limiting embodiment of the present invention, please refer to FIG. 2 , step S103 shown in FIG. 1 may include the following steps:
步骤S201:在所述数据接收状态为未处于收包状态时,直接竞争信道;Step S201: when the data receiving state is not in the packet receiving state, directly contend for a channel;
步骤S202:如果在竞争信道期间需要回复确认帧,则不回复确认帧并继续竞争信道。Step S202: If the confirmation frame needs to be returned during the contention of the channel, the confirmation frame is not returned and the channel contention is continued.
本实施例中,数据接收状态为未处于收包状态时,表示当前设备可能落在TXOP内的短帧间间隔(Short InterFrame Space,SIFS)内,或者可能是被设置网络配置向量(NetAllocation Vector,NAV)导致无法发包,那么发送帧就无法发送出去。在这种情况下,可以忽略设置的NAV值,也即不做虚拟信道检测,直接竞争信道发送关键帧。In this embodiment, when the data receiving state is not in the receiving state, it means that the current device may fall within the Short InterFrame Space (SIFS) within the TXOP, or may be set to a network configuration vector (NetAllocation Vector, NAV) makes it impossible to send packets, so the send frame cannot be sent out. In this case, the set NAV value can be ignored, that is, the virtual channel detection is not performed, and the key frame is directly competed for the channel.
具体请一并参照图3,当前设备为WiFi设备,T1为关键帧的待发送时刻,T2为超时时刻,也即待发送时刻之后预设时长的时刻。T2落入TXOP内的SIFS内,WiFi设备可以直接采用PIFS竞争信道。在采用PIFS竞争信道期间,需要回复确认帧ACK/BA,则不回复确认帧并继续竞争信道,竞争成功后发送关键帧。如图3所示,WiFi设备链接的设备重新竞争信道的时间间隔较长(也即长于PIFS),使得WiFi设备在为关键帧竞争信道时能够竞争成功并将关键帧发送出去。For details, please refer to FIG. 3 together. The current device is a WiFi device, T1 is the time when the key frame is to be sent, and T2 is the timeout time, that is, the preset time after the time to be sent. T2 falls into the SIFS in the TXOP, and the WiFi device can directly use the PIFS to compete for the channel. During the use of the PIFS contention channel, the confirmation frame ACK/BA needs to be returned, then the confirmation frame is not returned and the channel competition is continued, and the key frame is sent after the competition is successful. As shown in FIG. 3 , the time interval for the devices linked by WiFi devices to re-compete for the channel is longer (ie, longer than PIFS), so that the WiFi devices can successfully compete for the channel for the key frame and send the key frame.
在本发明一个非限制性的实施例中,图2所示步骤S202也可以被替换为步骤S203:如果在竞争信道期间需要回复确认帧,则直接在需要回复确认帧的时刻发送所述关键帧。In a non-limiting embodiment of the present invention, step S202 shown in FIG. 2 can also be replaced with step S203: if a confirmation frame needs to be replied during the contention of the channel, the key frame is directly sent at the moment when the confirmation frame needs to be replied .
与前述实施例不同的是,本实施例在回复确认帧的时刻发送所述关键帧。也就是说,需要回复确认帧的时刻当前设备可以发送数据包,当前设备将需要发送的数据由确认帧替换为关键帧,一方面可以破坏对端设备(也即发包设备)的TXOP,同时可以及时将关键帧发送出去。Different from the foregoing embodiments, this embodiment sends the key frame at the moment of replying to the acknowledgment frame. That is to say, when it needs to reply to the confirmation frame, the current device can send the data packet, and the current device replaces the data to be sent by the confirmation frame with the key frame. Send key frames in time.
具体请一并参照图4,与图3不同的是,WiFi设备在需要回复确认帧ACK/BA的时刻发送关键帧。For details, please refer to FIG. 4 together. The difference from FIG. 3 is that the WiFi device sends the key frame at the moment when it needs to reply to the acknowledgment frame ACK/BA.
在本发明一个非限制性的实施例中,请参照图5,图1所示步骤S103可以包括以下步骤:In a non-limiting embodiment of the present invention, please refer to FIG. 5 , step S103 shown in FIG. 1 may include the following steps:
步骤S501:在所述数据接收状态为处于收包状态时,检测接收数据是否是发送给所述当前设备的;Step S501: when the data receiving state is in the packet receiving state, detect whether the received data is sent to the current device;
步骤S502:如果所述接收数据是发送给所述当前设备的,则不回复确认帧并竞争信道发送所述关键帧。Step S502: If the received data is sent to the current device, no acknowledgement frame is returned and the key frame is sent through a competition channel.
本实施例中,数据接收状态为处于收包状态表示RF资源正在接收数据包,接收数据可以是发送给当前设备的,也可以不是发送给当前设备的。In this embodiment, the data receiving state being in the receiving state indicates that the RF resource is receiving data packets, and the received data may or may not be sent to the current device.
在接收数据是发送给所述当前设备的情况下,表示接收数据是当前设备链接的对端设备发送给当前设备的数据,需要当前设备回复确认帧,则可以不回复确认帧,以破坏对端设备的TXOP,并竞争信道发送所述关键帧。In the case that the received data is sent to the current device, it means that the received data is the data sent by the peer device linked by the current device to the current device. If the current device needs to reply with an acknowledgment frame, the acknowledgment frame may not be returned to destroy the peer end. TXOP of the device, and contention channel to send the key frame.
具体请参照图6,T2为超时时刻,也即待发送时刻之后预设时长的时刻。在T2时刻检测到接收帧是给本机(也即WIFI设备)的数据。WiFi设备可以直接采用PIFS竞争信道。在采用PIFS竞争信道期间,需要回复确认帧ACK/BA,则不回复确认帧并继续竞争信道,竞争成功后发送关键帧。For details, please refer to FIG. 6 , T2 is the timeout time, that is, the time of the preset duration after the time to be sent. It is detected at time T2 that the received frame is data for the local machine (that is, the WIFI device). WiFi devices can directly use the PIFS contention channel. During the use of the PIFS contention channel, the confirmation frame ACK/BA needs to be returned, then the confirmation frame is not returned and the channel competition is continued, and the key frame is sent after the competition is successful.
在一个可选实施例中,图5所示步骤S502可以替换为步骤S503:如果所述接收数据是发送给所述当前设备的,则直接在需要回复确认帧的时刻发送所述关键帧。In an optional embodiment, step S502 shown in FIG. 5 may be replaced by step S503: if the received data is sent to the current device, the key frame is directly sent at the moment when a confirmation frame needs to be replied.
与前述实施例不同的是,本实施例在回复确认帧的时刻发送所述关键帧。也就是说,需要回复确认帧的时刻当前设备可以发送数据包,当前设备将需要发送的数据由确认帧替换为关键帧,一方面可以破坏对端设备(也即发包设备)的TXOP,同时可以及时将关键帧发送出去。Different from the foregoing embodiments, this embodiment sends the key frame at the moment of replying to the acknowledgment frame. That is to say, when it needs to reply to the confirmation frame, the current device can send the data packet, and the current device replaces the data to be sent by the confirmation frame with the key frame. Send key frames in time.
在本发明一个非限制性的实施例中,请参照图7,图1所示步骤S103可以包括以下步骤:In a non-limiting embodiment of the present invention, please refer to FIG. 7 , step S103 shown in FIG. 1 may include the following steps:
步骤S701:如果所述数据接收状态为处于收包状态,检测接收数据是否是发送给所述当前设备的;Step S701: if the data receiving state is in a packet receiving state, detect whether the received data is sent to the current device;
步骤S702:如果所述接收数据不是发送给所述当前设备的或者无法确定所述接收数据是发送给所述当前设备的,则发送干扰信号;Step S702: if the received data is not sent to the current device or it cannot be determined that the received data is sent to the current device, send an interference signal;
步骤S703:竞争信道发送所述关键帧。Step S703: The key frame is sent on the contention channel.
本实施例中,通过发送干扰信号使得发送数据的设备无法接收到对应的确认帧,从而达到破坏其TXOP的目的。In this embodiment, by sending an interference signal, the device sending data cannot receive the corresponding acknowledgment frame, so as to achieve the purpose of destroying its TXOP.
具体而言,所述干扰信号可以是任意可实施形式的频率信号,例如可以是数据帧、干扰能量等。Specifically, the interference signal may be a frequency signal in any implementable form, such as a data frame, interference energy, and the like.
在一个具体实施例中,步骤S702可以包括以下具体实施步骤:在检测到所述当前信道空闲设定时长后,发送所述干扰信号;或者,在所述接收数据是确认帧时,直接发送所述干扰信号。In a specific embodiment, step S702 may include the following specific implementation steps: after detecting that the current channel is idle for a set duration, sending the interference signal; or, when the received data is an acknowledgment frame, directly sending the the interfering signal.
具体而言,确认帧可以是Response帧,例如清除发送帧(Clear To Send,CTS)、ACK、块确认帧(Block Ack,BA)等。Specifically, the acknowledgment frame may be a Response frame, such as a clear to send frame (Clear To Send, CTS), an ACK, a block acknowledgment frame (Block Ack, BA), and the like.
具体实施中,可以在检测到信道空闲SIFS(也即16微秒)后发送干扰信号。在接收数据是确认帧的情况下,可以立即发送干扰信号,以便及时打断TXOP。In a specific implementation, the interference signal may be sent after detecting that the channel is idle SIFS (ie, 16 microseconds). In the case where the received data is an acknowledgment frame, the jamming signal can be sent immediately in order to interrupt the TXOP in time.
具体可参照图8,第三方设备与其对端设备占用RF资源发送数据。在超时时刻T2,WIFI设备检测到接收数据不是发送给本机的,且接收数据不是确认帧(Resp帧)时,WIFI设备在接收数据帧结束SIFS后发送干扰信号(Noisy),干扰第三方设备接收其对端设备发送的确认帧,以打断第三方设备的TXOP。Specifically, referring to FIG. 8 , the third-party device and its peer device occupy RF resources to send data. At the timeout time T2, when the WIFI device detects that the received data is not sent to the local machine, and the received data is not an acknowledgement frame (Resp frame), the WIFI device sends an interference signal (Noisy) after the SIFS of the received data frame, which interferes with third-party devices. Receive the acknowledgment frame sent by its peer device to interrupt the TXOP of the third-party device.
具体可参照图9,在超时时刻T2,WIFI设备检测到接收数据不是发送给本机的,且接收数据是确认帧(Resp帧)时,WIFI立即发送干扰信号(Noisy),干扰第三方设备接收其对端设备发送的确认帧,以打断第三方设备的TXOP。For details, please refer to FIG. 9. At the timeout time T2, when the WIFI device detects that the received data is not sent to the local machine, and the received data is an acknowledgement frame (Resp frame), the WIFI immediately sends an interference signal (Noisy), which interferes with the reception of the third-party device. The acknowledgment frame sent by its peer device to interrupt the TXOP of the third-party device.
在一个优选实施例中,关键帧是需要回复确认的帧时,如PM1 NULLframe,当前设备的对端设备在接收到需要回复确认的帧后,需要发送确认帧。如果当前设备未收到针对所述需要回复确认的帧的确认帧,则继续发送所述干扰信号。In a preferred embodiment, when the key frame is a frame that needs to be acknowledged, such as PM1 NULLframe, the peer device of the current device needs to send an acknowledgement frame after receiving the frame that needs to be acknowledged. If the current device does not receive an acknowledgment frame for the frame that needs to be acknowledged, it continues to send the interference signal.
在一个非限制性的实施例中,在所述数据接收状态为未处于收包状态时,直接竞争信道;如果在竞争信道期间检测到CCA忙,则继续检测所述数据接收状态。In a non-limiting embodiment, when the data receiving state is not in the packet receiving state, the channel is directly contended; if it is detected that the CCA is busy during the contention of the channel, the data receiving state is continued to be detected.
在一个具体例子中,请参照图10,T2落入TXOP内的SIFS内,WiFi设备可以直接采用PIFS竞争信道。在采用PIFS竞争信道期间,如果出现空频道检测(Clear ChannelAssessment,CCA)忙,表示当前数据接收状态为正在收包。这种情况下需要退出PIFS竞争信道。检测接收数据是否是发送给WiFi设备的。根据接收数据是否是发送给当前设备,来确定后续执行的步骤。其中,如果接收数据是发送给当前设备的,则执行图5所示方法的步骤;如果接收数据不是发送给当前设备的,或者无法确定接收数据是否是发送给当前设备,则执行图7所示方法的步骤。In a specific example, referring to FIG. 10 , T2 falls within the SIFS within the TXOP, and the WiFi device can directly use the PIFS contention channel. During the use of the PIFS contention channel, if the Clear Channel Assessment (CCA) is busy, it indicates that the current data receiving state is receiving packets. In this case, it is necessary to withdraw from the PIFS contention channel. Check if the received data is sent to a WiFi device. The subsequent steps are determined according to whether the received data is sent to the current device. Wherein, if the received data is sent to the current device, execute the steps of the method shown in FIG. 5; if the received data is not sent to the current device, or it cannot be determined whether the received data is sent to the current device, execute the steps shown in FIG. 7 steps of the method.
请参照图11,本发明实施例还公开了一种关键帧发送装置110。关键帧发送装置110可以包括待发送时刻确定模块1101、数据接收状态检测模块1102和关键帧发送模块1103。Referring to FIG. 11 , an embodiment of the present invention further discloses a key
其中,待发送时刻确定模块1101用以确定关键帧的待发送时刻,并检测所述关键帧的发送状态;数据接收状态检测模块1102用以如果在所述待发送时刻之后的预设时长内,所述关键帧未被发送出去,则检测当前设备所处的数据接收状态;关键帧发送模块1103用以根据所述数据接收状态打断当前时刻其他设备的TXOP,并竞争信道发送所述关键帧。Wherein, the to-be-sent
本发明实施例在检查到射频资源被占用,也即空中接口被占用时,能够基于当前的数据接收状态打断当前时刻其他设备的TXOP,以能够竞争信道来发送关键帧,保证关键帧在超时未发送的情况下及时发送出去,实现RF资源的及时切换,保证当前设备的WIFI业务或BT业务的正常执行。In the embodiment of the present invention, when it is detected that the radio frequency resource is occupied, that is, the air interface is occupied, the TXOP of other devices at the current moment can be interrupted based on the current data receiving state, so as to be able to compete for the channel to send the key frame, so as to ensure that the key frame is timed out. If it is not sent, it will be sent in time to realize the timely switching of RF resources and ensure the normal execution of the WIFI service or BT service of the current device.
关于所述关键帧发送装置110的工作原理、工作方式的更多内容,可以参照图1至图8中的相关描述,这里不再赘述。For more information on the working principle and working mode of the key
本发明实施例还公开了一种存储介质,所述存储介质为计算机可读存储介质,其上存储有计算机程序,所述计算机程序运行时可以执行前述关键帧发送方法的步骤。所述存储介质可以包括ROM、RAM、磁盘或光盘等。所述存储介质还可以包括非挥发性存储器(non-volatile)或者非瞬态(non-transitory)存储器等。The embodiment of the present invention further discloses a storage medium, which is a computer-readable storage medium, and stores a computer program thereon, and the computer program can execute the steps of the foregoing key frame sending method when running. The storage medium may include ROM, RAM, magnetic or optical disks, and the like. The storage medium may also include a non-volatile memory (non-volatile) or a non-transitory (non-transitory) memory and the like.
本发明实施例还公开了一种终端设备,所述终端设备可以包括存储器和处理器,所述存储器上存储有可在所述处理器上运行的计算机程序。所述处理器运行所述计算机程序时可以执行前述关键帧发送方法的步骤。所述终端设备包括但不限于手机、计算机、平板电脑等终端设备。The embodiment of the present invention further discloses a terminal device, the terminal device may include a memory and a processor, and the memory stores a computer program that can run on the processor. When the processor runs the computer program, the steps of the foregoing method for sending key frames may be executed. The terminal equipment includes but is not limited to mobile phone, computer, tablet computer and other terminal equipment.
虽然本发明披露如上,但本发明并非限定于此。任何本领域技术人员,在不脱离本发明的精神和范围内,均可作各种更动与修改,因此本发明的保护范围应当以权利要求所限定的范围为准。Although the present invention is disclosed above, the present invention is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention should be based on the scope defined by the claims.
Claims (11)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010700828.3A CN111770541B (en) | 2020-07-20 | 2020-07-20 | Key frame sending method and device, storage medium and terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010700828.3A CN111770541B (en) | 2020-07-20 | 2020-07-20 | Key frame sending method and device, storage medium and terminal |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111770541A CN111770541A (en) | 2020-10-13 |
| CN111770541B true CN111770541B (en) | 2022-10-25 |
Family
ID=72728613
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010700828.3A Active CN111770541B (en) | 2020-07-20 | 2020-07-20 | Key frame sending method and device, storage medium and terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111770541B (en) |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9826524B2 (en) * | 2011-12-15 | 2017-11-21 | Avago Technologies General Ip (Singapore) Pte. Ltd. | Dynamic space, frequency and time domain coexistence |
| US10028205B2 (en) * | 2015-12-16 | 2018-07-17 | Qualcomm Incorporated | Techniques for wireless local area network (WLAN) scanning in coexistence scenarios |
| CN111294852B (en) * | 2019-03-22 | 2021-08-06 | 展讯通信(上海)有限公司 | Downlink multi-user data transmission method and device, storage medium and terminal |
| CN110572244B (en) * | 2019-09-06 | 2020-11-06 | 展讯通信(上海)有限公司 | Data retransmission, data reception response method and device, storage medium |
-
2020
- 2020-07-20 CN CN202010700828.3A patent/CN111770541B/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| CN111770541A (en) | 2020-10-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10178703B2 (en) | Stopping a random access procedure | |
| JP6381660B2 (en) | Method for processing data after the unlicensed frequency range has been released, and user equipment | |
| CN112492682B (en) | Data sending method and device, data receiving method and device | |
| US9876610B2 (en) | Method, terminal, and base station for retransmitting message | |
| US20170055287A1 (en) | Channel access method and system, stations and computer readable storage medium | |
| CN110602794B (en) | Resource conflict processing method and device, storage medium, terminal, and base station | |
| CN101646163A (en) | Method and apparatus for handling uplink transmission resources | |
| KR101665575B1 (en) | Low latency 802.11 media access | |
| CN115699951A (en) | Method and terminal device for wireless communication | |
| CN106162919B (en) | A method and terminal for realizing discontinuous reception | |
| JP2021524698A (en) | Random access method and terminal | |
| US20210368544A1 (en) | Methods, Terminal Device and Base Station for Channel Sensing in Unlicensed Spectrum | |
| WO2015170523A1 (en) | User device and method | |
| KR100708204B1 (en) | Method and apparatus for ensuring fairness of medium access between stations in WLAN | |
| JP2015216412A (en) | User device, base station and method | |
| CN111093290B (en) | Method for beam failure recovery performed by user equipment and user equipment | |
| CN111836289A (en) | Processing method, terminal and network side device for beam failure recovery | |
| CN111556583A (en) | Wireless access point synchronous cooperation method, device and system | |
| CN105474570A (en) | Data transmission method and device | |
| CN105230099A (en) | A resource multiplexing device, user equipment and method | |
| US12389260B2 (en) | Delay performance evaluation method and apparatus, and storage medium | |
| KR102074283B1 (en) | Uplink data transmission confirmation apparatus, device and method | |
| CN111770541B (en) | Key frame sending method and device, storage medium and terminal | |
| CN108200639A (en) | Sending method, device and the terminal of business datum | |
| CN110650486B (en) | Random access method, user equipment and device with storage function |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |