CN112087745A - Network distribution method and device of household appliance, electronic device and storage medium - Google Patents

Network distribution method and device of household appliance, electronic device and storage medium Download PDF

Info

Publication number
CN112087745A
CN112087745A CN201910505124.8A CN201910505124A CN112087745A CN 112087745 A CN112087745 A CN 112087745A CN 201910505124 A CN201910505124 A CN 201910505124A CN 112087745 A CN112087745 A CN 112087745A
Authority
CN
China
Prior art keywords
router
data packet
connection
local area
list
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
CN201910505124.8A
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.)
Midea Group Co Ltd
GD Midea Air Conditioning Equipment Co Ltd
Original Assignee
Midea Group Co Ltd
GD Midea Air Conditioning Equipment 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 Midea Group Co Ltd, GD Midea Air Conditioning Equipment Co Ltd filed Critical Midea Group Co Ltd
Priority to CN201910505124.8A priority Critical patent/CN112087745A/en
Publication of CN112087745A publication Critical patent/CN112087745A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/009Security arrangements; Authentication; Protecting privacy or anonymity specially adapted for networks, e.g. wireless sensor networks, ad-hoc networks, RFID networks or cloud networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/40Connection management for selective distribution or broadcast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Landscapes

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

Abstract

The application provides a network distribution method and device of household appliances, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring a router list; the names and the passwords of a plurality of routers in the router list are the same; acquiring a first router from a router list according to a preset polling strategy, and establishing connection with the first router; transmitting a broadcast data packet in a local area network connected with a first router; and if the confirmation information generated by the terminal equipment according to the broadcast data packet is received within the preset time, the first router is connected. Therefore, the technical problem that in the prior art, the terminal device and the WiFi module are connected to different routers and cannot handshake in the same local area network to cause failure of distribution network is effectively solved, the broadcasting data packet is sent in the local area network connected with each router to ensure that the WiFi module and the terminal device are in the local area network of the same router, the probability of discovery of household appliances is improved, and the success rate of distribution network is improved.

Description

Network distribution method and device of household appliance, electronic device and storage medium
Technical Field
The present application relates to the field of household appliance technologies, and in particular, to a network distribution method and apparatus for a household appliance, an electronic device, and a storage medium.
Background
At present, a network distribution mode of a WiFi module is that an application program in a terminal device sends a name and a password of a router to the WiFi module, and after the WiFi module is connected to the router according to the name and the password of the router, the application program in the terminal device and the WiFi module perform handshaking in a local area network built by the router to complete discovery and activation binding of household appliances.
At present, with the popularization of wireless networks, the requirement on the coverage area of the network is higher and higher, so that a wireless environment built by a plurality of routers appears, and meanwhile, for convenience in use, the name and the password set by each router are the same. In such a network environment, the terminal device only sends the name and the password of the router to the WiFi module, which may cause the terminal device and the WiFi module to connect to different routers, and the two devices cannot handshake in the same local area network, resulting in a failure of the distribution network.
Disclosure of Invention
The embodiment of the application provides a network distribution method, a network distribution device, an electronic device and a storage medium of household appliances, solves the technical problem that in the prior art, a terminal device and a WiFi module are connected to different routers and cannot handshake in the same local area network to cause network distribution failure, and realizes that the WiFi module and the terminal device are ensured to be in the local area network of the same router by sending broadcast data packets in the local area network connected with each router, so that the probability of household appliances discovery is improved, and the success rate of network distribution is improved.
An embodiment of a first aspect of the present application provides a network distribution method for a home appliance device, where the method includes:
acquiring a router list; wherein, the names and passwords of a plurality of routers in the router list are the same;
acquiring a first router from the router list according to a preset polling strategy, and establishing connection with the first router;
sending a broadcast data packet in a local area network connected with the first router;
and if the confirmation information generated by the terminal equipment according to the broadcast data packet is received within the preset time, the first router is connected.
An embodiment of a second aspect of the present application provides a network distribution device for a home appliance, where the device includes:
the first acquisition module is used for acquiring a router list; wherein, the names and passwords of a plurality of routers in the router list are the same;
the second acquisition module is used for acquiring the first router from the router list according to a preset polling strategy;
a connection sending module, configured to establish a connection with the first router, and send a broadcast packet in a local area network that establishes a connection with the first router;
and the processing module is used for keeping connection with the first router if receiving the confirmation information generated by the terminal equipment according to the broadcast data packet within the preset time.
An embodiment of a third aspect of the present application provides an electronic device, including: the network distribution method for the household appliances comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein when the processor executes the program, the network distribution method for the household appliances is realized.
A fourth aspect of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the network distribution method for an electrical home appliance according to the first aspect of the present application.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: on one hand, the router list is obtained; the names and the passwords of a plurality of routers in the router list are the same; acquiring a first router from a router list according to a preset polling strategy, and establishing connection with the first router; transmitting a broadcast data packet in a local area network connected with a first router; and if the confirmation information generated by the terminal equipment according to the broadcast data packet is received within the preset time, the first router is connected. Therefore, the technical problem that in the prior art, the terminal device and the WiFi module are connected to different routers and cannot handshake in the same local area network to cause failure of distribution network is effectively solved, the broadcasting data packet is sent in the local area network connected with each router to ensure that the WiFi module and the terminal device are in the local area network of the same router, the probability of discovery of household appliances is improved, and the success rate of distribution network is improved.
On the other hand, the confirmation information generated by the terminal device according to the broadcast data packet is not received within the preset time, the second router continues to be obtained from the router list according to the preset polling strategy to establish connection and send the broadcast data packet until the confirmation information generated by the terminal device according to the broadcast data packet is received, so that the WiFi module and the terminal device are ensured to be in the local area network of the same router through a polling connection confirmation mode, and the success rate of the distribution network is further improved.
In another aspect, the routers can be acquired from the router list according to a preset sequence or in a random manner to establish connection, so that the efficiency and flexibility of the distribution network are further improved.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of a network distribution method for a household appliance according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a network distribution method for a household appliance according to a second embodiment of the present application;
fig. 3 is an exemplary diagram of a network distribution method for a household appliance according to a second embodiment of the present application;
fig. 4 is a schematic structural diagram of a distribution network device of a household electrical appliance according to a third embodiment of the present application;
fig. 5 is a schematic structural diagram of a distribution network device of a household electrical appliance according to a fourth embodiment of the present application.
Detailed Description
The application mainly aims at the technical problems that the cost of a network distribution mode of household appliances is high and the accuracy is low in the prior art, and provides a network distribution method of the household appliances. The network distribution method of the household electrical appliance equipment in the embodiment of the application obtains a router list; the names and the passwords of a plurality of routers in the router list are the same; acquiring a first router from a router list according to a preset polling strategy, and establishing connection with the first router; transmitting a broadcast data packet in a local area network connected with a first router; and if the confirmation information generated by the terminal equipment according to the broadcast data packet is received within the preset time, the first router is connected. The broadcasting data packet is sent in the local area network connected with each router, so that the WiFi module and the terminal equipment are ensured to be in the local area network of the same router, the probability of finding the household appliance equipment is improved, and the success rate of a distribution network is improved.
In order to better understand the above technical solutions, exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
Example one
Fig. 1 is a schematic flowchart of a network distribution method for a household appliance according to an embodiment of the present disclosure.
As shown in fig. 1, the network distribution method for the household electrical appliance may include the following steps:
step 101, obtaining a router list; and the names and the passwords of the routers in the router list are the same.
In practical application, after the WiFi module establishes connection with a corresponding router according to the name and password of the router sent by the terminal device, the terminal device and the WiFi module can send and receive data in a local area network established by the router to complete discovery and activation binding of the household appliance.
The embodiment of the application aims at the situation that the names and the passwords set by the routers are the same, the routers with the same names and passwords are used for generating the router list, and therefore polling connection confirmation is carried out on all the routers in the router list, the WiFi module and the terminal equipment are ensured to be in the local area network of the same router, the probability of home appliance discovery is improved, and the success rate of distribution networks is improved.
As another example, after the router name and the password sent by the terminal device are obtained, a plurality of routers are detected according to the router name, and the routers are input into a preset list template.
And 102, acquiring a first router from the router list according to a preset polling strategy, and establishing connection with the first router.
Step 103, sending the broadcast data packet in the local area network connected with the first router.
Specifically, after the router list is obtained, the first router is obtained from the router list according to a preset polling policy, for example, the first router is obtained from the router list according to a preset sequence, and then, for example, the first router is obtained from the router list randomly.
Further, after determining the first router, a connection is established with the first router, and it is understood that the broadcast packet may be sent in a local area network connected with the first router after the connection is established with the first router.
It can be understood that the purpose of the broadcast packet is to determine whether the terminal device and the WiFi module are in the same local area network, where the data content of the broadcast packet is various, such as a message command.
And step 104, if the confirmation information generated by the terminal equipment according to the broadcast data packet is received within the preset time, the connection with the first router is kept.
It can be understood that after the broadcast packet is sent in the local area network connected to the first router, in a case that the connection is normal, in a preset time, for example, within N seconds, the confirmation information generated by the terminal device processing according to the broadcast packet can be received, which indicates whether the terminal device and the WiFi module are confirmed to be in the same local area network, for example, the broadcast packet 0A is sent in the local area network connected to the first router, and in N seconds, the confirmation information R0A generated by the terminal device according to the broadcast packet is received, and the connection is maintained with the first router.
It can be understood that, under the condition that the first router network is normal, the household appliance device successfully distributes the network, the operation such as connection with the server and downloading of relevant resources can be established through the first router, the household appliance device identifier can be sent to the terminal device through the first router, the household appliance device identifier and the user account are bound to generate binding information and then fed back to the household appliance device, and the management efficiency of the household appliance device is further improved.
The technical scheme in the embodiment of the application at least has the following technical effects or advantages:
by obtaining a router list; the names and the passwords of a plurality of routers in the router list are the same; acquiring a first router from a router list according to a preset polling strategy, and establishing connection with the first router; transmitting a broadcast data packet in a local area network connected with a first router; and if the confirmation information generated by the terminal equipment according to the broadcast data packet is received within the preset time, the first router is connected. Therefore, the technical problem that in the prior art, the terminal device and the WiFi module are connected to different routers and cannot handshake in the same local area network to cause failure of distribution network is effectively solved, the broadcasting data packet is sent in the local area network connected with each router to ensure that the WiFi module and the terminal device are in the local area network of the same router, the probability of discovery of household appliances is improved, and the success rate of distribution network is improved.
Example two
Fig. 2 is a schematic flow chart of a network distribution method for a household appliance according to a second embodiment of the present application.
As shown in fig. 2, the network distribution method for the home appliance may include the following steps:
step 201, after the home appliance enters the distribution network mode, obtaining the router name and the password sent by the terminal device, scanning according to the router name, obtaining a plurality of routers, and generating a router list.
Specifically, after the household electrical appliance is controlled to enter the distribution network mode, the router name and the password sent by the terminal device can be acquired, the router name is scanned within a preset range or within the maximum scanning range to acquire a plurality of routers with the same router name, and the plurality of routers are stored in a list form to generate a router list.
Step 202, obtaining a first router from the router list according to a preset sequence.
Step 203, establishing connection with the first router, and sending the broadcast data packet in the local area network establishing connection with the first router.
And step 204, if the confirmation information generated by the terminal equipment according to the broadcast data packet is received within the preset time, the connection with the first router is kept.
Specifically, the first router is obtained from the router list according to a preset order, such as 1 st, 2 nd, etc. or 1 st, 3 rd, etc.
Further, after determining the first router, a connection is established with the first router, and it is understood that the broadcast packet may be sent in a local area network connected with the first router after the connection is established with the first router.
It can be understood that the purpose of the broadcast packet is to determine whether the terminal device and the WiFi module are in the same local area network, where the data content of the broadcast packet is various, such as a message command.
It can be understood that after the broadcast data packet is sent in the local area network connected to the first router, in a case that the connection is normal, the confirmation information generated by the terminal device processing according to the broadcast data packet can be received within a preset time, for example, within N seconds, and it indicates that the terminal device and the WiFi module are confirmed to be in the same local area network.
Step 205, if the confirmation information generated by the terminal device according to the broadcast data packet is not received within the preset time, the connection is disconnected with the first router, and the second router is randomly obtained from the router list.
And step 206, establishing connection with the second router, and sending the broadcast data packet in the local area network connected with the second router.
And step 207, receiving the confirmation information generated by the terminal device according to the broadcast data packet within the preset time, and keeping connection with the second router.
It can also be understood that, after the broadcast data packet is sent in the local area network that establishes connection with the first router, in a case that the connection is normal, in a preset time, for example, within N seconds, the confirmation information generated by the terminal device processing according to the broadcast data packet is not received, which indicates that the terminal device and the WiFi module are not in the same local area network. Thereby, the connection with the first router is further disconnected, and the second router is randomly acquired from the router list.
Further, after determining the second router, a connection is established with the second router, it is understood that the broadcast packet may be transmitted in the local area network to which the second router is connected after the connection is established with the second router.
It can be understood that the purpose of the broadcast packet is to determine whether the terminal device and the WiFi module are in the same local area network, where the data content of the broadcast packet is various, such as a message command.
It can be understood that, after the broadcast packet is sent in the local area network connected to the second router, in a case that the connection is normal, the confirmation information generated by the terminal device processing according to the broadcast packet can be received within a preset time, for example, within N seconds, and it indicates that the terminal device and the WiFi module are confirmed to be in the same local area network.
On one hand, the router list is obtained; the names and the passwords of a plurality of routers in the router list are the same; acquiring a first router from a router list according to a preset polling strategy, and establishing connection with the first router; transmitting a broadcast data packet in a local area network connected with a first router; and if the confirmation information generated by the terminal equipment according to the broadcast data packet is received within the preset time, the first router is connected. Therefore, the technical problem that in the prior art, the terminal device and the WiFi module are connected to different routers and cannot handshake in the same local area network to cause failure of distribution network is effectively solved, the broadcasting data packet is sent in the local area network connected with each router to ensure that the WiFi module and the terminal device are in the local area network of the same router, the probability of discovery of household appliances is improved, and the success rate of distribution network is improved.
On the other hand, the confirmation information generated by the terminal device according to the broadcast data packet is not received within the preset time, the second router continues to be obtained from the router list according to the preset polling strategy to establish connection and send the broadcast data packet until the confirmation information generated by the terminal device according to the broadcast data packet is received, so that the WiFi module and the terminal device are ensured to be in the local area network of the same router through a polling connection confirmation mode, and the success rate of the distribution network is further improved.
In another aspect, the routers can be acquired from the router list according to a preset sequence or in a random manner to establish connection, so that the efficiency and flexibility of the distribution network are further improved.
For the sake of clarity, the above embodiment is described in detail below with reference to fig. 3, as shown in fig. 3:
specifically, (1) a user enables household appliances to enter a distribution network mode through physical keys such as a remote controller and the like; (2) the mobile phone APP transmits the NAME NAME1 and the password of the router to the WiFi module; (3) after receiving the NAME and the password transmitted by the mobile phone APP, the WiFi module scans the router with the NAME of NAME1 at the periphery, stores the router in a router list and counts NUM; (4) the WiFi module is connected with the router in the router list according to the router list, the WiFi module sends a broadcast data packet in a local area network built by the router for N seconds, and within N seconds, the mobile phone APP and the WiFi module successfully handshake, and then the WiFi module is locked in the router to execute subsequent cloud server connection and equipment activation binding operation; (5) if no handshake is carried out between the mobile phone APP and the router which is connected currently within N seconds, the router which is called NAME1 is connected, and the operation of the step (4) is executed, so that NUM routers are polled one by one, the mobile phone and the WiFi module are ensured to be in the same router, the probability of finding the household appliance is improved, and the success rate of distribution network is improved.
Based on the same inventive concept, the embodiment of the present application further provides apparatuses corresponding to the methods in the first to second embodiments, see the third embodiment.
EXAMPLE III
Fig. 4 is a schematic structural diagram of a network distribution device of a home appliance according to a sixth embodiment of the present application.
As shown in fig. 4, the network distribution apparatus of the home appliance includes: a first obtaining module 401, a second obtaining module 402, a connection sending module 403 and a processing module 404.
The first obtaining module 401 is configured to obtain a router list; and the names and the passwords of the routers in the router list are the same.
A second obtaining module 402, configured to obtain the first router from the router list according to a preset polling policy.
A connection sending module 403, configured to establish a connection with the first router, and send the broadcast packet in the local area network that establishes the connection with the first router.
The processing module 404 is configured to, after receiving the acknowledgement information generated by the terminal device according to the broadcast data packet within a preset time, maintain connection with the first router.
In an embodiment of the present application, as shown in fig. 5, on the basis of fig. 4, the method further includes: a disconnect module 405.
A disconnection module 405, configured to disconnect from the first router if the confirmation information generated by the terminal device according to the broadcast data packet is not received within a preset time.
The second obtaining module 402 is further configured to obtain the second router from the router list according to a preset polling policy.
The connection sending module 403 is further configured to establish a connection with the second router, and send the broadcast packet in the local area network that establishes the connection with the second router.
The processing module 404 is further configured to, after receiving the acknowledgement information generated by the terminal device according to the broadcast data packet within the preset time, maintain connection with the second router.
In an embodiment of the present application, the first obtaining module 401 is specifically configured to: after the household electrical equipment enters a distribution network mode, acquiring a router name and a password sent by the terminal equipment; and scanning according to the router names, acquiring a plurality of routers and generating a router list.
In an embodiment of the present application, the second obtaining module 402 is specifically configured to: and acquiring the first router from the router list according to a preset sequence.
In an embodiment of the application, the second obtaining module 402 is further specifically configured to: and randomly acquiring the first router from the router list.
It should be noted that the explanation of the embodiments of the network distribution method for two pairs of home appliances in the first to third embodiments is also applicable to the network distribution device for the home appliances in the third embodiment, and details are not repeated herein.
The technical scheme in the embodiment of the application at least has the following technical effects or advantages:
on one hand, the router list is obtained; the names and the passwords of a plurality of routers in the router list are the same; acquiring a first router from a router list according to a preset polling strategy, and establishing connection with the first router; transmitting a broadcast data packet in a local area network connected with a first router; and if the confirmation information generated by the terminal equipment according to the broadcast data packet is received within the preset time, the first router is connected. Therefore, the technical problem that in the prior art, the terminal device and the WiFi module are connected to different routers and cannot handshake in the same local area network to cause failure of distribution network is effectively solved, the broadcasting data packet is sent in the local area network connected with each router to ensure that the WiFi module and the terminal device are in the local area network of the same router, the probability of discovery of household appliances is improved, and the success rate of distribution network is improved.
On the other hand, the confirmation information generated by the terminal device according to the broadcast data packet is not received within the preset time, the second router continues to be obtained from the router list according to the preset polling strategy to establish connection and send the broadcast data packet until the confirmation information generated by the terminal device according to the broadcast data packet is received, so that the WiFi module and the terminal device are ensured to be in the local area network of the same router through a polling connection confirmation mode, and the success rate of the distribution network is further improved.
In another aspect, the routers can be acquired from the router list according to a preset sequence or in a random manner to establish connection, so that the efficiency and flexibility of the distribution network are further improved.
Based on the same inventive concept, the embodiment of the present application further provides electronic devices corresponding to the methods of embodiments one to two, see embodiment five.
EXAMPLE five
The electronic equipment of the embodiment of the application comprises: the network distribution method for the household appliances is implemented by the processor, when the processor executes the program, the network distribution method for the household appliances is provided by the foregoing first to second embodiments of the present application.
The technical scheme in the embodiment of the application at least has the following technical effects or advantages:
on one hand, the router list is obtained; the names and the passwords of a plurality of routers in the router list are the same; acquiring a first router from a router list according to a preset polling strategy, and establishing connection with the first router; transmitting a broadcast data packet in a local area network connected with a first router; and if the confirmation information generated by the terminal equipment according to the broadcast data packet is received within the preset time, the first router is connected. Therefore, the technical problem that in the prior art, the terminal device and the WiFi module are connected to different routers and cannot handshake in the same local area network to cause failure of distribution network is effectively solved, the broadcasting data packet is sent in the local area network connected with each router to ensure that the WiFi module and the terminal device are in the local area network of the same router, the probability of discovery of household appliances is improved, and the success rate of distribution network is improved.
On the other hand, the confirmation information generated by the terminal device according to the broadcast data packet is not received within the preset time, the second router continues to be obtained from the router list according to the preset polling strategy to establish connection and send the broadcast data packet until the confirmation information generated by the terminal device according to the broadcast data packet is received, so that the WiFi module and the terminal device are ensured to be in the local area network of the same router through a polling connection confirmation mode, and the success rate of the distribution network is further improved.
In another aspect, the routers can be acquired from the router list according to a preset sequence or in a random manner to establish connection, so that the efficiency and flexibility of the distribution network are further improved.
Since the electronic device described in the fifth embodiment of the present application is an electronic device used for implementing the methods of the first to second embodiments of the present application, a person skilled in the art can understand the specific structure and the modifications of the electronic device based on the methods described in the first to second embodiments of the present application, and thus the details are not described herein. All the electronic devices adopted in the methods of the first to second embodiments of the present application belong to the scope of protection of the present application.
Based on the same inventive concept, the embodiment of the present application further provides a computer-readable storage medium corresponding to the method in the first embodiment to the second embodiment, which is shown in the sixth embodiment.
EXAMPLE six
The computer-readable storage medium of the embodiment of the present application stores thereon a computer program, where the computer program is executed by a processor to implement the network distribution method for the home appliance as set forth in the foregoing embodiments one to two of the present application.
The technical scheme in the embodiment of the application at least has the following technical effects or advantages:
on one hand, the router list is obtained; the names and the passwords of a plurality of routers in the router list are the same; acquiring a first router from a router list according to a preset polling strategy, and establishing connection with the first router; transmitting a broadcast data packet in a local area network connected with a first router; and if the confirmation information generated by the terminal equipment according to the broadcast data packet is received within the preset time, the first router is connected. Therefore, the technical problem that in the prior art, the terminal device and the WiFi module are connected to different routers and cannot handshake in the same local area network to cause failure of distribution network is effectively solved, the broadcasting data packet is sent in the local area network connected with each router to ensure that the WiFi module and the terminal device are in the local area network of the same router, the probability of discovery of household appliances is improved, and the success rate of distribution network is improved.
On the other hand, the confirmation information generated by the terminal device according to the broadcast data packet is not received within the preset time, the second router continues to be obtained from the router list according to the preset polling strategy to establish connection and send the broadcast data packet until the confirmation information generated by the terminal device according to the broadcast data packet is received, so that the WiFi module and the terminal device are ensured to be in the local area network of the same router through a polling connection confirmation mode, and the success rate of the distribution network is further improved.
In another aspect, the routers can be acquired from the router list according to a preset sequence or in a random manner to establish connection, so that the efficiency and flexibility of the distribution network are further improved.
Since the computer-readable storage medium described in the sixth embodiment of the present application is a computer-readable storage medium used for implementing the method described in the first to second embodiments of the present application, based on the method described in the first to second embodiments of the present application, a person skilled in the art can understand the specific structure and the modification of the computer-readable storage medium, and therefore details are not described here. Any computer readable storage medium used in the methods of the first embodiment to the second embodiment of the present application is within the scope of the present application.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, apparatus, device, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A network distribution method of household appliances is characterized by comprising the following steps:
acquiring a router list; wherein, the names and passwords of a plurality of routers in the router list are the same;
acquiring a first router from the router list according to a preset polling strategy, and establishing connection with the first router;
sending a broadcast data packet in a local area network connected with the first router;
and if the confirmation information generated by the terminal equipment according to the broadcast data packet is received within the preset time, the first router is connected.
2. The method of claim 1, further comprising:
if the confirmation information generated by the terminal equipment according to the broadcast data packet is not received within the preset time, the terminal equipment is disconnected from the first router, and a second router is obtained from the router list according to a preset polling strategy;
establishing connection with the second router, and sending a broadcast data packet in a local area network establishing connection with the second router;
and if the confirmation information generated by the terminal equipment according to the broadcast data packet is received within the preset time, the terminal equipment is connected with the second router.
3. The method of claim 1, wherein the obtaining the router list comprises:
after the household electrical equipment enters a distribution network mode, acquiring a router name and a password sent by the terminal equipment;
and scanning according to the router names, acquiring a plurality of routers and generating the router list.
4. The method as claimed in claim 1, wherein said obtaining the first router from the router list according to the preset polling policy comprises:
and acquiring the first router from the router list according to a preset sequence.
5. The method as claimed in claim 1, wherein said obtaining the first router from the router list according to the preset polling policy comprises:
and randomly acquiring the first router from the router list.
6. The method of claim 1, after said maintaining a connection with said first router, further comprising:
sending a household appliance identifier to the terminal equipment;
receiving binding information sent by the terminal equipment; and generating the binding information according to the household appliance identifier and the user account.
7. A network distribution device of household electrical appliances is characterized by comprising:
the first acquisition module is used for acquiring a router list; wherein, the names and passwords of a plurality of routers in the router list are the same;
the second acquisition module is used for acquiring the first router from the router list according to a preset polling strategy;
a connection sending module, configured to establish a connection with the first router, and send a broadcast packet in a local area network that establishes a connection with the first router;
and the processing module is used for keeping connection with the first router if receiving the confirmation information generated by the terminal equipment according to the broadcast data packet within the preset time.
8. The apparatus of claim 7, further comprising:
the disconnection module is used for disconnecting the first router if the confirmation information generated by the terminal equipment according to the broadcast data packet is not received within the preset time;
the second obtaining module is further configured to obtain a second router from the router list according to a preset polling policy;
the connection sending module is further configured to establish a connection with the second router, and send a broadcast packet in a local area network that establishes the connection with the second router;
and the processing module is further configured to maintain connection with the second router if receiving acknowledgement information generated by the terminal device according to the broadcast data packet within a preset time.
9. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, the processor implementing the method for network distribution of home devices according to any of claims 1 to 6 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the method for network distribution of electric home appliances according to any one of claims 1 to 6.
CN201910505124.8A 2019-06-12 2019-06-12 Network distribution method and device of household appliance, electronic device and storage medium Pending CN112087745A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910505124.8A CN112087745A (en) 2019-06-12 2019-06-12 Network distribution method and device of household appliance, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910505124.8A CN112087745A (en) 2019-06-12 2019-06-12 Network distribution method and device of household appliance, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN112087745A true CN112087745A (en) 2020-12-15

Family

ID=73733634

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910505124.8A Pending CN112087745A (en) 2019-06-12 2019-06-12 Network distribution method and device of household appliance, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN112087745A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114205888A (en) * 2021-11-29 2022-03-18 青岛海尔科技有限公司 Equipment network distribution method and device, storage medium and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103428799A (en) * 2012-05-16 2013-12-04 海尔集团公司 WIFI network module configuring method
CN107682890A (en) * 2017-09-19 2018-02-09 杭州迪普科技股份有限公司 A kind of terminal access controlling method and device
CN107948023A (en) * 2016-10-12 2018-04-20 青岛海尔洗衣机有限公司 Household electrical appliance networking method, household electrical appliance, appliance system networking method
CN108012311A (en) * 2017-12-25 2018-05-08 深圳市闪联信息技术有限公司 A kind of method of smart machine automatic switchover configuration router

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103428799A (en) * 2012-05-16 2013-12-04 海尔集团公司 WIFI network module configuring method
CN107948023A (en) * 2016-10-12 2018-04-20 青岛海尔洗衣机有限公司 Household electrical appliance networking method, household electrical appliance, appliance system networking method
CN107682890A (en) * 2017-09-19 2018-02-09 杭州迪普科技股份有限公司 A kind of terminal access controlling method and device
CN108012311A (en) * 2017-12-25 2018-05-08 深圳市闪联信息技术有限公司 A kind of method of smart machine automatic switchover configuration router

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114205888A (en) * 2021-11-29 2022-03-18 青岛海尔科技有限公司 Equipment network distribution method and device, storage medium and electronic device

Similar Documents

Publication Publication Date Title
CN110139271B (en) Method, system and device for configuring intelligent household equipment to access network in batch
CN110708688B (en) Intelligent equipment network distribution method and device, controller and medium
CN105208583B (en) Method and device for configuring intelligent household electrical appliance to access network and intelligent equipment
CN107006049A (en) A kind of smart machine and its set up the method for equipment room bluetooth connection, device
CN111465014B (en) Security authentication method, configuration method and related equipment
CN106656547B (en) Method and device for updating network configuration of household electrical appliance
CN106332224A (en) Equipment networking method, equipment networking device and equipment networking system
RU2020121403A (en) METHOD AND DEVICE FOR INSTALLING A GROUP OF USERS
CN104967596A (en) Method and apparatus for realizing binding and communication between user terminal and Internet of things device
CN105682093A (en) Wireless network access method and access device, and client
CN103399530A (en) Method and system for uniform control of intelligent household electrical appliances, management and control platform and control terminal
CN110830968A (en) Networking method and device, Bluetooth equipment and computer readable medium
CN104679528B (en) The newer method and apparatus of application program remote
CN113423105B (en) Network connection method and device
CN105306320B (en) A kind of method and device for binding client for smart machine
CN106572148A (en) Intelligent product network configuration method and network configuration system
CN112566113B (en) Key generation and terminal network distribution method, device and equipment
CN112152887A (en) Network distribution method and device of household appliance, electronic device and storage medium
CN112188488A (en) Network distribution method, device and system
CN104348686A (en) Method and device for interconnecting terminal equipment and gateway equipment
CN110290570A (en) Wireless network access method and relevant device, storage device
WO2023005410A1 (en) Information synchronization method and system, storage medium, and electronic device
CN113596792B (en) Binding method and device of electronic equipment, storage medium and electronic device
CN111787514B (en) Method and device for acquiring equipment control data, storage medium and electronic device
CN112637221B (en) Equipment control method and device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201215