CN106604403B - Miracast protocol-based channel selection method and system - Google Patents

Miracast protocol-based channel selection method and system Download PDF

Info

Publication number
CN106604403B
CN106604403B CN201710021914.XA CN201710021914A CN106604403B CN 106604403 B CN106604403 B CN 106604403B CN 201710021914 A CN201710021914 A CN 201710021914A CN 106604403 B CN106604403 B CN 106604403B
Authority
CN
China
Prior art keywords
classification
frequency band
channel
equipment
split screen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710021914.XA
Other languages
Chinese (zh)
Other versions
CN106604403A (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.)
Xiamen Reliable Intellectual Property Service Co ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201710021914.XA priority Critical patent/CN106604403B/en
Publication of CN106604403A publication Critical patent/CN106604403A/en
Application granted granted Critical
Publication of CN106604403B publication Critical patent/CN106604403B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/54Allocation or scheduling criteria for wireless resources based on quality criteria
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/54Allocation or scheduling criteria for wireless resources based on quality criteria
    • H04W72/541Allocation or scheduling criteria for wireless resources based on quality criteria using the level of interference
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Landscapes

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

Abstract

The invention discloses a channel selection method and a system based on a Miracast protocol, wherein the method comprises the following steps: the method comprises the steps that terminal equipment searches all connectable AP hot spots and classifies the connectable AP hot spots according to a first frequency band list supported by the terminal equipment; acquiring a second frequency band list supported by pre-configured split screen equipment, and selecting an available classification in a hot spot classification according to the second frequency band list; searching an interference strategy corresponding to the available classification according to the frequency bands of the available classification, and selecting an optimal channel from the available classification according to the interference strategy; and establishing WiFi Direct communication with the split screen equipment through the optimal channel, and sending data to the split screen equipment. When the terminal equipment is connected with the split-screen equipment, the method and the device select the near optimal channel and the large-screen end for negotiation through the channel automatic selection algorithm, so that the operation channel of the WiFi Direct stays in a channel with the minimum interference, the packet loss rate of data transmission is reduced, and the split-screen display effect is improved.

Description

Miracast protocol-based channel selection method and system
Technical Field
The invention relates to the technical field of communication, in particular to a method and a system for selecting a channel based on a Miracast protocol.
Background
Miracast is a split screen transmission protocol, the physical layer of which uses WiFi Direct technology to communicate, and the application layer uses RTSP protocol to transmit. The split screen function realized based on the Miracast protocol enables a user to share videos, games and the like in a mobile phone into large-screen equipment such as a television and a projector, and brings convenience to the user. However, with the continuous development of wireless WiFi, there are more and more WiFi hotspots, and only one channel is randomly selected during WiFi Display connection, which may cause a user to be jammed due to interference of nearby hotspots when using a split screen function based on the Miracast protocol, thereby affecting the split screen Display effect.
Thus, the prior art has yet to be improved and enhanced.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method and a system for selecting a channel based on a Miracast protocol, aiming at overcoming the defects in the prior art, so as to solve the problem that when the existing Miracast protocol-based split-screen function is used, the effect of split-screen display is affected by the blockage caused by the interference of nearby hot spots.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a method for selecting a channel based on a Miracast protocol, comprising:
the method comprises the steps that terminal equipment searches all connectable AP hot spots and classifies the connectable AP hot spots according to a first frequency band list supported by the terminal equipment;
acquiring a second frequency band list supported by pre-configured split screen equipment, and selecting an available classification in a hot spot classification according to the second frequency band list;
searching an interference strategy corresponding to the available classification according to the frequency bands of the available classification, and selecting an optimal channel from the available classification according to the interference strategy;
and establishing WiFi Direct communication with the split screen equipment through the optimal channel, and sending data to the split screen equipment.
The channel selection method based on the Miracast protocol includes that the terminal device searches all connectable AP hotspots, and classifies the connectable AP hotspots according to a first frequency band list supported by the terminal device, and the method further includes:
the terminal equipment searches all connectable WiFi Direct equipment information through WiFi Direct;
screening the split screen equipment in the searched WiFi Direct equipment information according to a Miracast protocol to form a split screen equipment list, and displaying the split screen equipment list;
and receiving a selection operation of the user on the split screen equipment list, and searching for a connectable AP hotspot according to the selection operation.
The channel selection method based on the Miracast protocol includes that the terminal device searches all connectable AP hotspots, and classifies the connectable AP hotspots according to a first frequency band list supported by the terminal device specifically includes:
the terminal equipment searches information of all connectable AP hot spots, wherein the information comprises a channel;
acquiring a first frequency band list supported by the user, and establishing a corresponding hot spot classification for each frequency band in the first frequency band list;
and dividing the connectable AP hot spots into corresponding hot spot classifications according to the channel of each hot spot classification.
The channel selection method based on the Miracast protocol includes the steps of obtaining a second frequency band list supported by a pre-configured split screen device, and selecting an available classification from the hotspot classifications:
acquiring a second frequency band list supported by pre-configured split screen equipment, and searching a hot spot classification corresponding to each frequency band in the second frequency band list in the hot spot classification;
and selecting the found hot spot classification as an available classification.
The channel selection method based on the Miracast protocol, wherein the selecting an optimal channel from the available classifications according to the interference strategies corresponding to the frequency bands of the available classifications specifically includes:
judging the number of the available classifications, and selecting a first classification and a second classification with the highest transmission speed from the available classifications when the number is larger than 1;
respectively adopting corresponding interference strategies to obtain a first interference degree of the optimal channel in the first classification and a second interference degree of the optimal channel in the second classification;
respectively comparing the first interference degree with the second interference degree and the second interference degree with a preset threshold value;
and when the first interference degree is smaller than the second interference degree or the second interference degree is larger than a preset threshold value, selecting the optimal channel corresponding to the first interference degree as the optimal channel.
The channel selection method based on the Miracast protocol, wherein the establishing of the WiFi Direct communication with the split screen device through the optimal channel and the sending of the data to the split screen device specifically include:
sending the optimal channel to the split screen equipment for negotiation through a WiFi Direct negotiation frame;
when the negotiation is successful, establishing WiFi Direct communication with the split screen equipment through the optimal channel, and sending data to the split screen equipment;
and when the negotiation fails, prompting the user to communicate on a system default channel.
A system for channel selection based on Miracast protocol, comprising: the terminal equipment and the split screen equipment;
the terminal device includes: the system comprises a classification module, an acquisition module, a selection module and an establishment module;
the classification module is used for searching all connectable AP hotspots by equipment and classifying the connectable AP hotspots according to a first frequency band list supported by the classification module;
the acquisition module is used for acquiring a second frequency band list supported by the pre-configured split screen equipment and selecting an available classification in the hot spot classification according to the second frequency band list;
the selection module is used for searching an interference strategy corresponding to the available classification according to the frequency band of the available classification and selecting an optimal channel from the available classification according to the interference strategy;
the establishing module is used for establishing WiFi Direct communication with the split screen equipment through the optimal channel and sending data to the split screen equipment.
The channel selection system based on Miracast protocol, wherein the terminal device further includes:
the searching module is used for searching all connectable WiFi Direct equipment information through WiFi Direct;
the screening module is used for screening the screen splitting equipment in the searched WiFi Direct equipment information according to the Miracast protocol to form a screen splitting equipment list and displaying the screen splitting equipment list;
and the receiving module is used for receiving the selection operation of the user on the split screen equipment list and searching the connectable AP hot spot according to the selection operation.
The system for selecting a channel based on the Miracast protocol includes:
a searching unit, configured to search information of all connectable AP hotspots, where the information includes a channel;
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a first frequency band list supported by the acquisition unit and establishing a corresponding hot spot classification for each frequency band in the first frequency band list;
and the dividing unit is used for dividing the connectable AP hot spots into corresponding hot spot classifications according to the channel of each hot spot classification.
The system for selecting a channel based on the Miracast protocol includes:
the negotiation unit is used for sending the optimal channel to the split screen equipment for negotiation through a WiFi Direct negotiation frame;
the first establishing unit is used for establishing WiFi Direct communication with the split screen equipment through the optimal channel and sending data to the split screen equipment when the negotiation is successful;
and the second establishing unit is used for prompting the user to communicate on the system default channel when the negotiation fails.
Has the advantages that: compared with the prior art, the invention provides a channel selection method and a system based on a Miracast protocol, wherein the method comprises the following steps: the method comprises the steps that terminal equipment searches all connectable AP hot spots and classifies the connectable AP hot spots according to a first frequency band list supported by the terminal equipment; acquiring a second frequency band list supported by pre-configured split screen equipment, and selecting an available classification in a hot spot classification according to the second frequency band list; searching an interference strategy corresponding to the available classification according to the frequency bands of the available classification, and selecting an optimal channel from the available classification according to the interference strategy; and establishing WiFi Direct communication with the split screen equipment through the optimal channel, and sending data to the split screen equipment. When the terminal equipment is connected with the split-screen equipment, the method and the device select the near optimal channel and the large-screen end for negotiation through the channel automatic selection algorithm, so that the operation channel of the WiFi Direct stays in a channel with the minimum interference, the packet loss rate of data transmission is reduced, and the split-screen display effect is improved.
Drawings
Fig. 1 is a flowchart of a preferred implementation of the method for selecting a channel based on the Miracast protocol according to the present invention.
Fig. 2 is a schematic structural diagram of a Miracast protocol-based channel selection system according to the present invention.
Detailed Description
The present invention provides a method and a system for selecting a channel based on the Miracast protocol, and in order to make the purpose, technical scheme, and effect of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the present invention, suffixes such as "module", "part", or "unit" used to indicate elements are used only for facilitating the description of the present invention, and have no specific meaning in themselves. Thus, "module", "component" or "unit" may be used mixedly.
The terminal device may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. However, it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
The invention will be further explained by the description of the embodiments with reference to the drawings.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for selecting a channel based on the Miracast protocol according to a preferred embodiment of the present invention. The method comprises the following steps:
s100, the terminal device searches all connectable AP hotspots and classifies the connectable AP hotspots according to a first frequency band list supported by the terminal device.
Specifically, the connectable AP hotspot refers to an AP hotspot which can be searched by the terminal device and can be used by all devices within range. When searching for a connectable AP hotspot, the terminal device obtains information of the AP hotspot, wherein the information of the AP hotspot may include a channel value and signal strength of the AP hotspot, and assembles information of all the searched connectable AP hotspots into a connectable AP hotspot list, and the list associates a unique identifier, a channel value and signal strength of each AP hotspot, so that the corresponding channel value and signal strength of the AP hotspot can be determined according to the unique identifier of the AP hotspot.
And the terminal equipment displays the display content on the split-screen display equipment in a split-screen mode through a Miracast protocol. The terminal equipment and the split screen equipment adopt WiFi Direct to establish a point-to-point transmission function. The WiFi Direct is a point-to-point transmission function based on a WiFi technology, and realizes transmission among a plurality of devices, wherein one device is a Group administrator Group Owner, and the other devices are Group clients in the transmission process. The implementation of the WiFi Direct connection is mainly a packet search and group creation process. The searching process can enable the terminal to obtain the information of other nearby devices, and the group creation process is divided into a Wps process, a negotiation process, authentication and a four-way handshake process. The Wps process is mainly used for realizing security configuration, a user does not need to input any information, and the bottom layer can automatically configure and negotiate the security information. The negotiation process mainly determines which device is the Group Owner, and confirms the channel of data transmission, and the authentication and four-way handshake process is mainly used for realizing security authentication and key configuration and is mainly based on the 802.11i specification.
In this embodiment, the terminal device is a Group Owner, and the split screen device is a Group Client. Before the terminal device searches all connectable AP hotspots and classifies the connectable AP hotspots according to its own supported first frequency band list, the method may further include a search process, where the search process specifically includes:
s001, searching all connectable WiFi Direct equipment information by the terminal equipment through WiFi Direct;
s002, screening the screen splitting equipment in the searched WiFi Direct equipment information according to the Miracast protocol to form a screen splitting equipment list, and displaying the screen splitting equipment list;
and S003, receiving a selection operation of the user on the split screen equipment list, and searching for a connectable AP hotspot according to the selection operation.
Specifically, after the WiFi Display interface is started, the terminal equipment acquires the WiFi Direct equipment which can be connected around the terminal equipment through the WiFi Direct search function. And after the WiFi Direct equipment is searched, filtering all other equipment which can be used as split screen equipment according to a Miracast protocol, forming a split screen equipment list by information of all other equipment which can be used as split screen equipment, and displaying the split screen equipment list on a display interface for a user to select. And after the split-screen equipment list is displayed, receiving selection operation of a user on the split-screen equipment list in real time. And when the selection operation is received, the split screen equipment corresponding to the selection operation is used as the Group Client of the WiFi Direct Group formed by the terminal equipment. And meanwhile, searching for the connectable AP hotspot according to the selection operation.
In this embodiment, the first frequency band list is formed by all frequency bands that can be adopted by the terminal device, and the frequency band that can be adopted by the terminal device can be determined according to the first frequency band list. After all connectable AP hotspots are searched, classifying the AP hotspots according to the frequency bands in the first frequency band list. That is, all the searched AP hotspots are classified according to the frequency bands to which the channels of the AP hotspots belong. For example, the first band list includes 5G and 2.4G; then all the searched AP hotspots are classified into two categories, one category is 5G and the other category is 2.4G. The channel belongs to 5G and is classified into 5G, and the channel belongs to 2.4G and is classified into 2.4G. If the first band list only includes 2.4G, all the searched AP hotspots are classified into one category, i.e., 2.4G category.
For example, the searching, by the terminal device, all connectable AP hotspots, and the classifying, according to the first frequency band list supported by the terminal device, the connectable AP hotspots specifically includes:
s101, the terminal equipment searches information of all connectable AP hot spots, wherein the information comprises a channel;
s102, acquiring a first frequency band list supported by the user, and establishing a corresponding hot spot classification for each frequency band in the first frequency band list;
s103, dividing the connectable AP hot spots into corresponding hot spot classifications according to the channel of each hot spot classification.
It is worth explaining that the AP hotspots which do not belong to the hotspot classification formed according to the frequency bands of the first frequency band list are discarded, so that the problem that the terminal device cannot communicate with the split-screen device due to the fact that the terminal device cannot communicate with the split-screen device by using the AP hotspots can be avoided.
S200, a second frequency band list supported by the pre-configured split screen device is obtained, and an available classification is selected from hot spot classifications according to the second frequency band list.
Specifically, after the AP hotspots are classified, a second frequency band list supported by the split-screen device is obtained, and all available classifications are selected from all hotspot classifications according to the second frequency band list. That is, acquiring a frequency band of each hot spot classification, searching the frequency band of the hot spot classification in the second frequency band list, and if the frequency band of the hot spot classification is found, classifying the hot spot into an available classification; and if the hot spot is not found, the hot spot is classified into available classifications, so that all the available classifications are obtained. For example, the hot spot category includes a 5G category and a 2.4G category, and the second band list only includes 2.4G, so that the available category selected according to the second band list is the 2.4G category.
For example, the obtaining a second frequency band list supported by a pre-configured split screen device, and the selecting an available category from the hot spot categories specifically include:
s201, acquiring a second frequency band list supported by pre-configured split screen equipment, and searching a hot spot classification corresponding to each frequency band in the second frequency band list in the hot spot classification;
s202, the searched hot spot classification is selected as an available classification.
Specifically, the pre-configured screen splitting device is the screen splitting device determined by receiving the user selection operation. Of course, the screen splitting device may also be a screen splitting device pre-stored in the terminal device and used for implementing the screen splitting function, that is, the screen splitting device is a device to which the terminal device is connected by default. That is to say, when the terminal device does not receive the selection operation, the screen splitting function is realized by the screen splitting device by default; and when the selection operation is received, the screen splitting function is realized through the selected screen splitting equipment.
S300, searching an interference strategy corresponding to the available classification according to the frequency bands of the available classification, and selecting an optimal channel from the available classification according to the interference strategy.
Specifically, the step of searching for the interference policy corresponding to the available classified frequency band refers to searching for a corresponding interference policy in a preset interference policy library according to each available classified frequency band. For example, if the frequency band of the available classification is 5G, an interference policy corresponding to 5G is searched in the interference policy library; and if the available classified frequency band is 2.4G, searching an interference strategy corresponding to the 2.4G in the interference strategy library.
Furthermore, since the available classifications can be multiple, in order to simplify the channel strategy selection process, the number of the available classifications can be determined according to the needs, and different operation modes are adopted according to the different numbers, so as to improve the channel selection speed and reduce the waiting time of users.
Illustratively, the selecting an optimal channel from the available classifications according to the interference strategies corresponding to the frequency bands of the available classifications specifically includes:
s301, judging the number of the available classifications, and selecting a first classification and a second classification with the highest transmission speed from the available classifications when the number is larger than 1;
s302, respectively adopting corresponding interference strategies to obtain a first interference degree of the optimal channel in the first classification and a second interference degree of the optimal channel in the second classification;
s303, comparing the first interference degree with the second interference degree and comparing the second interference degree with a preset threshold value respectively;
s304, when the first interference degree is smaller than the second interference degree or the second interference degree is larger than a preset threshold value, selecting the optimal channel corresponding to the first interference degree as the optimal channel.
Specifically, the number of the available classifications may be 1 or more. When the number of the available classifications is 1, directly searching the corresponding interference strategies in the interference strategy library according to the frequency bands of the available classifications, which is not described herein again, but focuses on the case where the available classifications are multiple. When the available classification is multiple (2 or more), the available classifications may be arranged according to whether the transmission speed of the frequency band corresponding to the available classification is fast or slow, and the classification corresponding to the two channels with the highest transmission speed is selected as a candidate classification. The two candidate classifications are herein referred to as the first classification and the second classification, respectively.
After the first classification and the second classification are selected, a first interference strategy corresponding to the first classification and a second interference strategy corresponding to the second classification are respectively obtained. And calculating the interference degree of each AP hot spot in the first classification by adopting a first interference strategy to form a first interference degree set, and calculating the interference degree of each AP hot spot in the second classification by adopting a second interference strategy to form a second interference degree set, wherein the interference degrees in the first interference degree set and the second interference degree set are arranged in an ascending order according to the interference degree. And then selecting the interference degrees of the first interference degree set and the second interference degree set arranged in the first order respectively, and recording the interference degrees as the first interference degree and the second interference degree respectively. In practical application, whether the frequency band corresponding to the first classification is a 2.4G frequency band or not can be judged firstly, if the frequency band is the 2.4G frequency band, the interference degree of one AP hot spot in the classification is calculated according to the strategy of the 2.4G frequency band and is assigned to a 2.4G variable, and if the interference degree of the next AP hot spot is smaller than the variable value, the variable value is assigned to a new channel interference degree; if the frequency band is the 5G frequency band, calculating the interference degree of one AP hot spot according to the 5G frequency band strategy, assigning the interference degree to a 5G variable for storage, and if the interference degree of the next AP hot spot is less than or equal to the value, assigning a new interference degree value to the 5G variable again; and sequentially determining the first interference degree and the second interference degree.
The interference strategies are preset, and the same interference strategies can be adopted for different corresponding channels, for example, for each AP hotspot, the interference degree of the AP hotspot is determined by weighting according to the number of AP hotspots contained in the channel corresponding to the AP hotspot and the signal strength of each AP hotspot. Different interference strategies may also be employed for different channels.
In this embodiment, 2.4G and 5G are exemplified.
For a 2.4G channel, there are several interference channels around a channel, and there are usually four channels apart to completely avoid interference. Therefore, the number of APs in the current channel, the signal strength RSSI of the current AP, the number of APs in the interfering channel, and the signal strength of the APs in the interfering channel are selected as an optimal channel according to the following weighted values. Where N is an empirical value, different values are taken for different chip manufacturers, for example, mTK chip takes-50, high takes-60, and the corresponding values are stored in a file, read out during calculation, and if no adapted platform value is found, use the default value-50. The formula may be:
Figure GDA0003202591140000111
wherein, AP0、AP1、AP2And AP3The connected channels respectively representing AP channels, the Ti=RSSIiN represents the weight of each channel, i ═ 1, 2, 3; n is a constant, RSSIiFor signal strength, n represents the number of hot spots in the same channel.
And for the 5G frequency band, no interference channel exists basically, so that the frequency band is obtained by weighting according to the number and the strength of the current channels.
To further illustrate, the selection of hot spot classifications, two examples are given below.
If the terminal equipment supports the dual-frequency bands of 2.4G and 5G, and the split screen equipment only supports the 2.4G frequency band, the 2.4G optimal channel calculated by the interference strategy corresponding to the 2.4G of the terminal equipment is selected for communication and used as the optimal channel.
If the terminal equipment supports dual-frequency bands and the split screen equipment also supports dual-frequency bands, 2.4G optimal channel communication calculated by an interference strategy corresponding to 2.4G of the terminal equipment is selected, and 5G optimal channel communication calculated by an interference strategy corresponding to 5G of the terminal equipment is selected; and comparing the optimal channel interference degree of the 5G frequency band with the optimal channel interference degree of the 2.4G frequency band, setting a threshold value, if the interference degree of the 5G optimal channel is less than or equal to the interference degree of the 2.4G optimal channel, or the interference degree of the 2.4G optimal channel is more than or equal to the threshold value, performing communication in the 5G optimal channel, otherwise, performing communication in the 2.4G optimal channel.
If the terminal equipment only supports the 2.4G frequency band and the split screen equipment supports the dual-frequency band, the 2.4G optimal channel communication calculated by the interference strategy corresponding to the 2.4G of the terminal equipment is selected as the optimal channel.
S400, WiFi Direct communication is established with the split screen equipment through the optimal channel, and data are sent to the split screen equipment.
Specifically, after the optimal channel is obtained, the optimal channel is sent to the split screen device for Negotiation through Go Negotiation process communication, if the Negotiation process is successful, the WiFi Display will communicate on the channel, and if the Negotiation is failed, the user is prompted to communicate only on a default channel, and the connection process is reestablished.
Illustratively, the establishing of WiFi Direct communication with the split screen device through the optimal channel and the sending of data to the split screen device specifically include:
s401, sending the optimal channel to a split screen device for negotiation through a WiFi Direct negotiation frame;
s402, when the negotiation is successful, WiFi Direct communication is established with the split screen equipment through the optimal channel, and data are sent to the split screen equipment;
and S403, prompting the user to communicate on a system default channel when the negotiation fails.
The present invention also provides a channel selection system based on Miracast protocol, as shown in fig. 2, which includes: a terminal device 100 and a split screen device 200;
the terminal device 100 includes: the system comprises a classification module 101, an acquisition module 102, a selection module 103 and an establishment module 104;
the classification module 101 is configured to search all connectable AP hotspots by a device, and classify the connectable AP hotspots according to a first frequency band list supported by the device;
the obtaining module 102 is configured to obtain a second frequency band list supported by a preconfigured split screen device, and select an available category from the hot spot categories according to the second frequency band list;
the selecting module 103 is configured to search for an interference policy corresponding to the available classification according to the frequency band of the available classification, and select an optimal channel from the available classification according to the interference policy;
the establishing module 104 is configured to establish WiFi Direct communication with the split screen device through the optimal channel, and send data to the split screen device.
The channel selection system based on Miracast protocol, wherein the terminal device further includes:
the searching module is used for searching all connectable WiFi Direct equipment information through WiFi Direct;
the screening module is used for screening the screen splitting equipment in the searched WiFi Direct equipment information according to the Miracast protocol to form a screen splitting equipment list and displaying the screen splitting equipment list;
and the receiving module is used for receiving the selection operation of the user on the split screen equipment list and searching the connectable AP hot spot according to the selection operation.
The system for selecting a channel based on the Miracast protocol includes:
a searching unit, configured to search information of all connectable AP hotspots, where the information includes a channel;
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a first frequency band list supported by the acquisition unit and establishing a corresponding hot spot classification for each frequency band in the first frequency band list;
and the dividing unit is used for dividing the connectable AP hot spots into corresponding hot spot classifications according to the channel of each hot spot classification.
The system for selecting a channel based on the Miracast protocol includes:
the negotiation unit is used for sending the optimal channel to the split screen equipment for negotiation through a WiFi Direct negotiation frame;
the first establishing unit is used for establishing WiFi Direct communication with the split screen equipment through the optimal channel and sending data to the split screen equipment when the negotiation is successful;
and the second establishing unit is used for prompting the user to communicate on the system default channel when the negotiation fails.
The various modules of the above-mentioned channel selection system based on Miracast protocol are described in detail in the above-mentioned method, and are not described in detail here.
In the embodiments provided by the present invention, it should be understood that the disclosed system and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (6)

1. A channel selection method based on Miracast protocol is characterized by comprising the following steps: the method comprises the steps that terminal equipment searches all connectable AP hot spots and classifies the connectable AP hot spots according to a first frequency band list supported by the terminal equipment;
the terminal equipment searches information of all connectable AP hot spots, wherein the information comprises a channel;
acquiring a first frequency band list supported by the user, and establishing a corresponding hot spot classification for each frequency band in the first frequency band list;
according to the channel of each hotspot category, dividing the connectable AP hotspots into corresponding hotspot categories, and discarding AP hotspots which do not belong to the hotspot categories formed according to the frequency bands of the first frequency band list;
acquiring a second frequency band list supported by pre-configured split screen equipment, and selecting an available classification in a hot spot classification according to the second frequency band list;
acquiring a second frequency band list supported by pre-configured split screen equipment, and searching a hot spot classification corresponding to each frequency band in the second frequency band list in the hot spot classification;
selecting the found hot spot classification as an available classification;
searching an interference strategy corresponding to the available classification according to the frequency bands of the available classification, and selecting an optimal channel from the available classification according to the interference strategy;
judging the number of the available classifications, and selecting a first classification and a second classification with the highest transmission speed from the available classifications when the number is larger than 1;
respectively adopting corresponding interference strategies to obtain a first interference degree of the optimal channel in the first classification and a second interference degree of the optimal channel in the second classification;
respectively comparing the first interference degree with the second interference degree and the second interference degree with a preset threshold value;
when the first interference degree is smaller than the second interference degree or the second interference degree is larger than a preset threshold value, selecting an optimal channel corresponding to the first interference degree as an optimal channel;
and establishing WiFi Direct communication with the split screen equipment through the optimal channel, and sending data to the split screen equipment.
2. The method of claim 1, wherein the terminal device searches for all connectable AP hotspots and classifies the connectable AP hotspots according to its own supported first frequency band list before further comprising: the terminal equipment searches all connectable WiFi Direct equipment information through WiFi Direct;
screening the split screen equipment in the searched WiFi Direct equipment information according to a Miracast protocol to form a split screen equipment list, and displaying the split screen equipment list;
and receiving a selection operation of the user on the split screen equipment list, and searching for a connectable AP hotspot according to the selection operation.
3. The method for selecting the channel based on the Miracast protocol according to claim 1, wherein the establishing of the WiFi Direct communication with the split screen device through the optimal channel and the sending of the data to the split screen device specifically include: sending the optimal channel to the split screen equipment for negotiation through a WiFi Direct negotiation frame;
when the negotiation is successful, establishing WiFi Direct communication with the split screen equipment through the optimal channel, and sending data to the split screen equipment;
and when the negotiation fails, prompting the user to communicate on a system default channel.
4. A system for selecting a channel based on Miracast protocol, comprising: the terminal equipment and the split screen equipment;
the terminal device includes: the system comprises a classification module, an acquisition module, a selection module and an establishment module;
the classification module is used for searching all connectable AP hotspots by equipment and classifying the connectable AP hotspots according to a first frequency band list supported by the classification module;
the terminal equipment searches information of all connectable AP hot spots, wherein the information comprises a channel;
acquiring a first frequency band list supported by the user, and establishing a corresponding hot spot classification for each frequency band in the first frequency band list;
according to the channel of each hotspot category, dividing the connectable AP hotspots into corresponding hotspot categories, and discarding AP hotspots which do not belong to the hotspot categories formed according to the frequency bands of the first frequency band list;
the acquisition module is used for acquiring a second frequency band list supported by the pre-configured split screen equipment and selecting an available classification in the hot spot classification according to the second frequency band list;
acquiring a second frequency band list supported by pre-configured split screen equipment, and searching a hot spot classification corresponding to each frequency band in the second frequency band list in the hot spot classification;
selecting the found hot spot classification as an available classification;
the selection module is used for searching an interference strategy corresponding to the available classification according to the frequency band of the available classification and selecting an optimal channel from the available classification according to the interference strategy;
judging the number of the available classifications, and selecting a first classification and a second classification with the highest transmission speed from the available classifications when the number is larger than 1;
respectively adopting corresponding interference strategies to obtain a first interference degree of the optimal channel in the first classification and a second interference degree of the optimal channel in the second classification;
respectively comparing the first interference degree with the second interference degree and the second interference degree with a preset threshold value;
when the first interference degree is smaller than the second interference degree or the second interference degree is larger than a preset threshold value, selecting an optimal channel corresponding to the first interference degree as an optimal channel;
the establishing module is used for establishing WiFi Direct communication with the split screen equipment through the optimal channel and sending data to the split screen equipment.
5. The Miracast protocol-based channel selection system as claimed in claim 4, wherein the terminal device further comprises: the searching module is used for searching all connectable WiFi Direct equipment information through WiFi Direct;
the screening module is used for screening the screen splitting equipment in the searched WiFi Direct equipment information according to the Miracast protocol to form a screen splitting equipment list and displaying the screen splitting equipment list;
and the receiving module is used for receiving the selection operation of the user on the split screen equipment list and searching the connectable AP hot spot according to the selection operation.
6. The Miracast protocol-based channel selection system as claimed in claim 4, wherein said establishing module specifically comprises: the negotiation unit is used for sending the optimal channel to the split screen equipment for negotiation through a WiFi Direct negotiation frame;
the first establishing unit is used for establishing WiFi Direct communication with the split screen equipment through the optimal channel and sending data to the split screen equipment when the negotiation is successful;
and the second establishing unit is used for prompting the user to communicate on the system default channel when the negotiation fails.
CN201710021914.XA 2017-01-12 2017-01-12 Miracast protocol-based channel selection method and system Active CN106604403B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710021914.XA CN106604403B (en) 2017-01-12 2017-01-12 Miracast protocol-based channel selection method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710021914.XA CN106604403B (en) 2017-01-12 2017-01-12 Miracast protocol-based channel selection method and system

Publications (2)

Publication Number Publication Date
CN106604403A CN106604403A (en) 2017-04-26
CN106604403B true CN106604403B (en) 2021-11-23

Family

ID=58585759

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710021914.XA Active CN106604403B (en) 2017-01-12 2017-01-12 Miracast protocol-based channel selection method and system

Country Status (1)

Country Link
CN (1) CN106604403B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108055671B (en) * 2017-12-13 2021-11-09 深圳创维-Rgb电子有限公司 Multi-device communication method, device, equipment and storage medium
CN109587712B (en) * 2018-11-23 2021-12-14 南京极域信息科技有限公司 WiFi-Display performance optimization system
CN112351417B (en) * 2019-08-08 2022-03-29 华为技术有限公司 Device discovery method and device and computer device
CN110913450B (en) * 2019-11-28 2022-06-07 宇龙计算机通信科技(深圳)有限公司 Control method and device for mobile hotspot, mobile terminal and storage medium
CN110996404B (en) * 2019-12-16 2022-06-28 联想(北京)有限公司 Method, device and system for establishing wireless connection
CN111556360A (en) * 2020-03-26 2020-08-18 深圳市炬力北方微电子有限公司 Wireless channel selection method, computer device and storage medium
CN113873303B (en) * 2020-06-30 2023-03-24 华为技术有限公司 Wireless screen projection method and terminal equipment
CN111935754A (en) * 2020-08-31 2020-11-13 广州朗国电子科技有限公司 AP hot spot channel automatic selection method, device, storage medium and terminal equipment
CN112954447B (en) * 2021-01-27 2022-06-03 四川长虹电器股份有限公司 Method for following channel under Miracast background resident condition
CN114615544B (en) * 2022-03-17 2024-06-04 深圳创维-Rgb电子有限公司 Screen channel optimization method, device, equipment and computer readable storage medium
CN115334514A (en) * 2022-06-29 2022-11-11 统信软件技术有限公司 Hot spot channel generation method, computing device and readable storage medium
CN115277786A (en) * 2022-08-11 2022-11-01 成都怡康科技有限公司 Networking method and device of physical measurement system, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104092769A (en) * 2014-07-22 2014-10-08 Tcl通讯(宁波)有限公司 WiFi point-to-point data transmission method and system
CN104254145A (en) * 2013-06-28 2014-12-31 电信科学技术研究院 WLAN (wireless local area network) based direct-communication establishment method and device
CN104980955A (en) * 2015-06-19 2015-10-14 重庆市音乐一号科技有限公司 Method for improving transfer rate of Wi-Fi Display
CN105392210A (en) * 2015-10-15 2016-03-09 深圳Tcl数字技术有限公司 WiFi direct connecting method and WiFi direct connecting device
CN106060946A (en) * 2016-05-31 2016-10-26 杭州华三通信技术有限公司 Channel distribution method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140111859A (en) * 2013-03-12 2014-09-22 삼성전자주식회사 Method and device for sharing content

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104254145A (en) * 2013-06-28 2014-12-31 电信科学技术研究院 WLAN (wireless local area network) based direct-communication establishment method and device
CN104092769A (en) * 2014-07-22 2014-10-08 Tcl通讯(宁波)有限公司 WiFi point-to-point data transmission method and system
CN104980955A (en) * 2015-06-19 2015-10-14 重庆市音乐一号科技有限公司 Method for improving transfer rate of Wi-Fi Display
CN105392210A (en) * 2015-10-15 2016-03-09 深圳Tcl数字技术有限公司 WiFi direct connecting method and WiFi direct connecting device
CN106060946A (en) * 2016-05-31 2016-10-26 杭州华三通信技术有限公司 Channel distribution method and device

Also Published As

Publication number Publication date
CN106604403A (en) 2017-04-26

Similar Documents

Publication Publication Date Title
CN106604403B (en) Miracast protocol-based channel selection method and system
US10314098B2 (en) Method and apparatus for connecting short-range wireless communication in terminal
KR102005771B1 (en) Method and apparatus for providing ip address in wireless communication network
KR101849925B1 (en) Method and apparatus for discovering device in wireless communication network
EP3363162B1 (en) Smart channel selection for autonomous group initiators
US9369858B2 (en) Wi-Fi P2P communication terminal device and communication method thereof
US10321312B2 (en) Communication apparatus and control method thereof
WO2020134720A1 (en) Data transmission control method and related product
US9936372B2 (en) Method and device for communication between devices in wireless communication system
CN115087059A (en) Cell reselection method and device, and communication equipment
EP3857975B1 (en) Mobile device and electronic device for wireless communication, and operation methods thereof
US20130058310A1 (en) Apparatus and method for setting channel in wireless network
KR20140066241A (en) Wireless local area network authentication method and mobile terminal
JP2007531456A (en) Interface negotiation
US20220124798A1 (en) Method and device for data transmission, multi-link system, and storage medium
US10075517B2 (en) Display apparatus and control method thereof
KR101863180B1 (en) Apparatus and method for dynamically determining communication link in communication system
EP4294079A1 (en) Network access method and apparatus, and device and storage medium
KR102135715B1 (en) Method and apparatus for providing ip address in wireless communication network
KR102170409B1 (en) Method and apparatus for providing ip address in wireless communication network
US20100136972A1 (en) Gateway module, communication method, and computer program product thereof
CN116033443A (en) Wireless connection method, device, storage medium and terminal
CN113966601A (en) Data transmission method, device, communication equipment and storage medium

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
TR01 Transfer of patent right

Effective date of registration: 20230911

Address after: Room 501, 85 Xiaguang Dongli, Haicang District, Xiamen City, Fujian Province, 361000

Patentee after: Xiamen reliable intellectual property service Co.,Ltd.

Address before: 516006 Zhongkai hi tech Zone, Huizhou, Guangdong, 86 Chang seven Road West

Patentee before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd.

TR01 Transfer of patent right