[go: up one dir, main page]

CN111328064A - Scanning processing method for equipment, mobile equipment, device and storage medium - Google Patents

Scanning processing method for equipment, mobile equipment, device and storage medium Download PDF

Info

Publication number
CN111328064A
CN111328064A CN202010100030.5A CN202010100030A CN111328064A CN 111328064 A CN111328064 A CN 111328064A CN 202010100030 A CN202010100030 A CN 202010100030A CN 111328064 A CN111328064 A CN 111328064A
Authority
CN
China
Prior art keywords
mode
soft
time
service
mobile device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010100030.5A
Other languages
Chinese (zh)
Other versions
CN111328064B (en
Inventor
徐桂权
郝速志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Spreadtrum Communications Shanghai Co Ltd
Original Assignee
Spreadtrum Communications Shanghai Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN202010100030.5A priority Critical patent/CN111328064B/en
Publication of CN111328064A publication Critical patent/CN111328064A/en
Application granted granted Critical
Publication of CN111328064B publication Critical patent/CN111328064B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

本申请实施例公开了一种对设备的扫描处理方法,应用于双网络模式共存的移动设备中,所述移动设备共存的双网络模式包括:无线接入点Soft AP模式和点对点P2P模式;所述方法包括:若在所述Soft AP模式下有即时业务,则检测在所述P2P模式下是否有即时业务;若检测结果为在所述P2P模式下无即时业务,则在分配给所述P2P模式的时间片内,将所述P2P模式的查找模式Find Phase置于监听状态Listen State。采用本发明,能够改善移动设备在共存的双网络模式下的被扫描效果。

Figure 202010100030

The embodiment of the present application discloses a scanning processing method for a device, which is applied to a mobile device coexisting in dual network modes. The dual network modes coexisting in the mobile device include: a wireless access point Soft AP mode and a point-to-point P2P mode; The method includes: if there is an instant service in the Soft AP mode, detecting whether there is an instant service in the P2P mode; if the detection result is that there is no instant service in the P2P mode, then assigning the P2P Within the time slice of the mode, the search mode Find Phase of the P2P mode is placed in the listening state Listen State. By adopting the present invention, the scanning effect of the mobile device in the coexisting dual network mode can be improved.

Figure 202010100030

Description

对设备的扫描处理方法、移动设备、装置及存储介质Scanning processing method for equipment, mobile equipment, device and storage medium

技术领域technical field

本发明涉及通信领域,尤其涉及一种对设备的扫描处理方法、移动设备、装置及存储介质。The present invention relates to the field of communications, and in particular, to a method for scanning equipment, a mobile equipment, an apparatus and a storage medium.

背景技术Background technique

Wifi网络通信是一种可以将个人电脑、手持设备(如PDA、手机)等终端以无线方式互相连接的通信技术。Wifi网络通信中的网络模式包括STA(Station,终端)模式、Soft AP(Soft Access Point,无线接入点)模式和P2P(Peer to Peer,点对点)模式等。其中,在Soft AP模式下,移动设备通过无线网卡或通信芯片驱动程序,来提供与AP(Access Point,接入点)一样的信号转接、路由等功能;在P2P模式下,移动设备在没有AP的情况下可与其它在P2P模式下的移动设备直连并通信。Wifi network communication is a communication technology that can wirelessly connect terminals such as personal computers and handheld devices (such as PDAs, mobile phones) to each other. Network modes in Wifi network communication include a STA (Station, terminal) mode, a Soft AP (Soft Access Point, wireless access point) mode, a P2P (Peer to Peer, peer-to-peer) mode, and the like. Among them, in the Soft AP mode, the mobile device provides the same signal switching and routing functions as the AP (Access Point) through the wireless network card or the communication chip driver; in the P2P mode, the mobile device does not have the same functions. In the case of AP, it can directly connect and communicate with other mobile devices in P2P mode.

随着移动通信技术的发展以及人们对移动通信技术的需求,双网络模式共存的移动设备成为Wifi(Wireless-Fidelity,无线保真)网络通信领域中的一个关键的技术研究方向。双网络模式共存的移动设备是指既可以于第一种网络模式下工作并连接相应的对端设备,同时也可以于第二种网络模式下工作并连接相应的对端设备的移动设备。移动设备共存的双网络模式包括:STA模式和Soft AP模式共存的双网络模式,STA模式和P2P模式共存的双网络模式,Soft AP模式和P2P模式共存的双网络模式等。而两种网络模式共存会影响移动设备的被扫描效果,从而影响移动设备的通信连接性能。如何改善Soft AP模式和P2P模式共存的移动设备的被扫描效果成为研究的热点。With the development of mobile communication technology and people's demand for mobile communication technology, a mobile device with coexistence of dual network modes has become a key technical research direction in the field of Wifi (Wireless-Fidelity, wireless fidelity) network communication. A mobile device coexisting in dual network modes refers to a mobile device that can work in the first network mode and connect to the corresponding peer device, and can also work in the second network mode and connect to the corresponding peer device. The dual-network modes for coexistence of mobile devices include: dual-network mode in which STA mode and Soft AP mode coexist, dual-network mode in which STA mode and P2P mode coexist, and dual-network mode in which Soft AP mode and P2P mode coexist. The coexistence of the two network modes will affect the scanning effect of the mobile device, thereby affecting the communication connection performance of the mobile device. How to improve the scanning effect of mobile devices coexisting in Soft AP mode and P2P mode has become a research hotspot.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供一种对设备的扫描处理方法、移动设备、装置及存储介质,能够改善Soft AP模式和P2P模式共存的移动设备的被扫描效果。Embodiments of the present application provide a scanning processing method for a device, a mobile device, an apparatus, and a storage medium, which can improve the scanning effect of a mobile device in which a Soft AP mode and a P2P mode coexist.

为了解决上述技术问题,第一方面,本申请实施例提供了一种对设备的扫描处理方法,应用于双网络模式共存的移动设备中,所述移动设备共存的双网络模式包括:无线接入点Soft AP模式和点对点P2P模式;所述方法包括:In order to solve the above technical problems, in the first aspect, an embodiment of the present application provides a scanning processing method for a device, which is applied to a mobile device coexisting in a dual network mode, where the dual network mode coexisting with the mobile device includes: wireless access Point-to-point Soft AP mode and point-to-point P2P mode; the method includes:

若在所述Soft AP模式下有即时业务,则检测在所述P2P模式下是否有即时业务;所述即时业务是指当前需处理的业务;If there is an instant service in the Soft AP mode, then detect whether there is an instant service in the P2P mode; the instant service refers to the service that needs to be processed currently;

若检测结果为在所述P2P模式下无即时业务,则在分配给所述P2P模式的时间片内,将所述P2P模式的查找模式Find Phase置于监听状态Listen State。If the detection result is that there is no real-time service in the P2P mode, within the time slice allocated to the P2P mode, the Find Phase of the search mode of the P2P mode is placed in the listening state Listen State.

第二方面,本申请实施例还提供了一种对设备的扫描处理方法,应用于双网络模式共存的移动设备中,所述移动设备共存的双网络模式包括无线接入点Soft AP模式和点对点P2P模式;所述方法包括:In a second aspect, an embodiment of the present application further provides a method for scanning a device, which is applied to a mobile device coexisting in a dual network mode. The dual network mode coexisting in the mobile device includes a wireless access point Soft AP mode and a point-to-point mode P2P mode; the method includes:

若在所述P2P模式下有即时业务,则检测在所述Soft AP模式下的工作状态;所述即时业务是指当前需处理的业务;If there is an instant service in the P2P mode, the working state in the Soft AP mode is detected; the instant service refers to the service that needs to be processed currently;

根据在所述Soft AP模式下的工作状态的检测结果,调整在所述Soft AP模式下的被扫描动作。According to the detection result of the working state in the Soft AP mode, the scanned action in the Soft AP mode is adjusted.

第三方面,本申请实施例还提供了一种移动设备,所述移动设备包括:存储装置和处理器,In a third aspect, an embodiment of the present application further provides a mobile device, where the mobile device includes: a storage device and a processor,

所述存储装置,用于存储程序指令;the storage device for storing program instructions;

所述处理器,在调用所述存储指令时,用于执行第一方面所述的对设备的扫描处理方法。The processor, when invoking the storage instruction, is configured to execute the device scanning processing method described in the first aspect.

第四方面,本申请实施例还提供了一种移动设备,所述移动设备包括:存储装置和处理器,In a fourth aspect, an embodiment of the present application further provides a mobile device, where the mobile device includes: a storage device and a processor,

所述存储装置,用于存储程序指令;the storage device for storing program instructions;

所述处理器,在调用所述存储指令时,用于执行第二方面所述的对设备的扫描处理方法The processor, when invoking the storage instruction, is configured to execute the scanning processing method for a device according to the second aspect

第五方面,本申请实施例还提供了一种对设备的扫描处理装置,所述设备为双网络模式共存的移动设备,所述移动设备共存的双网络模式包括:无线接入点Soft AP模式和点对点P2P模式;所述装置包括:In a fifth aspect, an embodiment of the present application further provides an apparatus for scanning and processing a device, where the device is a mobile device coexisting in a dual network mode, and the dual network mode coexisting with the mobile device includes: a wireless access point Soft AP mode and peer-to-peer P2P mode; the apparatus includes:

检测模块,用于若在所述Soft AP模式下有即时业务,则检测在所述P2P模式下是否有即时业务;所述即时业务是指当前需处理的业务;A detection module, configured to detect whether there is an instant service in the P2P mode if there is an instant service in the Soft AP mode; the instant service refers to a service that needs to be processed currently;

调整模块,用于若检测结果为在所述P2P模式下无即时业务,则在分配给所述P2P模式的时间片内,将所述P2P模式的查找模式Find Phase置于监听状态Listen State。The adjustment module is configured to, if the detection result is that there is no real-time service in the P2P mode, within the time slice allocated to the P2P mode, place the Find Phase of the search mode of the P2P mode in the listening state Listen State.

第六方面,本申请实施例还提供了一种对设备的扫描处理装置,所述设备为双网络模式共存的移动设备,所述移动设备共存的双网络模式包括:无线接入点Soft AP模式和点对点P2P模式;所述装置包括:In a sixth aspect, an embodiment of the present application further provides an apparatus for scanning and processing a device, where the device is a mobile device coexisting in a dual network mode, and the dual network mode coexisting with the mobile device includes: a wireless access point Soft AP mode and peer-to-peer P2P mode; the apparatus includes:

检测模块,用于若在所述P2P模式下有即时业务,则检测在所述Soft AP模式下的工作状态;所述即时业务是指当前需处理的业务;a detection module, configured to detect the working state under the Soft AP mode if there is an instant service in the P2P mode; the instant service refers to the service that needs to be processed currently;

调整模块,用于根据在所述Soft AP模式下的工作状态的检测结果,调整在所述Soft AP模式下的被扫描动作。The adjustment module is configured to adjust the scanned action in the Soft AP mode according to the detection result of the working state in the Soft AP mode.

第七方面,本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质用于存储计算机程序,所述计算机程序使得计算机执行第一方面所述的方法。In a seventh aspect, an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium is used to store a computer program, and the computer program causes a computer to execute the method of the first aspect.

第八方面,本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质用于存储计算机程序,所述计算机程序使得计算机执行第二方面所述的方法。In an eighth aspect, an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium is used to store a computer program, and the computer program causes a computer to execute the method of the second aspect.

实施本申请实施例,具有如下有益效果:在移动设备共存的双网络模式中的其中一种网络模式下有即时业务的情况下,通过调整移动设备在另一种网络模式下的被扫描动作,来增加移动设备在另一种网络模式下被扫描到的概率,从而改善移动设备被扫描到的效果。Implementing the embodiments of the present application has the following beneficial effects: in the case of instant services in one of the dual network modes in which the mobile devices coexist, by adjusting the scanning action of the mobile device in the other network mode, to increase the probability of the mobile device being scanned in another network mode, thereby improving the scanning effect of the mobile device.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.

图1为本申请实施例提供的一种双Wifi方案的移动设备的结构示意图;FIG. 1 is a schematic structural diagram of a mobile device of a dual Wifi solution provided by an embodiment of the present application;

图2为本申请实施例提供的一种单Wifi方案的移动设备的结构示意图;FIG. 2 is a schematic structural diagram of a mobile device with a single Wifi solution provided by an embodiment of the present application;

图3为本申请实施例提供的一种对设备的扫描处理的场景图;FIG. 3 is a scene diagram of scanning processing for a device according to an embodiment of the present application;

图4为本申请实施例提供的一种对设备的扫描处理方法的流程示意图;4 is a schematic flowchart of a method for scanning a device provided by an embodiment of the present application;

图5为本申请实施例提供的另一种对设备的扫描处理方法的流程示意图;5 is a schematic flowchart of another method for scanning a device provided by an embodiment of the present application;

图6为为本申请实施例提供的另一种对设备的扫描处理方法的流程示意图FIG. 6 is a schematic flowchart of another method for scanning a device according to an embodiment of the present application

图7为本申请实施例提供的一种移动设备在所述Soft AP模式下有即时业务和在所述P2P模式下无即时业务时的被扫描动作示意图;FIG. 7 is a schematic diagram of a scanned action when a mobile device according to an embodiment of the present application has an instant service in the Soft AP mode and when there is no instant service in the P2P mode;

图8为本申请实施例提供的一种移动设备在所述Soft AP模式下无即时业务和在所述P2P模式下未与对端设备连接时的被扫描动作示意图;FIG. 8 is a schematic diagram of a scanning action when a mobile device according to an embodiment of the present application has no instant service in the Soft AP mode and is not connected to a peer device in the P2P mode;

图9为本申请实施例提供的另一种对设备的扫描处理方法的流程示意图;9 is a schematic flowchart of another method for scanning a device provided by an embodiment of the present application;

图10为本申请实施例提供的一种移动设备在所述P2P模式下有即时业务和在所述Soft AP模式启动时的被扫描动作示意图;10 is a schematic diagram of a mobile device having instant services in the P2P mode and being scanned when the Soft AP mode is activated, according to an embodiment of the present application;

图11为本申请实施例提供的一种移动设备在所述P2P模式下有即时业务和在所述Soft AP模式已启动且有即时业务时的被扫描动作示意图;11 is a schematic diagram of a scanning action when a mobile device according to an embodiment of the present application has an instant service in the P2P mode and when the Soft AP mode is activated and has an instant service;

图12为本申请实施例提供的一种移动设备的结构示意图;FIG. 12 is a schematic structural diagram of a mobile device according to an embodiment of the application;

图13为本申请实施例提供的一种对设备的扫描处理装置的结构示意图。FIG. 13 is a schematic structural diagram of an apparatus for scanning equipment provided by an embodiment of the present application.

具体实施方式Detailed ways

移动设备的扫描,就是移动设备发现其周边可用设备的过程,即移动设备可通过扫描来寻找移动设备周边可用设备。移动设备与通过扫描发现的可用设备进行连接后,才能在移动设备和可用设备之间进行数据业务。Scanning of the mobile device is a process in which the mobile device discovers available devices around it, that is, the mobile device can search for available devices around the mobile device by scanning. Data services can be performed between the mobile device and the available devices only after the mobile device is connected to the available devices discovered through scanning.

对移动设备的扫描,即移动设备的被扫描,就是移动设备被周边设备扫描的过程。移动设备只有在对应的时间内驻留在扫描信道才能被进行扫描的周边设备扫描到。移动设备只有处于可发现的状态并被周边设备扫描到,才能与周边设备连接从而在移动设备和周边设备之间进行数据业务。移动设备包含多个信道,比如:支持2.4GHz和5GHz两个频带的移动设备,包含56个信道;以每个信道固定采用50毫秒为例,一次对移动设备完整的Wifi(Wireless-Fidelity,无线保真)信道扫描,需要2.8秒才能完成。The scanning of the mobile device, that is, the scanning of the mobile device, is a process in which the mobile device is scanned by the peripheral devices. The mobile device can only be scanned by the scanning peripheral device if it resides on the scanning channel for a corresponding time. Only when the mobile device is in a discoverable state and is scanned by the peripheral device, can it be connected with the peripheral device to perform data services between the mobile device and the peripheral device. A mobile device contains multiple channels, for example: a mobile device that supports two frequency bands, 2.4GHz and 5GHz, contains 56 channels; taking 50 milliseconds fixed for each channel as an example, a complete Wifi (Wireless-Fidelity, wireless Fidelity) channel scan, which takes 2.8 seconds to complete.

Soft AP模式和P2P模式共存的双网络模式有两种实现方案。第一种实现方案为双Wifi方案。在双Wifi方案中,Soft AP模式和P2P模式分别在两个通信模块上实现,比如:在两颗Wifi芯片上分别进行Soft AP模式和P2P模式的工作。但采用双Wifi方案的移动设备的基带芯片中MAC通信协议处理模块只工作在单一模式下,也就是只工作在Soft AP模式或P2P模式下。采用双Wifi方案的移动设备可由通过MMI(Man-Machine Interface,人机接口)层控制MAC通信协议工作在Soft AP模式还是P2P工作模式。There are two implementation schemes for the dual network mode in which the Soft AP mode and the P2P mode coexist. The first implementation solution is a dual Wifi solution. In the dual Wifi solution, the Soft AP mode and the P2P mode are implemented on two communication modules respectively, for example, the Soft AP mode and the P2P mode are respectively performed on two Wifi chips. However, the MAC communication protocol processing module in the baseband chip of the mobile device using the dual Wifi solution only works in a single mode, that is, only in the Soft AP mode or the P2P mode. The mobile device using the dual Wifi solution can control whether the MAC communication protocol works in the Soft AP mode or the P2P working mode through the MMI (Man-Machine Interface, man-machine interface) layer.

具体地,如图1所示,RF1和RF2分别表示Soft AP模式和P2P模式下的RF(RadioFrequency,射频收发层),PHY1和PHY2分别表示Soft AP模式和P2P模式下的PHY(PhysicalLayer,物理层),MAC1和MAC2分别表示Soft AP模式和P2P模式下的MAC(Medium AccessControl,介质访问控制层)。其中,RF1、PHY1和MAC1可在第一模块(或第一芯片)上实现,RF2、PHY2和MAC2可在第二模块(或第二芯片)上实现,也就是Soft AP模式和P2P模式在硬件上由两个独立的通信模块(或芯片)实现,即Soft AP模式和P2P模式的RF、PHY和MAC资源完全独立,移动设备完全独立地各自工作在Soft AP模式和P2P模式下。需要说明的是,MMI在硬件上,可在第一模块(或第一芯片)与第二模块(或第二芯片)中任一项上实现,也可独立于第一模块(或第一芯片)和第二模块(或第二芯片),单独在一个模块(或芯片)上实现。Specifically, as shown in Figure 1, RF1 and RF2 respectively represent RF (RadioFrequency, radio frequency transceiver layer) in Soft AP mode and P2P mode, and PHY1 and PHY2 represent PHY (Physical Layer, physical layer) in Soft AP mode and P2P mode, respectively ), MAC1 and MAC2 respectively represent MAC (Medium Access Control, medium access control layer) in Soft AP mode and P2P mode. Among them, RF1, PHY1 and MAC1 can be implemented on the first module (or first chip), and RF2, PHY2 and MAC2 can be implemented on the second module (or second chip), that is, Soft AP mode and P2P mode are implemented in hardware It is realized by two independent communication modules (or chips), that is, the RF, PHY and MAC resources of Soft AP mode and P2P mode are completely independent, and the mobile devices work in Soft AP mode and P2P mode completely independently. It should be noted that MMI can be implemented in hardware on either the first module (or the first chip) or the second module (or the second chip), or can be independent of the first module (or the first chip) ) and the second module (or second chip), which are implemented on one module (or chip) alone.

在双Wifi方案中,移动设备在Soft AP模式下一直驻留在自己的工作信道上,能够及时发送Beacon帧,其他移动设备来扫描Soft AP时,Soft AP能够及时收到探测帧,并及时响应回复响应帧,P2P也一直在自己的工作信道做Discovery(发现)过程,两个模式互不影响,被扫描效果较好,但是因为需要两个Wifi,成本较高。In the dual Wifi solution, the mobile device stays on its own working channel in Soft AP mode, and can send Beacon frames in time. When other mobile devices scan the Soft AP, the Soft AP can receive the detection frame and respond in time. In response to the response frame, P2P has also been doing the Discovery process on its own working channel. The two modes do not affect each other, and the scanning effect is good, but because two Wifi are required, the cost is high.

第二种实现方式为单Wifi方案。在单Wifi方案中,Soft AP模式和P2P模式在一个通信模块上实现,比如:在单颗Wifi芯片上进行Soft AP模式和P2P模式的工作。如图2所示,采用单Wifi方案的移动设备的Soft AP模式和P2P模式共用一套RF和PHY资源,具体地,采用单Wifi方案的移动设备的Soft AP模式和P2P模式由MAC通信协议通过分时分片复用RF和PHY资源。图2中,MAC1和MAC2分别表示Soft AP模式和P2P模式下的MAC(Medium AccessControl,介质访问控制层)。其中,RF1、PHY1、MAC1和MAC2可在一个模块(或一个芯片)上实现,也就是RF1、PHY1、MAC1和MAC2在硬件上可由一个模块(或一个芯片)实现。MAC1和MAC2在软件上,可由两个软件逻辑单元实现,也可由一个软件逻辑单元实现,在此不对MAC1和MAC2在软件上的实现方式做限定。需要说明的是,MMI在硬件上,可与RF1、PHY1、MAC1和MAC2在同一个模块(或芯片)上实现,也可独立于RF1、PHY1、MAC1和MAC2所在的模块(或芯片),单独在一个模块(或芯片)上实现。The second implementation is a single Wifi solution. In the single Wifi solution, Soft AP mode and P2P mode are implemented on one communication module, for example, Soft AP mode and P2P mode work on a single Wifi chip. As shown in Figure 2, the Soft AP mode and the P2P mode of the mobile device using the single Wifi solution share a set of RF and PHY resources. Specifically, the Soft AP mode and the P2P mode of the mobile device using the single Wifi solution are passed by the MAC communication protocol. Time and slice multiplexing of RF and PHY resources. In FIG. 2 , MAC1 and MAC2 respectively represent MAC (Medium Access Control, medium access control layer) in Soft AP mode and P2P mode. Wherein, RF1, PHY1, MAC1 and MAC2 may be implemented on one module (or one chip), that is, RF1, PHY1, MAC1 and MAC2 may be implemented by one module (or one chip) in hardware. In software, MAC1 and MAC2 may be implemented by two software logic units, or may be implemented by one software logic unit, and the implementation manner of MAC1 and MAC2 in software is not limited here. It should be noted that MMI can be implemented on the same module (or chip) as RF1, PHY1, MAC1 and MAC2 in hardware, or can be independent of the module (or chip) where RF1, PHY1, MAC1 and MAC2 are located, and can be implemented separately Implemented on a module (or chip).

在单Wifi方案中,移动设备在扫描过程中需离开工作信道。由于移动设备无法同时在Soft AP模式下处理即时业务和在P2P模式下处理即时业务,且处理即时业务会降低移动设备被扫描的效果,故移动设备可同时只有一种网络模式处于工作状态,比如:在SoftAP模式下工作时,P2P模式处于Idle(空闲)状态;在P2P模式下工作时,Soft AP模式会关闭。移动设备在处理即时业务的网络模式下,在单一模式下扫描或被扫描(处于单一模式下的扫描信道),或者在Soft AP模式和P2P模式下均扫描或被扫描,均会受即时业务的影响,扫描效果不佳。In the single Wifi solution, the mobile device needs to leave the working channel during the scanning process. Since the mobile device cannot process the instant service in Soft AP mode and the instant service in the P2P mode at the same time, and processing the instant service will reduce the scanning effect of the mobile device, the mobile device can only have one network mode working at the same time, such as : When working in SoftAP mode, P2P mode is in Idle (idle) state; when working in P2P mode, Soft AP mode will be turned off. In the network mode that handles real-time services, the mobile device scans or is scanned in a single mode (scanning channel in a single mode), or scans or is scanned in both Soft AP mode and P2P mode. Influence, the scanning effect is not good.

参阅图3,图3为本申请实施例提供的一种对设备的扫描处理的场景图。如图3所示,在该场景中,双网络模式共存的移动设备31采用单Wifi方案在Soft AP模式下可与对端设备32通信连接,在P2P模式下可与对端设备33通信连接。对端设备32和对端设备33可为不同的两个移动设备,也可为同一移动设备,比如:另一双网络模式共存的移动设备。其中,移动设备31在Soft AP模式和P2P模式下工作于不同的工作信道,移动设备31同时只能工作在一个工作信道;Soft AP模式和P2P模式分时分片地使用时间资源,具体地,Soft AP模式和P2P模式分时复用时间片集合,时间片集合是由时间片组成的,时间片是将分配给双网络模式的时间资源划分得到的。Referring to FIG. 3 , FIG. 3 is a scene diagram of scanning processing of a device according to an embodiment of the present application. As shown in FIG. 3 , in this scenario, the mobile device 31 coexisting in dual network mode can communicate with the peer device 32 in the Soft AP mode and communicate with the peer device 33 in the P2P mode using the single Wifi scheme. The opposite end device 32 and the opposite end device 33 may be two different mobile devices, or may be the same mobile device, such as another mobile device coexisting in a dual network mode. Among them, the mobile device 31 works on different working channels in the Soft AP mode and the P2P mode, and the mobile device 31 can only work on one working channel at the same time; the Soft AP mode and the P2P mode use time resources in time-sliced manner. The AP mode and the P2P mode time-division multiplex the time-slice set. The time-slice set is composed of time-slices, and the time-slice is obtained by dividing the time resources allocated to the dual-network mode.

移动设备31在Soft AP模式下,一方面可定时发送广播的Beacon(信标)帧,使处于扫描状态的对端设备32接收到Beacon帧,从而使移动设备31被对端设备32发现;另一方面还可在接收到对端设备32发送的Probe Request(探测请求)帧后发送Probe Response(探测响应)帧,使处于扫描状态的对端设备32接收到Probe Response帧,从而使移动设备31被对端设备32发现。Under the Soft AP mode, the mobile device 31 can regularly send the broadcasted Beacon (beacon) frame on the one hand, so that the opposite end device 32 in the scanning state receives the Beacon frame, so that the mobile device 31 is discovered by the opposite end device 32; On the one hand, a Probe Response (probe response) frame can also be sent after receiving the Probe Request (probe request) frame sent by the peer device 32, so that the peer device 32 in the scanning state receives the Probe Response frame, so that the mobile device 31 Discovered by the peer device 32 .

移动设备31在P2P模式下,可通过执行P2P Discovery来使移动设备31被对端设备33发现。具体地,移动设备31的P2P模式开启后进入Scan Phase(扫描模式),在Scan Phase下会进行一次全信道扫描;待全信道扫描完成后(Scan Phase完成后),会进入Find Phase(查找模式),在Find Phase下,移动设备31会在Listen State(监听状态)和Search State(搜索状态)之间切换。When the mobile device 31 is in the P2P mode, the mobile device 31 can be discovered by the peer device 33 by executing P2P Discovery. Specifically, after the P2P mode of the mobile device 31 is turned on, it enters the Scan Phase (scanning mode), and a full-channel scan will be performed in the Scan Phase; after the full-channel scanning is completed (after the Scan Phase is completed), it will enter the Find Phase (search mode). ), in the Find Phase, the mobile device 31 will switch between the Listen State (listening state) and the Search State (searching state).

在Listen State下,移动设备31会在特定信道监听探测帧,若该移动设备31收到探测帧并且解析确认是P2P模式下的对端设备33发出的,则该移动设备31会回复响应帧,收到响应帧的P2P模式下的对端设备33即能够发现该移动设备31。In the Listen State, the mobile device 31 will monitor the detection frame on a specific channel. If the mobile device 31 receives the detection frame and the parsing confirmation is sent by the peer device 33 in the P2P mode, the mobile device 31 will reply with a response frame. After receiving the response frame, the peer device 33 in the P2P mode can discover the mobile device 31 .

在Search State下,移动设备31会在特定信道发送探测帧,若该移动设备31收到其它P2P模式下的对端设备33发出的响应帧,就能发现P2P模式下的对端设备33。In Search State, the mobile device 31 will send a probe frame on a specific channel. If the mobile device 31 receives response frames sent by other peer devices 33 in the P2P mode, it can find the peer device 33 in the P2P mode.

在该场景中,可由MAC、PHY和RF给双网络模式分配时间资源。Soft AP模式和P2P模式共用一套RF和PHY资源以进行数据的收发。MAC、PHY和RF的时间资源需同时分给Soft AP模式和P2P模式中的任一网络模式,才能使移动设备在该网络模式下进行扫描或被扫描动作,或者进行业务处理等。移动设备31、对端设备32和对端设备33包括但不限于智能电视、智能机顶盒、智能手机、平板电脑、个人数字助理(Personal Digital Assistant,PDA)和移动互联网设备(MID)等。In this scenario, the dual network mode may be allocated time resources by MAC, PHY and RF. Soft AP mode and P2P mode share a set of RF and PHY resources for data transmission and reception. The time resources of MAC, PHY and RF need to be allocated to any network mode in Soft AP mode and P2P mode at the same time, so that the mobile device can scan or be scanned, or perform service processing in this network mode. The mobile device 31, the peer device 32, and the peer device 33 include but are not limited to smart TVs, smart set-top boxes, smart phones, tablet computers, personal digital assistants (PDAs), and mobile Internet devices (MIDs).

请参阅图4,图4为本申请实施例提供的一种对设备的扫描处理方法的流程示意图,本说明书提供了如实施例或流程图所述的方法操作步骤,但基于常规或者无创造性的劳动可以包括更多或者更少的操作步骤。实施例中列举的步骤顺序仅仅为众多步骤执行顺序中的一种方式,不代表唯一的执行顺序。在实际中的终端或者存储介质产品执行时,可以按照实施例或者附图所示的方法顺序执行或者并行执行。具体如图4所示,所述方法,应用于双网络模式共存的移动设备中,所述移动设备共存的双网络模式包括:Soft AP模式和P2P模式,所述方法包括如下步骤:Please refer to FIG. 4. FIG. 4 is a schematic flowchart of a scanning processing method for a device provided by an embodiment of the application. This specification provides the method operation steps as described in the embodiment or the flowchart, but based on conventional or non-creative Labor may include more or fewer operational steps. The sequence of steps enumerated in the embodiments is only one of the execution sequences of many steps, and does not represent the only execution sequence. When an actual terminal or storage medium product is executed, the methods shown in the embodiments or the accompanying drawings may be executed sequentially or in parallel. Specifically, as shown in FIG. 4 , the method is applied to a mobile device coexisting in dual network modes. The dual network modes coexisting in the mobile device include: Soft AP mode and P2P mode, and the method includes the following steps:

若在所述Soft AP模式下有即时业务,则执行步骤S401;所述即时业务是指当前需处理的业务;If there is an instant service in the Soft AP mode, step S401 is executed; the instant service refers to the service that needs to be processed currently;

S401:检测在所述P2P模式下是否有即时业务;S401: Detect whether there is an instant service in the P2P mode;

可通过判断是否接收到P2P模式的即时业务请求,来检测在所述P2P模式下是否有即时业务;也可通过检测移动设备的工作信道是否被在P2P模式下的即时业务占用,来检测到在所述P2P模式下是否有即时业务;还可根据其他方法来检测在所述P2P模式下是否有即时业务,在此不对检测在所述P2P模式下是否有即时业务的方法做限定和赘述。Whether there is an instant service in the P2P mode can be detected by judging whether the instant service request in the P2P mode is received; it can also be detected by detecting whether the working channel of the mobile device is occupied by the instant service in the P2P mode. Whether there is an instant service in the P2P mode; other methods can also be used to detect whether there is an instant service in the P2P mode, and the method for detecting whether there is an instant service in the P2P mode is not limited or described here.

若检测结果为在所述P2P模式下无即时业务,则执行步骤S402。If the detection result is that there is no real-time service in the P2P mode, step S402 is executed.

S402:在分配给所述P2P模式的时间片内,将所述P2P模式的Find Phase(查找模式)置于Listen State(监听状态)。S402: Within the time slice allocated to the P2P mode, set the Find Phase (finding mode) of the P2P mode to the Listen State (listening state).

在本申请实施例中,在移动设备共存的双网络模式中的Soft AP模式下有即时业务的情况下,通过调整P2P模式的被扫描动作(将所述P2P模式的Find Phase置于ListenState(),来增加移动设备在P2P模式的被扫描到的概率,从而改善移动设备被扫描到的效果。In the embodiment of the present application, when there is instant service in the Soft AP mode in the dual network mode where the mobile devices coexist, by adjusting the scanned action of the P2P mode (place the Find Phase of the P2P mode in ListenState() , to increase the probability of the mobile device being scanned in the P2P mode, thereby improving the scanning effect of the mobile device.

请参阅图5,图5为本申请实施例提供的另一种对设备的扫描处理方法的流程示意图,本说明书提供了如实施例或流程图所述的方法操作步骤,但基于常规或者无创造性的劳动可以包括更多或者更少的操作步骤。实施例中列举的步骤顺序仅仅为众多步骤执行顺序中的一种方式,不代表唯一的执行顺序。在实际中的终端或者存储介质产品执行时,可以按照实施例或者附图所示的方法顺序执行或者并行执行。具体如图5所示,所述方法,用于双网络模式共存的移动设备中,所述移动设备共存的双网络模式包括无线接入点Soft AP模式和点对点P2P模式,所述方法包括如下步骤:Please refer to FIG. 5. FIG. 5 is a schematic flowchart of another scanning processing method for a device provided by an embodiment of the application. This specification provides the method operation steps as described in the embodiment or the flowchart, but based on conventional or non-creative methods The labor can include more or fewer operating steps. The sequence of steps enumerated in the embodiments is only one of the execution sequences of many steps, and does not represent the only execution sequence. When an actual terminal or storage medium product is executed, the methods shown in the embodiments or the accompanying drawings may be executed sequentially or in parallel. Specifically, as shown in FIG. 5 , the method is used in a mobile device coexisting in dual network modes. The dual network mode coexistence of the mobile device includes a wireless access point Soft AP mode and a point-to-point P2P mode, and the method includes the following steps :

若在所述P2P模式下有即时业务,则执行步骤S501;所述即时业务是指当前需处理的业务;If there is an instant service in the P2P mode, step S501 is executed; the instant service refers to the service that needs to be processed currently;

S501:检测在所述Soft AP模式下的工作状态;S501: Detect the working state in the Soft AP mode;

所述工作状态包括未启动状态和已启动状态;可通过现有技术来检测所述SoftAP模式下的工作状态,在此不做赘述。The working state includes an inactive state and an activated state; the working state in the SoftAP mode can be detected by using the prior art, and details are not described here.

S502:根据在所述Soft AP模式下的工作状态的检测结果,调整在所述Soft AP模式下的被扫描动作。S502: Adjust the scanned action in the Soft AP mode according to the detection result of the working state in the Soft AP mode.

所述Soft AP模式的被扫描动作可为调整所述Soft AP模式的TBTT周期,也可为发送广播帧。The scanned action of the Soft AP mode may be adjusting the TBTT period of the Soft AP mode, or may be sending a broadcast frame.

在本申请实施例中,在移动设备共存的双网络模式中的P2P模式下有即时业务的情况下,通过调整移动设备在Soft AP模式下的被扫描动作,来增加移动设备在Soft AP模式下被扫描到的概率,从而改善移动设备被扫描到的效果。In the embodiment of the present application, in the case where there is instant service in the P2P mode in the dual network mode in which the mobile devices coexist, the scanning action of the mobile device in the Soft AP mode is adjusted to increase the mobile device in the Soft AP mode. The probability of being scanned, thereby improving the scanning effect of mobile devices.

需要说明的是图4和图5描述的方法的具体实现可参考后续实施例的描述。It should be noted that for the specific implementation of the methods described in FIG. 4 and FIG. 5 , reference may be made to the descriptions of subsequent embodiments.

请参阅图6,图6为本申请实施例提供的另一种对设备的扫描处理方法的流程示意图,本说明书提供了如实施例或流程图所述的方法操作步骤,但基于常规或者无创造性的劳动可以包括更多或者更少的操作步骤。实施例中列举的步骤顺序仅仅为众多步骤执行顺序中的一种方式,不代表唯一的执行顺序。在实际中的终端或者存储介质产品执行时,可以按照实施例或者附图所示的方法顺序执行或者并行执行。具体如图6所示,所述方法,应用于双网络模式共存的移动设备中,所述移动设备共存的双网络模式包括:Soft AP模式和P2P模式;所述方法包括如下步骤:Please refer to FIG. 6. FIG. 6 is a schematic flowchart of another scanning processing method for a device provided by an embodiment of the application. This specification provides the operation steps of the method as described in the embodiment or the flowchart, but is based on conventional or non-creative methods. The labor can include more or fewer operating steps. The sequence of steps enumerated in the embodiments is only one of the execution sequences of many steps, and does not represent the only execution sequence. When an actual terminal or storage medium product is executed, the methods shown in the embodiments or the accompanying drawings may be executed sequentially or in parallel. Specifically, as shown in FIG. 6 , the method is applied to a mobile device coexisting in dual network modes. The dual network modes coexisting in the mobile device include: Soft AP mode and P2P mode; the method includes the following steps:

S601:移动设备检测在所述Soft AP模式是否有即时业务;S601: The mobile device detects whether there is an instant service in the Soft AP mode;

可通过判断是否接收到Soft AP模式的即时业务请求,来检测在所述Soft AP模式下是否有即时业务;也可通过检测移动设备的工作信道是否被Soft AP模式的即时业务占用,来检测在所述Soft AP模式下是否有即时业务;还可根据其他方法来检测在所述SoftAP模式下是否有即时业务,在此不对检测在所述Soft AP模式下是否有即时业务的方法做限定和赘述。Whether there is an instant service in the Soft AP mode can be detected by judging whether the instant service request of the Soft AP mode is received; it can also be detected by detecting whether the working channel of the mobile device is occupied by the instant service of the Soft AP mode. Whether there is an instant service in the Soft AP mode; it is also possible to detect whether there is an instant service in the Soft AP mode according to other methods, and the method for detecting whether there is an instant service in the Soft AP mode is not limited and repeated here. .

所述即时业务是指当前需处理的业务(或称网络业务);所述即时业务包括当前需处理的常态业务和当前需处理的敏感业务;所述敏感业务为延时敏感的业务,或所述敏感业务为抖动敏感的业务。所述延时是指网络延时,所述网络延时是指数据在网络传输介质中进行传输所用的时间,即从数据报文开始进入网络到数据报文开始离开网络之间的时间。所述抖动是指网络抖动,所述网络抖动是指网络中分组延迟的变化程度。所述网络延时和所述网络抖动通常用于判断网络中的QoS(Quality of Service,服务质量)。因此,若有网络业务(或称为应用)对网络延时比较敏感,则称该网络业务为延时敏感的业务;若有网络业务(或称应用)对网络抖动比较敏感,则称该网络业务为抖动敏感的业务。所述延时敏感的业务和所述抖动敏感的业务对网络服务质量的要求比较高,比如:实时通话业务等。所述网络业务若非敏感业务,则为常态业务。The real-time service refers to the service that needs to be processed currently (or network service); the real-time service includes the normal service that needs to be processed and the sensitive service that needs to be processed currently; the sensitive service is the delay-sensitive service, or the The above-mentioned sensitive services are jitter-sensitive services. The delay refers to the network delay, and the network delay refers to the time taken for data to be transmitted in the network transmission medium, that is, the time from when a data packet starts entering the network to when the data packet starts leaving the network. The jitter refers to network jitter, and the network jitter refers to the degree of variation in packet delay in the network. The network delay and the network jitter are usually used to judge QoS (Quality of Service, quality of service) in the network. Therefore, if a network service (or application) is sensitive to network delay, the network service is called a delay-sensitive service; if there is a network service (or application) that is sensitive to network jitter, the network service is called a delay-sensitive service. The service is a jitter-sensitive service. The delay-sensitive services and the jitter-sensitive services have relatively high requirements on network service quality, such as real-time call services. If the network service is not a sensitive service, it is a normal service.

本申请实施例中,移动设备在所述Soft AP模式和所述P2P模式下工作于不同的工作信道;移动设备在所述Soft AP模式和所述P2P模式下,分时分片地使用时间资源。In the embodiment of the present application, the mobile device works on different working channels in the Soft AP mode and the P2P mode; in the Soft AP mode and the P2P mode, the mobile device uses time resources by time and slice.

所述移动设备在所述Soft AP模式和所述P2P模式下,分时分片地使用时间资源,包括:In the Soft AP mode and the P2P mode, the mobile device uses time resources in a time-sliced manner, including:

移动设备在所述Soft AP模式和所述P2P模式下,分时复用时间片集合;所述时间片集合是由时间片组成的,所述时间片是将分配给所述双网络模式的时间资源划分得到的。可由MAC、PHY和RF给双网络模式分配时间资源。Soft AP模式和P2P模式共用一套RF和PHY资源以进行数据的收发。MAC、PHY和RF的时间资源需同时分给Soft AP模式和P2P模式中的任一网络模式,才能使移动设备在该网络模式下进行扫描或被扫描动作,或者进行业务处理等。In the Soft AP mode and the P2P mode, the mobile device time-division multiplexes a time slice set; the time slice set is composed of time slices, and the time slice is the time to be allocated to the dual network mode resources are divided. The dual network mode can be allocated time resources by MAC, PHY and RF. Soft AP mode and P2P mode share a set of RF and PHY resources for data transmission and reception. The time resources of MAC, PHY and RF need to be allocated to any network mode in Soft AP mode and P2P mode at the same time, so that the mobile device can scan or be scanned, or perform service processing in this network mode.

时间片可根据移动设备在所述Soft AP模式和所述P2P模式下的使用的时间比例进行划分,比如:移动设备在所述Soft AP模式和所述P2P模式下的使用的时间比例为3:7,则可将分配给所述双网络模式的时间资源按照3:7的时间比例依次划分为若干时间片,具体地,在时间顺序上排在第一位的时间片与排在第二位的时间片的时间占比为3:7,在时间顺序上排在第二位的时间片与排在第三位的时间片的时间占比为7:3,在时间顺序上排在第三位的时间片与排在第四位的时间片的时间占比为3:7,以此类推。然后,再将划分得到的时间片作为时间片集合的元素,组成时间片集合。需要说明的是,时间片集合中的时间片是按(时间片的)时间顺序被使用的。移动设备根据在两种网络模式下的工作状态和业务处理状态按时间调用对应的时间片以处理即时业务、调整被扫描或扫描动作。The time slice can be divided according to the time ratio of the use of the mobile device in the Soft AP mode and the P2P mode. For example, the time ratio of the mobile device in the Soft AP mode and the P2P mode is 3: 7, then the time resources allocated to the dual network mode can be divided into several time slices according to the time ratio of 3:7. The time ratio of the time slice is 3:7, the time ratio of the second time slice and the third time slice in the time sequence is 7:3, and the time slot is ranked third in the time sequence. The time ratio of the time slice in the first place and the time slice in the fourth place is 3:7, and so on. Then, the divided time slices are used as elements of the time slice set to form a time slice set. It should be noted that the time slices in the time slice set are used in chronological order (of time slices). According to the working state and service processing state in the two network modes, the mobile device calls the corresponding time slice according to time to process the instant service, adjust the scanned or scan action.

本申请实施例中,移动设备在所述Soft AP模式的信标预定传送时间TBTT发送所述Soft AP模式的信标Beacon帧;所述Beacon帧是以广播的方式发送的。In the embodiment of the present application, the mobile device sends the beacon Beacon frame of the Soft AP mode at the scheduled beacon transmission time TBTT of the Soft AP mode; the Beacon frame is sent in a broadcast manner.

在发送所述Soft AP模式的信标Beacon帧时或所述Soft AP模式有即时业务时,时间片分配给所述Soft AP使用;在所述P2P模式有即时业务时,时间片分配给所述P2P使用。When sending a beacon frame in the Soft AP mode or when there is an instant service in the Soft AP mode, the time slice is allocated to the Soft AP for use; when there is an instant service in the P2P mode, the time slice is allocated to the P2P use.

若移动设备在所述Soft AP模式下有即时业务,则执行步骤S602;若移动设备在所述Soft AP模式下无即时业务,则执行步骤S604;If the mobile device has an instant service in the Soft AP mode, go to step S602; if the mobile device has no instant service in the Soft AP mode, go to step S604;

S602:移动设备检测在所述P2P模式下是否有即时业务;S602: The mobile device detects whether there is an instant service in the P2P mode;

若检测结果为在所述P2P模式下无即时业务,则执行步骤S603。If the detection result is that there is no real-time service in the P2P mode, step S603 is executed.

S603:移动设备在分配给所述P2P模式的时间片内,将所述P2P模式的Find Phase(查找模式)置于Listen State(监听状态)。S603: The mobile device places the Find Phase (finding mode) of the P2P mode in the Listen State (listening state) within the time slice allocated to the P2P mode.

移动设备的P2P模式开启后进入Scan Phase,待Scan Phase完成后,会进入FindPhase,在Find Phase下,移动设备会在Listen State和Search State(搜索状态)之间切换。在Listen State下,移动设备在在特定信道监听探测帧,如果收到探测帧并且解析确认是在P2P模式下的对端设备发送的,处于Listen State下的P2P设备会回复响应帧,收到响应帧的对端P2P设备就能发现该移动设备的存在。通常情况下,Listen State的持续时间是100TU(Time Unit,时间单位)的整数倍,比如:1到3倍,一个TU是1024microseconds(微秒),也即1毫秒。由于移动设备在所述Soft AP模式下有即时业务,会占用相应的时间资源,将时间片切分得更碎,而基于原有的Listen State和Search State的切换机制,使得使用分配给所述P2P模式的时间片的过程中,处于Listen State状态下的时间占比更小,降低了移动设备在P2P模式下被扫描到的概率。通过将在分配给所述P2P模式的时间片内,将所述P2P模式的Find Phase置于Listen State,可最大限度地增加移动设备在P2P模式下被扫描到的时间。After the P2P mode of the mobile device is turned on, it will enter the Scan Phase. After the Scan Phase is completed, it will enter the FindPhase. In the Find Phase, the mobile device will switch between the Listen State and the Search State (search state). In Listen State, the mobile device monitors the probe frame on a specific channel. If the probe frame is received and the parsing confirmation is sent by the peer device in P2P mode, the P2P device in Listen State will reply with a response frame and receive a response. The peer P2P device of the frame can discover the existence of the mobile device. Usually, the duration of Listen State is an integer multiple of 100TU (Time Unit, time unit), for example: 1 to 3 times, a TU is 1024 microseconds (microseconds), which is 1 millisecond. Since the mobile device has real-time services in the Soft AP mode, it will occupy corresponding time resources and divide the time slice into more pieces. During the time slice in the P2P mode, the time in the Listen State state accounts for a smaller proportion, which reduces the probability of the mobile device being scanned in the P2P mode. By placing the Find Phase of the P2P mode in the Listen State within the time slice allocated to the P2P mode, the time that the mobile device is scanned in the P2P mode can be maximized.

本实施例中,在检测结果为在所述P2P模式下无即时业务的情况下,除在分配给所述P2P模式的时间片内,将所述P2P模式的查找模式Find Phase置于监听状态ListenState,移动设备还在分配给所述P2P模式的时间片的开始时刻和结束时刻,在所述P2P模式下发送第一广播帧,所述第一广播帧可以为Probe Response(探测响应)广播帧。所述第一广播帧可以广播方式发送。所述第一广播帧中可包含移动设备在P2P模式下的能力信息,比如:处理网络业务的能力信息、进行数据传输的能力信息等。当在P2P模式下的对端设备接收到该第一广播帧,并解析该第一广播帧后,就能发现该移动设备。通过在分配给所述P2P模式的时间片的开始时刻和结束时刻,在所述P2P模式下发送第一广播帧,可在分配给所述P2P模式的时间片内,将所述P2P模式的Find Phase置于Listen State的基础上进一步增加移动设备在P2P模式下被扫描到的概率,改善移动设备被扫描的效果。In this embodiment, when the detection result is that there is no real-time service in the P2P mode, the search mode Find Phase of the P2P mode is placed in the listening state ListenState except within the time slice allocated to the P2P mode , the mobile device also sends a first broadcast frame in the P2P mode at the start time and end time of the time slice allocated to the P2P mode, where the first broadcast frame may be a Probe Response broadcast frame. The first broadcast frame may be sent in a broadcast manner. The first broadcast frame may include capability information of the mobile device in the P2P mode, such as capability information for processing network services, capability information for data transmission, and the like. When the peer device in the P2P mode receives the first broadcast frame and parses the first broadcast frame, it can discover the mobile device. By sending the first broadcast frame in the P2P mode at the start time and the end time of the time slot allocated to the P2P mode, the Find of the P2P mode can be found in the time slot allocated to the P2P mode. Phase is placed on the basis of Listen State to further increase the probability of mobile devices being scanned in P2P mode, and improve the effect of mobile devices being scanned.

请参阅图7,图7为本申请实施例提供的一种移动设备在所述Soft AP模式下有即时业务和在所述P2P模式下无即时业务时的被扫描动作示意图。如图7所示,在移动设备在所述Soft AP模式下有即时业务时,时间片分配给所述Soft AP模式使用,其中,移动设备在所述Soft AP模式的TBTT以广播方式发送所述Soft AP模式的信标Beacon帧给第一对端设备时,时间片是分配给移动设备在Soft AP模式下使用,所述第一对端设备是在Soft AP模式下工作的对端设备。Please refer to FIG. 7 . FIG. 7 is a schematic diagram of a scanning action of a mobile device when there is an instant service in the Soft AP mode and when there is no instant service in the P2P mode, according to an embodiment of the present application. As shown in FIG. 7 , when the mobile device has real-time services in the Soft AP mode, a time slice is allocated to the Soft AP mode, wherein the mobile device broadcasts the TBTT in the Soft AP mode by broadcasting the When the beacon frame in the Soft AP mode is sent to the first peer device, the time slice is allocated to the mobile device for use in the Soft AP mode, and the first peer device is the peer device working in the Soft AP mode.

待给移动设备在Soft AP模式下使用的时间片结束后,可将下一时间片分配给移动设备在P2P模式下使用,在分配给所述P2P模式的时间片内,移动设备将所述P2P模式的Find Phase置于Listen State,若在Listen State下监听到第二对端设备发送探测帧,则在Listen State下,发送响应帧。After the time slice to be used by the mobile device in the Soft AP mode ends, the next time slice can be allocated to the mobile device for use in the P2P mode. The Find Phase of the mode is placed in the Listen State. If the second peer device sends a detection frame in the Listen State, a response frame is sent in the Listen State.

移动设备还在分配给所述P2P模式的时间片的开始时刻和结束时刻,在所述P2P模式下以广播方式发送第一广播帧给第二对端设备,所述第二对端设备是在P2P模式下工作的对端设备。所述第一对端设备和所述第二对端设备可以是不同的两个对端设备,也可以是同一对端设备。图7中的TBTT是指所述Soft AP模式的TBTT。图7中虚线用于指示时间与即时业务和被扫描动作的对应关系。The mobile device is still at the start time and end time of the time slice allocated to the P2P mode, and in the P2P mode broadcasts the first broadcast frame to the second peer device, and the second peer device is in The peer device that works in P2P mode. The first peer device and the second peer device may be two different peer devices, or may be the same peer device. The TBTT in FIG. 7 refers to the TBTT of the Soft AP mode. The dotted line in FIG. 7 is used to indicate the corresponding relationship between time, instant services and scanned actions.

S604:移动设备检测在所述P2P模式下的连接状态;所述连接状态包括:与对端设备连接和与对端设备未连接。S604: The mobile device detects a connection state in the P2P mode; the connection state includes: connected to the opposite end device and not connected to the opposite end device.

若检测结果为移动设备在所述P2P模式下未与对端设备连接,则执行步骤S605;If the detection result is that the mobile device is not connected to the peer device in the P2P mode, step S605 is performed;

S605:在分配给所述P2P模式的时间片内,移动设备将所述P2P模式的查找模式Find Phase置于监听模式Listen State。由于分配给所述P2P模式的时间片并未因为即时业务打碎,考虑到过多的广播帧也会导致空口的浪费,移动设备仅在分配给所述P2P模式的时间片内,将所述P2P模式的查找模式Find Phase置于监听模式Listen State,以改善移动设备在P2P模式下的被扫描效果。S605: Within the time slice allocated to the P2P mode, the mobile device sets the Find Phase of the search mode of the P2P mode to the listening mode Listen State. Since the time slice allocated to the P2P mode is not broken due to real-time services, and considering that too many broadcast frames will also lead to waste of air interfaces, the mobile device only uses the time slice allocated to the P2P mode to The Find Phase of the P2P mode is set to the listening mode Listen State to improve the scanning effect of the mobile device in the P2P mode.

请参阅图8,图8为本申请实施例提供的一种移动设备在所述Soft AP模式下无即时业务和在所述P2P模式下未与对端设备连接时的被扫描动作示意图。如图8所示,若移动设备在所述Soft AP模式下无即时业务,在所述Soft AP模式的TBTT以广播方式发送所述Soft AP模式的信标Beacon帧给第一对端设备时,时间片分配给移动设备在Soft AP模式下使用,所述第一对端设备是在Soft AP模式下工作的对端设备;在时间片分配给在移动设备在Soft AP模式下使用时,在分配给所述P2P模式的时间片内,将所述P2P模式的Find Phase置于Listen State,若在Listen State下监听到第二对端设备发送探测帧,则在ListenState下,发送响应帧。所述第一对端设备和所述第二对端设备可以是不同的两个对端设备,也可以是同一对端设备。图8中的TBTT是指所述Soft AP模式的TBTT。图8中虚线用于指示时间与即时业务和被扫描动作的对应关系。Please refer to FIG. 8 , FIG. 8 is a schematic diagram of a scanning action when a mobile device has no real-time service in the Soft AP mode and is not connected to a peer device in the P2P mode according to an embodiment of the present application. As shown in FIG. 8 , if the mobile device has no real-time service in the Soft AP mode, when the TBTT in the Soft AP mode sends the Beacon frame of the Soft AP mode to the first peer device in a broadcast manner, The time slice is allocated to the mobile device to be used in the Soft AP mode, and the first peer device is the peer device that works in the Soft AP mode; when the time slice is allocated to the mobile device to be used in the Soft AP mode, when the time slice is allocated to the mobile device for use in the Soft AP mode Within the time slice of the P2P mode, the Find Phase of the P2P mode is placed in the Listen State, and if the second peer device is monitored to send a detection frame in the Listen State, a response frame is sent in the ListenState. The first peer device and the second peer device may be two different peer devices, or may be the same peer device. The TBTT in FIG. 8 refers to the TBTT of the Soft AP mode. The dotted line in FIG. 8 is used to indicate the corresponding relationship between time, instant services and scanned actions.

在本申请实施例中,在移动设备在Soft AP模式下有即时业务的情况下,通过调整移动设备在P2P模式下的查找模式处于监听状态并在时间片分配给P2P模式的起止时刻发送第一广播帧,来增加移动设备在P2P模式下被扫描到的概率,从而改善移动设备被扫描到的效果。In the embodiment of the present application, when the mobile device has instant services in the Soft AP mode, by adjusting the search mode of the mobile device in the P2P mode to be in the listening state and sending the first and last time slices to the P2P mode Broadcast frames to increase the probability of mobile devices being scanned in P2P mode, thereby improving the effect of mobile devices being scanned.

请参阅图9,图9为本申请实施例提供的另一种对设备的扫描处理方法的流程示意图,本说明书提供了如实施例或流程图所述的方法操作步骤,但基于常规或者无创造性的劳动可以包括更多或者更少的操作步骤。实施例中列举的步骤顺序仅仅为众多步骤执行顺序中的一种方式,不代表唯一的执行顺序。在实际中的终端或者存储介质产品执行时,可以按照实施例或者附图所示的方法顺序执行或者并行执行。具体如图9所示,所述方法,应用于双网络模式共存的移动设备中,所述移动设备共存的双网络模式包括:Soft AP模式和P2P模式;所述方法包括如下步骤:Please refer to FIG. 9. FIG. 9 is a schematic flowchart of another scanning processing method for a device provided by an embodiment of the application. This specification provides the method operation steps as described in the embodiment or the flowchart, but based on conventional or non-creative methods The labor can include more or fewer operating steps. The sequence of steps enumerated in the embodiments is only one of the execution sequences of many steps, and does not represent the only execution sequence. When an actual terminal or storage medium product is executed, the methods shown in the embodiments or the accompanying drawings may be executed sequentially or in parallel. Specifically, as shown in FIG. 9 , the method is applied to a mobile device coexisting in dual network modes. The dual network modes coexisting in the mobile device include: Soft AP mode and P2P mode; the method includes the following steps:

S901:移动设备检测在所述P2P模式下是否有即时业务;S901: The mobile device detects whether there is an instant service in the P2P mode;

检测在所述P2P模式下是否有即时业务;详见步骤S401中检测在所述P2P模式下是否有即时业务的方法的描述,在此不做赘述。Detect whether there is an instant service in the P2P mode; refer to the description of the method for detecting whether there is an instant service in the P2P mode in step S401, which is not repeated here.

所述即时业务是指当前需处理的业务(或称网络业务);所述即时业务包括当前需处理的常态业务和当前需处理的敏感业务;所述敏感业务为延时敏感的业务,或所述敏感业务为抖动敏感的业务。所述延时是指网络延时,所述网络延时是指数据在网络传输介质中进行传输所用的时间,即从数据报文开始进入网络到数据报文开始离开网络之间的时间。所述抖动是指网络抖动,所述网络抖动是指网络中分组延迟的变化程度。所述网络延时和所述网络抖动通常用于判断网络中的QoS(Quality of Service,服务质量)。因此,若有网络业务(或称为应用)对网络延时比较敏感,则称该网络业务为延时敏感的业务;若有网络业务(或称应用)对网络抖动比较敏感,则称该网络业务为抖动敏感的业务。所述延时敏感的业务和所述抖动敏感的业务对网络服务质量的要求比较高,比如:实时通话业务等。所述网络业务若非敏感业务,则为常态业务。The real-time service refers to the service that needs to be processed currently (or network service); the real-time service includes the normal service that needs to be processed and the sensitive service that needs to be processed currently; the sensitive service is the delay-sensitive service, or the The above-mentioned sensitive services are jitter-sensitive services. The delay refers to the network delay, and the network delay refers to the time taken for data to be transmitted in the network transmission medium, that is, the time from when a data packet starts entering the network to when the data packet starts leaving the network. The jitter refers to network jitter, and the network jitter refers to the degree of variation in packet delay in the network. The network delay and the network jitter are usually used to judge QoS (Quality of Service, quality of service) in the network. Therefore, if a network service (or application) is sensitive to network delay, the network service is called a delay-sensitive service; if there is a network service (or application) that is sensitive to network jitter, the network service is called a delay-sensitive service. The service is a jitter-sensitive service. The delay-sensitive services and the jitter-sensitive services have relatively high requirements on network service quality, such as real-time call services. If the network service is not a sensitive service, it is a normal service.

本申请实施例中,移动设备在所述Soft AP模式和所述P2P模式下工作于不同的工作信道;移动设备在所述Soft AP模式和所述P2P模式下,分时分片地使用时间资源。In the embodiment of the present application, the mobile device works on different working channels in the Soft AP mode and the P2P mode; in the Soft AP mode and the P2P mode, the mobile device uses time resources by time and slice.

所述移动设备在所述Soft AP模式和所述P2P模式下,分时分片地使用时间资源,包括:In the Soft AP mode and the P2P mode, the mobile device uses time resources in a time-sliced manner, including:

移动设备在所述Soft AP模式和所述P2P模式下,分时复用时间片集合;所述时间片集合是由时间片组成的,所述时间片是将分配给所述双网络模式的时间资源划分得到的。可由MAC、PHY和RF给双网络模式分配时间资源。Soft AP模式和P2P模式共用一套RF和PHY资源以进行数据的收发。MAC、PHY和RF的时间资源需同时分给Soft AP模式和P2P模式中的任一网络模式,才能使移动设备在该网络模式下进行扫描或被扫描动作,或者进行业务处理等。In the Soft AP mode and the P2P mode, the mobile device time-division multiplexes a time slice set; the time slice set is composed of time slices, and the time slice is the time to be allocated to the dual network mode resources are divided. The dual network mode can be allocated time resources by MAC, PHY and RF. Soft AP mode and P2P mode share a set of RF and PHY resources for data transmission and reception. The time resources of MAC, PHY and RF need to be allocated to any network mode in Soft AP mode and P2P mode at the same time, so that the mobile device can scan or be scanned, or perform service processing in this network mode.

时间片可根据移动设备在所述Soft AP模式和所述P2P模式下的使用的时间比例进行划分,比如:移动设备在所述Soft AP模式和所述P2P模式下的使用的时间比例为3:7,则可将分配给所述双网络模式的时间资源按照3:7的时间比例依次划分为若干时间片,具体地,在时间顺序上排在第一位的时间片与排在第二位的时间片的时间占比为3:7,在时间顺序上排在第二位的时间片与排在第三位的时间片的时间占比为7:3,在时间顺序上排在第三位的时间片与排在第四位的时间片的时间占比为3:7,以此类推。然后,再将划分得到的时间片作为时间片集合的元素,组成时间片集合。需要说明的是,时间片集合中的时间片是按(时间片的)时间顺序被使用的。移动设备根据在两种网络模式下的工作状态和业务处理状态按时间调用对应的时间片以处理即时业务、调整被扫描或扫描动作。The time slice can be divided according to the time ratio of the use of the mobile device in the Soft AP mode and the P2P mode. For example, the time ratio of the mobile device in the Soft AP mode and the P2P mode is 3: 7, then the time resources allocated to the dual network mode can be divided into several time slices according to the time ratio of 3:7. The time ratio of the time slice is 3:7, the time ratio of the second time slice and the third time slice in the time sequence is 7:3, and the time slot is ranked third in the time sequence. The time ratio of the time slice in the first place and the time slice in the fourth place is 3:7, and so on. Then, the divided time slices are used as elements of the time slice set to form a time slice set. It should be noted that the time slices in the time slice set are used in chronological order (of time slices). According to the working state and service processing state in the two network modes, the mobile device calls the corresponding time slice according to time to process the instant service, adjust the scanned or scan action.

本申请实施例中,移动设备在所述Soft AP模式的信标预定传送时间TBTT发送所述Soft AP模式的信标Beacon帧;所述Beacon帧是以广播的方式发送的。In the embodiment of the present application, the mobile device sends the beacon Beacon frame of the Soft AP mode at the scheduled beacon transmission time TBTT of the Soft AP mode; the Beacon frame is sent in a broadcast manner.

在发送所述Soft AP模式的信标Beacon帧时或所述Soft AP模式有即时业务时,时间片分配给所述Soft AP使用;在所述P2P模式有即时业务时,时间片分配给所述P2P使用。When sending a beacon frame in the Soft AP mode or when there is an instant service in the Soft AP mode, the time slice is allocated to the Soft AP for use; when there is an instant service in the P2P mode, the time slice is allocated to the P2P use.

若检测结果为移动设备在所述P2P模式下有即时业务,则执行步骤S902。If the detection result is that the mobile device has instant services in the P2P mode, step S902 is executed.

S902:检测在所述Soft AP模式下的工作状态。S902: Detect the working state in the Soft AP mode.

所述工作状态包括未启动和已启动;可通过现有技术来检测所述Soft AP模式下的工作状态,在此不做赘述。The working state includes not activated and activated; the working state in the Soft AP mode can be detected by the prior art, which is not repeated here.

若检测结果为所述Soft AP模式未启动,则执行步骤S903;若检测结果为所述SoftAP模式已启动,则执行步骤S904;If the detection result is that the Soft AP mode is not activated, step S903 is executed; if the detection result is that the Soft AP mode is activated, step S904 is executed;

S903:在所述Soft AP模式启动时,根据所述Soft AP模式的TBTT与在所述P2P模式下的即时业务处理时间,调整所述Soft AP模式的TBTT周期。S903: When the Soft AP mode is started, adjust the TBTT period of the Soft AP mode according to the TBTT of the Soft AP mode and the instant service processing time in the P2P mode.

在所述Soft AP模式启动时,根据所述Soft AP模式的TBTT与在所述P2P模式下的即时业务处理时间,调整所述Soft AP模式的TBTT周期,包括如下步骤:When the Soft AP mode is started, adjusting the TBTT period of the Soft AP mode according to the TBTT of the Soft AP mode and the real-time service processing time in the P2P mode, including the following steps:

S1001:在所述Soft AP模式启动时,判断(默认的)所述Soft AP模式的TBTT是否位于在所述P2P模式下的即时业务处理时间内。S1001: When the Soft AP mode is started, determine (by default) whether the TBTT of the Soft AP mode is within the real-time service processing time in the P2P mode.

所述默认的所述Soft AP模式的TBTT周期是预置的,可由人为预置默认的所述Soft AP模式的TBTT周期,也可在移动设备出厂时预置默认的所述Soft AP模式的TBTT周期,在此不对默认的所述Soft AP模式的TBTT周期的预置方法进行限定。The default TBTT cycle of the Soft AP mode is preset, and the default TBTT cycle of the Soft AP mode can be preset manually, or the default TBTT of the Soft AP mode can be preset when the mobile device leaves the factory. period, and the default method for presetting the TBTT period in the Soft AP mode is not limited here.

所述移动设备中包括:The mobile device includes:

TBTT设定模块,用于设定所述Soft AP模式的TBTT周期,比如:设定(预置)默认的所述Soft AP模式的TBTT周期;TBTT setting module, used for setting the TBTT period of the Soft AP mode, such as: setting (presetting) the default TBTT period of the Soft AP mode;

TBTT周期判定模块,用于执行步骤S1001。The TBTT cycle determination module is used to execute step S1001.

若(默认的)所述Soft AP模式的TBTT位于在所述P2P模式下的即时业务处理时间内,即(默认的)所述Soft AP模式的TBTT周期与在所述P2P模式下的即时业务处理时间有冲突,则执行步骤S1002;若(默认的)所述Soft AP模式的TBTT位于在所述P2P模式下的即时业务处理时间外,即(默认的)所述Soft AP模式的TBTT周期与在所述P2P模式下的即时业务处理时间没有冲突,则执行步骤S1003。If the (default) TBTT of the Soft AP mode is within the instant service processing time in the P2P mode, that is, the (default) TBTT period of the Soft AP mode and the instant service processing in the P2P mode If there is a conflict in time, step S1002 is executed; if the (default) TBTT of the Soft AP mode is outside the real-time service processing time in the P2P mode, that is, the (default) TBTT period of the Soft AP mode is the same as that in the P2P mode. If there is no conflict in the instant service processing time in the P2P mode, step S1003 is executed.

S1002:减小(默认的)所述Soft AP模式的TBTT周期,以使所述Soft AP模式的TBTT位于在所述P2P模式下的即时业务处理时间外,避免与所述P2P模式下的即时业务处理时间冲突,还增加了发送的Beacon帧的数量,从而增加移动设备在所述Soft AP被扫描到的概率,改善移动设备被扫描的效果。S1002: Decrease (by default) the TBTT period of the Soft AP mode, so that the TBTT of the Soft AP mode is located outside the instant service processing time in the P2P mode, and avoids being related to the instant service in the P2P mode Handling time conflicts also increases the number of sent Beacon frames, thereby increasing the probability of the mobile device being scanned in the Soft AP and improving the scanning effect of the mobile device.

请参阅图10,图10为本申请实施例提供的一种移动设备在所述P2P模式下有即时业务和在所述Soft AP模式启动时(从未启动状态启动)的被扫描动作示意图。图10中,移动设备减小了所述Soft AP模式的TBTT周期,其中,TBTT为减小前的所述Soft AP模式的TBTT,TBTT’为减小后的所述Soft AP模式的TBTT。在图10所示的8个时间片的使用过程中,在所述Soft AP模式的TBTT周期减小前,移动设备在所述Soft AP模式下,可发送两个Beacon帧,在所述Soft AP模式的TBTT周期减小后,移动设备在所述Soft AP模式下,可发送四个Beacon帧。图10中的对端设备为在Soft AP模式下工作的对端设备,图10中的虚线用于表示时间与即时业务和被扫描动作的对应关系;带箭头的由移动设备在Soft AP模式下指向对端设备的实线表示在所述Soft AP模式的TBTT周期减小前,移动设备在所述Soft AP模式下,向对端设备发送Beacon帧;带箭头的点线表示在所述Soft AP模式的TBTT周期减小后,移动设备在所述Soft AP模式下,向对端设备发送Beacon帧。Please refer to FIG. 10 . FIG. 10 is a schematic diagram of scanning actions when a mobile device has instant services in the P2P mode and is activated in the Soft AP mode (started from an unactivated state) according to an embodiment of the present application. In FIG. 10, the mobile device reduces the TBTT period of the Soft AP mode, wherein TBTT is the TBTT of the Soft AP mode before the reduction, and TBTT' is the TBTT of the Soft AP mode after the reduction. During the use of the eight time slices shown in FIG. 10 , before the TBTT period of the Soft AP mode is reduced, the mobile device in the Soft AP mode can send two Beacon frames, and the mobile device can send two Beacon frames in the Soft AP mode. After the TBTT period of the mode is reduced, the mobile device can send four Beacon frames in the Soft AP mode. The peer device in Fig. 10 is the peer device working in Soft AP mode. The dotted line in Fig. 10 is used to represent the corresponding relationship between time, instant services and scanned actions; The solid line pointing to the opposite end device indicates that before the TBTT period of the Soft AP mode is reduced, the mobile device sends a Beacon frame to the opposite end device in the Soft AP mode; the dotted line with arrows indicates that the Soft AP is in the Soft AP mode. After the TBTT period of the mode is reduced, the mobile device sends a Beacon frame to the peer device in the Soft AP mode.

所述移动设备中还包括:The mobile device also includes:

TBTT周期调整模块,用于执行步骤S1002,并将所述TBTT设定模块中设定的所述Soft AP模式的TBTT周期替换为调整后的所述Soft AP模式的TBTT周期,以使移动设备在Soft AP模式下根据调整后的所述Soft AP模式的TBTT周期发送Beacon帧。其中,所述TBTT设定模块与所述TBTT周期判定模块连接,所述TBTT周期判定模块与所述TBTT周期调整模块连接,所述TBTT周期调整模块与所述TBTT设定模块连接。The TBTT cycle adjustment module is configured to perform step S1002, and replace the TBTT cycle of the Soft AP mode set in the TBTT setting module with the adjusted TBTT cycle of the Soft AP mode, so that the mobile device is In the Soft AP mode, the Beacon frame is sent according to the adjusted TBTT period of the Soft AP mode. Wherein, the TBTT setting module is connected to the TBTT cycle determination module, the TBTT cycle determination module is connected to the TBTT cycle adjustment module, and the TBTT cycle adjustment module is connected to the TBTT setting module.

需要说明的是,默认的所述Soft AP模式的TBTT的起始位置是预置的,可由人为预置默认的所述Soft AP模式的TBTT的起始位置,也可在移动设备出厂时预置默认的所述Soft AP模式的TBTT的起始位置,在此不对默认的所述Soft AP模式的TBTT的起始位置的预置方法进行限定。所述Soft AP模式的TBTT的起始位置是指所述Soft AP模式启动后移动设备在所述Soft AP模式下,第一次发送Beacon帧的时刻,也就是第一个Soft AP模式的TBTT。在执行步骤S1002时,(默认的)所述Soft AP模式的TBTT的起始位置可不做调整,也可根据(默认的)所述Soft AP模式的TBTT的位置的实际情况配合步骤S1002做相应的调整,以确保调整后的所述Soft AP模式的TBTT位于在所述P2P模式下的即时业务处理时间外,比如:在(默认的)所述Soft AP模式的TBTT的起始位置位于在所述P2P模式下的即时业务处理时间外时,直接执行步骤S1002;又比如:在(默认的)所述Soft AP模式的TBTT的起始位置位于在所述P2P模式下的即时业务处理时间内时,将所述Soft AP模式的TBTT的起始位置提前或延后以避开在所述P2P模式下的即时业务处理时间,即使所述Soft AP模式的TBTT的起始位置位于在所述P2P模式下的即时业务处理时间外,然后再执行步骤S1002。It should be noted that the default starting position of the TBTT in the Soft AP mode is preset, and the default starting position of the TBTT in the Soft AP mode can be preset manually, or it can be preset when the mobile device leaves the factory. The default starting position of the TBTT in the Soft AP mode, and a method for presetting the default starting position of the TBTT in the Soft AP mode is not limited here. The starting position of the TBTT in the Soft AP mode refers to the moment when the mobile device sends a Beacon frame for the first time in the Soft AP mode after the Soft AP mode is activated, that is, the first TBTT in the Soft AP mode. When step S1002 is executed, the starting position of the TBTT in the (default) Soft AP mode may not be adjusted, or it may be adjusted according to the actual situation of the position of the TBTT in the (default) Soft AP mode in conjunction with step S1002 Adjust to ensure that the adjusted TBTT of the Soft AP mode is located outside the real-time service processing time in the P2P mode, for example: the starting position of the (default) TBTT of the Soft AP mode is located in the When the instant service processing time in the P2P mode is outside, step S1002 is directly executed; for another example: when the starting position of the TBTT in the (default) Soft AP mode is within the instant service processing time in the P2P mode, Advance or delay the start position of the TBTT in the Soft AP mode to avoid the instant service processing time in the P2P mode, even if the start position of the TBTT in the Soft AP mode is in the P2P mode out of the real-time business processing time, and then execute step S1002.

S1003:按照默认的Soft AP模式的TBTT周期来启动所述Soft AP模式。S1003: Start the Soft AP mode according to the default TBTT cycle of the Soft AP mode.

S904:在所述Soft AP模式下有即时业务时,在所述Soft AP模式下发送第二广播帧,所述第二广播帧可为Probe Response(探测响应)广播帧。所述第二广播帧可以广播方式发送。所述第二广播帧中可包含移动设备在Soft AP模式下的能力信息,比如:处理网络业务的能力信息、进行数据传输的能力信息等。当在Soft AP模式下的对端设备接收到该第二广播帧,并解析该第二广播帧后,就能发现该移动设备。S904: When there is an instant service in the Soft AP mode, send a second broadcast frame in the Soft AP mode, where the second broadcast frame may be a Probe Response (probe response) broadcast frame. The second broadcast frame may be sent in a broadcast manner. The second broadcast frame may include capability information of the mobile device in the Soft AP mode, such as capability information for processing network services, capability information for data transmission, and the like. When the peer device in the Soft AP mode receives the second broadcast frame and parses the second broadcast frame, it can discover the mobile device.

所述在所述Soft AP模式下发送第二广播帧,包括:The sending of the second broadcast frame in the Soft AP mode includes:

S1101:在所述Soft AP模式获得时间片时,判断第一时间间隔是否大于第一阈值。S1101: When a time slice is obtained in the Soft AP mode, determine whether a first time interval is greater than a first threshold.

所述在所述Soft AP模式获得时间片时是指在分配给所述Soft AP模式的时间片的起始时刻。所述第一时间间隔为第一时刻与在第一时刻之前距离所述第一时刻最近的所述Soft AP模式的TBTT的时间间隔(前一所述Soft AP模式的TBTT),所述第一时刻为分配给所述Soft AP模式的时间片的起始时刻。所述第一阈值可根据所述Soft AP模式的TBTT周期和在P2P模式下的即时业务处理时间设定,也可由移动设备默认设置,也可人为设定,在此不对第一阈值的设定方法做限定。The time slice obtained in the Soft AP mode refers to the start time of the time slice allocated to the Soft AP mode. The first time interval is the time interval between the first moment and the TBTT of the Soft AP mode that is closest to the first moment before the first moment (the previous TBTT of the Soft AP mode), the first The time is the start time of the time slice allocated to the Soft AP mode. The first threshold can be set according to the TBTT cycle of the Soft AP mode and the real-time service processing time in the P2P mode, or can be set by default by the mobile device, or can be set manually, and the first threshold is not set here. method is limited.

若第一时间间隔大于第一阈值,则执行步骤S1102;若第一时间间隔小于或等于第一阈值,则不做处理。If the first time interval is greater than the first threshold, step S1102 is performed; if the first time interval is less than or equal to the first threshold, no processing is performed.

S1102:在所述Soft AP模式下发送第二广播帧。S1102: Send a second broadcast frame in the Soft AP mode.

S1103:在所述Soft AP模式失去所述时间片时,判断第二时间间隔是否大于第二阈值。S1103: When the Soft AP mode loses the time slice, determine whether the second time interval is greater than a second threshold.

所述在所述Soft AP模式获得时间片时是指在分配给所述Soft AP模式的时间片的结束时刻。所述第二时间间隔为第二时刻与在第二时刻之后的距离第二时刻最近的所述Soft AP模式的TBTT的时间间隔(后一所述Soft AP模式的TBTT),所述第二时刻为在分配给所述Soft AP模式的时间片的结束时刻。所述第二阈值可根据所述Soft AP模式的TBTT周期和在P2P模式下的即时业务处理时间设定,也可由移动设备默认设置,也可人为设定,在此不对第二阈值的设定方法做限定。第一阈值和第二阈值可以相同,也可以不同。The obtaining of the time slice in the Soft AP mode refers to the end time of the time slice allocated to the Soft AP mode. The second time interval is the time interval between the second time and the TBTT in the Soft AP mode that is closest to the second time after the second time (the latter TBTT in the Soft AP mode), and the second time is the end time of the time slice allocated to the Soft AP mode. The second threshold can be set according to the TBTT cycle of the Soft AP mode and the real-time service processing time in the P2P mode, or can be set by default by the mobile device, or can be set manually, and the second threshold is not set here. method is limited. The first threshold and the second threshold may be the same or different.

若第二时间间隔大于第二阈值,则执行步骤S1104;若第二时间间隔小于或等于第二阈值,则不做处理。If the second time interval is greater than the second threshold, step S1104 is performed; if the second time interval is less than or equal to the second threshold, no processing is performed.

S1104:所述Soft AP模式下发送第二广播帧。S1104: Send the second broadcast frame in the Soft AP mode.

步骤S1101至S1102描述的是第一时间间隔与第一阈值的比较判断机制;步骤S1103至S1104描述的是第二时间间隔与第二阈值的比较判断机制。Steps S1101 to S1102 describe the comparison judgment mechanism between the first time interval and the first threshold; steps S1103 to S1104 describe the comparison judgment mechanism between the second time interval and the second threshold.

请参阅图11,图11为本申请实施例提供的一种移动设备在所述P2P模式下有即时业务和在所述Soft AP模式已启动且有即时业务时的被扫描动作示意图。图11中,第一时间间隔大于第一阈值,第二时间间隔大于第二阈值。在移动设备在所述P2P模式下有即时业务和在所述Soft AP模式已启动且有即时业务时,通过增加第二广播帧,可以增加移动设备在Soft AP模式下被扫描到的概率,从而改善移动被扫描的效果。而第一时间间隔与第一阈值的比较判断机制避免了移动设备在Soft AP模式下已发送Beacon帧的短时间内再次发送第二广播帧,减少对MAC、PHY和RF资源的浪费。第二时间间隔与第二阈值的比较判断机制避免了移动设备在Soft AP模式下即将发送Beacon帧的短时间内发送第二广播帧,减少对MAC、PHY和RF资源的浪费。图11中的对端设备为在Soft AP模式下工作的对端设备,图11中的虚线用于表示时间与即时业务和被扫描动作的对应关系。Please refer to FIG. 11 . FIG. 11 is a schematic diagram of a scanning action of a mobile device having an instant service in the P2P mode and when the Soft AP mode is activated and has an instant service according to an embodiment of the present application. In FIG. 11 , the first time interval is greater than the first threshold, and the second time interval is greater than the second threshold. When the mobile device has instant services in the P2P mode and when the Soft AP mode has been activated and has instant services, by adding the second broadcast frame, the probability of the mobile device being scanned in the Soft AP mode can be increased, thereby increasing the probability of the mobile device being scanned in the Soft AP mode. Improve the effect of mobile being scanned. The comparison and judgment mechanism between the first time interval and the first threshold prevents the mobile device from sending the second broadcast frame again within a short time when the Beacon frame has been sent in the Soft AP mode, reducing the waste of MAC, PHY and RF resources. The comparison and judgment mechanism between the second time interval and the second threshold prevents the mobile device from sending the second broadcast frame in a short time when the mobile device is about to send the Beacon frame in the Soft AP mode, and reduces the waste of MAC, PHY and RF resources. The peer device in FIG. 11 is the peer device working in the Soft AP mode, and the dotted line in FIG. 11 is used to represent the corresponding relationship between time, instant services and scanned actions.

在本申请实施例中,在移动设备在P2P模式下有即时业务的情况下,通过调整移动设备在Soft AP模式下的被扫描动作,来增加移动设备在Soft AP模式下被扫描到的概率,从而改善移动设备被扫描到的效果。In the embodiment of the present application, when the mobile device has instant services in the P2P mode, by adjusting the scanning action of the mobile device in the Soft AP mode, the probability of the mobile device being scanned in the Soft AP mode is increased, Thereby improving the scanning effect of mobile devices.

请参阅图12,图12为本申请实施例提供的一种移动设备的结构示意图,所述移动设备为双网络模式共存的移动设备,所述移动设备共存的双网络模式包括:无线接入点Soft AP模式和点对点P2P模式。Please refer to FIG. 12. FIG. 12 is a schematic structural diagram of a mobile device according to an embodiment of the present application. The mobile device is a mobile device that coexists in a dual network mode, and the dual network mode coexistence of the mobile device includes: a wireless access point Soft AP mode and peer-to-peer P2P mode.

所述移动设备包括:存储装置1201和处理器1202;并且所述用户设备还可以包括数据接口1203、用户接口1204。各个硬件之间还可以通过各种类型的总线建立连接。The mobile device includes: a storage device 1201 and a processor 1202 ; and the user equipment may further include a data interface 1203 and a user interface 1204 . Various types of buses can also be used to establish connections between various hardwares.

通过所述数据接口1203,用户设备可以和其他终端、服务器等设备之间交互数据,所述用户接口1204则可以提供触摸显示屏、物理按键等实现用户与用户设备之间的人机交互。Through the data interface 1203, the user equipment can exchange data with other terminals, servers and other devices, and the user interface 1204 can provide a touch display screen, physical buttons, etc. to realize human-computer interaction between the user and the user equipment.

所述存储装置1201可以包括易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);存储装置1201也可以包括非易失性存储器(non-volatile memory),例如快闪存储器(flash memory),固态硬盘(solid-state drive,SSD)等;存储装置1201还可以包括上述种类的存储器的组合。The storage device 1201 may include a volatile memory (volatile memory), such as random-access memory (RAM); the storage device 1201 may also include a non-volatile memory (non-volatile memory), such as a flash memory. Flash memory (flash memory), solid-state drive (solid-state drive, SSD), etc.; the storage device 1201 may also include a combination of the above-mentioned types of memory.

所述处理器1202可以是中央处理器(central processing unit,CPU)。所述处理器1202还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)等。上述PLD可以是现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)等。The processor 1202 may be a central processing unit (CPU). The processor 1202 may further include a hardware chip. The above-mentioned hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or the like. The above-mentioned PLD may be a field-programmable gate array (FPGA), a general-purpose array logic (generic array logic, GAL), or the like.

对于移动设备在所述Soft AP模式下有即时业务和无即时业务的情况:For the situation that the mobile device has instant service and no instant service in the Soft AP mode:

所述存储装置1201,用于存储程序指令;The storage device 1201 is used to store program instructions;

所述处理器1202,在调用所述存储指令时,用于若在所述Soft AP模式下有即时业务,则检测在所述P2P模式下是否有即时业务;所述即时业务是指当前需处理的业务;The processor 1202, when invoking the storage instruction, is used to detect whether there is an instant service in the P2P mode if there is an instant service in the Soft AP mode; the instant service refers to the current need to be processed Business;

若检测结果为在所述P2P模式下无即时业务,则在分配给所述P2P模式的时间片内,将所述P2P模式的查找模式Find Phase置于监听状态Listen State。If the detection result is that there is no real-time service in the P2P mode, within the time slice allocated to the P2P mode, the Find Phase of the search mode of the P2P mode is placed in the listening state Listen State.

在一个实施例中,所述处理器1202在所述Soft AP模式和所述P2P模式下工作于不同的工作信道;所述处理器1202在所述Soft AP模式和所述P2P模式下,分时分片地使用时间资源。In an embodiment, the processor 1202 works on different working channels in the Soft AP mode and the P2P mode; the processor 1202 in the Soft AP mode and the P2P mode divides time Use time resources in pieces.

在一个实施例中,所述处理器1202,还用于若在所述Soft AP模式下无即时业务,则检测在所述P2P模式下的连接状态;In one embodiment, the processor 1202 is further configured to detect the connection state in the P2P mode if there is no instant service in the Soft AP mode;

若检测结果为在所述P2P模式下未与对端设备连接,则在分配给所述P2P模式的时间片内,将所述P2P模式的查找模式Find Phase置于监听模式Listen State。If the detection result is that it is not connected to the peer device in the P2P mode, within the time slice allocated to the P2P mode, the search mode Find Phase of the P2P mode is set to the listening mode Listen State.

在一个实施例中,所述处理器1202,还用于若检测结果为在所述P2P模式下未与对端设备连接,则在分配给所述P2P模式的时间片内,将所述P2P模式的查找模式Find Phase置于监听模式Listen State,在分配给所述P2P模式的时间片的开始时刻和结束时刻,在所述P2P模式下发送第一广播帧。In one embodiment, the processor 1202 is further configured to, if the detection result is that the peer device is not connected in the P2P mode, change the P2P mode to the P2P mode within the time slice allocated to the P2P mode The search mode Find Phase is placed in the listening mode Listen State, and the first broadcast frame is sent in the P2P mode at the start time and end time of the time slice allocated to the P2P mode.

在一个实施例中,所述处理器1202,具体用于在所述Soft AP模式和所述P2P模式下,分时复用时间片集合;所述时间片集合是由时间片组成的,所述时间片是将分配给所述双网络模式的时间资源划分得到的。In an embodiment, the processor 1202 is specifically configured to time-division multiplex a time slice set in the Soft AP mode and the P2P mode; the time slice set is composed of time slices, and the The time slice is obtained by dividing the time resources allocated to the dual network mode.

在一个实施例中,所述处理器1202在所述Soft AP模式的信标预定传送时间TBTT发送所述Soft AP模式的信标Beacon帧;In one embodiment, the processor 1202 sends the beacon Beacon frame of the Soft AP mode at the scheduled beacon transmission time TBTT of the Soft AP mode;

所述处理器1202在发送所述Soft AP模式的信标Beacon帧时或所述Soft AP模式有即时业务时,时间片分配给所述Soft AP使用;When the processor 1202 sends a beacon frame in the Soft AP mode or when there is an instant service in the Soft AP mode, a time slice is allocated to the Soft AP for use;

所述处理器1202在所述P2P模式有即时业务时,时间片分配给所述P2P使用。When the processor 1202 has instant services in the P2P mode, a time slice is allocated to the P2P for use.

在一个实施例中,所述即时业务包括当前需处理的常态业务和当前需处理的敏感业务;所述敏感业务为延时敏感的业务,或所述敏感业务为抖动敏感的业务。In one embodiment, the immediate service includes a current normal service to be processed and a current sensitive service to be processed; the sensitive service is a delay-sensitive service, or the sensitive service is a jitter-sensitive service.

对于移动设备在所述P2P模式下有即时业务的情况:For the case that the mobile device has instant services in the P2P mode:

所述存储装置1201,用于存储程序指令;The storage device 1201 is used to store program instructions;

所述处理器1202,在调用所述存储指令时,用于若在所述P2P模式下有即时业务,则检测在所述Soft AP模式下的工作状态;所述即时业务是指当前需处理的业务;The processor 1202, when invoking the storage instruction, is used to detect the working state in the Soft AP mode if there is an instant service in the P2P mode; the instant service refers to the current need to be processed. business;

根据在所述Soft AP模式下的工作状态的检测结果,调整在所述Soft AP模式下的被扫描动作。According to the detection result of the working state in the Soft AP mode, the scanned action in the Soft AP mode is adjusted.

在一个实施例中,所述处理器1202在所述Soft AP模式和所述P2P模式下工作于不同的工作信道;所述处理器1202在所述Soft AP模式和所述P2P模式下,分时分片地使用时间资源。In an embodiment, the processor 1202 works on different working channels in the Soft AP mode and the P2P mode; the processor 1202 in the Soft AP mode and the P2P mode divides time Use time resources in pieces.

在一个实施例中,所述处理器1202,具体用于在所述Soft AP模式和所述P2P模式下,分时复用时间片集合;所述时间片集合是由时间片组成的,所述时间片是将分配给所述双网络模式的时间资源划分得到的。In an embodiment, the processor 1202 is specifically configured to time-division multiplex a time slice set in the Soft AP mode and the P2P mode; the time slice set is composed of time slices, and the The time slice is obtained by dividing the time resources allocated to the dual network mode.

在一个实施例中,所述处理器1202在所述Soft AP模式的信标预定传送时间TBTT发送所述Soft AP模式的信标Beacon帧;In one embodiment, the processor 1202 sends the beacon Beacon frame of the Soft AP mode at the scheduled beacon transmission time TBTT of the Soft AP mode;

所述处理器1202在发送所述Soft AP模式的信标Beacon帧时或所述Soft AP模式有即时业务时,时间片分配给所述Soft AP使用;When the processor 1202 sends a beacon frame in the Soft AP mode or when there is an instant service in the Soft AP mode, a time slice is allocated to the Soft AP for use;

所述处理器1202在所述P2P模式有即时业务时,时间片分配给所述P2P使用。When the processor 1202 has instant services in the P2P mode, a time slice is allocated to the P2P for use.

在一个实施例中,所述处理器1202,具体用于若检测结果为所述Soft AP模式未启动,则在所述Soft AP模式启动时,根据所述Soft AP模式的TBTT与在所述P2P模式下的即时业务处理时间,调整所述Soft AP模式的TBTT周期。In one embodiment, the processor 1202 is specifically configured to: if the detection result is that the Soft AP mode is not activated, when the Soft AP mode is activated, according to the TBTT of the Soft AP mode and the P2P mode The instant service processing time in the mode, adjust the TBTT cycle of the Soft AP mode.

在一个实施例中,所述处理器1202,具体用于若所述Soft AP模式的TBTT位于在所述P2P模式下的即时业务处理时间内,则减小所述Soft AP模式的TBTT周期,以使所述SoftAP模式的TBTT位于在所述P2P模式下的即时业务处理时间外。In one embodiment, the processor 1202 is specifically configured to reduce the TBTT period of the Soft AP mode if the TBTT of the Soft AP mode is within the real-time service processing time in the P2P mode, to The TBTT in the SoftAP mode is placed outside the instant service processing time in the P2P mode.

在一个实施例中,所述处理器1202,具体用于若检测结果为所述Soft AP模式已启动,则在所述Soft AP模式下有即时业务时,在所述Soft AP模式下发送第二广播帧。In one embodiment, the processor 1202 is specifically configured to, if the detection result is that the Soft AP mode has been activated, when there is an instant service in the Soft AP mode, send the second message in the Soft AP mode broadcast frame.

在一个实施例中,所述处理器1202,具体用于在所述Soft AP模式获得时间片时,若第一时间间隔大于第一阈值,则在所述Soft AP模式下发送第二广播帧;所述第一时间间隔为第一时刻与在第一时刻之前距离所述第一时刻最近的所述Soft AP模式的TBTT的时间间隔,所述第一时刻为分配给所述Soft AP模式的时间片的起始时刻。In one embodiment, the processor 1202 is specifically configured to send a second broadcast frame in the Soft AP mode if the first time interval is greater than a first threshold when the time slice is obtained in the Soft AP mode; The first time interval is the time interval between the first moment and the TBTT of the Soft AP mode that is closest to the first moment before the first moment, and the first moment is the time allocated to the Soft AP mode the beginning of the film.

在一个实施例中,所述处理器1202,具体用于在所述Soft AP模式失去所述时间片时,若第二时间间隔大于第二阈值,则所述Soft AP模式下发送第二广播帧;所述第二时间间隔为第二时刻与在第二时刻之后的距离第二时刻最近的所述Soft AP模式的TBTT的时间间隔,所述第二时刻为在分配给所述Soft AP模式的时间片的结束时刻。In one embodiment, the processor 1202 is specifically configured to send a second broadcast frame in the Soft AP mode if the second time interval is greater than a second threshold when the time slice is lost in the Soft AP mode The second time interval is the time interval between the second moment and the TBTT of the Soft AP pattern that is closest to the second moment after the second moment, and the second moment is the time interval assigned to the Soft AP pattern. The end time of the time slice.

再请参见图13,图13为本申请实施例提供的一种对设备的扫描处理装置的结构示意图,该对设备的扫描处理装置可设置于移动设备或智能终端中,该对设备的扫描处理装置可以是运行于移动设备或智能终端中的一个计算机程序(包括程序代码),也可以是包含在移动设备或智能终端中的一个实体装置。该对设备的扫描处理装置可以执行本申请图4(步骤S401至S402)、图6(步骤S601至S605)、图5(步骤S501至S502)和图9(步骤S901至S904)任一实施例所描述的方法。Please refer to FIG. 13 again. FIG. 13 is a schematic structural diagram of an apparatus for scanning and processing equipment provided by an embodiment of the present application. The scanning and processing apparatus for equipment may be set in a mobile device or a smart terminal. The apparatus may be a computer program (including program code) running in a mobile device or a smart terminal, or may be a physical device included in the mobile device or the smart terminal. The scanning processing apparatus for the pair of devices may execute any of the embodiments in FIG. 4 (steps S401 to S402 ), FIG. 6 (steps S601 to S605 ), FIG. 5 (steps S501 to S502 ) and FIG. 9 (steps S901 to S904 ) of the present application the described method.

所述设备为双网络模式共存的移动设备,所述移动设备共存的双网络模式包括:无线接入点Soft AP模式和点对点P2P模式。具体请参见图13,该对设备的扫描处理装置包括:检测模块1301和调整模块1302。The device is a mobile device coexisting in a dual network mode, and the dual network mode coexisting in the mobile device includes: a wireless access point Soft AP mode and a point-to-point P2P mode. For details, please refer to FIG. 13 , the scanning processing apparatus of the pair of devices includes: a detection module 1301 and an adjustment module 1302 .

对于移动设备在所述Soft AP模式下有即时业务和无即时业务的情况:For the situation that the mobile device has instant service and no instant service in the Soft AP mode:

所述检测模块1301,用于若在所述Soft AP模式下有即时业务,则检测在所述P2P模式下是否有即时业务;所述即时业务是指当前需处理的业务;The detection module 1301 is configured to detect whether there is an instant service in the P2P mode if there is an instant service in the Soft AP mode; the instant service refers to a service that needs to be processed currently;

所述调整模块1302,用于若检测结果为在所述P2P模式下无即时业务,则在分配给所述P2P模式的时间片内,将所述P2P模式的查找模式Find Phase置于监听状态ListenState。The adjustment module 1302 is configured to, if the detection result is that there is no real-time service in the P2P mode, within the time slice allocated to the P2P mode, place the Find Phase of the search mode of the P2P mode in the listening state ListenState .

在一个实施例中,所述调整模块1302,用于使所述对设备的扫描处理装置在所述Soft AP模式和所述P2P模式下工作于不同的工作信道;所述对设备的扫描处理装置在所述Soft AP模式和所述P2P模式下,分时分片地使用时间资源。In one embodiment, the adjustment module 1302 is configured to make the device scanning processing device work on different working channels in the Soft AP mode and the P2P mode; the device scanning processing device In the Soft AP mode and the P2P mode, time resources are used in a time-segmented manner.

在一个实施例中,所述检测模块1301,还用于若在所述Soft AP模式下无即时业务,则检测在所述P2P模式下的连接状态;In one embodiment, the detection module 1301 is further configured to detect the connection state in the P2P mode if there is no real-time service in the Soft AP mode;

所述调整模块1302,还用于若检测结果为在所述P2P模式下未与对端设备连接,则在分配给所述P2P模式的时间片内,将所述P2P模式的查找模式Find Phase置于监听模式Listen State。The adjustment module 1302 is further configured to set the search mode Find Phase of the P2P mode within the time slice allocated to the P2P mode if the detection result is that it is not connected to the peer device in the P2P mode. In listening mode Listen State.

在一个实施例中,所述调整模块1302,还用于若检测结果为在所述P2P模式下无即时业务,则在分配给所述P2P模式的时间片内,将所述P2P模式的查找模式Find Phase置于监听状态Listen State,在分配给所述P2P模式的时间片的开始时刻和结束时刻,在所述P2P模式下发送第一广播帧。In one embodiment, the adjustment module 1302 is further configured to, if the detection result is that there is no real-time service in the P2P mode, within the time slice allocated to the P2P mode, adjust the search mode of the P2P mode Find Phase is placed in the listening state Listen State, and the first broadcast frame is sent in the P2P mode at the start time and end time of the time slice allocated to the P2P mode.

在一个实施例中,所述调整模块1302,具体用于使所述对设备的扫描处理装置在所述Soft AP模式和所述P2P模式下,分时复用时间片集合;所述时间片集合是由时间片组成的,所述时间片是将分配给所述双网络模式的时间资源划分得到的。In one embodiment, the adjustment module 1302 is specifically configured to enable the scanning processing apparatus for the pair of devices to time-division multiplex a set of time slices in the Soft AP mode and the P2P mode; the set of time slices is composed of time slices obtained by dividing the time resources allocated to the dual network mode.

在一个实施例中,所述调整模块1302,用于在所述Soft AP模式的信标预定传送时间TBTT发送所述Soft AP模式的信标Beacon帧;In one embodiment, the adjustment module 1302 is configured to send the Beacon frame of the Soft AP mode at the scheduled beacon transmission time TBTT of the Soft AP mode;

在发送所述Soft AP模式的信标Beacon帧时或所述Soft AP模式有即时业务时,时间片分配给所述Soft AP使用;When sending the beacon frame of the Soft AP mode or when the Soft AP mode has instant services, the time slice is allocated to the Soft AP for use;

在所述P2P模式有即时业务时,时间片分配给所述P2P使用。When there is instant service in the P2P mode, a time slice is allocated to the P2P for use.

在一个实施例中,所述即时业务包括当前需处理的常态业务和当前需处理的敏感业务;所述敏感业务为延时敏感的业务,或所述敏感业务为抖动敏感的业务。In one embodiment, the immediate service includes a current normal service to be processed and a current sensitive service to be processed; the sensitive service is a delay-sensitive service, or the sensitive service is a jitter-sensitive service.

对于移动设备在所述P2P模式下有即时业务的情况:For the case that the mobile device has instant services in the P2P mode:

所述检测模块1301,用于若在所述P2P模式下有即时业务,则检测在所述Soft AP模式下的工作状态;所述即时业务是指当前需处理的业务;The detection module 1301 is configured to detect the working state in the Soft AP mode if there is an instant service in the P2P mode; the instant service refers to a service that needs to be processed currently;

所述调整模块1302,用于根据在所述Soft AP模式下的工作状态的检测结果,调整在所述Soft AP模式下的被扫描动作。The adjustment module 1302 is configured to adjust the scanned action in the Soft AP mode according to the detection result of the working state in the Soft AP mode.

在一个实施例中,所述调整模块1302,用于使所述对设备的扫描处理装置在所述Soft AP模式和所述P2P模式下工作于不同的工作信道;所述对设备的扫描处理装置在所述Soft AP模式和所述P2P模式下,分时分片地使用时间资源。In one embodiment, the adjustment module 1302 is configured to make the device scanning processing device work on different working channels in the Soft AP mode and the P2P mode; the device scanning processing device In the Soft AP mode and the P2P mode, time resources are used in a time-segmented manner.

在一个实施例中,所述对设备的扫描处理装置具体在所述Soft AP模式和所述P2P模式下,分时复用时间片集合;所述时间片集合是由时间片组成的,所述时间片是将分配给所述双网络模式的时间资源划分得到的。In an embodiment, the apparatus for scanning and processing devices specifically in the Soft AP mode and the P2P mode, time-division multiplexes a time slice set; the time slice set is composed of time slices, and the The time slice is obtained by dividing the time resources allocated to the dual network mode.

在一个实施例中,所述调整模块1302,用于在所述Soft AP模式的信标预定传送时间TBTT发送所述Soft AP模式的信标Beacon帧;In one embodiment, the adjustment module 1302 is configured to send the Beacon frame of the Soft AP mode at the scheduled beacon transmission time TBTT of the Soft AP mode;

在发送所述Soft AP模式的信标Beacon帧时或所述Soft AP模式有即时业务时,时间片分配给所述Soft AP使用;When sending the beacon frame of the Soft AP mode or when the Soft AP mode has instant services, the time slice is allocated to the Soft AP for use;

在所述P2P模式有即时业务时,时间片分配给所述P2P使用。When there is instant service in the P2P mode, a time slice is allocated to the P2P for use.

在一个实施例中,所述调整模块1302,具体用于若检测结果为所述Soft AP模式未启动,则在所述Soft AP模式启动时,根据所述Soft AP模式的TBTT与在所述P2P模式下的即时业务处理时间,调整所述Soft AP模式的TBTT周期。In one embodiment, the adjustment module 1302 is specifically configured to, if the detection result is that the Soft AP mode is not activated, when the Soft AP mode is activated, according to the TBTT of the Soft AP mode and the P2P mode when the Soft AP mode is activated The instant service processing time in the mode, adjust the TBTT cycle of the Soft AP mode.

在一个实施例中,所述调整模块1302,具体用于若所述Soft AP模式的TBTT位于在所述P2P模式下的即时业务处理时间内,则减小所述Soft AP模式的TBTT周期,以使所述Soft AP模式的TBTT位于在所述P2P模式下的即时业务处理时间外。In an embodiment, the adjustment module 1302 is specifically configured to reduce the TBTT period of the Soft AP mode if the TBTT of the Soft AP mode is within the instant service processing time in the P2P mode, to The TBTT in the Soft AP mode is placed outside the instant service processing time in the P2P mode.

在一个实施例中,所述调整模块1302,具体用于若检测结果为所述Soft AP模式已启动,则在所述Soft AP模式下有即时业务时,在所述Soft AP模式下发送第二广播帧。In one embodiment, the adjustment module 1302 is specifically configured to send a second message in the Soft AP mode when there is an instant service in the Soft AP mode if the detection result is that the Soft AP mode has been activated. broadcast frame.

在一个实施例中,所述调整模块1302,具体用于在所述Soft AP模式获得时间片时,若第一时间间隔大于第一阈值,则在所述Soft AP模式下发送第二广播帧;所述第一时间间隔为第一时刻与在第一时刻之前距离所述第一时刻最近的所述Soft AP模式的TBTT的时间间隔,所述第一时刻为分配给所述Soft AP模式的时间片的起始时刻。In one embodiment, the adjustment module 1302 is specifically configured to send a second broadcast frame in the Soft AP mode if the first time interval is greater than a first threshold when the time slice is obtained in the Soft AP mode; The first time interval is the time interval between the first moment and the TBTT of the Soft AP mode that is closest to the first moment before the first moment, and the first moment is the time allocated to the Soft AP mode the beginning of the film.

在一个实施例中,所述调整模块1302,具体用于在所述Soft AP模式失去所述时间片时,若第二时间间隔大于第二阈值,则所述Soft AP模式下发送第二广播帧;所述第二时间间隔为第二时刻与在第二时刻之后的距离第二时刻最近的所述Soft AP模式的TBTT的时间间隔,所述第二时刻为在分配给所述Soft AP模式的时间片的结束时刻。In one embodiment, the adjustment module 1302 is specifically configured to send a second broadcast frame in the Soft AP mode if the second time interval is greater than a second threshold when the time slice is lost in the Soft AP mode The second time interval is the time interval between the second moment and the TBTT of the Soft AP pattern that is closest to the second moment after the second moment, and the second moment is the time interval assigned to the Soft AP pattern. The end time of the time slice.

相应地,本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质用于存储计算机程序,所述计算机程序使得计算机执行本申请图4(步骤S401至S402)和图6(步骤S601至S605)中任意实施例描述的方法。可以理解的是,此处的计算机存储介质既可以包括智能终端中的内置存储介质,当然也可以包括智能终端所支持的扩展存储介质。计算机存储介质提供存储空间,该存储空间存储了智能终端的操作系统。并且,在该存储空间中还存放了适于被处理器加载并执行的一条或一条以上的指令,这些指令可以是一个或一个以上的计算机程序(包括程序代码)。需要说明的是,此处的计算机存储介质可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器;可选的还可以是至少一个位于远离前述处理器的计算机存储介质。Correspondingly, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium is used to store a computer program, and the computer program causes a computer to execute FIG. 4 (steps S401 to S402 ) and FIG. 6 of the present application (Steps S601 to S605) the method described in any of the embodiments. It can be understood that, the computer storage medium here may include both the built-in storage medium in the smart terminal, and certainly also the extended storage medium supported by the smart terminal. The computer storage medium provides storage space, and the storage space stores the operating system of the intelligent terminal. In addition, one or more instructions suitable for being loaded and executed by the processor are also stored in the storage space, and these instructions may be one or more computer programs (including program codes). It should be noted that the computer storage medium here can be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk memory; optionally, it can also be at least one memory located far away from the aforementioned processor. computer storage media.

相应地,本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质用于存储计算机程序,所述计算机程序使得计算机执行本申请图5(步骤S501至S502)和图9(步骤S901至S904)中任意实施例描述的方法。可以理解的是,此处的计算机存储介质既可以包括智能终端中的内置存储介质,当然也可以包括智能终端所支持的扩展存储介质。计算机存储介质提供存储空间,该存储空间存储了智能终端的操作系统。并且,在该存储空间中还存放了适于被处理器加载并执行的一条或一条以上的指令,这些指令可以是一个或一个以上的计算机程序(包括程序代码)。需要说明的是,此处的计算机存储介质可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器;可选的还可以是至少一个位于远离前述处理器的计算机存储介质。Correspondingly, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium is used to store a computer program, and the computer program causes a computer to execute FIG. 5 (steps S501 to S502 ) and FIG. 9 of the present application (Steps S901 to S904) the method described in any of the embodiments. It can be understood that, the computer storage medium here may include both the built-in storage medium in the smart terminal, and certainly also the extended storage medium supported by the smart terminal. The computer storage medium provides storage space, and the storage space stores the operating system of the intelligent terminal. In addition, one or more instructions suitable for being loaded and executed by the processor are also stored in the storage space, and these instructions may be one or more computer programs (including program codes). It should be noted that the computer storage medium here can be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk memory; optionally, it can also be at least one memory located far away from the aforementioned processor. computer storage media.

以上所揭露的仅为本发明的部分实施例而已,当然不能以此来限定本发明之权利范围,本领域普通技术人员可以理解实现上述实施例的全部或部分流程,并依本发明权利要求所作的等同变化,仍属于发明所涵盖的范围。The above disclosures are only part of the embodiments of the present invention, and of course, the scope of the rights of the present invention cannot be limited by this. Those of ordinary skill in the art can understand all or part of the procedures for realizing the above embodiments, and make according to the claims of the present invention. The equivalent changes of the invention still belong to the scope covered by the invention.

Claims (22)

1.一种对设备的扫描处理方法,其特征在于,应用于双网络模式共存的移动设备中,所述移动设备共存的双网络模式包括:无线接入点Soft AP模式和点对点P2P模式;所述方法包括:1. a scanning processing method for equipment, is characterized in that, is applied in the mobile equipment of dual network mode coexistence, and the dual network mode of described mobile equipment coexistence comprises: wireless access point Soft AP mode and point-to-point P2P mode; The methods described include: 若在所述Soft AP模式下有即时业务,则检测在所述P2P模式下是否有即时业务;所述即时业务是指当前需处理的业务;If there is an instant service in the Soft AP mode, then detect whether there is an instant service in the P2P mode; the instant service refers to the service that needs to be processed currently; 若检测结果为在所述P2P模式下无即时业务,则在分配给所述P2P模式的时间片内,将所述P2P模式的查找模式Find Phase置于监听状态Listen State。If the detection result is that there is no real-time service in the P2P mode, within the time slice allocated to the P2P mode, the Find Phase of the search mode of the P2P mode is placed in the listening state Listen State. 2.如权利要求1所述的方法,其特征在于,在所述Soft AP模式和所述P2P模式下工作于不同的工作信道;在所述Soft AP模式和所述P2P模式下,分时分片地使用时间资源。2. The method according to claim 1, characterized in that, in the Soft AP mode and the P2P mode, work on different working channels; in the Soft AP mode and the P2P mode, time-slicing use time resources efficiently. 3.如权利要求2所述的方法,其特征在于,所述方法,还包括:3. The method of claim 2, wherein the method further comprises: 若在所述Soft AP模式下无即时业务,则检测在所述P2P模式下的连接状态;If there is no real-time service in the Soft AP mode, detecting the connection state in the P2P mode; 若检测结果为在所述P2P模式下未与对端设备连接,则在分配给所述P2P模式的时间片内,将所述P2P模式的查找模式Find Phase置于监听模式Listen State。If the detection result is that it is not connected to the peer device in the P2P mode, within the time slice allocated to the P2P mode, the search mode Find Phase of the P2P mode is set to the listening mode Listen State. 4.如权利要求2所述的方法,其特征在于,所述若检测结果为在所述P2P模式下无即时业务,则在分配给所述P2P模式的时间片内,将所述P2P模式的查找模式Find Phase置于监听状态Listen State,还包括:4. The method according to claim 2, wherein if the detection result is that there is no real-time service in the P2P mode, then within the time slice allocated to the P2P mode, the P2P mode The find mode Find Phase is placed in the listening state Listen State, which also includes: 在分配给所述P2P模式的时间片的开始时刻和结束时刻,在所述P2P模式下发送第一广播帧。The first broadcast frame is sent in the P2P mode at the start time and the end time of the time slice allocated to the P2P mode. 5.如权利要求2-4任一项所述的方法,其特征在于,所述在所述Soft AP模式和所述P2P模式下,分时分片地使用时间资源,包括:5. The method according to any one of claims 2-4, wherein, in the Soft AP mode and the P2P mode, using time resources in a time-sliced manner, comprising: 在所述Soft AP模式和所述P2P模式下,分时复用时间片集合;所述时间片集合是由时间片组成的,所述时间片是将分配给所述双网络模式的时间资源划分得到的。In the Soft AP mode and the P2P mode, a time slice set is time-division multiplexed; the time slice set is composed of time slices, and the time slice is the division of the time resources allocated to the dual network mode owned. 6.如权利要求5所述的方法,其特征在于,在所述Soft AP模式的信标预定传送时间TBTT发送所述Soft AP模式的信标Beacon帧;6. The method according to claim 5, wherein the beacon Beacon frame of the Soft AP mode is sent at the scheduled beacon transmission time TBTT of the Soft AP mode; 在发送所述Soft AP模式的信标Beacon帧时或所述Soft AP模式有即时业务时,时间片分配给所述Soft AP使用;When sending the beacon frame of the Soft AP mode or when the Soft AP mode has instant services, the time slice is allocated to the Soft AP for use; 在所述P2P模式有即时业务时,时间片分配给所述P2P使用。When there is instant service in the P2P mode, a time slice is allocated to the P2P for use. 7.如权利要求1-4任一项所述的方法,其特征在于,所述即时业务包括当前需处理的常态业务和当前需处理的敏感业务;所述敏感业务为延时敏感的业务,或所述敏感业务为抖动敏感的业务。7. The method according to any one of claims 1-4, wherein the immediate service includes a current normal service to be processed and a current sensitive service to be processed; the sensitive service is a delay-sensitive service, Or the sensitive service is a jitter-sensitive service. 8.一种对设备的扫描处理方法,其特征在于,应用于双网络模式共存的移动设备中,所述移动设备共存的双网络模式包括无线接入点Soft AP模式和点对点P2P模式;所述方法包括:8. A scanning processing method for equipment, characterized in that it is applied to a mobile device coexisting in dual network modes, wherein the dual network modes coexisting in the mobile device include a wireless access point Soft AP mode and a point-to-point P2P mode; the Methods include: 若在所述P2P模式下有即时业务,则检测在所述Soft AP模式下的工作状态;所述即时业务是指当前需处理的业务;If there is an instant service in the P2P mode, the working state in the Soft AP mode is detected; the instant service refers to the service that needs to be processed currently; 根据在所述Soft AP模式下的工作状态的检测结果,调整在所述Soft AP模式下的被扫描动作。According to the detection result of the working state in the Soft AP mode, the scanned action in the Soft AP mode is adjusted. 9.如权利要求8所述的方法,其特征在于:在所述Soft AP模式和所述P2P模式下工作于不同的工作信道;在所述Soft AP模式和所述P2P模式下,分时分片地使用时间资源。9. The method according to claim 8, wherein: in the Soft AP mode and the P2P mode, work on different working channels; in the Soft AP mode and the P2P mode, time-slicing use time resources efficiently. 10.如权利要求9所述的方法,其特征在于,所述在所述Soft AP模式和所述P2P模式下,分时分片地使用时间资源,包括:10. The method according to claim 9, wherein, in the Soft AP mode and the P2P mode, using time resources in a time-sliced manner, comprising: 在所述Soft AP模式和所述P2P模式下,分时复用时间片集合;所述时间片集合是由时间片组成的,所述时间片是将分配给所述双网络模式的时间资源划分得到的。In the Soft AP mode and the P2P mode, a time slice set is time-division multiplexed; the time slice set is composed of time slices, and the time slice is the division of the time resources allocated to the dual network mode owned. 11.如权利要求9所述的方法,其特征在于,在所述Soft AP模式的信标预定传送时间TBTT发送所述Soft AP模式的信标Beacon帧;11. The method according to claim 9, wherein the beacon Beacon frame of the Soft AP mode is sent at the scheduled beacon transmission time TBTT of the Soft AP mode; 在发送所述Soft AP模式的信标Beacon帧时或在所述Soft AP模式下有即时业务时,时间片分配给所述Soft AP使用;When sending the beacon frame of the Soft AP mode or when there is instant service in the Soft AP mode, the time slice is allocated to the Soft AP for use; 在所述P2P模式下有即时业务时,时间片分配给所述P2P使用。When there is instant service in the P2P mode, the time slice is allocated to the P2P for use. 12.如权利要求11所述的方法,其特征在于,所述根据在所述Soft AP模式下的工作状态的检测结果,调整在所述Soft AP模式下的被扫描动作,包括:12. The method according to claim 11, wherein the adjusting the scanned action in the Soft AP mode according to the detection result of the working state in the Soft AP mode comprises: 若检测结果为所述Soft AP模式未启动,则在所述Soft AP模式启动时,根据所述SoftAP模式的TBTT与在所述P2P模式下的即时业务处理时间,调整所述Soft AP模式的TBTT周期。If the detection result is that the Soft AP mode is not activated, when the Soft AP mode is activated, adjust the TBTT of the Soft AP mode according to the TBTT of the SoftAP mode and the real-time service processing time in the P2P mode cycle. 13.如权利要求12所述的方法,其特征在于,所述根据所述Soft AP模式的TBTT与在所述P2P模式下的即时业务处理时间,调整所述Soft AP模式的TBTT周期,包括:13. The method of claim 12, wherein adjusting the TBTT period of the Soft AP mode according to the TBTT of the Soft AP mode and the real-time service processing time in the P2P mode, comprising: 若所述Soft AP模式的TBTT位于在所述P2P模式下的即时业务处理时间内,则减小所述Soft AP模式的TBTT周期,以使所述Soft AP模式的TBTT位于在所述P2P模式下的即时业务处理时间外。If the TBTT of the Soft AP mode is within the instant service processing time in the P2P mode, reduce the TBTT period of the Soft AP mode, so that the TBTT of the Soft AP mode is within the P2P mode of immediate business processing hours. 14.如权利要求11所述的方法,其特征在于,所述根据在所述Soft AP模式下的工作状态的检测结果,调整在所述Soft AP模式下的被扫描动作,包括:14. The method according to claim 11, wherein the adjusting the scanned action in the Soft AP mode according to the detection result of the working state in the Soft AP mode comprises: 若检测结果为所述Soft AP模式已启动,则在所述Soft AP模式下有即时业务时,在所述Soft AP模式下发送第二广播帧。If the detection result is that the Soft AP mode has been activated, when there is an instant service in the Soft AP mode, a second broadcast frame is sent in the Soft AP mode. 15.如权利要求14所述的方法,其特征在于,所述在所述Soft AP模式下发送第二广播帧,包括:15. The method of claim 14, wherein the sending the second broadcast frame in the Soft AP mode comprises: 在所述Soft AP模式获得时间片时,若第一时间间隔大于第一阈值,则在所述Soft AP模式下发送第二广播帧;所述第一时间间隔为第一时刻与在第一时刻之前距离所述第一时刻最近的所述Soft AP模式的TBTT的时间间隔,所述第一时刻为分配给所述Soft AP模式的时间片的起始时刻。When obtaining a time slice in the Soft AP mode, if the first time interval is greater than the first threshold, a second broadcast frame is sent in the Soft AP mode; the first time interval is the difference between the first moment and the first moment. The time interval of the TBTT in the Soft AP mode that is closest to the first moment, where the first moment is the start moment of the time slice allocated to the Soft AP mode. 16.如权利要求15所述的方法,其特征在于,所述在所述Soft AP模式下发送第二广播帧,还包括:16. The method of claim 15, wherein the sending the second broadcast frame in the Soft AP mode further comprises: 在所述Soft AP模式失去所述时间片时,若第二时间间隔大于第二阈值,则所述SoftAP模式下发送第二广播帧;所述第二时间间隔为第二时刻与在第二时刻之后的距离第二时刻最近的所述Soft AP模式的TBTT的时间间隔,所述第二时刻为在分配给所述Soft AP模式的时间片的结束时刻。When the Soft AP mode loses the time slice, if the second time interval is greater than the second threshold, a second broadcast frame is sent in the Soft AP mode; the second time interval is between the second time and the second time The next time interval of the TBTT in the Soft AP mode that is closest to the second time, where the second time is the end time of the time slice allocated to the Soft AP mode. 17.一种移动设备,其特征在于,所述移动设备包括:存储装置和处理器,17. A mobile device, wherein the mobile device comprises: a storage device and a processor, 所述存储装置,用于存储程序指令;the storage device for storing program instructions; 所述处理器,在调用所述存储指令时,用于执行如权利要求1-7任一项所述的对设备的扫描处理方法。The processor, when invoking the storage instruction, is configured to execute the method for scanning a device according to any one of claims 1-7. 18.一种移动设备,其特征在于,所述移动设备包括:存储装置和处理器,18. A mobile device, wherein the mobile device comprises: a storage device and a processor, 所述存储装置,用于存储程序指令;the storage device for storing program instructions; 所述处理器,在调用所述存储指令时,用于执行如权利要求8-16任一项所述的对设备的扫描处理方法。The processor, when invoking the storage instruction, is configured to execute the device scanning processing method according to any one of claims 8-16. 19.一种对设备的扫描处理装置,其特征在于,所述设备为双网络模式共存的移动设备,所述移动设备共存的双网络模式包括:无线接入点Soft AP模式和点对点P2P模式;所述装置包括:19. A device for scanning and processing equipment, wherein the equipment is a mobile device coexisting in dual network modes, and the dual network modes coexisting in the mobile device include: a wireless access point Soft AP mode and a point-to-point P2P mode; The device includes: 检测模块,用于若在所述Soft AP模式下有即时业务,则检测在所述P2P模式下是否有即时业务;所述即时业务是指当前需处理的业务;A detection module, configured to detect whether there is an instant service in the P2P mode if there is an instant service in the Soft AP mode; the instant service refers to a service that needs to be processed currently; 调整模块,用于若检测结果为在所述P2P模式下无即时业务,则在分配给所述P2P模式的时间片内,将所述P2P模式的查找模式Find Phase置于监听状态Listen State。The adjustment module is configured to, if the detection result is that there is no real-time service in the P2P mode, within the time slice allocated to the P2P mode, place the Find Phase of the search mode of the P2P mode in the listening state Listen State. 20.一种对设备的扫描处理装置,其特征在于,所述设备为双网络模式共存的移动设备,所述移动设备共存的双网络模式包括:无线接入点Soft AP模式和点对点P2P模式;所述装置包括:20. A device for scanning and processing equipment, wherein the equipment is a mobile device coexisting in dual network modes, and the dual network modes coexisting in the mobile device include: a wireless access point Soft AP mode and a point-to-point P2P mode; The device includes: 检测模块,用于若在所述P2P模式下有即时业务,则检测在所述Soft AP模式下的工作状态;所述即时业务是指当前需处理的业务;a detection module, configured to detect the working state under the Soft AP mode if there is an instant service in the P2P mode; the instant service refers to the service that needs to be processed currently; 调整模块,用于根据在所述Soft AP模式下的工作状态的检测结果,调整在所述SoftAP模式下的被扫描动作。The adjustment module is configured to adjust the scanned action in the Soft AP mode according to the detection result of the working state in the Soft AP mode. 21.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质用于存储计算机程序,所述计算机程序使得计算机执行权利要求1-7任一项所述的方法。21. A computer-readable storage medium, wherein the computer-readable storage medium is used for storing a computer program, the computer program causing a computer to execute the method of any one of claims 1-7. 22.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质用于存储计算机程序,所述计算机程序使得计算机执行权利要求8-16任一项所述的方法。22. A computer-readable storage medium, wherein the computer-readable storage medium is used for storing a computer program, the computer program causing a computer to execute the method according to any one of claims 8-16.
CN202010100030.5A 2020-02-18 2020-02-18 Scanning processing method for equipment, mobile equipment, device and storage medium Active CN111328064B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010100030.5A CN111328064B (en) 2020-02-18 2020-02-18 Scanning processing method for equipment, mobile equipment, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010100030.5A CN111328064B (en) 2020-02-18 2020-02-18 Scanning processing method for equipment, mobile equipment, device and storage medium

Publications (2)

Publication Number Publication Date
CN111328064A true CN111328064A (en) 2020-06-23
CN111328064B CN111328064B (en) 2022-09-27

Family

ID=71167143

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010100030.5A Active CN111328064B (en) 2020-02-18 2020-02-18 Scanning processing method for equipment, mobile equipment, device and storage medium

Country Status (1)

Country Link
CN (1) CN111328064B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112087769A (en) * 2020-09-18 2020-12-15 展讯通信(上海)有限公司 Communication processing method, apparatus, device, and storage medium
CN112492568A (en) * 2020-11-06 2021-03-12 北京小米移动软件有限公司 Network information processing method and device, mobile terminal and storage medium
CN112954419A (en) * 2021-02-09 2021-06-11 海信视像科技股份有限公司 Display device and display method
CN114430894A (en) * 2020-07-20 2022-05-03 谷歌有限责任公司 Minimizing production interruptions by scanning rule engines
CN116055693A (en) * 2022-07-21 2023-05-02 荣耀终端有限公司 Screen projection method, electronic device, system, and computer-readable storage medium
CN117479267A (en) * 2023-12-28 2024-01-30 荣耀终端有限公司 Equipment scanning method, device and storage medium based on wireless communication

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150024687A1 (en) * 2013-07-22 2015-01-22 Qualcomm Incorporated Systems and methods for coexistence between multiple wireless networks
CN108574780A (en) * 2018-05-02 2018-09-25 Oppo广东移动通信有限公司 Network function management method and device, storage medium and intelligent terminal
CN109640310A (en) * 2019-02-12 2019-04-16 Oppo广东移动通信有限公司 Data transfer control method and Related product

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150024687A1 (en) * 2013-07-22 2015-01-22 Qualcomm Incorporated Systems and methods for coexistence between multiple wireless networks
CN108574780A (en) * 2018-05-02 2018-09-25 Oppo广东移动通信有限公司 Network function management method and device, storage medium and intelligent terminal
CN109640310A (en) * 2019-02-12 2019-04-16 Oppo广东移动通信有限公司 Data transfer control method and Related product

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114430894A (en) * 2020-07-20 2022-05-03 谷歌有限责任公司 Minimizing production interruptions by scanning rule engines
CN112087769A (en) * 2020-09-18 2020-12-15 展讯通信(上海)有限公司 Communication processing method, apparatus, device, and storage medium
CN112087769B (en) * 2020-09-18 2022-09-13 展讯通信(上海)有限公司 Communication processing method, device, apparatus and storage medium
CN112492568A (en) * 2020-11-06 2021-03-12 北京小米移动软件有限公司 Network information processing method and device, mobile terminal and storage medium
CN112492568B (en) * 2020-11-06 2023-08-22 北京小米移动软件有限公司 Network information processing method, device, mobile terminal and storage medium
CN112954419A (en) * 2021-02-09 2021-06-11 海信视像科技股份有限公司 Display device and display method
CN116055693A (en) * 2022-07-21 2023-05-02 荣耀终端有限公司 Screen projection method, electronic device, system, and computer-readable storage medium
CN116055693B (en) * 2022-07-21 2024-04-02 荣耀终端有限公司 Screen projection method, electronic device, system and computer readable storage medium
CN117479267A (en) * 2023-12-28 2024-01-30 荣耀终端有限公司 Equipment scanning method, device and storage medium based on wireless communication
CN117479267B (en) * 2023-12-28 2024-04-16 荣耀终端有限公司 Device scanning method, device and storage medium based on wireless communication

Also Published As

Publication number Publication date
CN111328064B (en) 2022-09-27

Similar Documents

Publication Publication Date Title
CN111328064B (en) Scanning processing method for equipment, mobile equipment, device and storage medium
EP2670209B1 (en) Method and apparatus for providing concurrent service
EP4274293A1 (en) Wifi scan control method and related device
CN107196964B (en) System and method for implementing multi-band service discovery
US9137782B2 (en) Wireless communication method, and wireless communication device and system using the same
RU2719348C1 (en) Paging method and paging device
US12075468B2 (en) Method and device for data transmission, multi-link system, and storage medium
JP2009545924A (en) Synchronization between wireless devices while saving power
US20240107427A1 (en) Access method and communication apparatus
WO2012097736A1 (en) Band interference reducing method for multimode terminal, multimode terminal, and network device
EP3499940A1 (en) Data transmission method and relevant device
JP2023528613A (en) Wireless communication method and device, terminal and storage medium
KR20170047035A (en) Device supporting wireless p2p communication with external device and communication method thereof
WO2015109599A1 (en) Radio communication method, access point, and station
CN115623452B (en) A wireless channel resource management method, device and system
US20200336982A1 (en) Reliable wur communications
WO2024099110A1 (en) Wifi data transmission method and apparatus, electronic device, wireless access device and readable storage medium
CN110913378B (en) Operation optimization for trigger-based instant messaging
WO2007124055A2 (en) Wireless communication method and apparatus for providing network advice to mobile stations
JPWO2019242452A5 (en)
US20240397573A1 (en) Downlink transmission configuration and receiving methods and apparatuses, communication device and storage medium
WO2023082966A1 (en) Neighbor discovery method and electronic device
JP7707422B2 (en) Communication method and device
JP2004166104A (en) Wireless LAN system
CN116112933B (en) Communication method and electronic equipment

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