CN114245402B - Network distribution method and device of intelligent equipment, electronic equipment and storage medium - Google Patents

Network distribution method and device of intelligent equipment, electronic equipment and storage medium Download PDF

Info

Publication number
CN114245402B
CN114245402B CN202111521869.7A CN202111521869A CN114245402B CN 114245402 B CN114245402 B CN 114245402B CN 202111521869 A CN202111521869 A CN 202111521869A CN 114245402 B CN114245402 B CN 114245402B
Authority
CN
China
Prior art keywords
intelligent
router
intelligent devices
devices
hot spot
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
CN202111521869.7A
Other languages
Chinese (zh)
Other versions
CN114245402A (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.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology 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 Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202111521869.7A priority Critical patent/CN114245402B/en
Publication of CN114245402A publication Critical patent/CN114245402A/en
Application granted granted Critical
Publication of CN114245402B publication Critical patent/CN114245402B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a network distribution method and device of intelligent equipment, electronic equipment and a storage medium, wherein the method comprises the following steps: receiving a first hot spot connection request sent by a terminal, and establishing a first communication link with the terminal according to the first hot spot connection request; receiving router information sent by a terminal, connecting the router according to the router information, and accessing the Internet of things platform after connecting the router; receiving a second hot spot connection request sent by the other intelligent devices, and establishing a second communication link with the other intelligent devices according to the second hot spot connection request; and forwarding the router information to other intelligent devices so that the other intelligent devices are connected with the router according to the router information, and accessing the Internet of things platform after the router is connected. The network distribution is carried out aiming at the target intelligent equipment, other intelligent equipment can automatically and rapidly distribute the network by means of the target intelligent equipment of the distributed network, the operation is simple, the user experience is improved, and the time spent in the network distribution is correspondingly reduced.

Description

Network distribution method and device of intelligent equipment, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a network distribution method and device of intelligent equipment, electronic equipment and a storage medium.
Background
Along with popularization of intelligent scene application, the quantity of intelligent devices is suddenly advanced, and convenience and experience of intelligent device network allocation are particularly important. When a plurality of intelligent devices are arranged in an environment and network distribution is needed to be carried out on the plurality of intelligent devices, a user needs to reset each intelligent device (enable the intelligent devices to enter a network-configurable state), and mobile phone APP is used for network distribution. Therefore, the operation of resetting and network distribution is required to be executed for each intelligent device, the operation is complex, repeated operation is mostly performed, the user experience is poor, and the whole network distribution process takes longer time.
Disclosure of Invention
In order to solve the technical problems that reset and network allocation operations are required to be executed for each intelligent device, the operation is complex, repeated operations are mostly performed, user experience is poor, and the whole network allocation process takes a long time, the embodiment of the invention provides a network allocation method and device for intelligent devices, electronic devices and storage media.
In a first aspect of the embodiment of the present invention, there is first provided a network allocation method for an intelligent device, where a target intelligent device is selected from a plurality of intelligent devices and applied to the target intelligent device, the method includes:
Receiving a first hot spot connection request sent by a terminal, and establishing a first communication link with the terminal according to the first hot spot connection request;
receiving router information sent by the terminal, connecting a router according to the router information, and accessing an Internet of things platform after connecting the router;
receiving a second hot spot connection request sent by other intelligent devices, and establishing a second communication link with the other intelligent devices according to the second hot spot connection request;
and forwarding the router information to the rest intelligent devices so that the rest intelligent devices are connected with a router according to the router information, and then are connected with an Internet of things platform.
In an optional embodiment, before the receiving the first hotspot connection request sent by the terminal, the method further includes:
and under the condition that an intelligent device mode reset instruction is triggered, resetting the target intelligent device to an AP mode according to the intelligent device mode reset instruction, and releasing the first hot spot.
In an optional embodiment, before the router is connected according to the router information, the method further includes:
And under the condition that an intelligent device mode switching instruction is triggered, switching the target intelligent device from the AP mode to a station mode.
In an alternative embodiment, the remaining smart devices are reset to the station mode;
before receiving the second hotspot connection request sent by the rest of intelligent devices, the method further comprises:
and under the condition of triggering an intelligent device mode switching instruction, switching the target intelligent device from the station mode to the AP mode, and releasing a second hot spot.
In an optional embodiment, before the receiving the second hotspot connection request sent by the remaining smart devices, the method further includes:
searching whether other hot spots exist in the current environment;
if the other hot spots do not exist in the current environment, executing the step of receiving a second hot spot connection request sent by other intelligent devices;
and if the other hot spots exist in the current environment, prompting to temporarily close the other hot spots.
In an optional implementation manner, the forwarding the router information to the rest of the intelligent devices, so that the rest of the intelligent devices connect to a router according to the router information, and access to an internet of things platform after connecting to the router, includes:
Forwarding the router information to the rest of the intelligent devices so that the rest of the intelligent devices execute the following steps:
receiving the router information forwarded by the target intelligent equipment, and disconnecting the second communication link with the target intelligent equipment;
under the condition of triggering an intelligent device mode switching instruction, switching the rest intelligent devices from the station mode to a mateable station mode;
and connecting the router according to the router information, and accessing the Internet of things platform after connecting the router.
In an optional implementation manner, the forwarding the router information to the rest of the intelligent devices, so that the rest of the intelligent devices connect to a router according to the router information, and access to an internet of things platform after connecting to the router, includes:
acquiring the device information of the target intelligent device and the device information of the rest intelligent devices, forming a symmetric key according to a preset key composition rule, and encrypting the router information by using the symmetric key;
and forwarding the encrypted router information to the other intelligent devices so that the other intelligent devices decrypt the encrypted router information by utilizing the symmetric key to obtain the router information, connecting the router according to the router information, and accessing the internet of things platform after connecting the router.
In an optional embodiment, before forwarding the router information to the rest of the intelligent devices, the method further includes:
acquiring a distributed network intelligent device set from the internet of things platform, wherein the distributed network intelligent device set records intelligent devices accessed to the internet of things platform;
judging whether the rest intelligent devices exist in the distributed network intelligent device set or not;
if the rest intelligent devices do not exist in the distributed network intelligent device set, executing the step of forwarding the router information to the rest intelligent devices;
if the intelligent devices exist in the distributed network intelligent device set, forwarding the router information to the rest intelligent devices except the intelligent devices;
and if the rest intelligent devices exist in the distributed network intelligent device set, determining that the distribution network of the intelligent devices is completed.
In an alternative embodiment, the method further comprises:
counting the request quantity of the second hot spot connection requests and the equipment quantity of the rest intelligent equipment, and judging whether the request quantity is consistent with the equipment quantity or not;
if the number of the requests is not consistent with the number of the devices, acquiring an intelligent device set, and searching intelligent devices which do not send the second hot spot connection request from the intelligent device set;
And determining that the intelligent equipment which does not send the second hot spot connection request is abnormal, and triggering an alarm of the abnormal intelligent equipment.
In a second aspect of the embodiment of the present invention, there is provided a network configuration apparatus for an intelligent device, where a target intelligent device is selected from a plurality of intelligent devices and applied to the target intelligent device, the apparatus including:
the first link establishment module is used for receiving a first hot spot connection request sent by a terminal and establishing a first communication link with the terminal according to the first hot spot connection request;
the platform access module is used for receiving the router information sent by the terminal, connecting a router according to the router information, and accessing an Internet of things platform after connecting the router;
the second link establishment module is used for receiving a second hot spot connection request sent by other intelligent devices and establishing a second communication link with the other intelligent devices according to the second hot spot connection request;
and the information forwarding module is used for forwarding the router information to the rest intelligent devices so that the rest intelligent devices are connected with the router according to the router information and then connected with the Internet of things platform.
In a third aspect of the embodiment of the present invention, there is also provided an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the network distribution method of the intelligent equipment in the first aspect when executing the program stored in the memory.
In a fourth aspect of the embodiment of the present invention, there is further provided a storage medium, where instructions are stored, when the storage medium runs on a computer, to cause the computer to execute the network allocation method of the intelligent device described in the first aspect.
In a fifth aspect of the embodiments of the present invention, there is also provided a computer program product containing instructions, which when run on a computer, cause the computer to perform the network allocation method of the smart device described in the first aspect.
According to the technical scheme provided by the embodiment of the invention, the target intelligent equipment is selected from a plurality of intelligent equipment, and the following steps are executed by the target intelligent equipment: the method comprises the steps of receiving a first hot spot connection request sent by a terminal, establishing a first communication link with the terminal according to the first hot spot connection request, receiving router information sent by the terminal, connecting a router according to the router information, accessing an Internet of things platform after connecting the router, receiving a second hot spot connection request sent by other intelligent devices, establishing a second communication link with the other intelligent devices according to the second hot spot connection request, forwarding the router information to the other intelligent devices, enabling the other intelligent devices to be connected with the router according to the router information, and accessing the Internet of things platform after connecting the router. The target intelligent equipment is selected from the intelligent equipment, the network is allocated to the target intelligent equipment, other intelligent equipment can automatically and rapidly allocate the network by means of the allocated target intelligent equipment, the operation is simple, the user experience is improved, and the time spent in allocating the network is correspondingly reduced.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a schematic architecture diagram of a distribution network system of an intelligent device according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of an implementation of a network allocation method of an intelligent device according to an embodiment of the present invention;
fig. 3 is an interactive flow diagram of a network allocation method of other intelligent devices in the embodiment of the present invention;
fig. 4 is a schematic implementation flow chart of a method for confirming a distribution network according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a network distribution device of an intelligent device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the 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.
As shown in fig. 1, an architecture diagram of a distribution network system of an intelligent device according to an embodiment of the present invention includes a plurality of intelligent devices, a router, and an internet of things server (on which an internet of things platform is mounted), where the plurality of intelligent devices are connected to each other, and the plurality of intelligent devices are connected to the router, and the router is connected to the internet of things server.
Based on the network distribution system of the intelligent devices shown in fig. 1, the embodiment of the present invention selects one intelligent device from multiple intelligent devices as a target intelligent device, where the target intelligent device may be selected randomly, for example, the intelligent device a may be selected randomly from the intelligent devices A, B, C and … …, which is not limited in this embodiment of the present invention.
As shown in fig. 2, a schematic implementation flow chart of a network allocation method of an intelligent device according to an embodiment of the present invention is shown, where the method is applied to the above-mentioned target intelligent device, and specifically may include the following steps:
s201, a first hot spot connection request sent by a terminal is received, and a first communication link between the terminal and the terminal is established according to the first hot spot connection request.
In the embodiment of the invention, one intelligent device is selected from a plurality of intelligent devices to serve as a target intelligent device, and a user resets the target intelligent device, so that a mode reset instruction of the intelligent device is correspondingly triggered.
Under the condition that the intelligent device mode reset instruction is triggered, the target intelligent device resets the target intelligent device to the AP mode according to the intelligent device mode reset instruction, which means that the target intelligent device resets itself to the AP mode, and accordingly releases the first hot spot.
For example, in the embodiment of the present invention, as shown in fig. 1, an intelligent device a is randomly selected from a plurality of intelligent devices as a target intelligent device, and for the intelligent device a, a user resets the intelligent device a, and correspondingly, an intelligent device mode reset instruction is triggered, so that the intelligent device a enters an AP mode.
For the intelligent device A, under the condition that the intelligent device mode reset instruction is triggered, the intelligent device A resets the intelligent device A to be in an AP mode according to the intelligent device mode reset instruction, so that a mobile phone of a subsequent user can be conveniently accessed into the intelligent device A, and the corresponding intelligent device A can release a hot spot, namely a first hot spot, and the hot spot name is GR-A.
After the target intelligent device releases the first hotspot, the user may use the terminal, for example, a mobile phone, to search for the first hotspot released by the target intelligent device in the current environment, and further send a first hotspot connection request to the target intelligent device to connect with the first hotspot released by the target intelligent device.
For the target intelligent device, a first hotspot connection request sent by the terminal can be received, and then a first communication link between the terminal and the terminal can be established according to the first hotspot connection request, so that the terminal is connected with the first hotspot released by the target intelligent device.
For example, the target smart device is smart device a, after the smart device a releases the first hotspot, the user may use the mobile phone to search for the first hotspot released by the smart device a, and further send a first hotspot connection request to the smart device a to connect with the first hotspot released by the smart device a.
For the intelligent device A, a first hot spot connection request sent by the mobile phone can be received, and then a first communication link between the intelligent device A and the mobile phone can be established according to the first hot spot connection request, so that the mobile phone is connected with the first hot spot released by the intelligent device A.
S202, receiving router information sent by the terminal, connecting a router according to the router information, and accessing an Internet of things platform after connecting the router.
After the user uses the terminal, such as a mobile phone, to connect with the first hotspot released by the target intelligent device, the user manually inputs router information (router name, account password, etc.) through modes of APP, applet, etc., and the router information is sent to the target intelligent device through the terminal.
In the embodiment of the invention, for the target intelligent equipment, the router information sent by the terminal can be received and stored. In addition, after the target intelligent device successfully acquires the router information, the target intelligent device can be switched to a station mode.
Specifically, because the target intelligent device is in the AP mode at this time, mode switching needs to be performed, that is, after the target intelligent device successfully acquires the router information, an intelligent device mode switching instruction is triggered, and under the condition that the intelligent device mode switching instruction is triggered, the target intelligent device is switched from the AP mode to the station mode, which means that the target intelligent device is switched from the AP mode to the station mode.
For example, the target smart device is a smart device a, and the smart device a receives the router information sent by the mobile phone and stores the router information sent by the mobile phone. In addition, after the intelligent device A successfully acquires the router information, triggering an intelligent device mode switching instruction, and switching the intelligent device A from an AP mode to a station mode under the condition of triggering the intelligent device mode switching instruction.
And after the target intelligent equipment is switched from the AP mode to the station mode, the target intelligent equipment can be connected with a router according to router information sent by the terminal, so that the network can be accessed, and the Internet of things platform can be accessed. The target intelligent device can be accessed to the internet of things platform according to the protocol flow of the internet of things platform according to the program, and the network allocation of the target intelligent device is successful.
S203, receiving a second hot spot connection request sent by other intelligent devices, and establishing a second communication link with the other intelligent devices according to the second hot spot connection request.
After the target intelligent device is successfully allocated to the network, triggering an intelligent device mode switching instruction, and under the condition that the intelligent device mode switching instruction is triggered, switching the target intelligent device from a station mode to an AP mode by the target intelligent device, namely switching the target intelligent device from the station mode to the AP mode, and correspondingly releasing the second hot spot. It should be noted that, the second hotspot is different from the first hotspot, that is, the hotspot names are inconsistent, which is not limited by the embodiment of the present invention.
For example, the target intelligent device is an intelligent device A, after the intelligent device A is successfully allocated with the network, an intelligent device mode switching instruction is triggered, the intelligent device A switches itself from a station mode to an AP mode under the condition that the intelligent device mode switching instruction is triggered, a second hot spot is correspondingly released, the subsequent other intelligent devices can be conveniently accessed into the intelligent device A, and the hot spot name can be GR-AX.
In the embodiment of the invention, for other intelligent devices, the power-on is reset to the station mode, and a second hot spot released by the target intelligent device in the current environment is actively searched, and a second hot spot connection request is sent to the target intelligent device so as to connect the second hot spot of the target intelligent device.
For the target intelligent device, a second hot spot connection request sent by other intelligent devices can be received, and then a second communication link between the target intelligent device and the other intelligent devices can be established according to the second hot spot connection request, so that the other intelligent devices are connected with the second hot spot released by the target intelligent device.
For example, for the remaining smartdevices, such as smartdevice B, C, D, the power-up reset is in the station mode and actively searches for a second hotspot ("GR-AX") released by smartdevice a in the current environment, and sends a second hotspot connection request to smartdevice a to connect to the second hotspot ("GR-AX") released by smartdevice a.
For the intelligent device a, a second hotspot connection request sent by other intelligent devices such as the intelligent device B, C, D may be received, and then a second communication link between the intelligent device a and other intelligent devices such as the intelligent device B, C, D may be established according to the second hotspot connection request, so as to implement a second hotspot ("GR-AX") released by connecting the other intelligent devices such as the intelligent device B, C, D to the intelligent device a.
In addition, for the target intelligent device, after the second hot spot is released, whether other hot spots exist in the current environment or not can be searched, if no other hot spots exist in the current environment, the other intelligent devices are powered on and reset to a station mode, the second hot spot released by the target intelligent device in the current environment is actively searched, and a second hot spot connection request is sent to the target intelligent device so as to connect the second hot spot of the target intelligent device. For the target intelligent device, a second hot spot connection request sent by other intelligent devices can be received, and then a second communication link between the target intelligent device and the other intelligent devices can be established according to the second hot spot connection request, so that the other intelligent devices are connected with the second hot spot released by the target intelligent device.
If other hot spots exist in the current environment, in order to reduce the time for searching the hot spots by other intelligent devices, the searching efficiency is improved, other hot spots can be prompted to be temporarily closed, so that the other intelligent devices are powered on and reset to a station mode, and a second hot spot released by the target intelligent device in the current environment is actively searched, so that the searching time is shortened, and the searching efficiency is improved. And subsequently, sending a second hot spot connection request to the target intelligent device to connect with the second hot spot of the target intelligent device. For the target intelligent device, a second hot spot connection request sent by other intelligent devices can be received, and then a second communication link between the target intelligent device and the other intelligent devices can be established according to the second hot spot connection request, so that the other intelligent devices are connected with the second hot spot released by the target intelligent device.
S204, forwarding the router information to the rest intelligent devices, so that the rest intelligent devices are connected with a router according to the router information, and then are connected with an Internet of things platform.
For the target intelligent device, after the other intelligent devices are connected with the second hot spot released by the target intelligent device, the router information can be forwarded to the other intelligent devices, and then the other intelligent devices can receive the router information.
In particular, for the remaining smart devices, router information forwarded by the target smart device may be received, and the second communication link with the target smart device is actively disconnected, meaning that the second hotspot released by the target smart device is no longer connected.
After the other intelligent devices actively disconnect a second communication link with the target intelligent device, triggering an intelligent device mode switching instruction, and switching the other intelligent devices from a station mode to a mateable station mode under the condition of triggering the intelligent device mode switching instruction, so that the router is convenient to connect.
After the rest intelligent devices switch from the station mode to the mateable station mode (namely in the unconnected station mode), the rest intelligent devices can be connected with the router according to the router information, and then are connected with the Internet of things platform after the router is connected, and the rest intelligent devices are successfully distributed. For other intelligent devices, the platform of the Internet of things can be automatically accessed according to the program of the intelligent devices according to the flow.
In the embodiment of the invention, for the security of router information transmission, for the target intelligent device, the device information of the target intelligent device and the device information of other intelligent devices can be acquired, a symmetric key is formed according to a preset key composition rule, the router information is encrypted by using the symmetric key, and the encrypted router information is forwarded to the other intelligent devices.
For other intelligent devices, the encrypted router information forwarded by the target intelligent device can be received, the encrypted router information can be decrypted by using the symmetric key to obtain the router information, and a second communication link between the router information and the target intelligent device is actively disconnected, which means that a second hot spot released by the target intelligent device is not connected any more.
After the other intelligent devices actively disconnect a second communication link with the target intelligent device, triggering an intelligent device mode switching instruction, and switching the other intelligent devices from a station mode to a mateable station mode under the condition of triggering the intelligent device mode switching instruction, so that the router is convenient to connect.
After the rest intelligent devices switch from the station mode to the mateable station mode (namely in the unconnected station mode), the rest intelligent devices can be connected with the router according to the router information, and then are connected with the Internet of things platform after the router is connected, and the rest intelligent devices are successfully distributed. For other intelligent devices, the platform of the Internet of things can be automatically accessed according to the program of the intelligent devices according to the flow.
The device information of the target intelligent device and the device information of the other intelligent devices may specifically be a device ID, a device name, a device MAC address, etc., which is not limited in the embodiment of the present invention. In addition, the key composition rule may be a random composition, and a segment of character string may be mixed with the device information, which is not limited in the embodiment of the present invention.
For example, as shown in fig. 3, the target intelligent device is an intelligent device a, the intelligent device a obtains device information of the intelligent device a and device information of other intelligent devices such as an intelligent device B, C, D, a symmetric key is formed according to a preset key composition rule, the router information is encrypted by using the symmetric key, and the encrypted router information is forwarded to the other intelligent devices such as the intelligent device B, C, D.
The other intelligent devices, such as the intelligent device B, C, D, can receive the encrypted router information forwarded by the intelligent device a, further can decrypt the encrypted router information by using the symmetric key to obtain the router information, and actively disconnect the second communication link with the intelligent device a, which means that the second hotspot ("GR-AX") released by the intelligent device a is no longer connected.
After the other intelligent devices such as the intelligent device B, C, D actively disconnect the second communication link with the intelligent device A, an intelligent device mode switching instruction is triggered, and under the condition that the intelligent device mode switching instruction is triggered, the other intelligent devices such as the intelligent device B, C, D are switched from the station mode to the mateable station mode, so that the router is convenient to connect.
After other intelligent devices such as the intelligent device B, C, D switch from the station mode to the mateable station mode (namely in the unconnected station mode), the router can be connected according to the router information, and then the router is connected to the internet of things platform, at the moment, the network distribution of other intelligent devices such as the intelligent device B, C, D is successful, and the network distribution of the intelligent device A, B, C, D is successful.
In addition, in the embodiment of the present invention, in order to avoid repeated network allocation of the intelligent devices and improve network allocation efficiency of the intelligent devices, for the target intelligent devices, a set of intelligent devices with network allocation may be obtained from the internet of things platform, where the intelligent devices with network allocation are centrally recorded on the intelligent devices with network allocation accessed to the internet of things platform, and it is determined whether other intelligent devices exist in the set of intelligent devices with network allocation, and if the other intelligent devices do not exist in the set of intelligent devices with network allocation, the step S204 is executed.
For example, the target smart device is smart device a, a set of intelligent devices with a distributed network may be obtained from the internet of things platform, where the intelligent devices with a distributed network collectively record the smart devices with an access to the internet of things platform, and determine whether other smart devices such as smart device B, C, D exist in the set of intelligent devices with a distributed network, and if other smart devices such as smart device B, C, D do not exist in the set of intelligent devices with a distributed network, execute step S204 described above.
If the rest intelligent devices exist in the intelligent device set of the distributed network, determining that the distribution network of the intelligent devices is completed. For example, if the remaining intelligent devices such as the intelligent device B, C, D exist in the distributed network intelligent device set, it is determined that the distribution network of the intelligent devices such as the intelligent device A, B, C, D is completed.
If the intelligent devices exist in the distributed network intelligent device set, the router information is forwarded to the rest intelligent devices except the intelligent devices so as to complete the distribution network of the rest intelligent devices. For example, if the intelligent device B exists in the set of distributed network intelligent devices in the other intelligent devices such as the intelligent device B, C, D, the router information is forwarded to the remaining intelligent devices such as the intelligent device C, D except for the intelligent device B, so as to implement the network distribution of the remaining intelligent devices, and the specific process is similar to that of S204, which is not described in detail herein.
In addition, in order to ensure that all intelligent devices are successfully distributed, in the embodiment of the present invention, as shown in fig. 4, a schematic implementation flow diagram of a distribution network confirmation method provided in the embodiment of the present invention is provided, where the method may be specifically applied to a target intelligent device, and specifically may include the following steps:
s401, counting the request quantity of the second hot spot connection requests and the equipment quantity of the rest intelligent equipment, and judging whether the request quantity is consistent with the equipment quantity.
In the embodiment of the invention, for the target intelligent device, the request quantity of the second hot spot connection requests can be counted, which means counting how many intelligent devices are connected with the second hot spot released by the target intelligent device, wherein the second hot spot released by the target intelligent device is connected, and the router information is forwarded by the target intelligent device subsequently, so that the successful distribution of the intelligent device can be realized.
In addition, in the embodiment of the invention, for the target intelligent equipment, the equipment number of the rest intelligent equipment except the target intelligent equipment can be counted, which means that how much intelligent equipment needs to be distributed except the target intelligent equipment is counted, so that whether the request number is consistent with the equipment number can be judged, and the distribution network result of the intelligent equipment is determined according to the judgment result.
And S402, if the number of the requests is not consistent with the number of the devices, acquiring an intelligent device set, and searching the intelligent devices which do not send the second hot spot connection request from the intelligent device set.
S403, determining that the intelligent device which does not send the second hot spot connection request is abnormal, and triggering an alarm of the abnormal intelligent device.
In the embodiment of the invention, if the number of the requests is not consistent with the number of the devices, the target intelligent devices indicate that the intelligent devices are abnormal, the second hot spot connection request is not sent out, and the network allocation is correspondingly not successful, at the moment, an intelligent device set can be acquired, the intelligent devices which do not send out the second hot spot connection request are searched from the intelligent device set, the intelligent device abnormality which does not send out the second hot spot connection request is determined, and the alarm of the intelligent device abnormality is triggered. In addition, if the number of the requests is consistent with the number of the devices, the successful network allocation of all intelligent devices is indicated.
For example, in the embodiment of the present invention, if the number of requests is not consistent with the number of devices for the intelligent device a, it is indicated that there is an abnormality of the intelligent device, and no second hotspot connection request is sent, and accordingly, no network allocation is successful, at this time, an intelligent device set may be obtained, an intelligent device D that does not send a second hotspot connection request is searched for from the intelligent device set, an abnormality of the intelligent device D that does not send a second hotspot connection request is determined, and an alarm of the abnormality of the intelligent device is triggered.
Through the above description of the technical solution provided by the embodiments of the present invention, a target smart device is selected from a plurality of smart devices, and the following steps are executed by the target smart device: the method comprises the steps of receiving a first hot spot connection request sent by a terminal, establishing a first communication link with the terminal according to the first hot spot connection request, receiving router information sent by the terminal, connecting a router according to the router information, accessing an Internet of things platform after connecting the router, receiving a second hot spot connection request sent by other intelligent devices, establishing a second communication link with the other intelligent devices according to the second hot spot connection request, forwarding the router information to the other intelligent devices, enabling the other intelligent devices to be connected with the router according to the router information, and accessing the Internet of things platform after connecting the router.
The target intelligent equipment is selected from the intelligent equipment, the network is allocated to the target intelligent equipment, other intelligent equipment can automatically and rapidly allocate the network by means of the allocated target intelligent equipment, the operation is simple, the user experience is improved, and the time spent in allocating the network is correspondingly reduced.
Corresponding to the above method embodiment, the embodiment of the present invention further provides a network configuration device of an intelligent device, as shown in fig. 5, where the device may include: a first link establishment module 510, a platform access module 520, a second link establishment module 530, and an information forwarding module 540.
A first link establishing module 510, configured to receive a first hotspot connection request sent by a terminal, and establish a first communication link with the terminal according to the first hotspot connection request;
the platform access module 520 is configured to receive router information sent by the terminal, connect to a router according to the router information, and access an internet of things platform after connecting to the router;
a second link establishing module 530, configured to receive a second hotspot connection request sent by the other intelligent devices, and establish a second communication link with the other intelligent devices according to the second hotspot connection request;
And the information forwarding module 540 is configured to forward the router information to the other intelligent devices, so that the other intelligent devices connect to a router according to the router information, and access the internet of things platform after connecting to the router.
The embodiment of the invention also provides an electronic device, as shown in fig. 6, which comprises a processor 61, a communication interface 62, a memory 63 and a communication bus 64, wherein the processor 61, the communication interface 62 and the memory 63 complete communication with each other through the communication bus 64,
a memory 63 for storing a computer program;
the processor 61 is configured to execute the program stored in the memory 63, and implement the following steps:
receiving a first hot spot connection request sent by a terminal, and establishing a first communication link with the terminal according to the first hot spot connection request; receiving router information sent by the terminal, connecting a router according to the router information, and accessing an Internet of things platform after connecting the router; receiving a second hot spot connection request sent by other intelligent devices, and establishing a second communication link with the other intelligent devices according to the second hot spot connection request; and forwarding the router information to the rest intelligent devices so that the rest intelligent devices are connected with a router according to the router information, and then are connected with an Internet of things platform.
The communication bus mentioned by the above electronic device may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) bus, or the like. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The memory may include random access memory (Random Access Memory, RAM) or non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment of the present invention, a storage medium is further provided, where instructions are stored, when the storage medium runs on a computer, to cause the computer to perform the network allocation method of the smart device according to any one of the foregoing embodiments.
In yet another embodiment of the present invention, a computer program product containing instructions that, when run on a computer, cause the computer to perform the network allocation method of the smart device according to any one of the above embodiments is also provided.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a storage medium or transmitted from one storage medium to another, for example, from one website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The storage media may be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (12)

1. A network allocation method for an intelligent device, wherein a target intelligent device is selected from a plurality of intelligent devices, and is applied to the target intelligent device, the method comprising:
receiving a first hot spot connection request sent by a terminal, and establishing a first communication link with the terminal according to the first hot spot connection request;
receiving router information sent by the terminal, connecting a router according to the router information, and accessing an internet of things platform after connecting the router, wherein the router is accessed to the internet of things platform according to a protocol flow of accessing the internet of things platform, and the router represents that the network allocation of the target intelligent equipment is successful;
receiving a second hot spot connection request sent by other intelligent devices, and establishing a second communication link with the other intelligent devices according to the second hot spot connection request, wherein the second hot spot is different from the first hot spot;
and forwarding the router information to the rest intelligent devices, so that the rest intelligent devices are connected with the router according to the router information, and then are connected with the Internet of things platform, wherein the rest intelligent devices are connected with the Internet of things platform according to the protocol flow of the Internet of things platform, and the rest intelligent devices are successfully distributed.
2. The method of claim 1, wherein prior to receiving the first hotspot connection request sent by the terminal, the method further comprises:
and under the condition that an intelligent device mode reset instruction is triggered, resetting the target intelligent device to an AP mode according to the intelligent device mode reset instruction, and releasing the first hot spot.
3. The method of claim 2, wherein before connecting the router according to the router information, further comprising:
and under the condition that an intelligent device mode switching instruction is triggered, switching the target intelligent device from the AP mode to a station mode.
4. The method of claim 3, wherein the remaining intelligent devices are reset to the station mode;
before receiving the second hotspot connection request sent by the rest of intelligent devices, the method further comprises:
and under the condition of triggering an intelligent device mode switching instruction, switching the target intelligent device from the station mode to the AP mode, and releasing a second hot spot.
5. The method of claim 4, wherein prior to receiving the second hotspot connection request sent by the remaining smart device, the method further comprises:
Searching whether other hot spots exist in the current environment;
if the other hot spots do not exist in the current environment, executing the step of receiving a second hot spot connection request sent by other intelligent devices;
and if the other hot spots exist in the current environment, prompting to temporarily close the other hot spots.
6. The method of claim 4, wherein forwarding the router information to the remaining intelligent devices to cause the remaining intelligent devices to connect to a router according to the router information, accessing an internet of things platform after connecting to the router, comprises:
forwarding the router information to the rest of the intelligent devices so that the rest of the intelligent devices execute the following steps:
receiving the router information forwarded by the target intelligent equipment, and disconnecting the second communication link with the target intelligent equipment;
under the condition of triggering an intelligent device mode switching instruction, switching the rest intelligent devices from the station mode to a mateable station mode;
and connecting the router according to the router information, and accessing the Internet of things platform after connecting the router.
7. The method of claim 1, wherein forwarding the router information to the remaining intelligent devices to cause the remaining intelligent devices to connect to a router according to the router information, and accessing an internet of things platform after connecting to the router, comprises:
acquiring the device information of the target intelligent device and the device information of the rest intelligent devices, forming a symmetric key according to a preset key composition rule, and encrypting the router information by using the symmetric key;
and forwarding the encrypted router information to the other intelligent devices so that the other intelligent devices decrypt the encrypted router information by utilizing the symmetric key to obtain the router information, connecting the router according to the router information, and accessing the internet of things platform after connecting the router.
8. The method of claim 1, wherein before forwarding the router information to the remaining intelligent devices, further comprising:
acquiring a distributed network intelligent device set from the internet of things platform, wherein the distributed network intelligent device set records intelligent devices accessed to the internet of things platform;
Judging whether the rest intelligent devices exist in the distributed network intelligent device set or not;
if the rest intelligent devices do not exist in the distributed network intelligent device set, executing the step of forwarding the router information to the rest intelligent devices;
if the intelligent devices exist in the distributed network intelligent device set, forwarding the router information to the rest intelligent devices except the intelligent devices;
and if the rest intelligent devices exist in the distributed network intelligent device set, determining that the distribution network of the intelligent devices is completed.
9. The method according to any one of claims 1 to 8, further comprising:
counting the request quantity of the second hot spot connection requests and the equipment quantity of the rest intelligent equipment, and judging whether the request quantity is consistent with the equipment quantity or not;
if the number of the requests is not consistent with the number of the devices, acquiring an intelligent device set, and searching intelligent devices which do not send the second hot spot connection request from the intelligent device set;
and determining that the intelligent equipment which does not send the second hot spot connection request is abnormal, and triggering an alarm of the abnormal intelligent equipment.
10. A network configuration apparatus for an intelligent device, wherein a target intelligent device is selected from a plurality of intelligent devices, and is applied to the target intelligent device, the apparatus comprising:
the first link establishment module is used for receiving a first hot spot connection request sent by a terminal and establishing a first communication link with the terminal according to the first hot spot connection request;
the platform access module is used for receiving the router information sent by the terminal, connecting the router according to the router information, and accessing the internet of things platform after connecting the router, wherein the internet of things platform is accessed according to the protocol flow of accessing the internet of things platform, and the network allocation success of the target intelligent equipment is represented;
the second link establishing module is used for receiving a second hot spot connection request sent by other intelligent devices, establishing a second communication link with the other intelligent devices according to the second hot spot connection request, wherein the second hot spot is different from the first hot spot;
and the information forwarding module is used for forwarding the router information to the rest intelligent devices so that the rest intelligent devices are connected with the router according to the router information and then connected with the Internet of things platform, wherein the rest intelligent devices are connected with the Internet of things platform according to the protocol flow of the Internet of things platform, and the rest intelligent devices are successfully distributed.
11. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 1 to 9 when executing a program stored on a memory.
12. A storage medium having stored thereon a computer program, which when executed by a processor, implements the method of any of claims 1 to 9.
CN202111521869.7A 2021-12-13 2021-12-13 Network distribution method and device of intelligent equipment, electronic equipment and storage medium Active CN114245402B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111521869.7A CN114245402B (en) 2021-12-13 2021-12-13 Network distribution method and device of intelligent equipment, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111521869.7A CN114245402B (en) 2021-12-13 2021-12-13 Network distribution method and device of intelligent equipment, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114245402A CN114245402A (en) 2022-03-25
CN114245402B true CN114245402B (en) 2023-09-08

Family

ID=80755449

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111521869.7A Active CN114245402B (en) 2021-12-13 2021-12-13 Network distribution method and device of intelligent equipment, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114245402B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109787843A (en) * 2019-03-14 2019-05-21 杭州涂鸦信息技术有限公司 A kind of distribution method, apparatus, equipment and the storage medium of smart machine
CN112104479A (en) * 2020-07-30 2020-12-18 上海汉枫电子科技有限公司 Intelligent equipment batch zero allocation method
CN112261708A (en) * 2020-12-18 2021-01-22 深圳市晶讯技术股份有限公司 System and method for automatically configuring WiFi equipment in batches
EP3793164A1 (en) * 2019-09-11 2021-03-17 Hand Held Products, Inc. Configuring a remote electronic device by a peer electronic device in a networked environment
CN112752324A (en) * 2020-12-30 2021-05-04 珠海格力电器股份有限公司 Network distribution method, device and system of intelligent equipment, electronic equipment and storage medium
CN113194455A (en) * 2021-04-29 2021-07-30 四川虹美智能科技有限公司 Intelligent device network distribution method and device
CN113473479A (en) * 2021-03-31 2021-10-01 长沙博安通软件科技有限公司 Method for rapidly distributing WiFi modules in batch
CN113630727A (en) * 2021-07-09 2021-11-09 珠海荣邦智能科技有限公司 Intelligent household network distribution method, device, system, electronic equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130107783A1 (en) * 2011-10-26 2013-05-02 At&T Intellectual Property I, L.P Intelligent Hot Spot and Tethering
CN102651915B (en) * 2012-05-11 2015-06-03 卢泳 Intelligent wireless router and wireless communication system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109787843A (en) * 2019-03-14 2019-05-21 杭州涂鸦信息技术有限公司 A kind of distribution method, apparatus, equipment and the storage medium of smart machine
EP3793164A1 (en) * 2019-09-11 2021-03-17 Hand Held Products, Inc. Configuring a remote electronic device by a peer electronic device in a networked environment
CN112104479A (en) * 2020-07-30 2020-12-18 上海汉枫电子科技有限公司 Intelligent equipment batch zero allocation method
CN112261708A (en) * 2020-12-18 2021-01-22 深圳市晶讯技术股份有限公司 System and method for automatically configuring WiFi equipment in batches
CN112752324A (en) * 2020-12-30 2021-05-04 珠海格力电器股份有限公司 Network distribution method, device and system of intelligent equipment, electronic equipment and storage medium
CN113473479A (en) * 2021-03-31 2021-10-01 长沙博安通软件科技有限公司 Method for rapidly distributing WiFi modules in batch
CN113194455A (en) * 2021-04-29 2021-07-30 四川虹美智能科技有限公司 Intelligent device network distribution method and device
CN113630727A (en) * 2021-07-09 2021-11-09 珠海荣邦智能科技有限公司 Intelligent household network distribution method, device, system, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114245402A (en) 2022-03-25

Similar Documents

Publication Publication Date Title
KR101802264B1 (en) Method for sharing virtual sim card by multiple terminals, terminals, server, and system
EP2876913B1 (en) Application hosting method and system, mobile terminal and server
CN104618312B (en) A kind of remote login methods, devices and systems of M2M application
CN111148088B (en) Method, device, equipment and storage medium for managing mobile terminal and system
EP3163946B1 (en) Transmission list in wi-fi acces point
EP3386167B1 (en) Cloud operation interface sharing method, related device and system
CN110267314B (en) Method and device for switching network slices
CN111132305B (en) Method for 5G user terminal to access 5G network, user terminal equipment and medium
CN110475229B (en) Method and device for accessing service data, computer equipment and storage medium
EP3185598B1 (en) Application registration method and apparatus
CN104580170A (en) Data reading method and device
CN113271299A (en) Login method and server
CN105981416B (en) The method for managing several profiles in safety element
CN107645713A (en) A kind of method of calling, across cluster cornet server and the network equipment
CN107426090B (en) Information processing method, device, medium, electronic device, server and system
CN114245402B (en) Network distribution method and device of intelligent equipment, electronic equipment and storage medium
CN111132131A (en) Number copying method, terminal and storage medium
JP5323015B2 (en) Mobile communication system, packet switching node, and incoming call control method
CN105163335B (en) A kind of network access management method, server, mobile terminal and system
EP3148233B1 (en) Implementation method and apparatus for virtual communication card
CN104113837A (en) Method and device for access authentication of wireless local area network
CN114338794A (en) Service message pushing method and device, electronic equipment and storage medium
CN110798514B (en) Service processing method and device
CN110022538B (en) Method and device for identifying traffic type
CN112235784B (en) vSIM-based code number management method, device and equipment

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