CN114826901B - Device networking method and device, storage medium and electronic device - Google Patents

Device networking method and device, storage medium and electronic device Download PDF

Info

Publication number
CN114826901B
CN114826901B CN202210452454.7A CN202210452454A CN114826901B CN 114826901 B CN114826901 B CN 114826901B CN 202210452454 A CN202210452454 A CN 202210452454A CN 114826901 B CN114826901 B CN 114826901B
Authority
CN
China
Prior art keywords
equipment
network connection
networking
connection parameters
sending
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210452454.7A
Other languages
Chinese (zh)
Other versions
CN114826901A (en
Inventor
刘国南
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home 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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202210452454.7A priority Critical patent/CN114826901B/en
Publication of CN114826901A publication Critical patent/CN114826901A/en
Application granted granted Critical
Publication of CN114826901B publication Critical patent/CN114826901B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration

Landscapes

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

Abstract

The invention discloses a device networking method and device, a storage medium and an electronic device, and relates to the technical field of intelligent home, wherein the method comprises the following steps: receiving network connection parameters sent by first equipment, wherein the first equipment is networked equipment in an equipment set; under the condition that the target router identification is matched with the network connection parameters, the received network connection parameters are sent to the second equipment so that the second equipment can carry out equipment networking by utilizing the network connection parameters, wherein the target router identification is a preselected router identification; and displaying networking prompt information, wherein the networking prompt information is used for indicating that the second equipment is finished networking the equipment. The invention solves the technical problem of lower efficiency of the networking mode of the traditional Internet of things equipment.

Description

Device networking method and device, storage medium and electronic device
Technical Field
The invention relates to the technical field of intelligent home/intelligent families, in particular to a device networking method and device, a storage medium and an electronic device.
Background
In the process of adding new internet of things equipment in the home internet of things, a user is usually required to perform network allocation for the new added equipment on a mobile phone. The following steps are generally required: the equipment to be accessed into the network enters a network distribution mode; the user selects a target router of the distribution network and inputs a router password; the mobile phone sends the router name and the password to the equipment to be accessed to the network; and the equipment to be networked is connected with the router according to the acquired router name and password so as to realize the network access of the equipment.
In the above process, the user is required to manually input the name and the password of the router, so that the network access failure of the device is often caused by that the user forgets the password or fails to input the password. That is, the existing networking mode of the internet of things equipment has the technical problem of low efficiency.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a device networking method and device, a storage medium and an electronic device, which are used for at least solving the technical problem that the networking mode of the existing internet of things device is low in efficiency.
According to an aspect of an embodiment of the present invention, there is provided a device networking method, including: receiving network connection parameters sent by first equipment, wherein the first equipment is networked equipment in an equipment set; under the condition that the target router identification is matched with the network connection parameters, the received network connection parameters are sent to the second equipment so that the second equipment can carry out equipment networking by utilizing the network connection parameters, wherein the target router identification is a preselected router identification; and displaying networking prompt information, wherein the networking prompt information is used for indicating that the second equipment is finished networking the equipment.
According to another aspect of the embodiment of the present invention, there is also provided a device networking method, including: broadcasting a networking request; receiving network connection parameters sent by terminal equipment, wherein the network connection parameters are parameter values sent to the terminal equipment by networked first equipment in the equipment set; networking equipment by utilizing network connection parameters; and broadcasting networking feedback information, wherein the networking feedback information is used for indicating the networking state of the equipment.
According to still another aspect of the embodiment of the present invention, there is also provided a device networking apparatus, including: the network connection device comprises a receiving unit, a network connection unit and a network connection unit, wherein the receiving unit is used for receiving network connection parameters sent by first equipment, and the first equipment is networked equipment in an equipment set; the sending unit is used for sending the received network connection parameters to the second equipment under the condition that the target router identification is matched with the network connection parameters so as to enable the second equipment to carry out equipment networking by utilizing the network connection parameters, wherein the target router identification is a preselected router identification; and the prompting unit is used for displaying networking prompting information, wherein the networking prompting information is used for indicating that the second equipment finishes equipment networking.
According to still another aspect of the embodiment of the present invention, there is also provided a device networking apparatus, including: a first broadcasting unit for broadcasting a networking request; the receiving unit is used for receiving network connection parameters sent by the terminal equipment, wherein the network connection parameters are parameter values sent to the terminal equipment by networked first equipment in the equipment set; the networking unit is used for networking the equipment by utilizing the network connection parameters; and the second broadcasting unit is used for broadcasting networking feedback information, wherein the networking feedback information is used for indicating the networking state of the equipment.
According to a further aspect of embodiments of the present invention, there is also provided a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the above-described device networking method when run.
According to yet another aspect of an embodiment of the present invention, there is also provided an electronic apparatus including a memory, in which a computer program is stored, and a processor configured to execute the above-described device networking method by the computer program.
In the embodiment of the invention, network connection parameters sent by first equipment are received, wherein the first equipment is networked equipment in an equipment set; under the condition that the target router identification is matched with the network connection parameters, the received network connection parameters are sent to the second equipment so that the second equipment can carry out equipment networking by utilizing the network connection parameters, wherein the target router identification is a preselected router identification; and displaying networking prompt information, wherein the networking prompt information is used for indicating that the second equipment is finished networking equipment, so that automatic sending and networking of router passwords are realized in the process of carrying out network allocation operation on equipment to be networked by a user, the problem that the equipment fails in networking caused by forgetting the router passwords by the user is avoided, and the technical problem that the networking mode efficiency of the traditional Internet of things equipment is lower is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
FIG. 1 is a schematic diagram of a hardware environment of an alternative device networking method according to an embodiment of the invention;
FIG. 2 is a flow chart of an alternative device networking method according to an embodiment of the invention;
FIG. 3 is a flow chart of another alternative device networking method according to an embodiment of the invention;
FIG. 4 is a schematic diagram of an alternative device networking apparatus in accordance with an embodiment of the invention;
FIG. 5 is a schematic diagram of another alternative device networking apparatus in accordance with an embodiment of the invention;
FIG. 6 is a schematic diagram of an alternative electronic device according to an embodiment of the invention;
fig. 7 is a schematic structural view of another alternative electronic device according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to one aspect of the embodiment of the application, an interaction method of intelligent home equipment is provided. The interaction method of the intelligent household equipment is widely applied to full-house intelligent digital control application scenes such as intelligent Home (Smart Home), intelligent Home, intelligent household equipment ecology, intelligent Home (Intelligence House) ecology and the like. Alternatively, in this embodiment, the above-mentioned interaction method of the smart home device may be applied to a hardware environment formed by the terminal device 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal device 102 through a network, and may be used to provide services (such as application services and the like) for a terminal or a client installed on the terminal, a database may be set on the server or independent of the server, for providing data storage services for the server 104, and cloud computing and/or edge computing services may be configured on the server or independent of the server, for providing data computing services for the server 104.
The network may include, but is not limited to, at least one of: wired network, wireless network. The wired network may include, but is not limited to, at least one of: a wide area network, a metropolitan area network, a local area network, and the wireless network may include, but is not limited to, at least one of: WIFI (Wireless Fidelity ), bluetooth. The terminal device 102 may not be limited to a PC, a mobile phone, a tablet computer, an intelligent air conditioner, an intelligent smoke machine, an intelligent refrigerator, an intelligent oven, an intelligent cooking range, an intelligent washing machine, an intelligent water heater, an intelligent washing device, an intelligent dish washer, an intelligent projection device, an intelligent television, an intelligent clothes hanger, an intelligent curtain, an intelligent video, an intelligent socket, an intelligent sound box, an intelligent fresh air device, an intelligent kitchen and toilet device, an intelligent bathroom device, an intelligent sweeping robot, an intelligent window cleaning robot, an intelligent mopping robot, an intelligent air purifying device, an intelligent steam box, an intelligent microwave oven, an intelligent kitchen appliance, an intelligent purifier, an intelligent water dispenser, an intelligent door lock, and the like.
As an alternative embodiment, as shown in fig. 2, the device networking method includes the following steps:
s202, receiving network connection parameters sent by first equipment, wherein the first equipment is networked equipment in an equipment set;
S204, under the condition that the target router identification is matched with the network connection parameters, the received network connection parameters are sent to the second equipment, so that the second equipment can carry out equipment networking by utilizing the network connection parameters, wherein the target router identification is a preselected router identification;
s206, displaying networking prompt information, wherein the networking prompt information is used for indicating that the second equipment finishes equipment networking.
It should be noted that, in the existing binding method of the smart home device, after the smart home device enters the network distribution mode, the user detects the smart home device through the mobile terminal (such as a mobile phone), and then inputs the name and the password of the router to realize the networking and binding of the smart home device. Because the user often forgets the router password or fails to input the password, the problem of low networking efficiency is caused.
In this embodiment, by receiving the network connection parameter sent by the networked device, and if the target router identifier is matched with the network connection parameter, the received network connection parameter is given to the second device to be networked, so that automatic networking of the device to be networked is achieved without requiring the user to manually input the router password.
In this embodiment, the device set may be a device set formed by a plurality of intelligent devices, and may include, but is not limited to, intelligent devices with networking capability, such as PCs, mobile phones, tablet computers, intelligent air conditioners, intelligent smoke machines, and the like. The first device is a device that has been networked in the intelligent device set, and it can be understood that the first device needs to acquire a name and a password of a router to achieve device networking before networking, so that the router name and the password can be stored locally in the first device, and the stored router name and password can be sent to a mobile terminal executing the implementation to achieve device networking of a device to be networked.
It will be appreciated that the network connection parameters may include information such as a router identifier, a password corresponding to the router identifier, a router network ip address, and a router mac address, which are not limited herein.
Further, under the condition that the mobile terminal receives the network connection parameters sent by the first device, under the condition that the router selected by the user is determined to be matched with the received network connection parameters, namely, the condition that the network connection parameters received by the mobile terminal can be used for networking operation of the device to be networked according to the router selected by the user is determined, and then the received network connection parameters are sent to the second device to be networked for networking operation.
It can be understood that, when the second device receives the network connection parameter sent by the mobile terminal and implements device networking, the second device may send networking feedback information to the mobile terminal to prompt that the mobile terminal has completed networking operation, and further display networking prompt information on the mobile terminal to prompt that the second device has completed device networking. As an optional prompting mode, an indication message of successful networking of the second device can be displayed in a display interface of the second device, and an audio control of the second device can be controlled to send out a corresponding prompting sound to indicate successful networking of the second device. The manner in which the second device is prompted to complete networking is not limited herein.
Through the above embodiments of the present application, network connection parameters sent by the networked first device are received; under the condition that the target router identification is matched with the network connection parameters, the received network connection parameters are sent to the second equipment, so that the second equipment utilizes the network connection parameters to carry out equipment networking; and displaying networking prompt information, wherein the networking prompt information is used for indicating that the second equipment has completed equipment networking, so that the automatic networking of the equipment to be networked is realized under the condition that a user does not need to manually input a router password, the problem that the equipment networking fails due to the fact that the user forgets the router password is avoided, and the technical problem that the networking mode efficiency of the traditional Internet of things equipment is lower is solved.
As an optional implementation manner, the receiving the network connection parameter sent by the first device further includes:
s1, receiving a plurality of pieces of broadcast information sent by a plurality of devices in a device set, wherein each piece of broadcast information in the plurality of pieces of broadcast information corresponds to one sending device, and the broadcast information carries a state value for indicating whether the sending device supports sending network connection parameters to other devices in the device set;
s2, under the condition that target broadcast information is received, determining a sending device corresponding to the target broadcast information as a first device, wherein the target broadcast information indicates that the first device supports sending network connection parameters to other devices;
s3, under the condition that a communication channel is established with the first equipment, acquiring network connection parameters sent by the first equipment.
It will be appreciated that in this embodiment, the set of devices includes networked devices and non-networked devices, where the networked devices include devices that are in the same local area network as the mobile terminal and devices that are in different local area networks from the mobile terminal. The devices in the device set can all broadcast the state to the network environment, and it is to be noted that, the non-networked devices in the device set, the devices in the networked devices, which are not in the same local area network environment as the mobile terminal, can broadcast through bluetooth, and the devices in the networked devices, which are in the same local area network as the mobile terminal, can broadcast to other devices through the local area network. Further, the specific transmission manner of the broadcast message may be determined according to a UDP protocol. In addition, the frequency of sending the broadcast message by the devices in the device set can be set according to the requirement, for example, the frequency can be set to be 1 hour, so that the mobile terminal can be timely informed of updating the network connection parameters in the broadcast mode under the condition that the network connection parameters are changed.
Specifically, the broadcast information may carry a status value of the network connection parameter, which is used to indicate whether the device sending the broadcast information may transmit the network connection parameter to other devices. And the mobile terminal establishes a communication channel with the equipment for sending the broadcast message under the condition that the mobile terminal receives the broadcast message which indicates that the equipment for sending the broadcast message supports sending network connection parameters to other equipment.
It will be appreciated that the mobile terminal may receive broadcast messages sent by other networked devices in the local area network where it is located, establish a TCP connection with the device sending the broadcast message and obtain the network connection parameters through the connection if a broadcast message indicating support for sending the network connection parameters is received.
Through the above embodiment of the present application, a plurality of broadcast information sent by a plurality of devices in a device set is received, where the broadcast information carries a status value for indicating whether the device supports sending network connection parameters to other devices in the device set; under the condition that the target broadcast information is received, determining the equipment for sending the target broadcast information as first equipment; under the condition that a communication channel is established with the first equipment, the network connection parameters sent by the first equipment are acquired, so that the network connection parameters are automatically acquired from the equipment set, the network connection parameters are prevented from being acquired by receiving the manual input result of the user, and the technical problem of low efficiency of the existing equipment connection is solved.
As an alternative manner, after obtaining the network connection parameter sent by the first device, the method further includes: and clearing the network connection parameters under the condition that the preservation time of the network connection parameters exceeds the effective time threshold.
It can be appreciated that in this embodiment, since the mobile terminal is a device that can acquire the network connection parameters according to the broadcast message of the networked device, the network connection parameters are acquired by establishing a connection. That is, under the condition that the network connection parameters are changed, the mobile terminal cannot timely acquire the changing condition of the network connection parameters assuming that the networked first device does not timely broadcast the message of the network connection parameter change to other devices. Further, if the expired network connection parameters stored in the mobile terminal are transmitted to the second device to be networked, the network connection parameters acquired by the second device may fail, and the networking of the devices may fail.
For the above-described problems, the effective time of the network connection parameters acquired in the mobile terminal may be set according to actual conditions. For example, the effective time of the network connection parameter may be set to 30 minutes, so that when the network connection parameter is acquired from the first device, the network connection parameter exceeding the effective time of 30 minutes is further cleared according to the preset time, so as to avoid the problem that the network connection parameter sent to the second device fails.
As an optional implementation manner, in a case of receiving the target broadcast information, determining the sending device corresponding to the target broadcast message as the first device, further includes:
s1, when a plurality of target broadcast messages are received, respectively determining a plurality of sending devices corresponding to the target broadcast messages as candidate devices, wherein each of the target broadcast messages corresponds to one sending device;
s2, determining one candidate device corresponding to the target broadcast information with the optimal information quality parameter in the target broadcast information as a first device, wherein the information quality parameter comprises: information delay value.
It will be appreciated that in the case where the mobile terminal receives a plurality of target broadcast messages indicating support for transmitting network connection parameters, it is necessary to determine a device for acquiring network connection parameters from among a plurality of devices transmitting the plurality of target broadcast messages. As an optional determining method, information delay values of a plurality of target broadcast messages may be obtained, and a device corresponding to the target broadcast message with the lowest information delay value is used as a first device for obtaining network connection parameters; in another alternative method, the rssi (received signal strength indication ) values of a plurality of targeted broadcast messages may be obtained, with the highest rssi device being determined to be the first device.
In another alternative embodiment, the plurality of candidate devices may send the target broadcast messages corresponding to different routers, and further may determine a target broadcast message corresponding to each router and the first device corresponding to each target broadcast message according to the method described above. For example, device a, device b, and device c are all connected to router a; and the device c, the device d and the device e are connected with the router B, and the devices a to e send out broadcast messages. In the case that the mobile terminal receives the broadcast messages corresponding to the devices a to e, determining a first device corresponding to the router A from the devices a to c according to the rssi value of each broadcast message, and assuming that the first device is the device a; and determines a first device corresponding to router B from devices d to e, assuming device d. Further, the mobile terminal may acquire the network connection parameter corresponding to the router a from the device a, and the mobile terminal may acquire the network connection parameter corresponding to the router B from the device d.
Through the implementation method of the application, when the received target broadcast information is a plurality of pieces of target broadcast information, a plurality of pieces of equipment corresponding to the target broadcast information are respectively determined as candidate equipment; and determining candidate equipment corresponding to the target broadcast information with the optimal information quality parameter in the target broadcast information as first equipment, so that the equipment with the optimal signal quality is determined in the equipment supporting the network connection parameter to acquire the network connection parameter, the problem of network connection parameter acquisition failure caused by poor signal quality in the process of acquiring the network connection parameter is solved, and the connection efficiency of equipment networking is improved.
As an optional implementation manner, before receiving the network connection parameter sent by the first device, the method further includes:
s1, acquiring a networking request sent by second equipment in a broadcasting way;
s2, responding to the networking request, and sending an acquisition request to the first device, wherein the acquisition request is used for requesting to acquire network connection parameters from the first device.
It can be understood that the second device is an internet of things device to be networked. Since the device is not connected to the wireless network, the networking request can be broadcast to other devices through connection modes such as Bluetooth connection, usb connection and the like.
In this embodiment, when the mobile terminal obtains the networking request sent by the second device, the mobile terminal may send a network connection parameter obtaining request to the first device that has been networked, and further forward the network connection parameter obtained from the first device to the second device, so as to avoid the user from manually inputting the network connection parameter, and further implement networking operation of the device to be networked according to the network connection parameter stored by the networked device.
As an alternative embodiment, after sending the network connection parameter to the second device, the method further includes:
s1, acquiring networking feedback information sent by a second device in a broadcasting way, wherein the networking feedback information is used for indicating the networking state of the second device;
S2, determining the networking state of the second equipment according to the networking feedback information;
and S3, displaying prompt information for indicating successful networking under the condition that the networking state indicates that the second equipment completes equipment networking.
It will be appreciated that after the second device completes network connection according to the acquired network connection parameters, a message of successful networking may be broadcast through the local area network where the connected network is located. And displaying prompt information for indicating successful networking under the condition that the mobile terminal receives the message of successful networking. It can be understood that, in this embodiment, after the device networking operation is implemented by the mobile terminal, the device and the mobile terminal also implement the binding operation.
Through the above embodiment of the present application, the networking feedback information broadcast sent by the second device is obtained, where the networking feedback information is used to indicate the networking state of the second device; determining a networking state of the second device according to the networking feedback information; under the condition that the networking state indicates that the second equipment finishes equipment networking, prompt information for indicating that networking is successful is displayed, so that the mobile terminal controls the equipment to be networked to finish automatic networking, and the technical problem that the existing equipment networking mode is low in efficiency is solved.
As an alternative embodiment, applied to a device to be networked, the method includes:
s1, broadcasting a networking request;
s2, receiving network connection parameters sent by terminal equipment, wherein the network connection parameters are parameter values sent to the terminal equipment by networked first equipment in the equipment set;
s3, networking equipment by utilizing network connection parameters;
and S4, broadcasting networking feedback information, wherein the networking feedback information is used for indicating the networking state of the equipment.
The above method is described below in connection with a specific embodiment, as shown in fig. 3.
Step S1, the network-accessed equipment broadcasts whether the acquisition of the router name and the password is supported;
it will be appreciated that in this embodiment, the router name and password correspond to the network connection parameters described above, and the network-connected device corresponds to the first device. The network-accessed device can broadcast the content according to the set time interval to indicate whether the device supports other devices to acquire the router name and the password.
Step S2, if the mobile phone searches a plurality of network access devices supporting the acquisition of the router names and the passwords, selecting one device with the optimal network signal quality for acquisition;
specifically, the rssi (received signal strength indication ) values of a plurality of broadcast messages may be acquired, and the device with the highest rssi value is determined as the device for acquiring the router name and password.
Step S3, the mobile phone sends a request for acquiring the router name and the password through small-cycle communication;
it will be appreciated that the small loop communication in the above method is based on the communication mode of the TCP connection.
Then, as step S4, the network-accessed device returns the router name and the password;
s5, the name and the password of the mobile phone cache router;
in this embodiment, after receiving the name and the password of the router, the mobile phone caches locally, and can set the validity period of the cache, for example, 15 minutes, and clear the cache after the name and the password of the cached router are overtime, so as to avoid the problem that the cache information and the actual information are inconsistent due to the change of the information of the subsequent router.
S6, broadcasting a network access request by the network access equipment;
specifically, the device to be networked may broadcast the networking request through a communication manner of bluetooth connection.
S7, the APP on the mobile phone discovers the equipment to be accessed to the network, and the user carries out configuration binding on the equipment to be accessed to the network;
it can be understood that, in this embodiment, the networking of the device to be networked needs to be implemented in the client on the mobile phone, and when the mobile phone client detects the broadcast request sent by the device to be networked, that is, the device icon of the device to be networked is displayed in the client, and the configuration of the networking operation of the device to be networked by the user is supported.
S8, the user selects a network distribution target router, if the password of the router is acquired, the user does not need to input the password, and the cached router password is directly used;
it will be appreciated that in this embodiment, there may be multiple network environments of the wireless network, and multiple routers may be included corresponding to the multiple network environments. The user is required to choose to determine the router for the network connection. And under the condition that the cached router names and passwords in the mobile phone correspond to the router selected by the user, the cached router passwords can be used for equipment networking.
S9, the mobile phone sends the name and the password of the router of the distribution network;
s10, successful network allocation of the network access equipment is achieved, and online broadcasting is sent;
in this embodiment, after the networking of the to-be-networked device is successful, a message of successful network allocation may be broadcast outwards through the connected wireless network.
S11, the mobile phone binds equipment with successful network allocation.
In this embodiment, after the device to be networked is networked successfully, the client on the mobile phone also completes the binding operation with the device to be networked.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present invention. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present invention.
According to another aspect of the embodiment of the present invention, there is also provided a device networking apparatus for implementing the device networking method described above. As shown in fig. 4, the apparatus includes:
a receiving unit 402, configured to receive a network connection parameter sent by a first device, where the first device is a device that has been networked in a device set;
a sending unit 404, configured to, if the target router identifier matches the network connection parameter, send the received network connection parameter to the second device, so that the second device uses the network connection parameter to perform device networking, where the target router identifier is a pre-selected router identifier;
and a prompting unit 406 for displaying networking prompting information, wherein the networking prompting information is used for indicating that the second device has completed device networking.
Alternatively, in this embodiment, the embodiments to be implemented by each unit module may refer to the embodiments of each method described above, which are not described herein again.
According to yet another aspect of the embodiment of the present invention, there is also provided a device networking apparatus for implementing the device networking method described above. As shown in fig. 5, the apparatus includes:
a first broadcasting unit 502 for broadcasting a networking request;
A receiving unit 504, configured to receive a network connection parameter sent by a terminal device, where the network connection parameter is a parameter value sent by a first device that is networked in a device set to the terminal device;
a networking unit 506, configured to perform device networking by using the network connection parameters;
and a second broadcasting unit 508, configured to broadcast networking feedback information, where the networking feedback information is used to indicate a networking state of the device.
According to a further aspect of the embodiment of the present invention, there is also provided an electronic apparatus for implementing the above device networking method, where the electronic apparatus may be a terminal device or a server as shown in fig. 6. The present embodiment is described taking the electronic device as a terminal device as an example. As shown in fig. 6, the electronic device comprises a memory 602 and a processor 604, the memory 602 having stored therein a computer program, the processor 604 being arranged to perform the steps of any of the method embodiments described above by means of the computer program.
Alternatively, in this embodiment, the electronic apparatus may be located in at least one network device of a plurality of network devices of the computer network.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
S1, receiving network connection parameters sent by first equipment, wherein the first equipment is networked equipment in an equipment set;
s2, under the condition that the target router identification is matched with the network connection parameters, the received network connection parameters are given to the second equipment, so that the second equipment can carry out equipment networking by utilizing the network connection parameters, wherein the target router identification is a preselected router identification;
and S3, displaying networking prompt information, wherein the networking prompt information is used for indicating that the second equipment finishes equipment networking.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, broadcasting a networking request;
s2, receiving network connection parameters sent by terminal equipment, wherein the network connection parameters are parameter values sent to the terminal equipment by networked first equipment in the equipment set;
s3, networking equipment by utilizing network connection parameters;
s1, broadcasting networking feedback information, wherein the networking feedback information is used for indicating the networking state of the equipment.
Alternatively, it will be understood by those skilled in the art that the structure shown in fig. 6 is only schematic, and the electronic device may also be a terminal device such as a smart phone (e.g. an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a mobile internet device (MobileInternetDevices, MID), a PAD, etc. Fig. 6 is not limited to the structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 6, or have a different configuration than shown in FIG. 6.
The memory 602 may be used to store software programs and modules, such as program instructions/modules corresponding to the device networking methods and apparatuses in the embodiments of the present invention, and the processor 604 executes the software programs and modules stored in the memory 602, thereby performing various functional applications and data processing, that is, implementing the device networking methods described above. The memory 602 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 602 may further include memory located remotely from processor 604, which may be connected to the terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 602 may be used to store, but is not limited to, attribute information of the virtual character, device networking information, and the like. As an example, as shown in fig. 6, the memory 602 may include, but is not limited to, the receiving unit 402, the transmitting unit 404, and the prompting unit 406 in the device networking apparatus. In addition, other module units in the above device networking apparatus may be included, but are not limited to, and are not described in detail in this example.
Optionally, the transmission device 606 is used to receive or transmit data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 606 includes a network adapter (NetworkInterfaceController, NIC) that can connect to other network devices and routers via a network cable to communicate with the internet or a local area network. In one example, the transmission device 606 is a radio frequency (RadioFrequency, RF) module for communicating wirelessly with the internet.
In addition, the electronic device further includes: a display 608 for networking the operator interface at the display interface device; and a connection bus 610 for connecting the respective module parts in the above-described electronic device.
According to a further aspect of the embodiment of the present invention, there is also provided an electronic apparatus for implementing the above device networking method, where the electronic apparatus may be a terminal device or a server as shown in fig. 7. The present embodiment is described taking the electronic device as a terminal device as an example. As shown in fig. 7, the electronic device comprises a memory 702 and a processor 704, the memory 702 storing a computer program, the processor 704 being arranged to perform the steps of any of the method embodiments described above by means of the computer program.
Alternatively, in this embodiment, the electronic apparatus may be located in at least one network device of a plurality of network devices of the computer network.
Alternatively, it will be understood by those skilled in the art that the structure shown in fig. 7 is only schematic, and the electronic device may also be a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a palm computer, a mobile internet device (MobileInternetDevices, MID), a PAD, etc. Fig. 7 is not limited to the structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 7, or have a different configuration than shown in FIG. 7.
The memory 702 may be used to store software programs and modules, such as program instructions/modules corresponding to the device networking methods and apparatuses in the embodiments of the present invention, and the processor 704 executes the software programs and modules stored in the memory 702, thereby performing various functional applications and data processing, that is, implementing the device networking methods described above. The memory 702 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, the memory 702 may further include memory remotely located relative to the processor 704, which may be connected to the terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 702 may be used to store, but not limited to, attribute information of the virtual character, device networking information, and the like. As an example, as shown in fig. 7, the memory 702 may include, but is not limited to, the first broadcasting unit 502, the receiving unit 504, the networking unit 506, and the second broadcasting unit 508 in the device networking apparatus. In addition, other module units in the above device networking apparatus may be included, but are not limited to, and are not described in detail in this example.
Optionally, the transmission device 706 is used to receive or transmit data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 706 includes a network adapter (NetworkInterfaceController, NIC) that can connect to other network equipment and routers via a network cable to communicate with the internet or a local area network. In one example, the transmission device 706 is a radio frequency (RadioFrequency, RF) module that is used to communicate wirelessly with the internet.
In addition, the electronic device further includes: a display 708 for networking the operator interface at the display interface device; and a connection bus 710 for connecting the respective module parts in the above-described electronic device.
In other embodiments, the terminal device or the server may be a node in a distributed system, where the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the plurality of nodes through a network communication. Among them, the nodes may form a peer-to-peer (P2P) network, and any type of computing device, such as a server, a terminal, etc., may become a node in the blockchain system by joining the peer-to-peer network.
According to one aspect of the present application, a computer program product is provided, comprising a computer program/instructions containing program code for performing the method shown in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via a communication portion, and/or installed from a removable medium. When executed by a central processing unit, performs the various functions provided by the embodiments of the present application.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
According to one aspect of the present application, there is provided a computer-readable storage medium, from which a processor of a computer device reads the computer instructions, the processor executing the computer instructions, causing the computer device to perform the above-described device networking method.
Alternatively, in the present embodiment, the above-described computer-readable storage medium may be configured to store a computer program for performing the steps of:
s1, receiving network connection parameters sent by first equipment, wherein the first equipment is networked equipment in an equipment set;
S2, under the condition that the target router identification is matched with the network connection parameters, the received network connection parameters are given to the second equipment, so that the second equipment can carry out equipment networking by utilizing the network connection parameters, wherein the target router identification is a preselected router identification;
and S3, displaying networking prompt information, wherein the networking prompt information is used for indicating that the second equipment finishes equipment networking.
Alternatively, in this embodiment, it will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by a program for instructing a terminal device to execute the steps, where the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, read-only memory (ROM), random access memory (RandomAccessMemory, RAM), magnetic or optical disk, and the like.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the above-described method of the various embodiments of the present invention.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, such as the above, is merely a logical function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (11)

1. A method of networking devices, comprising:
receiving, by a terminal device, a network connection parameter sent by a first device, where the first device is a networked device in a device set, and the networked device includes a device that is in the same local area network as the terminal device and a device that is in a different local area network from the terminal device, and includes: receiving a plurality of broadcast messages sent by a plurality of devices in the device set, wherein each broadcast message in the plurality of broadcast messages corresponds to a sending device, and the broadcast messages carry a state value for indicating whether the sending device supports sending the network connection parameters to other devices in the device set; under the condition that target broadcast information is received, determining the sending equipment corresponding to the target broadcast information as the first equipment, wherein the target broadcast information indicates that the first equipment supports sending the network connection parameters to other equipment; under the condition of establishing a communication channel with the first equipment, acquiring the network connection parameters sent by the first equipment;
When the target router identification is matched with the network connection parameter, the received network connection parameter is sent to second equipment through the terminal equipment, so that the second equipment utilizes the network connection parameter to carry out equipment networking, wherein the target router identification is a preselected router identification;
displaying networking prompt information on the terminal equipment, wherein the networking prompt information is used for indicating that the second equipment has completed equipment networking;
under the condition that the terminal equipment receives the network connection parameters, caching the network connection parameters, and configuring caching effective time for the network connection parameters, wherein the caching effective time is used for indicating the aging state of the cached network connection parameters, and under the condition that the aging state of the cached network connection parameters is the effective state, the cached network connection parameters are used for completing networking operation of a third device to be networked;
and binding the second equipment with the terminal equipment.
2. The method of claim 1, further comprising, after obtaining the network connection parameters sent by the first device:
And clearing the network connection parameters under the condition that the effective time of the cache of the network connection parameters exceeds an effective time threshold.
3. The method according to claim 1, wherein in the case of receiving the target broadcast information, determining the transmitting device corresponding to the target broadcast message as the first device further includes:
in the case that a plurality of target broadcast information is received, respectively determining a plurality of sending devices corresponding to the plurality of target broadcast messages as candidate devices, wherein each of the plurality of target broadcast messages corresponds to one sending device;
and determining one candidate device corresponding to the target broadcast information with the optimal information quality parameter in the target broadcast information as a first device, wherein the information quality parameter comprises: information delay value.
4. The method of claim 1, further comprising, prior to receiving the network connection parameters sent by the first device:
acquiring a networking request sent by the second equipment in a broadcasting way;
and responding to the networking request, and sending an acquisition request to the first device, wherein the acquisition request is used for requesting to acquire the network connection parameters from the first device.
5. The method of claim 4, further comprising, after transmitting the network connection parameters to the second device:
acquiring networking feedback information sent by the second equipment in a broadcasting way, wherein the networking feedback information is used for indicating the networking state of the second equipment;
determining a networking state of the second device according to the networking feedback information;
and displaying prompt information for indicating successful networking under the condition that the networking state indicates that the second equipment completes equipment networking.
6. The method according to any one of claims 1 to 5, wherein the network connection parameters include: a router identification, a network key corresponding to the router identification.
7. A method of networking devices, comprising:
broadcasting a networking request;
receiving network connection parameters sent by terminal equipment, wherein the network connection parameters are parameter values sent to the terminal equipment by networked first equipment in an equipment set, and the networked equipment comprises equipment which is in the same local area network with the terminal equipment and equipment which is in a different local area network with the terminal equipment, and the network connection parameters comprise: the terminal equipment receives a plurality of pieces of broadcast information sent by a plurality of pieces of equipment in the equipment set, wherein each piece of broadcast information in the plurality of pieces of broadcast information corresponds to one piece of sending equipment, and the broadcast information carries a state value used for indicating whether the sending equipment supports sending the network connection parameters to other pieces of equipment in the equipment set; under the condition that the terminal equipment receives target broadcast information, determining the sending equipment corresponding to the target broadcast information as the first equipment, wherein the target broadcast information indicates that the first equipment supports sending the network connection parameters to other equipment; under the condition that the first equipment and the terminal equipment establish a communication channel, acquiring the network connection parameters sent by the terminal equipment;
Under the condition that a target router identifier is matched with the network connection parameter, the acquired network connection parameter is sent to second equipment so that the second equipment can carry out equipment networking by utilizing the network connection parameter, wherein the target router identifier is a pre-selected router identifier;
broadcasting networking feedback information, wherein the networking feedback information is used for indicating the networking state of the equipment;
under the condition that the terminal equipment receives the network connection parameters, caching the network connection parameters, and configuring caching effective time for the network connection parameters, wherein the caching effective time is used for indicating the aging state of the cached network connection parameters, and under the condition that the aging state of the cached network connection parameters is the effective state, the cached network connection parameters are used for completing networking operation of a third device to be networked;
and (5) finishing the binding operation.
8. A device networking apparatus, comprising:
the receiving unit is configured to receive, by using a terminal device, a network connection parameter sent by a first device, where the first device is a device that is already networked in a device set, and the device that is already networked includes a device that is in the same local area network as the terminal device and a device that is in a different local area network from the terminal device, and includes: receiving a plurality of broadcast messages sent by a plurality of devices in the device set, wherein each broadcast message in the plurality of broadcast messages corresponds to a sending device, and the broadcast messages carry a state value for indicating whether the sending device supports sending the network connection parameters to other devices in the device set; under the condition that target broadcast information is received, determining the sending equipment corresponding to the target broadcast information as the first equipment, wherein the target broadcast information indicates that the first equipment supports sending the network connection parameters to other equipment; under the condition of establishing a communication channel with the first equipment, acquiring the network connection parameters sent by the first equipment;
A sending unit, configured to send, by the terminal device, the received network connection parameter to a second device, so that the second device uses the network connection parameter to perform device networking, where the target router identifier is a pre-selected router identifier;
the prompting unit is used for displaying networking prompting information on the terminal equipment, wherein the networking prompting information is used for indicating that the second equipment finishes equipment networking;
the device is further configured to perform a buffering operation on the network connection parameter and configure a buffering valid time for the network connection parameter when the terminal device receives the network connection parameter after the prompting unit, where the buffering valid time is used to indicate an aging state of the buffered network connection parameter, and the buffered network connection parameter is used to complete a networking operation of a third device to be networked when the aging state of the buffered network connection parameter is a valid state; and the binding operation is used for binding the second equipment with the terminal equipment.
9. A device networking apparatus, comprising:
a first broadcasting unit for broadcasting a networking request;
a receiving unit, configured to receive a network connection parameter sent by a terminal device, where the network connection parameter is a parameter value sent by a first device that has been networked in a device set to the terminal device, where the networked device includes a device that is in the same local area network as the terminal device and a device that is in a different local area network from the terminal device, and includes: the terminal equipment receives a plurality of pieces of broadcast information sent by a plurality of pieces of equipment in the equipment set, wherein each piece of broadcast information in the plurality of pieces of broadcast information corresponds to one piece of sending equipment, and the broadcast information carries a state value used for indicating whether the sending equipment supports sending the network connection parameters to other pieces of equipment in the equipment set; under the condition that the terminal equipment receives target broadcast information, determining the sending equipment corresponding to the target broadcast information as the first equipment, wherein the target broadcast information indicates that the first equipment supports sending the network connection parameters to other equipment; under the condition that the first equipment and the terminal equipment establish a communication channel, acquiring the network connection parameters sent by the terminal equipment;
The networking unit is used for sending the acquired network connection parameters to second equipment under the condition that the target router identification is matched with the network connection parameters so as to enable the second equipment to carry out equipment networking by utilizing the network connection parameters, wherein the target router identification is a preselected router identification;
the second broadcasting unit is used for broadcasting networking feedback information, wherein the networking feedback information is used for indicating the networking state of the equipment;
the device is further configured to perform a buffering operation on the network connection parameter when the terminal device receives the network connection parameter after the second broadcasting unit, and configure a buffering valid time for the network connection parameter, where the buffering valid time is used to indicate an aging state of the buffered network connection parameter, and the buffered network connection parameter is used to complete a networking operation of a third device to be networked when the aging state of the buffered network connection parameter is a valid state; and (5) finishing the binding operation.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program, when run, performs the method of any one of claims 1 to 7.
11. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of the claims 1 to 7 by means of the computer program.
CN202210452454.7A 2022-04-27 2022-04-27 Device networking method and device, storage medium and electronic device Active CN114826901B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210452454.7A CN114826901B (en) 2022-04-27 2022-04-27 Device networking method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210452454.7A CN114826901B (en) 2022-04-27 2022-04-27 Device networking method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN114826901A CN114826901A (en) 2022-07-29
CN114826901B true CN114826901B (en) 2024-01-26

Family

ID=82509051

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210452454.7A Active CN114826901B (en) 2022-04-27 2022-04-27 Device networking method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN114826901B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104902532A (en) * 2014-03-06 2015-09-09 张永杰 A method and system for automatically accessing wireless local area network
CN106507330A (en) * 2016-09-26 2017-03-15 海尔优家智能科技(北京)有限公司 A kind of equipment networking collocation method and device
CN108011726A (en) * 2016-11-02 2018-05-08 九阳股份有限公司 A kind of household electrical appliances distribution method and system
CN113423105A (en) * 2021-06-10 2021-09-21 杭州华橙软件技术有限公司 Network connection method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104902532A (en) * 2014-03-06 2015-09-09 张永杰 A method and system for automatically accessing wireless local area network
CN106507330A (en) * 2016-09-26 2017-03-15 海尔优家智能科技(北京)有限公司 A kind of equipment networking collocation method and device
CN108011726A (en) * 2016-11-02 2018-05-08 九阳股份有限公司 A kind of household electrical appliances distribution method and system
CN113423105A (en) * 2021-06-10 2021-09-21 杭州华橙软件技术有限公司 Network connection method and device

Also Published As

Publication number Publication date
CN114826901A (en) 2022-07-29

Similar Documents

Publication Publication Date Title
CN110971495B (en) Equipment binding method and device of intelligent household system and storage medium
EP1569419A1 (en) Method of assigning addresses to a plurality of devices on a network and a network system therefor
CN109413653B (en) Network distribution method and network distribution system for household appliances
CN116016002A (en) Intelligent household appliance network distribution method and device and electronic device
CN113824617B (en) Network distribution method, storage medium, household appliance and cloud server
CN111372222A (en) Device connection method and system, corresponding terminal device and server
CN111770156A (en) Linkage control method and device and computer readable storage medium
CN110149622B (en) Intelligent household appliance control method and device
CN114826901B (en) Device networking method and device, storage medium and electronic device
WO2024066089A1 (en) Cooking plan determination method and apparatus, storage medium, and electronic apparatus
CN115277280B (en) Control method of intelligent household equipment and control method of server
CN112311633A (en) Distribution network control method, distribution network control device, household appliance and storage medium
CN112305926A (en) Distribution network control method, distribution network control device, household appliance and storage medium
CN111983928A (en) Household appliance control method and device, electronic equipment and storage medium
CN113489629B (en) Control end equipment, controlled end equipment and equipment networking method
CN114900826A (en) Equipment binding method and device, storage medium and electronic device
CN115695182A (en) Network connection method, device, storage medium and electronic device
CN115484115B (en) Binding method and device, storage medium and electronic device
CN114697345B (en) Information updating method and device, storage medium and electronic device
CN115174609B (en) Method and device for sending control instruction, storage medium and electronic device
CN115314549B (en) Offline equipment management method, storage medium and electronic device
CN112311831B (en) Distribution network control method, distribution network control device, household appliance and storage medium
CN116634464A (en) Network distribution method and device of equipment, storage medium and electronic equipment
CN116382106A (en) Control method, system, storage medium and device of intelligent household equipment
CN116847431A (en) Information transmission method and device, storage medium and electronic 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
GR01 Patent grant
GR01 Patent grant