CN115835370A - Network distribution method, device, equipment and medium for intelligent equipment - Google Patents

Network distribution method, device, equipment and medium for intelligent equipment Download PDF

Info

Publication number
CN115835370A
CN115835370A CN202211461971.7A CN202211461971A CN115835370A CN 115835370 A CN115835370 A CN 115835370A CN 202211461971 A CN202211461971 A CN 202211461971A CN 115835370 A CN115835370 A CN 115835370A
Authority
CN
China
Prior art keywords
intelligent
equipment
network
gateway
intelligent device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211461971.7A
Other languages
Chinese (zh)
Inventor
杨亚林
蒋志勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Bull Intelligent Information Co ltd
Original Assignee
Shenzhen Bull Intelligent Information 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 Shenzhen Bull Intelligent Information Co ltd filed Critical Shenzhen Bull Intelligent Information Co ltd
Priority to CN202211461971.7A priority Critical patent/CN115835370A/en
Publication of CN115835370A publication Critical patent/CN115835370A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The application discloses a network distribution method, a network distribution device, equipment and a medium of intelligent equipment, and relates to the technical field of Bluetooth networking. The method comprises the following steps: receiving a network quitting signal sent by first intelligent equipment in the networking managed by the gateway equipment, wherein the network quitting signal comprises equipment configuration parameters corresponding to the first intelligent equipment; receiving a network access replacing signal sent by second intelligent equipment, wherein the network access replacing signal comprises the equipment type of the second intelligent equipment; and under the condition that the equipment type of the first intelligent equipment is the same as that of the second intelligent equipment, performing network access configuration on the second intelligent equipment based on equipment configuration parameters corresponding to the first intelligent equipment, wherein the equipment configuration parameters comprise an equipment serial number of the first intelligent equipment. When the intelligent device is replaced in situ, the device serial number of the historical device is retrieved and recovered, so that the normal operation of other messages in the network can be ensured without being influenced by replay attack, and the network distribution efficiency of the intelligent device can be improved.

Description

Network distribution method, device, equipment and medium for intelligent equipment
Technical Field
The present application relates to the field of bluetooth networking technologies, and in particular, to a network distribution method, apparatus, device, and medium for an intelligent device.
Background
In the bluetooth networking technology, a network distribution process needs to be executed for intelligent devices added in the bluetooth networking, and after the network is successfully distributed, the intelligent devices are linked by the bluetooth networking, so that the intelligent devices are quickly controlled.
In the related art, when the same type of smart device is replaced, for example: and replacing the device A by the device B, wherein the device A is required to execute a network quitting process first, the device B broadcasts again, and the gateway device directly configures the unicast address of the device A to the device B.
However, in the above scheme, when the original unicast address is allocated, the bluetooth networking needs to initiate an update of an index value of an index serial number (IV index), at this time, device serial numbers corresponding to all the smart devices in the bluetooth networking also need to be updated synchronously, so that a difference exists between a device serial number cached in a playback Protection List (RPL) of another smart device in the bluetooth networking and a newly synchronized device serial number, which causes a message sent by a network-quitting smart device to be discarded, and affects a data transceiving flow between the smart device and the gateway device.
Disclosure of Invention
The embodiment of the application provides a network distribution method, a network distribution device, equipment and a medium of intelligent equipment, and the network access efficiency of the intelligent equipment in a Bluetooth networking can be improved. The technical scheme is as follows:
on one hand, a network distribution method of intelligent equipment is provided, which is applied to gateway equipment, and the method comprises the following steps:
receiving a network quitting signal sent by first intelligent equipment in networking managed by the gateway equipment, wherein the network quitting signal is used for indicating that the first intelligent equipment is disconnected with the gateway equipment, the network quitting signal comprises equipment configuration parameters corresponding to the first intelligent equipment, and the equipment configuration parameters comprise equipment types of the first intelligent equipment;
receiving a network access replacement signal sent by a second intelligent device, wherein the network access replacement signal is used for indicating the second intelligent device to join the networking managed by the gateway device in a mode of replacing a historical device, and the network access replacement signal comprises the device type of the second intelligent device;
and under the condition that the device type of the first intelligent device is the same as that of the second intelligent device, distributing distribution network data to the second intelligent device to complete network access configuration based on the device configuration parameters corresponding to the first intelligent device, wherein the distribution network data comprises a device serial number of the first intelligent device.
On the other hand, a network distribution device of an intelligent device is provided, which is applied to a gateway device, and the device comprises:
the gateway equipment management system comprises a receiving module, a judging module and a processing module, wherein the receiving module is used for receiving a network quitting signal sent by first intelligent equipment in networking managed by the gateway equipment, the network quitting signal is used for indicating that the first intelligent equipment is disconnected with the gateway equipment, the network quitting signal comprises equipment configuration parameters corresponding to the first intelligent equipment, and the equipment configuration parameters comprise equipment types of the first intelligent equipment;
the receiving module is further configured to receive a network access replacement signal sent by a second intelligent device, where the network access replacement signal is used to instruct the second intelligent device to join the networking managed by the gateway device in a manner of replacing a historical device, and the network access replacement signal includes a device type of the second intelligent device;
and the configuration module is configured to perform network access configuration on the second intelligent device based on device configuration parameters corresponding to the first intelligent device under the condition that the device type of the first intelligent device is the same as that of the second intelligent device, wherein the distribution network data includes a device serial number of the first intelligent device.
In another aspect, a computer device is provided, where the computer device includes a processor and a memory, where at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the memory, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the network distribution method for a smart device according to any of the embodiments of the present application.
In another aspect, a computer-readable storage medium is provided, where at least one program code is stored, and the program code is loaded and executed by a processor to implement the network distribution method for an intelligent device of a terminal device described in any of the embodiments of the present application.
In another aspect, a computer program product or computer program is provided, the computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instruction from the computer readable storage medium, and executes the computer instruction, so that the computer device executes the network distribution method of the intelligent device in any one of the above embodiments.
The technical scheme provided by the application at least comprises the following beneficial effects:
when the intelligent device is replaced in situ, namely the second intelligent device is used for replacing the first intelligent device, the gateway device retrieves the device serial number of the historical device and issues the device serial number to the second intelligent device for direct use based on the network quitting signal of the first intelligent device and the network access replacing signal of the second intelligent device, so that normal operation of other messages in networking without being influenced by replay attack can be ensured, and the network distribution efficiency of the intelligent device can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic illustration of an implementation environment provided by an exemplary embodiment of the present application;
fig. 2 is a flowchart of a network distribution method for an intelligent device according to an exemplary embodiment of the present disclosure;
fig. 3 is a flowchart of a network distribution method for an intelligent device according to another exemplary embodiment of the present application;
fig. 4 is a flowchart of a network access method of an intelligent device according to an exemplary embodiment of the present application;
fig. 5 is a flowchart of a network distribution method for an intelligent device according to still another exemplary embodiment of the present application;
fig. 6 is a block diagram of a network distribution apparatus of a smart device according to an exemplary embodiment of the present application;
fig. 7 is a block diagram of a network distribution apparatus of a smart device according to another exemplary embodiment of the present application;
fig. 8 is a block diagram of a gateway device according to an exemplary embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
First, terms referred to in the embodiments of the present application are briefly described:
a gateway device: the method is applied to Bluetooth networking and used for scanning the intelligent equipment to be networked, connecting the intelligent equipment to be networked, forwarding messages sent by the intelligent equipment and the like. Optionally, the gateway device is configured with a replacement operation control. When a user replaces the intelligent device, after the replacement is completed, the replacement operation control is triggered to execute the network distribution method of the intelligent device provided by the embodiment of the application.
Networking managed by gateway equipment: a single gateway device may connect a predetermined number and/or number of smart devices within a predetermined area, and all smart devices to which a single gateway device may connect are referred to as a gateway device managed network. Illustratively, the networking managed by the gateway device includes all intelligent devices which can be connected in the area where the home a is located; subgroups can be formed among different intelligent devices in the group network; the family a comprises an intelligent device a and an intelligent device b, the intelligent device a is independently corresponding to a sub-networking management area, and the intelligent device b is also corresponding to a sub-networking management area.
The intelligent equipment: the intelligent device can be realized as an intelligent controlled device and also can be realized as an intelligent device; such as: the intelligent device may be implemented as an intelligent air conditioner, an intelligent remote controller, an intelligent robot, and the like. When the intelligent device joins the networking managed by the gateway device, the intelligent device needs to be distributed with a network, and device configuration parameters are issued for the intelligent device. After the intelligent device successfully joins the networking managed by the gateway device, the intelligent device is regarded as a node. In the practical application process, the smart device may include a plurality of sub-devices, such as: the intelligent light control device includes 3 light-emitting diodes (LEDs for short), each LED corresponds to one element, that is, a node corresponding to the intelligent light control device includes 3 elements, the corresponding elements in the node correspond to unicast addresses, and the unicast addresses implement individual addressing of the elements. The intelligent device generates interaction with other intelligent devices or interaction with the gateway device in the using process, each time the interaction is generated, a wireless mesh (mesh) message is corresponding to each mesh message, each mesh message corresponds to a message type identifier and a device serial number, and in the receiving and transmitting process, the mesh messages are processed by adding one.
The equipment configuration parameters are as follows: when the intelligent device joins in the networking managed by the gateway device, based on the network information, the scene information and the device information of the intelligent device, generating the device configuration parameters corresponding to the intelligent device, wherein the network information is used for indicating the network environment condition where the intelligent device is located when being connected with the gateway device, if: the intelligent device a is connected with the gateway device by using a Bluetooth technology, and the network connection environment of the intelligent device a and the gateway device is not smooth (the intelligent device a is in the edge range of networking, and the network connection signal is weak); the scene information is used for indicating the use scene information of the intelligent equipment when the intelligent equipment is connected with the gateway equipment; the device information is used to indicate a device type, a device address, a device serial number, etc. of the smart device.
Network quit signals: the gateway equipment is used for indicating the disconnection of the intelligent equipment and the gateway equipment; and when the gateway equipment receives the network quitting signal of the intelligent equipment, storing the equipment configuration parameters corresponding to the intelligent equipment in the process of connecting with the gateway equipment.
Network entry replacement signal: the networking management system comprises a gateway device management module, a gateway device management module and a management module, wherein the gateway device management module is used for instructing intelligent devices to join networking managed by the gateway device in a mode of replacing historical devices; the device type of the history device may be the same as or different from that of the smart device, which is not limited in this application. The network distribution method of the intelligent device is mainly applied to a scene of performing in-situ replacement under the condition that the device type of the historical device is the same as that of the intelligent device.
In the related art, when there is a need for in-situ replacement of an intelligent device in bluetooth networking, for example: and the intelligent device a replaces the intelligent device b, and in the process of distributing the network to the intelligent device a, the gateway device acquires the unicast address corresponding to the intelligent device b, directly distributes the unicast address to the intelligent device a and applies the unicast address as the distribution network data of the intelligent device a. However, when the unicast address of the original smart device b is used, the network managed by the gateway device generally initiates the IV index update, or other nodes in the network managed by the gateway device initiate the IV index update.
When other intelligent devices in the network are anti-replay intelligent devices, a message cache list corresponding to an RPL is stored in the intelligent device of the type, and a device serial number (SEQ value for short) and a unicast address and the like corresponding to each mesh message of the intelligent device in the mesh message transceiving process are stored in the RPL. At this time, the original unicast address is directly used, and the IV index corresponding to the group network is directly updated. When all devices in the network transmit and receive the mesh message, the SEQ values are counted from zero, so that the SEQ values before the intelligent device b are cached in RPLs corresponding to other intelligent devices in the network, the updated SEQ values are smaller than the cached SEQ values, the intelligent device b starts a replay attack prevention function, the mesh message is filtered, the intelligent device a cannot successfully replace the intelligent device b, and the network distribution efficiency of the intelligent device is reduced to a certain extent.
In the embodiment of the application, when an in-situ replacement requirement exists in a networking managed by gateway equipment, equipment configuration parameters of historical intelligent equipment are stored in the process of quitting the networking of the historical intelligent equipment; and the gateway equipment recovers the equipment serial number in the equipment configuration parameters of the historical intelligent equipment and performs network access configuration as the newly replaced distribution network data of the intelligent equipment. On the basis of not influencing other intelligent equipment in the network, the network distribution efficiency of the intelligent equipment is effectively improved.
Referring to fig. 1, a schematic diagram of an implementation environment of an embodiment of the present application is shown. Illustratively, the implementation environment includes a gateway device 110, a to-be-configured intelligent device 120, and a distribution intelligent device 130.
In the embodiment of the present application, the gateway device 110 is a networking gateway, and is a computer system or device that provides data conversion services between multiple networks. Such as: the gateway device 110 is applied in bluetooth mesh networking. Optionally, the gateway device 110 provides functions of network access configuration, message forwarding, and the like for the intelligent devices in the group network.
The smart device to be networked 120 is a smart device with which a connection is to be established within the management range of the gateway device 110. That is, the to-be-networked smart device 120 does not establish a connection with the gateway device 110. When the to-be-configured network intelligent device 120 receives the network access signal, the to-be-configured network intelligent device 120 sends out broadcast information; the gateway device 110 recognizes the broadcast information to complete the network access authentication process of the to-be-configured network smart device 120. After the network access verification is passed, a parameter configuration flow is started for the intelligent device 120 to be configured, after the parameter configuration is completed, the distribution network data is sent, and the intelligent device 120 to be configured becomes the distribution network intelligent device 130.
The distribution network intelligent device 130 is used to indicate the devices that successfully establish a connection with the gateway device 110. After the connection is established, the distribution network intelligent devices 130 can perform mutual control and also can perform mutual inquiry of the device states; whether the control or the query is performed, the distribution network intelligent device 130 needs to send a service message request, the gateway device 110 forwards the service message request, and sends the service message request to the target distribution network intelligent device, and the target distribution network intelligent device determines whether to respond.
In the foregoing implementation environment, the gateway device 110 may be implemented as a bluetooth gateway having a bluetooth connection function, and the to-be-connected intelligent device 120 and the distribution network intelligent device 130 are implemented as any intelligent devices having a bluetooth connection function, such as: intelligent lighting, intelligent robots, intelligent vehicle-mounted equipment, and the like.
In another optional embodiment, the implementation environment may further include a cloud server, and when the to-be-networked intelligent device 120 completes network access configuration, the device configuration parameters corresponding to the to-be-networked intelligent device 120 are uploaded to the cloud server for storage. When the intelligent device is replaced in situ, the device configuration parameters corresponding to the historical intelligent device can be directly obtained from the cloud server for recovery.
It should be noted that the foregoing implementation environment is only an exemplary embodiment, and may also be implemented in any other networking system to achieve the purposes of network configuration, intelligent control, and in-situ replacement of an intelligent device.
With reference to fig. 2 for the above implementation environment, a method for distributing a network of an intelligent device according to an embodiment of the present application is shown, and in the embodiment of the present application, the method is applied to a gateway device shown in fig. 1 as an example. The method comprises the following steps:
step 200, receiving a network quitting signal sent by a first intelligent device in the networking managed by the gateway device.
Optionally, the gateway device is configured to manage the intelligent devices within its connection range, receive the broadcast information of the intelligent devices to be networked, configure network access data for the intelligent devices to be networked based on the broadcast information, and complete connection with the gateway device.
After the connection is established, the gateway device transfers a service request of the intelligent device, wherein the service request comprises at least one of a control request, a state query request, a network quitting request, a network access request and an in-situ replacement request. The first intelligent device and the distribution network intelligent device are added into the networking managed by the gateway device, and the intelligent device to be distributed is not added into the networking managed by the gateway device.
The control request is used for indicating the first intelligent equipment to control other distribution network intelligent equipment, the gateway equipment sends the control signal to the distribution network intelligent equipment to receive the control signal, and the distribution network intelligent equipment to receive the control signal responds to the control of the first intelligent equipment based on the control signal and determines whether to respond to the control signal; and if the response exists, forwarding the response message to the first intelligent equipment through the gateway equipment. Optionally, the control request may also be implemented to control the first intelligent device by another distribution network intelligent device.
The state query request is used for indicating the first intelligent device to query other distribution network intelligent devices, the gateway device sends a state query signal to the distribution network intelligent device to receive the state query request, and the distribution network intelligent device to receive the state query request feeds back the device state information of the distribution network intelligent device to the first intelligent device through the gateway device based on the state query signal. Optionally, the distribution network intelligent device that is to receive the status query request may not respond to the status query signal, that is, the first intelligent device may not query the device status information of the distribution network intelligent device that is to receive the status query request. Optionally, the status query request may also be implemented to query the device status of the first smart device for other distribution network smart devices.
The network quitting request is used for indicating the network distribution intelligent equipment in the networking to be disconnected with the gateway equipment. Taking the first intelligent device as an example for explanation, the gateway device receives a network quitting signal of the first intelligent device, and clears the relevant device configuration parameters of the first intelligent device based on the network quitting signal. In the embodiment of the application, the gateway device receives a network quitting signal of the first intelligent device, and obtains and stores the device configuration parameters of the first intelligent device based on the network quitting signal. Optionally, the gateway device may store the device configuration parameter of the first intelligent device in a network layer of the gateway device, and may also upload the device configuration parameter of the first intelligent device to the cloud server for backup storage, and when there is a demand for using the device configuration parameter of the first intelligent device, the gateway device is directly called from the cloud server.
And the network access request is used for indicating the intelligent equipment to be configured to request to establish connection with the gateway equipment. And the gateway equipment receives the broadcast information of the intelligent equipment to be networked, and completes the network access verification and equipment parameter configuration of the intelligent equipment to be networked based on the broadcast information.
The in-place replacement request is used for instructing the intelligent device to join the networking managed by the gateway device in the form of replacing the historical intelligent device. For example, it is briefly explained that the second intelligent device replaces the first intelligent device, after the second intelligent device replaces the first intelligent device, the first intelligent device sends a network quitting signal to the gateway device, the gateway device is disconnected from the first intelligent device based on the network quitting signal, and receives a network entry replacement signal sent by the second intelligent device, where the network entry replacement signal is used to instruct the second intelligent device to join the network in a manner of replacing a historical intelligent device (the first intelligent device). In this embodiment of the application, the gateway device recovers the device configuration parameters of the first intelligent device based on the network access replacement signal, and is applied to a process of configuring the device parameters for the second intelligent device. It should be noted that, when performing in-situ replacement, the device types of the first smart device and the second smart device may be the same or different, and the network access replacement process is executed under the condition that the device types are the same; and under the condition that the equipment types are different, the second intelligent equipment carries out network access verification and equipment parameter configuration according to the normal network access flow.
In this embodiment of the application, a detailed description is given to a scenario in which the first intelligent device performs in-situ replacement, and in this scenario, after the first intelligent device performs in-situ replacement, a network quitting signal needs to be sent to the gateway device. The network quitting signal includes device configuration parameters of the first intelligent device, and the device configuration parameters include at least one of a device type of the first intelligent device, a device management policy of the first intelligent device, application scenario configuration data of the first intelligent device, a device serial number (SEQ value) of the first intelligent device, object model information of the first intelligent device, and a unicast address of the first intelligent device.
In another optional embodiment, the first intelligent device is regarded as a node in the group network, and one node shares one device serial number; however, when the first smart device includes multiple elements, the multiple elements may share one device serial number, or each element may be assigned with an independent device serial number.
The equipment type of the first intelligent equipment is used for uniquely identifying the equipment type of the first intelligent equipment, and the equipment type corresponds to the equipment identification number with the unique identification.
The management policy of the first intelligent device is used for indicating a process executed by the first intelligent device in an actual application process, and the management policy of the first intelligent device is generated and stored based on the execution process. Such as: the first intelligent device is a lamp control system, and the first intelligent device is circularly applied in a use mode of firstly turning on for a first preset time length and then turning off for a second preset time length in the application process. The first intelligent device generates a management strategy for storage based on the use mode, so that other intelligent devices can conveniently execute operations such as inquiry and calling.
The application scene configuration data of the first intelligent device is used for indicating the corresponding parameter configuration data of the first intelligent device in the application execution scene; such as: the first intelligent equipment is applied to an office scene, and first parameter data are configured in the office scene; the first intelligent device can also be applied to a family scene, and is configured with second parameter data in the family scene.
The device serial number (SEQ value) of the first smart device is a 4-bit serial number of the first smart device, and is used to uniquely identify the first smart device, where the device serial number may be stored in the first smart device, may also exist in a networking network layer, or may also exist in both the first smart device and a networking network layer. When the first intelligent equipment sends a service request, the service request corresponds to a networking mesh message; that is, each time the first smart device sends a mesh message, the device serial number of the first smart device stored in the networking network layer is processed by adding 1 (SEQ + 1); when the SEQ value reaches the storage threshold, a process of updating the index value IV index of the identification network is initiated, that is: IV index +1; after the IV index +1 is updated, the gateway device synchronizes the updated IV index to all the intelligent devices in the network. In this embodiment of the present application, the IV index is a 32-bit numerical value, all intelligent devices (nodes) in a networking may share one IV index, and multiple IV index values may also exist, which is not limited in this application.
The object model information of the first intelligent device is used for indicating a data model of the first intelligent device, and is used for describing the functions of the first intelligent device. The object model information comprises attribute information, service information and event information of the first intelligent device. The attribute signal is used for describing specific information and states of the first intelligent device during operation, such as: the first intelligent device is an environment monitoring device, and the attribute information is the current environment temperature, the intelligent lamp switching state, the intelligent fan wind power level and the like read by the first intelligent device; the service information is used for indicating an instruction or a method which can be called by the first intelligent equipment from the outside, and the service information can be divided into an asynchronous calling mode and a synchronous calling mode; the event information is used for indicating that the first intelligent device actively reports information to the cloud server when running, wherein the information comprises information, alarm and fault which need to be sensed and processed by the outside. Such as: the first intelligent device executes task completion notification information sent by a preset task, temperature information and time information when the first intelligent device breaks down, an operating state when the first intelligent device gives an alarm, and the like.
The unicast address of the first intelligent device is used for identifying the MAC address of the first intelligent device, and the MAC address is burnt in a flash memory chip of the first intelligent device and is used for determining the address of the position of the first intelligent device.
Step 201, receiving a network access replacement signal sent by a second intelligent device.
Optionally, the second smart device is used to replace the first smart device, and the type of the second smart device needs to be consistent with the type of the first smart device.
Optionally, when the intelligent device is replaced, the connection between the first intelligent device and the gateway device is triggered to be closed, and the manner of triggering to be closed includes, but is not limited to, the following manners:
the first intelligent device is integrated with a closing control, a user clicks the closing control to enable the first intelligent device to be in an unused state, and after the closing control is clicked, the first intelligent device sends a network quitting signal to the gateway device.
Secondly, the first intelligent device corresponds to a target application program, and management control is carried out on the first intelligent device in the target application program; optionally, a network quitting control corresponding to the first intelligent device is provided in the target application program; after the user triggers the network quitting control element, the first intelligent device is switched to the non-operating state from the operating state. Optionally, a prompt message is displayed in the interface of the target application program, where the prompt message is used to prompt that the first smart device has been successfully turned off.
And thirdly, the user directly removes the first intelligent device. Such as: including 3 LED lamps in the lamp accuse smart machine, the user directly demolishs 3 LED lamps in the lamp accuse equipment.
Optionally, the network access replacement signal is used to instruct the second smart device to join the networking managed by the gateway device in a form of replacing a history device (the first smart device), and the network access replacement signal includes a device type of the second smart device.
In the in-situ replacement scenario related in the embodiment of the application, the first intelligent device is successfully disconnected from the gateway device; the second intelligent device broadcasts device information of the second intelligent device, the device information comprises an MAC address of the second intelligent device and a device type of the second intelligent device, and the gateway device executes a distribution network process of the second intelligent device based on the MAC address.
The network distribution process of the second intelligent device comprises the steps that the second intelligent device sends a network access replacement signal to the gateway device, and the gateway device scans broadcast information corresponding to the second intelligent device based on the network access replacement signal, determines a list of intelligent devices to be distributed, namely, determines whether the device type of the second intelligent device is consistent with that of the first intelligent device.
Step 202, under the condition that the device type of the first intelligent device is the same as that of the second intelligent device, distributing distribution network data to the second intelligent device based on the device configuration parameters corresponding to the first intelligent device to complete network access configuration.
Optionally, the gateway device determines that the device type of the first smart device is consistent with the device type of the second smart device, which means that the second smart device performs in-situ replacement of the first smart device with the same device type, and in order to avoid a resource waste situation caused by network distribution for the second smart device, the gateway device recovers the device configuration parameters of the first smart device and applies the device configuration parameters to the second smart device while not affecting other smart devices in the network.
As known in the foregoing, the device configuration parameters of the first smart device include at least one of a device type of the first smart device, a device management policy of the first smart device, application scenario configuration data of the first smart device, a device serial number (SEQ value) of the first smart device, object model information of the first smart device, and a unicast address of the first smart device.
And in the process of distributing the network to the second intelligent equipment, the gateway equipment directly takes the equipment configuration parameters of the first intelligent equipment as the distribution network data of the second intelligent equipment to complete network access configuration.
In an optional embodiment, when the first intelligent device sends the network quitting signal, the gateway device obtains the device configuration parameters of the first intelligent device for storage, and when the network entry replacement signal from the second intelligent device is received, the stored device configuration parameters of the first intelligent device are called and the configuration is issued to the second intelligent device. Schematically, configuring a unicast address of a first intelligent device and a device serial number of the first intelligent device to a second intelligent device; and the equipment management strategy, the application scene configuration data and the object model information of the first intelligent equipment are sent to the second intelligent equipment through the networking.
In another optional embodiment, when the first intelligent device sends the network quitting signal, the gateway device obtains the device configuration parameters of the first intelligent device and uploads the device configuration parameters to the cloud server; and when a network access replacing signal from the second intelligent equipment is received, calling the stored equipment configuration parameters of the first intelligent equipment from the cloud server, and issuing the configuration parameters to the second intelligent equipment.
The gateway device directly recovers the device serial number of the first intelligent device and applies the device serial number to the second intelligent device. In an optional embodiment, the device serial number of the first intelligent device may be further assigned according to a preset gradient to obtain a target device serial number of the first intelligent device, and the target device serial number is configured to the second intelligent device to complete network access configuration; such as: the gateway device obtains the device sequence number (SEQ) of the first smart device, and performs a +100 processing mode on the SEQ value, that is, the device sequence number received by the second smart device is SEQ +100. And other equipment configuration parameters of the first intelligent equipment do not need to be processed and can be directly issued. That is, the gateway device issues the target device serial number, the application scenario configuration data of the first intelligent device, and the unicast address to the second intelligent device, thereby completing the network access configuration of the second intelligent device.
In another optional embodiment, when the first intelligent device sends the network quitting signal, the gateway device obtains the device configuration parameters of the first intelligent device for storage, and when the network entry replacement signal from the second intelligent device is received, the stored device configuration parameters of the first intelligent device are called and the configuration is issued to the second intelligent device. When the second intelligent device reuses the device configuration parameters of the first intelligent device, setting an upper limit number of times for updating the device serial number; the SEQ value is stored until the SEQ is increased for each upper limit number of times.
Illustratively, when in-situ replacement is performed, the SEQ value of the first intelligent device needs to be +1 every time the mesh packet is transmitted, and power is turned on and needs to be restored after power failure, that is, the SEQ value corresponding to each time needs to be stored in a FLASH memory chip storage area FLASH of the first intelligent device. If the change of the SEQ value is stored in the FLASH every time, the requirements on the searching and writing times of the FLASH are high, and the erasing and writing life storage upper limit of the FLASH at the same position is generally high. In order to meet the performance requirement, the current SEQ value is stored in FLASH every time the SEQ value is increased by 100, so that the process of updating the SEQ value is not repeated after the intelligent equipment is restarted and powered on.
To sum up, according to the network distribution method for the intelligent device provided by the embodiment of the application, when the intelligent device is replaced in situ, that is, the second intelligent device is used for replacing the first intelligent device, and the gateway device retrieves the device serial number of the historical device and issues the device serial number to the second intelligent device for direct use based on the network quitting signal of the first intelligent device and the network entering replacement signal of the second intelligent device, so that normal operation of other messages in networking without being influenced by replay attack can be ensured, and the network distribution efficiency of the intelligent device can be improved.
Referring to fig. 3, a network distribution method for an intelligent device according to an embodiment of the present application is shown, and in the embodiment of the present application, the method is applied to a gateway device shown in fig. 1 as an example for description. The method comprises the following steps:
and step 300, receiving the network access broadcast message sent by at least one second intelligent sub-device.
Optionally, when the first smart device is replaced, a plurality of smart devices may be replaced. The multiple smart device replacement modes include, but are not limited to, the following modes:
first, a plurality of first smart devices are replaced simultaneously. Such as: the second smart device 1 replaces the first smart device 1, the second smart device 2 replaces the first smart device 2, the second smart device 3 replaces the first smart device 3, and so on. In the one-to-one alternative scenario, the network access configuration may be performed by directly applying the flows from step 200 to step 202.
Second, at least one first smart sub-device in the first smart device is replaced, that is, the second smart device includes at least one second smart sub-device. Optionally, the gateway device obtains an access broadcast message corresponding to at least one second intelligent sub-device, where the access broadcast message includes an access replacement signal corresponding to the at least one second intelligent sub-device; and the gateway equipment determines a list of intelligent equipment to be distributed based on the network access broadcast information of the at least one second intelligent sub-equipment. The list of the intelligent devices to be networked comprises a list set of all the intelligent devices which can be found by the gateway device in the management range of the intelligent device, and all the intelligent devices in the list set are intelligent devices which are not connected with the gateway device.
Step 301, acquiring a second device list with the same device type as the first intelligent device based on the network access broadcast information.
Optionally, the gateway device obtains a second device list, which is the same as the device type of the first intelligent device, from the device list to be distributed; that is, at least one second intelligent sub-device is determined. And the second equipment list comprises intelligent equipment which is the same as the first intelligent equipment in type and is required for carrying out the in-situ replacement. That is, the second device list includes a second smart sub-device of the same device type as the first smart device.
In the embodiment of the application, when the number of the devices in the second device list is smaller than a preset threshold value, a network access process of the second intelligent sub-device in the second device list is automatically executed; and under the condition that the number of the devices in the second device list is larger than or equal to the preset threshold, responding to the received distribution network signal, and executing a network access process of the second intelligent sub-device in the second device list. Illustratively, the preset threshold is set to 1. When the equipment needing to be replaced exceeds the preset threshold value, the mode of manually configuring the network access flow is adopted, the intelligent equipment which is replaced by mistake can be effectively prevented, and the network distribution efficiency of the intelligent equipment is further improved.
To sum up, according to the network distribution method for the intelligent device provided by the embodiment of the application, when the intelligent device is replaced in situ, that is, the second intelligent device is used for replacing the first intelligent device, and the gateway device retrieves the device serial number of the historical device and issues the device serial number to the second intelligent device for direct use based on the network quitting signal of the first intelligent device and the network entering replacement signal of the second intelligent device, so that normal operation of other messages in networking without being influenced by replay attack can be ensured, and the network distribution efficiency of the intelligent device can be improved.
In the embodiment of the application, when a plurality of intelligent sub-devices to be networked exist, the situation of mistaken replacement is reduced by manually starting the network access flow, normal work of other intelligent devices in the networking is ensured to a certain extent, and the accuracy of the network distribution of the intelligent devices is improved.
Referring to fig. 4, a network distribution method for an intelligent device according to an embodiment of the present application is shown, and in the embodiment of the present application, the method is applied to a gateway device shown in fig. 1 as an example for description. The method comprises the following steps:
step 400, receiving a network access signal of the first intelligent device, where the network access signal is used to instruct the first intelligent device to establish connection with the gateway device.
Optionally, before the first smart device quits the network, the first smart device needs to establish a connection with the gateway device. The first intelligent device network access process comprises the processes of broadcasting, inviting, exchanging public keys, authenticating and starting configuration parameters. The present application does not describe this networking process in detail.
When a first smart device joins a gateway device managed web-net, there is typically a multi-scenario application. That is, the first smart device is not limited to only one scenario. Such as a first smart device "light", which can be applied in any scenario. When the networking managed by the gateway device includes a plurality of sub-networking, the intelligent device may also be added to a plurality of ad hoc networks for application. In this case, the first intelligent device may generate different device configuration parameters after the distribution network is completed.
Step 401, in response to the first intelligent device successfully establishing a connection with the gateway device, storing the device configuration parameter of the first intelligent device in a parameter storage area.
Optionally, the first intelligent device includes a parameter storage area, where the parameter storage area is used to store device configuration parameters generated when the first intelligent device joins in different networks managed by the gateway device. The parameter storage area is predefined with a storage function, and the storage function is used for acquiring a SEQ value, a unicast address, a network key and a storage sequence corresponding to the first intelligent device when the first intelligent device joins the networking managed by the gateway device. The SEQ value and the unicast address of the first smart device may be the parameters described above. The network key is used to identify a key corresponding to the first smart device when sending the mesh message, may also be used to represent a key corresponding to a networking managed by the gateway device, and may also be used to represent a key corresponding to a sub-networking managed by the gateway device within the networking. The storage sequence is used for indicating the sequence number of the first intelligent device for storing the device configuration parameters in the parameter storage area. In the embodiment of the present application, the bytes of the storage function are 26 bytes.
In the embodiment of the application, a preset number of device configuration parameters are stored in the parameter storage area. The multiple device configuration parameters may be used to indicate corresponding parameter configuration information when the first intelligent device joins in different sub-networks, or may be used to indicate corresponding parameter configuration information when the first intelligent device is connected with the gateway device for multiple times. Such as: the preset number is 5, and the maximum 5 device configuration parameters are stored in the parameter storage area.
When the first intelligent device is successfully connected with the gateway device, the first intelligent device is successfully added into the networking managed by the gateway device; and acquiring the equipment configuration parameters of the first intelligent equipment.
And the first intelligent equipment compares whether the current equipment configuration parameters are consistent with the equipment configuration parameters stored in the parameter storage area. Illustratively, after the network distribution is successful, the first intelligent device needs to compare whether the current unicast address and the network key are the same as the configuration parameters of a certain group of devices in a parameter storage area (FLASH) of the first intelligent device.
Responsive to the device configuration parameters of the first smart device being present in the parameter storage area, ignoring the device configuration parameters of the first smart device; when the group of equipment configuration parameters needs to be called, the calling is directly carried out.
In response to the device configuration parameters of the first smart device not being present in the parameter storage area, storing the device configuration parameters of the first smart device to the parameter storage area.
In the storage process, a principle of retaining the latest is utilized to add one to the equipment configuration data newly stored in the parameter storage area and the storage serial number in the storage function; when the number of storages in the parameter storage area exceeds a preset number, the oldest stored device configuration parameter is deleted. Such as: the storage serial number is expressed by sum, and when one device configuration parameter is stored, the sum value is +1, when the storage upper limit reaches 5, the device configuration parameter with the smallest sum value is used for indicating the earliest storage, and the device configuration parameter with the largest sum value is used for indicating the last storage.
In some optional embodiments, when the first smart device is replaced, the first smart device needs to exit the networking managed by the gateway device; when the network quitting, the first intelligent device stores the current corresponding device configuration parameters, stores the position with the minimum storage serial number in the searched parameter storage area, and adds 1 to the storage serial number.
In the embodiment of the application, the gateway device acquires the device configuration parameters of the first intelligent device from the parameter storage area of the first intelligent device, or the first intelligent device directly uploads the device configuration parameters stored in the parameter storage area to the cloud server for backup in the process of quitting the network, and the gateway device acquires the device configuration parameters from the cloud server for recovery.
In another optional embodiment, when a plurality of elements are included in the first smart device, the plurality of elements may share one parameter storage region, or each element may be independently allocated with a parameter storage region, which is not limited in this application.
To sum up, according to the network distribution method for the intelligent device provided by the embodiment of the application, when the intelligent device is replaced in situ, that is, the second intelligent device is used for replacing the first intelligent device, and the gateway device retrieves the device serial number of the historical device and issues the device serial number to the second intelligent device for direct use based on the network quitting signal of the first intelligent device and the network entering replacement signal of the second intelligent device, so that normal operation of other messages in networking without being influenced by replay attack can be ensured, and the network distribution efficiency of the intelligent device can be improved.
In the embodiment of the application, when the first intelligent device joins in networking managed by the gateway device, the device configuration parameters of the first intelligent device are stored in the designated storage area, and in response to the in-situ replacement operation of the first intelligent device, the first intelligent device sends the device configuration parameters stored in the designated storage area to the gateway device while quitting the network, so that the gateway device can rapidly acquire the distribution network data sent to the second intelligent device, and the distribution network efficiency of the intelligent device is effectively improved.
Referring to fig. 5, a network distribution method for an intelligent device according to an embodiment of the present application is shown, and in the embodiment of the present application, the method is applied to a gateway device shown in fig. 1 as an example for description. The method comprises the following steps:
step 500, receiving a mesh distribution network broadcast sent by the powered intelligent device to be distributed.
Optionally, the user removes the intelligent device to be replaced in situ and replaces the intelligent device to be networked with the intelligent device to be networked. And after the intelligent equipment to be distributed is connected and powered on, performing mesh distribution network broadcasting. And the gateway equipment receives the mesh distribution network broadcast of the intelligent equipment to be distributed.
For a specific distribution process, refer to step 400 above, and details are not described here.
Step 501, receiving an in-situ replacement signal of an intelligent device to be networked.
Optionally, the to-be-configured network intelligent device is correspondingly configured with a target application program, and a function of quickly controlling the intelligent device is provided in the target application program, where the function includes an in-situ replacement control, and the in-situ replacement control is used to instruct the to-be-configured network intelligent device to replace the historical intelligent device, and the device configuration parameters of the historical intelligent device need to be recovered and applied to the to-be-configured network intelligent device. After the intelligent equipment to be networked is powered on, a user triggers an in-situ replacement control in a target application program, a terminal corresponding to the target application program sends a network access replacement signal to the gateway equipment, and the gateway equipment executes a network distribution process for the intelligent equipment to be networked based on the network access replacement signal.
Optionally, the to-be-network-connected intelligent device is provided with an in-situ replacement control, a user directly clicks the in-situ replacement control on the to-be-network-connected intelligent device, and the to-be-network-connected intelligent device sends a network access replacement signal to the gateway device; and the gateway equipment executes a network distribution process for the intelligent equipment to be distributed based on the network access replacing signal.
In the above description, the step of executing, by the gateway device, the distribution network process for the intelligent device to be distributed based on the network access replacement signal includes the following steps 502 to 508.
Step 502, determining the MAC address of the intelligent device to be networked, and executing the network distribution process of the intelligent device to be networked.
The gateway equipment acquires the MAC address of the intelligent equipment to be networked and determines a list of the intelligent equipment to be networked which is not networked in the self management range.
Step 503, scanning the sub-list of the intelligent devices to be networked, which is consistent with the device type of the historical intelligent devices.
Optionally, the gateway device obtains the device type of the historical smart device, and determines a sub-list of the smart devices to be networked that is consistent with the device type of the historical smart device from the list of the smart devices to be networked.
After the sub-list of the intelligent devices to be networked is determined, the following steps 504 to 508 are executed.
And step 504, automatically executing the network access verification process of the intelligent equipment to be networked under the condition that the number of the equipment in the intelligent equipment to be networked sublist is a preset value.
Optionally, in this embodiment of the application, the preset value is set to 1. That is, only one intelligent device is in the to-be-configured network intelligent device sub-list, and the gateway device automatically executes a network access process for the to-be-configured network intelligent device. The network access process may specifically include the above step 400 and the steps 300 to 301, which are not described herein again.
And 505, under the condition that the number of the devices in the to-be-distributed network intelligent device sub-list exceeds a preset value, responding to the received distribution network signal, and executing a network access verification process of the to-be-distributed network intelligent device.
Optionally, when more than 1 device needs to be replaced, a network access flow is manually configured, that is, the network access configuration of the to-be-configured intelligent devices in the to-be-configured intelligent device sub-list is started one by one, and a corresponding network distribution signal is sent to the gateway device, and the gateway device completes a network distribution flow of the second intelligent device according to the network distribution signal. The intelligent device capable of being effectively prevented from being replaced by mistake further improves the distribution network efficiency of the intelligent device.
The network access procedure may specifically include the above steps 400 and 300 to 301, which are not described herein again.
Step 506, judging whether the intelligent device to be networked in the intelligent device to be networked sublist passes the network access verification.
Optionally, after the to-be-configured network intelligent device in the to-be-configured network intelligent device sub-list exchanges the public key with the gateway device, mutual authentication is performed, that is, whether the to-be-configured network intelligent device in the to-be-configured network intelligent device sub-list is a device that needs to be added to start device parameter configuration or not is determined.
If the verification passes the network access verification, executing step 507; if the network access authentication is not passed, step 508 is executed.
And 507, distributing distribution network data to the intelligent devices to be distributed in the intelligent device list to be distributed, and issuing the original scene configuration information and the object model information of the historical intelligent devices to the intelligent devices which are successfully accessed to the network through networking.
The distribution network data comprises at least one of the device type of the historical intelligent device, the device management strategy of the historical intelligent device, the application scene configuration data of the historical intelligent device, the device serial number (SEQ value) of the historical intelligent device, the object model information of the historical intelligent device and the unicast address of the historical intelligent device.
Optionally, the gateway device directly issues the device serial number (SEQ value) of the historical intelligent device and the unicast address of the historical intelligent device to the intelligent device to be networked in the list of the intelligent device to be networked for application; after the configuration is finished, the original scene configuration information and the object model information of the historical intelligent equipment are issued to the intelligent equipment which is successfully accessed to the network through the network.
The execution process of this flow is the same as that of step 202, and is not described here again.
And step 508, the intelligent equipment to be distributed fails to distribute the network.
Optionally, when the intelligent device to be networked in the intelligent device to be networked sub-list and the gateway device do not pass mutual authentication, it means that the gateway device does not need to establish a connection with the intelligent device to be networked in the intelligent device to be networked sub-list, and the network-distribution process is terminated.
In some embodiments, the gateway device discards broadcast information corresponding to the intelligent devices to be networked in the intelligent device to be networked sublist which fails to pass the mutual authentication; or, the preset time length is saved and then discarded; or storing the data until the storage threshold value is stored, and then performing unified cleaning. This is not limited in this application.
To sum up, according to the network distribution method for the intelligent device provided by the embodiment of the application, when the intelligent device is replaced in situ, that is, the second intelligent device is used for replacing the first intelligent device, and the gateway device retrieves the device serial number of the historical device and issues the device serial number to the second intelligent device for direct use based on the network quitting signal of the first intelligent device and the network entering replacement signal of the second intelligent device, so that normal operation of other messages in networking without being influenced by replay attack can be ensured, and the network distribution efficiency of the intelligent device can be improved.
In the embodiment of the application, the in-situ replacement function is directly integrated on the target application program, so that a one-key replacement flow in the target application program can be realized, the network access flow and the equipment parameter configuration flow of the intelligent equipment to be networked do not need to be manually started, and the network distribution efficiency of the intelligent equipment is improved to a certain extent.
The applicant needs to emphasize that the above embodiment is only an in-situ replacement idea about the smart device for the unicast address of the smart device is not changed, and the in-situ replacement of the smart device can also be performed for the same device type and/or the same MAC address of the smart device. No matter which scenario is applied, when in-situ replacement is performed, the gateway device or the cloud server recovers the device configuration parameters of the historical smart device, and the device configuration parameters are directly used as the distribution network data of the smart device to be distributed, that is, under the condition that the device serial number is not changed, the mesh message is prevented from being discarded due to updating of the IV index, and the distribution network efficiency of the smart device is improved.
Fig. 6 shows a block diagram of a network distribution device of an intelligent device according to an embodiment of the present application. The device has the functions of realizing the method examples, and the functions can be realized by hardware or by hardware executing corresponding software. The apparatus may include:
a receiving module 600, configured to receive a network quitting signal sent by a first intelligent device in a networking managed by the gateway device, where the network quitting signal is used to indicate that the first intelligent device is disconnected from the gateway device, the network quitting signal includes a device configuration parameter corresponding to the first intelligent device, and the device configuration parameter includes a device type of the first intelligent device;
the receiving module 600 is further configured to receive a network access replacement signal sent by a second intelligent device, where the network access replacement signal is used to instruct the second intelligent device to join the networking managed by the gateway device in a form of replacing a historical device, and the network access replacement signal includes a device type of the second intelligent device;
a configuration module 610, configured to, when the device type of the first smart device is the same as the device type of the second smart device, distribute, based on device configuration parameters corresponding to the first smart device, distribution network data to the second smart device to complete network access configuration, where the distribution network data includes a device serial number of the first smart device.
In an alternative embodiment, as shown in fig. 7, the apparatus further comprises:
the processing module 620 is configured to assign a value to the device serial number of the first intelligent device according to a preset gradient, so as to obtain a target device serial number of the first intelligent device;
the configuration module 610 is further configured to configure the serial number of the target device to the second smart device to complete network access configuration.
In an alternative embodiment, as shown in fig. 7, the distribution network data includes a unicast address of the first smart device and application scenario configuration data of the first smart device; the device also includes:
the configuration module 610 is further configured to send, to the second intelligent device, the unicast address of the first intelligent device and the application scenario configuration data of the first intelligent device to complete network access configuration.
In an alternative embodiment, as shown in fig. 7, the second intelligent device includes at least one second intelligent sub-device; the device also includes:
an obtaining module 630, configured to receive an access broadcast message sent by the at least one second intelligent sub-device, where the access broadcast message includes an access replacement signal corresponding to the at least one second intelligent sub-device; and acquiring a second equipment list with the same equipment type as the first intelligent equipment based on the network access broadcast message, wherein the second equipment list comprises second intelligent sub-equipment with the same equipment type as the first intelligent equipment.
In an optional embodiment, as shown in fig. 7, the configuration module 610 is further configured to, when the number of devices in the second device list is smaller than a preset threshold, automatically perform a network access process of a second intelligent sub-device in the second device list;
the configuration module 610 is further configured to, when the number of devices in the second device list is greater than or equal to the preset threshold, respond to receiving a distribution network signal, and execute a network access process of a second intelligent control sub-device in the second device list.
In an alternative embodiment, as shown in fig. 7, the apparatus further comprises:
the receiving module 600 is further configured to receive a network access signal of the first intelligent device, where the network access signal is used to instruct the first intelligent device to establish a connection with the gateway device;
a storage module 640, configured to, in response to that the first intelligent device and the gateway device successfully establish a connection, store the device configuration parameters of the first intelligent device in a parameter storage area, where the device parameters generated when the first intelligent device joins in different networking managed by the gateway device are stored in the parameter storage area.
In an alternative embodiment, as shown in fig. 7, the apparatus further comprises:
the obtaining module 630 is further configured to obtain a device configuration parameter of the first intelligent device in response to the first intelligent device successfully establishing a connection with the gateway device;
an updating module 650, configured to ignore the device configuration parameters of the first smart device in response to the device configuration parameters of the first smart device existing in the parameter storage area.
The storage module 640 is further configured to store the device configuration parameter of the first smart device in the parameter storage area in response to that the device configuration parameter of the first smart device does not exist in the parameter storage area.
To sum up, the network distribution device of the intelligent device provided by the embodiment of the application, when the intelligent device is replaced in situ, that is, the second intelligent device is used to replace the first intelligent device, and the gateway device retrieves the device serial number of the history device and issues the device serial number to the second intelligent device for direct use based on the network quitting signal of the first intelligent device and the network entering replacement signal of the second intelligent device, so that it is possible to ensure that other messages in the network are not affected by replay attack and normally performed, and the network distribution efficiency of the intelligent device can be improved.
It should be noted that: the distribution network device of the intelligent device provided in the above embodiment is only exemplified by the division of the above functional modules, and in practical application, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above described functions. In addition, the network distribution device of the intelligent device and the network distribution method embodiment of the intelligent device provided in the above embodiments belong to the same concept, and specific implementation processes thereof are described in detail in the method embodiments and are not described herein again.
Fig. 8 shows an internal structure diagram of a gateway device in one embodiment. The gateway device can be any device capable of starting a Bluetooth function, such as a mobile phone, an ipad, a desktop computer and the like. The gateway device comprises a processor 80, a memory 81 connected to the processor 80, and fig. 8 shows only some of the components of the gateway device, but it will be understood that not all of the shown components are required to be implemented, and more or fewer components may be implemented instead.
The memory 81 may be an internal storage unit of the bluetooth network equipment in some embodiments, for example, the memory 81 may be an external storage device in other embodiments, such as a plug-in usb disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a flash memory Card (FlashCard), and the like provided on the gateway device. Further, the memory 81 may also include both an internal storage unit of the gateway device and an external storage device.
The memory 81 is used for storing application software installed in the gateway device and various data, such as bluetooth network distribution program codes.
The memory 81 may also be used to temporarily store data that has been output or is to be output. In one embodiment, the memory 81 stores a bluetooth network distribution program, which can be executed by the processor 80 to implement the network distribution method of the smart device as described above.
The gateway device performs data interaction with the smart device or the cloud server through the communication interface 82.
In one embodiment, a computer-readable storage medium is provided, which stores a bluetooth network distribution program, and when the bluetooth network distribution program is executed by a processor, the bluetooth network distribution method is implemented as described above.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM) (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Those skilled in the art will appreciate that the architecture shown in fig. 8 does not constitute a limitation of the gateway device and may include more or fewer components than shown, or combine certain components, or employ a different arrangement of components.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is intended only to illustrate the alternative embodiments of the present application, and should not be construed as limiting the present application, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (11)

1. A network distribution method of intelligent equipment is applied to gateway equipment, and is characterized in that the method comprises the following steps:
receiving a network quitting signal sent by first intelligent equipment in the networking managed by the gateway equipment, wherein the network quitting signal is used for indicating that the first intelligent equipment is disconnected with the gateway equipment, the network quitting signal comprises equipment configuration parameters corresponding to the first intelligent equipment, and the equipment configuration parameters comprise the equipment type of the first intelligent equipment;
receiving a network access replacement signal sent by a second intelligent device, wherein the network access replacement signal is used for indicating the second intelligent device to join the networking managed by the gateway device in a mode of replacing a historical device, and the network access replacement signal comprises the device type of the second intelligent device;
and under the condition that the device type of the first intelligent device is the same as that of the second intelligent device, distributing distribution network data to the second intelligent device to complete network access configuration based on the device configuration parameters corresponding to the first intelligent device, wherein the distribution network data comprises a device serial number of the first intelligent device.
2. The method of claim 1, wherein the distributing distribution network data to the second smart device based on the device configuration parameter corresponding to the first smart device to complete network entry configuration comprises:
assigning the equipment serial number of the first intelligent equipment according to a preset gradient to obtain a target equipment serial number of the first intelligent equipment;
and configuring the target equipment serial number to the second intelligent equipment to complete network access configuration.
3. The method of claim 2, wherein the distribution network data comprises a unicast address of the first smart device and application scenario configuration data of the first smart device;
the method further comprises the following steps:
and sending the unicast address of the first intelligent device and the application scene configuration data of the first intelligent device to the second intelligent device to complete network access configuration.
4. The method of any one of claims 1 to 3, wherein the second intelligent device comprises at least one second intelligent sub-device;
the receiving of the network access replacement signal sent by the second intelligent device includes:
receiving a network access broadcast message sent by the at least one second intelligent sub-device, wherein the network access broadcast message comprises a network access replacement signal corresponding to the at least one second intelligent sub-device;
and acquiring a second equipment list with the same equipment type as the first intelligent equipment based on the network access broadcast message, wherein the second equipment list comprises second intelligent sub-equipment with the same equipment type as the first intelligent equipment.
5. The method of claim 4, wherein after obtaining the second device list having the same device type as the first smart device based on the network access broadcast message, the method further comprises:
automatically executing a network access process of a second intelligent sub-device in the second device list under the condition that the number of devices in the second device list is smaller than a preset threshold value;
and under the condition that the number of the devices in the second device list is greater than or equal to the preset threshold, responding to the received distribution network signal, and executing a network access process of a second intelligent sub-device in the second device list.
6. The method according to any one of claims 1 to 3, wherein before receiving the network quitting signal sent by the first smart device in the networking managed by the gateway device, the method further comprises:
receiving a network access signal of the first intelligent device, wherein the network access signal is used for indicating the first intelligent device to establish connection with the gateway device;
responding to the first intelligent device and the gateway device successfully establishing connection, and storing the device configuration parameters of the first intelligent device into a parameter storage area, wherein the parameter storage area stores the device configuration parameters generated when the first intelligent device joins in different networks managed by the gateway device.
7. The method of claim 6, wherein storing the device configuration parameters of the first smart device in a parameter storage area in response to the first smart device successfully establishing a connection with the gateway device comprises:
responding to the first intelligent device and the gateway device to successfully establish connection, and acquiring device configuration parameters of the first intelligent device;
in response to the device configuration parameters of the first smart device being present in the parameter storage area, ignoring the device configuration parameters of the first smart device;
in response to the device configuration parameters of the first smart device not being present in the parameter storage area, storing the device configuration parameters of the first smart device to the parameter storage area.
8. A network distribution device of intelligent equipment is applied to gateway equipment, and the device comprises:
a receiving module, configured to receive a network quitting signal sent by a first intelligent device in a networking managed by the gateway device, where the network quitting signal is used to indicate that the first intelligent device is disconnected from the gateway device, the network quitting signal includes a device configuration parameter corresponding to the first intelligent device, and the device configuration parameter includes a device type of the first intelligent device;
the receiving module is further configured to receive a network access replacement signal sent by a second intelligent device, where the network access replacement signal is used to instruct the second intelligent device to join the networking managed by the gateway device in a form of replacing a historical device, and the network access replacement signal includes a device type of the second intelligent device;
and the configuration module is used for distributing distribution network data to the second intelligent device to complete network access configuration based on the device configuration parameters corresponding to the first intelligent device under the condition that the device type of the first intelligent device is the same as that of the second intelligent device, wherein the distribution network data comprises the device serial number of the first intelligent device.
9. A computer device comprising a processor and a memory, wherein at least one program is stored in the memory, and wherein the at least one program is loaded and executed by the processor to implement the network distribution method for smart devices according to any one of claims 1 to 7.
10. A computer-readable storage medium, wherein at least one program code is stored in the computer-readable storage medium, and the program code is loaded and executed by a processor to implement the network distribution method for the intelligent device according to any one of claims 1 to 7.
11. A computer program product comprising a computer program, wherein the computer program is stored in a computer readable storage medium, wherein the computer program is read by a processor of a computer device from the computer readable storage medium, and wherein the computer program is executed by the processor to cause the computer device to perform the method for network distribution of a smart device according to any one of claims 1 to 7.
CN202211461971.7A 2022-11-21 2022-11-21 Network distribution method, device, equipment and medium for intelligent equipment Pending CN115835370A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211461971.7A CN115835370A (en) 2022-11-21 2022-11-21 Network distribution method, device, equipment and medium for intelligent equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211461971.7A CN115835370A (en) 2022-11-21 2022-11-21 Network distribution method, device, equipment and medium for intelligent equipment

Publications (1)

Publication Number Publication Date
CN115835370A true CN115835370A (en) 2023-03-21

Family

ID=85529980

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211461971.7A Pending CN115835370A (en) 2022-11-21 2022-11-21 Network distribution method, device, equipment and medium for intelligent equipment

Country Status (1)

Country Link
CN (1) CN115835370A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117221028A (en) * 2023-09-22 2023-12-12 中山市狮盾电气有限公司 Configuration method and configuration system of intelligent equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117221028A (en) * 2023-09-22 2023-12-12 中山市狮盾电气有限公司 Configuration method and configuration system of intelligent equipment

Similar Documents

Publication Publication Date Title
WO2022037322A1 (en) Network topology management system and method for home networking
CN107104836A (en) The firmware upgrade method and device of Zigbee equipment
CN102025798B (en) Address allocation processing method, device and system
US7139839B2 (en) Method and apparatus for assigning a network node address
CN110233746B (en) Home networking method and home networking AP
CN112512028B (en) Intelligent product replacement system and method based on Bluetooth Mesh network
CN110875857B (en) Method, device and system for reporting disconnected network state
CN112566155B (en) Networking method, device and system
WO2016127612A1 (en) Monitoring processing method and device
US10037253B2 (en) Fault handling methods in a home service system, and associated household appliances and servers
CN111491036A (en) Internet of things equipment and communication method thereof
CN115835370A (en) Network distribution method, device, equipment and medium for intelligent equipment
US20210289343A1 (en) Subscription message processing method and apparatus, and computer device and storage medium
CN113518125A (en) Offline data uploading method and system, storage medium and electronic device
CN112437454A (en) Data transmission method and device, storage medium and electronic device
CN110191451B (en) State synchronization method, mobile terminal, system and device of Bluetooth equipment
CN113194494B (en) Air interface resource control method, device, network side equipment and terminal
CN112492030B (en) Data storage method, device, computer equipment and storage medium
CN114115939A (en) Firmware upgrading method and device, electronic equipment and storage medium
US10931529B2 (en) Terminal device management method, server, and terminal device for managing terminal devices in local area network
WO2023151428A1 (en) Home all-optical network gateway version upgrading method, electronic device, and storage medium
CN111866856A (en) Mesh device control method and system, storage medium and electronic device
US11457507B2 (en) Communication system for serial communication between communication devices
CN105207811B (en) Method and device for replacing non-AllJoyn equipment
CN115174528A (en) Equipment address control method, device and system

Legal Events

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