WO2018049823A1 - 一种自动配网方法、装置及设备、中继器 - Google Patents

一种自动配网方法、装置及设备、中继器 Download PDF

Info

Publication number
WO2018049823A1
WO2018049823A1 PCT/CN2017/082761 CN2017082761W WO2018049823A1 WO 2018049823 A1 WO2018049823 A1 WO 2018049823A1 CN 2017082761 W CN2017082761 W CN 2017082761W WO 2018049823 A1 WO2018049823 A1 WO 2018049823A1
Authority
WO
WIPO (PCT)
Prior art keywords
repeater
wifi module
network
meets
distribution
Prior art date
Application number
PCT/CN2017/082761
Other languages
English (en)
French (fr)
Inventor
彭磊
宋德超
曾春亮
徐洪伟
孙荣孟
李远扬
张立召
Original Assignee
珠海格力电器股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 珠海格力电器股份有限公司 filed Critical 珠海格力电器股份有限公司
Publication of WO2018049823A1 publication Critical patent/WO2018049823A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service
    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/04Terminal devices adapted for relaying to or from another terminal or user

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to an automatic distribution network method, device, device, and repeater.
  • the mainstream smart home products use the Wifi module to connect to the router, generally need to complete the following steps: 1) set the Wifi module in the device to the AP mode (ie, the wireless access point mode, allowing other devices to access the Wifi module); 2) The mobile phone scanning device is connected to the device set to the AP mode; 3) the user operates the mobile phone, and the mobile phone notifies the device of the name and password of the router to be connected; 4) after the device knows the router name and password, the router is connected according to the information.
  • the AP mode ie, the wireless access point mode, allowing other devices to access the Wifi module
  • the mobile phone scanning device is connected to the device set to the AP mode
  • the user operates the mobile phone, and the mobile phone notifies the device of the name and password of the router to be connected
  • the router is connected according to the information.
  • an automatic distribution network method, device, device, and repeater are provided to solve the problem of cumbersome equipment distribution network in the prior art.
  • the present invention provides an automatic network distribution method, wherein the method includes: the Wifi module queries whether there is a repeater that meets the network distribution condition; after querying the repeater that meets the network distribution condition, The Wifi module automatically connects the repeater.
  • the Wifi module queries whether the repeater meets the network distribution condition, and includes: the Wifi module enters a workstation mode, and searches for a repeater by means of wireless broadcast; the Wifi module and the found location The repeater establishes a handshake process; the Wifi mode The block determines whether the repeater meets a distribution condition based on the handshake process.
  • the Wifi module determines, according to the handshake process, whether the repeater meets the network distribution condition, and the method includes: the Wifi module parses out a mac address of the repeater according to the handshake packet; and the Wifi module is configured according to the The mac address determines whether the repeater meets the distribution network condition.
  • the Wifi module determines, according to the mac address, whether the repeater meets the network distribution condition, the method includes: the Wifi module determines whether the mac address is consistent with a configurable network mac address; The network mac address is stored in the Wifi module; if so, it is determined that the repeater meets the distribution network condition.
  • the Wifi module determines whether the repeater meets the network distribution condition based on the handshake process, and the Wifi module determines whether the repeater meets a network distribution condition according to the handshake information or the broadcast information.
  • the Wifi module automatically connects to the repeater, including: the Wifi module automatically connects the repeater according to a PIN code by a Wifi protection setting WPS mode; wherein the PIN code is stored in the Wifi In the module.
  • the method further includes: if the number of repeaters that meet the network distribution condition is queried, the Wifi module automatically connects to the relay with the strongest signal.
  • the repeater is a router or a gateway.
  • the invention also provides an automatic distribution network method, wherein the method comprises: the repeater determines whether the Wifi module meets the distribution network condition; if yes, the repeater creates a new Wifi hotspot for the Wifi module to connect.
  • the repeater determines whether the Wifi module meets the network distribution condition, and the method includes: the repeater acquires a media access control mac address of the Wifi module by using a handshake process; and the repeater determines the mac Whether the address is consistent with the mac address of the repeater; if so, it is determined that the Wifi module meets the distribution network condition.
  • the Wifi hotspot adopts a preset name and a preset agreement password.
  • the preset name is a mac address of the repeater
  • the preset appointment password is a password that is generated by the Wifi module through an internal encryption and decryption method, which is generated according to a preset encryption manner.
  • the repeater is a router or a gateway.
  • the invention also provides an automatic network distribution device, which is applied to a Wifi module, wherein
  • the device includes: a query module, configured to query whether there is a repeater that meets the network distribution condition; and a connection module, configured to automatically connect the repeater after querying the repeater that meets the network distribution condition.
  • the query module includes: a broadcast unit, configured to enter a workstation mode, and a repeater is searched by means of wireless broadcasting; a handshake unit is configured to establish a handshake process with the founder, and the determining unit uses Determining whether the repeater meets a distribution network condition based on the handshake process.
  • the determining unit includes: an address resolution subunit, configured to parse the mac address of the repeater according to the handshake packet; and a determining subunit, configured to determine whether the mac address is consistent with the mac address of the network that can be configured;
  • the configurable network mac address is stored in the Wifi module; if yes, it is determined that the repeater meets a distribution network condition.
  • the determining unit includes: an information determining subunit, configured to determine, according to the handshake information or the broadcast information, whether the repeater meets a network distribution condition.
  • connection module is further configured to automatically connect the repeater by a Wifi protection setting WPS mode based on a PIN code; wherein the PIN code is stored in the Wifi module.
  • the present invention also provides an apparatus wherein the apparatus includes the automatic network distribution apparatus described above.
  • the invention also provides an automatic network distribution device, which is applied to a repeater, wherein the device comprises: a determining module, configured to determine whether the Wifi module meets a network distribution condition; and a hotspot new module, configured to match the Wifi module In the case of distribution conditions, a new Wifi hotspot is created for the Wifi module to connect.
  • the determining module includes: an obtaining unit, configured to acquire a mac address of the Wifi module by using a handshake process; and a determining unit, configured to determine whether the mac address is consistent with a mac address of the repeater; And determining that the Wifi module meets the distribution network condition.
  • the Wifi hotspot adopts a preset name and a preset agreement password.
  • the present invention also provides a repeater, wherein the repeater comprises the above-described automatic network distribution device.
  • the invention also provides an automatic network distribution method, wherein the method comprises: the Wifi module queries whether there is a repeater signal; in the case of querying the repeater signal, the Wifi module queries whether there is a matching Network condition repeater; in the query to have a matching network In the case of a conditional repeater, it is determined whether there is only one repeater that meets the network distribution condition; in the case that the repeater that meets the network condition has only one, the Wifi module automatically connects to the middle Relay.
  • the Wifi module automatically connects to the repeater if there is only one repeater that meets the network condition, and the Wifi module automatically connects to the WLAN module based on the PIN code by using a WPS method. a repeater; wherein the PIN code is stored in the Wifi module.
  • the Wifi module is connected to the repeater with the strongest connection signal based on the PIN code.
  • the Wifi module queries whether there is a repeater that meets the network distribution condition, and the method includes: the Wifi module parses out the mac of the repeater according to the handshake packet. The Wifi module determines whether the mac address of the repeater matches the mac address of the configurable network; if the mac address of the repeater matches the mac address of the configurable network, The Wifi module determines that the repeater meets the distribution network condition.
  • the repeater is a router or a gateway.
  • the present invention also provides a storage medium including a stored program, wherein the program executes the automatic distribution method.
  • the present invention also provides a processor for running a program, wherein the program is executed to execute the automatic network distribution method.
  • the Wifi module can be automatically connected to the repeater without manually setting the Wifi distribution mode, which solves the cumbersome problem of the equipment distribution network in the prior art, simplifies the Wifi distribution network process, and uses the Wifi with the Wifi. Users of the module's home appliances provide convenience and enhance the user experience.
  • FIG. 1 is a flowchart of an automatic network distribution method of a Wifi module according to an embodiment of the present invention
  • FIG. 2 is a flow chart of a Wifi module distribution network according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of an automatic network distribution method of a repeater according to an embodiment of the present invention.
  • FIG. 4 is a flow chart of a repeater distribution network according to an embodiment of the present invention.
  • FIG. 5 is a structural block diagram of an automatic network distribution device applied to a Wifi module according to an embodiment of the present invention
  • FIG. 6 is a block diagram showing the structure of a device according to an embodiment of the present invention.
  • FIG. 7 is a structural block diagram of an automatic network distribution device applied to a repeater according to an embodiment of the present invention.
  • FIG. 8 is a block diagram showing the structure of a repeater according to an embodiment of the present invention.
  • step S101 - step S102 is a flowchart of an automatic network distribution method of a Wifi module according to an embodiment of the present invention. As shown in FIG. 1, the method includes the following steps (step S101 - step S102):
  • Step S101 the Wifi module queries whether there is a repeater that meets the network distribution condition
  • Step S102 after querying the repeater that meets the network distribution condition, the Wifi module automatically connects to the repeater.
  • the Wifi module can be automatically connected to the repeater without manually setting the Wifi distribution network mode, which solves the cumbersome problem of the network distribution process in the prior art, and simplifies the Wifi distribution network process, and uses the Wifi module.
  • Users of home appliances provide convenience and enhance the user experience.
  • step S101 the Wifi module queries whether there is a repeater that meets the network distribution condition, and can be implemented by the following preferred implementation manner: the Wifi module enters the workstation mode, and the repeater is searched by means of wireless broadcast; the Wifi module and the found 404 The relay establishes a handshake process; the Wifi module determines whether the repeater meets the distribution network condition based on the handshake process.
  • the present embodiment provides two preferred implementation manners:
  • the Wifi module parses out the mac (Media Access Control) address of the repeater according to the handshake packet; the Wifi module determines whether the repeater meets the network distribution condition according to the mac address. Specifically, the Wifi module determines whether the mac address is consistent with the mac address of the configurable network; wherein, the configurable network mac address is stored in the Wifi module; if yes, the judgment The repeater meets the network conditions. Based on this, the appropriate repeater can be accurately matched to provide a basis for automatic distribution network.
  • the mac Media Access Control
  • the Wifi module determines whether the repeater meets the distribution network condition based on the handshake information or the broadcast information.
  • the embodiment is not limited to the foregoing two implementation manners, and the automatic distribution network of the Wifi module can be implemented by finding a repeater that meets the distribution network condition around the Wifi module.
  • the Wifi module automatically connects to the repeater, which can be implemented by the following preferred embodiment: the Wifi module is based on a PIN code (Personal Identification Number), and the WPS (Wi-Fi Protected Setup) mode is adopted.
  • the repeater is automatically connected; wherein the PIN code is stored in the Wifi module. Based on this, the automatic distribution network of the Wifi module can be implemented quickly and safely.
  • the Wifi module can select the repeater with the strongest connection signal to ensure the networking effect.
  • the repeater can be a router or a gateway.
  • step S201 is a flow chart of a Wifi module distribution network according to an embodiment of the present invention. As shown in FIG. 2, the method includes the following steps (step S201 - step S205):
  • step S201 the Wifi module is an STA (Workstation Mode), and the router (or gateway) signal is searched by wireless broadcasting.
  • step S202 the Wifi module determines whether there is a router in the surrounding environment that meets the network distribution condition; if yes, step S203 is performed, and if no, returns to step S201.
  • the Wifi module stores the WPS information of the known router at the factory, such as the mac address of the router and the PIN code of the WPS. After the user purchases the router that matches the mac address, the Wifi module resolves to the MAC address of the router through the handshake packet with the router, and performs a MAC address that is known to the Wifi module than the MAC address, and if so, the router Meet the distribution network conditions.
  • step S203 it is determined whether there is only one router that meets the network distribution condition; if yes, step S204 is performed, and if no, step S205 is performed.
  • Step S204 connecting the router with a PIN code through the WPS method to complete the simple distribution network.
  • the PIN code is stored in the Wifi module.
  • Step S205 connecting the router with the strongest signal by the PIN code through the WPS method. Into the simple distribution network.
  • the router or gateway that can be quickly deployed can be a router or gateway produced by any company or manufacturer, and the router or gateway can be recognized by the Wifi module as a fast distribution router or gateway.
  • FIG. 3 is a flowchart of an automatic network distribution method of a repeater according to an embodiment of the present invention. As shown in FIG. 3, the method includes the following steps (step S301-step S303):
  • Step S301 the repeater determines whether the Wifi module meets the network distribution condition
  • Step S302 if yes, the repeater creates a new Wifi hotspot for the Wifi module to connect.
  • Step S303 if no, the process ends.
  • the Wifi module can be automatically connected to the repeater without manually setting the Wifi distribution network mode, which solves the cumbersome problem of the network distribution process in the prior art, and simplifies the Wifi distribution network process, and uses the Wifi module.
  • Users of home appliances provide convenience and enhance the user experience.
  • the repeater determines whether the Wifi module meets the distribution network condition, and may be implemented by the following preferred implementation manner: the repeater obtains the mac address of the Wifi module through the handshake process; the repeater determines the mac address and the mac of the repeater Whether the addresses are consistent; if yes, it is determined that the Wifi module meets the network distribution conditions. Based on this, the repeater and the Wifi module are accurately matched to provide a basis for subsequent distribution networks.
  • the foregoing Wifi hotspot may adopt a preset name and a preset agreement password.
  • the preset name is the mac address of the repeater.
  • the preset agreement password is a password that is generated according to the preset encryption method and that can be known by the Wifi module through the internal encryption and decryption method.
  • the repeater in this embodiment may be a router or a gateway.
  • step S401 - step S404 is a flow chart of a repeater distribution network according to an embodiment of the present invention. As shown in FIG. 4, the method includes the following steps (step S401 - step S404):
  • Step S401 the Wifi module is an STA (Workstation Mode), and the method is wireless broadcast. Looking for a router or gateway signal, the router knows the mac address of the Wifi module during the Wifi handshake.
  • step S402 the router determines whether the mac address of the Wifi module meets the network distribution condition. If yes, go to step S403, if no, go back to step S401.
  • step S403 the router creates a Wifi hotspot with the name of the router mac as the name and the password as the password.
  • the agreed password is a password that the router and the Wifi module agree on in advance.
  • Step S404 the Wifi module searches for a Wifi hotspot and joins the Wifi hotspot.
  • the WPS distribution network introduced in the second embodiment has security risks.
  • this embodiment provides a more recommended simple network distribution method: the Wifi module knows some router information when it leaves the factory, for example, the same company produces The mac address of the router. After the user purchases the router, the Wifi module finds that the router is a router that can be equipped with the network through the mac address information in the Wifi handshake process, and the router knows that the Wifi module is a Wifi module that can be equipped with the network through the same method. After that, the router creates a new Wifi hotspot with the name of the router mac as the name, and the encryption method and the encrypted password are agreed in advance.
  • the Wifi module knows the password of the Wifi hotspot hidden by the router through the internal encryption and decryption method, and connects to the router through this password, thereby realizing simple distribution network.
  • the user can connect to the router through the mobile app to discover the device that has been automatically connected.
  • this embodiment provides an automatic network distribution device, as shown in FIG. 5, which is a structural block diagram of an automatic network distribution device applied to a Wifi module, and the device includes:
  • the query module 10 is configured to query whether there is a repeater that meets the network distribution condition
  • connection module 12 is connected to the query module 10 for automatically connecting the repeater after querying the repeater that meets the network condition.
  • the Wifi module can be automatically connected to the repeater without manually setting the Wifi distribution network mode, which solves the cumbersome problem of the network distribution process in the prior art, and simplifies the Wifi distribution network process, and uses the Wifi module.
  • Users of home appliances provide convenience and High user experience.
  • the query module 10 and the connection module 12 may be run in a computer terminal as part of the device, and the functions implemented by the module may be performed by a processor in the computer terminal, and the computer terminal may also be a smart phone (such as Android phones, iOS phones, etc.), tablets, applause computers and mobile Internet devices (Mobile Internet Devices, MID), PAD and other terminal devices.
  • the query module 10 may include: a broadcast unit for entering a workstation mode, searching for a repeater by means of wireless broadcasting; a handshake unit for establishing a handshake process with the found repeater; and a determining unit for Determine whether the repeater meets the network distribution condition based on the handshake process. Based on this, the Wifi module can accurately match the appropriate repeater to provide the basis for automatic distribution network.
  • the above-mentioned broadcast unit, handshake unit and determination unit may be operated in a computer terminal as part of the device, and the functions implemented by the above module may be performed by a processor in the computer terminal, and the computer terminal may also be a smart phone. (such as Android phones, iOS phones, etc.), tablets, applause computers and mobile Internet devices (Mobile Internet Devices, MID), PAD and other terminal devices.
  • the determining unit may include: an address resolution sub-unit, configured to parse the mac address of the repeater according to the handshake packet; and determine a sub-unit, configured to determine whether the mac address is consistent with the mac address of the network that can be configured; wherein, the mac address can be configured Stored in the Wifi module; if yes, it is determined that the repeater meets the distribution conditions. Therefore, the repeater that meets the distribution network condition is accurately queried according to the mac address.
  • the address resolution subunit and the judgment subunit may be run in a computer terminal as part of the device, and the functions implemented by the above module may be performed by a processor in the computer terminal, and the computer terminal may also be a smart phone. (such as Android phones, iOS phones, etc.), tablets, applause computers and mobile Internet devices (Mobile Internet Devices, MID), PAD and other terminal devices.
  • the determining unit may include: an information determining subunit, configured to determine, according to the handshake information or the broadcast information, whether the repeater meets the network distribution condition. That is, the embodiment is not limited to querying the repeater that meets the network condition according to the mac address, and can also query by other methods to provide multiple query modes to improve the query efficiency and scope.
  • the above information judging subunit can be used as part of the device.
  • the functions implemented by the above modules can be performed by a processor in the computer terminal, and the computer terminal can also be a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, an applause computer, and a mobile internet device (Mobile). Terminal devices such as Internet Devices, MID) and PAD.
  • connection module 12 is further configured to automatically connect the repeater through the Wifi protection setting WPS mode based on the PIN code; wherein the PIN code is stored in the Wifi module. Based on this, the automatic distribution network of the Wifi module can be implemented quickly and safely.
  • the Wifi module can select the repeater with the strongest connection signal to ensure the networking effect.
  • the repeater can be a router or a gateway.
  • the various functional units provided by the embodiments of the present application may be operated in a mobile terminal, a computer terminal, or the like, or may be stored as part of a storage medium.
  • embodiments of the present invention may provide a computer terminal, which may be any computer terminal device in a group of computer terminals.
  • a computer terminal may also be replaced with a terminal device such as a mobile terminal.
  • the computer terminal may be located in at least one network device of the plurality of network devices of the computer network.
  • the computer terminal may execute the program code of the following steps in the automatic network distribution method: the wireless Wifi module queries whether there is a repeater that meets the network distribution condition; after querying the repeater that meets the network distribution condition, The Wifi module automatically connects to the repeater.
  • the computer terminal can include: one or more processors, memory, and transmission means.
  • the memory can be used to store software programs and modules, such as program instructions/modules corresponding to the automatic network distribution method in the embodiment of the present invention, and the processor executes various functional applications by running software programs and modules stored in the memory. Data processing, that is, the above automatic network distribution method is implemented.
  • the memory may include a high speed random access memory, and may also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
  • the memory can further include memory remotely located relative to the processor, which can be connected to the terminal over a network. Examples of the above networks include, but are not limited to, the Internet, intranets, local area networks, mobile communications Net and its combination.
  • the above transmission device is for receiving or transmitting data via a network.
  • Specific examples of the above network may include a wired network and a wireless network.
  • the transmission device includes a Network Interface Controller (NIC) that can be connected to other network devices and routers via a network cable to communicate with the Internet or a local area network.
  • the transmission device is a Radio Frequency (RF) module for communicating with the Internet wirelessly.
  • NIC Network Interface Controller
  • RF Radio Frequency
  • the memory is used to store preset action conditions and information of the preset rights user, and an application.
  • the processor can call the memory stored information and the application by the transmitting device to execute the program code of the method steps of each of the alternative or preferred embodiments of the above method embodiments.
  • the computer terminal can also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, an applause computer, and a mobile Internet device (MID), a PAD, and the like.
  • a smart phone such as an Android phone, an iOS phone, etc.
  • a tablet computer such as an iPad, Samsung Galaxy Tab, Samsung Galaxy Tab, etc.
  • MID mobile Internet device
  • PAD PAD
  • Embodiments of the present invention also provide a storage medium.
  • the foregoing storage medium may be used to save program code executed by the automatic network distribution method provided by the foregoing method embodiment and the device embodiment.
  • the foregoing storage medium may be located in any one of the computer terminal groups in the computer network, or in any one of the mobile terminal groups.
  • the storage medium is configured to store program code for performing the following steps: the wireless Wifi module queries whether there is a repeater that meets the network condition; and queries the relay that meets the network condition After the device, the Wifi module automatically connects to the repeater.
  • the storage medium may also be set as program code of various preferred or optional method steps provided by the automatic distribution method.
  • the present embodiment provides a device, such as the device structure block diagram shown in FIG. 6, which includes the automatic network distribution device introduced in the fifth embodiment.
  • the device is generally a household electrical appliance that is more commonly used by users.
  • the embodiment provides an automatic network distribution device, such as the structural block diagram of the automatic network distribution device applied to the repeater as shown in FIG. 7, the device includes:
  • the determining module 20 is configured to determine whether the Wifi module meets the network distribution condition
  • the hotspot new module 22 is connected to the judging module 20 for creating a new Wifi hotspot for the Wifi module to connect when the Wifi module meets the distribution network condition.
  • the Wifi module can be automatically connected to the repeater without manually setting the Wifi distribution network mode, which solves the cumbersome problem of the network distribution process in the prior art, and simplifies the Wifi distribution network process, and uses the Wifi module.
  • Users of home appliances provide convenience and enhance the user experience.
  • the foregoing determining module 20 and the hotspot new module 22 may be run in a computer terminal as part of the device, and the functions implemented by the above module may be performed by a processor in the computer terminal, and the computer terminal may also be a smart phone. (such as Android phones, iOS phones, etc.), tablets, applause computers and mobile Internet devices (Mobile Internet Devices, MID), PAD and other terminal devices.
  • the determining module 20 may include: an obtaining unit, configured to obtain a media access control mac address of the Wifi module by using a handshake process; and a determining unit, configured to determine whether the mac address is consistent with the mac address of the repeater; if yes, It is determined that the Wifi module meets the network distribution conditions. Based on this, the repeater and the Wifi module are accurately matched to provide a basis for subsequent distribution networks.
  • the foregoing Wifi hotspot may adopt a preset name and a preset agreement password.
  • the preset name is the mac address of the repeater.
  • the preset agreement password is a password that is generated according to the preset encryption method and that can be known by the Wifi module through the internal encryption and decryption method.
  • the repeater can be a router or a gateway.
  • the foregoing obtaining unit and the determining unit may be run in the computer terminal as part of the device, and the function implemented by the above module may be executed by a processor in the computer terminal, and the computer terminal may also be a smart phone (such as Android). Mobile phones, iOS phones, etc.), tablet computers, applause computers, and mobile Internet devices (MID), PAD and other terminal devices.
  • a smart phone such as Android
  • Mobile phones, iOS phones, etc. tablet computers, applause computers, and mobile Internet devices (MID), PAD and other terminal devices.
  • MID mobile Internet devices
  • the various functional units provided by the embodiments of the present application may be operated in a mobile terminal, a computer terminal, or the like, or may be stored as part of a storage medium.
  • embodiments of the present invention may provide a computer terminal, which may be any computer terminal device in a group of computer terminals.
  • a computer terminal may also be replaced with a terminal device such as a mobile terminal.
  • the computer terminal may be located in at least one network device of the plurality of network devices of the computer network.
  • the computer terminal may execute the program code of the following steps in the automatic network distribution method: the repeater determines whether the wireless Wifi module meets the network distribution condition; if yes, the repeater creates a new Wifi hotspot for the Wifi module to connect. .
  • the computer terminal can include: one or more processors, memory, and transmission means.
  • the memory can be used to store software programs and modules, such as the automatic network distribution method and the program instructions/modules corresponding to the device in the embodiment of the present invention, and the processor executes various functions by running software programs and modules stored in the memory. Application and data processing, that is, the above automatic network distribution method is implemented.
  • the memory may include a high speed random access memory, and may also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
  • the memory can further include memory remotely located relative to the processor, which can be connected to the terminal over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the above transmission device is for receiving or transmitting data via a network.
  • Specific examples of the above network may include a wired network and a wireless network.
  • the transmission device includes a Network Interface Controller (NIC) that can pass through the network The line is connected to other network devices and routers to communicate with the Internet or a local area network.
  • the transmission device is a Radio Frequency (RF) module for communicating with the Internet wirelessly.
  • NIC Network Interface Controller
  • RF Radio Frequency
  • the memory is used to store preset action conditions and information of the preset rights user, and an application.
  • the processor can call the memory stored information and the application by the transmitting device to execute the program code of the method steps of each of the alternative or preferred embodiments of the above method embodiments.
  • the computer terminal can also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, an applause computer, and a mobile Internet device (MID), a PAD, and the like.
  • a smart phone such as an Android phone, an iOS phone, etc.
  • a tablet computer such as an iPad, Samsung Galaxy Tab, Samsung Galaxy Tab, etc.
  • MID mobile Internet device
  • PAD PAD
  • Embodiments of the present invention also provide a storage medium.
  • the foregoing storage medium may be used to save the program code executed by the event marking method of the electronic calendar provided by the foregoing method embodiment and the device embodiment.
  • the foregoing storage medium may be located in any one of the computer terminal groups in the computer network, or in any one of the mobile terminal groups.
  • the storage medium is configured to store program code for performing the following steps: the repeater determines whether the wireless Wifi module meets the distribution network condition; if yes, the repeater creates a new Wifi hotspot for the Wifi module connection.
  • the storage medium may also be set as program code of various preferred or optional method steps provided by the automatic distribution method.
  • the embodiment provides a repeater, such as the block diagram of the repeater structure shown in FIG. 8, the repeater includes the automatic network distribution device introduced in the seventh embodiment.
  • the repeater is typically a router or gateway.
  • the present invention also provides a storage medium including a stored program, wherein the program executes the automatic network distribution method provided in Embodiment 1 above.
  • the present invention also provides a processor for running a program, wherein the automatic networking method provided in the above embodiment 1 is executed when the program is running.
  • the Wifi module can be automatically connected to the repeater without manually setting the Wifi distribution network mode, thereby solving the cumbersome problem of the equipment distribution network in the prior art, simplifying the Wifi distribution.
  • the network process provides convenience for users who use home appliances with Wifi modules to improve the user experience.

Abstract

本发明公开一种自动配网方法、装置及设备、中继器。其中,该方法包括:Wifi模块查询是否有符合配网条件的中继器;在查询到符合配网条件的中继器后,所述Wifi模块自动连接所述中继器。应用本发明的技术方案,无需人工手动设置Wifi配网方式,Wifi模块可以自动连接上中继器,解决了现有技术中设备配网流程繁琐的问题,简化Wifi配网流程,为使用带Wifi模块的家电产品的用户提供便利,提高用户体验。

Description

一种自动配网方法、装置及设备、中继器 技术领域
本发明涉及通信技术领域,具体而言,涉及一种自动配网方法、装置及设备、中继器。
背景技术
目前主流智能家居产品使用Wifi模块连接路由器时,一般需要经过如下步骤完成:1)将设备中的Wifi模块设置为AP模式(即无线接入点模式,允许其他设备接入Wifi模块);2)手机扫描设备,连接上设置为AP模式的设备;3)用户操作手机,通过手机告知设备需要连接的路由器的名称和密码;4)设备知道路由器名称和密码后,根据这些信息连接上路由器。
在实际操作过程中,上述方式使用起来较为复杂,用户比较难以快速完成配网,用户使用体验较低。
针对现有技术中设备配网流程繁琐的问题,目前尚未提出有效的解决方案。
发明内容
本发明实施例中提供一种自动配网方法、装置及设备、中继器,以解决现有技术中设备配网流程繁琐的问题。
为解决上述技术问题,本发明提供了一种自动配网方法,其中,该方法包括:Wifi模块查询是否有符合配网条件的中继器;在查询到符合配网条件的中继器后,所述Wifi模块自动连接所述中继器。
进一步地,所述Wifi模块查询是否有符合配网条件的所述中继器,包括:所述Wifi模块进入工作站模式,通过无线广播的方式寻找中继器;所述Wifi模块与寻找到的所述中继器建立握手过程;所述Wifi模 块基于所述握手过程判断所述中继器是否符合配网条件。
进一步地,所述Wifi模块基于所述握手过程判断所述中继器是否符合配网条件,包括:所述Wifi模块根据握手包解析出所述中继器的mac地址;所述Wifi模块根据所述mac地址判断所述中继器是否符合配网条件。
进一步地,所述Wifi模块根据所述mac地址判断所述中继器是否符合配网条件,包括:所述Wifi模块判断所述mac地址与可配网mac地址是否一致;其中,所述可配网mac地址存储在所述Wifi模块中;如果是,则判定所述中继器符合配网条件。
进一步地,所述Wifi模块基于所述握手过程判断所述中继器是否符合配网条件,包括:所述Wifi模块根据握手信息或广播信息判断所述中继器是否符合配网条件。
进一步地,所述Wifi模块自动连接所述中继器,包括:所述Wifi模块基于PIN码,通过Wifi保护设置WPS方式自动连接所述中继器;其中,所述PIN码存储在所述Wifi模块中。
进一步地,所述方法还包括:如果查询到符合配网条件的中继器为多个,则所述Wifi模块自动连接信号最强的中继器。
进一步地,所述中继器是路由器或网关。
本发明还提供了一种自动配网方法,其中,该方法包括:中继器判断Wifi模块是否符合配网条件;如果是,则所述中继器新建一个Wifi热点供所述Wifi模块连接。
进一步地,所述中继器判断所述Wifi模块是否符合配网条件,包括:所述中继器通过握手过程获取所述Wifi模块的媒体访问控制mac地址;所述中继器判断所述mac地址与所述中继器的mac地址是否一致;如果是,则判定所述Wifi模块符合配网条件。
进一步地,所述Wifi热点采用预设名称和预设约定密码。
进一步地,所述预设名称是所述中继器的mac地址,所述预设约定密码是按照预设加密方式生成的、所述Wifi模块通过内部加密解密方法可以得知的密码。
进一步地,所述中继器是路由器或网关。
本发明还提供了一种自动配网装置,应用于Wifi模块,其中,该 装置包括:查询模块,用于查询是否有符合配网条件的中继器;连接模块,用于在查询到符合配网条件的中继器后,自动连接所述中继器。
进一步地,所述查询模块包括:广播单元,用于进入工作站模式,通过无线广播的方式寻找中继器;握手单元,用于与寻找到的所述中继器建立握手过程;判断单元,用于基于所述握手过程判断所述中继器是否符合配网条件。
进一步地,所述判断单元包括:地址解析子单元,用于根据握手包解析出所述中继器的mac地址;判断子单元,用于判断所述mac地址与可配网mac地址是否一致;其中,所述可配网mac地址存储在所述Wifi模块中;如果是,则判定所述中继器符合配网条件。
进一步地,所述判断单元包括:信息判断子单元,用于根据握手信息或广播信息判断所述中继器是否符合配网条件。
进一步地,所述连接模块,还用于基于PIN码,通过Wifi保护设置WPS方式自动连接所述中继器;其中,所述PIN码存储在所述Wifi模块中。
本发明还提供了一种设备,其中,该设备包括上述的自动配网装置。
本发明还提供了一种自动配网装置,应用于中继器,其中,该装置包括:判断模块,用于判断Wifi模块是否符合配网条件;热点新建模块,用于在所述Wifi模块符合配网条件的情况下,新建一个Wifi热点供所述Wifi模块连接。
进一步地,所述判断模块包括:获取单元,用于通过握手过程获取所述Wifi模块的mac地址;判断单元,用于判断所述mac地址与所述中继器的mac地址是否一致;如果是,则判定所述Wifi模块符合配网条件。
进一步地,所述Wifi热点采用预设名称和预设约定密码。
本发明还提供了一种中继器,其中,该中继器包括上述的自动配网装置。
本发明还提供了一种自动配网方法,其中,该方法包括:Wifi模块查询是否存在中继器信号;在查询到所述中继器信号的情况下,所述Wifi模块查询是否有符合配网条件的中继器;在查询到有符合配网 条件的中继器的情况下,判断所述符合配网条件的中继器是否只有一个;在所述符合配网条件的中继器只有一个的情况下,所述Wifi模块自动连接所述中继器。
进一步地,在所述符合配网条件的中继器只有一个的情况下,所述Wifi模块自动连接所述中继器,包括:所述Wifi模块基于PIN码,通过WPS方式自动连接所述中继器;其中,所述PIN码存储在所述Wifi模块中。
进一步地,在所述符合配网条件的中继器存在多个的情况下,所述Wifi模块基于所述PIN码,与连接信号最强的中继器进行连接。
进一步地,在查询到所述中继器信号的情况下,所述Wifi模块查询是否有符合配网条件的中继器,包括:所述Wifi模块根据握手包解析出所述中继器的mac地址;所述Wifi模块判断所述中继器的mac地址是否与可配网的mac地址相匹配;在所述中继器的mac地址与所述可配网的mac地址相匹配的情况下,所述Wifi模块确定所述中继器符合所述配网条件。
进一步地,所述中继器是路由器或网关。
本发明还提供了一种存储介质,所述存储介质包括存储的程序,其中,所述程序执行所述自动配网方法。
本发明还提供了一种处理器,所述处理器用于运行程序,其中,所述程序运行时执行所述自动配网方法。
应用本发明的技术方案,无需人工手动设置Wifi配网方式,Wifi模块可以自动连接上中继器,解决了现有技术中设备配网流程繁琐的问题,简化Wifi配网流程,为使用带Wifi模块的家电产品的用户提供便利,提高用户体验。
附图说明
图1是根据本发明实施例的Wifi模块的自动配网方法流程图;
图2是根据本发明实施例的Wifi模块配网流程图;
图3是根据本发明实施例的中继器的自动配网方法流程图;
图4是根据本发明实施例的中继器配网流程图;
图5是根据本发明实施例的应用于Wifi模块的自动配网装置的结构框图;
图6是根据本发明实施例的设备结构框图;
图7是根据本发明实施例的应用于中继器的自动配网装置的结构框图;以及
图8是根据本发明实施例的中继器结构框图。
具体实施方式
下面结合附图和具体实施例对本发明作进一步详细描述,但不作为对本发明的限定。
实施例一
图1是根据本发明实施例的Wifi模块的自动配网方法流程图,如图1所示,该方法包括以下步骤(步骤S101-步骤S102):
步骤S101,Wifi模块查询是否有符合配网条件的中继器;
步骤S102,在查询到符合配网条件的中继器后,Wifi模块自动连接中继器。
通过本实施例,无需人工手动设置Wifi配网方式,Wifi模块可以自动连接上中继器,解决了现有技术中设备配网流程繁琐的问题,简化Wifi配网流程,为使用带Wifi模块的家电产品的用户提供便利,提高用户体验。
在步骤S101中,Wifi模块查询是否有符合配网条件的中继器,可以通过以下优选实施方式实现:Wifi模块进入工作站模式,通过无线广播的方式寻找中继器;Wifi模块与寻找到的中继器建立握手过程;Wifi模块基于握手过程判断中继器是否符合配网条件。
对于Wifi模块基于握手过程判断中继器是否符合配网条件这一步骤,本实施例提供了两种优选实施方式:
第一种,Wifi模块根据握手包解析出中继器的mac(Media Access Control,媒体访问控制)地址;Wifi模块根据mac地址判断中继器是否符合配网条件。具体地,Wifi模块判断mac地址与可配网mac地址是否一致;其中,可配网mac地址存储在Wifi模块中;如果是,则判 定中继器符合配网条件。基于此,可以准确匹配合适的中继器,为自动配网提供基础。
第二种,Wifi模块根据握手信息或广播信息判断中继器是否符合配网条件。
当然,本实施例并不仅限于上述两种实施方式,只要在Wifi模块周围找到符合配网条件的中继器即可实现Wifi模块的自动配网。
在步骤S102中,Wifi模块自动连接中继器,可以通过以下优选实施方式实现:Wifi模块基于PIN码(Personal Identification Number,个人识别密码),通过WPS(Wi-Fi Protected Setup,Wifi保护设置)方式自动连接中继器;其中,PIN码存储在Wifi模块中。基于此,可以快速安全的实现Wifi模块的自动配网。
需要说明的是,如果查询到符合配网条件的中继器为多个,则Wifi模块可以选择自动连接信号最强的中继器,从而保证联网效果。在本实施例中,中继器可以是路由器或网关。
实施例二
图2是根据本发明实施例的Wifi模块配网流程图,如图2所示,该方法包括以下步骤(步骤S201-步骤S205):
步骤S201,Wifi模块为STA(工作站模式),通过无线广播方式寻找路由器(或网关)信号。
步骤S202,Wifi模块判断周围环境中是否有符合配网条件的路由器;如果是,则执行步骤S203,如果否,则返回执行步骤S201。
Wifi模块在出厂时已经存储已知的路由器的WPS信息,例如路由器的mac地址,WPS的PIN码。当用户购买到符合该mac地址的路由器后,Wifi模块通过和路由器的握手包解析到路由器的mac地址,并进行比对该mac地址是否是Wifi模块所知道的mac地址,如果是,则该路由器符合配网条件。
步骤S203,判断符合配网条件的路由器是否只有一个;如果是,则执行步骤S204,如果否,则执行步骤S205。
步骤S204,通过WPS方式以PIN码连接该路由器,完成简易配网。该PIN码存储在Wifi模块中。
步骤S205,通过WPS方式以PIN码连接信号最强的路由器,完 成简易配网。
当然,也可以不通过握手过程中的mac地址来识别路由器是否为可快速配网的路由器,而使用握手信息或者别的广播信息来确定。本实施例对此不做限制。
需要说明的是,可快速配网的路由器或网关可以是任何公司或厂商生产的路由器或网关,该路由器或网关可以被Wifi模块识别为快速配网路由器或网关即可。
实施例三
图3是根据本发明实施例的中继器的自动配网方法流程图,如图3所示,该方法包括以下步骤(步骤S301-步骤S303):
步骤S301,中继器判断Wifi模块是否符合配网条件;
步骤S302,如果是,则中继器新建一个Wifi热点供Wifi模块连接。
步骤S303,如果否,则结束该流程。
通过本实施例,无需人工手动设置Wifi配网方式,Wifi模块可以自动连接上中继器,解决了现有技术中设备配网流程繁琐的问题,简化Wifi配网流程,为使用带Wifi模块的家电产品的用户提供便利,提高用户体验。
在步骤S301中,中继器判断Wifi模块是否符合配网条件,可以通过以下优选实施方式实现:中继器通过握手过程获取Wifi模块的mac地址;中继器判断mac地址与中继器的mac地址是否一致;如果是,则判定Wifi模块符合配网条件。基于此,中继器与Wifi模块准确匹配,为后续配网提供基础。
需要说明的是,上述Wifi热点可以采用预设名称和预设约定密码。预设名称是中继器的mac地址,预设约定密码是按照预设加密方式生成的、Wifi模块通过内部加密解密方法可以得知的密码。本实施例中的中继器可以是路由器或网关。
实施例四
图4是根据本发明实施例的中继器配网流程图,如图4所示,该方法包括以下步骤(步骤S401-步骤S404):
步骤S401,Wifi模块为STA(工作站模式),通过无线广播方式 寻找路由器或网关信号,在Wifi握手过程中路由器获知Wifi模块的mac地址。
步骤S402,路由器判断Wifi模块的mac地址是否符合配网条件。如果是,则执行步骤S403,如果否,则返回执行步骤S401。
步骤S403,路由器新建一个以路由器mac地址为名称,以约定密码为密码的Wifi热点。该约定密码是路由器与Wifi模块提前约定好加密方式的密码。
步骤S404,Wifi模块搜索Wifi热点,并加入该Wifi热点。
实施例二介绍的WPS配网方式存在安全隐患,为保证安全,本实施例提供了一种更为推荐的简易配网方式:Wifi模块在出厂的时候已知道一些路由器的信息,例如同一公司生产的路由器的mac地址。当用户购买到这种路由器后,Wifi模块通过Wifi握手过程中的mac地址信息发现该路由器为可配网的路由器,路由器也通过同样的方法知道该Wifi模块为可配网的Wifi模块。之后,路由器新建一个以路由器mac地址为名称的,事先约定好加密方式和加密密码的隐藏的Wifi热点。当然,也可以不以路由器mac地址为Wifi热点的名称,而以别的约定好的名称作为Wifi热点的名称。Wifi模块通过内部加密解密方法得知该路由器隐藏的Wifi热点的密码,通过这个密码连接上路由器,从而实现简易配网。
在设备开机后,用户通过手机app连接到路由器即可发现已经自动连接上的设备。
实施例五
对应于实施例一介绍的自动配网方法,本实施例提供了一种自动配网装置,如图5所示的应用于Wifi模块的自动配网装置的结构框图,该装置包括:
查询模块10,用于查询是否有符合配网条件的中继器;
连接模块12,连接至查询模块10,用于在查询到符合配网条件的中继器后,自动连接中继器。
通过本实施例,无需人工手动设置Wifi配网方式,Wifi模块可以自动连接上中继器,解决了现有技术中设备配网流程繁琐的问题,简化Wifi配网流程,为使用带Wifi模块的家电产品的用户提供便利,提 高用户体验。
此处需要说明的是,上述查询模块10和连接模块12可以作为装置的一部分运行在计算机终端中,可以通过计算机终端中的处理器来执行上述模块实现的功能,计算机终端也可以是智能手机(如Android手机、iOS手机等)、平板电脑、掌声电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备。
优选地,上述查询模块10可以包括:广播单元,用于进入工作站模式,通过无线广播的方式寻找中继器;握手单元,用于与寻找到的中继器建立握手过程;判断单元,用于基于握手过程判断中继器是否符合配网条件。基于此,Wifi模块可以准确匹配合适的中继器,为自动配网提供基础。
此处需要说明的是,上述广播单元、握手单元和判断单元可以作为装置的一部分运行在计算机终端中,可以通过计算机终端中的处理器来执行上述模块实现的功能,计算机终端也可以是智能手机(如Android手机、iOS手机等)、平板电脑、掌声电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备。
上述判断单元可以包括:地址解析子单元,用于根据握手包解析出中继器的mac地址;判断子单元,用于判断mac地址与可配网mac地址是否一致;其中,可配网mac地址存储在Wifi模块中;如果是,则判定中继器符合配网条件。从而根据mac地址准确查询符合配网条件的中继器。
此处需要说明的是,上述地址解析子单元和判断子单元可以作为装置的一部分运行在计算机终端中,可以通过计算机终端中的处理器来执行上述模块实现的功能,计算机终端也可以是智能手机(如Android手机、iOS手机等)、平板电脑、掌声电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备。
上述判断单元可以包括:信息判断子单元,用于根据握手信息或广播信息判断中继器是否符合配网条件。即本实施例并不仅限于根据mac地址查询符合配网条件的中继器,也可以通过其他方式查询,提供多种查询方式,提高查询效率和范围。
此处需要说明的是,上述信息判断子单元可以作为装置的一部分 运行在计算机终端中,可以通过计算机终端中的处理器来执行上述模块实现的功能,计算机终端也可以是智能手机(如Android手机、iOS手机等)、平板电脑、掌声电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备。
优选地,上述连接模块12,还可以用于基于PIN码,通过Wifi保护设置WPS方式自动连接中继器;其中,PIN码存储在Wifi模块中。基于此,可以快速安全的实现Wifi模块的自动配网。
需要说明的是,如果查询到符合配网条件的中继器为多个,则Wifi模块可以选择自动连接信号最强的中继器,从而保证联网效果。在本实施例中,中继器可以是路由器或网关。
本申请实施例所提供的各个功能单元可以在移动终端、计算机终端或者类似的运算装置中运行,也可以作为存储介质的一部分进行存储。
由此,本发明的实施例可以提供一种计算机终端,该计算机终端可以是计算机终端群中的任意一个计算机终端设备。可选地,在本实施例中,上述计算机终端也可以替换为移动终端等终端设备。
可选地,在本实施例中,上述计算机终端可以位于计算机网络的多个网络设备中的至少一个网络设备。
在本实施例中,上述计算机终端可以执行自动配网方法中以下步骤的程序代码:无线Wifi模块查询是否有符合配网条件的中继器;在查询到符合配网条件的中继器后,Wifi模块自动连接中继器。
可选地,该计算机终端可以包括:一个或多个处理器、存储器、以及传输装置。
其中,存储器可用于存储软件程序以及模块,如本发明实施例中的自动配网方法对应的程序指令/模块,处理器通过运行存储在存储器内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的自动配网方法。存储器可包括高速随机存储器,还可以包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器可进一步包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信 网及其组合。
上述的传输装置用于经由一个网络接收或者发送数据。上述的网络具体实例可包括有线网络及无线网络。在一个实例中,传输装置包括一个网络适配器(Network Interface Controller,NIC),其可通过网线与其他网络设备与路由器相连从而可与互联网或局域网进行通讯。在一个实例中,传输装置为射频(Radio Frequency,RF)模块,其用于通过无线方式与互联网进行通讯。
其中,具体地,存储器用于存储预设动作条件和预设权限用户的信息、以及应用程序。
处理器可以通过传输装置调用存储器存储的信息及应用程序,以执行上述方法实施例中的各个可选或优选实施例的方法步骤的程序代码。
本领域普通技术人员可以理解,计算机终端也可以是智能手机(如Android手机、iOS手机等)、平板电脑、掌声电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令终端设备相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:闪存盘、只读存储器(Read-Only Memory,ROM)、随机存取器(Random Access Memory,RAM)、磁盘或光盘等。
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以用于保存上述方法实施例和装置实施例所提供的自动配网方法所执行的程序代码。
可选地,在本实施例中,上述存储介质可以位于计算机网络中计算机终端群中的任意一个计算机终端中,或者位于移动终端群中的任意一个移动终端中。
可选地,在本实施例中,存储介质被设置为存储用于执行以下步骤的程序代码:无线Wifi模块查询是否有符合配网条件的中继器;在查询到符合配网条件的中继器后,Wifi模块自动连接中继器。
可选地,在本实施例中,存储介质还可以被设置为自动配网方法提供的各种优选地或可选的方法步骤的程序代码。
如上参照附图以示例的方式描述了根据本发明的自动配网方法及装置。但是,本领域技术人员应当理解,对于上述本发明所提出的自动配网方法及装置,还可以在不脱离本发明内容的基础上做出各种改进。因此,本发明的保护范围应当由所附的权利要求书的内容确定。
实施例六
对应于实施例五介绍的自动配网装置,本实施例提供了一种设备,如图6所示的设备结构框图,该设备包括上述实施例五介绍的自动配网装置。该设备一般是用户较常使用的家电设备。
实施例七
对应于实施例三介绍的自动配网方法,本实施例提供了一种自动配网装置,如图7所示的应用于中继器的自动配网装置的结构框图,该装置包括:
判断模块20,用于判断Wifi模块是否符合配网条件;
热点新建模块22,连接至判断模块20,用于在Wifi模块符合配网条件的情况下,新建一个Wifi热点供Wifi模块连接。
通过本实施例,无需人工手动设置Wifi配网方式,Wifi模块可以自动连接上中继器,解决了现有技术中设备配网流程繁琐的问题,简化Wifi配网流程,为使用带Wifi模块的家电产品的用户提供便利,提高用户体验。
此处需要说明的是,上述判断模块20和热点新建模块22可以作为装置的一部分运行在计算机终端中,可以通过计算机终端中的处理器来执行上述模块实现的功能,计算机终端也可以是智能手机(如Android手机、iOS手机等)、平板电脑、掌声电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备。
优选地,上述判断模块20可以包括:获取单元,用于通过握手过程获取Wifi模块的媒体访问控制mac地址;判断单元,用于判断mac地址与中继器的mac地址是否一致;如果是,则判定Wifi模块符合配网条件。基于此,中继器与Wifi模块准确匹配,为后续配网提供基础。
需要说明的是,上述Wifi热点可以采用预设名称和预设约定密码。预设名称是中继器的mac地址,预设约定密码是按照预设加密方式生成的、Wifi模块通过内部加密解密方法可以得知的密码。本实施例中 的中继器可以是路由器或网关。
此处需要说明的是,上述获取单元和判断单元可以作为装置的一部分运行在计算机终端中,可以通过计算机终端中的处理器来执行上述模块实现的功能,计算机终端也可以是智能手机(如Android手机、iOS手机等)、平板电脑、掌声电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备。
本申请实施例所提供的各个功能单元可以在移动终端、计算机终端或者类似的运算装置中运行,也可以作为存储介质的一部分进行存储。
由此,本发明的实施例可以提供一种计算机终端,该计算机终端可以是计算机终端群中的任意一个计算机终端设备。可选地,在本实施例中,上述计算机终端也可以替换为移动终端等终端设备。
可选地,在本实施例中,上述计算机终端可以位于计算机网络的多个网络设备中的至少一个网络设备。
在本实施例中,上述计算机终端可以执行自动配网方法中以下步骤的程序代码:中继器判断无线Wifi模块是否符合配网条件;如果是,则中继器新建一个Wifi热点供Wifi模块连接。
可选地,该计算机终端可以包括:一个或多个处理器、存储器、以及传输装置。
其中,存储器可用于存储软件程序以及模块,如本发明实施例中的自动配网方法及装置对应的程序指令/模块,处理器通过运行存储在存储器内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的自动配网方法。存储器可包括高速随机存储器,还可以包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器可进一步包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
上述的传输装置用于经由一个网络接收或者发送数据。上述的网络具体实例可包括有线网络及无线网络。在一个实例中,传输装置包括一个网络适配器(Network Interface Controller,NIC),其可通过网 线与其他网络设备与路由器相连从而可与互联网或局域网进行通讯。在一个实例中,传输装置为射频(Radio Frequency,RF)模块,其用于通过无线方式与互联网进行通讯。
其中,具体地,存储器用于存储预设动作条件和预设权限用户的信息、以及应用程序。
处理器可以通过传输装置调用存储器存储的信息及应用程序,以执行上述方法实施例中的各个可选或优选实施例的方法步骤的程序代码。
本领域普通技术人员可以理解,计算机终端也可以是智能手机(如Android手机、iOS手机等)、平板电脑、掌声电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令终端设备相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:闪存盘、只读存储器(Read-Only Memory,ROM)、随机存取器(Random Access Memory,RAM)、磁盘或光盘等。
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以用于保存上述方法实施例和装置实施例所提供的电子日历的事件标记方法所执行的程序代码。
可选地,在本实施例中,上述存储介质可以位于计算机网络中计算机终端群中的任意一个计算机终端中,或者位于移动终端群中的任意一个移动终端中。
可选地,在本实施例中,存储介质被设置为存储用于执行以下步骤的程序代码:中继器判断无线Wifi模块是否符合配网条件;如果是,则中继器新建一个Wifi热点供Wifi模块连接。
可选地,在本实施例中,存储介质还可以被设置为自动配网方法提供的各种优选地或可选的方法步骤的程序代码。
如上参照附图以示例的方式描述了根据本发明的自动配网方法及装置。但是,本领域技术人员应当理解,对于上述本发明所提出的自动配网方法及装置,还可以在不脱离本发明内容的基础上做出各种改进。因此,本发明的保护范围应当由所附的权利要求书的内容确定。
实施例八
对应于实施例七介绍的自动配网装置,本实施例提供了一种中继器,如图8所示的中继器结构框图,该中继器包括上述实施例七介绍的自动配网装置。该中继器一般是路由器或网关。
此外,本发明还提供了一种存储介质,该存储介质包括存储的程序,其中,程序执行上述实施例1中所提供的自动配网方法。
本发明还提供了一种处理器,该处理器用于运行程序,其中,程序运行时执行上述实施例1中所提供的自动配网方法。
从以上的描述中可知,应用本发明的技术方案,无需人工手动设置Wifi配网方式,Wifi模块可以自动连接上中继器,解决了现有技术中设备配网流程繁琐的问题,简化Wifi配网流程,为使用带Wifi模块的家电产品的用户提供便利,提高用户体验。
当然,以上是本发明的优选实施方式。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明基本原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本发明的保护范围。

Claims (30)

  1. 一种自动配网方法,其特征在于,所述方法包括:
    Wifi模块查询是否有符合配网条件的中继器;
    在查询到符合配网条件的中继器后,所述Wifi模块自动连接所述中继器。
  2. 根据权利要求1所述的方法,其特征在于,所述Wifi模块查询是否有符合配网条件的所述中继器,包括:
    所述Wifi模块进入工作站模式,通过无线广播的方式寻找所述中继器;
    所述Wifi模块与寻找到的所述中继器建立握手过程;
    所述Wifi模块基于所述握手过程判断所述中继器是否符合配网条件。
  3. 根据权利要求2所述的方法,其特征在于,所述Wifi模块基于所述握手过程判断所述中继器是否符合配网条件,包括:
    所述Wifi模块根据握手包解析出所述中继器的媒体访问控制mac地址;
    所述Wifi模块根据所述mac地址判断所述中继器是否符合配网条件。
  4. 根据权利要求3所述的方法,其特征在于,所述Wifi模块根据所述mac地址判断所述中继器是否符合配网条件,包括:
    所述Wifi模块判断所述mac地址与可配网mac地址是否一致;其中,所述可配网mac地址存储在所述Wifi模块中;
    如果是,则判定所述中继器符合配网条件。
  5. 根据权利要求2所述的方法,其特征在于,所述Wifi模块基于所述握手过程判断所述中继器是否符合配网条件,包括:
    所述Wifi模块根据握手信息或广播信息判断所述中继器是否符合配网条件。
  6. 根据权利要求1所述的方法,其特征在于,所述Wifi模块自动连接所述中继器,包括:
    所述Wifi模块基于个人识别密码PIN码,通过Wifi保护设置WPS方式自动连接所述中继器;其中,所述PIN码存储在所述Wifi模块中。
  7. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    如果查询到符合配网条件的中继器为多个,则所述Wifi模块自动连接信号最强的中继器。
  8. 根据权利要求1至7中任一项所述的方法,其特征在于,所述中继器是路由器或网关。
  9. 一种自动配网方法,其特征在于,所述方法包括:
    中继器判断Wifi模块是否符合配网条件;
    如果是,则所述中继器新建一个Wifi热点供所述Wifi模块连接。
  10. 根据权利要求9所述的方法,其特征在于,所述中继器判断所述Wifi模块是否符合配网条件,包括:
    所述中继器通过握手过程获取所述Wifi模块的媒体访问控制mac地址;
    所述中继器判断所述mac地址与所述中继器的mac地址是否一致;
    如果是,则判定所述Wifi模块符合配网条件。
  11. 根据权利要求9所述的方法,其特征在于,所述Wifi热点采用预设名称和预设约定密码。
  12. 根据权利要求11所述的方法,其特征在于,所述预设名称是所述中继器的mac地址,所述预设约定密码是按照预设加密方式生成的、所述Wifi模块通过内部加密解密方法可以得知的密码。
  13. 根据权利要求9至12中任一项所述的方法,其特征在于,所述中继器是路由器或网关。
  14. 一种自动配网装置,应用于无线Wifi模块,其特征在于,所述装置包括:
    查询模块,用于查询是否有符合配网条件的中继器;
    连接模块,用于在查询到符合配网条件的中继器后,自动连接所述中继器。
  15. 根据权利要求14所述的装置,其特征在于,所述查询模块包括:
    广播单元,用于进入工作站模式,通过无线广播的方式寻找所述中继器;
    握手单元,用于与寻找到的所述中继器建立握手过程;
    判断单元,用于基于所述握手过程判断所述中继器是否符合配网条件。
  16. 根据权利要求15所述的装置,其特征在于,所述判断单元包括:
    地址解析子单元,用于根据握手包解析出所述中继器的媒体访问控制mac地址;
    判断子单元,用于判断所述mac地址与可配网mac地址是否一致;其中,所述可配网mac地址存储在所述Wifi模块中;如果是,则判定所述中继器符合配网条件。
  17. 根据权利要求15所述的装置,其特征在于,所述判断单元包括:
    信息判断子单元,用于根据握手信息或广播信息判断所述中继器是否符合配网条件。
  18. 根据权利要求14所述的装置,其特征在于,
    所述连接模块,还用于基于个人识别密码PIN码,通过Wifi保护设置WPS方式自动连接所述中继器;其中,所述PIN码存储在所述Wifi模块中。
  19. 一种设备,其特征在于,包括权利要求14至18中任一项所述的自动配网装置。
  20. 一种自动配网装置,应用于中继器,其特征在于,所述装置包括:
    判断模块,用于判断无线Wifi模块是否符合配网条件;
    热点新建模块,用于在所述Wifi模块符合配网条件的情况下,新建一个Wifi热点供所述Wifi模块连接。
  21. 根据权利要求20所述的装置,其特征在于,所述判断模块包括:
    获取单元,用于通过握手过程获取所述Wifi模块的媒体访问控制mac地址;
    判断单元,用于判断所述mac地址与所述中继器的mac地址是否一致;如果是,则判定所述Wifi模块符合配网条件。
  22. 根据权利要求20所述的装置,其特征在于,所述Wifi热点采用预设名称和预设约定密码。
  23. 一种中继器,其特征在于,包括权利要求20至22中任一项所述的自动配网装置。
  24. 一种自动配网方法,其特征在于,所述方法包括:
    Wifi模块查询是否存在中继器信号;
    在查询到所述中继器信号的情况下,所述Wifi模块查询是否有符合配网条件的中继器;
    在查询到有符合配网条件的中继器的情况下,判断所述符合配网条件的中继器是否只有一个;
    在所述符合配网条件的中继器只有一个的情况下,所述Wifi模块自动连接所述中继器。
  25. 根据权利要求24所述的方法,其特征在于,在所述符合配网条件的中继器只有一个的情况下,所述Wifi模块自动连接所述中继器,包括:
    所述Wifi模块基于PIN码,通过WPS方式自动连接所述中继器;其中,所述PIN码存储在所述Wifi模块中。
  26. 根据权利要求25所述的方法,其特征在于,在所述符合配网条件的中继器存在多个的情况下,所述Wifi模块基于所述PIN码,与连接信号最强的中继器进行连接。
  27. 根据权利要求24所述的方法,其特征在于,在查询到所述中继器信号的情况下,所述Wifi模块查询是否有符合配网条件的中继器,包括:
    所述Wifi模块根据握手包解析出所述中继器的mac地址;
    所述Wifi模块判断所述中继器的mac地址是否与可配网的mac地址相匹配;
    在所述中继器的mac地址与所述可配网的mac地址相匹配的情况 下,所述Wifi模块确定所述中继器符合所述配网条件。
  28. 根据权利要求24至27中任一项所述的方法,其特征在于,所述中继器是路由器或网关。
  29. 一种存储介质,其特征在于,所述存储介质包括存储的程序,其中,所述程序执行权利要求1至8中任意一项所述的自动配网方法。
  30. 一种处理器,其特征在于,所述处理器用于运行程序,其中,所述程序运行时执行权利要求1至8中任意一项所述的自动配网方法。
PCT/CN2017/082761 2016-09-14 2017-05-02 一种自动配网方法、装置及设备、中继器 WO2018049823A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610824927.6A CN106488532B (zh) 2016-09-14 2016-09-14 一种自动配网方法、装置及智能配网设备、中继器
CN201610824927.6 2016-09-14

Publications (1)

Publication Number Publication Date
WO2018049823A1 true WO2018049823A1 (zh) 2018-03-22

Family

ID=58273594

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/082761 WO2018049823A1 (zh) 2016-09-14 2017-05-02 一种自动配网方法、装置及设备、中继器

Country Status (2)

Country Link
CN (1) CN106488532B (zh)
WO (1) WO2018049823A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108834147A (zh) * 2018-08-21 2018-11-16 中国平安人寿保险股份有限公司 检验WiFi密码安全性方法、装置、计算机设备以及存储介质

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106488532B (zh) * 2016-09-14 2020-02-07 珠海格力电器股份有限公司 一种自动配网方法、装置及智能配网设备、中继器
CN106973423A (zh) * 2017-04-01 2017-07-21 深圳市国科微半导体股份有限公司 WiFi自动连接方法和装置
CN107770007A (zh) * 2017-09-20 2018-03-06 广东美的制冷设备有限公司 家电设备的配网方法、装置、系统及计算机可读存储介质
CN108307479B (zh) * 2017-12-15 2020-03-24 珠海格力电器股份有限公司 通信模块及其配网方法、装置、存储介质、设备及终端
CN109819498A (zh) * 2019-01-23 2019-05-28 欧普照明股份有限公司 一种智能设备、智能设备自动配网方法及系统
CN110687805A (zh) * 2019-09-27 2020-01-14 珠海格力电器股份有限公司 智能家居设备联动的控制方法、装置、存储介质和设备
CN111867001B (zh) * 2020-07-24 2022-02-15 深圳创维数字技术有限公司 智能设备批量配网方法、系统及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140233536A1 (en) * 2013-02-20 2014-08-21 Samsung Electronics Co., Ltd. Method and device for performing communication in wireless communication system
CN105636162A (zh) * 2016-02-29 2016-06-01 青岛海尔科技有限公司 一种用于智能家电设备的入网方法及装置
CN205304836U (zh) * 2015-12-24 2016-06-08 广州科技贸易职业学院 智能家居中控器
CN105744642A (zh) * 2014-12-10 2016-07-06 联芯科技有限公司 无线网络连线方法及移动终端、智能家居设备
CN106488532A (zh) * 2016-09-14 2017-03-08 珠海格力电器股份有限公司 一种自动配网方法、装置及设备、中继器

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007089217A2 (en) * 2004-11-05 2007-08-09 Kabushiki Kaisha Toshiba Network discovery mechanisms
CN101820628B (zh) * 2010-03-10 2014-01-29 北京傲天动联技术股份有限公司 无线接入点的认证方法
CN103945494B (zh) * 2014-03-21 2018-02-09 海尔集团公司 控制智能家电设备接入无线路由器的用户终端及方法
CN104159275B (zh) * 2014-07-17 2015-12-09 小米科技有限责任公司 网络连接方法及装置
CN105592524A (zh) * 2014-10-23 2016-05-18 中兴通讯股份有限公司 一种终端连接无线接入点的方法及相应终端、无线接入点
CN104394579B (zh) * 2014-12-15 2018-12-14 联想(北京)有限公司 一种信息处理方法和电子设备
CN104869612B (zh) * 2015-04-30 2019-05-10 小米科技有限责任公司 接入网络的方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140233536A1 (en) * 2013-02-20 2014-08-21 Samsung Electronics Co., Ltd. Method and device for performing communication in wireless communication system
CN105744642A (zh) * 2014-12-10 2016-07-06 联芯科技有限公司 无线网络连线方法及移动终端、智能家居设备
CN205304836U (zh) * 2015-12-24 2016-06-08 广州科技贸易职业学院 智能家居中控器
CN105636162A (zh) * 2016-02-29 2016-06-01 青岛海尔科技有限公司 一种用于智能家电设备的入网方法及装置
CN106488532A (zh) * 2016-09-14 2017-03-08 珠海格力电器股份有限公司 一种自动配网方法、装置及设备、中继器

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108834147A (zh) * 2018-08-21 2018-11-16 中国平安人寿保险股份有限公司 检验WiFi密码安全性方法、装置、计算机设备以及存储介质
CN108834147B (zh) * 2018-08-21 2022-10-21 中国平安人寿保险股份有限公司 检验WiFi密码安全性方法、装置、计算机设备以及存储介质

Also Published As

Publication number Publication date
CN106488532B (zh) 2020-02-07
CN106488532A (zh) 2017-03-08

Similar Documents

Publication Publication Date Title
WO2018049823A1 (zh) 一种自动配网方法、装置及设备、中继器
CN110692280B (zh) 一种网络接入方法、设备及系统
US7940732B2 (en) Automatic wireless network device configuration
WO2019149036A1 (zh) Mesh网络及其mesh设备和配网方法
EP3151628B1 (en) Method, device and system for accessing a wireless network
KR101885500B1 (ko) Wifi 설정 포팅
CN106656547B (zh) 一种更新家电设备网络配置的方法和装置
CN103458057B (zh) 一种获取资源的方法、装置和服务器
JP6254747B2 (ja) 情報提供方法、装置、プログラム及び記録媒体
CN111194067A (zh) 网络接入方法、装置、相关设备及存储介质
WO2018090829A1 (zh) 一种智能终端设备接入互联网的方法及装置
US9009792B1 (en) Method and apparatus for automatically configuring a secure wireless connection
CN105636162A (zh) 一种用于智能家电设备的入网方法及装置
JP5967454B2 (ja) 無線通信システム
TWI484843B (zh) 用於一無線通訊系統存取控制之方法及其相關無線通訊系統
CN104219734A (zh) 物联网设备入网方法和设备
CN112188488A (zh) 一种配网方法、装置及系统
EP2672758B1 (en) Methods and apparatuses for easing Internet access by mobile stations associated with a mobile access point
CN108093390B (zh) 一种基于特征信息的智能设备发现方法
WO2018090831A1 (zh) 一种智能终端设备接入互联网的方法及装置
US10986677B2 (en) Method and apparatus for connecting to access point in WLAN network
CN113301563A (zh) 网络配置方法、装置、设备和存储介质
JP2017528988A (ja) Wpsを用いてネットワーク接続を確立する方法およびモバイルwi−fiデバイス
WO2016176454A1 (en) Service set determination based upon device type identifier
CN103781071A (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: 17850029

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

Country of ref document: EP

Kind code of ref document: A1