CN110650070B - Household appliance network configuration method and WiFi module - Google Patents

Household appliance network configuration method and WiFi module Download PDF

Info

Publication number
CN110650070B
CN110650070B CN201810665843.1A CN201810665843A CN110650070B CN 110650070 B CN110650070 B CN 110650070B CN 201810665843 A CN201810665843 A CN 201810665843A CN 110650070 B CN110650070 B CN 110650070B
Authority
CN
China
Prior art keywords
network configuration
mobile terminal
configuration information
domain name
hotspot
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201810665843.1A
Other languages
Chinese (zh)
Other versions
CN110650070A (en
Inventor
朱泽春
时春平
黄胜东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Joyoung Co Ltd
Original Assignee
Joyoung Co Ltd
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 Joyoung Co Ltd filed Critical Joyoung Co Ltd
Priority to CN201810665843.1A priority Critical patent/CN110650070B/en
Publication of CN110650070A publication Critical patent/CN110650070A/en
Application granted granted Critical
Publication of CN110650070B publication Critical patent/CN110650070B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]

Landscapes

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

Abstract

The invention discloses a network configuration method of household electrical appliances, which comprises the following steps: the household appliance is configured to be an AP hotspot, and a domain name resolution unit and an API interface unit are started, wherein the domain name resolution unit converts a local IP address of the household appliance into a domain name address so that external equipment can go to the API interface unit through the domain name address to perform data interaction; the mobile terminal acquires second network configuration information required by connecting the AP hotspot; the mobile terminal establishes connection with the AP hotspot according to the second network configuration information; the mobile terminal sends the acquired first network configuration information for connecting the target router to the household appliance equipment according to a preset protocol, wherein the preset protocol is matched with the API unit; the household appliance is connected to the target router through the first network configuration information. The method disclosed by the invention can be compatible with the APP, the small program and the service number, establishes the directional connection between the mobile terminal and the household appliance equipment, and greatly improves the reliability and convenience of the household appliance distribution network.

Description

Household appliance network configuration method and WiFi module
Technical Field
The invention relates to the field of household appliances, in particular to a network configuration method of household appliances. The invention also discloses a WiFi module.
Background
With the development of technology, home appliances become more and more intelligent, and in order to fully exert the intelligent attribute of the home appliances, the home appliances are generally required to be firstly accessed to a network so as to provide various services for users by means of resources and instructions of a cloud server.
The current mainstream distribution network mode comprises: 1. developing an independent APP, and controlling a router to broadcast network configuration information by executing various preset operation instructions in the APP by a user so as to realize the network distribution of household appliances; 2. the household appliance starts an AP mode for the mobile terminal to connect, and the mobile terminal forwards an SSID (service set identifier) and a Key (password) required by the access router. The first mode is realized in a broadcast mode, so that packet loss and other situations are easy to occur although the flexibility and convenience of the APP are used, the success rate of the distribution network is low, and other equipment can also receive broadcast information, so that certain potential safety hazards exist; the second method has high reliability, but requires the user to perform complicated operations such as network switching, SSID search, password input, and the like, thereby seriously affecting the user experience and causing the reduction of the user's desire to configure the network.
Meanwhile, with the development of the mobile internet technology, secondary applications embedded in third-party application programs are more and more favored by developers and users, but the secondary applications are generally controlled by strict authority of the third-party application programs, and to realize the distribution network of household appliances, the third-party default distribution network technology can be generally adopted, such as Airkiss provided by WeChat, but household appliance manufacturers are difficult to develop a safer and more convenient distribution network mode meeting the requirements of the household appliances.
Disclosure of Invention
The invention provides a network configuration method for household appliances, which solves the technical problems in the prior art, has better compatibility, can realize household appliance network distribution through independent APP, can also be realized by means of current popular secondary applications such as small programs, service numbers and the like, and has great improvement on the aspects of convenience, safety, reliability and the like of the network distribution. The invention also discloses a WiFi module which is provided with a domain name resolution unit and an API (application programming interface) unit and can enable external equipment to access and call interface resources through the domain name address.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
a home appliance network configuration method comprises the following steps: the household appliance is configured to be an AP hotspot, and a domain name resolution unit and an API interface unit are started, wherein the domain name resolution unit converts a local IP address of the household appliance into a domain name address so that external equipment can go to the API interface unit through the domain name address to perform data interaction; the mobile terminal acquires second network configuration information required by connecting the AP hotspot; the mobile terminal establishes connection with the AP hotspot according to the second network configuration information; the mobile terminal sends the acquired first network configuration information for connecting the target router to the household appliance equipment according to a preset protocol, wherein the preset protocol is matched with the API unit; the household appliance is connected to the target router through the first network configuration information.
Further, the second network configuration information includes a second SSID, a second Key, and a domain name address of the AP hotspot, and the step of sending, by the mobile terminal, the acquired first network configuration information for connecting to the target router to the home appliance according to the preset protocol includes:
the mobile terminal sends the first network configuration information according to the domain name address;
the household appliance analyzes the domain name address through the domain name analyzing unit, and the domain name analyzing unit forwards the first network configuration information to the API interface unit corresponding to the IP address.
Further, the second network configuration information further includes BSSID of the AP hotspot, and the step of the mobile terminal acquiring the second network configuration information required for connecting the AP hotspot includes:
the mobile terminal obtains second network configuration information by scanning the two-dimensional code, wherein the two-dimensional code comprises a second SSID and a BSSID of the AP hotspot, and requests a second Key and a domain name address of the AP hotspot from the server according to the second SSID and the BSSID; or,
the mobile terminal obtains second network configuration information by searching a preset SSID, wherein the preset SSID comprises a second SSID and a BSSID of the AP hotspot, and requests a second Key and a domain name address of the AP hotspot from the server according to the second SSID and the BSSID.
Further, the second network configuration information further includes BSSID of the AP hotspot, and the step of the mobile terminal acquiring the second network configuration information required for connecting the AP hotspot includes:
the mobile terminal obtains second network configuration information by scanning the two-dimensional code, wherein the two-dimensional code comprises a second SSID, a second Key, a BSSID and a domain name address of the AP hotspot; or,
the mobile terminal obtains second network configuration information by searching a preset SSID, wherein the preset SSID comprises a second SSID, a second Key, a BSSID and a domain name address of the AP hotspot.
Further, the step of establishing connection between the mobile terminal and the AP hotspot according to the second network configuration information further includes: the mobile terminal acquires a first SSID of the target router, is disconnected with the target router and establishes connection with the AP hotspot according to second network configuration information; the first Key is obtained through input operation of a user.
Further, the step of sending, by the mobile terminal, the acquired first network configuration information for connecting to the target router to the home appliance according to the preset protocol further includes:
after receiving the first network configuration information, the household appliance feeds back own equipment information to the mobile terminal to establish a binding relationship, wherein the equipment information at least comprises one of the following items: the device ID, the device model, and the manufacturer information of the home appliance device.
Further, the step of connecting the home device to the target router through the first network configuration information further includes:
the mobile terminal receives the equipment information and then sends confirmation information to the household appliance equipment according to a preset protocol;
the home device is configured to turn off the AP hotspot after receiving the confirmation message.
Further, the steps performed by the mobile terminal in the method are implemented by an embedded secondary application comprising an applet or service number embedded in a third party host application.
Further, the API interface unit simulates an API interface server and complies with an http protocol, and the preset protocol is the http protocol; or the API interface unit simulates the API interface server and complies with the https protocol, and the preset protocol is the https protocol.
The invention also discloses a WiFi module:
a WiFi module applied to the method of the invention comprises an AP unit, a domain name resolution unit and an API interface unit, wherein the AP unit, the domain name resolution unit and the API interface unit are connected in series, and the method comprises the following steps: the AP unit is used for providing an AP hotspot for establishing connection; the domain name resolution unit is used for simulating a domain name server and performing resolution conversion on a domain name address and an IP address; and the API interface unit is used for simulating an API interface server and providing API interface resources for the outside.
The technical scheme of the invention has the following beneficial effects:
the network configuration method for the household electrical appliance can be compatible with small programs and service numbers, so that a user can access the household electrical appliance into a network without independently downloading a distribution network APP, and the convenience, safety and reliability of the distribution network process are greatly improved. The invention also discloses a WiFi module which can be used for realizing the method of the invention, allowing external equipment to access through the domain name address and calling the API.
Drawings
FIG. 1 is a block diagram of the steps of one embodiment of the method of the present invention;
FIG. 2 is a communication link diagram of one embodiment of the method of the present invention;
FIG. 3 is a block diagram of the steps of yet another embodiment of the method of the present invention;
FIG. 4 is a communication link diagram of yet another embodiment of the method of the present invention;
fig. 5 is a schematic diagram of a distribution network process according to an embodiment of the method of the present invention;
fig. 6 is a block diagram of a WiFi module according to the present invention.
Detailed Description
The technical solution provided by the present invention is described in more detail by the following figures and specific embodiments:
figure 1 discloses an embodiment of the method according to the invention. As shown in fig. 1, which is a block diagram of steps of an embodiment of the method according to the present invention, the embodiment discloses a method for configuring a network of home appliances, including:
step 101: the household appliance is configured to be an AP hotspot, and a domain name resolution unit and an API interface unit are started, wherein the domain name resolution unit converts a local IP address of the household appliance into a domain name address so that external equipment can go to the API interface unit through the domain name address to perform data interaction;
step 102: the mobile terminal acquires second network configuration information required by connecting the AP hotspot;
step 103: the mobile terminal establishes connection with the AP hotspot according to the second network configuration information;
step 104: the mobile terminal sends the acquired first network configuration information for connecting the target router to the household appliance equipment according to a preset protocol, wherein the preset protocol is matched with the API unit;
step 105: the household appliance is connected to the target router through the first network configuration information.
In this embodiment, after the home appliance is configured as an ap (access point) hotspot, the local IP address where the home appliance is located is resolved by the domain name resolution unit, and the local IP address is resolved into a domain name address, so that the external device can access the API interface unit of the home appliance through the domain name address and perform data interaction with the API interface unit according to a preset protocol, thereby facilitating the mobile terminal to call a corresponding interface to send the first network configuration information required for connecting the target router to the home appliance. The reason for starting the domain name resolution unit is that in the current embedded secondary applications such as applets and service numbers, direct access to the IP address is not allowed for safety, and after the local IP address is resolved by the domain name resolution unit, a directional connection can be established with the household appliance equipment under the condition that the permission requirement of the embedded secondary application is met, and data interaction is performed with the API interface unit according to a preset protocol. Meanwhile, after the local IP address is analyzed through the domain name analyzing unit in the embodiment, the connection established between the mobile terminal and the API unit belongs to directional connection, so that the embodiment has higher reliability and safety compared with the traditional methods for distributing networks through broadcasting, such as Smart Link, Airkiss and the like.
In addition, the scheme in this embodiment may be implemented by an APP (application program) developed by a home appliance manufacturer, or by a secondary application embedded in a third-party main application program, because after the scheme is adopted, the mobile terminal can access and perform data interaction on the API interface unit through a domain name address, and the access manner and the data interaction manner can already meet the permission requirements of embedded secondary applications such as applets and service numbers, and thus can be implemented in the embedded secondary applications. The APP developed by the household appliance manufacturer has more independent development permissions compared with the embedded secondary application, and generally only needs to meet the requirements of an operating system (such as an android system and an iOS system) without being limited by a third-party application program, so that functions which can be realized in the applet can be transplanted and realized without technical obstacles under the independent APP generally. Therefore, the method in the embodiment has good compatibility, and can be realized in APP developed by home appliance manufacturers or embedded secondary application.
In an embodiment of the method of the present invention, the second network configuration information includes a second SSID, a second Key, and the domain name address of the AP hotspot, and the step of sending, by the mobile terminal according to a preset protocol, the acquired first network configuration information for connecting to a target router to the home appliance includes:
the mobile terminal sends the first network configuration information according to the domain name address;
the household appliance analyzes the domain name address through the domain name analyzing unit, and the domain name analyzing unit forwards the first network configuration information to an API interface unit of the corresponding IP address.
In this embodiment, the second network configuration information includes a second SSID, a second Key, and the domain name address of the AP hotspot. The second SSID and the second Key are used for establishing connection between the mobile terminal and an AP hotspot opened by the home appliance, and the domain name address is used for sending the first network configuration information by the mobile terminal, that is, the mobile terminal sends a message containing the first network configuration information to an API interface unit corresponding to the domain name address, so that the home appliance acquires the first network configuration information. Because the mobile terminal sends the message according to the domain name address, and the address corresponding to the API interface unit is actually an IP address, when the home appliance receives the message sent by the mobile terminal, the home appliance needs to analyze the domain name address contained in the message through the domain name analyzing unit to analyze the corresponding IP address, and then forward the message containing the first network configuration information according to the analyzed IP address, so that the message is finally received by the API interface unit, and the first network configuration information required by the connection destination router is obtained from the message. For example, the local IP address of the home appliance device is 192.168.0.3, the mobile terminal acquires the second network configuration information and establishes a connection with the AP hotspot, wherein the domain name address is api.ap _ test.com; the obtained first SSID is: and ssid test, if the first Key is 123456, the mobile terminal sends a message according to the domain name address, and the specific content of the message is as follows: SSID _ test & KEY: 123456; the message is received by the household appliance device, the IP address corresponding to the domain name address api.AP _ test.com to be sent by the mobile terminal is analyzed to be 192.168.0.3 through the domain name analyzing unit, then the message is forwarded according to the analyzed IP address, and the message is forwarded to the API interface unit, and the API interface unit can analyze the content of the message because the message conforms to the preset communication protocol, so that the first SSID required by the connection target server is known to be SSID test, and the first Key is 123456. In this embodiment, the domain name address may be preset by a home appliance manufacturer, programmed in a home appliance device, and in an APP or embedded secondary application, and the mobile terminal may learn the domain name address through an APP or embedded secondary application program and send the domain name address; and because the mobile terminal establishes communication connection with the household appliance through the second SSID and the second Key, and the domain name address represents the household appliance at present, the message can be accurately sent to the household appliance for domain name resolution and content resolution, so that the household appliance can acquire the first SSID and the first Key required by the connection target router.
In an embodiment of the method of the present invention, the second network configuration information further includes a BSSID of the AP hotspot, and the step of the mobile terminal acquiring the second network configuration information required for connecting to the AP hotspot includes:
the mobile terminal obtains the second network configuration information by scanning a two-dimensional code, wherein the two-dimensional code comprises a second SSID and a BSSID of the AP hotspot, and requests a server for a second Key and the domain name address of the AP hotspot according to the second SSID and the BSSID; or,
and the mobile terminal acquires the second network configuration information by searching a preset SSID, wherein the preset SSID comprises a second SSID and a BSSID of the AP hotspot, and requests a server for a second Key and the domain name address of the AP hotspot according to the second SSID and the BSSID.
In this embodiment, the mobile terminal can establish communication connection with the AP hotspot through the second SSID and the second Key. The second network configuration information also comprises BSSID (MAC address of hotspot), the BSSID is usually unique as the MAC address of the hotspot and can be used for uniquely determining the household appliances which are currently distributed with the network, so that even if a plurality of devices of the company exist around a user, interference or mismatching can not occur, and the success rate and reliability are higher compared with a network distribution method in a broadcast mode and a method which only depends on SSID to distribute the network. On the other hand, the second SSID, the BSSID and the second Key are separately stored through the two-dimensional code or the preset SSID and the server, so that the safety of the distribution network can be improved, and the network configuration information required by the equipment distribution network is prevented from being leaked.
As shown in fig. 2, a communication link diagram of one embodiment of the present invention is disclosed. In this embodiment, the mobile terminal obtains the second SSID and the BSSID by scanning the code, where the two-dimensional code may be printed on the home appliance device or a specification of the home appliance device, or may be displayed on a display screen of the home appliance device for scanning by the mobile terminal. The mobile terminal accesses the server through a network connected with the mobile terminal according to a preset program after acquiring the second SSID and the BSSID, and requests a second Key and a domain name address, the server can uniquely determine the household appliance which a user wants to connect according to the second SSID and the BSSID, and sends the second Key and the domain name address of the corresponding household appliance to the mobile terminal, and the mobile terminal obtains the second SSID and the second Key which are required by connecting the AP hotspot completely, so that communication connection can be established with the household appliance, and then interface resources in the API interface unit can be called through the domain name address according to a preset protocol to perform data interaction. As another embodiment of the method of the present invention, the second SSID and the BSSID may also be written into a preset SSID of the home appliance according to a preset rule, and when the mobile terminal performs network search, the mobile terminal searches the preset SSID, and parses the second SSID and the BSSID from the preset SSID and the BSSID according to the rule, and goes to the server to request a corresponding second Key and a domain name address, so that a communication connection may be established with the home appliance through the second SSID and the second Key, and data interaction is performed by using the domain name address. By the embodiment of the invention, the success rate of the distribution network can be improved by avoiding mismatching, the classified storage of the second SSID and the second Key is realized, and the leakage of network configuration information is prevented.
In an embodiment of the method of the present invention, the second network configuration information further includes a BSSID of the AP hotspot, and the step of the mobile terminal acquiring the second network configuration information required for connecting to the AP hotspot includes:
the mobile terminal obtains the second network configuration information by scanning a two-dimensional code, wherein the two-dimensional code comprises a second SSID, a second Key, a BSSID and the domain name address of the AP hotspot; or,
and the mobile terminal acquires the second network configuration information by searching a preset SSID, wherein the preset SSID comprises a second SSID, a second Key, a BSSID and the domain name address of the AP hotspot.
In the embodiment, all information required for establishing complete connection and communication is put into the two-dimensional code or the preset SSID, so that the mobile terminal can obtain the second network configuration information only in a code scanning or preset SSID searching mode without going to the server for requesting, and the pressure of the server is reduced. The second SSID and the second Key are used for establishing communication connection between the mobile terminal and the household appliances, the BSSID can be used for uniquely determining the household appliances needing to be distributed, and the domain name address is used for data interaction between the mobile terminal and the household appliances.
As shown in fig. 3 and 4, is yet another embodiment of the present invention. Fig. 3 is a block diagram of the steps of this embodiment, which includes:
step 301, the mobile terminal obtains a first SSID of a router currently connected to: in a home environment, usually, only one router is provided, that is, the router to which the mobile terminal of the user is currently connected, and the user performs network distribution on the household appliance, and the household appliance is expected to be connected to the same router connected to the mobile terminal, so that the SSID of the router to which the mobile terminal is currently connected can be acquired as a default as the first SSID of the target router, and the trouble that the user inputs the SSID of the target router by himself is avoided;
step 302, configuring the home appliance as an AP hotspot, and starting a domain name resolution unit and an API interface unit: the household appliance equipment is configured to be an AP hotspot for connecting the mobile terminal, and a domain name resolution unit and an API interface unit are opened so that the mobile terminal can access and interact through a domain name address;
step 303, the mobile terminal obtains the second network configuration information by scanning the code or searching the preset SSID: the mobile terminal acquires second network configuration information required by connection and communication;
step 304, the mobile terminal disconnects from the router, and establishes a connection with the AP hotspot according to second network configuration information: the current mobile terminal generally cannot be connected with the router and the AP hotspot at the same time, so that the mobile terminal is required to disconnect the router at first and then connect the AP hotspot according to the second network configuration information;
step 305, the mobile terminal obtains a first Key input by the user, and sends the first SSID and the first Key to the household appliance according to a preset protocol: the first Key is input by a user, and because the connection relation between the mobile terminal and the household appliance is established, an interface can be called according to a preset protocol to send the first SSID and the first Key;
step 306, the home appliance feeds back the device information of the home appliance to the mobile terminal: the equipment information comprises the equipment ID, the equipment model and the manufacturer information of the household appliance equipment, and the mobile terminal can be used for establishing the binding relationship between the mobile terminal and the household appliance equipment after knowing the equipment information and can also confirm that the household appliance equipment successfully receives first network configuration information required by connecting a target router;
step 307, the mobile terminal feeds back confirmation information: when the home appliance device feeds back the device information to the mobile terminal, a packet loss condition may exist, so that the mobile terminal does not receive the device information, and at the moment, if the home appliance device is directly switched into the network of the router, the mobile terminal can always process the binding step, so that the whole process cannot be completely closed-loop, and the user experience is influenced;
step 308, after receiving the confirmation message, the home appliance device is configured to close the AP hotspot and connect to the router: after the home appliance device receives the confirmation information, the home appliance device can determine that the mobile terminal has finished the binding step, and at the moment, the home appliance device can close the AP hot spot function and connect the router according to the first network configuration information, so that the purpose of network distribution is achieved;
step 309, the mobile terminal disconnects the AP hotspot and reconnects the router: and the mobile terminal disconnects the AP hotspot, reconnects the router and recovers the WiFi connected with the mobile terminal.
Fig. 4 is a communication link diagram according to another embodiment of the present invention. In an embodiment of the method of the present invention, the first network configuration information includes a first SSID and a first Key required for connecting the target router, the target router is a router to which a mobile terminal is currently connected, and the step of establishing, by the mobile terminal, a connection with the AP hotspot according to the second network configuration information further includes: the mobile terminal acquires a first SSID of the target router, is disconnected with the target router, and establishes connection with the AP hotspot according to the second network configuration information; the first Key is obtained through input operation of a user. In the embodiment, the router which is currently connected with the mobile terminal is determined as the target router, so that the mobile terminal can directly acquire the first SSID of the router, and the complicated operation step of manually inputting the SSID of the target router by a user is omitted; the operating system generally does not allow the APP or applet, etc. to directly call the password information, and thus the first Key required to connect the router usually requires user input. It should be understood by those skilled in the art that the target router may not be the router to which the mobile terminal is currently connected, and at this time, the user is required to start the network discovery function of the mobile terminal to search for the first SSID of the target router by itself.
In an embodiment of the method of the present invention, the step of sending, by the mobile terminal, the acquired first network configuration information for connecting to the target router to the home appliance according to a preset protocol further includes:
after receiving the first network configuration information, the home appliance device feeds back device information of the home appliance device to the mobile terminal to establish a binding relationship, wherein the device information at least comprises one of the following: and the equipment ID, the equipment model and the manufacturer information of the household electrical appliance equipment. In this embodiment, during the network configuration, the home appliance feeds back the device information of itself to the mobile terminal, on one hand, the device information is confirmed that it has received the first network configuration information, and on the other hand, the device binding information is provided to the mobile terminal, so that the network configuration is performed while the binding operation between the mobile terminal and the home appliance is completed. After the household appliance is bound, when the user scans codes or searches for a preset SSID through the mobile terminal again, the household appliance automatically executes a networking process according to the first SSID and the first Key which are obtained last time, and skips a network configuration interface, so that an operation interface of the household appliance is directly displayed for the user.
In an embodiment of the method of the present invention, the step of connecting the home device to the target router through the first network configuration information further includes:
the mobile terminal receives the equipment information and then sends confirmation information to the household appliance equipment according to a preset protocol;
and the household appliance is configured to close the AP hotspot after receiving the confirmation information.
In this embodiment, the mobile terminal feeds back the acknowledgement information to prevent the mobile terminal from being continuously in the binding stage under the condition of packet loss, which affects the normal use of the mobile terminal by the user.
As shown in fig. 4, in one embodiment of the method of the present invention, step 401, step 402, step 404, step 406, step 407, step 408 and step 409 can be performed automatically by APP or applet without user operation; the household appliance can automatically switch to the AP mode and open the domain name resolution unit and the API interface unit when being powered on for the first time, and the user can realize the network distribution of the household appliance only by operating the step 403 (acquiring the second network configuration information in a code scanning or SSID searching mode) and the step 405 (manually inputting the first Key), so that the convenience of the household appliance is greatly improved compared with the conventional network distribution scheme that the user needs to automatically and frequently switch a WiFi network, switch the AP-STA mode of the household appliance and automatically acquire and input the SSID and the Key.
Fig. 5 is a schematic diagram of a distribution network process according to an embodiment of the method of the present invention. Wherein, after the household electrical appliance is powered on, the household electrical appliance is automatically switched to an AP mode, a domain name resolution unit and an API interface unit are started, a user connects the AP hotspot to a network configuration interface 501 after scanning a two-dimensional code or searching a preset SSID, the first SSID of a target router does not need to be input by the user as the default of accessing the household electrical appliance to the router currently connected with the mobile terminal, the first SSID of the target router only needs to be input by the user under the network configuration interface 501, the first Key of the target router is input by the user, the first network configuration information is sent to the household electrical appliance by clicking the mobile terminal after confirmation, the first network configuration information is entered into a waiting interface 502, after the first network configuration information is successfully received by the household electrical appliance, the self-equipment information is fed back to the mobile terminal, the interface is switched to an equipment binding interface 503, the confirmation information is fed back by the mobile terminal after the equipment receives the equipment information, the household electrical appliance can be switched off, and the mobile terminal and the target router are respectively connected with the household electrical appliance, meanwhile, the corresponding interface is switched to a household appliance operation interface 504, so that the user can control the household appliance.
In one embodiment of the method of the present invention, the steps performed by the mobile terminal in the method are implemented by an embedded secondary application, which includes an applet or service number embedded in a third party host application. By implementing the technical scheme of the invention through the embedded secondary application, the difficulty of downloading the APP by the user can be avoided, and the storage space of the mobile terminal of the user is not occupied, so that the user is helped to conveniently realize the network configuration process of the household appliance in a small program or a public number. In one embodiment of the method of the present invention, the embedded secondary application comprises any one of the following: WeChat small program, WeChat public number, Paibao Living number, today's first-line number, and Baidu light application.
In one embodiment of the method, the API interface unit simulates an API interface server and complies with an http protocol, and the preset protocol is the http protocol; or the API interface unit simulates an API interface server and conforms to the https protocol, and the preset protocol is the https protocol. In this embodiment, the API interface unit may be understood as a virtual API interface server, which complies with the http protocol or the https protocol, so that the mobile terminal should adopt a corresponding data format and specification when interacting with the API interface unit to ensure that the communication function is normally implemented. After the communication link is established, the mobile terminal and the API interface unit may perform data interaction according to a preset communication protocol by using a put interface and a get interface in http/https, and receive and transmit corresponding first network configuration information, device information, and acknowledgement information. The https adopts a certificate authentication mechanism for encryption, so that the security of the network configuration process can be further improved, and the leakage of network configuration information is prevented.
As shown in fig. 6, the present invention further discloses a WiFi module 600 applied to the method, which includes an AP unit 604, a domain name resolution unit 603, and an API interface unit 601, where the AP unit 604, the domain name resolution unit 603, and the API interface unit 601 are connected in series, where:
an AP unit 604, providing an AP hotspot for establishing a connection;
a domain name resolution unit 603, configured to simulate a domain name server, and perform resolution and conversion on a domain name address and an IP address;
the API interface unit 601 is configured to simulate an API interface server and provide API interface resources to the outside.
In this embodiment, the WiFi module 600 is disposed behind the home appliance, so that the home appliance has an AP hotspot function, and when the home appliance is switched to the AP mode, the AP unit 604 starts to operate, and provides a corresponding AP hotspot for the connection of an external device. Meanwhile, the WiFi module 600 also starts a domain name resolution unit 603 and an API interface unit 601, where the domain name resolution unit 603 simulates the function of a domain name server, can convert the local IP address of the AP hotspot into a domain name address, and can also resolve the domain name address in the message into a corresponding IP address and forward the IP address to the API interface unit 601; the API interface unit 601 simulates the function of the API interface server to provide API interface resources to the outside, so that the mobile terminal and the API interface unit 601 can transmit and receive data to and from each other. The WiFi module in this embodiment can be applied to the method described in the present invention to implement the network distribution of the home appliance device, and at the same time, since the WiFi module is provided with the domain name resolution unit 603 and the API interface unit 601, it can be compatible with APP, applet, and public number, and has better security and reliability in the transmission aspect of the network configuration information.
In one embodiment of the WiFi module of the present invention, the WiFi module 600 further includes a certificate authentication unit 602, configured to verify validity of the interaction data in the distribution network process through a certificate, so as to reduce a risk of leakage of the network configuration information.
In one embodiment of the WiFi module of the present invention, the WiFi module 600 further includes an LWIP protocol stack and a UART (universal asynchronous receiver transmitter), and further includes a driver layer and a hardware layer for supporting.
The above embodiments are merely illustrative of the design method of the present invention and are not intended to limit the scope of the present invention. The modifications and the conversion under the guidance of the technical scheme of the invention are all within the protection scope of the invention.

Claims (10)

1. A household electrical appliance network configuration method based on WiFi is characterized by comprising the following steps:
the household appliance is configured to be an AP hotspot, and a domain name resolution unit and an API interface unit are started, wherein the domain name resolution unit converts a local IP address of the household appliance into a domain name address so that an external device can go to the API interface unit through the domain name address to perform data interaction;
the mobile terminal acquires second network configuration information required for connecting the AP hotspot, wherein the second network configuration information comprises a domain name address;
the mobile terminal establishes connection with the AP hotspot according to the second network configuration information;
the mobile terminal sends the acquired first network configuration information for connecting the target router to the household appliance according to a preset protocol, wherein the mobile terminal sends the first network configuration information according to the domain name address, and the preset protocol is matched with the API unit;
and the household appliance is connected to the target router through the first network configuration information.
2. The method according to claim 1, wherein the second network configuration information further comprises a second SSID and a second Key of the AP hotspot;
after the mobile terminal acquires the second network configuration information, the household appliance analyzes the domain name address through the domain name analyzing unit, and the domain name analyzing unit forwards the first network configuration information to the API unit corresponding to the IP address.
3. The method according to claim 2, wherein the second network configuration information further includes BSSID of the AP hotspot, and the step of the mobile terminal acquiring the second network configuration information required for connecting to the AP hotspot comprises:
the mobile terminal obtains the second network configuration information by scanning a two-dimensional code, wherein the two-dimensional code comprises a second SSID and a BSSID of the AP hotspot, and requests a server for a second Key and the domain name address of the AP hotspot according to the second SSID and the BSSID; or,
and the mobile terminal acquires the second network configuration information by searching a preset SSID, wherein the preset SSID comprises a second SSID and a BSSID of the AP hotspot, and requests a server for a second Key and the domain name address of the AP hotspot according to the second SSID and the BSSID.
4. The method according to claim 2, wherein the second network configuration information further includes BSSID of the AP hotspot, and the step of the mobile terminal acquiring the second network configuration information required for connecting to the AP hotspot comprises:
the mobile terminal obtains the second network configuration information by scanning a two-dimensional code, wherein the two-dimensional code comprises a second SSID, a second Key, a BSSID and the domain name address of the AP hotspot; or,
and the mobile terminal acquires the second network configuration information by searching a preset SSID, wherein the preset SSID comprises a second SSID, a second Key, a BSSID and the domain name address of the AP hotspot.
5. The method according to claim 1, wherein the first network configuration information includes a first SSID and a first Key required for connecting the target router, the target router is a router to which a mobile terminal is currently connected, and the step of the mobile terminal establishing a connection with the AP hotspot according to the second network configuration information further includes: the mobile terminal acquires a first SSID of the target router, is disconnected with the target router, and establishes connection with the AP hotspot according to the second network configuration information; the first Key is obtained through input operation of a user.
6. The method according to any one of claims 1 to 5, wherein the step of the mobile terminal sending the acquired first network configuration information for connecting to the target router to the home device according to a preset protocol further comprises:
after receiving the first network configuration information, the home appliance device feeds back device information of the home appliance device to the mobile terminal to establish a binding relationship, wherein the device information at least comprises one of the following: and the equipment ID, the equipment model and the manufacturer information of the household electrical appliance equipment.
7. The method of claim 6, wherein the step of connecting the home device to the target router via the first network configuration information further comprises:
the mobile terminal receives the equipment information and then sends confirmation information to the household appliance equipment according to a preset protocol;
and the household appliance is configured to close the AP hotspot after receiving the confirmation information.
8. The method according to claim 6, wherein the steps performed by the mobile terminal in the method are implemented by an embedded secondary application comprising an applet or service number embedded in a third party host application.
9. The method according to any one of claims 1-5, 7 or 8, wherein the API interface unit simulates an API interface server and complies with an http protocol, and wherein the predetermined protocol is the http protocol; or the API interface unit simulates an API interface server and conforms to the https protocol, and the preset protocol is the https protocol.
10. A WiFi module applied to any one of the methods in claims 1-9, comprising an AP unit, a domain name resolution unit, and an API interface unit, which are connected in series, wherein:
the AP unit is used for providing an AP hotspot for establishing connection;
the domain name resolution unit is used for simulating a domain name server and performing resolution conversion on a domain name address and an IP address;
the API interface unit is used for simulating an API interface server and providing API interface resources for the outside.
CN201810665843.1A 2018-06-26 2018-06-26 Household appliance network configuration method and WiFi module Active CN110650070B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810665843.1A CN110650070B (en) 2018-06-26 2018-06-26 Household appliance network configuration method and WiFi module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810665843.1A CN110650070B (en) 2018-06-26 2018-06-26 Household appliance network configuration method and WiFi module

Publications (2)

Publication Number Publication Date
CN110650070A CN110650070A (en) 2020-01-03
CN110650070B true CN110650070B (en) 2021-12-03

Family

ID=68988445

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810665843.1A Active CN110650070B (en) 2018-06-26 2018-06-26 Household appliance network configuration method and WiFi module

Country Status (1)

Country Link
CN (1) CN110650070B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111405595A (en) * 2020-03-20 2020-07-10 太仓市同维电子有限公司 Router configuration and maintenance method based on WeChat small program
CN111787595B (en) * 2020-04-16 2023-03-10 北京京东尚科信息技术有限公司 Network distribution method, network distribution equipment and terminal equipment
CN111565137A (en) * 2020-04-28 2020-08-21 北京芯创睿胜科技有限公司 System and method for binding WiFi distribution network and equipment
CN111556500A (en) * 2020-05-11 2020-08-18 南昌傲亚信息有限公司 Technology for distributing network and authenticating WiFi (wireless fidelity) of equipment through WeChat applet
CN111866995B (en) * 2020-07-26 2021-01-19 广云物联网科技(广州)有限公司 WeChat applet-based intelligent device network distribution method and system
CN112165417B (en) * 2020-09-07 2022-03-18 珠海格力电器股份有限公司 Networking method of household appliance, electronic device and storage medium
CN112333686B (en) * 2020-11-05 2024-01-09 珠海奔图电子有限公司 Distribution network method, terminal device, image forming apparatus, and storage medium
CN112689316B (en) * 2020-12-18 2023-03-28 青岛海尔科技有限公司 Binding method and device of intelligent equipment, storage medium and electronic device
CN112738829B (en) * 2020-12-29 2023-07-21 青岛海尔科技有限公司 Response message processing method and device, storage medium and electronic device
CN112752325A (en) * 2020-12-30 2021-05-04 珠海格力电器股份有限公司 Network distribution method and device of household appliance, computer readable storage medium and processor
CN113037717A (en) * 2021-02-07 2021-06-25 深圳创维-Rgb电子有限公司 Network access method of intelligent device, terminal and readable storage medium
CN115086926A (en) * 2021-03-16 2022-09-20 浙江绍兴苏泊尔生活电器有限公司 Household appliance product
CN113923657A (en) * 2021-04-19 2022-01-11 海信(山东)冰箱有限公司 Refrigerator and networking binding method and control system thereof
CN113452787B (en) * 2021-06-28 2022-05-31 深圳市新龙鹏科技有限公司 Topic subscription forwarding management method, device, equipment and storage medium based on MQTT
CN114978793B (en) * 2022-05-20 2024-05-28 深圳创维-Rgb电子有限公司 Distribution network device and distribution network method
CN115119284A (en) * 2022-07-11 2022-09-27 珠海格力电器股份有限公司 Rapid network distribution method based on sound waves, mobile terminal and equipment to be distributed

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2704395A2 (en) * 2012-09-04 2014-03-05 ARXCEO Corporation System and method for protecting devices on dynamically configured network
CN104219734A (en) * 2014-09-15 2014-12-17 北京益杉科技有限公司 Internet access method and device for internet device
CN104540189A (en) * 2014-12-24 2015-04-22 北京奇虎科技有限公司 Method for providing wireless network access for mobile device through web device and web device
US9087193B2 (en) * 2012-11-13 2015-07-21 Gogo Llc Communication system and method for nodes associated with a vehicle
CN105704226A (en) * 2016-03-11 2016-06-22 北京奇虎科技有限公司 Intelligent terminal and network configuration method thereof
CN106209537A (en) * 2016-07-25 2016-12-07 深圳市双驰科技有限公司 A kind of home appliance and WIFI module, distribution method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2704395A2 (en) * 2012-09-04 2014-03-05 ARXCEO Corporation System and method for protecting devices on dynamically configured network
US9087193B2 (en) * 2012-11-13 2015-07-21 Gogo Llc Communication system and method for nodes associated with a vehicle
CN104219734A (en) * 2014-09-15 2014-12-17 北京益杉科技有限公司 Internet access method and device for internet device
CN104540189A (en) * 2014-12-24 2015-04-22 北京奇虎科技有限公司 Method for providing wireless network access for mobile device through web device and web device
CN105704226A (en) * 2016-03-11 2016-06-22 北京奇虎科技有限公司 Intelligent terminal and network configuration method thereof
CN106209537A (en) * 2016-07-25 2016-12-07 深圳市双驰科技有限公司 A kind of home appliance and WIFI module, distribution method

Also Published As

Publication number Publication date
CN110650070A (en) 2020-01-03

Similar Documents

Publication Publication Date Title
CN110650070B (en) Household appliance network configuration method and WiFi module
KR100414926B1 (en) System and method for provisioning or updating a mobile station using over-the-air transfer of interpreted byte-code program
EP3118700B1 (en) Intelligent home control method and system based on alljoyn technology
CN106130770B (en) Established using the simple connection of mixing networking of agent equipment
JP2005539420A (en) Device equal connection method when realizing dynamic network configuration in home network
CN104717225A (en) Internet of Things gateway access authentication method and system
JP2014501057A (en) Method and apparatus for sharing internet connection based on automatic configuration of network interface
CN104994527A (en) Method for intelligent household electrical appliance to access router, intelligent household electrical appliance and mobile terminal
CN111353141B (en) Intelligent device authority control method, server, user side device and electronic device
CN112152853A (en) Equipment network distribution method and device, computer-readable storage medium and electronic device
CN111132135A (en) Wireless network distribution method and system for intelligent household terminal
CN104702608A (en) WiFi sharing system
EP2171917B1 (en) System and method for providing device management service to electronic device having no broadband communication module
CN105338529A (en) Wireless network connecting method and system
US20110106956A1 (en) Communication System and Communication Method
CN106789470A (en) terminal resource sharing method, device and system
WO2016000398A1 (en) Communication method and device, mobile terminal and cloud server
KR20140010206A (en) Apparatus and method for connecting wireless network in consideration of radio frequency band
CN105636159A (en) Configuration method and device for connecting electric appliance with wireless router and mobile communication terminal
CN113473417A (en) Processing method and device for access service, storage medium and electronic equipment
CN104980994A (en) Equipment control method, device and mobile terminal
CN105246129B (en) The network-building method and device of a kind of intelligent terminal
CN106937405A (en) Control method and device of intelligent equipment and network connection method and system
CN111050380B (en) Hot spot starting method and device, terminal equipment and storage medium
CN106452828A (en) Provision protocol transmission-based terminal configuration method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant