WO2018086304A1 - 一种无线网络的接入方法及终端设备 - Google Patents

一种无线网络的接入方法及终端设备 Download PDF

Info

Publication number
WO2018086304A1
WO2018086304A1 PCT/CN2017/079639 CN2017079639W WO2018086304A1 WO 2018086304 A1 WO2018086304 A1 WO 2018086304A1 CN 2017079639 W CN2017079639 W CN 2017079639W WO 2018086304 A1 WO2018086304 A1 WO 2018086304A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
wireless network
network
parameter
wireless
Prior art date
Application number
PCT/CN2017/079639
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 华为技术有限公司
Priority to CN201780009055.0A priority Critical patent/CN108605375A/zh
Publication of WO2018086304A1 publication Critical patent/WO2018086304A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W60/00Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Definitions

  • the embodiments of the present application relate to the field of communications technologies, and in particular, to access of a wireless network.
  • Wi-Fi Wireless Fidelity
  • Typical equipment such as smart sockets, smart air conditioners, smart purifiers, smart refrigerators, etc.
  • smart devices usually do not have a dedicated text input device, so smart devices cannot easily select a Wi-Fi network as a smart phone and access a Wi-Fi network by entering a password.
  • An existing method for an intelligent device to access a wireless network is to set the smart device to a wireless access point (AP) mode.
  • AP wireless access point
  • the smart device actively creates a wireless network for access by other devices.
  • this approach requires that the smart device must support AP mode. Therefore, the requirements for the smart device are high, which increases the complexity of the hardware and software of the smart device, thereby increasing the cost of the smart device.
  • the operation of the smart device is complicated, and the first configuration step is cumbersome, and the user, especially the elderly user, has a poor experience.
  • Another method for accessing a wireless network by another smart device is based on a User Datagram Protocol (UDP) broadcast monitoring mode.
  • UDP User Datagram Protocol
  • the smart device enters the initialization state and starts listening to nearby Wi-Fi packets.
  • the smartphone sends a UDP broadcast packet, which includes the network name and password.
  • the smart device obtains the configuration information through the received UDP packet, thereby switching the network to the Wi-Fi network in the home, thereby completing the configuration.
  • UDP broadcasts may have security risks that are intercepted by the network.
  • security can be improved by encrypting broadcast data, since the implementation complexity affects performance, the general product does not have the function of encrypting broadcast packets.
  • Another existing smart device access method to the wireless network is based on the Wi-Fi Direct technology mode.
  • both the smart device and the wireless router enter the Wi-Fi Direct state, and the smart device automatically connects to the wireless router. Or let both the smart device and the smart phone enter the Wi-Fi Direct state. After the two are automatically connected, the smart phone transmits the wireless router's network name and password to the smart device, and the smart device is connected to the wireless router.
  • most smart devices currently do not support the Wi-Fi Direct mode, and the scope of application is relatively narrow.
  • the hardware and software of the smart device should be Seek higher.
  • the smart device is required to have an AP function, or the smart device is required to have a function of encrypting broadcast data, or the smart device is required to have a Wi-Fi Direct function or the like.
  • the smart home system involves a variety of smart home devices, including not only large appliances such as televisions, refrigerators, washing machines, air conditioners, but also small household appliances such as smart sockets, smart switches, smart table lamps, smart hot water bottles, smart soya-bean milk machines, and the like. Small smart devices typically require lower hardware and software capabilities and require lower cost, which is not possible with the prior art.
  • the embodiment of the present application provides a method for accessing a wireless network and a terminal terminal, which realizes that the smart device automatically accesses the home wireless network at a lower cost.
  • an embodiment of the present application provides a method for accessing a wireless network.
  • the first terminal device establishes a first wireless network according to the parameter of the second terminal device, where the parameter of the second terminal device is scanned by the first terminal device by scanning one or two-dimensional parameters including parameters of the second terminal device. Get it by code.
  • the first terminal device sends the network parameter of the second wireless network to the second terminal device by using the first wireless network, where the network parameter of the second wireless network is used to perform the second terminal device Network Configuration.
  • the first terminal device is in the coverage of the second wireless network.
  • the embodiment of the present application provides a first terminal device.
  • the first terminal device includes a processor and a transmitter.
  • the processor is configured to establish a first wireless network according to a parameter of the second terminal device, where the parameter of the second terminal device is obtained by the first terminal device by scanning a one-dimensional or two-dimensional code that includes parameters of the second terminal device .
  • the transmitter is configured to send network parameters of the second wireless network to the second terminal device by using the first wireless network, where network parameters of the second wireless network are used for network configuration of the second terminal device.
  • the first terminal device is in the coverage of the second wireless network.
  • the embodiment of the present application scans the parameters of the second terminal device, thereby establishing a first wireless network, and sending, by the first wireless network, the parameters of the second wireless network obtained by the first terminal device to the second terminal device, so that the first The second terminal device is connected to the second wireless network. Therefore, the embodiment of the present application facilitates the access of the second terminal device to the second wireless network, and the user operation is simple, and the user experience is improved.
  • the first terminal device scans the one-dimensional code or the two-dimensional code on the second terminal device to obtain the preset parameters of the first wireless network, thereby further reducing the operation of the user and improving user comfort.
  • the parameter of the second terminal device is a network name and/or password of the first wireless network.
  • the parameter of the second terminal device includes a media access control MAC address of the second terminal device, or includes a sequence number of the second terminal device.
  • the network parameter of the second wireless network is a username and/or password of the second wireless network.
  • the method before the first terminal device sends the network parameter of the second wireless network to the second terminal device by using the first wireless network, the method includes: determining, by the first terminal device, the second wireless Network parameters of the network.
  • the parameter of the second terminal device is a preset parameter of the second terminal device.
  • the second terminal device is a smart device.
  • the first wireless network is a first wireless fidelity Wi-Fi network and the second wireless network is a second wireless fidelity Wi-Fi network.
  • an embodiment of the present application provides a method for accessing a wireless network.
  • the first terminal device accesses the first wireless network according to the network parameter of the first wireless network, and the first wireless network is established by the second terminal device.
  • the first terminal device receives network parameters of the second wireless network from the second terminal device through the first wireless network.
  • the first terminal device automatically accesses the second wireless network according to the network parameter of the second wireless network.
  • an embodiment of the present application provides a first terminal device.
  • the first terminal device includes a processor and a receiver.
  • the processor is configured to access to the first wireless network according to network parameters of the first wireless network, and the first wireless network is established by the second terminal device.
  • the receiver is configured to receive, by the first wireless network, network parameters of a second wireless network from the second terminal device.
  • the processor is further configured to automatically access to the second wireless network according to network parameters of the second wireless network.
  • the embodiment of the present application accesses the first wireless network by using parameters preset in the first terminal device, and receives parameters of the second wireless network through the first wireless network, so that the first terminal device accesses the In the second wireless network. Therefore, the first terminal device in the embodiment of the present application can access the home wireless network without having an AP function. Therefore, the first terminal device in the embodiment of the present application greatly saves cost, and the user is simple in operation, and is particularly suitable for a small smart device that is not capable.
  • the application of the embodiment of the present application to the smart device can solve the technical problem that the smart device cannot conveniently select the Wi-Fi wireless network and input the password to access the Wi-Fi wireless network because there is no special text input device.
  • the first terminal device before the first terminal device accesses the first wireless network according to the network parameter of the first wireless network, the first terminal device searches for the surrounding of the first terminal device periodically or in real time. a wireless network, and network parameters of the first wireless network are stored in the first terminal device.
  • the first terminal device accesses the first wireless network according to the network parameter of the first wireless network, specifically: the first terminal device searches for one or more of the first terminal device.
  • the network name of the wireless network is matched with the first network name stored in the first terminal device; in a case where the searched network name matches the first network name, the first terminal The device sends a first network password to the wireless network corresponding to the searched network name; and the first terminal device accesses the first wireless network based on the successful verification of the first network password.
  • the network parameters of the first wireless network include a network name and/or a password of the first wireless network.
  • the network name and/or password of the first wireless network includes a media access control MAC address of the first terminal device or a sequence number of the first terminal device.
  • the network parameter of the second wireless network is a network name and/or password of the second wireless network.
  • the parameter of the second terminal device is a network name and/or password of the first wireless network.
  • the parameter of the second terminal device includes a media access control MAC address of the second terminal device, or includes a sequence number of the second terminal device.
  • the network parameter of the second wireless network is a username and/or password of the second wireless network.
  • the processor is further configured to pass the network parameters of the second wireless network at the transmitter Before the first wireless network is sent to the second terminal device, the network parameters of the second wireless network are determined.
  • the first terminal device such as a smart phone
  • scans parameters of the second terminal device such as the smart device
  • the second terminal device receives the parameter of the second wireless network from the first terminal device, so that the second terminal device can access the second wireless network.
  • the second terminal device such as the smart device
  • the second terminal device in the embodiment of the present application only needs to meet the access function of the most basic Wi-Fi wireless network, and does not need to have the AP function.
  • many smart devices are embedded devices with extremely limited computing power and memory size. The additional functions obviously increase the complexity and cost of the smart device hardware and software.
  • the embodiments of the present application eliminate these additional requirements for smart devices. .
  • FIG. 1 is a flowchart of a method for an intelligent device to access a wireless network according to an embodiment of the present application
  • FIG. 2 is a schematic diagram of an application scenario of a smart phone scanning a barcode on a smart socket to obtain a network name and a password of a first wireless network according to an embodiment of the present disclosure
  • FIG. 3 is a schematic diagram of an application scenario of a smart phone acquiring a network name and a password of a second wireless network according to an embodiment of the present disclosure
  • FIG. 4 is a schematic diagram of another application scenario of a smart phone acquiring a network name and a password of a second wireless network according to an embodiment of the present disclosure
  • FIG. 5 is a flowchart of another method for a first terminal device to access a second terminal device to a wireless network according to an embodiment of the present disclosure
  • FIG. 6 is a flowchart of still another method for a first terminal device to access a wireless network by using a second terminal device according to an embodiment of the present disclosure
  • FIG. 7 is a schematic diagram of a mobile terminal according to an embodiment of the present application.
  • FIG. 8 is a schematic diagram of a smart device according to an embodiment of the present application.
  • FIG. 1 is a flowchart of a method for an intelligent device to access a wireless network according to an embodiment of the present application.
  • the smartphone scans a one-dimensional code (ie, a barcode) or a two-dimensional code on a smart device such as a smart socket, and the one-dimensional code or the two-dimensional code on the smart device includes parameters of the smart device.
  • a one-dimensional code ie, a barcode
  • a two-dimensional code on a smart device such as a smart socket
  • the parameter of the smart device is a first network name and/or a first password of the first wireless network that the smart phone is to be formed. That is, the smart phone scans a barcode or a two-dimensional code on the smart device to obtain a first network name and/or a first password of the first wireless network that the smart phone is to set up.
  • the first wireless network is a Wi-Fi wireless network.
  • the parameters of the smart device include a media access control MAC address of the smart device or a serial number of the smart device.
  • FIG. 2 is a schematic diagram of an application scenario in which a smart phone scans a barcode on a smart socket to obtain a network name and a password of a first wireless network.
  • a software module is preset in the smart phone, and the preset software module is a smart home software module, and the user clicks the smart home icon to enter the smart home interface, and clicks the scan one-dimensional code button in the smart home interface. . Then, scanning the barcode on the smart socket to obtain the first network name and the first password of the first wireless network that the smart phone is to set up.
  • the barcode on the smart socket is set by the manufacturer of the smart socket, and the barcode includes parameters of the smart socket.
  • the parameter of the smart socket is a first network name and a first password of the first wireless network.
  • the first network name may take any value
  • the first password may be the MAC address of the smart socket or the serial number of the smart socket.
  • step 102 the smartphone parses the scanned barcode or the two-dimensional code to obtain the first network name and the first password of the first wireless network, that is, obtain the first network name of the first wireless network to be formed by the smart phone. First password.
  • the smart phone parses the scanned barcode or the two-dimensional code to obtain a plurality of numbers and/or letters, and the smart phone determines that the digits and/or letters of the plurality of digits and/or letters that are parsed are A network name, another part of the number and / or letter is the first password.
  • step 103 the smart phone establishes a first wireless network by using the access point AP as the access point AP, and the network name of the first wireless network is determined by the first network name obtained by step 102, and the password of the first wireless network is a step. 102 parses the obtained first password.
  • the network name and password of the first wireless network formed by the smart phone are obtained by the smart phone by parsing the barcode or the two-dimensional code on the smart device.
  • the present application scans a barcode or a two-dimensional code on a smart device by a smart phone, and parses the barcode or the two-dimensional code to obtain a first network name and a first password of the first wireless network of the smart phone component.
  • the smart phone establishes a first wireless network by itself as an access point AP, and the network name and password of the first wireless network are respectively a first network name and a first password obtained by the smart phone scanning the smart device.
  • the smart phone sets up the first wireless network according to the parameters provided by the smart device. Then, the smart device automatically accesses the first wireless network according to the first network name and the first password of the first wireless network stored therein. Detailed below.
  • the smart device is activated, for example, the user manually powers on the smart device.
  • the smart device provided by the embodiment of the present application does not need to have the function of forming a wireless network, that is, does not have an AP function, but only needs to have an access function, that is, has a Stat (STA) function.
  • STA Stat
  • the smart device of the embodiment of the present application can implement the function of accessing the home wireless network at the lowest cost. Therefore, it is very suitable for small smart devices, such as smart sockets, smart switches, and the like. It can be seen that the smart device of the embodiment of the present application does not require higher processing capability than the smart device with the AP function, and the software and hardware costs are lower, thereby greatly saving the cost.
  • step 104 and step 101 to step 103 have no sequential relationship, that is, step 104 may be performed first, and then steps 101-103 may be performed.
  • the smart device searches for the wireless network around it periodically or in real time and determines if it can access the first wireless network.
  • the smart device matches the network name of the plurality of wireless networks that it searches for with its preset first network name.
  • the smart device searches for the network name of the first wireless network and the first network name preset by the smart device
  • the smart device attempts to connect to the first wireless network with its preset first password, and the AP of the first wireless network, that is, the smart phone, verifies whether the password matches.
  • first network name and the first password preset by the smart device refer to the first network name and the first password stored in the smart device.
  • the smart device automatically accesses the first wireless network.
  • the smart device serves as an STA of the first wireless network
  • the smart phone serves as an AP of the first wireless network
  • the smart device and the smart phone can pass the The first wireless network communicates, and the first wireless network is a Wi-Fi wireless network.
  • the smartphone acquires parameters of the second wireless network of the wireless router, including the second network name and the second password of the second wireless network.
  • the second wireless network is a Wi-Fi wireless network.
  • the wireless router is a router with wireless coverage function, and provides Internet access functions for user devices such as smart devices and smart phones.
  • the purpose of the embodiment of the present application is to provide a smart device with only STA function, and provide access to the second wireless network formed by the wireless router.
  • the wireless router is a home wireless router.
  • the embodiment of the present application searches for the neighboring network based on the smart phone, and obtains the second network name and the second password of the second wireless network. For the specific acquisition manner, refer to FIG. 3 and related content.
  • the smartphone sends the second network name and the second password of the second wireless network that it acquires to the smart device through the first wireless network.
  • the second wireless network is a home Wi-Fi wireless network formed by a wireless router.
  • the smart phone is an AP
  • the smart device is an STA
  • the smart phone and the smart device can communicate with each other through the first wireless network. Therefore, after the smart phone acquires parameters of the second wireless network, including the second network name and the second password of the second wireless network, the smart phone can enable the second network name of the second wireless network, The second password is sent to the smart device through the first wireless network.
  • FIG. 3 is a schematic diagram of an application scenario of a smart phone acquiring a network name and a password of a second wireless network according to an embodiment of the present disclosure.
  • the smart phone preset software module - smart home after the user clicks the "smart home” icon to enter the smart home interface, continue to click the "search wireless network” icon.
  • the smartphone starts searching for the wireless network around it. After the smartphone searches for the wireless network, the user clicks on the network name of the wireless network, xx, and the "xx home” wireless network is the network created by the home wireless router. It should be noted that the smartphone clicks on the "xx home” wireless network instead of accessing the wireless network, but only the network name of the wireless network.
  • the user inputs the password of the "xx home” wireless network, and finally clicks the "confirm” button, so that the network name of the wireless network searched by the smart phone and the password input by the user are sent to the first wireless network to Smart socket.
  • the smart phone is an AP of the first wireless network
  • the smart socket is an STA of the first wireless network. At this time, the smart phone and the smart socket are not connected to the second wireless network.
  • FIG. 4 is a schematic diagram of another application scenario of a smart phone acquiring a network name and a password of a second wireless network according to an embodiment of the present disclosure.
  • the smartphone scans the one- or two-dimensional code on the smart socket and creates the first wireless network
  • the user queries one or more home wireless networks stored in the smartphone.
  • the user queries a wireless network such as "xx home” or “yy” through a smart phone, as shown in FIG. In Figure 4, the user clicks on the selected "xx home” wireless network, and the "xx home” wireless network is the second wireless network, and then the user clicks the "confirm” button to protect the smart phone.
  • the network name of the "xx home” wireless network and its password are sent to the smart socket through the first wireless network, and the network name of the "xx home” wireless network and its password are the second network name of the second wireless network and The second password.
  • the manner of acquiring the network name and password of the second wireless network in the embodiment of the present application is not limited to that shown in FIG. 3 and FIG. 4 , and FIG. 3 and FIG. 4 are only an example.
  • the user can also directly send the network name and password of the "xx home” wireless network saved in the smart phone to the smart socket after clicking on the selected "xx home” wireless network.
  • the smartphone only stores the network name of the home wireless network without saving the corresponding password. In this case, after the user clicks on the selected "xx home” wireless network, the user needs to input the password again, and then the smart phone sends the saved network name of the "xx home” wireless network and the password input by the user to the smart socket. .
  • step 109 the smart device automatically accesses the second wireless network according to the second network name and the second password of the second wireless network that it receives, thereby achieving the purpose of the smart device accessing the home wireless network.
  • the smart device searches for the wireless network around the smart device, and receives the second network name and the second searched by the smart device. After the network name of the wireless network is matched, the smart device further attempts to connect to the second wireless network through the second password received by the smart device to verify whether the password matches. After the AP of the second wireless network, that is, the wireless router, verifies that the password is passed, the wireless router corresponding to the second wireless network allows the smart device to access the second wireless network, so the smart device directly accesses the second wireless In the network.
  • the smart device directly accesses the second wireless network in the home, thereby realizing the purpose of automatically configuring the smart device and connecting to the second wireless network in the home.
  • any existing smart home equipment including smart home appliances such as smart air conditioners and small smart home devices such as smart sockets, cannot be directly connected to the home wireless network, but requires manual configuration by the user. The operation is cumbersome and the user experience is not good.
  • the existing smart device is to be connected to the home wireless network, it is often necessary to have the AP function, which increases the cost of the smart device, and is not conducive to the promotion and popularization of the small smart home device.
  • the smart device provided by the embodiment of the present invention can not only directly and automatically access the home wireless network, but also the smart device of the present application has low processing capacity, thereby saving cost, and is particularly suitable for small smart home devices.
  • FIG. 5 is a flowchart of another method for a first terminal device to access a second terminal device to a wireless network according to an embodiment of the present disclosure.
  • step 510 the first terminal device establishes a first wireless network according to the parameter of the second terminal device, and the parameter of the second terminal device is scanned by the first terminal device by scanning a one-dimensional parameter including the second terminal device. Or obtained by QR code.
  • the first terminal device sends the network parameter of the second wireless network to the second terminal device by using the first wireless network, and the network parameter of the second wireless network is used for the second
  • the terminal device performs network configuration.
  • the first terminal device is in the coverage of the second wireless network.
  • FIG. 6 is a flowchart of still another method for a first terminal device to access a wireless network by using a second terminal device according to an embodiment of the present disclosure.
  • step 610 the first terminal device accesses the first wireless network according to the network parameter of the first wireless network, and the first wireless network is established by the second terminal device.
  • the first terminal device receives network parameters of the second wireless network from the second terminal device through the first wireless network.
  • step 630 the first terminal device automatically accesses the second wireless network according to network parameters of the second wireless network.
  • FIG. 7 is a schematic diagram of a mobile terminal according to an embodiment of the present application.
  • the mobile terminal 700 includes a processor 710 and a transmitter 720.
  • the mobile terminal structure shown in FIG. 7 does not constitute a limitation on the mobile terminal.
  • the mobile terminal may include more or less components than the illustrated ones, or combine some components, or different. Parts layout.
  • the processor 710 is configured to establish a first wireless network according to a parameter of the second terminal device, where the parameter of the second terminal device is scanned by the first terminal device by scanning a one-dimensional or Obtained by the QR code.
  • the transmitter 720 is configured to send network parameters of the second wireless network to the second terminal device by using the first wireless network, where network parameters of the second wireless network are used for network configuration of the second terminal device And the first terminal device is in the second wireless network coverage area.
  • the parameter of the second terminal device is a network name and/or password of the first wireless network.
  • the parameter of the second terminal device includes a media access control MAC address of the second terminal device, or includes a sequence number of the second terminal device.
  • the network parameter of the second wireless network is a username and/or password of the second wireless network.
  • the processor is further configured to determine the second wireless network before the transmitter transmits network parameters of the second wireless network to the second terminal device by using the first wireless network. Network parameters.
  • FIG. 8 is a schematic diagram of a smart device according to an embodiment of the present application.
  • the smart device 800 includes a processor 810 and a receiver 820, a transmitter 830.
  • the smart device structure shown in FIG. 8 does not constitute a limitation on the smart device.
  • the smart device may include more or less components than the illustrated ones, or combine some components, or different. Parts layout.
  • the processor 810 is configured to access to the first wireless network according to network parameters of the first wireless network, and the first wireless network is established by the second terminal device.
  • the receiver 820 is configured to receive network parameters of the second wireless network from the second terminal device by using the first wireless network.
  • the processor 810 is further configured to automatically access to the second wireless network according to network parameters of the second wireless network.
  • the processor 810 is further configured to periodically or in real time search for a wireless network around the first terminal device before accessing the network parameter according to the first wireless network, and First wireless network
  • the network parameters of the network are stored in the first terminal device.
  • the processor 810 is further configured to: perform, by using the network name of the one or more wireless networks that is searched by the first terminal device, the first network name that is stored in the first terminal device match.
  • the transmitter 830 is configured to send, by the searched network name, the first network password to the wireless network corresponding to the searched network name, if the searched network name matches the first network name.
  • the processor 810 is further configured to access to the first wireless network based on the successful verification of the first network password.
  • the network parameters of the first wireless network include a network name and/or a password of the first wireless network.
  • the network name and/or password of the first wireless network includes a media access control MAC address of the first terminal device or a sequence number of the first terminal device.
  • the network parameter of the second wireless network is a network name and/or password of the second wireless network.
  • non-transitory English: non-trans itory
  • non-transitory such as random access memory, read-only memory, flash memory, hard disk, solid state disk, tape (English: magnet ic tape), floppy disk (English: floppy disk), CD (English: opt Ic disc) and any combination thereof.

Landscapes

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

Abstract

本申请实施例提供了一种无线网络的接入方法及终端设备。该方法包括:第一终端设备根据第二终端设备的参数建立第一无线网络,所述第二终端设备的参数由所述第一终端设备通过扫描包含所述第二终端设备的参数的一维或二维码而获得;所述第一终端设备将第二无线网络的网络参数通过所述第一无线网络发送至所述第二终端设备,所述第二无线网络的网络参数用于对所述第二终端设备进行网络配置;其中,所述第一终端设备处于所述第二无线网络覆盖范围。本申请实施例节约了成本,能够广泛用于智能家居系统中,尤其适用于小型智能家居设备。

Description

一种无线网络的接入方法及终端设备
本申请要求于2016年11月08日提交国家知识产权局、申请号为201610980759.X、发明名称为“一种接入WIFI网络的方法和设备”的专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及通信技术领域,尤其涉及无线网络的接入。
背景技术
随着信息技术的快速发展,智能家居系统逐渐走入人们的视野,家用智能设备越来越引起人们的关注,并趋于流行。
目前,很多家电设备都安装上了无线保真(Wireless Fidel ity,Wi-Fi)模块,方便用户通过手机控制和远程查看家里情况。典型的设备如智能插座、智能空调、智能净化器、智能电冰箱等。然而,目前智能设备通常都没有专门的文字输入装置,因此智能设备不可能像智能手机那样方便的选择Wi-Fi网络,并通过输入密码来接入Wi-Fi网络。
现有的一种智能设备接入无线网络的方法是将智能设备设置为无线接入点(Access Point,AP)模式。智能设备在AP模式下,主动创建一个无线网络以供其它设备接入。然而,此种方式要求智能设备必须支持AP模式。因此,对智能设备的要求较高,增加了智能设备的软硬件的复杂度,从而增加了智能设备的成本。另外,用户操作智能设备组网复杂,首次配置步骤繁琐,用户尤其是老年用户体验不佳。
现有的另一种智能设备接入无线网络的方法是基于用户数据报协议(User Datagram Protocol,UDP)广播监听方式。首先智能设备进入初始化状态,开始收听附近的Wi-Fi数据包。然后用户选择无线路由器的Wi-Fi网络并输入密码后,智能手机发送UDP广播包,该UDP广播包包括网络名和密码。智能设备通过接收到的UDP包获取配置信息,从而切换网络到家里的Wi-Fi网络中,从而完成配置。
然而,此种方式下,UDP广播可能存在被网络截获破解的安全风险。虽然可以通过对广播数据加密来提高安全性,但是由于实现复杂会影响性能,因此一般产品都没有对广播数据包进行加密的功能。
现有的又一种智能设备接入无线网络的方法是基于Wi-Fi直连(Direct)技术模式。首先让智能设备和无线路由器均进入Wi-Fi Direct状态,则智能设备会自动连接上无线路由器。或者让智能设备和智能手机均进入Wi-Fi Direct状态,两者自动连接后智能手机将无线路由器的网络名和密码传递给智能设备,智能设备再连接上无线路由器。然而,目前绝大多数智能设备都不支持Wi-Fi Direct模式,适用范围较为狭窄。
综上,现有的智能设备若要具有接入Wi-Fi网络的功能,则对智能设备的软硬件要 求较高。例如,要求智能设备具有AP功能,或者要求智能设备具有对广播数据进行加密功能,或者要求智能设备具有Wi-Fi Direct功能等。然而,智能家居系统涉及多种智能家用设备,不仅包括电视、冰箱、洗衣机、空调等大型家电,还包括如智能插座、智能开关、智能台灯、智能热水壶、智能豆浆机等等小型家居设备。小型智能设备通常需要具有更低的软硬件功能,并且要求具有更低的成本,而现有技术无法实现。
发明内容
本申请实施例提供了一种无线网络的接入方法及终端终端,实现了智能设备以更低的代价,自动接入到家庭无线网络中。
第一方面,本申请实施例提供了一种无线网络的接入方法。首先第一终端设备根据第二终端设备的参数建立第一无线网络,所述第二终端设备的参数由所述第一终端设备通过扫描包含所述第二终端设备的参数的一维或二维码而获得。然后所述第一终端设备将第二无线网络的网络参数通过所述第一无线网络发送至所述第二终端设备,所述第二无线网络的网络参数用于对所述第二终端设备进行网络配置。其中,所述第一终端设备处于所述第二无线网络覆盖范围。
第二方面,本申请实施例提供了一种第一终端设备。该第一终端设备包括处理器、发射器。该处理器用于根据第二终端设备的参数建立第一无线网络,所述第二终端设备的参数由第一终端设备通过扫描包含所述第二终端设备的参数的一维或二维码而获得。该发射器用于将第二无线网络的网络参数通过所述第一无线网络发送至所述第二终端设备,所述第二无线网络的网络参数用于对所述第二终端设备进行网络配置。其中,所述第一终端设备处于所述第二无线网络覆盖范围。
本申请实施例通过扫描第二终端设备的参数,从而建立第一无线网络,并通过该第一无线网络将第一终端设备得到的第二无线网络的参数发送给第二终端设备,以便该第二终端设备连接至该第二无线网络中。因此,本申请实施例方便了第二终端设备接入到第二无线网络中,并且用户操作简单,提升了用户体验。此外,本申请实施例通过第一终端设备扫描第二终端设备上的一维码或二维码来获取预置的第一无线网络的参数,进一步减少用户了的操作,提高用户使用舒适性。
在一个示例中,所述第二终端设备的参数为所述第一无线网络的网络名和/或密码。
在一个示例中,所述第二终端设备的参数包括所述第二终端设备的媒体接入控制MAC地址,或者包括所述第二终端设备的序列号。
在一个示例中,所述第二无线网络的网络参数为所述第二无线网络的用户名和/或密码。
在一个示例中,所述第一终端设备将第二无线网络的网络参数通过所述第一无线网络发送至所述第二终端设备之前,包括:所述第一终端设备确定所述第二无线网络的网络参数。
在一个示例中,所述第二终端设备的参数为所第二终端设备的预置参数。
在一个示例中,所述第二终端设备为智能设备。
在一个示例中,所述第一无线网络为第一无线保真Wi-Fi网络,所述第二无线网络为第二无线保真Wi-Fi网络。
在第三方面,本申请实施例提供了一种无线网络的接入方法。首先第一终端设备根据第一无线网络的网络参数接入到第一无线网络中,且所述第一无线网络由第二终端设备建立。然后所述第一终端设备通过所述第一无线网络,接收来自所述第二终端设备的第二无线网络的网络参数。最后所述第一终端设备根据所述第二无线网络的网络参数自动接入到所述第二无线网络中。
在第四方面,本申请实施例提供了一种第一终端设备。该第一终端设备包括处理器、接收器。所述处理器用于根据第一无线网络的网络参数接入到第一无线网络中,且所述第一无线网络由第二终端设备建立。所述接收器用于通过所述第一无线网络,接收来自所述第二终端设备的第二无线网络的网络参数。所述处理器还用于根据所述第二无线网络的网络参数自动接入到所述第二无线网络中。
本申请实施例通过预置在第一终端设备的参数,接入到第一无线网络中,并通过该第一无线网络接收第二无线网络的参数,从而使该第一终端设备接入到该第二无线网络中。因此,本申请实施例的第一终端设备无需具备AP功能,就能够接入家庭无线网络中。因此,本申请实施例的第一终端设备大大节约了成本,并且用户操作简单,尤其适用于处于能力不强的小型智能设备。本申请实施例的应用到智能设备中,就能够解决智能设备由于没有专门的文字输入装置,不能方便的选择Wi-Fi无线网络,并通过输入密码来接入Wi-Fi无线网络的技术问题。
在一个示例中,在所述第一终端设备根据第一无线网络的网络参数接入到第一无线网络中之前,包括:所述第一终端设备定时或实时搜索所述第一终端设备周围的无线网络,且所述第一无线网络的网络参数存储于所述第一终端设备中。
在一个示例中,所述第一终端设备根据第一无线网络的网络参数接入到第一无线网络中,具体为:所述第一终端设备将所述第一终端设备搜索到的一个或多个无线网络的网络名与所述存储于所述第一终端设备的第一网络名进行匹配;在所述搜索到网络名与所述第一网络名相匹配的情况下,所述第一终端设备向所述搜索到的网络名对应的无线网络发送第一网络密码;基于所述第一网络密码的验证成功,所述第一终端设备接入到所述第一无线网络中。
在一个示例中,所述第一无线网络的网络参数包括所述第一无线网络的网络名和/或密码。
在一个示例中,所述第一无线网络的网络名和/或密码包括所述第一终端设备的媒体接入控制MAC地址,或者包括所述第一终端设备的序列号。
在一个示例中,所述第二无线网络的网络参数为所述第二无线网络的网络名和/或密码。
在一个示例中,所述第二终端设备的参数为所述第一无线网络的网络名和/或密码。
在一个示例中,所述第二终端设备的参数包括所述第二终端设备的媒体接入控制MAC地址,或者包括所述第二终端设备的序列号。
在一个示例中,所述第二无线网络的网络参数为所述第二无线网络的用户名和/或密码。
在一个示例中,所述处理器还用于,在所述发射器将第二无线网络的网络参数通过所 述第一无线网络发送至所述第二终端设备之前,确定所述第二无线网络的网络参数。
本申请实施例通过第一终端设备如智能手机扫描第二终端设备如智能设备的参数,使得第二终端设备根据其预置的参数能够接入到第一无线网络中,而后通过该第一无线网络,该第二终端设备接收到来自该第一终端设备的第二无线网的参数,从而使该第二终端设备能够接入到该第二无线网络中。由此可见,本申请实施例的第二终端设备如智能设备只需要满足最基本的Wi-Fi无线网络的接入功能,而无需具有AP功能。众所周知,很多智能设备是处理器计算能力、内存大小都极为有限的嵌入式设备,额外的功能显然会增加智能设备软硬件的复杂度和成本,本申请实施例消除了这些对智能设备的额外要求。
附图说明
图1为本申请实施例提供的一种智能设备接入无线网络的方法流程图;
图2为本申请实施例提供的智能手机扫描智能插座上的条形码获取第一无线网络的网络名和密码的应用场景示意图;
图3为本申请实施例提供的智能手机获取第二无线网络的网络名和密码的一个应用场景示意图;
图4为本申请实施例提供的智能手机获取第二无线网络的网络名和密码的另一个应用场景示意图;
图5为本申请实施例提供的另一种第一终端设备使第二终端设备接入无线网络的方法流程图;
图6为本申请实施例提供的又一种第一终端设备通过第二终端设备接入无线网络的方法流程图;
图7为本申请实施例提供的一种移动终端示意图;
图8为本申请实施例提供的一种智能设备示意图。
具体实施方式
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。
图1是本申请实施例提供的一种智能设备接入无线网络的方法流程图。
在步骤101,智能手机扫描智能设备如智能插座上的一维码(即条形码)或二维码,且该智能设备上的一维码或二维码包含该智能设备的参数。
在一个示例中,该智能设备的参数为该智能手机将要组建的第一无线网络的第一网络名和/或第一密码。也就是说,该智能手机扫描该智能设备上的条形码或二维码,用以得到该智能手机将要组建的第一无线网络的第一网络名和/或第一密码。
在一个示例中,该第一无线网络为Wi-Fi无线网络。
在一个示例中,该智能设备的参数包括该智能设备的媒体接入控制MAC地址,或者包括该智能设备的序列号。
图2是本申请实施例提供的智能手机扫描智能插座上的条形码获取第一无线网络的网络名和密码的应用场景示意图。
如图2所示,在该智能手机中预置软件模块,该预置软件模块为智能家居软件模块,用户点击该智能家居图标进入智能家居界面,在该智能家居界面中点击扫描一维码按钮。然后开始扫描该智能插座上的条形码,以获取该智能手机将要组建的该第一无线网络的第一网络名和第一密码。其中,该智能插座上的条形码由该智能插座的厂商设置,且该条形码中包含该智能插座的参数。该智能插座的参数是该第一无线网络的第一网络名和第一密码。该第一网络名可以取任意值,第一密码可以是该智能插座的MAC地址或者该智能插座的序列号。
在步骤102,智能手机对其扫描的条形码或二维码进行解析,从而得到第一无线网络的第一网络名和第一密码,即得到该智能手机将要组建的第一无线网络的第一网络名和第一密码。
具体地,该智能手机对其扫描的条形码或二维码进行解析,得到多个数字和/或字母,智能手机确定该解析到的多个数字和/或字母的一部分数字和/或字母为第一网络名,另一部分数字和/或字母为第一密码。
在步骤103,该智能手机以其为接入点AP,组建第一无线网络,且该第一无线网络的网络名为步骤102解析得到的第一网络名,该第一无线网络的密码为步骤102解析得到的第一密码。
也就是说,该智能手机组建的第一无线网络的网络名和密码由该智能手机通过解析该智能设备上的条形码或二维码而得到。
综上,本申请通过智能手机扫描智能设备上的条形码或二维码,并解析该条形码或二维码,从而得到该智能手机将要组件的第一无线网络的第一网络名和第一密码。该智能手机以其自身为接入点AP,创建第一无线网络,且该第一无线网络的网络名和密码分别是该智能手机扫描该智能设备得到的第一网络名、第一密码。
由此可见,智能手机根据智能设备提供的参数,组建第一无线网络。而后该智能设备根据其内部存储的该第一无线网络该第一网络名、第一密码,自动接入到该第一无线网络中。下面详述。
在步骤104,启动智能设备,例如,用户手动上电启动该智能设备。
本申请实施例提供的智能设备无需具备组建无线网络的功能,即不具备AP功能,而仅需要具有接入功能,即具备站点(Stat ion,STA)功能。显然,仅具有STA功能的智能设备相对于具有AP功能的智能设备而言,处理能力更低,进而对智能设备的软硬件要求更低,从而导致设备成本更低。也就是说,本申请实施例的智能设备能够以最低的成本,实现接入家庭无线网络的功能。因此,非常适用于小型智能设备,例如,智能插座、智能开关等。由此可见,本申请实施例的智能设备相较于具有AP功能的智能设备而言,无需更高的处理能力,软硬件成本更低,大大节约了成本。
本领域技术人员可以理解,上述步骤104与步骤101-步骤103没有先后顺序关系,也就是说,也可以先执行步骤104,再执行步骤101-步骤103。
在步骤105,该智能设备定时或实时搜索其周围的无线网络,并确定其是否能够接入第一无线网络。
具体地,该智能设备将其搜索到的多个无线网络的网络名与其预置的第一网络名进行匹配。当该智能设备搜索到的第一无线网络的网络名与该智能设备预置的第一网络名相 匹配时,则该智能设备用其预置的第一密码尝试连接第一无线网络,由该第一无线网络的AP即该智能手机,验证密码是否匹配。
需要说明的是,该智能设备预置的第一网络名、第一密码是指该智能设备中存储的第一网络名、第一密码。
在步骤106,该智能设备自动接入到该第一无线网络中。在该智能设备接入到该第一无线网络后,该智能设备作为该第一无线网络的STA,该智能手机作为该第一无线网络的AP,该智能设备与该智能手机之间能够通过该第一无线网络进行通信,且该第一无线网络为Wi-Fi无线网络。
在步骤107,智能手机获取无线路由器的第二无线网络的参数,包括该第二无线网络的第二网络名和第二密码。在一个示例中,该第二无线网络为Wi-Fi无线网络。
该无线路由器是具有无线覆盖功能的路由器,其为智能设备、智能手机等用户设备提供上网功能。本申请实施例的目的就是为仅具有STA功能的智能设备,提供接入该无线路由器所组建的第二无线网络中。在一个示例中,该无线路由器为家用无线路由器。
本申请实施例基于智能手机搜索其周边网络,获得该第二无线网络的第二网络名、第二密码,具体获取方式参见图3及其相关内容阐述。
在步骤108,智能手机将其获取到的第二无线网络的第二网络名和第二密码,通过第一无线网络发送给该智能设备。且该第二无线网络是由无线路由器组建的家庭Wi-Fi无线网络。
在第一无线网络中,该智能手机为AP,该智能设备为STA,该智能手机与该智能设备能够通过该第一无线网络相互通信。因此,在该智能手机获取到该第二无线网络的参数,包括该第二无线网络的第二网络名和第二密码之后,该智能手机就能够将该第二无线网络的第二网络名、第二密码通过该第一无线网络发送给该智能设备。
图3是本申请实施例提供的智能手机获取第二无线网络的网络名和密码的一个应用场景示意图。
图3中,智能手机预置软件模块——智能家居,用户点击“智能家居”图标进入智能家居界面后,继续点击“搜索无线网络”图标。智能手机开始搜索其周围的无线网络。在该智能手机搜索到无线网络之后,用户点击该无线网络的网络名——xx家,且该“xx家”无线网络是该家用无线路由器创建的网络。需要说明的是,智能手机点击该“xx家”无线网络并非要接入该无线网络,而仅仅是要获取该无线网络的网络名。然后,该用户输入该“xx家”无线网络的密码,最后点击“确认”按钮,从而将该智能手机搜索到的该无线网络的网络名以及该用户输入的密码,通过第一无线网络发送至智能插座。在该第一无线网络中,该智能手机是该第一无线网络的AP,该智能插座是该第一无线网络的STA。而此时,智能手机和智能插座并没有接入到第二无线网络中。
图4为本申请实施例提供的智能手机获取第二无线网络的网络名和密码的另一个应用场景示意图。
在智能手机扫描智能插座上的一维或二维码并创建第一无线网络之后,用户查询该智能手机中保存的一个或多个家用无线网络。例如,用户通过智能手机查询到“xx家”、“yy”等无线网络,如图4所示。图4中,用户点击其选中的“xx家”无线网络,该“xx家”无线网络即为第二无线网络,然后用户再点击“确认”按钮,从而将该智能手机中保 存的该“xx家”无线网络的网络名及其密码通过第一无线网络发送给智能插座,该“xx家”无线网络的网络名及其密码,即为第二无线网络的第二网络名和第二密码。
需要说明的是,本申请实施例的获取第二无线网络的网络名和密码的方式不限于图3、图4所示,图3、图4仅是一个例子。例如,用户还可以在点击其选中的“xx家”无线网络之后,直接将该智能手机中保存的该“xx家”无线网络的网络名及密码发送给智能插座。又如,智能手机仅保存有家用无线网络的网络名而不保存相应密码。此种情况下,用户点击其选中的“xx家”无线网络之后,用户需要再输入密码,然后智能手机将其保存的“xx家”无线网络的网络名以及用户输入的密码,发送至智能插座。
综上,智能手机获取第二无线网络的网络名和密码的方式有多种,在此不再一一赘述。
在步骤109,智能设备根据其接收到的第二无线网络的第二网络名和第二密码,自动接入到该第二无线网络中,从而实现了智能设备接入到家庭无线网络的目的。
具体地,智能设备接收到该第二无线网络的第二网络名和第二密码之后,该智能设备搜索其周围的无线网络,并在该智能设备接收到的第二网络名与其搜索到的第二无线网络的网络名相匹配之后,该智能设备进一步通过其接收到的第二密码,尝试连接该第二无线网络,验证密码是否匹配。当该第二无线网络的AP即无线路由器验证密码通过后,该第二无线网络对应的无线路由器允许该智能设备接入该第二无线网络中,因此该智能设备直接接入到该第二无线网络中。
由此可见,当该智能设备接收的第二密码生效后,该智能设备就直接接入到了家用第二无线网络中,从而实现了智能设备自动配置并连接到家用第二无线网络中的目的。而现有的任何智能家居设备,包括智能空调等大型家电智能设备以及智能插座等小型智能家居设备,都不能实现直接接入家用无线网络中,而是需要用户手动配置,操作繁琐,用户体验不佳。而且,现有的智能设备如果要连接到家用无线网络中,往往需要具备AP功能,增加了智能设备的成本,不利于小型智能家居设备的推广以及普及。而本申请实施例提供的智能设备不仅能够直接自动接入家用无线网络中,而且由于本申请的智能设备对处理能力需求低,因此节约了成本,尤其适用于小型智能家居设备。
图5为本申请实施例提供的另一种第一终端设备使第二终端设备接入无线网络的方法流程图。
在步骤510,第一终端设备根据第二终端设备的参数建立第一无线网络,所述第二终端设备的参数由所述第一终端设备通过扫描包含所述第二终端设备的参数的一维或二维码而获得。
在步骤520,所述第一终端设备将第二无线网络的网络参数通过所述第一无线网络发送至所述第二终端设备,所述第二无线网络的网络参数用于对所述第二终端设备进行网络配置。
其中,所述第一终端设备处于所述第二无线网络覆盖范围。
图6为本申请实施例提供的又一种第一终端设备通过第二终端设备接入无线网络的方法流程图。
在步骤610,第一终端设备根据第一无线网络的网络参数接入到第一无线网络中,且所述第一无线网络由第二终端设备建立。
在步骤620,所述第一终端设备通过所述第一无线网络,接收来自所述第二终端设备的第二无线网络的网络参数。
在步骤630,所述第一终端设备根据所述第二无线网络的网络参数自动接入到所述第二无线网络中。
图7为本申请实施例提供的一种移动终端示意图。该移动终端700包括处理器710、发射器720。
本领域技术人员可以理解,图7示出的移动终端结构并不构成对移动终端的限定,实际上,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
前文描述了本申请实施例的一种无线网络的接入方法。本领域的技术人员意识到,所述方法实施例以及各步骤过程,能够以硬件方式来实现。本领域技术人员根据上述方法实施例,能够构建相应模块及变形,这些模块以及变形应归于本发明保护范围,在此不再赘述。
图7中,处理器710用于根据第二终端设备的参数建立第一无线网络,所述第二终端设备的参数由第一终端设备通过扫描包含所述第二终端设备的参数的一维或二维码而获得。
发射器720用于将第二无线网络的网络参数通过所述第一无线网络发送至所述第二终端设备,所述第二无线网络的网络参数用于对所述第二终端设备进行网络配置,且所述第一终端设备处于所述第二无线网络覆盖范围。
在一个示例中,所述第二终端设备的参数为所述第一无线网络的网络名和/或密码。
在一个示例中,所述第二终端设备的参数包括所述第二终端设备的媒体接入控制MAC地址,或者包括所述第二终端设备的序列号。
在一个示例中,所述第二无线网络的网络参数为所述第二无线网络的用户名和/或密码。
在一个示例中,所述处理器还用于,在所述发射器将第二无线网络的网络参数通过所述第一无线网络发送至所述第二终端设备之前,确定所述第二无线网络的网络参数。
图8为本申请实施例提供的一种智能设备示意图。该智能设备800包括处理器810和接收器820、发射器830。
本领域技术人员可以理解,图8示出的智能设备结构并不构成对智能设备的限定,实际上,智能设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
图8中,处理器810用于根据第一无线网络的网络参数接入到第一无线网络中,且所述第一无线网络由第二终端设备建立。
接收器820用于通过所述第一无线网络,接收来自所述第二终端设备的第二无线网络的网络参数。
处理器810还用于根据所述第二无线网络的网络参数自动接入到所述第二无线网络中。
在一个示例中,所述处理器810还用于,在根据第一无线网络的网络参数接入到第一无线网络中之前,定时或实时搜索所述第一终端设备周围的无线网络,且所述第一无线网 络的网络参数存储于所述第一终端设备中。
在一个示例中,所述处理器810还用于,将所述第一终端设备搜索到的一个或多个无线网络的网络名与所述存储于所述第一终端设备的第一网络名进行匹配。所述发射器830用于,在所述搜索到网络名与所述第一网络名相匹配的情况下,向所述搜索到的网络名对应的无线网络发送第一网络密码。所述处理器810还用于,基于所述第一网络密码的验证成功,接入到所述第一无线网络中。
在一个示例中,所述第一无线网络的网络参数包括所述第一无线网络的网络名和/或密码。
在一个示例中,所述第一无线网络的网络名和/或密码包括所述第一终端设备的媒体接入控制MAC地址,或者包括所述第一终端设备的序列号。
在一个示例中,所述第二无线网络的网络参数为所述第二无线网络的网络名和/或密码。
专业人员应该还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令处理器完成,所述的程序可以存储于计算机可读存储介质中,所述存储介质是非短暂性(英文:non-trans itory)介质,例如随机存取存储器,只读存储器,快闪存储器,硬盘,固态硬盘,磁带(英文:magnet ic tape),软盘(英文:floppy disk),光盘(英文:opt ical disc)及其任意组合。
以上所述,仅为本申请较佳的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应该以权利要求的保护范围为准。

Claims (22)

  1. 一种无线网络的接入方法,其特征在于,所述方法包括:
    第一终端设备根据第二终端设备的参数建立第一无线网络,所述第二终端设备的参数由所述第一终端设备通过扫描包含所述第二终端设备的参数的一维或二维码而获得;
    所述第一终端设备将第二无线网络的网络参数通过所述第一无线网络发送至所述第二终端设备,所述第二无线网络的网络参数用于对所述第二终端设备进行网络配置;
    其中,所述第一终端设备处于所述第二无线网络覆盖范围。
  2. 如权利要求1所述的方法,其特征在于,所述第二终端设备的参数为所述第一无线网络的网络名和/或密码。
  3. 如权利要求1或2所述的方法,其特征在于,所述第二终端设备的参数包括所述第二终端设备的媒体接入控制MAC地址,或者包括所述第二终端设备的序列号。
  4. 如权利要求1至3任意一项所述的方法,其特征在于,所述第二无线网络的网络参数为所述第二无线网络的用户名和/或密码。
  5. 如权利要求1至4任意一项所述的方法,其特征在于,所述第一终端设备将第二无线网络的网络参数通过所述第一无线网络发送至所述第二终端设备之前,包括:
    所述第一终端设备确定所述第二无线网络的网络参数。
  6. 一种无线网络的接入方法,其特征在于,所述方法包括:
    第一终端设备根据第一无线网络的网络参数接入到第一无线网络中,且所述第一无线网络由第二终端设备建立;
    所述第一终端设备通过所述第一无线网络,接收来自所述第二终端设备的第二无线网络的网络参数;
    所述第一终端设备根据所述第二无线网络的网络参数自动接入到所述第二无线网络中。
  7. 如权利要求6所述的方法,其特征在于,在所述第一终端设备根据第一无线网络的网络参数接入到第一无线网络中之前,包括:
    所述第一终端设备定时或实时搜索所述第一终端设备周围的无线网络,且所述第一无线网络的网络参数存储于所述第一终端设备中。
  8. 如权利要求7所述的方法,其特征在于,所述第一终端设备根据第一无线网络的网络参数接入到第一无线网络中,具体为:
    所述第一终端设备将所述第一终端设备搜索到的一个或多个无线网络的网络名与所述存储于所述第一终端设备的第一网络名进行匹配;
    在所述搜索到网络名与所述第一网络名相匹配的情况下,所述第一终端设备向所述搜索到的网络名对应的无线网络发送第一网络密码;
    基于所述第一网络密码的验证成功,所述第一终端设备接入到所述第一无线网络中。
  9. 如权利要求6至8任意一项所述的方法,其特征在于,所述第一无线网络的网络参数包括所述第一无线网络的网络名和/或密码。
  10. 如权利要求9所述的方法,其特征在于,所述第一无线网络的网络名和/或密码包括所述第一终端设备的媒体接入控制MAC地址,或者包括所述第一终端设备的序列号。
  11. 如权利要求6至10任意一项所述的方法,其特征在于,所述第二无线网络的网络参数为所述第二无线网络的网络名和/或密码。
  12. 一种第一终端设备,其特征在于,包括:
    处理器,用于根据第二终端设备的参数建立第一无线网络,所述第二终端设备的参数由第一终端设备通过扫描包含所述第二终端设备的参数的一维或二维码而获得;
    发射器,用于将第二无线网络的网络参数通过所述第一无线网络发送至所述第二终端设备,所述第二无线网络的网络参数用于对所述第二终端设备进行网络配置;
    其中,所述第一终端设备处于所述第二无线网络覆盖范围。
  13. 如权利要求12所述的第一终端设备,其特征在于,所述第二终端设备的参数为所述第一无线网络的网络名和/或密码。
  14. 如权利要求12或12所述的第一终端设备,其特征在于,所述第二终端设备的参数包括所述第二终端设备的媒体接入控制MAC地址,或者包括所述第二终端设备的序列号。
  15. 如权利要求12至14任意一项所述的第一终端设备,其特征在于,所述第二无线网络的网络参数为所述第二无线网络的用户名和/或密码。
  16. 如权利要求12至15任意一项所述的第一终端设备,其特征在于,所述处理器还用于,在所述发射器将第二无线网络的网络参数通过所述第一无线网络发送至所述第二终端设备之前,确定所述第二无线网络的网络参数。
  17. 一种第一终端设备,其特征在于,包括处理器、接收器;
    所述处理器用于根据第一无线网络的网络参数接入到第一无线网络中,且所述第一无线网络由第二终端设备建立;
    所述接收器用于通过所述第一无线网络,接收来自所述第二终端设备的第二无线网络的网络参数;
    所述处理器还用于根据所述第二无线网络的网络参数自动接入到所述第二无线网络中。
  18. 如权利要求17所述的第一终端设备,其特征在于,所述处理器还用于,在根据第一无线网络的网络参数接入到第一无线网络中之前,定时或实时搜索所述第一终端设备周围的无线网络,且所述第一无线网络的网络参数存储于所述第一终端设备中。
  19. 如权利要求18所述的第一终端设备,其特征在于,所述第一终端设备还包括发射器;
    所述处理器还用于,将所述第一终端设备搜索到的一个或多个无线网络的网络名与所述存储于所述第一终端设备的第一网络名进行匹配;
    所示发射器用于,在所述搜索到网络名与所述第一网络名相匹配的情况下,向所述搜索到的网络名对应的无线网络发送第一网络密码;
    所述处理器还用于,基于所述第一网络密码的验证成功,接入到所述第一无线网络中。
  20. 如权利要求17至19任意一项所述的第一终端设备,其特征在于,所述第一无线网络的网络参数包括所述第一无线网络的网络名和/或密码。
  21. 如权利要求20所述的第一终端设备,其特征在于,所述第一无线网络的网络名和/或密码包括所述第一终端设备的媒体接入控制MAC地址,或者包括所述第一终端设备的序列号。
  22. 如权利要求17至21任意一项所述的第一终端设备,其特征在于,所述第二无线网络的网络参数为所述第二无线网络的网络名和/或密码。
PCT/CN2017/079639 2016-11-08 2017-04-07 一种无线网络的接入方法及终端设备 WO2018086304A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201780009055.0A CN108605375A (zh) 2016-11-08 2017-04-07 一种无线网络的接入方法及终端设备

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610980759 2016-11-08
CN201610980759.X 2016-11-08

Publications (1)

Publication Number Publication Date
WO2018086304A1 true WO2018086304A1 (zh) 2018-05-17

Family

ID=62110293

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/079639 WO2018086304A1 (zh) 2016-11-08 2017-04-07 一种无线网络的接入方法及终端设备

Country Status (2)

Country Link
CN (1) CN108605375A (zh)
WO (1) WO2018086304A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111194067A (zh) * 2018-11-14 2020-05-22 中兴通讯股份有限公司 网络接入方法、装置、相关设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103716911A (zh) * 2014-01-02 2014-04-09 福建星网锐捷通讯股份有限公司 一种配置无线终端的方法、装置和系统
CN104883719A (zh) * 2014-02-28 2015-09-02 中兴通讯股份有限公司 无输入设备接入无线局域网的方法、装置和系统
CN105591812A (zh) * 2015-10-29 2016-05-18 杭州华三通信技术有限公司 一种智能家居配置方法及装置
CN105722087A (zh) * 2016-04-06 2016-06-29 微景天下(北京)科技有限公司 无线网络接入系统和无线网络接入方法
CN105898830A (zh) * 2016-06-16 2016-08-24 美的集团股份有限公司 一种智能家电接入无线网络的方法和装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103108413B (zh) * 2011-11-09 2016-08-17 中国电信股份有限公司 物联网终端设备及其业务处理方法
US9143402B2 (en) * 2012-02-24 2015-09-22 Qualcomm Incorporated Sensor based configuration and control of network devices
CN103428799B (zh) * 2012-05-16 2016-04-13 海尔集团公司 Wifi网络模块配置方法
US9451464B2 (en) * 2013-09-11 2016-09-20 Tencent Technology (Shenzhen) Company Limited Method, apparatus and system for network access
CN105450646A (zh) * 2015-12-02 2016-03-30 河南新飞电器有限公司 网络冰箱的局域网连接实现方法及用户信息安全认证方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103716911A (zh) * 2014-01-02 2014-04-09 福建星网锐捷通讯股份有限公司 一种配置无线终端的方法、装置和系统
CN104883719A (zh) * 2014-02-28 2015-09-02 中兴通讯股份有限公司 无输入设备接入无线局域网的方法、装置和系统
CN105591812A (zh) * 2015-10-29 2016-05-18 杭州华三通信技术有限公司 一种智能家居配置方法及装置
CN105722087A (zh) * 2016-04-06 2016-06-29 微景天下(北京)科技有限公司 无线网络接入系统和无线网络接入方法
CN105898830A (zh) * 2016-06-16 2016-08-24 美的集团股份有限公司 一种智能家电接入无线网络的方法和装置

Also Published As

Publication number Publication date
CN108605375A (zh) 2018-09-28

Similar Documents

Publication Publication Date Title
US11647548B2 (en) Network access method, device, and system
WO2018127200A1 (zh) 智能设备入网方法、移动终端、云服务器、设备及系统
US20180368058A1 (en) Method for controlling device access, and related device and system
US11063934B2 (en) Information pushing method, server, sharer client and third-party client
WO2017198161A1 (zh) 网络连接方法、装置、存储介质及终端
US20160127381A1 (en) Network connection method, hotspot terminal and management terminal
JP6254747B2 (ja) 情報提供方法、装置、プログラム及び記録媒体
CN103067055A (zh) 一种蓝牙连接方法及移动终端
US20160132029A1 (en) Method for configuring and controlling smart home products
WO2018049823A1 (zh) 一种自动配网方法、装置及设备、中继器
US10863559B2 (en) Method and apparatus for communicating in a wireless communication network
US9386613B2 (en) Wireless network system and connecting method thereof
US11246174B2 (en) Methods and systems for connecting a wireless device to a wireless network
CN105323824A (zh) 辅助wifi设备入网的电子设备、wifi设备及方法
EP2908477A1 (en) Remote access method and device
CN103607713A (zh) 网络接入方法、装置、设备和系统
CN106792694B (zh) 一种接入认证方法,及接入设备
WO2021043095A1 (zh) 密钥生成以及终端配网方法、装置、设备
CN105392182B (zh) Wifi设备的网络配置信息的设置方法及系统
CN105101203A (zh) 无线局域网络信息的处理方法及装置
WO2018086304A1 (zh) 一种无线网络的接入方法及终端设备
CN113301563A (zh) 网络配置方法、装置、设备和存储介质
CN107708183B (zh) 解码算法确定方法、装置、终端及存储介质
WO2019010793A1 (zh) 物联网接入点接收数据的分时段加密方法及装置
WO2022257876A1 (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: 17868871

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17868871

Country of ref document: EP

Kind code of ref document: A1