WO2017063369A1 - Procédé d'établissement d'une connexion directe sans fil et dispositif utilisant ce dernier - Google Patents

Procédé d'établissement d'une connexion directe sans fil et dispositif utilisant ce dernier Download PDF

Info

Publication number
WO2017063369A1
WO2017063369A1 PCT/CN2016/084439 CN2016084439W WO2017063369A1 WO 2017063369 A1 WO2017063369 A1 WO 2017063369A1 CN 2016084439 W CN2016084439 W CN 2016084439W WO 2017063369 A1 WO2017063369 A1 WO 2017063369A1
Authority
WO
WIPO (PCT)
Prior art keywords
direct connection
terminal
channel
wireless
channel number
Prior art date
Application number
PCT/CN2016/084439
Other languages
English (en)
Chinese (zh)
Inventor
简妹湘
赵家宇
Original Assignee
深圳Tcl数字技术有限公司
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 深圳Tcl数字技术有限公司 filed Critical 深圳Tcl数字技术有限公司
Publication of WO2017063369A1 publication Critical patent/WO2017063369A1/fr

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Definitions

  • the present invention relates to the field of wireless transmission technologies, and in particular, to a wireless direct connection method and apparatus.
  • Wi-Fi Direct's wireless direct connection application came into being, for example, Miracast.
  • the Miracast application allows content on one terminal's screen to be projected onto another terminal's screen over a wireless network to meet the entertainment and product experience requirements.
  • the method for connecting the Miracast application includes: detecting whether two terminals are connected to the same wireless network. If both terminals are connected to the same wireless network, the two terminals directly connect to the Miracast through the channel of the wireless network; If the terminals are not connected to the same wireless network, the first terminal and the second terminal scan all channels of the wireless network that they access to select a good channel, and the first terminal and the second terminal connect the Miracast application through the selected high quality channel. .
  • both terminals need to scan the channels of the wireless network one by one to determine that the connection is on the same high-quality channel, and the scanning of the non-connected channel extends the connection time of the Miracast application to cause the connection of the Miracast application. low efficiency.
  • the main object of the present invention is to provide a wireless direct connection method and device, which aims to solve the problem of low efficiency of the Miracast connection.
  • the present invention provides a wireless direct connection method, including:
  • the first terminal compares the direct connection parameter level of the local terminal with the preset direct connection parameter level;
  • the first terminal generates a graphic code according to the channel number, so that the second terminal scans the graphic code to obtain the channel number;
  • the first terminal After receiving the direct connection request sent by the second terminal, the first terminal detects whether the wireless direct connection module is activated;
  • the first terminal starts the wireless direct connection module
  • the first terminal establishes a wireless direct connection with the second terminal based on the wireless direct connection module and the obtained channel number.
  • the present invention further provides a wireless direct connection method, including:
  • the channel number corresponding to the channel with the least interference in the current wireless network is obtained;
  • the first terminal generates a graphic code according to the channel number, so that the second terminal scans the graphic code to obtain the channel number;
  • the first terminal After receiving the direct connection request sent by the second terminal, the first terminal performs a wireless direct connection with the second terminal according to the channel number.
  • the step of acquiring the channel number corresponding to the channel with the least interference in the current wireless network includes:
  • the first terminal scans all channels of the current wireless network
  • the channel with the strongest signal strength in the channel is used as the channel with the smallest interference, and the channel number corresponding to the channel with the least interference is obtained.
  • the wireless direct connection method includes:
  • the first terminal compares the direct connection parameter level of the local end with a preset direct connection parameter level
  • the step of acquiring the channel number corresponding to the channel with the least interference in the current wireless network is performed.
  • the step of acquiring the channel number corresponding to the channel with the least interference in the current wireless network includes:
  • the first terminal scans all channels of the current wireless network
  • the channel with the strongest signal strength in the channel is used as the channel with the smallest interference, and the channel number corresponding to the channel with the least interference is obtained.
  • the wireless direct connection method includes the following steps:
  • the first terminal broadcasts a direct connection request
  • the first terminal displays a graphic code scanning interface
  • the first terminal When scanning the graphic code based on the graphic code scanning interface, the first terminal parses the graphic code to obtain a channel number;
  • the first terminal Upon receiving the response information fed back by the direct connection request by the terminal providing the graphic code, the first terminal establishes a wireless direct connection with the terminal that provides the graphic code based on the acquired channel number.
  • the step of acquiring the channel number corresponding to the channel with the least interference in the current wireless network includes:
  • the first terminal scans all channels of the current wireless network
  • the channel with the strongest signal strength in the channel is used as the channel with the smallest interference, and the channel number corresponding to the channel with the least interference is obtained.
  • the step of the first terminal performing a wireless direct connection with the second terminal according to the channel number includes:
  • the first terminal detects whether the wireless direct connection module is activated
  • the first terminal starts the wireless direct connection module
  • the first terminal establishes a wireless direct connection with the second terminal based on the wireless direct connection module and the obtained channel number.
  • the step of acquiring the channel number corresponding to the channel with the least interference in the current wireless network includes:
  • the first terminal scans all channels of the current wireless network
  • the channel with the strongest signal strength in the channel is used as the channel with the smallest interference, and the channel number corresponding to the channel with the least interference is obtained.
  • the present invention further provides a wireless direct connection device, including:
  • An acquiring module configured to acquire a channel number corresponding to a channel with the least interference in the current wireless network when the first terminal where the first terminal is located enters the wireless direct connection mode;
  • a generating module configured to generate a graphic code according to the channel number, for the second terminal to scan the graphic code to obtain the channel number;
  • connection module configured to: after receiving the direct connection request sent by the second terminal, the first terminal performs a wireless direct connection with the second terminal according to the channel number.
  • the obtaining module comprises:
  • a scanning unit for scanning all channels of the current wireless network
  • an obtaining unit configured to use a channel with the strongest signal strength in the channel as the channel with the smallest interference, and obtain a channel number corresponding to the channel with the least interference.
  • the wireless direct connection device further includes:
  • the first terminal compares the direct connection parameter level of the local end with the preset direct connection parameter level
  • the acquiring module is further configured to: when the direct connection parameter level of the local end is equal to the preset direct connection parameter level, obtain a channel number corresponding to the channel with the least interference in the current wireless network.
  • the obtaining module comprises:
  • a scanning unit for scanning all channels of the current wireless network
  • an obtaining unit configured to use a channel with the strongest signal strength in the channel as the channel with the smallest interference, and obtain a channel number corresponding to the channel with the least interference.
  • the wireless direct connection device further includes:
  • a broadcast module configured to: when the direct connection parameter level of the local end is less than a preset direct connection parameter level, broadcast a direct connection request;
  • a display module for displaying a graphic code scanning interface
  • a parsing module configured to parse the graphic code to obtain a channel number when scanning the graphic code based on the graphic code scanning interface
  • connection module is further configured to: when receiving, by the terminal providing the graphic code, the response information that is fed back based on the direct connection request, the first terminal establishes, according to the obtained channel number, the providing the graphic code Wireless direct connection between terminals.
  • the obtaining module comprises:
  • a scanning unit for scanning all channels of the current wireless network
  • an obtaining unit configured to use a channel with the strongest signal strength in the channel as the channel with the smallest interference, and obtain a channel number corresponding to the channel with the least interference.
  • connection module comprises:
  • a detecting unit configured to detect whether the wireless direct connection module is activated
  • a startup unit configured to start the wireless direct connection module when the wireless direct connection module is not activated
  • a connecting unit configured to establish a wireless direct connection with the second terminal based on the wireless direct connection module and the obtained channel number.
  • the obtaining module comprises:
  • a scanning unit for scanning all channels of the current wireless network
  • an obtaining unit configured to use a channel with the strongest signal strength in the channel as the channel with the smallest interference, and obtain a channel number corresponding to the channel with the least interference.
  • the invention scans the graphic code on the terminal, parses the graphic code to obtain the channel number, and performs the Miracast connection according to the channel number, so that the terminal explicitly determines the channel number for the Miracast connection, instead of determining the channel connected by the Miracast by sequentially scanning the channel of the wireless network. No., thereby reducing the scan time of the scan of the non-connected channel and improving the efficiency of the Miracast connection.
  • FIG. 1 is a schematic flowchart of a first embodiment of a method for connecting a wireless direct connection according to the present invention
  • FIG. 2 is a schematic flowchart of a second embodiment of a method for connecting a wireless direct connection according to the present invention
  • FIG. 3 is a schematic flowchart diagram of a third embodiment of a method for connecting a wireless direct connection according to the present invention.
  • FIG. 4 is a schematic diagram of a refinement process of a wireless connection between a first terminal and a second terminal according to the channel number in a fourth embodiment of the method for wireless direct connection according to the present invention
  • FIG. 5 is a schematic flowchart of refining a channel number with minimum interference in a fifth embodiment of a method for connecting a wireless direct connection according to the present invention
  • FIG. 6 is a schematic diagram of functional modules of a first embodiment of a wireless direct connection device according to the present invention.
  • FIG. 7 is a schematic diagram of functional modules of a second embodiment of a wireless direct connection device according to the present invention.
  • FIG. 8 is a schematic diagram of functional modules of a third embodiment of a wireless direct connection device according to the present invention.
  • FIG. 9 is a schematic diagram of a refinement function module of a connection module according to the present invention.
  • FIG. 10 is a schematic diagram of a refinement function module of a receiving module according to the present invention.
  • the present invention provides a wireless direct connection method.
  • FIG. 1 is a schematic flowchart diagram of a first embodiment of a method for connecting a wireless direct connection according to the present invention.
  • the wireless direct connection method includes:
  • step S10 when the first terminal enters the wireless direct connection mode, the channel number corresponding to the channel with the least interference in the current wireless network is obtained;
  • the Miracast event listener is registered in the first terminal, and is used for monitoring the events of the Miracast application opening and closing, device connection, and terminal.
  • the Miracast application switch When the first terminal receives the request to open the Miracast application switch, the Miracast application switch is turned on, and all channels of the radio frequency segment used by the current wireless network are immediately scanned, and a high quality channel is selected, which can be understood as a space occupied by other signals.
  • the channel channel number of the premium channel is obtained by the least, and the other channel with the weakest signal strength.
  • the wireless network in the wireless direct connection mode, can provide a total of 23 communication channels in a total of 13 communication channels or 5 GHz transmission bands in the 2.4 GHz transmission band.
  • the first terminal When the first terminal enters the wireless direct mode, for example, a Miracast connection is made, the first terminal serves as a boot terminal, and the second terminal acts as a boot terminal.
  • the second terminal sends the direct connection request to the first terminal when detecting the direct connection request triggered by the user; or the second terminal enters the current wireless network coverage, the Miracast application automatically detects the current wireless network, and triggers Directly connect to the request.
  • the direct connection request includes opening a Miracast application switch, a terminal device connection and an interrupt.
  • the wireless network includes, but is not limited to, Wi-Fi.
  • Step S20 the first terminal generates a graphic code according to the channel number, so that the second terminal scans the graphic code to obtain a channel number;
  • the first terminal After obtaining the channel number corresponding to the channel with the smallest interference in the current wireless network, the first terminal automatically encodes the obtained channel number; or the first terminal detects the graphic code encoding instruction of the channel number, and The graphic code is encoded according to the channel number locked by the detected graphic code encoding instruction; or any other suitable manner.
  • the graphic code includes, but is not limited to, a two-dimensional code and a barcode.
  • a two-dimensional code is taken as an example.
  • the two-dimensional code records the data symbol information by using a certain geometric pattern in a plane (two-dimensional direction) distributed between the strip and the space between the graphics code.
  • the second terminal obtains the channel number by scanning the two-dimensional code, confirms a channel that is directly connected to the first terminal, and waits for the return information after the direct connection request is sent.
  • Step S30 After receiving the direct connection request sent by the second terminal, the first terminal performs a wireless direct connection with the second terminal according to the channel number.
  • the first terminal and the second terminal perform function negotiation by establishing a TCP connection channel, and the first terminal encapsulates the input connection signal into a corresponding type of connection according to the preset connection signal type.
  • Sending a signal packet to the second terminal, and the second terminal parses the received connection signal packet according to the preset connection signal type, and obtains the parsed connection signal, so as to implement the first terminal according to the The channel number is connected to the second terminal by Miracast.
  • the terminal can be implemented in various forms.
  • the terminal described in the present invention may include a mobile terminal or a fixed terminal.
  • Mobile terminal such as mobile phone, smart phone, laptop, lion broadcast receiver, PDA (Personal Digital Assistant), PAD (tablet), PMP (portable multimedia player), navigation device, etc.
  • fixed terminal such as digital TV , desktop computers, etc.
  • the mobile terminal or the fixed terminal has a relatively large screen and a small screen.
  • the first terminal can be considered as a fixed terminal with a relatively large screen
  • the second terminal is a mobile terminal with a relatively small screen.
  • the user can let the content on the smartphone be projected onto a large screen such as a smart TV through the wireless network; or, the user can also let the content on the smart TV screen be projected to the smartphone through the wireless network. Wait for small screen terminal devices.
  • the invention scans the graphic code on the terminal, parses the graphic code to obtain the channel number, and performs the Miracast connection according to the channel number, so that the terminal explicitly determines the channel number for the Miracast connection, instead of determining the channel connected by the Miracast by sequentially scanning the channel of the wireless network. No., thereby reducing the scan time of the scan of the non-connected channel and improving the efficiency of the Miracast connection.
  • the method further includes:
  • Step S40 When the first terminal enters the wireless direct connection mode, the first terminal compares the direct connection parameter level of the local end with the preset direct connection parameter level;
  • the direct connection parameter in the set wireless network program is read, and the level of the direct connection parameter is determined.
  • the user can set the direct connection parameter p2p_go_intent in the wireless network direct connection configuration file p2p_supplicant of the first terminal system to different levels, and directly connect the parameter level to determine whether the first terminal is used as the leading end when the direct connection is directly connected. As the guided end.
  • the direct connection parameter level of the local end and the preset direct connection parameter level are compared.
  • the direct connection profile is read from a wireless network program.
  • step S10 is performed to obtain the channel number corresponding to the channel with the least interference in the current wireless network.
  • the terminal system sets different levels of the parameter p2p_go_intent in the wireless direct connection configuration file p2p_supplicant in the wireless network, and the terminal exchanges between the leading end and the guided end, that is, the terminal is generated.
  • the graphic code terminal and the scanned graphic code terminal are interchanged.
  • the first terminal determines to be the guidance. End, scan the channel of the wireless network in the current environment, and obtain the channel number corresponding to the channel with the least interference in the wireless network.
  • the leading end includes a feedback direct connection request, a graphic code, a scanning wireless network signal, and the like.
  • the terminal can determine whether the local end is the leading end or the leading end by comparing the direct connection parameter level of the local end with the preset direct connection parameter level, so that the local end performs different functions.
  • the method further includes:
  • Step S50 The first terminal broadcasts a direct connection request when the direct connection parameter level of the local end is less than a preset direct connection parameter level;
  • the highest priority set by the direct connection parameter p2p_go_intent in the directly connected configuration file p2p_supplicant of the first terminal in the wireless network is less than 15, and it is determined that the first terminal is a scanned graphic code terminal.
  • the wireless direct connection module of the first terminal automatically broadcasts the direct connection request; or the wireless direct connection module that triggers the first terminal based on the user broadcasts the direct connection request.
  • the receiving end of the direct connection request is not limited to one, and there may be multiple.
  • Step S60 the first terminal displays a graphic code scanning interface
  • the user may click the information prompt of the direct connection request broadcast to directly enter the first terminal to display the graphic code scanning interface, for example, double-click the graphic code scanning interface shortcut icon on the lock screen interface; or the user Find the graphic code scanning interface application to display the graphic code scanning interface after clicking.
  • the wireless network broadcasts the prompt installation information of the associated application to the terminal within the coverage of the wireless network signal in which it is located.
  • the terminal that scans the graphic code terminal and does not install the associated application needs to download and install the associated application according to the corresponding prompting step after receiving the prompting installation information.
  • the associated application is an application that recognizes a two-dimensional code, which may be in the format of an APP.
  • the wireless network includes, but is not limited to, a Wi-Fi wireless network.
  • the wireless network signal coverage area may be, for example, a wireless router installed in the room, the coverage of the wireless network signal is the area where the room is located; the wireless router is installed in the public place, and the wireless network signal coverage is in a public place. The area where you are.
  • Step S70 When scanning the graphic code based on the graphic code scanning interface, the first terminal parses the graphic code to obtain a channel number;
  • the first terminal uses the associated application scan to identify an external two-dimensional code
  • the associated application acquires a channel number corresponding to the two-dimensional code.
  • the first terminal monitors the two-dimensional code parsing event and obtains the channel number for the Miracast connection
  • the first terminal automatically opens the Miracast switch according to the channel number.
  • the first terminal sends a direct connection request to the terminal that provides the graphic code, and waits for feedback information on the acquired channel.
  • the terminal that provides the graphic code may be the second terminal, or may be other terminals in the current wireless network.
  • Step S80 when receiving the response information fed back by the terminal that provides the graphic code based on the direct connection request, the first terminal establishes a wireless relationship with the terminal that provides the graphic code based on the acquired channel number. Direct connection.
  • the terminal that provides the graphic code When the direct connection is performed, the terminal that provides the graphic code is a leading end, and generates a graphic code for the first terminal to perform a scanning operation based on the graphic code, where the first terminal is a guided end.
  • the terminal that provides the graphic code detects the direct connection request and generates wireless direct connection information to return to the first terminal.
  • the terminal that provides the graphic code may receive a plurality of terminals to send a direct connection request, and feed back response information to the multiple terminals based on the direct connection request. After receiving the response information on the acquired channel, the first terminal performs a Miracast connection with the first terminal according to the channel number.
  • the television terminal that is, the second terminal scans all channels of the current wireless network signal coverage, determines a good channel, obtains the channel number of the premium channel, and generates a two-dimensional code image according to the channel number.
  • the two-dimensional code image may be displayed on the screen of the television end in the form of an icon, or may be printed and posted in the room.
  • the television terminal sends a broadcast of the prompt information of the related application that installs the Miracast connection. After the user enters the coverage of the wireless network signal, the broadcast of the prompt information of the related application for installing the Miracast connection is accepted, and the associated application is installed according to the broadcast prompt.
  • the mobile terminal that is, the first terminal scans the two-dimensional code image, acquires a channel number of a wireless network corresponding to the two-dimensional code image, and automatically sends the same to the other terminal that provides the two-dimensional code image, that is, the television end.
  • the direct connection request after receiving the response information, establishes a Miracast connection with the television end.
  • the first terminal sends a direct connection request to the terminal that provides the graphic code, and the first terminal provides a graphic code scanning interface, so that the first terminal is exchanged from the leading end to the guided end, which is effective.
  • the problem that both the leading end and the guided end need to scan the wireless network channel and increase the scanning time is solved.
  • step S30 includes:
  • Step S31 The first terminal detects whether the wireless direct connection module is started.
  • the wireless direct connection module After receiving the direct connection request sent by the second terminal, determining whether the wireless direct connection module of the first terminal is started.
  • the wireless direct connection module monitors the direct connection request, the Miracast switch, the connection status of the device, and sends an instruction to the local end to open the Miracast switch. When the current Miracast switch is turned on, the Miracast connection will be made directly.
  • Step S32 when the wireless direct connection module is not activated, the first terminal starts the wireless direct connection module
  • the first terminal receives an instruction for opening the Miracast switch sent by the local end, and obtains a channel number obtained from the graphic code parsed by the local end, according to the instruction for opening the Miracast switch. And the channel number automatically turns on the wireless direct connection module; or, based on the user triggers the Miracast switch.
  • Step S33 The first terminal establishes a wireless direct connection with the second terminal based on the wireless direct connection module and the obtained channel number.
  • the second terminal receives the connection signal and the real-time control of the first terminal by using the Miracast protocol, and displays the content sharing on the screen of the first terminal on the screen of the second terminal, by using the second terminal.
  • the terminal hardware system decodes and encodes the signal to deliver a signal suitable for the large screen to the small screen.
  • the receiving the connection signal and the real-time manipulation of the first end by the Miracast protocol includes establishing a TCP connection channel for function negotiation.
  • the second terminal receives the connection signal and the real-time control of the first terminal by using the Miracast protocol, and displays the content sharing on the second terminal screen on the first terminal screen, and the first terminal hardware system
  • the signal is decoded and encoded to deliver a suitable small screen signal to the large screen.
  • the switch of the Miracast application when the Miracast application is not used, the switch of the Miracast application is turned off, reducing the power consumption of the terminal and reducing the occupation of the wireless network by the terminal; and obtaining the command and channel number for opening the Miracast switch. Automatically turn on the switch of the Miracast app to improve the app experience.
  • the foregoing step S10 includes:
  • Step S11 the first terminal scans all channels of the current wireless network
  • the first terminal After the first terminal compares the direct connection parameter level of the local end with the direct connection parameter level preset by the local end, after determining that the direct connection parameter level of the local end is the highest priority 15, the first terminal scans the current wireless network channel for the leading end. The first terminal detects the current wireless network signal.
  • Step S22 The channel with the strongest signal strength in the channel is used as the channel with the smallest interference, and the channel number corresponding to the channel with the least interference is obtained.
  • the first terminal selects a wireless network with the strongest signal strength in the current wireless network
  • the first terminal detects the wireless network, setting a wireless network signal strength threshold, if the detected signal strength is less than the preset wireless network signal strength threshold, then giving up and continuing to detect the wireless network signal strength in the current environment. Until the wireless network signal whose channel strength is greater than the wireless network signal strength threshold is detected. If the detected wireless network signal whose channel strength is greater than the wireless network signal strength threshold is greater than one, the signal strengths are compared to obtain a wireless network signal with the highest signal strength, and the first terminal bottom layer starts the wireless network scanning function, and acquires the The channel and channel/bandwidth occupancy status information contained in the wireless network is allowed/disabled to use channel/bandwidth status information.
  • the terminal when the terminal is connected to Wi-Fi, a channel with a relatively strong Wi-Fi signal is preferentially selected for connection.
  • the space occupied by other signals in the channel where the signal is relatively strong is small, and the strength of the other signals is weak. Therefore, the channel with a relatively strong signal has small interference and smooth communication. Therefore, when performing the Miracast connection, the terminal preferentially scans the channel with weak Wi-Fi signal, determines the channel with the strongest signal as the quality channel, and acquires the channel number of the high-quality channel.
  • the invention further provides a wireless direct connection device.
  • FIG. 6 is a schematic diagram of functional modules of a first embodiment of a wireless direct connection device according to the present invention.
  • the device includes: an obtaining module 10, a generating module 20, and a connecting module 30.
  • the obtaining module 10 is configured to acquire, when the first terminal where the first terminal is located, enter a wireless direct connection mode, obtain a channel number corresponding to a channel with the least interference in the current wireless network;
  • the Miracast event listener is registered in the connection module 30 of the first terminal, and is used for monitoring the events of the Miracast application opening and closing, device connection, and terminal.
  • the receiving module 10 of the first terminal receives the request to open the Miracast application switch
  • the Miracast application switch is opened, and all channels of the radio frequency segment used by the current wireless network are immediately scanned, and a high quality channel is selected, and the high quality channel can be understood as being
  • the other signals occupy the least space, and the other channels with the weakest signal strength are the best, and the channel number of the good channel is obtained.
  • the wireless network in the wireless direct connection mode, can provide a total of 23 communication channels in a total of 13 communication channels or 5 GHz transmission bands in the 2.4 GHz transmission band.
  • a wireless direct connection for example, a Miracast connection is made
  • the first terminal serves as a boot terminal
  • the second terminal serves as a boot terminal.
  • the second terminal detects the direct connection request triggered by the user
  • the second terminal sends the direct connection request to the receiving module 10 of the first terminal; or the second terminal enters the current wireless network coverage, and the Miracast application automatically Detects the current wireless network and triggers a direct connection request.
  • the direct connection request includes opening a Miracast application switch, a terminal device connection and an interrupt.
  • the wireless network includes, but is not limited to, Wi-Fi.
  • the generating module 20 is configured to generate a graphic code according to the channel number, so that the second terminal scans the graphic code to obtain the channel number;
  • the channel number of the generating module 20 is automatically graphically encoded; or the generating module 20 detects the graphic code encoding instruction of the channel number. And performing graphic code encoding according to the channel number locked by the detected graphic code encoding instruction; or any other applicable manner.
  • the graphic code includes, but is not limited to, a two-dimensional code and a barcode.
  • a two-dimensional code is taken as an example.
  • the two-dimensional code records the data symbol information by using a certain geometric pattern in a plane (two-dimensional direction) distributed between the strip and the space between the graphics code.
  • the second terminal obtains the channel number by scanning the two-dimensional code, confirms a channel that is directly connected to the first terminal, and waits for the return information after the direct connection request is sent.
  • the connection module 30 is configured to: after receiving the direct connection request sent by the second terminal, the first terminal performs a wireless direct connection with the second terminal according to the channel number.
  • the connection module 30 of the first terminal and the second terminal perform function negotiation by establishing a TCP connection channel, and the connection module 30 inputs the input connection signal according to the preset connection signal type.
  • the connection signal packet encapsulated into a corresponding type is sent to the second terminal, and the second terminal parses the received connection signal packet according to the preset connection signal type, and obtains the parsed connection signal, and implements the The first terminal performs a Miracast connection with the second terminal according to the channel number.
  • the terminal can be implemented in various forms.
  • the terminal described in the present invention may include a mobile terminal or a fixed terminal.
  • Mobile terminal such as mobile phone, smart phone, laptop, lion broadcast receiver, PDA (Personal Digital Assistant), PAD (tablet), PMP (portable multimedia player), navigation device, etc.
  • fixed terminal such as digital TV , desktop computers, etc.
  • the mobile terminal or the fixed terminal has a relatively large screen and a small screen.
  • the first terminal can be considered as a fixed terminal with a relatively large screen
  • the second terminal is a mobile terminal with a relatively small screen.
  • the user can let the content on the smartphone be projected onto a large screen such as a smart TV through the wireless network; or, the user can also let the content on the smart TV screen be projected to the smartphone through the wireless network. Wait for small screen terminal devices.
  • the terminal by scanning the graphic code on the terminal, parsing the graphic code to obtain the channel number, and performing the Miracast connection according to the channel number, so that the terminal explicitly determines the channel number for the Miracast connection, instead of determining the Miracast connection by sequentially scanning the channel of the wireless network.
  • the channel number thereby reducing the scan time for scanning the non-connected channel and improving the efficiency of the Miracast connection.
  • FIG. 7 is a schematic diagram of functional modules of a second embodiment of a wireless direct connection device according to the present invention.
  • the device further includes: a comparison module 40.
  • the first terminal compares the direct connection parameter level of the local end with a preset direct connection parameter level
  • the direct connection parameter in the set wireless network program is read, and the level of the direct connection parameter is determined.
  • the user can set the direct connection parameter p2p_go_intent in the wireless network direct connection configuration file p2p_supplicant of the comparison module 40 to different levels, and directly connect the parameter level to determine whether the first terminal is used as the leading end when the direct connection is directly connected. As the guided end.
  • the comparison module 40 compares the direct connection parameter level of the local end with the size of the preset direct connection parameter level.
  • the direct connection profile is read from a wireless network program.
  • the obtaining module 10 obtains the channel number corresponding to the channel with the least interference in the current wireless network when the direct connection parameter level of the local end is equal to the preset direct connection parameter level.
  • the terminal system has different levels in the direct connection parameter p2p_go_intent setting in the wireless direct connection configuration file p2p_supplicant in the wireless network, and the terminal exchanges between the leading end and the guided end, that is, the terminal The interchange between the generated graphics terminal and the scanned graphics terminal is performed.
  • the first terminal is determined to be a leading end, and scans a channel of the wireless network in the current environment to obtain a channel number corresponding to the channel with the least interference in the wireless network.
  • the terminal can determine whether the local end is the leading end or the leading end by comparing the direct connection parameter level of the local end with the preset direct connection parameter level, so that the local end performs different functions.
  • FIG. 8 is a schematic diagram of functional modules of a third embodiment of a wireless direct connection device according to the present invention.
  • the device further includes: a broadcast module 60, a display module 70, and a parsing module 80.
  • the broadcast module 50 is configured to: when the direct connection parameter level of the local end is less than a preset direct connection parameter level, broadcast a direct connection request;
  • the highest priority set by the direct connection parameter p2p_go_intent in the direct connection configuration file p2p_supplicant of the first terminal acquired by the obtaining module 10 is less than 15, and the second terminal is determined to be a scan.
  • the wireless direct connection module of the broadcast module 50 of the first terminal automatically broadcasts a direct connection request; or the broadcast module 50 broadcasts a request based on a wireless direct connection module triggered by the user to trigger the first terminal.
  • the receiving end of the direct connection request is not limited to one, and there may be multiple.
  • the display module 60 is configured to display a graphic code scanning interface
  • the user may click the information of the direct connection request broadcast to directly enter the graphic code scanning interface displayed by the display module 60 of the first terminal, for example, double-clicking the lock.
  • the graphic code scanning interface shortcut icon on the screen interface; or the user finds the graphic code scanning interface application to display the graphic code scanning interface after clicking.
  • the wireless network broadcasts the prompt installation information of the associated application to the terminal within the coverage of the wireless network signal in which it is located.
  • the terminal that scans the graphic code terminal and does not install the associated application, after receiving the prompt installation information, the user can download and install the associated application according to the corresponding prompting step.
  • the associated application is an application that recognizes a two-dimensional code, which may be in the format of an APP.
  • the wireless network includes, but is not limited to, a Wi-Fi wireless network.
  • the wireless network signal coverage area may be, for example, a wireless router installed in the room, the coverage of the wireless network signal is the area where the room is located; the wireless router is installed in the public place, and the wireless network signal coverage is in a public place. The area where you are.
  • the parsing module 70 is configured to parse the graphic code to obtain a channel number when scanning the graphic code based on the graphic code scanning interface.
  • the parsing module 70 uses the associated application scan to identify an external two-dimensional code
  • the associated application acquires a channel number corresponding to the two-dimensional code.
  • the connection module 30 of the first terminal monitors the two-dimensional code parsing event and obtains the channel number for the Miracast connection
  • the first terminal automatically opens the Miracast switch according to the channel number.
  • the first terminal sends a direct connection request to the terminal that provides the graphic code, and waits for feedback information on the acquired channel.
  • the terminal that provides the graphic code may be the second terminal, or may be other terminals in the current wireless network.
  • connection module 30 is further configured to: when receiving, by the terminal that provides the graphic code, response information that is fed back based on the direct connection request, the first terminal establishes and provides the Wireless direct connection between terminals of graphics code.
  • the terminal that provides the graphic code is a leading end, and generates a graphic code for the first terminal to perform a scanning operation based on the graphic code, where the first terminal is a guided end.
  • the terminal that provides the graphic code detects the direct connection request and generates wireless direct connection information to return to the first terminal.
  • the terminal that provides the graphic code may receive a plurality of terminals to send a direct connection request, and feed back response information to the multiple terminals based on the direct connection request.
  • the connection module 30 After receiving the response information on the acquired channel, the connection module 30 performs a Miracast connection with the first terminal according to the channel number.
  • the television terminal that is, the second terminal scans all channels of the current wireless network signal coverage, determines a good channel, obtains the channel number of the premium channel, and generates a two-dimensional code image according to the channel number.
  • the two-dimensional code image may be displayed on the screen of the television end in the form of an icon, or may be printed and posted in the room.
  • the television terminal sends a broadcast of the prompt information of the related application that installs the Miracast connection. After the user enters the coverage of the wireless network signal, the broadcast of the prompt information of the related application for installing the Miracast connection is accepted, and the associated application is installed according to the broadcast prompt.
  • the mobile terminal that is, the first terminal scans the two-dimensional code image, acquires a channel number of a wireless network corresponding to the two-dimensional code image, and automatically sends the same to the other terminal that provides the two-dimensional code image, that is, the television end.
  • the direct connection request after receiving the response information, establishes a Miracast connection with the television end.
  • the first terminal sends a direct connection request to the terminal that provides the graphic code, and the first terminal provides a graphic code scanning interface, so that the first terminal is exchanged from the leading end to the guided end, which is effective.
  • the problem that both the leading end and the guided end need to scan the wireless network channel and increase the scanning time is solved.
  • FIG. 9 is a schematic diagram of functional modules of an embodiment of a connection module 30 according to the present invention.
  • connection module 30 includes a detecting unit 31, a starting unit 32, and a connecting unit 33.
  • the detecting unit 31 is configured to detect whether the wireless direct connection module is activated.
  • the detecting unit 31 determines whether the wireless direct connection module of the first terminal is activated.
  • the wireless direct connection module monitors the direct connection request, the Miracast switch, the connection status of the device, and sends an instruction to the local end to open the Miracast switch.
  • the detecting unit 31 detects that the Miracast connection is directly performed when the current Miracast switch is turned on.
  • the initiating unit 32 is configured to start the wireless direct connection module when the wireless direct connection module is not activated;
  • the detecting unit 31 detects that the local terminal does not turn on the wireless direct connection module, and the starting unit 32 of the first terminal receives the instruction to open the Miracast switch sent by the local end, and obtains the graphic code parsed from the local end.
  • the channel number to be obtained, the wireless direct connection module is automatically turned on according to the instruction to open the Miracast switch and the channel number; or the Miracast switch is triggered based on the user.
  • the connecting unit 33 is configured to establish a wireless direct connection with the second terminal based on the wireless direct connection module and the obtained channel number.
  • connection unit 33 of the second terminal receives the connection signal and real-time control of the first terminal by using the Miracast protocol, and displays the content sharing on the screen of the first terminal on the second terminal screen.
  • the signal is decoded and encoded by the connecting unit 33 of the second terminal, so that a signal of a suitable large screen is transmitted to the small screen.
  • the receiving the connection signal and the real-time manipulation of the first end by the Miracast protocol includes establishing a TCP connection channel for function negotiation.
  • connection unit 33 of the second terminal receives the connection signal of the first terminal and the real-time manipulation by using the Miracast protocol, and displays the content sharing on the second terminal screen on the first terminal screen, by using the The first terminal hardware system decodes and encodes the signal to deliver a suitable small screen signal to the large screen.
  • the switch of the Miracast application when the Miracast application is not used, the switch of the Miracast application is turned off, reducing the power consumption of the terminal and reducing the occupation of the wireless network by the terminal; and obtaining the command and channel number for opening the Miracast switch. Automatically turn on the switch of the Miracast app to improve the app experience.
  • FIG. 10 is a schematic diagram of functional modules of an embodiment of the acquisition module 10 of the present invention.
  • the obtaining module 10 includes a scanning module 11 and an obtaining unit 12.
  • the scanning unit 11 is configured to scan all channels of the current wireless network
  • the first terminal compares the direct connection parameter level of the local end with the direct connection parameter level preset by the local end, and determines that the direct connection parameter level of the local end is the highest priority 15, the first terminal is the leading end, and the scanning unit is adopted.
  • 11 Scan the current wireless network channel. The first terminal detects the current wireless network signal.
  • the acquiring unit 12 is configured to use a channel with the strongest signal strength in the channel as the channel with the smallest interference, and obtain a channel number corresponding to the channel with the smallest interference.
  • the acquiring unit 12 of the first terminal selects a wireless network with the strongest signal strength in the current wireless network
  • the acquiring unit 12 sets a wireless network signal strength threshold in advance when detecting the wireless network, and if the detected signal strength is less than the preset wireless network signal strength threshold, abandoning and continuing to detect the current The wireless network signal strength in the environment until a wireless network signal with a channel strength greater than the wireless network signal strength threshold is detected. If the detected wireless network signal whose channel strength is greater than the wireless network signal strength threshold is greater than one, the signal strengths are compared to obtain the wireless network signal with the strongest signal strength, and the first terminal bottom layer starts the wireless network scanning function to obtain The channel and channel/bandwidth occupancy status information contained in the wireless network allows/disables the use of channel/bandwidth status information.
  • the terminal when the terminal is connected to Wi-Fi, a channel with a relatively strong Wi-Fi signal is preferentially selected for connection.
  • the space occupied by other signals in the channel where the signal is relatively strong is small, and the strength of the other signals is weak. Therefore, the channel with a relatively strong signal has small interference and smooth communication. Therefore, when performing the Miracast connection, the terminal preferentially scans the channel with weak Wi-Fi signal, determines the channel with the strongest signal as the quality channel, and acquires the channel number of the high-quality channel.

Landscapes

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

Abstract

L'invention concerne un procédé d'établissement d'une connexion directe sans fil. Le procédé consiste : lorsqu'un mode de connexion directionnelle sans fil est activé, à obtenir, au moyen d'un premier terminal, un numéro de canal correspondant à un canal ayant des interférences minimales dans un réseau sans fil actuel ; à générer, au moyen du premier terminal, en fonction du numéro de canal, un code de motif qui doit être balayé par un second terminal pour obtenir le numéro de canal ; et lors de la réception d'une demande de connexion directionnelle transmise à partir du second terminal, à établir, au moyen du premier terminal, en fonction du numéro de canal, une connexion directionnelle sans fil avec le second terminal. L'invention concerne également un dispositif de connexion directionnelle sans fil. L'invention peut être mise en œuvre pour déterminer un numéro de canal pour effectuer une connexion Miracast au moyen d'un terminal par balayage d'un code de motif, ce qui permet d'augmenter l'efficacité de connexion d'une application Miracast.
PCT/CN2016/084439 2015-10-15 2016-06-02 Procédé d'établissement d'une connexion directe sans fil et dispositif utilisant ce dernier WO2017063369A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510666985.6 2015-10-15
CN201510666985.6A CN105392210B (zh) 2015-10-15 2015-10-15 无线直连连接方法及装置

Publications (1)

Publication Number Publication Date
WO2017063369A1 true WO2017063369A1 (fr) 2017-04-20

Family

ID=55423934

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/084439 WO2017063369A1 (fr) 2015-10-15 2016-06-02 Procédé d'établissement d'une connexion directe sans fil et dispositif utilisant ce dernier

Country Status (2)

Country Link
CN (1) CN105392210B (fr)
WO (1) WO2017063369A1 (fr)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112566126A (zh) * 2020-12-02 2021-03-26 支付宝(杭州)信息技术有限公司 一种设备之间的连接方法、装置及设备
EP4030794A3 (fr) * 2021-06-08 2022-11-30 Apollo Intelligent Connectivity (Beijing) Technology Co., Ltd. Procédé et appareil d'interconnexion entre véhicule et machine

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105392210B (zh) * 2015-10-15 2019-03-12 深圳Tcl数字技术有限公司 无线直连连接方法及装置
CN108243201A (zh) * 2016-12-23 2018-07-03 乐视汽车(北京)有限公司 一种车机及实现车机与移动终端的互联的系统及方法
CN106604403B (zh) * 2017-01-12 2021-11-23 惠州Tcl移动通信有限公司 一种基于Miracast协议的信道选择方法及系统
CN116156660A (zh) 2017-11-16 2023-05-23 华为技术有限公司 多载频选择方法及相关设备
CN108055671B (zh) * 2017-12-13 2021-11-09 深圳创维-Rgb电子有限公司 多设备通信方法、装置、设备及存储介质
CN111065075B (zh) * 2019-12-25 2021-06-01 郭晋华 一种应用于新一代信息技术的m2m物联网改进通信方法、设备和系统
CN113382457B (zh) * 2021-05-17 2022-09-02 Tcl通讯(宁波)有限公司 WiFi P2P连接方法、装置、移动终端及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547685A (zh) * 2011-12-28 2012-07-04 Tcl王牌电器(惠州)有限公司 直连链路的建立方法、终端及通信系统
CN103369714A (zh) * 2013-06-17 2013-10-23 华为技术有限公司 建立数据连接的方法、装置和终端设备
CN103595798A (zh) * 2013-11-14 2014-02-19 福州瑞芯微电子有限公司 一种基于WIFI Direct的体感分享主/从设备及方法
US20140351444A1 (en) * 2013-05-22 2014-11-27 Emily H. Qi Systems and methods for enabling service interoperability functionality for wifi direct devices connected to a network via a wireless access point
CN105392210A (zh) * 2015-10-15 2016-03-09 深圳Tcl数字技术有限公司 无线直连连接方法及装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067052A (zh) * 2012-12-26 2013-04-24 上海合合信息科技发展有限公司 基于二维条码来建立蓝牙连接的方法及系统
US20140282923A1 (en) * 2013-03-14 2014-09-18 Motorola Mobility Llc Device security utilizing continually changing qr codes
CN103813473B (zh) * 2014-01-17 2017-08-25 深圳市金立通信设备有限公司 一种通信方法、终端及系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547685A (zh) * 2011-12-28 2012-07-04 Tcl王牌电器(惠州)有限公司 直连链路的建立方法、终端及通信系统
US20140351444A1 (en) * 2013-05-22 2014-11-27 Emily H. Qi Systems and methods for enabling service interoperability functionality for wifi direct devices connected to a network via a wireless access point
CN103369714A (zh) * 2013-06-17 2013-10-23 华为技术有限公司 建立数据连接的方法、装置和终端设备
CN103595798A (zh) * 2013-11-14 2014-02-19 福州瑞芯微电子有限公司 一种基于WIFI Direct的体感分享主/从设备及方法
CN105392210A (zh) * 2015-10-15 2016-03-09 深圳Tcl数字技术有限公司 无线直连连接方法及装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112566126A (zh) * 2020-12-02 2021-03-26 支付宝(杭州)信息技术有限公司 一种设备之间的连接方法、装置及设备
EP4030794A3 (fr) * 2021-06-08 2022-11-30 Apollo Intelligent Connectivity (Beijing) Technology Co., Ltd. Procédé et appareil d'interconnexion entre véhicule et machine

Also Published As

Publication number Publication date
CN105392210B (zh) 2019-03-12
CN105392210A (zh) 2016-03-09

Similar Documents

Publication Publication Date Title
WO2017063369A1 (fr) Procédé d'établissement d'une connexion directe sans fil et dispositif utilisant ce dernier
WO2019056752A1 (fr) Procédé, dispositif, et système de navigation de configuration de réseau pour des appareils électroménagers, et support de stockage lisible par ordinateur
WO2019051899A1 (fr) Procédé et dispositif de commande de terminaux, et support d'informations
WO2017082646A1 (fr) Dispositif électronique avec antenne à cadre métallique
WO2019051890A1 (fr) Procédé et dispositif de commande de terminal et support de stockage lisible par ordinateur
WO2019062194A1 (fr) Appareil ménager, procédé et système de commande d'appareil ménager, et support d'informations lisible par ordinateur
WO2019051895A1 (fr) Procédé et dispositif de commande de terminal, et support de stockage
WO2019019374A1 (fr) Procédé, appareil et système permettant de commander un appareil électroménager à l'aide d'un dispositif vocal intelligent
WO2019051908A1 (fr) Procédé et dispositif de commande de terminal, et support de stockage lisible par ordinateur
WO2015139639A1 (fr) Procédé et appareil pour afficher des icônes d'application sur un terminal
WO2017201899A1 (fr) Procédé et appareil de connexion à un dispositif bluetooth
WO2016186373A1 (fr) Appareil et procédé pour mettre en oeuvre un processus de recherche de mobile dans un système de communications sans fil
WO2019019340A1 (fr) Procédé et appareil d'ouverture de page de programme d'application, terminal et support de mémoire lisible
WO2015158132A1 (fr) Procede et systeme de commande vocale
WO2020010671A1 (fr) Procédé et dispositif d'affichage, poste de télévision et support d'informations
WO2017111321A1 (fr) Dispositif d'affichage d'image
WO2016043404A1 (fr) Appareil multimédia et procédé de traitement de signal audio associé
WO2017088437A1 (fr) Procédé et dispositif de commande de commutation de caméras de terminal au moyen d'une télévision intelligente
WO2019071762A1 (fr) Procédé et système de positionnement au sol, serveur et support d'enregistrement lisible par ordinateur
WO2017148028A1 (fr) Procédé et système de connexion de réseau à distance basés sur un téléviseur intelligent
WO2017185480A1 (fr) Procédé, dispositif et système de connexion d'interaction multi-écran
WO2018000856A1 (fr) Procédé de mise en œuvre de transfert de message de réseau de recouvrement sdn, terminal, appareil et support d'informations lisible par ordinateur
WO2018166107A1 (fr) Procédé de compatibilité à base hybride, adaptateur, appareil et système d'exploitation, et support de stockage lisible par ordinateur
WO2018176864A1 (fr) Procédé et système de gestion d'autorisation de base de données, dispositif, support d'informations lisible par ordinateur
WO2019051934A1 (fr) Procédé d'évaluation de personnel commercial, plateforme d'évaluation et support d'informations lisible par ordinateur

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16854755

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 02.08.2018)

122 Ep: pct application non-entry in european phase

Ref document number: 16854755

Country of ref document: EP

Kind code of ref document: A1