CN113490213A - Air conditioner network distribution method and system - Google Patents

Air conditioner network distribution method and system Download PDF

Info

Publication number
CN113490213A
CN113490213A CN202110766778.3A CN202110766778A CN113490213A CN 113490213 A CN113490213 A CN 113490213A CN 202110766778 A CN202110766778 A CN 202110766778A CN 113490213 A CN113490213 A CN 113490213A
Authority
CN
China
Prior art keywords
air conditioner
network
preset
server
message
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.)
Pending
Application number
CN202110766778.3A
Other languages
Chinese (zh)
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.)
Aux Air Conditioning Co Ltd
Ningbo Aux Electric Co Ltd
Original Assignee
Aux Air Conditioning Co Ltd
Ningbo Aux Electric 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 Aux Air Conditioning Co Ltd, Ningbo Aux Electric Co Ltd filed Critical Aux Air Conditioning Co Ltd
Priority to CN202110766778.3A priority Critical patent/CN113490213A/en
Publication of CN113490213A publication Critical patent/CN113490213A/en
Pending legal-status Critical Current

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
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • H04W12/068Authentication using credential vaults, e.g. password manager applications or one time password [OTP] applications
    • 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
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention relates to the technical field of air conditioners, and provides an air conditioner network distribution method and system, which are applied to a preset network, wherein the preset network comprises a first air conditioner which is distributed with a network and a second air conditioner which is not distributed with the network, and the method comprises the following steps: the first air conditioner broadcasts a preset message to the preset network based on the received request message; the second air conditioner monitors the preset network to determine a target channel adopted for receiving the preset message; and the second air conditioner is used for distributing a network through the target channel and the first air conditioner. According to the embodiment of the invention, the second air conditioner determines the target channel for communication interaction with the first air conditioner through the preset message broadcast by the first air conditioner, and the automatic distribution of the second air conditioner is realized through the target channel and the distributed first air conditioner, so that the automatic distribution of the second air conditioner can be realized without inputting network configuration by a user in the whole distribution process, and the distribution efficiency is improved.

Description

Air conditioner network distribution method and system
Technical Field
The invention relates to the technical field of air conditioners, in particular to a method and a system for an air conditioner network distribution.
Background
At present, the air conditioner is generally provided with a Wi-Fi module, and the mode of distributing the network to the air conditioner based on the Wi-Fi module is as follows: a fast connection distribution network, a wireless Access Point (AP) distribution network, and the like. Due to the compatibility problem of some mobile terminals and routers and the defects of the fast-connection distribution network, the success rate of the fast-connection distribution network is not high compared with the AP distribution network, the AP distribution network gradually becomes a mainstream distribution network mode, but the AP distribution network needs a user to manually input network configuration information, so that the operation is complex, errors occur, and the distribution network efficiency is low.
Disclosure of Invention
The invention solves the problem of how to improve the distribution network efficiency of the air conditioner.
In order to solve the above problems, the present invention provides a method for distributing a network of air conditioners, which is applied to a preset network, wherein the preset network comprises a first air conditioner which is distributed with a network and a second air conditioner which is not distributed with the network, and the method comprises: the first air conditioner broadcasts a preset message to the preset network based on the received request message; the second air conditioner monitors the preset network to determine a target channel adopted for receiving the preset message; and the second air conditioner is used for distributing a network through the target channel and the first air conditioner.
Compared with the prior art, the air conditioner network distribution method has the following advantages: the preset network comprises a first air conditioner which is already distributed with a network and a second air conditioner which is not distributed with the network, the first air conditioner broadcasts a preset message to the preset network based on the received request message, and the second air conditioner monitors the preset network to determine a target channel adopted for receiving the preset message; and the second air conditioner is distributed with the network through the target channel and the first air conditioner. According to the invention, the second air conditioner determines the target channel for communication interaction with the first air conditioner through the preset message broadcast by the first air conditioner, and the automatic distribution network of the second air conditioner is realized through the target channel and the distributed first air conditioner, so that the automatic distribution network of the second air conditioner can be realized without inputting network configuration by a user in the whole distribution network process, and the distribution network efficiency is improved.
Further, the preset network further comprises a server and a mobile terminal, and the step of the second air conditioner performing network distribution through the target channel and the first air conditioner comprises:
the second air conditioner sends authentication information to the first air conditioner so that the first air conditioner sends the authentication information to the server;
the server authenticates the authentication information and sends a notification message for finding the second air conditioner to the mobile terminal after the authentication is passed;
the mobile terminal displays an interface to be confirmed based on the notification message, and after receiving a first verification code input by a user through the interface to be confirmed, the mobile terminal sends the first verification code to the server;
the server verifies the first verification code and sends a distribution network message to the first air conditioner after the first verification code passes the verification;
and the first air conditioner instructs the second air conditioner to distribute the network based on the distribution network message.
Further, the preset network further includes a router, and the step of the first air conditioner instructing the second air conditioner to perform a distribution network based on the distribution network message includes:
the first air conditioner sends network configuration information to the second air conditioner;
the second air conditioner carries out network configuration according to the network configuration information so as to establish network connection with the router;
the second air conditioner sends a registration request to the server through the router;
and the server establishes a binding relationship between the second air conditioner and the mobile terminal based on the registration request, and sends a message that the second air conditioner is successfully distributed to the mobile terminal.
Further, the authentication information includes an MAC address of the second air conditioner and a verification code ciphertext encrypted by using a preset key, the server locally stores the preset key, the server locally stores a mapping relationship between the MAC address and a corresponding preset verification code, and the step of authenticating the authentication information by the server includes:
decrypting the verification code ciphertext by using the preset secret key to obtain a second verification code;
judging whether the MAC address corresponds to the second verification code according to the mapping relation;
if so, the server judges that the authentication information passes the authentication;
and if not, the server judges that the authentication information fails to pass the authentication.
Further, the step of the server verifying the first verification code comprises:
if the first verification code is consistent with the second verification code, judging that the first verification code passes verification;
and if the first verification code is inconsistent with the second verification code, judging that the first verification code is not verified.
Further, the method further comprises:
the server authenticates the authentication information, and if the authentication fails, the server sends an authentication failure message to the first air conditioner;
and the first air conditioner sends the authentication failure message to the second air conditioner.
Further, the request message comprises a first request message, and the method further comprises:
the second air conditioner broadcasts a network access request message to the preset network;
and the first air conditioner monitors the preset network and takes the received network access request message as the first request message.
Further, the request message includes a second request message, the preset network further includes a mobile terminal and a server, and the method further includes:
the mobile terminal sends an adding request to the server;
the server transmits the addition request as the second request message to the first air conditioner.
Further, the step of the second air conditioner monitoring the preset network to determine a target channel used for receiving the preset message includes:
and the second air conditioner monitors the preset network sequentially through a plurality of preset channels, and takes the preset channel adopted for receiving the preset message as the target channel.
The invention also provides an air conditioner distribution network system which comprises a first air conditioner distributed to a preset network and a second air conditioner not distributed with the network;
the first air conditioner is used for broadcasting a preset message to the preset network based on the received request message;
the second air conditioner is used for monitoring the preset network so as to determine a target channel adopted for receiving the preset message;
and the second air conditioner is used for carrying out distribution network through the target channel and the first air conditioner.
Drawings
Fig. 1 is an exemplary diagram of an air conditioner distribution network system provided in the present invention.
Fig. 2 is an exemplary diagram of another air conditioner distribution network system provided by the present invention.
Fig. 3 is a flowchart of a method for distributing a network of an air conditioner according to the present invention.
Fig. 4 is a flowchart of another air conditioner network distribution method provided by the present invention.
Fig. 5 is a flowchart of another air conditioner network distribution method provided by the present invention.
Fig. 6 is a flowchart of another air conditioner network distribution method provided by the present invention.
Fig. 7 is a flowchart of another air conditioner network distribution method provided by the present invention.
Fig. 8 is a device interaction diagram of a network distribution method for an air conditioner provided by the invention.
Description of reference numerals:
10-a first air conditioner; 20-a second air conditioner; 30-a server; 40-a mobile terminal; 50-router.
Detailed Description
Although the AP distribution network has gradually become the mainstream distribution network, the AP distribution network also has some problems, for example: (1) when the Wi-Fi module of the air conditioner starts the AP hot spot, a hot spot password or a simple password is not set usually, and the connection is easy to crack, so that great potential safety hazard is caused; (2) when the AP is in a network distribution, a third-party APP is usually used for matching to complete connection of an air conditioner to be distributed to the router, but the mobile phone needs to be manually connected to the AP hotspot each time the network is distributed, so that the operation is complicated, and the operation efficiency is not high; (3) other applications without the distribution network function, such as applets, public numbers and the like, cannot complete distribution network operation due to the limitation of the APP, only can the third party APP be used for firstly distributing the network binding equipment, and the applets, the public numbers and the like can only complete the control function, cannot realize automatic distribution network and automatic binding, and have low distribution network efficiency; (4) when the network is distributed each time, a user needs to manually set network configuration, such as a router name and a password, and only one device can be distributed each time and the network needs to be switched, so that the operation is complex and the efficiency of the distribution network is low.
In view of the above, the present invention provides a method and a system for distributing a network of an air conditioner, which are used to improve the efficiency of the distribution network of the air conditioner, and in order to make the above objects, features and advantages of the present invention more obvious and understandable, the following detailed description of the embodiments of the present invention is made with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is an exemplary diagram of an air conditioner distribution network system according to the present invention, in fig. 1, the air conditioner distribution network system includes a first air conditioner 10 and a second air conditioner 20, the first air conditioner 10 has been distributed to a predetermined network, and the second air conditioner 20 has not been distributed. It is to be noted that the first air conditioner 10 and the second air conditioner 20 are both already provided with Wi-Fi modules for communication, and both obey the same preset communication protocol.
The first air conditioner is used for broadcasting a preset message to a preset network based on the received request message.
In this embodiment, the request message may be a network access request message sent by the second air conditioner 20 in a broadcast manner according to a preset communication protocol, for example, the preset communication protocol may be a protocol used by the same manufacturer, in which case, if the first air conditioner 10 and the second air conditioner 20 are products of the same manufacturer, the first air conditioner 10 can receive and recognize the network access request message sent by the second air conditioner 20.
The preset message may be a beacon data message of 802.11 (a communication protocol), where the preset message includes preset information agreed in advance by the first air conditioner 10 and the second air conditioner 20 or preset information organized in a preset format, for example, the first air conditioner 10 and the second air conditioner 20 both belong to a manufacturer, the preset message sent by the air conditioner manufactured by the manufacturer includes preset information "AKS", and after the second air conditioner 20 receives the preset message, if it is recognized that the preset message includes "AKS", it can be determined that the first air conditioner 10 sending the preset message and itself belong to the same manufacturer.
In this embodiment, the first air conditioner 10 is an air conditioner that has been distributed, and the distribution network mode adopted by the first air conditioner 10 may be an AP distribution network or a one-key fast-connection distribution network, and meanwhile, a binding relationship has been established between the first air conditioner 10 and the mobile terminal 40. The second air conditioner 20 is an air conditioner of an unpaved network.
The second air conditioner is used for monitoring a preset network so as to determine a target channel adopted for receiving the preset message.
In this embodiment, the second air conditioner 20 may pre-start the distribution network mode and the monitoring mode through a remote controller, and it is preset that various messages exist on the network, and channels used for sending the messages may not be the same. The second air conditioner 20 monitors various messages on the preset network, and determines that the channel adopted for receiving the preset message is the target channel when the preset message is monitored. Thereby, the second air conditioner 20 and the first air conditioner 10 can exchange data based on the target channel.
The second air conditioner is used for distributing a network through the target channel and the first air conditioner.
In this embodiment, after the target channel is determined, the first air conditioner 10 and the second air conditioner 20 may communicate with each other, and since the first air conditioner 10 has already been configured with a network, it may acquire network configuration information required by the network, at this time, the second air conditioner 20 may acquire the network configuration information from the first air conditioner 10 through the target channel to perform network configuration according to the network configuration information, thereby implementing communication with other devices in the preset network. In the whole distribution network process, the user does not need to manually input network configuration information or manually perform operations such as binding registration on the APP, and the like, so that the distribution network efficiency is greatly improved.
On the basis of fig. 1, an example of another air conditioner distribution network system is further provided in the embodiment of the present invention, please refer to fig. 2, fig. 2 is an example of another air conditioner distribution network system provided in the present invention, and in fig. 2, the preset network includes a server 30, a mobile terminal 40, and a router 50 in addition to a first air conditioner 10 and a second air conditioner 20. The server 30 may be a cloud server 30 or a computer device with a wireless communication function. The mobile terminal 40 may be a smartphone, laptop, tablet, or other removable electronic device.
As a specific implementation manner, the second air conditioner is further configured to sequentially monitor the preset network through a plurality of preset channels, and use a preset channel adopted for receiving the preset message as a target channel.
In the present embodiment, the preset channels include ch1-ch13 for 13 channels. Since the second air conditioner 20 cannot determine in advance which channel of the 13 channels the preset message is sent, in order to determine the target channel on which the preset message is based, after entering the distribution network mode, the second air conditioner 20 starts a monitoring mode, monitors the 802.11 air interface packet of the preset network, and switches the channel every preset time (for example, the preset time is 300ms), that is, polls the ch1-ch13 channel, until the target channel is determined. As a specific embodiment, the second air conditioner 20 locks the target channel immediately after determining the target channel, so as to perform data interaction with the first air conditioner 10 through the target channel. As a specific interactive mode, when the first air conditioner 10 and the second air conditioner 20 perform 802.11 management frame communication, a probe request data frame is used for requesting and a probe response data frame is used for responding in a question-and-answer mode.
In one embodiment, the second air conditioner is further configured to send authentication information to the first air conditioner, so that the first air conditioner sends the authentication information to the server.
In this embodiment, the authentication information is used to verify whether the second air conditioner 20 is a valid air conditioner, for example, if the second air conditioner 20 and the first air conditioner 10 do not belong to the same manufacturer, the second air conditioner 20 is an invalid air conditioner, so that the invalid air conditioner can be guaranteed to be allocated to the preset network, and the security of the distribution network is guaranteed.
In this embodiment, as a specific implementation manner, the authentication information may be a MAC address of the air conditioner, each air conditioner has its own unique MAC address, the authentication information may also be a MAC address of the air conditioner and a preset verification code, and the MAC address of each air conditioner corresponds to a specific verification code.
The server is also used for authenticating the authentication information and sending a notification message for finding the second air conditioner to the mobile terminal after the authentication is passed.
In the present embodiment, the notification message is used to indicate that the server 30 has found that the second air conditioner 20 and the second air conditioner 20 is authenticated as a valid air conditioner to be networked.
In this embodiment, as a specific implementation manner, the server 30 may store MAC addresses of all valid air conditioners in advance, and if the MAC address in the server 30 includes the MAC address in the authentication information, the server 30 determines that the authentication is passed, otherwise, the server 30 determines that the authentication is not passed.
The mobile terminal is further used for displaying an interface to be confirmed based on the notification message, and sending the first verification code to the server after receiving the first verification code input by the user through the interface to be confirmed.
In this embodiment, after receiving the notification message sent by the server 30, the mobile terminal 40 displays a to-be-confirmed interface, where the to-be-confirmed interface is used to allow the user to confirm again whether to continue to perform distribution on the second air conditioner 20, and on the other hand, to improve the security of the distribution network, the to-be-confirmed interface needs to be used to input the first verification code of the second air conditioner 20. The first verification code may be a 2-bit hexadecimal character displayed on an air conditioner panel of the second air conditioner 20, after the distribution network mode is started by the second air conditioner 20, the air conditioner panel of the second air conditioner can display the first verification code, the first verification code may be time-efficient, for example, the effective duration is 1 minute, if the user does not send the first verification code to the server 30 through the mobile terminal 40 within 1 minute, the second air conditioner 20 releases the distribution network mode, and the distribution network fails at this time.
The server is also used for verifying the first verification code and sending the distribution network message to the first air conditioner after the first verification code passes the verification.
In this embodiment, as a specific implementation manner, the server 30 temporarily stores the MAC address and the second verification code of the second air conditioner 20 that passes the authentication, the mobile terminal 40 sends the MAC address and the first verification code of the second air conditioner 20 to the server 30, and the server 30 may verify the first verification code by using the following manners:
if the first verification code is consistent with the second verification code, the first verification code is judged to pass the verification; and if the first verification code is inconsistent with the second verification code, judging that the first verification code fails to verify.
In this embodiment, the second air conditioner 20 exits the distribution network mode after receiving the verification failure message, and terminates the distribution network, where the distribution network fails.
The first air conditioner is also used for indicating the second air conditioner to carry out distribution network based on the distribution network information.
In one embodiment, the first air conditioner is further configured to send the network configuration information to the second air conditioner.
In this embodiment, since the first air conditioner 10 has already been configured with a network, the first air conditioner 10 may obtain the network configuration information, and the network configuration information may include router information, such as a name and a password of a router.
The second air conditioner is also used for carrying out network configuration according to the network configuration information so as to establish network connection with the router.
In this embodiment, after receiving the network configuration information, the second air conditioner 20 feeds back a response message of successful reception to the first air conditioner 10, the first air conditioner 10 exits from the monitoring mode based on the response message, meanwhile, the second air conditioner 20 exits from the distribution network mode, and after the second air conditioner 20 performs network configuration according to the network configuration information, the second air conditioner 20 establishes a network connection with the router 50.
The second air conditioner is also used for sending a registration request to the server through the router.
In this embodiment, although the second air conditioner 20 may communicate with other devices in the preset network after the network configuration, in order to enable the user to control the second air conditioner 20 at the mobile terminal 40, the second air conditioner 20 needs to register with the server 30, so that the server 30 establishes a binding relationship between the second air conditioner 20 and the mobile terminal 40, and thus, the user may control the second air conditioner 20 at the mobile terminal 40.
The server is also used for establishing a binding relationship between the second air conditioner and the mobile terminal based on the registration request and sending a message that the second air conditioner is successfully distributed to the mobile terminal.
In this embodiment, after the mobile terminal 40 receives the message that the second air conditioner 20 has successfully distributed the network, the second air conditioner 20 displays that the second air conditioner 20 is on line in the state of the mobile terminal 40, which means that the second air conditioner 20 can be controlled by the mobile terminal 40.
In order to further improve the security of the distribution network, as another specific embodiment, the authentication information includes an MAC address of the second air conditioner 20 and a verification code ciphertext encrypted by using a preset key, the preset key may be pre-burned into the Wi-Fi module of the second air conditioner 20, for example, the preset key is a license, meanwhile, the server 30 locally stores the preset key, the server locally stores a mapping relationship between the MAC address and the corresponding preset verification code, and the server is further configured to: decrypting the verification code ciphertext by using a preset secret key to obtain a second verification code; judging whether the MAC address corresponds to the second verification code according to the mapping relation; if so, the server judges that the authentication information passes the authentication; if not, the server judges that the authentication information fails to pass the authentication.
As a specific embodiment, the server is further configured to: if the first verification code is consistent with the second verification code, the first verification code is judged to pass the verification; and if the first verification code is inconsistent with the second verification code, judging that the first verification code fails to verify.
As a specific embodiment, the server is further configured to authenticate the authentication information, and if the authentication fails, send an authentication failure message to the first air conditioner.
The first air conditioner is also used for sending an authentication failure message to the second air conditioner.
In this embodiment, the second air conditioner 20 exits the distribution network mode after receiving the authentication failure message, and terminates the distribution network, where the distribution network fails.
As a specific implementation manner, the request message includes a first request message, and the second air conditioner is further configured to broadcast a network access request message to a preset network.
The first air conditioner is also used for monitoring a preset network and taking the received network access request message as a first request message.
In the present embodiment, the first request message is a request message from the second air conditioner 20.
As a specific implementation manner, the request message includes a second request message, and the mobile terminal is further configured to send an addition request to the server.
In this embodiment, since the first air conditioner 10 has already been configured with a network, and there is already a binding relationship between the first air conditioner 10 and the mobile terminal 40, as a specific implementation manner, on an interface displayed by the mobile terminal 40, it is displayed that the first air conditioner 10 has come online, there is an option of adding a device in operation options of the first air conditioner 10, and when this option is clicked, the mobile terminal 40 sends an addition request to the server 30.
The server is also configured to send the addition request to the first air conditioner as a second request message.
In this embodiment, the second request message is a request message from the server 30.
In fig. 2, as a specific embodiment, a user may click a button of an add device on a mobile terminal 40 (typically implemented by an APP pre-installed on the mobile terminal 40), the mobile terminal 40 sends an add request to a server 30, the server 30 sends a request message to a first air conditioner 10, the first air conditioner 10 is configured to broadcast a preset message to a preset network based on the received request message, a second air conditioner 20 monitors the preset network to determine a target channel used for receiving the preset message, the second air conditioner 20 sends authentication information to the first air conditioner 10 after determining the target channel, the first air conditioner 10 transmits the authentication message to the server 30, the server authenticates the authentication information, the authentication is passed and sends a notification message for finding the second air conditioner to the mobile terminal 40, the mobile terminal 40 displays an interface to be confirmed based on the notification message, the user inputs the first verification code through the interface to be confirmed, the mobile terminal 40 sends the first verification code to the server 30 for verification, and sends a distribution network message to the first air conditioner 10 after the verification is passed, the first air conditioner 10 sends network configuration information to the second air conditioner 20 based on the distribution network message, the second air conditioner 20 performs network configuration according to the network configuration information to establish network connection with the router 50, the second air conditioner 20 sends a registration request to the server 30 through the router 50, the server 30 binds the second air conditioner 20 and the mobile terminal 40 and sends a message that the distribution network of the second air conditioner 20 is successful to the mobile terminal 40, the user can control the second air conditioner 20 at the mobile terminal 40, and at this time, the second air conditioner 20 finishes the automatic distribution of the network. On one hand, the whole network distribution process does not need the user to manually input network configuration information or manually perform operations such as binding registration on the APP, so that the efficiency of the network distribution is greatly improved, and on the other hand, the authentication information is authenticated and the verification code is verified, so that the security of the distribution network of the second air conditioner 20 is improved.
It should be understood that fig. 2 is only an exemplary diagram, and in an actual application scenario, the number of the second air conditioners 20 may be multiple, and the router 50 may also be other communication devices having the same function, such as a switch having a routing function, and the like.
On the basis of fig. 1, an embodiment of the present invention further provides an air conditioner network distribution method applied to the air conditioner network distribution system in fig. 1, please refer to fig. 3, and fig. 3 is a flowchart of the air conditioner network distribution method provided by the present invention, where the method includes the following steps:
step S100, the first air conditioner broadcasts a preset message to a preset network based on the received request message.
Step S110, the second air conditioner monitors the preset network to determine a target channel used for receiving the preset message.
And step S120, the second air conditioner performs distribution network through the target channel and the first air conditioner.
According to the method provided by the embodiment of the invention, firstly, the automatic distribution of the second air conditioner can be realized without inputting network configuration by a user, so that the distribution efficiency is improved; secondly, the mobile terminal does not need to be connected to the AP hotspot firstly like an AP distribution network, so that the operation of the distribution network is reduced, and the distribution network efficiency is improved.
On the basis of fig. 3, an embodiment of the present invention further provides a specific implementation manner of determining a target channel, please refer to fig. 4, where fig. 4 is a flowchart of another air conditioner network distribution method provided by the present invention, and step S110 includes the following sub-steps:
in the substep S1100, the second air conditioner monitors the preset network sequentially through the plurality of preset channels, and uses the preset channel adopted for receiving the preset message as the target channel.
On the basis of fig. 3, an embodiment of the present invention further provides a specific implementation manner of performing a distribution network through the target channel and the first air conditioner 10, please continue to refer to fig. 4, and step S120 includes the following sub-steps:
in the substep S1201, the second air conditioner transmits the authentication information to the first air conditioner so that the first air conditioner transmits the authentication information to the server.
And a substep S1202, the server authenticates the authentication information and sends a notification message for finding the second air conditioner to the mobile terminal after the authentication is passed.
In order to further improve the security of the distribution network, as another specific embodiment, the authentication information includes an MAC address of the second air conditioner 20 and a verification code ciphertext encrypted by using a preset key, the preset key may be pre-programmed into a Wi-Fi module of the second air conditioner 20, for example, the preset key is a license, meanwhile, the server 30 pre-stores a mapping relationship between the preset key and the MAC address and a corresponding preset verification code, and the method for the server 30 to authenticate the authentication information may be:
firstly, a preset key is used for decrypting the verification code ciphertext to obtain a second verification code.
According to the embodiment of the invention, the verification code is encrypted and then transmitted, so that the condition that the security of the distribution network is influenced by malicious interception or tampering in the verification code transmission process is avoided.
Secondly, judging whether the MAC address corresponds to the second verification code according to the mapping relation, and if so, judging that the authentication information passes the authentication by the server; if not, the server judges that the authentication information fails to pass the authentication.
As a specific implementation manner, the server 30 may also store MAC addresses of all valid air conditioners and corresponding preset verification codes in advance, the server 30 may first determine whether the MAC address of the second air conditioner 20 belongs to the MAC address of the valid air conditioner, if not, determine that the authentication information fails to be authenticated, if yes, further determine whether the preset verification code corresponding to the MAC address of the second air conditioner 20 in the server 30 is consistent with the second verification code, if yes, determine that the authentication information passes, and if not, determine that the authentication information fails.
In this embodiment, as another specific implementation manner, the server 30 may locally pre-store the identifier of the second air conditioner 20 and the corresponding preset verification code, the mobile terminal 40 sends the first verification code and the identifier of the second air conditioner 20 to the server 30, the server 30 determines whether the first verification code is consistent with the locally stored preset verification code of the second air conditioner 20, if so, the verification is passed, otherwise, the verification is not passed.
In this embodiment, as a specific implementation manner, when the server 30 does not authenticate the authentication information, the following manner may be further used:
first, the server authenticates the authentication information, and if the authentication fails, the server sends an authentication failure message to the first air conditioner.
Secondly, the first air conditioner sends an authentication failure message to the second air conditioner.
In sub-step S1203, the mobile terminal displays an interface to be confirmed based on the notification message, and after receiving a first verification code input by the user through the interface to be confirmed, sends the first verification code to the server.
And a substep S1204, the server verifies the first verification code and sends a distribution network message to the first air conditioner after the verification is passed.
And a substep S1205 that the first air conditioner instructs the second air conditioner to distribute the network based on the distribution network message.
According to the distribution network method provided by the embodiment of the invention, through authenticating the authentication information and verifying the first verification code, other illegal air conditioners or illegal equipment are prevented from being accessed to a preset network, and the safety of the distribution network of the second air conditioner 20 is ensured.
On the basis of fig. 4, an embodiment of the present invention further provides a specific implementation manner of a second air conditioner distribution network, please refer to fig. 5, fig. 5 is a flowchart of another air conditioner distribution network method provided by the present invention, and sub step S1205 includes the following sub steps:
in sub-step S12050, the first air conditioner sends the network configuration information to the second air conditioner.
In the substep S12051, the second air conditioner performs network configuration according to the network configuration information to establish network connection with the router.
In sub-step S12052, the second air conditioner transmits a registration request to the server through the router.
In the substep S12053, the server establishes a binding relationship between the second air conditioner and the mobile terminal based on the registration request, and sends a message that the second air conditioner is successfully distributed to the mobile terminal.
According to the method provided by the embodiment, because the network configuration can be automatically performed and the second air conditioner 20 can be automatically bound after the network configuration is completed, a user can directly control the second air conditioner 20 through the mobile terminal 40, unlike applications without the function of the network configuration, such as small programs and public numbers, which require a third party APP to firstly distribute the network binding equipment and then control the second air conditioner 20 through the applications such as the small programs.
It should be further noted that after the binding relationship between the second air conditioner 20 and the mobile terminal 40 is established, the mobile terminal 40 displays that the second air conditioner 20 is in an online state, in order to implement a Machine-to-Machine interaction mode M2M (Machine to Machine, M2M) between the second air conditioner 20 and the server 30, the second air conditioner 20 sends an M2M login request to the server 30, and the server 30 receives the login request and feeds back a message of successful login to the second air conditioner 20.
It should be noted that when there are multiple second air conditioners 20, a network may be allocated to multiple second air conditioners 20 at the same time, for example, a user only needs to operate once at the mobile terminal 40 (usually through APP on the mobile terminal 40) to request an operation of adding a device, the first air conditioner 10 may interact with multiple second air conditioners 20, according to the method described above, when each detected second air conditioner 20, the user is notified to confirm at the mobile terminal 40, and the network allocation of each second air conditioner 20 is completed according to the corresponding network allocation flow.
It should be further noted that, the APP or applet device discovery function may be manually set to be on or off, when the APP or applet device discovery function is on, the first air conditioner 10 may perform the steps in the above embodiment to discover the second air conditioner 20, and when the APP or applet device discovery function is off, the first air conditioner 10 may not discover the second air conditioner 20, thereby avoiding the user from being confused by touching the first air conditioner 10 to discover the second air conditioner 20, and also improving the security of the distribution network binding.
In this embodiment, the request message received by the first air conditioner 10 includes two different situations, and the request message may be from the second air conditioner 20 or from the server 30, so the embodiment of the present invention further provides a generation manner of the request message in the two situations, please refer to fig. 6, fig. 6 is a flowchart of another air conditioner network distribution method provided by the present invention, and the method may be applied to the air conditioner network distribution system shown in fig. 1 or fig. 2 corresponding to the situation that the request message is from the second air conditioner 20, and the method includes the following steps:
and step S200, the second air conditioner broadcasts a network access request message to a preset network.
Step S210, the first air conditioner monitors a preset network, and uses the received network access request message as a first request message.
Referring to fig. 7, fig. 7 is a flowchart of another air conditioner network distribution method provided by the present invention, and the method, corresponding to the case that the request message comes from the server 30, may be applied to the air conditioner network distribution system shown in fig. 2, and includes the following steps:
in step S300, the mobile terminal sends an addition request to the server.
In step S310, the server transmits the addition request as a second request message to the first air conditioner.
In order to more clearly illustrate the interaction among the first air conditioner 10, the second air conditioner 20, the server 30, the mobile terminal 40 and the router 50, an apparatus interaction diagram corresponding to an air conditioner network distribution method is further provided in the embodiment of the present invention, please refer to fig. 8, and fig. 8 is an apparatus interaction diagram of an air conditioner network distribution method provided by the present invention. In fig. 8, the device interaction steps are as follows:
s1: the second air conditioner enters a key distribution network mode.
S2: and the mobile terminal receives the operation of the adding equipment of the user and sends an adding message to the server.
S3: the mobile terminal sends a request message to the server so that the server instructs the first air conditioner to enter a monitoring mode to search for a second air conditioner, wherein the request message is an mqtt message.
S4: as a specific embodiment, the first air conditioner enters a listening mode and transmits a preset broadcast message, and may transmit one frame in 100ms, where each channel stays for 300 ms.
S5: the second air conditioner transmits a network entry request broadcast packet (probe req).
S6: the first air conditioner responds to the network access request unicast packet (probe resp) and the ciphertext.
S7: and the second air conditioner locks the target channel after determining the target channel and sends the authentication information to the first air conditioner.
S8: the first air conditioner transmits authentication information, which is transmitted through an mqtt message, to the server.
S9: the server performs authentication information authentication, the authentication does not pass to S10, and the authentication passes to S13.
S10: and the server sends a message of exiting the distribution network to the first air conditioner.
S11: and the first air conditioner sends a message of exiting the distribution network to the second air conditioner.
S12: and the second air conditioner returns a message of quitting the distribution network to the first air conditioner, the message is successfully received, and quits the distribution network, and the distribution network is ended.
S13: the server informs the mobile terminal to display the page to be confirmed.
S14: the mobile terminal receives the verification code input by the user and sends the verification code to the server.
S15: and the server verifies the verification code, and sends a distribution network message to the first air conditioner after the verification is passed, wherein the distribution network message is an mqtt message and comprises an opcode.
S16: the first air conditioner sends network configuration information to the second air conditioner based on the distribution network information, wherein the network configuration information comprises routing information, a domain name and an opcode.
S17: and the second air conditioner returns a message that the network configuration information is successfully received to the first air conditioner.
S18: and the first air conditioner exits the monitoring mode based on the message that the network configuration information returned by the first air conditioner is successfully received.
S19: the second air conditioner exits the distribution network mode.
S20: the second air conditioner is connected with the router.
S21: and the second air conditioner sends a device registration message to the server, wherein the device registration message carries the opcode.
S22: the server returns did (i.e., device id) to the second air conditioner.
S23: the server automatically binds the equipment and informs the mobile terminal that the distribution network is successful.
S24: the second air conditioner transmits an M2M login request to the server.
S25: and the server returns a notification of successful login to the second air conditioner.
In summary, an embodiment of the present invention provides a method and a system for distributing a network of air conditioners, which are applied to a preset network, where the preset network includes a first air conditioner that has been distributed and a second air conditioner that has not been distributed, and the method includes: the first air conditioner broadcasts a preset message to the preset network based on the received request message; the second air conditioner monitors the preset network to determine a target channel adopted for receiving the preset message; and the second air conditioner is used for distributing a network through the target channel and the first air conditioner. According to the embodiment of the invention, the second air conditioner determines the target channel for communication interaction with the first air conditioner through the preset message broadcast by the first air conditioner, and the automatic distribution of the second air conditioner is realized through the target channel and the distributed first air conditioner, so that the automatic distribution of the second air conditioner can be realized without inputting network configuration by a user in the whole distribution process, and the distribution efficiency is improved.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A method for distributing a network of air conditioners is applied to a preset network, wherein the preset network comprises a first air conditioner which is distributed and a second air conditioner which is not distributed, and the method comprises the following steps:
the first air conditioner broadcasts a preset message to the preset network based on the received request message;
the second air conditioner monitors the preset network to determine a target channel adopted for receiving the preset message;
and the second air conditioner is used for distributing a network through the target channel and the first air conditioner.
2. The air conditioner network distribution method according to claim 1, wherein the preset network further comprises a server and a mobile terminal, and the step of distributing the network by the second air conditioner through the target channel and the first air conditioner comprises:
the second air conditioner sends authentication information to the first air conditioner so that the first air conditioner sends the authentication information to the server;
the server authenticates the authentication information and sends a notification message for finding the second air conditioner to the mobile terminal after the authentication is passed;
the mobile terminal displays an interface to be confirmed based on the notification message, and after receiving a first verification code input by a user through the interface to be confirmed, the mobile terminal sends the first verification code to the server;
the server verifies the first verification code and sends a distribution network message to the first air conditioner after the first verification code passes the verification;
and the first air conditioner instructs the second air conditioner to distribute the network based on the distribution network message.
3. The method for distributing the network of the air conditioners as claimed in claim 2, wherein the preset network further comprises a router, and the step of the first air conditioner instructing the second air conditioner to distribute the network based on the distribution network message comprises:
the first air conditioner sends network configuration information to the second air conditioner;
the second air conditioner carries out network configuration according to the network configuration information so as to establish network connection with the router;
the second air conditioner sends a registration request to the server through the router;
and the server establishes a binding relationship between the second air conditioner and the mobile terminal based on the registration request, and sends a message that the second air conditioner is successfully distributed to the mobile terminal.
4. The air conditioner network distribution method according to claim 2, wherein the authentication information includes an MAC address of the second air conditioner and a verification code ciphertext encrypted by using a preset key, the preset key is locally stored in the server, a mapping relationship between the MAC address and a corresponding preset verification code is also locally stored in the server, and the step of authenticating the authentication information by the server includes:
decrypting the verification code ciphertext by using the preset secret key to obtain a second verification code;
judging whether the MAC address corresponds to the second verification code according to the mapping relation;
if so, the server judges that the authentication information passes the authentication;
and if not, the server judges that the authentication information fails to pass the authentication.
5. The air conditioner network distribution method according to claim 4, wherein the step of verifying the first verification code by the server comprises:
if the first verification code is consistent with the second verification code, judging that the first verification code passes verification;
and if the first verification code is inconsistent with the second verification code, judging that the first verification code is not verified.
6. The air conditioner network distribution method according to claim 2, further comprising:
the server authenticates the authentication information, and if the authentication fails, the server sends an authentication failure message to the first air conditioner;
and the first air conditioner sends the authentication failure message to the second air conditioner.
7. The air conditioner network distribution method of claim 1, wherein the request message comprises a first request message, the method further comprising:
the second air conditioner broadcasts a network access request message to the preset network;
and the first air conditioner monitors the preset network and takes the received network access request message as the first request message.
8. The air conditioner network distribution method according to claim 1, wherein the request message comprises a second request message, the preset network further comprises a mobile terminal and a server, and the method further comprises:
the mobile terminal sends an adding request to the server;
the server transmits the addition request as the second request message to the first air conditioner.
9. The air conditioner network distribution method according to claim 1, wherein the step of the second air conditioner monitoring the preset network to determine a target channel used for receiving the preset message comprises:
and the second air conditioner monitors the preset network sequentially through a plurality of preset channels, and takes the preset channel adopted for receiving the preset message as the target channel.
10. The air conditioner distribution network system is characterized by comprising a first air conditioner which is distributed to a preset network and a second air conditioner which is not distributed with the network;
the first air conditioner is used for broadcasting a preset message to the preset network based on the received request message;
the second air conditioner is used for monitoring the preset network so as to determine a target channel adopted for receiving the preset message;
and the second air conditioner is used for carrying out distribution network through the target channel and the first air conditioner.
CN202110766778.3A 2021-07-07 2021-07-07 Air conditioner network distribution method and system Pending CN113490213A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110766778.3A CN113490213A (en) 2021-07-07 2021-07-07 Air conditioner network distribution method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110766778.3A CN113490213A (en) 2021-07-07 2021-07-07 Air conditioner network distribution method and system

Publications (1)

Publication Number Publication Date
CN113490213A true CN113490213A (en) 2021-10-08

Family

ID=77941657

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110766778.3A Pending CN113490213A (en) 2021-07-07 2021-07-07 Air conditioner network distribution method and system

Country Status (1)

Country Link
CN (1) CN113490213A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022095709A1 (en) * 2020-11-05 2022-05-12 华为技术有限公司 Device network configuration method and apparatus

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104270758A (en) * 2014-10-10 2015-01-07 乐鑫信息科技(上海)有限公司 Method for safely establishing connection with server and conducting authorization through WIFI
CN104468524A (en) * 2014-11-14 2015-03-25 小米科技有限责任公司 Permission verification method and device
CN104597890A (en) * 2015-02-13 2015-05-06 联想(北京)有限公司 Information processing method and electronic device
CN105101464A (en) * 2015-06-30 2015-11-25 广东美的制冷设备有限公司 Wireless network configuration method and wireless network configuration system
CN106332224A (en) * 2016-09-18 2017-01-11 美的智慧家居科技有限公司 Equipment networking method, equipment networking device and equipment networking system
CN106921963A (en) * 2017-01-22 2017-07-04 海尔优家智能科技(北京)有限公司 A kind of smart machine accesses the method and device of WLAN
CN107277812A (en) * 2017-07-11 2017-10-20 上海斐讯数据通信技术有限公司 A kind of wireless network authentication method and system based on Quick Response Code
CN107360027A (en) * 2017-07-10 2017-11-17 绵阳美菱软件技术有限公司 The distribution method, apparatus and intelligent appliance of a kind of intelligent appliance
CN108809737A (en) * 2018-07-27 2018-11-13 杭州古北电子科技有限公司 Equipment network distribution device, system and method
CN108833238A (en) * 2018-07-27 2018-11-16 杭州古北电子科技有限公司 Equipment matches network method
CN109831410A (en) * 2018-12-20 2019-05-31 美的集团股份有限公司 Smart machine right management method, distribution net equipment, server and electronic equipment
CN109890065A (en) * 2017-12-06 2019-06-14 九阳股份有限公司 A kind of network-building method and system of household appliance
CN110098984A (en) * 2018-01-29 2019-08-06 九阳股份有限公司 A kind of household appliance networking implementation method
CN110149678A (en) * 2019-06-10 2019-08-20 深圳国美云智科技有限公司 Distribution methods, devices and systems
CN110235456A (en) * 2017-01-09 2019-09-13 云丁网络技术(北京)有限公司 Smart machine method of network entry, mobile terminal, Cloud Server, equipment and system

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104270758A (en) * 2014-10-10 2015-01-07 乐鑫信息科技(上海)有限公司 Method for safely establishing connection with server and conducting authorization through WIFI
CN104468524A (en) * 2014-11-14 2015-03-25 小米科技有限责任公司 Permission verification method and device
CN104597890A (en) * 2015-02-13 2015-05-06 联想(北京)有限公司 Information processing method and electronic device
CN105101464A (en) * 2015-06-30 2015-11-25 广东美的制冷设备有限公司 Wireless network configuration method and wireless network configuration system
CN106332224A (en) * 2016-09-18 2017-01-11 美的智慧家居科技有限公司 Equipment networking method, equipment networking device and equipment networking system
CN110235456A (en) * 2017-01-09 2019-09-13 云丁网络技术(北京)有限公司 Smart machine method of network entry, mobile terminal, Cloud Server, equipment and system
CN106921963A (en) * 2017-01-22 2017-07-04 海尔优家智能科技(北京)有限公司 A kind of smart machine accesses the method and device of WLAN
CN107360027A (en) * 2017-07-10 2017-11-17 绵阳美菱软件技术有限公司 The distribution method, apparatus and intelligent appliance of a kind of intelligent appliance
CN107277812A (en) * 2017-07-11 2017-10-20 上海斐讯数据通信技术有限公司 A kind of wireless network authentication method and system based on Quick Response Code
CN109890065A (en) * 2017-12-06 2019-06-14 九阳股份有限公司 A kind of network-building method and system of household appliance
CN110098984A (en) * 2018-01-29 2019-08-06 九阳股份有限公司 A kind of household appliance networking implementation method
CN108833238A (en) * 2018-07-27 2018-11-16 杭州古北电子科技有限公司 Equipment matches network method
CN108809737A (en) * 2018-07-27 2018-11-13 杭州古北电子科技有限公司 Equipment network distribution device, system and method
WO2020020312A1 (en) * 2018-07-27 2020-01-30 杭州博联智能科技股份有限公司 Network pairing method for device
CN109831410A (en) * 2018-12-20 2019-05-31 美的集团股份有限公司 Smart machine right management method, distribution net equipment, server and electronic equipment
CN110149678A (en) * 2019-06-10 2019-08-20 深圳国美云智科技有限公司 Distribution methods, devices and systems

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022095709A1 (en) * 2020-11-05 2022-05-12 华为技术有限公司 Device network configuration method and apparatus

Similar Documents

Publication Publication Date Title
US20220264431A1 (en) Method for Provisioning of Smart Device, System, and Readable Medium
EP2617222B1 (en) Dynamic account creation with secured hotspot network
KR102005408B1 (en) Method and apparatus for registering and authenticating a device in a wireless communication system
EP2248322B1 (en) Methods and apparatus for wireless device registration
CN106332085A (en) Internet of things WIFI network configuration method, Internet of things terminal and routing terminal
US7584360B2 (en) Data sending/receiving device and digital certificate issuing method
CN107567017B (en) Wireless connection system, device and method
KR101613170B1 (en) Apparatus and method for providing access point function in portable communication system
EP2210389B1 (en) Apparatus, method, and computer program for establishing a service session
CN104144463A (en) Wi-fi network access method and system
EP2561696B1 (en) Method and apparatus for machine communication
US9007957B2 (en) Wireless network setup and configuration distribution system
CN113132983B (en) Network disconnection reconnection method for intelligent terminal
CN108541077B (en) WPS-based rapid network distribution method and system for intelligent hardware equipment
CN108966363B (en) Connection establishing method and device
CN105338529A (en) Wireless network connecting method and system
US20080119136A1 (en) Access point with bluetooth transducer
JP6046782B1 (en) Wireless communication system, repeater, wireless terminal, and wireless communication method
CN113194476B (en) Equipment activation and authentication binding method
CN113490213A (en) Air conditioner network distribution method and system
CN113068181A (en) Multi-type intelligent terminal safe network access method
EP2865210A1 (en) Device to machine communications
KR101161025B1 (en) A method and apparatus for establishing traffic channel in advance in a mobile communication system
EP2891299B1 (en) Systems and methods for efficient remote security panel configuration and management
JP2001285956A (en) Wireless communication network system and its wireless station unit

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