WO2018113113A1 - Double-system terminal wifi sharing method and device - Google Patents
Double-system terminal wifi sharing method and device Download PDFInfo
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/03—Protecting confidentiality, e.g. by encryption
- H04W12/033—Protecting confidentiality, e.g. by encryption of the user plane, e.g. user's traffic
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/03—Protecting confidentiality, e.g. by encryption
- H04W12/037—Protecting confidentiality, e.g. by encryption of the control plane, e.g. signalling traffic
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/02—Protecting 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
Disclosed are a double-system terminal WIFI sharing method and device. The method comprises: a master system device acquiring a WIFI service set identifier and a corresponding WIFI password and generating a WIFI connection control instruction which takes the WIFI service set identifier and the corresponding WIFI password as instruction parameters; the master system device sending the WIFI connection control instruction to an auxiliary system device; and the auxiliary system device, after receiving the control instruction, responding to the WIFI connection control instruction and performing WIFI connection according to the WIFI service set identifier and the corresponding WIFI password. By means of the technical solution of the present invention, the scenario of the two systems being complicated in terms of operation is avoided, the auxiliary system device can be automatically connected to the WIFI connected to the master system device after the master system device is connected to the WIFI, thereby achieving the requirement of shared Internet surfing and improving WIFI connection efficiency.
Description
本发明实施例涉及智能终端领域,尤其涉及一种双系统终端WIFI共享的方法和装置。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.
现有的许多交互设备为提高设备软硬件升级的便利性,数据传输显示的安全性,常采用两个Android系统设备。两个Android系统之间的控制一般都是以ADB(Android Debug Bridge,Android调试桥)控制为主,一个作为HOST机,一个作为Slave机。Many existing interactive devices are used to improve the software and hardware upgrades of the device, and the security of the data transmission display often uses two Android system devices. The control between the two Android systems is generally controlled by ADB (Android Debug Bridge), one as a HOST machine and one as a Slave machine.
在双系统架构的基础上,现有技术中连接WIFI的方式为分别连接两个系统的WIFI,即:一个系统连接WIFI之后,在切换通道至另外一个系统中,再进行另外一个系统的WIFI连接。On the basis of the dual system architecture, 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. .
现有技术中需要有两个系统的概念,且执行WIFI连接操作的时候需要两个系统各操作一遍,对于WIFI密码比较复杂的无线网络可能将两个系统都连接WIFI花费的时间会更长。操作比较复杂,且效率很低,容易给用户造成困扰,使得用户体验大大降低。In the prior art, the concept of two systems is required, and when the WIFI connection operation is performed, the two systems need to operate once. For a wireless network with a complicated WIFI password, it may take longer for both systems to connect to the WIFI. The operation is complicated and the efficiency is very low, which is easy to cause trouble to the user, and the user experience is greatly reduced.
发明内容Summary of the invention
本发明实施例提供一种双系统终端WIFI共享的方法和装置,实现了主系统设备和辅助系统设备共同上网的需求,提高WIFI连接的效率。
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.
第一方面,本发明实施例提供了一种双系统终端WIFI共享的方法,该方法包括:In a first aspect, an embodiment of the present invention provides a method for sharing a dual system terminal WIFI, the method comprising:
主系统设备获取WIFI服务集标识以及对应的WIFI密码,生成以所述WIFI服务集标识以及对应的WIFI密码为指令参数的WIFI连接控制指令;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;
主系统设备将所述WIFI连接控制指令发送到辅助系统设备;The main system device sends the WIFI connection control command to the auxiliary system device;
所述辅助系统设备接收到所述控制指令后响应所述WIFI连接控制指令,根据所述WIFI服务集标识以及对应的WIFI密码进行WIFI连接。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.
进一步的,所述主系统设备获取WIFI服务集标识以及对应的WIFI密码,生成以所述WIFI服务集标识以及对应的WIFI密码为指令参数的WIFI连接控制指令,包括:Further, 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:
主系统设备检测到接入WIFI热点的操作时,确认是否能成功接入所述WIFI热点;When the main system device detects the operation of accessing the WIFI hotspot, it is confirmed whether the WIFI hotspot can be successfully accessed;
若能成功接入所述WIFI热点,读取所述WIFI热点的WIFI服务集标识,记录对应输入的WIFI密码;If the WIFI hotspot is successfully accessed, the WIFI service set identifier of the WIFI hotspot is read, and the corresponding input WIFI password is recorded;
生成以所述WIFI服务集标识以及对应的WIFI密码为指令参数的WIFI连接控制指令。Generating a WIFI connection control command with the WIFI service set identifier and the corresponding WIFI password as instruction parameters.
进一步的,所述主系统设备将所述WIFI连接控制指令发送到辅助系统设备,具体为:Further, the main system device sends the WIFI connection control command to the auxiliary system device, specifically:
主系统设备将所述WIFI连接控制指令加密发送到辅助系统设备;The main system device encrypts and sends the WIFI connection control command to the auxiliary system device;
所述辅助系统设备响应所述WIFI连接控制指令,根据所述WIFI服务集标识以及对应的WIFI密码进行WIFI连接,包括: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:
所述辅助系统设备对所述WIFI连接控制指令进行解密,获取所述WIFI连
接控制指令中携带的WIFI服务集标识和对应的WIFI密码;The auxiliary system device decrypts the WIFI connection control command to obtain the WIFI connection
The WIFI service set identifier carried in the control command and the corresponding WIFI password;
根据所述WIFI服务集标识和对应WIFI密码接入WIFI热点。And accessing the WIFI hotspot according to the WIFI service set identifier and the corresponding WIFI password.
进一步的,所述辅助系统设备接收到所述控制指令后响应所述WIFI连接控制指令,根据所述WIFI服务集标识以及对应的WIFI密码进行WIFI连接之后,还包括:Further, 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, and further includes:
若成功接入所述WIFI服务集标识对应WIFI热点,则保存所述WIFI热点的连接设置。If the WIFI service set identifier corresponding to the WIFI hotspot is successfully accessed, the connection setting of the WIFI hotspot is saved.
进一步的,所述主系统设备将所述WIFI连接控制指令发送到辅助系统设备具体为:Further, the sending, by the primary system device, the WIFI connection control command to the auxiliary system device is specifically:
主系统设备通过USB连接线将所述WIFI连接控制指令发送到辅助系统设备。The main system device transmits the WIFI connection control command to the auxiliary system device through a USB cable.
第二方面,本发明实施例还提供了一种双系统终端WIFI共享的装置,双系统设备包括主系统设备和辅助系统设备,所述主系统设备包括:In a second aspect, 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:
指令生成单元,用于获取WIFI服务集标识以及对应的WIFI密码,生成以所述WIFI服务集标识以及对应的WIFI密码为指令参数的WIFI连接控制指令;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;
指令发送单元,用于将所述WIFI连接控制指令发送到辅助系统设备;An instruction sending unit, configured to send the WIFI connection control instruction to the auxiliary system device;
所述辅助系统设备包括:The auxiliary system device includes:
指令响应单元,用于接收到所述控制指令后响应所述WIFI连接控制指令,根据所述WIFI服务集标识以及对应的WIFI密码进行WIFI连接。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.
进一步的,所述指令生成单元,包括:Further, the instruction generating unit includes:
参数确认模块,用于检测到接入WIFI热点的操作时,确认是否能成功接入所述WIFI热点;
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;
参数获取模块,用于若能成功接入所述WIFI热点,读取所述WIFI热点的WIFI服务集标识,记录对应输入的WIFI密码;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;
指令生成模块,用于生成以所述WIFI服务集标识以及对应的WIFI密码为指令参数的WIFI连接控制指令。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.
进一步的,所述指令发送单元,具体用于将所述WIFI连接控制指令加密发送到辅助系统设备;Further, 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:
解密获取模块,用于对所述WIFI连接控制指令进行解密,获取所述WIFI连接控制指令中携带的WIFI服务集标识和对应的WIFI密码;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;
热点接入模块,用于根据所述WIFI服务集标识和对应WIFI密码接入WIFI热点。The hotspot access module is configured to access the WIFI hotspot according to the WIFI service set identifier and the corresponding WIFI password.
进一步的,所述辅助系统设备还包括:Further, the auxiliary system device further includes:
热点记录单元,用于若成功接入所述WIFI服务集标识对应WIFI热点,则保存所述WIFI热点的连接设置。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.
进一步的,所述指令发送单元,具体用于通过USB连接线将所述WIFI连接控制指令发送到辅助系统设备。Further, the command sending unit is specifically configured to send the WIFI connection control command to the auxiliary system device through a USB cable.
本发明通过主系统设备获取WIFI服务集标识以及对应的WIFI密码,生成以所述WIFI服务集标识以及对应的WIFI密码为指令参数的WIFI连接控制指令;主系统设备将所述WIFI连接控制指令发送到辅助系统设备;所述辅助系统设备接收到所述控制指令后响应所述WIFI连接控制指令,根据所述WIFI服务集标识以及对应的WIFI密码进行WIFI连接,避免了两个系统操作复杂的情况,能够在主系统设备连接WIFI后,辅助系统设备就自动连接主系统设备连接的
WIFI,达到共同上网的需求,提高WIFI连接的效率。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.
图1是本发明实施例一中的一种双系统终端WIFI共享的方法的流程图;1 is a flowchart of a method for sharing WIFI of a dual system terminal according to Embodiment 1 of the present invention;
图2是本发明实施例二中的一种双系统终端WIFI共享的方法的流程图;2 is a flowchart of a method for sharing WIFI of a dual system terminal according to Embodiment 2 of the present invention;
图3是本发明实施例三中的一种双系统终端WIFI共享的装置的结构示意图。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.
下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. It should also be noted that, for ease of description, only some, but not all, of the structures related to the present invention are shown in the drawings.
实施例一Embodiment 1
图1为本发明实施例一提供的一种双系统终端WIFI共享的方法的流程图,本实施例可适用于双系统终端WIFI共享的情况,该方法可以由本发明实施例提供的双系统终端WIFI共享的装置来执行,该装置可采用软件和/或硬件的方式实现,如图1所示,该方法具体包括如下步骤: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:
S110,主系统设备获取WIFI服务集标识以及对应的WIFI密码,生成以所述WIFI服务集标识以及对应的WIFI密码为指令参数的WIFI连接控制指令。S110: 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.
其中,所述WIFI服务集标识(Service Set Identifier,SSID)用于用户识别WIFI热点。SSID技术可以将一个无线局域网分为几个需要不同身份验证的子网络,每一个子网络都需要独立的身份验证,只有通过身份验证的用户才
可以进入相应的子网络,防止未被授权的用户进入本网络。简单说,SSID就是一个局域网的名称,只有设置为名称相同SSID的值的电脑才能互相通信。The service set identifier (SSID) 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.
其中,所述WIFI连接控制指令为以所述WIFI服务集标识以及对应的WIFI密码为指令参数的指令,基于主系统设备和辅助系统设备之间的工作模式,在本方案中,WIFI连接控制指令通过ADB进行发送,与之对应的,辅助系统设备在通过ADB接收到WIFI连接控制指令后,根据预设的指令协议对读取指令参数并对指令的具体操作进行响应。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.
S120,主系统设备将所述WIFI连接控制指令发送到辅助系统设备。S120. The main system device sends the WIFI connection control command to the auxiliary system device.
其中,所述辅助系统设备为双系统中除了主系统设备以外的其他系统,所述辅助系统设备至少为一个系统,较常见的,主系统设备和辅助系统设备的个数均为1个,当然,辅助系统设备的个数也可以为多个,另外,本方案中主系统设备和辅助系统设备常采用Android系统,另外可以是其它系统,只要采用主辅架构,本实施例对此不进行限制。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. In addition, in the present solution, the main system device and the auxiliary system device are often Android systems, and other systems may be used. .
S130,所述辅助系统设备接收到所述控制指令后响应所述WIFI连接控制指令,根据所述WIFI服务集标识以及对应的WIFI密码进行WIFI连接。S130. 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.
其中,所述辅助系统设备接收到所述控制指令后,根据接收到的所述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热点。
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. By default, 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. For example, 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.
在一个具体的例子中,若主系统设备为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也会进行重新连接,保证两边连接的一致性。In a specific example, if 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. 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.
采用本实施例的技术方案能够免去复杂重复的操作,化繁为简,用户也不用关心使用的设备到底是几个系统的结合,操作起来就如同一个系统一样简单便捷。并且这样能保证两个系统都能上网,辅助系统设备在需要一些网络服务(OTA等)时得到了很好的解决。By adopting the technical solution of the embodiment, 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.
本实施例的技术方案,通过主系统设备获取WIFI服务集标识以及对应的WIFI密码,生成以所述WIFI服务集标识以及对应的WIFI密码为指令参数的WIFI连接控制指令;主系统设备将所述WIFI连接控制指令发送到辅助系统设备;所述辅助系统设备接收到所述控制指令后响应所述WIFI连接控制指令,根据所述WIFI服务集标识以及对应的WIFI密码进行WIFI连接,避免了两个系统
操作复杂的情况,能够在主系统设备连接WIFI后,辅助系统设备就自动连接主系统设备连接的WIFI,达到共同上网的需求,提高WIFI连接的效率。In the technical solution of the embodiment, 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.
实施例二Embodiment 2
图2为本发明实施例二中的一种双系统终端WIFI共享的方法的流程示意图,本实施例以前述实施例一为基础进行优化,提供了优选的双系统终端WIFI共享的方法,具体是,所述主系统设备获取WIFI服务集标识以及对应的WIFI密码,生成以所述WIFI服务集标识以及对应的WIFI密码为指令参数的WIFI连接控制指令,包括:主系统设备检测到接入WIFI热点的操作时,确认是否能成功接入所述WIFI热点;若能成功接入所述WIFI热点,读取所述WIFI热点的WIFI服务集标识,记录对应输入的WIFI密码;生成以所述WIFI服务集标识以及对应的WIFI密码为指令参数的WIFI连接控制指令。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 And 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. In the operation, 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.
相应的,本实施例的方法具体包括如下步骤:Correspondingly, the method in this embodiment specifically includes the following steps:
S210,主系统设备检测到接入WIFI热点的操作时,确认是否能成功接入所述WIFI热点。S210. When the primary system device detects the operation of accessing the WIFI hotspot, it is confirmed whether the WIFI hotspot can be successfully accessed.
其中,所述接入WIFI热点的操作为主系统设备连接到所述WiFi热点,所述成功接入所述WIFI热点为在接入所述WIFI热点后能够通过无线网络收发数据,也就是说,所述WIFI热点为有效WIFI热点,执行这一操作是为了防止出现虽然主系统设备检测到接入所述WIFI热点,但是在主系统设备接入所述WIFI热点后,不能够通过无线网络收发数据的情况。在将所述WIFI热点的WIFI服务集标识以及WIFI密码发送至辅助系统设备之前,进行检验是否能成功接入所述WIFI热点的操作,提高了WIFI连接的效率。
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. Case. Before 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.
S220,若能成功接入所述WIFI热点,读取所述WIFI热点的WIFI服务集标识,记录对应输入的WIFI密码。S220. If the WIFI hotspot is successfully accessed, read the WIFI service set identifier of the WIFI hotspot, and record the corresponding input WIFI password.
S230,生成以所述WIFI服务集标识以及对应的WIFI密码为指令参数的WIFI连接控制指令。S230. Generate a WIFI connection control command that uses the WIFI service set identifier and the corresponding WIFI password as instruction parameters.
S240,主系统设备将所述WIFI连接控制指令发送到辅助系统设备。S240. The main system device sends the WIFI connection control command to the auxiliary system device.
S250,所述辅助系统设备接收到所述控制指令后响应所述WIFI连接控制指令,根据所述WIFI服务集标识以及对应的WIFI密码进行WIFI连接。S250. 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.
在一个具体的例子中,主系统设备检测到接入第一WIFI热点的操作,在主系统设备接入到第一WIFI热点之后,判断主系统设备能否通过无线网络进行数据传输,如果能够通过无线网络进行数据传输说明主系统设备成功接入第一WIFI热点,如果不能够通过无线网络进行数据传输说明主系统设备没有成功接入第一WIFI热点。如果主系统设备没有成功接入第一WIFI热点,则没有必要将第一WIFI热点的WIFI服务集标识以及WIFI密码发送至辅助系统设备,需要重新搜取WIFI热点,进行WIFI热点链接。In a specific example, 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.
可选的,所述主系统设备将所述WIFI连接控制指令发送到辅助系统设备,具体为:Optionally, the primary system device sends the WIFI connection control command to the auxiliary system device, specifically:
主系统设备将所述WIFI连接控制指令加密发送到辅助系统设备;The main system device encrypts and sends the WIFI connection control command to the auxiliary system device;
其中,将所述WIFI连接控制指令加密为将所述WIFI服务集标识以及对应的WIFI密码进行加密操作。其中加密的方法可以为通过加密算法和加密密钥将所述WIFI服务集标识以及对应的WIFI密码转变为密文。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.
所述辅助系统设备响应所述WIFI连接控制指令,根据所述WIFI服务集标识以及对应的WIFI密码进行WIFI连接,包括:
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:
所述辅助系统设备对所述WIFI连接控制指令进行解密,获取所述WIFI连接控制指令中携带的WIFI服务集标识和对应的WIFI密码;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;
其中,所述解密操作是通过解密算法和解密密钥将加密后的所述WIFI服务集标识以及对应的WIFI密码恢复为明文。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.
根据所述WIFI服务集标识和对应WIFI密码接入WIFI热点。And accessing the WIFI hotspot according to the WIFI service set identifier and the corresponding WIFI password.
可选的,所述辅助系统设备接收到所述控制指令后响应所述WIFI连接控制指令,根据所述WIFI服务集标识以及对应的WIFI密码进行WIFI连接之后,还包括:Optionally, 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, and further includes:
若成功接入所述WIFI服务集标识对应WIFI热点,则保存所述WIFI热点的连接设置。If the WIFI service set identifier corresponding to the WIFI hotspot is successfully accessed, the connection setting of the WIFI hotspot is saved.
具体的,在成功接入WIFI热点之后将所述WIFI热点的连接设置进行保存,在之后搜索到所述WIFI热点之后,可以直接接入,方便用户操作,提升用户体验。Specifically, after the WIFI hotspot is successfully accessed, 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.
可选的,所述主系统设备将所述WIFI连接控制指令发送到辅助系统设备具体为:Optionally, the sending, by the primary system device, the WIFI connection control command to the auxiliary system device is specifically:
主系统设备通过USB连接线将所述WIFI连接控制指令发送到辅助系统设备。The main system device transmits the WIFI connection control command to the auxiliary system device through a USB cable.
具体的,双系统通信的原理是通过两个系统在硬件上有一个usb的连接线也就是OTG线,类似于手机接在电脑上的原理,手机接在电脑上之后进行数据的通信,进行一些数据封装,定制协议,就可以传输数据以及进行其他的操作,主系统设备通过USB连接线也可以实现和辅助系统设备进行数据传输的操作。Specifically, 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.
本实施例的技术方案,通过主系统设备检测到接入WIFI热点的操作时,确认是否能成功接入所述WIFI热点,确定在接入所述WIFI热点后能否通过无线
网络收发数据。避免出现由于接入WiFi热点后不能通过无线网络收发数据,导致需要重新获取其他WiFi热点,重复执行链接WIFI操作的情况,提高WiFi链接的效率。In the technical solution of the embodiment, 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.
实施例三Embodiment 3
图3为本发明实施例三中的一种双系统终端WIFI共享的装置的结构示意图。本实施例可适用于双系统终端WIFI共享的情况,该装置可采用软件和/或硬件的方式实现,具体应用于双系统终端,双系统终端包括主系统设备31和辅助系统设备32。如图3所示,所述主系统设备31包括:指令生成单元310和指令发送单元311。辅助系统设备32包括:指令响应单元320。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.
其中,指令生成单元310,用于获取WIFI服务集标识以及对应的WIFI密码,生成以所述WIFI服务集标识以及对应的WIFI密码为指令参数的WIFI连接控制指令;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;
指令发送单元311,用于将所述WIFI连接控制指令发送到辅助系统设备;The instruction sending unit 311 is configured to send the WIFI connection control command to the auxiliary system device;
指令响应单元320,用于接收到所述控制指令后响应所述WIFI连接控制指令,根据所述WIFI服务集标识以及对应的WIFI密码进行WIFI连接。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.
可选的,所述指令生成单元310,包括:Optionally, the instruction generating unit 310 includes:
参数确认模块,用于检测到接入WIFI热点的操作时,确认是否能成功接入所述WIFI热点;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;
参数获取模块,用于若能成功接入所述WIFI热点,读取所述WIFI热点的WIFI服务集标识,记录对应输入的WIFI密码;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;
指令生成模块,用于生成以所述WIFI服务集标识以及对应的WIFI密码为
An instruction generating module, configured to generate, by using the WIFI service set identifier and the corresponding WIFI password
指令参数的WIFI连接控制指令。WIFI connection control command for command parameters.
可选的,所述指令发送单元311,具体用于将所述WIFI连接控制指令加密发送到辅助系统设备;Optionally, the command sending unit 311 is specifically configured to encrypt and send the WIFI connection control instruction to the auxiliary system device;
所述指令响应单元320,包括:The command response unit 320 includes:
解密获取模块,用于对所述WIFI连接控制指令进行解密,获取所述WIFI连接控制指令中携带的WIFI服务集标识和对应的WIFI密码;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;
热点接入模块,用于根据所述WIFI服务集标识和对应WIFI密码接入WIFI热点。The hotspot access module is configured to access the WIFI hotspot according to the WIFI service set identifier and the corresponding WIFI password.
可选的,所述辅助系统设备32还包括:Optionally, the auxiliary system device 32 further includes:
热点记录单元,用于若成功接入所述WIFI服务集标识对应WIFI热点,则保存所述WIFI热点的连接设置。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.
可选的,所述指令发送单元311,具体用于通过USB连接线将所述WIFI连接控制指令发送到辅助系统设备。Optionally, 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.
本实施例的技术方案,通过主系统设备获取WIFI服务集标识以及对应的WIFI密码,生成以所述WIFI服务集标识以及对应的WIFI密码为指令参数的WIFI连接控制指令;主系统设备将所述WIFI连接控制指令发送到辅助系统设备;所述辅助系统设备接收到所述控制指令后响应所述WIFI连接控制指令,根据所述WIFI服务集标识以及对应的WIFI密码进行WIFI连接,避免了两个系统操作复杂的情况,能够在主系统设备连接WIFI后,辅助系统设备就自动连接主系统设备连接的WIFI,达到共同上网的需求,提高WIFI连接的效率。In the technical solution of the embodiment, 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 In the case of complicated system 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.
上述产品可执行本发明任意实施例所提供的方法,具备执行方法相应的功
能模块和有益效果。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.
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。
Note that the above are only the preferred embodiments of the present invention and the technical principles applied thereto. Those skilled in the art will appreciate that the invention is not limited to the specific embodiments described herein, and that various modifications, changes and substitutions may be made without departing from the scope of the invention. Therefore, the present invention has been described in detail by the above embodiments, but the present invention is not limited to the above embodiments, and other equivalent embodiments may be included without departing from the inventive concept. The scope is determined by the scope of the appended claims.
Claims (10)
- 一种双系统终端WIFI共享的方法,其特征在于,包括:A dual system terminal WIFI sharing method, comprising:主系统设备获取WIFI服务集标识以及对应的WIFI密码,生成以所述WIFI服务集标识以及对应的WIFI密码为指令参数的WIFI连接控制指令;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;主系统设备将所述WIFI连接控制指令发送到辅助系统设备;The main system device sends the WIFI connection control command to the auxiliary system device;所述辅助系统设备接收到所述控制指令后响应所述WIFI连接控制指令,根据所述WIFI服务集标识以及对应的WIFI密码进行WIFI连接。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.
- 根据权利要求1所述的方法,其特征在于,所述主系统设备获取WIFI服务集标识以及对应的WIFI密码,生成以所述WIFI服务集标识以及对应的WIFI密码为指令参数的WIFI连接控制指令,包括:The method according to claim 1, wherein the main system device obtains a WIFI service set identifier and a corresponding WIFI password, and generates a WIFI connection control instruction that uses the WIFI service set identifier and the corresponding WIFI password as an instruction parameter. ,include:主系统设备检测到接入WIFI热点的操作时,确认是否能成功接入所述WIFI热点;When the main system device detects the operation of accessing the WIFI hotspot, it is confirmed whether the WIFI hotspot can be successfully accessed;若能成功接入所述WIFI热点,读取所述WIFI热点的WIFI服务集标识,记录对应输入的WIFI密码;If the WIFI hotspot is successfully accessed, the WIFI service set identifier of the WIFI hotspot is read, and the corresponding input WIFI password is recorded;生成以所述WIFI服务集标识以及对应的WIFI密码为指令参数的WIFI连接控制指令。Generating a WIFI connection control command with the WIFI service set identifier and the corresponding WIFI password as instruction parameters.
- 根据权利要求1所述的方法,其特征在于,所述主系统设备将所述WIFI连接控制指令发送到辅助系统设备,具体为:The method according to claim 1, wherein the main system device sends the WIFI connection control command to the auxiliary system device, specifically:主系统设备将所述WIFI连接控制指令加密发送到辅助系统设备;The main system device encrypts and sends the WIFI connection control command to the auxiliary system device;所述辅助系统设备响应所述WIFI连接控制指令,根据所述WIFI服务集标识以及对应的WIFI密码进行WIFI连接,包括: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:所述辅助系统设备对所述WIFI连接控制指令进行解密,获取所述WIFI连接控制指令中携带的WIFI服务集标识和对应的WIFI密码; 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;根据所述WIFI服务集标识和对应WIFI密码接入WIFI热点。And accessing the WIFI hotspot according to the WIFI service set identifier and the corresponding WIFI password.
- 根据权利要求1所述的方法,其特征在于,所述辅助系统设备接收到所述控制指令后响应所述WIFI连接控制指令,根据所述WIFI服务集标识以及对应的WIFI密码进行WIFI连接之后,还包括:The method according to claim 1, wherein the auxiliary system device responds to the WIFI connection control command after receiving the control command, and performs WIFI connection according to the WIFI service set identifier and the corresponding WIFI password. Also includes:若成功接入所述WIFI服务集标识对应WIFI热点,则保存所述WIFI热点的连接设置。If the WIFI service set identifier corresponding to the WIFI hotspot is successfully accessed, the connection setting of the WIFI hotspot is saved.
- 根据权利要求1所述的方法,其特征在于,所述主系统设备将所述WIFI连接控制指令发送到辅助系统设备具体为:The method according to claim 1, wherein the sending, by the primary system device, the WIFI connection control command to the auxiliary system device is:主系统设备通过USB连接线将所述WIFI连接控制指令发送到辅助系统设备。The main system device transmits the WIFI connection control command to the auxiliary system device through a USB cable.
- 一种双系统终端WIFI共享的装置,其特征在于,双系统终端包括主系统设备和辅助系统设备,所述主系统设备包括:A dual system terminal WIFI sharing device, wherein the dual system terminal comprises a main system device and an auxiliary system device, and the main system device comprises:指令生成单元,用于获取WIFI服务集标识以及对应的WIFI密码,生成以所述WIFI服务集标识以及对应的WIFI密码为指令参数的WIFI连接控制指令;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;指令发送单元,用于将所述WIFI连接控制指令发送到辅助系统设备;An instruction sending unit, configured to send the WIFI connection control instruction to the auxiliary system device;所述辅助系统设备包括:The auxiliary system device includes:指令响应单元,用于接收到所述控制指令后响应所述WIFI连接控制指令,根据所述WIFI服务集标识以及对应的WIFI密码进行WIFI连接。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.
- 根据权利要求6所述的装置,其特征在于,所述指令生成单元,包括:The apparatus according to claim 6, wherein the instruction generating unit comprises:参数确认模块,用于检测到接入WIFI热点的操作时,确认是否能成功接入所述WIFI热点;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;参数获取模块,用于若能成功接入所述WIFI热点,读取所述WIFI热点的WIFI服务集标识,记录对应输入的WIFI密码; 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;指令生成模块,用于生成以所述WIFI服务集标识以及对应的WIFI密码为指令参数的WIFI连接控制指令。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.
- 根据权利要求6所述的装置,其特征在于,所述指令发送单元,具体用于将所述WIFI连接控制指令加密发送到辅助系统设备;The device according to claim 6, wherein 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:解密获取模块,用于对所述WIFI连接控制指令进行解密,获取所述WIFI连接控制指令中携带的WIFI服务集标识和对应的WIFI密码;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;热点接入模块,用于根据所述WIFI服务集标识和对应WIFI密码接入WIFI热点。The hotspot access module is configured to access the WIFI hotspot according to the WIFI service set identifier and the corresponding WIFI password.
- 根据权利要求6所述的装置,其特征在于,所述辅助系统设备还包括:The device according to claim 6, wherein the auxiliary system device further comprises:热点记录单元,用于若成功接入所述WIFI服务集标识对应WIFI热点,则保存所述WIFI热点的连接设置。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.
- 根据权利要求6所述的装置,其特征在于,所述指令发送单元,具体用于通过USB连接线将所述WIFI连接控制指令发送到辅助系统设备。 The device according to claim 6, wherein the command sending unit is specifically configured to send the WIFI connection control command to the auxiliary system device through a USB cable.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611185001.3 | 2016-12-20 | ||
CN201611185001.3A CN106792994A (en) | 2016-12-20 | 2016-12-20 | Method and device for sharing WIFI of dual-system terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018113113A1 true WO2018113113A1 (en) | 2018-06-28 |
Family
ID=58894100
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/077307 WO2018113113A1 (en) | 2016-12-20 | 2017-03-20 | Double-system terminal wifi sharing method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106792994A (en) |
WO (1) | WO2018113113A1 (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107562373B (en) * | 2017-08-07 | 2021-02-23 | 广州视源电子科技股份有限公司 | Multi-system USB flash disk reading method and device, readable storage medium and computer equipment |
CN107770840B (en) * | 2017-09-29 | 2020-12-18 | 努比亚技术有限公司 | Hot signal display method, mobile terminal and computer readable storage medium |
CN108112052B (en) | 2017-12-13 | 2021-09-10 | 广东美的制冷设备有限公司 | Terminal network sharing method and device, air conditioner and storage medium |
CN108540967A (en) * | 2018-03-21 | 2018-09-14 | 广州视源电子科技股份有限公司 | Intelligent terminal, wireless network sharing method and storage medium |
CN108833498B (en) * | 2018-05-25 | 2021-06-25 | 上海芯爱智能科技有限公司 | Terminal communication method, terminal and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105050087A (en) * | 2015-08-20 | 2015-11-11 | 惠州Tcl移动通信有限公司 | Method and system for accessing multi-protocol compatible equipment to WiFi (Wireless Fidelity) network |
CN105406997A (en) * | 2015-11-03 | 2016-03-16 | 北京千丁互联科技有限公司 | Indoor machine system initialization configuration method and system |
CN105554754A (en) * | 2015-12-16 | 2016-05-04 | Tcl集团股份有限公司 | Method and system for accessing WIFI module of the internet of things to network |
-
2016
- 2016-12-20 CN CN201611185001.3A patent/CN106792994A/en active Pending
-
2017
- 2017-03-20 WO PCT/CN2017/077307 patent/WO2018113113A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105050087A (en) * | 2015-08-20 | 2015-11-11 | 惠州Tcl移动通信有限公司 | Method and system for accessing multi-protocol compatible equipment to WiFi (Wireless Fidelity) network |
CN105406997A (en) * | 2015-11-03 | 2016-03-16 | 北京千丁互联科技有限公司 | Indoor machine system initialization configuration method and system |
CN105554754A (en) * | 2015-12-16 | 2016-05-04 | Tcl集团股份有限公司 | Method and system for accessing WIFI module of the internet of things to network |
Also Published As
Publication number | Publication date |
---|---|
CN106792994A (en) | 2017-05-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113055867B (en) | Terminal auxiliary network distribution method and device and electronic equipment | |
US8494164B2 (en) | Method for connecting wireless communications, wireless communications terminal and wireless communications system | |
WO2018113113A1 (en) | Double-system terminal wifi sharing method and device | |
WO2017067430A1 (en) | Smart device, electronic device, and near field communication-based network connection method | |
KR101743195B1 (en) | Method and apparatus for providing information, program and recording medium | |
EP3007515B1 (en) | Method, terminal, client and system for accessing wireless network | |
CN104584606A (en) | Method and devices for pairing within a group of wireless devices | |
JP2016528844A (en) | Network connection method, hotspot terminal and management terminal | |
JP2011254469A (en) | Method, device and system for configuring wifi parameter | |
CN107567017B (en) | Wireless connection system, device and method | |
CN106789476B (en) | Gateway communication method and system | |
US9510130B2 (en) | Provisioning of multiple wireless devices by an access point | |
WO2015164999A1 (en) | Virtual card downloading method, terminal and intermediate device | |
US8862096B1 (en) | Provisioning of multiple wireless devices by an access point | |
CN104009925A (en) | Method and device for establishing bridge connection with router and router | |
CN112566113B (en) | Key generation and terminal network distribution method, device and equipment | |
CN106658488B (en) | Intelligent household appliance and method and device for safely accessing intelligent household appliance | |
CN106452999B (en) | Intelligent household appliance and method and device for safely accessing intelligent household appliance | |
JP6366113B2 (en) | COMMUNICATION SYSTEM, COMMUNICATION DEVICE, AND COMMUNICATION METHOD | |
CN111787514B (en) | Method and device for acquiring equipment control data, storage medium and electronic device | |
JP6269025B2 (en) | Wireless connection apparatus, method for copying setting information related to wireless communication, and network system | |
CN101808317B (en) | Computer device and method for realizing wireless local area network security measure | |
CN110602693B (en) | Networking method and equipment of wireless network | |
WO2017067330A1 (en) | An apparatus and method for configuration management of a wireless access point | |
JP2013247533A (en) | Wireless lan communication system, wireless lan master device, wireless lan slave device, communication connection establishment method, and program |
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 |