WO2018113113A1 - 一种双***终端wifi共享的方法和装置 - Google Patents

一种双***终端wifi共享的方法和装置 Download PDF

Info

Publication number
WO2018113113A1
WO2018113113A1 PCT/CN2017/077307 CN2017077307W WO2018113113A1 WO 2018113113 A1 WO2018113113 A1 WO 2018113113A1 CN 2017077307 W CN2017077307 W CN 2017077307W WO 2018113113 A1 WO2018113113 A1 WO 2018113113A1
Authority
WO
WIPO (PCT)
Prior art keywords
wifi
system device
service set
set identifier
connection control
Prior art date
Application number
PCT/CN2017/077307
Other languages
English (en)
French (fr)
Inventor
王新
Original Assignee
广州视源电子科技股份有限公司
广州视臻信息科技有限公司
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 广州视源电子科技股份有限公司, 广州视臻信息科技有限公司 filed Critical 广州视源电子科技股份有限公司
Publication of WO2018113113A1 publication Critical patent/WO2018113113A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/03Protecting confidentiality, e.g. by encryption
    • H04W12/033Protecting confidentiality, e.g. by encryption of the user plane, e.g. user's traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/03Protecting confidentiality, e.g. by encryption
    • H04W12/037Protecting confidentiality, e.g. by encryption of the control plane, e.g. signalling traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]

Definitions

  • the embodiments of the present invention relate to the field of intelligent terminals, and in particular, to a method and an apparatus for sharing a dual system terminal WIFI.
  • ADB Android Debug Bridge
  • the method of connecting WIFI in the prior art is to connect the WIFIs of the two systems respectively, that is, after one system is connected to the WIFI, in the switching channel to another system, another WIFI connection of the system is performed. .
  • the embodiment of the invention provides a method and device for sharing WIFI of a dual system terminal, which realizes the requirement of the common system device and the auxiliary system device to access the Internet, and improves the efficiency of the WIFI connection.
  • an embodiment of the present invention provides a method for sharing a dual system terminal WIFI, the method comprising:
  • the main system device obtains the WIFI service set identifier and the corresponding WIFI password, and generates a WIFI connection control instruction that uses the WIFI service set identifier and the corresponding WIFI password as instruction parameters;
  • the main system device sends the WIFI connection control command to the auxiliary system device;
  • the auxiliary system device After receiving the control command, the auxiliary system device responds to the WIFI connection control command, and performs WIFI connection according to the WIFI service set identifier and the corresponding WIFI password.
  • the main system device obtains the WIFI service set identifier and the corresponding WIFI password, and generates a WIFI connection control instruction that uses the WIFI service set identifier and the corresponding WIFI password as the instruction parameters, and includes:
  • the main system device detects the operation of accessing the WIFI hotspot, it is confirmed whether the WIFI hotspot can be successfully accessed;
  • the WIFI service set identifier of the WIFI hotspot is read, and the corresponding input WIFI password is recorded;
  • the main system device sends the WIFI connection control command to the auxiliary system device, specifically:
  • the main system device encrypts and sends the WIFI connection control command to the auxiliary system device;
  • the auxiliary system device responds to the WIFI connection control command, and performs WIFI connection according to the WIFI service set identifier and the corresponding WIFI password, including:
  • the auxiliary system device decrypts the WIFI connection control command to obtain the WIFI connection
  • the auxiliary system device responds to the WIFI connection control command, and performs WIFI connection according to the WIFI service set identifier and the corresponding WIFI password, and further includes:
  • the connection setting of the WIFI hotspot is saved.
  • the sending, by the primary system device, the WIFI connection control command to the auxiliary system device is specifically:
  • the main system device transmits the WIFI connection control command to the auxiliary system device through a USB cable.
  • the embodiment of the present invention further provides a device for sharing a dual system terminal WIFI, where the dual system device includes a primary system device and an auxiliary system device, and the primary system device includes:
  • An instruction generating unit configured to obtain a WIFI service set identifier and a corresponding WIFI password, and generate a WIFI connection control instruction that uses the WIFI service set identifier and the corresponding WIFI password as an instruction parameter;
  • An instruction sending unit configured to send the WIFI connection control instruction to the auxiliary system device
  • the auxiliary system device includes:
  • the command response unit is configured to respond to the WIFI connection control command after receiving the control command, and perform a WIFI connection according to the WIFI service set identifier and the corresponding WIFI password.
  • the instruction generating unit includes:
  • the parameter confirmation module is configured to confirm whether the WIFI hotspot can be successfully accessed when the operation of accessing the WIFI hotspot is detected;
  • the parameter obtaining module is configured to: if the WIFI hotspot is successfully accessed, read the WIFI service set identifier of the WIFI hotspot, and record the corresponding input WIFI password;
  • the instruction generating module is configured to generate a WIFI connection control instruction that uses the WIFI service set identifier and the corresponding WIFI password as an instruction parameter.
  • the instruction sending unit is specifically configured to encrypt and send the WIFI connection control instruction to the auxiliary system device;
  • the command response unit includes:
  • a decryption acquisition module configured to decrypt the WIFI connection control command, and obtain a WIFI service set identifier and a corresponding WIFI password carried in the WIFI connection control command;
  • the hotspot access module is configured to access the WIFI hotspot according to the WIFI service set identifier and the corresponding WIFI password.
  • auxiliary system device further includes:
  • the hotspot recording unit is configured to save the connection setting of the WIFI hotspot if the WIFI service set identifier corresponding to the WIFI hotspot is successfully accessed.
  • command sending unit is specifically configured to send the WIFI connection control command to the auxiliary system device through a USB cable.
  • the invention obtains the WIFI service set identifier and the corresponding WIFI password by the main system device, generates a WIFI connection control instruction that uses the WIFI service set identifier and the corresponding WIFI password as instruction parameters; the main system device sends the WIFI connection control command Receiving an auxiliary system device; the auxiliary system device responding to the WIFI connection control command after receiving the control instruction, performing WIFI connection according to the WIFI service set identifier and the corresponding WIFI password, thereby avoiding complicated operation of the two systems After the main system device is connected to the WIFI, the auxiliary system device is automatically connected to the main system device. WIFI, to meet the needs of the common Internet, improve the efficiency of WIFI connection.
  • FIG. 1 is a flowchart of a method for sharing WIFI of a dual system terminal according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of a method for sharing WIFI of a dual system terminal according to Embodiment 2 of the present invention
  • FIG. 3 is a schematic structural diagram of an apparatus for sharing WIFI of a dual system terminal according to Embodiment 3 of the present invention.
  • FIG. 1 is a flowchart of a method for sharing WIFI of a dual-system terminal according to a first embodiment of the present invention. This embodiment can be applied to a WIFI sharing of a dual-system terminal.
  • the method can be implemented by the dual-system terminal WIFI provided by the embodiment of the present invention.
  • the device is implemented by using a shared device, and the device may be implemented by using software and/or hardware. As shown in FIG. 1 , the method specifically includes the following steps:
  • the main system device obtains the WIFI service set identifier and the corresponding WIFI password, and generates a WIFI connection control instruction that uses the WIFI service set identifier and the corresponding WIFI password as the instruction parameters.
  • the service set identifier is used by the user to identify the WIFI hotspot.
  • SSID technology can divide a wireless LAN into several sub-networks that require different authentication. Each sub-network needs independent authentication, only authenticated users. You can enter the corresponding subnet to prevent unauthorized users from entering the network. Simply put, the SSID is the name of a local area network. Only computers set to the same SSID value can communicate with each other.
  • the WIFI connection control command is an instruction that uses the WIFI service set identifier and the corresponding WIFI password as an instruction parameter, based on a working mode between the primary system device and the auxiliary system device, in the solution, the WIFI connection control instruction
  • the ADB transmits, and correspondingly, after receiving the WIFI connection control command through the ADB, the auxiliary system device reads the instruction parameter according to the preset instruction protocol and responds to the specific operation of the instruction.
  • the main system device sends the WIFI connection control command to the auxiliary system device.
  • the auxiliary system device is a system other than the main system device in the dual system, and the auxiliary system device is at least one system, and the number of the main system device and the auxiliary system device is one, of course, The number of the auxiliary system devices may also be multiple.
  • the main system device and the auxiliary system device are often Android systems, and other systems may be used. .
  • the auxiliary system device After receiving the control command, the auxiliary system device responds to the WIFI connection control command, and performs a WIFI connection according to the WIFI service set identifier and the corresponding WIFI password.
  • the auxiliary system device After receiving the control command, the auxiliary system device performs a WIFI connection according to the received WIFI service set identifier and the corresponding WIFI password.
  • the SSID (Wireless Network Name) must be configured for wireless network settings. Many readers will use D-Link, TP-Link, Linksys, DD-WRT and other default names. Even if they are modified, the SSID is still Composed of letters and numbers.
  • the auxiliary system device obtains the SSID of the WIFI hotspot sent by the main system device as TP-Link-1, and the WIFI password corresponding to the WIFI hotspot is 123456, and the auxiliary system device is connected to the wireless network name as TP-Link-1. The password is 123456 WIFI hotspot.
  • the primary system device is Android system 1
  • the secondary system device is Android system 2.
  • Android system 1 starts, Android system 2 starts, and both start the data connection service, and Android system 2 starts to monitor the received WIFI connection information.
  • Android system 1 performs WIFI connection according to the normal operation of the system. First, search for WIFI. After searching for WIFI, select the WIFI to be connected. Enter the WIFI password corresponding to the WIFI hotspot to be added. After clicking the WIFI hotspot, the SSID of the selected WIFI will be selected. The password information is encrypted and transmitted to the Android system 2.
  • the Android system 2 After receiving the message, the Android system 2 decrypts the encrypted information, including the SSID of the WIFI hotspot and the WIFI password corresponding to the WIFI hotspot, and then the Android system 2 uses The WID SSID and the password corresponding to the WIFI hotspot are used for WIFI authentication login. If Android system 1 can join the WIFI network, Android system 2 can also join the WIFI network. If the input password is wrong, neither system can join the network, but as long as Android system 1 re-enters the password and reconnects, Android system 2 will reconnect to ensure the consistency of the two sides.
  • the complicated and repeated operation can be eliminated, and the user can be simplified and simplified, and the user does not care about the device used in the end is a combination of several systems, and the operation is as simple and convenient as a system. And this can ensure that both systems can access the Internet, and the auxiliary system equipment is well solved when some network services (OTA, etc.) are needed.
  • OTA network services
  • the WIFI service set identifier and the corresponding WIFI password are obtained by the main system device, and the WIFI connection control command is generated by using the WIFI service set identifier and the corresponding WIFI password as an instruction parameter; the main system device will The WIFI connection control command is sent to the auxiliary system device; after receiving the control command, the auxiliary system device responds to the WIFI connection control command, and performs WIFI connection according to the WIFI service set identifier and the corresponding WIFI password, thereby avoiding two System In a complicated operation, after the main system device is connected to the WIFI, the auxiliary system device automatically connects to the WIFI connected to the main system device to achieve the common Internet access requirement and improve the efficiency of the WIFI connection.
  • FIG. 2 is a schematic flowchart of a method for sharing WIFI of a dual-system terminal according to Embodiment 2 of the present invention.
  • the present embodiment is optimized based on the foregoing Embodiment 1, and provides a preferred method for WIFI sharing of dual-system terminals, specifically
  • the main system device obtains the WIFI service set identifier and the corresponding WIFI password, and generates a WIFI connection control instruction that uses the WIFI service set identifier and the corresponding WIFI password as the instruction parameters, and the method includes: the primary system device detects the access to the WIFI hotspot.
  • the WIFI hotspot it is confirmed whether the WIFI hotspot can be successfully accessed; if the WIFI hotspot can be successfully accessed, the WIFI service set identifier of the WIFI hotspot is read, and the corresponding input WIFI password is recorded; and the WIFI service is generated.
  • the set identifier and the corresponding WIFI password are WIFI connection control commands of the command parameters.
  • the method in this embodiment specifically includes the following steps:
  • the operation of accessing the WIFI hotspot is connected to the WiFi hotspot by the main system device, and the successfully accessing the WIFI hotspot is capable of transmitting and receiving data through the wireless network after accessing the WIFI hotspot, that is,
  • the WIFI hotspot is an effective WIFI hotspot, and the operation is performed to prevent the main system device from detecting the access to the WIFI hotspot, but after the main system device accesses the WIFI hotspot, the data cannot be sent and received through the wireless network.
  • the WIFI service set identifier and the WIFI password of the WIFI hotspot are sent to the auxiliary system device, an operation of verifying whether the WIFI hotspot can be successfully accessed is performed, thereby improving the efficiency of the WIFI connection.
  • WIFI hotspot If the WIFI hotspot is successfully accessed, read the WIFI service set identifier of the WIFI hotspot, and record the corresponding input WIFI password.
  • the main system device sends the WIFI connection control command to the auxiliary system device.
  • the auxiliary system device After receiving the control command, the auxiliary system device responds to the WIFI connection control command, and performs a WIFI connection according to the WIFI service set identifier and the corresponding WIFI password.
  • the primary system device detects the operation of accessing the first WIFI hotspot, and after the primary system device accesses the first WIFI hotspot, determines whether the primary system device can transmit data through the wireless network, if The data transmission on the wireless network indicates that the primary system device successfully accesses the first WIFI hotspot. If the data transmission cannot be performed through the wireless network, the primary system device does not successfully access the first WIFI hotspot. If the primary system device does not successfully access the first WIFI hotspot, it is not necessary to send the WIFI service set identifier and the WIFI password of the first WIFI hotspot to the auxiliary system device, and the WIFI hotspot needs to be searched again to perform the WIFI hotspot link.
  • the primary system device sends the WIFI connection control command to the auxiliary system device, specifically:
  • the main system device encrypts and sends the WIFI connection control command to the auxiliary system device;
  • the WIFI connection control command is encrypted to perform the encryption operation on the WIFI service set identifier and the corresponding WIFI password.
  • the encryption method may be: converting the WIFI service set identifier and the corresponding WIFI password into a ciphertext by using an encryption algorithm and an encryption key.
  • the auxiliary system device responds to the WIFI connection control command, and performs WIFI connection according to the WIFI service set identifier and the corresponding WIFI password, including:
  • the auxiliary system device decrypts the WIFI connection control command, and obtains a WIFI service set identifier and a corresponding WIFI password carried in the WIFI connection control command;
  • the decryption operation is to restore the encrypted WIFI service set identifier and the corresponding WIFI password to plaintext by using a decryption algorithm and a decryption key.
  • the auxiliary system device after receiving the control command, responds to the WIFI connection control command, and performs WIFI connection according to the WIFI service set identifier and the corresponding WIFI password, and further includes:
  • the connection setting of the WIFI hotspot is saved.
  • the connection settings of the WIFI hotspot are saved, and after the WIFI hotspot is searched, the user can directly access the user to improve the user experience.
  • the sending, by the primary system device, the WIFI connection control command to the auxiliary system device is specifically:
  • the main system device transmits the WIFI connection control command to the auxiliary system device through a USB cable.
  • the principle of dual-system communication is that there is a USB connection cable or an OTG line on the hardware through two systems, similar to the principle that the mobile phone is connected to the computer, and the data is communicated after the mobile phone is connected to the computer, and some are performed.
  • Data encapsulation and custom protocol can transfer data and perform other operations.
  • the main system device can also perform data transmission operations with the auxiliary system device through the USB cable.
  • the WIFI hotspot when the operation of the WIFI hotspot is detected by the main system device, it is confirmed whether the WIFI hotspot can be successfully accessed, and whether the wireless device can pass the wireless after accessing the WIFI hotspot.
  • the network sends and receives data. It is avoided that data cannot be sent and received through the wireless network after accessing the WiFi hotspot, which may require re-acquiring other WiFi hotspots, repeatedly performing the link WIFI operation, and improving the efficiency of the WiFi link.
  • FIG. 3 is a schematic structural diagram of an apparatus for sharing WIFI of a dual system terminal according to Embodiment 3 of the present invention. This embodiment can be applied to the case of dual system terminal WIFI sharing.
  • the device can be implemented by software and/or hardware, and is specifically applied to a dual system terminal.
  • the dual system terminal includes a primary system device 31 and an auxiliary system device 32. As shown in FIG. 3, the main system device 31 includes an instruction generating unit 310 and an instruction transmitting unit 311.
  • the auxiliary system device 32 includes an instruction response unit 320.
  • the command generating unit 310 is configured to obtain a WIFI service set identifier and a corresponding WIFI password, and generate a WIFI connection control instruction that uses the WIFI service set identifier and the corresponding WIFI password as an instruction parameter;
  • the instruction sending unit 311 is configured to send the WIFI connection control command to the auxiliary system device;
  • the command response unit 320 is configured to respond to the WIFI connection control command after receiving the control command, and perform a WIFI connection according to the WIFI service set identifier and the corresponding WIFI password.
  • the instruction generating unit 310 includes:
  • the parameter confirmation module is configured to confirm whether the WIFI hotspot can be successfully accessed when the operation of accessing the WIFI hotspot is detected;
  • the parameter obtaining module is configured to: if the WIFI hotspot is successfully accessed, read the WIFI service set identifier of the WIFI hotspot, and record the corresponding input WIFI password;
  • An instruction generating module configured to generate, by using the WIFI service set identifier and the corresponding WIFI password
  • the command sending unit 311 is specifically configured to encrypt and send the WIFI connection control instruction to the auxiliary system device;
  • the command response unit 320 includes:
  • a decryption acquisition module configured to decrypt the WIFI connection control command, and obtain a WIFI service set identifier and a corresponding WIFI password carried in the WIFI connection control command;
  • the hotspot access module is configured to access the WIFI hotspot according to the WIFI service set identifier and the corresponding WIFI password.
  • the auxiliary system device 32 further includes:
  • the hotspot recording unit is configured to save the connection setting of the WIFI hotspot if the WIFI service set identifier corresponding to the WIFI hotspot is successfully accessed.
  • the command sending unit 311 is specifically configured to send the WIFI connection control command to the auxiliary system device by using a USB cable.
  • the WIFI service set identifier and the corresponding WIFI password are obtained by the main system device, and the WIFI connection control command is generated by using the WIFI service set identifier and the corresponding WIFI password as an instruction parameter; the main system device will The WIFI connection control command is sent to the auxiliary system device; after receiving the control command, the auxiliary system device responds to the WIFI connection control command, and performs WIFI connection according to the WIFI service set identifier and the corresponding WIFI password, thereby avoiding two
  • the auxiliary system device automatically connects to the WIFI connected to the main system device to achieve the common Internet access requirement and improve the efficiency of the WIFI connection.
  • the above product can perform the method provided by any embodiment of the present invention, and has the corresponding work of the execution method. Capable modules and benefits.

Landscapes

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

Abstract

本发明公开了一种双***终端WIFI共享的方法和装置。该方法包括:主***设备获取WIFI服务集标识以及对应的WIFI密码,生成以所述WIFI服务集标识以及对应的WIFI密码为指令参数的WIFI连接控制指令;主***设备将所述WIFI连接控制指令发送到辅助***设备;所述辅助***设备接收到所述控制指令后响应所述WIFI连接控制指令,根据所述WIFI服务集标识以及对应的WIFI密码进行WIFI连接。通过本发明的技术方案,避免了两个***操作复杂的情况,能够在主***设备连接WIFI后,辅助***设备就自动连接主***设备连接的WIFI,达到共同上网的需求,提高WIFI连接的效率。

Description

一种双***终端WIFI共享的方法和装置 技术领域
本发明实施例涉及智能终端领域,尤其涉及一种双***终端WIFI共享的方法和装置。
背景技术
现有的许多交互设备为提高设备软硬件升级的便利性,数据传输显示的安全性,常采用两个Android***设备。两个Android***之间的控制一般都是以ADB(Android Debug Bridge,Android调试桥)控制为主,一个作为HOST机,一个作为Slave机。
在双***架构的基础上,现有技术中连接WIFI的方式为分别连接两个***的WIFI,即:一个***连接WIFI之后,在切换通道至另外一个***中,再进行另外一个***的WIFI连接。
现有技术中需要有两个***的概念,且执行WIFI连接操作的时候需要两个***各操作一遍,对于WIFI密码比较复杂的无线网络可能将两个***都连接WIFI花费的时间会更长。操作比较复杂,且效率很低,容易给用户造成困扰,使得用户体验大大降低。
发明内容
本发明实施例提供一种双***终端WIFI共享的方法和装置,实现了主***设备和辅助***设备共同上网的需求,提高WIFI连接的效率。
第一方面,本发明实施例提供了一种双***终端WIFI共享的方法,该方法包括:
主***设备获取WIFI服务集标识以及对应的WIFI密码,生成以所述WIFI服务集标识以及对应的WIFI密码为指令参数的WIFI连接控制指令;
主***设备将所述WIFI连接控制指令发送到辅助***设备;
所述辅助***设备接收到所述控制指令后响应所述WIFI连接控制指令,根据所述WIFI服务集标识以及对应的WIFI密码进行WIFI连接。
进一步的,所述主***设备获取WIFI服务集标识以及对应的WIFI密码,生成以所述WIFI服务集标识以及对应的WIFI密码为指令参数的WIFI连接控制指令,包括:
主***设备检测到接入WIFI热点的操作时,确认是否能成功接入所述WIFI热点;
若能成功接入所述WIFI热点,读取所述WIFI热点的WIFI服务集标识,记录对应输入的WIFI密码;
生成以所述WIFI服务集标识以及对应的WIFI密码为指令参数的WIFI连接控制指令。
进一步的,所述主***设备将所述WIFI连接控制指令发送到辅助***设备,具体为:
主***设备将所述WIFI连接控制指令加密发送到辅助***设备;
所述辅助***设备响应所述WIFI连接控制指令,根据所述WIFI服务集标识以及对应的WIFI密码进行WIFI连接,包括:
所述辅助***设备对所述WIFI连接控制指令进行解密,获取所述WIFI连 接控制指令中携带的WIFI服务集标识和对应的WIFI密码;
根据所述WIFI服务集标识和对应WIFI密码接入WIFI热点。
进一步的,所述辅助***设备接收到所述控制指令后响应所述WIFI连接控制指令,根据所述WIFI服务集标识以及对应的WIFI密码进行WIFI连接之后,还包括:
若成功接入所述WIFI服务集标识对应WIFI热点,则保存所述WIFI热点的连接设置。
进一步的,所述主***设备将所述WIFI连接控制指令发送到辅助***设备具体为:
主***设备通过USB连接线将所述WIFI连接控制指令发送到辅助***设备。
第二方面,本发明实施例还提供了一种双***终端WIFI共享的装置,双***设备包括主***设备和辅助***设备,所述主***设备包括:
指令生成单元,用于获取WIFI服务集标识以及对应的WIFI密码,生成以所述WIFI服务集标识以及对应的WIFI密码为指令参数的WIFI连接控制指令;
指令发送单元,用于将所述WIFI连接控制指令发送到辅助***设备;
所述辅助***设备包括:
指令响应单元,用于接收到所述控制指令后响应所述WIFI连接控制指令,根据所述WIFI服务集标识以及对应的WIFI密码进行WIFI连接。
进一步的,所述指令生成单元,包括:
参数确认模块,用于检测到接入WIFI热点的操作时,确认是否能成功接入所述WIFI热点;
参数获取模块,用于若能成功接入所述WIFI热点,读取所述WIFI热点的WIFI服务集标识,记录对应输入的WIFI密码;
指令生成模块,用于生成以所述WIFI服务集标识以及对应的WIFI密码为指令参数的WIFI连接控制指令。
进一步的,所述指令发送单元,具体用于将所述WIFI连接控制指令加密发送到辅助***设备;
所述指令响应单元,包括:
解密获取模块,用于对所述WIFI连接控制指令进行解密,获取所述WIFI连接控制指令中携带的WIFI服务集标识和对应的WIFI密码;
热点接入模块,用于根据所述WIFI服务集标识和对应WIFI密码接入WIFI热点。
进一步的,所述辅助***设备还包括:
热点记录单元,用于若成功接入所述WIFI服务集标识对应WIFI热点,则保存所述WIFI热点的连接设置。
进一步的,所述指令发送单元,具体用于通过USB连接线将所述WIFI连接控制指令发送到辅助***设备。
本发明通过主***设备获取WIFI服务集标识以及对应的WIFI密码,生成以所述WIFI服务集标识以及对应的WIFI密码为指令参数的WIFI连接控制指令;主***设备将所述WIFI连接控制指令发送到辅助***设备;所述辅助***设备接收到所述控制指令后响应所述WIFI连接控制指令,根据所述WIFI服务集标识以及对应的WIFI密码进行WIFI连接,避免了两个***操作复杂的情况,能够在主***设备连接WIFI后,辅助***设备就自动连接主***设备连接的 WIFI,达到共同上网的需求,提高WIFI连接的效率。
附图说明
图1是本发明实施例一中的一种双***终端WIFI共享的方法的流程图;
图2是本发明实施例二中的一种双***终端WIFI共享的方法的流程图;
图3是本发明实施例三中的一种双***终端WIFI共享的装置的结构示意图。
具体实施方式
下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。
实施例一
图1为本发明实施例一提供的一种双***终端WIFI共享的方法的流程图,本实施例可适用于双***终端WIFI共享的情况,该方法可以由本发明实施例提供的双***终端WIFI共享的装置来执行,该装置可采用软件和/或硬件的方式实现,如图1所示,该方法具体包括如下步骤:
S110,主***设备获取WIFI服务集标识以及对应的WIFI密码,生成以所述WIFI服务集标识以及对应的WIFI密码为指令参数的WIFI连接控制指令。
其中,所述WIFI服务集标识(Service Set Identifier,SSID)用于用户识别WIFI热点。SSID技术可以将一个无线局域网分为几个需要不同身份验证的子网络,每一个子网络都需要独立的身份验证,只有通过身份验证的用户才 可以进入相应的子网络,防止未被授权的用户进入本网络。简单说,SSID就是一个局域网的名称,只有设置为名称相同SSID的值的电脑才能互相通信。
其中,所述WIFI连接控制指令为以所述WIFI服务集标识以及对应的WIFI密码为指令参数的指令,基于主***设备和辅助***设备之间的工作模式,在本方案中,WIFI连接控制指令通过ADB进行发送,与之对应的,辅助***设备在通过ADB接收到WIFI连接控制指令后,根据预设的指令协议对读取指令参数并对指令的具体操作进行响应。
S120,主***设备将所述WIFI连接控制指令发送到辅助***设备。
其中,所述辅助***设备为双***中除了主***设备以外的其他***,所述辅助***设备至少为一个***,较常见的,主***设备和辅助***设备的个数均为1个,当然,辅助***设备的个数也可以为多个,另外,本方案中主***设备和辅助***设备常采用Android***,另外可以是其它***,只要采用主辅架构,本实施例对此不进行限制。
S130,所述辅助***设备接收到所述控制指令后响应所述WIFI连接控制指令,根据所述WIFI服务集标识以及对应的WIFI密码进行WIFI连接。
其中,所述辅助***设备接收到所述控制指令后,根据接收到的所述WIFI服务集标识以及对应的WIFI密码进行WIFI连接。默认情况下在进行无线网络设置时都要针对SSID(无线网络名称)进行配置,很多读者都会使用D-Link、TP-Link、Linksys、DD-WRT等默认名称,即使进行了修改,SSID也还是由字母和数字组成。例如可以是,辅助***设备获取到主***设备发送的WIFI热点的SSID为TP-Link-1,WIFI热点对应的WIFI密码为123456,则辅助***设备连接入无线网络名称为TP-Link-1,密码为123456的WIFI热点。
在一个具体的例子中,若主***设备为Android***1,辅助***设备为Android***2。Android***1启动,Android***2启动,并且均启动数据连接服务,Android***2开机自启动监听收到的WIFI连接信息。Android***1按照***正常的操作进行WIFI连接,首先搜索WIFI,搜索到WIFI后选择要连接的WIFI,输入将要加入的WIFI热点对应的WIFI密码,点击加入WIFI热点之后,则将选择的WIFI的SSID以及密码信息经过加密后传递到Android***2,Android***2收到此消息之后将加密传递过来的信息进行解密,其中包括了WIFI热点的SSID以及WIFI热点对应的WIFI的密码,接着Android***2使用该WIFI的SSID以及WIFI热点对应的密码进行WIFI认证登录。如果Android***1能够加入WIFI网络,则Android***2也同样可以加入WIFI网络。如果输入密码错误,则两边***均无法加入网络,但是只要Android***1重新输入密码进行重连则Android***2也会进行重新连接,保证两边连接的一致性。
采用本实施例的技术方案能够免去复杂重复的操作,化繁为简,用户也不用关心使用的设备到底是几个***的结合,操作起来就如同一个***一样简单便捷。并且这样能保证两个***都能上网,辅助***设备在需要一些网络服务(OTA等)时得到了很好的解决。
本实施例的技术方案,通过主***设备获取WIFI服务集标识以及对应的WIFI密码,生成以所述WIFI服务集标识以及对应的WIFI密码为指令参数的WIFI连接控制指令;主***设备将所述WIFI连接控制指令发送到辅助***设备;所述辅助***设备接收到所述控制指令后响应所述WIFI连接控制指令,根据所述WIFI服务集标识以及对应的WIFI密码进行WIFI连接,避免了两个*** 操作复杂的情况,能够在主***设备连接WIFI后,辅助***设备就自动连接主***设备连接的WIFI,达到共同上网的需求,提高WIFI连接的效率。
实施例二
图2为本发明实施例二中的一种双***终端WIFI共享的方法的流程示意图,本实施例以前述实施例一为基础进行优化,提供了优选的双***终端WIFI共享的方法,具体是,所述主***设备获取WIFI服务集标识以及对应的WIFI密码,生成以所述WIFI服务集标识以及对应的WIFI密码为指令参数的WIFI连接控制指令,包括:主***设备检测到接入WIFI热点的操作时,确认是否能成功接入所述WIFI热点;若能成功接入所述WIFI热点,读取所述WIFI热点的WIFI服务集标识,记录对应输入的WIFI密码;生成以所述WIFI服务集标识以及对应的WIFI密码为指令参数的WIFI连接控制指令。
相应的,本实施例的方法具体包括如下步骤:
S210,主***设备检测到接入WIFI热点的操作时,确认是否能成功接入所述WIFI热点。
其中,所述接入WIFI热点的操作为主***设备连接到所述WiFi热点,所述成功接入所述WIFI热点为在接入所述WIFI热点后能够通过无线网络收发数据,也就是说,所述WIFI热点为有效WIFI热点,执行这一操作是为了防止出现虽然主***设备检测到接入所述WIFI热点,但是在主***设备接入所述WIFI热点后,不能够通过无线网络收发数据的情况。在将所述WIFI热点的WIFI服务集标识以及WIFI密码发送至辅助***设备之前,进行检验是否能成功接入所述WIFI热点的操作,提高了WIFI连接的效率。
S220,若能成功接入所述WIFI热点,读取所述WIFI热点的WIFI服务集标识,记录对应输入的WIFI密码。
S230,生成以所述WIFI服务集标识以及对应的WIFI密码为指令参数的WIFI连接控制指令。
S240,主***设备将所述WIFI连接控制指令发送到辅助***设备。
S250,所述辅助***设备接收到所述控制指令后响应所述WIFI连接控制指令,根据所述WIFI服务集标识以及对应的WIFI密码进行WIFI连接。
在一个具体的例子中,主***设备检测到接入第一WIFI热点的操作,在主***设备接入到第一WIFI热点之后,判断主***设备能否通过无线网络进行数据传输,如果能够通过无线网络进行数据传输说明主***设备成功接入第一WIFI热点,如果不能够通过无线网络进行数据传输说明主***设备没有成功接入第一WIFI热点。如果主***设备没有成功接入第一WIFI热点,则没有必要将第一WIFI热点的WIFI服务集标识以及WIFI密码发送至辅助***设备,需要重新搜取WIFI热点,进行WIFI热点链接。
可选的,所述主***设备将所述WIFI连接控制指令发送到辅助***设备,具体为:
主***设备将所述WIFI连接控制指令加密发送到辅助***设备;
其中,将所述WIFI连接控制指令加密为将所述WIFI服务集标识以及对应的WIFI密码进行加密操作。其中加密的方法可以为通过加密算法和加密密钥将所述WIFI服务集标识以及对应的WIFI密码转变为密文。
所述辅助***设备响应所述WIFI连接控制指令,根据所述WIFI服务集标识以及对应的WIFI密码进行WIFI连接,包括:
所述辅助***设备对所述WIFI连接控制指令进行解密,获取所述WIFI连接控制指令中携带的WIFI服务集标识和对应的WIFI密码;
其中,所述解密操作是通过解密算法和解密密钥将加密后的所述WIFI服务集标识以及对应的WIFI密码恢复为明文。
根据所述WIFI服务集标识和对应WIFI密码接入WIFI热点。
可选的,所述辅助***设备接收到所述控制指令后响应所述WIFI连接控制指令,根据所述WIFI服务集标识以及对应的WIFI密码进行WIFI连接之后,还包括:
若成功接入所述WIFI服务集标识对应WIFI热点,则保存所述WIFI热点的连接设置。
具体的,在成功接入WIFI热点之后将所述WIFI热点的连接设置进行保存,在之后搜索到所述WIFI热点之后,可以直接接入,方便用户操作,提升用户体验。
可选的,所述主***设备将所述WIFI连接控制指令发送到辅助***设备具体为:
主***设备通过USB连接线将所述WIFI连接控制指令发送到辅助***设备。
具体的,双***通信的原理是通过两个***在硬件上有一个usb的连接线也就是OTG线,类似于手机接在电脑上的原理,手机接在电脑上之后进行数据的通信,进行一些数据封装,定制协议,就可以传输数据以及进行其他的操作,主***设备通过USB连接线也可以实现和辅助***设备进行数据传输的操作。
本实施例的技术方案,通过主***设备检测到接入WIFI热点的操作时,确认是否能成功接入所述WIFI热点,确定在接入所述WIFI热点后能否通过无线 网络收发数据。避免出现由于接入WiFi热点后不能通过无线网络收发数据,导致需要重新获取其他WiFi热点,重复执行链接WIFI操作的情况,提高WiFi链接的效率。
实施例三
图3为本发明实施例三中的一种双***终端WIFI共享的装置的结构示意图。本实施例可适用于双***终端WIFI共享的情况,该装置可采用软件和/或硬件的方式实现,具体应用于双***终端,双***终端包括主***设备31和辅助***设备32。如图3所示,所述主***设备31包括:指令生成单元310和指令发送单元311。辅助***设备32包括:指令响应单元320。
其中,指令生成单元310,用于获取WIFI服务集标识以及对应的WIFI密码,生成以所述WIFI服务集标识以及对应的WIFI密码为指令参数的WIFI连接控制指令;
指令发送单元311,用于将所述WIFI连接控制指令发送到辅助***设备;
指令响应单元320,用于接收到所述控制指令后响应所述WIFI连接控制指令,根据所述WIFI服务集标识以及对应的WIFI密码进行WIFI连接。
可选的,所述指令生成单元310,包括:
参数确认模块,用于检测到接入WIFI热点的操作时,确认是否能成功接入所述WIFI热点;
参数获取模块,用于若能成功接入所述WIFI热点,读取所述WIFI热点的WIFI服务集标识,记录对应输入的WIFI密码;
指令生成模块,用于生成以所述WIFI服务集标识以及对应的WIFI密码为
指令参数的WIFI连接控制指令。
可选的,所述指令发送单元311,具体用于将所述WIFI连接控制指令加密发送到辅助***设备;
所述指令响应单元320,包括:
解密获取模块,用于对所述WIFI连接控制指令进行解密,获取所述WIFI连接控制指令中携带的WIFI服务集标识和对应的WIFI密码;
热点接入模块,用于根据所述WIFI服务集标识和对应WIFI密码接入WIFI热点。
可选的,所述辅助***设备32还包括:
热点记录单元,用于若成功接入所述WIFI服务集标识对应WIFI热点,则保存所述WIFI热点的连接设置。
可选的,所述指令发送单元311,具体用于通过USB连接线将所述WIFI连接控制指令发送到辅助***设备。
本实施例的技术方案,通过主***设备获取WIFI服务集标识以及对应的WIFI密码,生成以所述WIFI服务集标识以及对应的WIFI密码为指令参数的WIFI连接控制指令;主***设备将所述WIFI连接控制指令发送到辅助***设备;所述辅助***设备接收到所述控制指令后响应所述WIFI连接控制指令,根据所述WIFI服务集标识以及对应的WIFI密码进行WIFI连接,避免了两个***操作复杂的情况,能够在主***设备连接WIFI后,辅助***设备就自动连接主***设备连接的WIFI,达到共同上网的需求,提高WIFI连接的效率。
上述产品可执行本发明任意实施例所提供的方法,具备执行方法相应的功 能模块和有益效果。
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。

Claims (10)

  1. 一种双***终端WIFI共享的方法,其特征在于,包括:
    主***设备获取WIFI服务集标识以及对应的WIFI密码,生成以所述WIFI服务集标识以及对应的WIFI密码为指令参数的WIFI连接控制指令;
    主***设备将所述WIFI连接控制指令发送到辅助***设备;
    所述辅助***设备接收到所述控制指令后响应所述WIFI连接控制指令,根据所述WIFI服务集标识以及对应的WIFI密码进行WIFI连接。
  2. 根据权利要求1所述的方法,其特征在于,所述主***设备获取WIFI服务集标识以及对应的WIFI密码,生成以所述WIFI服务集标识以及对应的WIFI密码为指令参数的WIFI连接控制指令,包括:
    主***设备检测到接入WIFI热点的操作时,确认是否能成功接入所述WIFI热点;
    若能成功接入所述WIFI热点,读取所述WIFI热点的WIFI服务集标识,记录对应输入的WIFI密码;
    生成以所述WIFI服务集标识以及对应的WIFI密码为指令参数的WIFI连接控制指令。
  3. 根据权利要求1所述的方法,其特征在于,所述主***设备将所述WIFI连接控制指令发送到辅助***设备,具体为:
    主***设备将所述WIFI连接控制指令加密发送到辅助***设备;
    所述辅助***设备响应所述WIFI连接控制指令,根据所述WIFI服务集标识以及对应的WIFI密码进行WIFI连接,包括:
    所述辅助***设备对所述WIFI连接控制指令进行解密,获取所述WIFI连接控制指令中携带的WIFI服务集标识和对应的WIFI密码;
    根据所述WIFI服务集标识和对应WIFI密码接入WIFI热点。
  4. 根据权利要求1所述的方法,其特征在于,所述辅助***设备接收到所述控制指令后响应所述WIFI连接控制指令,根据所述WIFI服务集标识以及对应的WIFI密码进行WIFI连接之后,还包括:
    若成功接入所述WIFI服务集标识对应WIFI热点,则保存所述WIFI热点的连接设置。
  5. 根据权利要求1所述的方法,其特征在于,所述主***设备将所述WIFI连接控制指令发送到辅助***设备具体为:
    主***设备通过USB连接线将所述WIFI连接控制指令发送到辅助***设备。
  6. 一种双***终端WIFI共享的装置,其特征在于,双***终端包括主***设备和辅助***设备,所述主***设备包括:
    指令生成单元,用于获取WIFI服务集标识以及对应的WIFI密码,生成以所述WIFI服务集标识以及对应的WIFI密码为指令参数的WIFI连接控制指令;
    指令发送单元,用于将所述WIFI连接控制指令发送到辅助***设备;
    所述辅助***设备包括:
    指令响应单元,用于接收到所述控制指令后响应所述WIFI连接控制指令,根据所述WIFI服务集标识以及对应的WIFI密码进行WIFI连接。
  7. 根据权利要求6所述的装置,其特征在于,所述指令生成单元,包括:
    参数确认模块,用于检测到接入WIFI热点的操作时,确认是否能成功接入所述WIFI热点;
    参数获取模块,用于若能成功接入所述WIFI热点,读取所述WIFI热点的WIFI服务集标识,记录对应输入的WIFI密码;
    指令生成模块,用于生成以所述WIFI服务集标识以及对应的WIFI密码为指令参数的WIFI连接控制指令。
  8. 根据权利要求6所述的装置,其特征在于,所述指令发送单元,具体用于将所述WIFI连接控制指令加密发送到辅助***设备;
    所述指令响应单元,包括:
    解密获取模块,用于对所述WIFI连接控制指令进行解密,获取所述WIFI连接控制指令中携带的WIFI服务集标识和对应的WIFI密码;
    热点接入模块,用于根据所述WIFI服务集标识和对应WIFI密码接入WIFI热点。
  9. 根据权利要求6所述的装置,其特征在于,所述辅助***设备还包括:
    热点记录单元,用于若成功接入所述WIFI服务集标识对应WIFI热点,则保存所述WIFI热点的连接设置。
  10. 根据权利要求6所述的装置,其特征在于,所述指令发送单元,具体用于通过USB连接线将所述WIFI连接控制指令发送到辅助***设备。
PCT/CN2017/077307 2016-12-20 2017-03-20 一种双***终端wifi共享的方法和装置 WO2018113113A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611185001.3A CN106792994A (zh) 2016-12-20 2016-12-20 一种双***终端wifi共享的方法和装置
CN201611185001.3 2016-12-20

Publications (1)

Publication Number Publication Date
WO2018113113A1 true WO2018113113A1 (zh) 2018-06-28

Family

ID=58894100

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/077307 WO2018113113A1 (zh) 2016-12-20 2017-03-20 一种双***终端wifi共享的方法和装置

Country Status (2)

Country Link
CN (1) CN106792994A (zh)
WO (1) WO2018113113A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107562373B (zh) * 2017-08-07 2021-02-23 广州视源电子科技股份有限公司 多***u盘读取方法、装置、可读存储介质和计算机设备
CN107770840B (zh) * 2017-09-29 2020-12-18 努比亚技术有限公司 热点信号显示方法、移动终端及计算机可读存储介质
CN108112052B (zh) 2017-12-13 2021-09-10 广东美的制冷设备有限公司 终端的网络共享方法、装置、空气调节器及存储介质
CN108540967A (zh) * 2018-03-21 2018-09-14 广州视源电子科技股份有限公司 一种智能终端、无线网络共享的方法和存储介质
CN108833498B (zh) * 2018-05-25 2021-06-25 上海芯爱智能科技有限公司 一种终端的通信方法、终端及存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105050087A (zh) * 2015-08-20 2015-11-11 惠州Tcl移动通信有限公司 一种多协议兼容设备接入WiFi网络的方法及***
CN105406997A (zh) * 2015-11-03 2016-03-16 北京千丁互联科技有限公司 一种室内机***的初始化配置方法及***
CN105554754A (zh) * 2015-12-16 2016-05-04 Tcl集团股份有限公司 一种物联网wifi模块接入网络的方法及***

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105050087A (zh) * 2015-08-20 2015-11-11 惠州Tcl移动通信有限公司 一种多协议兼容设备接入WiFi网络的方法及***
CN105406997A (zh) * 2015-11-03 2016-03-16 北京千丁互联科技有限公司 一种室内机***的初始化配置方法及***
CN105554754A (zh) * 2015-12-16 2016-05-04 Tcl集团股份有限公司 一种物联网wifi模块接入网络的方法及***

Also Published As

Publication number Publication date
CN106792994A (zh) 2017-05-31

Similar Documents

Publication Publication Date Title
CN113055867B (zh) 终端辅助配网的方法和装置、电子设备
WO2018113113A1 (zh) 一种双***终端wifi共享的方法和装置
US8494164B2 (en) Method for connecting wireless communications, wireless communications terminal and wireless communications system
WO2017067430A1 (zh) 智能设备、电子装置及基于近场通信的网络连接方法
WO2017041675A1 (zh) 一种发送和获取wifi联网信息的方法和对应装置
KR101743195B1 (ko) 정보 제공방법, 장치, 프로그램 및 기록매체
EP3007515B1 (en) Method, terminal, client and system for accessing wireless network
CN104584606A (zh) 用于在一组无线设备内配对的方法和设备
JP2016528844A (ja) ネットワーク接続方法、ホットスポット端末及び管理端末
JP2011254469A (ja) WiFiパラメータを設定する方法、装置、及びシステム
CN107567017B (zh) 无线连接***、装置及方法
US9510130B2 (en) Provisioning of multiple wireless devices by an access point
CN106789476B (zh) 一种网关通讯方法及***
US8862096B1 (en) Provisioning of multiple wireless devices by an access point
CN104009925A (zh) 路由器的桥接建立方法、装置和路由器
WO2015164999A1 (zh) 虚拟卡下载方法、终端及中间设备
CN112566113B (zh) 密钥生成以及终端配网方法、装置、设备
CN105338529A (zh) 一种无线网络连接方法及***
JP6366113B2 (ja) 通信システム、通信装置及び通信方法
JP6269025B2 (ja) 無線接続装置、無線通信に関する設定情報を複製する方法、および、ネットワークシステム
CN106658488B (zh) 一种智能家电及安全访问智能家电的方法和装置
CN106452999B (zh) 一种智能家电及安全访问智能家电的方法和装置
CN111787514B (zh) 设备控制数据的获取方法及装置、存储介质、电子装置
CN110602693B (zh) 无线网络的组网方法和设备
WO2017067330A1 (zh) 一种配置管理无线接入点的装置和方法

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: 17885133

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 06.09.2019)

122 Ep: pct application non-entry in european phase

Ref document number: 17885133

Country of ref document: EP

Kind code of ref document: A1