CN112566155B - Networking method, device and system - Google Patents

Networking method, device and system Download PDF

Info

Publication number
CN112566155B
CN112566155B CN202011281622.8A CN202011281622A CN112566155B CN 112566155 B CN112566155 B CN 112566155B CN 202011281622 A CN202011281622 A CN 202011281622A CN 112566155 B CN112566155 B CN 112566155B
Authority
CN
China
Prior art keywords
configuration
node equipment
networking
equipment
relay
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011281622.8A
Other languages
Chinese (zh)
Other versions
CN112566155A (en
Inventor
李易龙
许芳萃
钟世允
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202011281622.8A priority Critical patent/CN112566155B/en
Publication of CN112566155A publication Critical patent/CN112566155A/en
Application granted granted Critical
Publication of CN112566155B publication Critical patent/CN112566155B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/04Terminal devices adapted for relaying to or from another terminal or user

Abstract

The invention discloses a networking method, a networking device and a networking system. Wherein, the method comprises the following steps: responding to a networking configuration request, and issuing a configuration frame, wherein the configuration frame is used for allocating an equipment address for a node equipment to be networked; and taking the successfully configured node equipment as relay node equipment, forwarding the configuration frame by using the relay node equipment, and returning to the step of taking the successfully configured node equipment as the relay node equipment until the current networking meets a preset condition, and determining that networking configuration is completed. According to the invention, the node equipment is accessed to the network in a relay mode, so that the communication reliability of the network after networking can be effectively ensured, the configuration information of the node equipment is automatically distributed through the gateway, the networking efficiency is improved, the networking parameters of the equipment manually configured are reduced, and the operation and maintenance cost is reduced.

Description

Networking method, device and system
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a networking method, apparatus, and system.
Background
At present, the networking control of intelligent equipment in an area is completed, node equipment needs to be installed to a specific area, and after the installation is completed, the node equipment needs to be connected with intelligent gateway equipment through a wireless network to complete equipment registration.
However, in the actual deployment process, due to the influence of the installation environment, the problems of device signal loss, data transmission errors and the like easily occur, and the errors are not easy to be found and are often reflected after the intelligent devices are actually used.
Aiming at the problem of poor reliability of equipment networking in the prior art, no effective solution is provided at present.
Disclosure of Invention
The embodiment of the invention provides a networking method, a networking device and a networking system, which are used for at least solving the problem of poor networking reliability of equipment in the prior art.
In order to solve the above technical problem, an embodiment of the present invention provides a networking method, including:
responding to a networking configuration request, and issuing a configuration frame, wherein the configuration frame is used for allocating an equipment address for a node equipment to be networked;
and taking the successfully configured node equipment as relay node equipment, forwarding the configuration frame by using the relay node equipment, and returning to the step of taking the successfully configured node equipment as the relay node equipment until the current networking meets a preset condition, and determining that networking configuration is completed.
Optionally, the step of using the successfully configured node device as a relay node device includes:
receiving information returned for the configuration frame;
and determining the node equipment returning the configuration success information as the relay node equipment.
Optionally, using the successfully configured node device as a relay node device, and forwarding the configuration frame by using the relay node device includes:
the relay node equipment determined by the first time of sending the configuration frame is used as first layer relay node equipment;
the configuration frame is issued to the first layer of relay node equipment every time subsequently, so that the first layer of relay node equipment forwards the configuration frame layer by layer through each layer of determined relay node equipment;
receiving information returned by the first layer of relay node equipment;
and determining the node equipment returning the configuration success information through the first layer of relay node equipment as the Nth layer of relay node equipment, wherein N represents the number of times of issuing the configuration frame, and the value of N is more than or equal to 2.
Optionally, in the process of determining the relay node device, the relay paths are saved, where a preset number of relay paths are saved according to the relay signal strength for a case that one child node device relays through at least two parent node devices.
Optionally, before issuing the configuration frame in response to the networking configuration request, the method further includes:
receiving the networking configuration request;
analyzing the equipment information and the total number of the node equipment to be accessed from the networking configuration request;
generating a corresponding equipment address for each node equipment to be accessed according to the total number of the node equipment to be accessed;
and generating the configuration frame according to the equipment information and the equipment address.
Optionally, before issuing the configuration frame in response to the networking configuration request, the method further includes:
the client responds to the query request, acquires the equipment information of the node equipment to be networked and the corresponding gateway information, and sends a networking request to the server;
and the server generates a gateway number according to the gateway information in the networking request, generates the networking configuration request according to the gateway number, the equipment information of the node equipment to be networked and the total number of the node equipment to be networked, and sends the networking configuration request to the gateway.
Optionally, after issuing the configuration frame, or after forwarding the configuration frame by using the relay node device, the method further includes:
the node equipment receiving the configuration frame determines itself as the node equipment to be accessed according to the equipment information of the node equipment to be accessed in the configuration frame; saving the device address corresponding to the device address in the configuration frame; and returning the configuration success information to the gateway or the relay node equipment of the previous layer.
Optionally, after determining that the networking configuration is completed, the method further includes: and sending the configuration information of all the to-be-networked node devices to a server so that the server stores the configuration information and pushes the configuration information to a client.
Optionally, the predetermined condition includes at least one of:
the number of the node devices returning the configuration success information is equal to the total number of the node devices to be networked;
the relay node equipment cannot be continuously added by issuing the configuration frame;
and determining the number of layers of the relay node equipment to reach the preset number of layers.
Optionally, after determining that the networking configuration is completed, the method further includes:
receiving a control instruction;
determining a target relay path from the stored relay paths according to the control instruction;
issuing the control instruction to end node equipment according to the target relay path so as to respond to the control instruction step by step from the end node equipment according to the target relay path and upload response information step by step;
and after receiving the response information of all the node equipment in the target relay path, responding to the control instruction, and pushing the response condition of the control instruction to a client.
An embodiment of the present invention further provides a networking apparatus, including:
the first sending module is used for responding to a networking configuration request and issuing a configuration frame, wherein the configuration frame is used for allocating an equipment address for the node equipment to be accessed to the network;
and the relay configuration module is used for taking the successfully configured node equipment as the relay node equipment, forwarding the configuration frame by using the relay node equipment, and returning the step of taking the successfully configured node equipment as the relay node equipment until the current networking meets the preset condition, and determining that the networking configuration is completed.
The embodiment of the invention also provides a networking system, which comprises: the gateway comprises the networking device provided by the embodiment of the invention, and the node equipment has a relay function.
Optionally, the networking system further includes:
the server is in communication connection with the gateway and is used for storing configuration information of the node equipment;
and the client is in communication connection with the server and is used for displaying the network access condition of the node equipment and/or the response condition of the control instruction.
Embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the networking method according to the embodiments of the present invention.
An embodiment of the present invention further provides an electronic device, including: one or more processors; a memory for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a networking method according to an embodiment of the present invention.
By applying the technical scheme of the invention, the networking method of the embodiment responds to the networking configuration request, issues the configuration frame for allocating the equipment address for the node equipment to be accessed, takes the successfully configured node equipment as the relay node equipment, forwards the configuration frame by using the relay node equipment, and so on until the current networking meets the preset condition, and determines that the networking configuration is completed. The node equipment is accessed to the network in a relay mode, so that the communication reliability of the network after networking can be effectively ensured, the configuration information (such as equipment address) of the node equipment is automatically distributed through the gateway, the networking efficiency is improved, the networking parameters of the equipment manually configured are reduced, and the operation and maintenance cost is reduced.
Drawings
Fig. 1 is a flowchart of a networking method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a networking process provided in the second embodiment of the present invention;
fig. 3 is a schematic diagram of a networking process provided in the second embodiment of the present invention;
fig. 4 is a block diagram of a networking device according to a third embodiment of the present invention;
fig. 5 is a schematic diagram of a networking system according to a fourth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
Example one
The embodiment provides a networking method, which can be executed by a gateway. According to the networking method, the node equipment is accessed to the network in a relay mode, and the networking reliability can be effectively guaranteed. Fig. 1 is a flowchart of a networking method according to an embodiment of the present invention, and as shown in fig. 1, the method includes the following steps:
s101, responding to a networking configuration request, and issuing a configuration frame, wherein the configuration frame is used for allocating an equipment address for the node equipment to be networked.
And S102, using the successfully configured node equipment as relay node equipment, forwarding the configuration frame by using the relay node equipment, and returning to the step of using the successfully configured node equipment as the relay node equipment until the current networking meets a preset condition, and determining that the networking configuration is completed.
And the gateway receives the networking configuration request, starts to perform automatic networking, automatically allocates an equipment address for the to-be-networked node equipment, and completes the networking configuration of the to-be-networked node equipment.
The gateway and the node equipment are set to the same working frequency in the initial state, and after the gateway is electrified, the gateway can identify all the node equipment in the signal radiation range. All node devices have a relay function, and in the case of using the relay function, each node device can identify the node devices within its signal radiation range. The node device may receive information of other node devices, and may also broadcast and control the mounted node device. The communication protocol between the gateway and the node device may be: ZigBee, lora, wifi, gprs, etc. The gateway can issue the configuration frame in a broadcast mode, and all node devices in the signal radiation range can receive the configuration frame.
The configuration frame may include: and the equipment information and the equipment address of the node equipment to be networked. And the node equipment receiving the configuration frame judges whether the node equipment is the node equipment to be accessed to the network or not according to the content of the configuration frame, if so, the corresponding equipment address of the node equipment is obtained from the configuration frame to be stored, configuration success information is returned, if not, the configuration operation is not carried out, and the configuration frame can be discarded. The predetermined condition is a basis for judging whether the networking configuration is completed or not, and a specific introduction will be subsequently made.
Because some node devices to be networked are not in the signal radiation range of the gateway, the node devices which are successfully configured can be used for relaying, so that the configuration frame can be successfully issued, the relay path can be confirmed, and networking configuration can be automatically completed.
The networking method of this embodiment, in response to a networking configuration request, issues a configuration frame for allocating an apparatus address to a node apparatus to be networked, uses the successfully configured node apparatus as a relay node apparatus, forwards the configuration frame by using the relay node apparatus, and so on until current networking satisfies a predetermined condition, and determines that networking configuration is completed. The node equipment is accessed to the network in a relay mode, so that the communication reliability of the network after networking can be effectively ensured, the configuration information (such as equipment address) of the node equipment is automatically distributed through the gateway, the networking efficiency is improved, the networking parameters of the equipment manually configured are reduced, and the operation and maintenance cost is reduced.
In one embodiment, after issuing a configuration frame, or after forwarding the configuration frame by using the relay node device, the method further includes: the node equipment receiving the configuration frame determines itself as the node equipment to be accessed according to the equipment information of the node equipment to be accessed in the configuration frame; saving the device address corresponding to the device address in the configuration frame; and returning the configuration success information to the gateway or the relay node equipment of the previous layer. Specifically, the node device may internally write a device address corresponding to the node device, thereby completing networking configuration of the node device.
In this embodiment, the node device can obtain its own device address through the configuration frame, smoothly perform address allocation, automatically complete networking configuration, and perform configuration status feedback through configuration success information.
For some node devices to be networked, a configuration failure may occur, for example, if the node devices to be networked return information with too low strength value of the network access signal, return information in a wrong format, or return no information for a certain time, the node devices to be networked may be considered to be failed in configuration.
Specifically, the step of using the successfully configured node device as the relay node device includes: receiving information returned for the configuration frame; and determining the node equipment returning the configuration success information as the relay node equipment. It can be understood that the node device that returns the configuration success information is necessarily a node device to be networked. Therefore, partial node configuration in the networking is completed, and the node devices can be used as relays to provide guarantee for the network access and control of other node devices to be accessed.
In a specific embodiment, using a node device that is successfully configured as a relay node device, forwarding the configuration frame by using the relay node device includes: the relay node equipment determined by the first time of sending the configuration frame is used as first layer relay node equipment; the configuration frame is issued to the first layer of relay node equipment each time subsequently, so that the first layer of relay node equipment forwards the configuration frame layer by layer through each layer of determined relay node equipment; receiving information returned by the first layer of relay node equipment; and determining the node equipment returning the configuration success information through the first layer of relay node equipment as the Nth layer of relay node equipment, wherein N represents the number of times of issuing the configuration frame, and the value of N is more than or equal to 2.
By the aid of the method, the device addresses can be automatically allocated layer by layer in a relay mode, automatic networking with reliable communication is realized, manual configuration of networking parameters of the devices is reduced, and operation and maintenance cost is reduced.
Further, in the process of determining the relay node device, relay paths are saved, wherein, for the case that one child node device relays through at least two parent node devices, a preset number of relay paths are saved according to the relay signal strength. The preset number may be set according to a network condition, for example, the preset number is 3, that is, 3 relay paths with stronger relay signal strength are stored. According to the embodiment, the relay paths are timely stored, control over the node equipment after networking is successful is guaranteed, and a plurality of relay paths are corresponding to some node equipment, so that the node equipment can be successfully controlled based on the relay paths, the success rate of node equipment control is improved, and the communication reliability of networking can be effectively guaranteed.
In one embodiment, before issuing the configuration frame in response to the networking configuration request, the method further includes: receiving the networking configuration request; analyzing the equipment information and the total number of the node equipment to be accessed from the networking configuration request; generating a corresponding equipment address for each node equipment to be accessed according to the total number of the node equipment to be accessed; and generating the configuration frame according to the equipment information and the equipment address. In this embodiment, after receiving the networking configuration request, the gateway parses the total number of devices requesting to access the network from the networking configuration request, starts to broadcast and issue the configuration frame, allocates a unique device address to the node device, and can effectively start an automatic networking process.
In one embodiment, before issuing the configuration frame in response to the networking configuration request, the method further includes: the client responds to the query request, acquires the equipment information of the node equipment to be networked and the corresponding gateway information, and sends a networking request to the server; and the server generates a gateway number according to the gateway information in the networking request, generates the networking configuration request according to the gateway number, the equipment information of the node equipment to be networked and the total number of the node equipment to be networked, and sends the networking configuration request to the gateway.
The client may be a mobile terminal or a web terminal. The device information of the node device to be networked includes: the device ID, the device name, the affiliated gateway ID, the device address (unique identifier of the frame sent to the device, temporary vacancy, and uniform generation and distribution by the gateway during networking) and the device mac address. The gateway information includes: the gateway ID, the gateway name, the project ID to which the gateway belongs (the client obtains how many gateways need to access the network according to the project ID), the gateway number bar _ code (the unique identifier of a frame is issued to the gateway, the frame is temporarily vacant, and the frame is uniformly generated and distributed by a server during networking) and the gateway MAC address (the different gateways are distinguished by referring to the MAC address when the gateway number is issued by the server, and the whole network is unique). Specifically, after receiving the networking request, the server generates a unique gateway number of the whole network through a Hash algorithm according to gateway information, combines a networking configuration request according to the gateway number, the device information of the node device to be networked and the total number of the node devices to be networked, and sends the networking configuration request to the gateway through an Ethernet link, so that the unique gateway number can be issued to the gateway to serve as a unique certificate of the corresponding node device under the control of the gateway.
In the embodiment, the server allocates the gateway number to the gateway, so that subsequent networking and node control equipment can be ensured to be successfully performed.
In an optional embodiment, after determining that the networking configuration is completed, the method further includes: and sending the configuration information of all the to-be-networked node devices to a server so that the server stores the configuration information and pushes the configuration information to a client.
Wherein the configuration information includes: configuration success information and configuration failure information, the configuration success information including: network access success status, network access signal strength value, relay path, network access timestamp, etc. The configuration failure information may include a failure reason, for example, the network access signal strength value is too low, no information is returned after a certain time period, information of an error format is returned, and the like. The client can display the configuration information, so that a user can conveniently check the network access condition of the node equipment.
According to the embodiment, the configuration information of the node equipment to be accessed to the network is stored, so that a user can check the network access condition of the node equipment in time through the client.
The predetermined condition includes at least one of:
the number of the node devices returning the configuration success information is equal to the total number of the node devices to be networked;
the relay node equipment cannot be continuously added by issuing the configuration frame;
and determining the number of layers of the relay node equipment to reach the preset number of layers.
The relay node equipment cannot be added continuously by issuing the configuration frame, which indicates that all the equipment to be networked cannot be configured successfully, or the equipment to be networked cannot be searched continuously due to signal attenuation and the like, and the equipment to be networked which is not configured successfully at present cannot realize network access, and can be marked as network access failure. Considering that signal attenuation exists in each relay, a corresponding limit may be preset, for example, a preset number of layers is set, and when the number of layers of the relay node device determined in the networking process reaches the preset number of layers, networking configuration is considered to be completed, so as to avoid using too many relays and causing signal differences of some node devices in the networking.
By the preset conditions, the completion of networking configuration can be confirmed in time, and unnecessary operation is avoided.
After the networking configuration is completed, the node device control may be performed based on networking, which specifically includes: receiving a control instruction; determining a target relay path from the stored relay paths according to the control instruction; issuing the control instruction to end node equipment according to the target relay path so as to respond to the control instruction step by step from the end node equipment according to the target relay path and upload response information step by step; and after receiving the response information of all the node equipment in the target relay path, responding to the control instruction, and pushing the response condition of the control instruction to a client. Specifically, the server may push the response condition of the control instruction to the client. According to the embodiment, the response process of the control instruction can be effectively monitored by the mode of gradually responding from the terminal node equipment according to the relay path, the node equipment is reliably controlled, and the response condition of the control instruction is displayed through the client, so that the user can conveniently check the response condition.
Example two
The foregoing networking method is described below with reference to a specific embodiment, but it should be noted that the specific embodiment is only for better describing the present application and is not to be construed as limiting the present application. The same or corresponding terms as those of the above-described embodiments are explained, and the description of the present embodiment is omitted.
This embodiment provides an intelligent networking system, includes: a client 10 (mobile end or web end), a computing server 20, an intelligent gateway 30 and a node device 40 with relay function. The client displays the node network access statistical conditions and abnormal viewing, the computing server is used for computing and storing the configuration parameters of the node equipment, the intelligent gateway is used for broadcasting and collecting wireless signals of the relay node equipment, and the node equipment is used for responding to terminal control and relaying wireless signals of other node equipment.
Referring to fig. 2, the networking process includes the following steps:
s201, initiating a query request.
S202, the client side inquires information of the current to-be-networked node device and the corresponding intelligent gateway through the computing server, and the node device information and the intelligent gateway information are recorded in advance through the background management system.
The device information of the node device to be networked includes: the device ID, the device name, the affiliated gateway ID, the device address (unique identifier of the frame sent to the device, temporary vacancy, and uniform generation and distribution by the gateway during networking) and the device mac address.
The gateway information includes: the gateway ID, the gateway name, the project ID to which the gateway belongs (the client obtains how many gateways need to access the network according to the project ID), the gateway number bar _ code (the unique identifier of a frame is issued to the gateway, the frame is temporarily vacant, and the frame is uniformly generated and distributed by a server during networking) and the gateway MAC address (the different gateways are distinguished by referring to the MAC address when the gateway number is issued by the server, and the whole network is unique).
S203, the client receives the list of the devices to be networked returned by the computing server.
S204, the client side initiates a networking request to the computing server.
S205, after receiving the networking request from the client, the computation server generates a unique gateway number through a hash algorithm according to the intelligent gateway information, and combines the unique gateway number and the intelligent gateway information into a wireless configuration request (which is equivalent to the networking configuration request in the first embodiment) according to the gateway number, specifically, generates a wireless configuration request by combining the gateway number, the total number of the requested network access devices, and the device information, and sends the wireless configuration request to the intelligent gateway through an ethernet link. The intelligent gateway and the node equipment are set to be at the same working frequency in an initial state, and the intelligent gateway can identify all the node equipment in the signal radiation range after being electrified.
And S206, polling and configuring the node equipment by the intelligent gateway.
And S207, the node equipment performs configuration, and if the configuration fails, the relay node equipment polls again.
And S208, the node equipment returns configuration success information.
S209, the intelligent gateway saves the node configuration information and pushes the node configuration information to the computing server.
And S210, the computing server stores the node configuration information sent by the intelligent gateway, and pushes the node networking state information to the client to complete networking configuration.
Specifically, after receiving the wireless configuration request, the intelligent gateway analyzes the total number of the devices requesting to access the network from the wireless configuration request, and starts to broadcast and issue a wireless configuration frame to allocate a unique device address to the node device. And the node equipment receives the wireless configuration frame, internally writes the allocated equipment address, and returns configuration success information to the intelligent gateway. The configuration success information comprises a network access success state, a network access signal strength value, a relay node path, a network access timestamp and the like. The intelligent gateway determines the node device returning the configuration success information as a first layer relay node, returns the node device which is wrong or not returned after the waiting time is exceeded, considering that the network access is failed, the total sum of the configuration success information and the failure information should be equal to the total number of the devices to be accessed, after the information is received, the intelligent gateway automatically starts to broadcast for the second time to send down a wireless configuration frame, the configuration frame is sent to all the first-layer relay nodes (namely the node devices which are successfully configured), after the first-layer relay nodes receive the wireless configuration frame, starting to relay the wireless configuration frame, identifying other node equipment outside the radiation range of the intelligent gateway signal, after receiving the wireless configuration frame, if the configuration is successful, the other node devices return configuration success information to the relay node, and the relay node relays the configuration success information to the intelligent gateway, so that the node device returning the configuration success information is determined as a second-layer relay node. In the process, a child node may relay through a plurality of father nodes, and the intelligent gateway may store at most three relay paths according to the signal strength value. The above processes are repeated, so that the node equipment can be accessed to the network in a relay mode, but too many relays are not recommended to be used, because signal attenuation exists in each relay. If the information returned by the relay node is abnormal, if the information is returned in a wrong format, the information is not returned after a certain time, the network access signal strength value is too low and the like, the network access failure of the node is considered, the intelligent gateway returns the configuration information of all the to-be-networked node equipment to the computing server, the configuration information is stored by the computing server and pushed to the client, and the network access condition of the node can be observed through the client.
The node equipment control flow is as follows:
s211, the client side initiates a control request.
S212, the computing server issues a wireless control request to the intelligent gateway.
And S213, the intelligent gateway searches for the relay node and the control node related to the control request according to the relay information.
And S214, the relay node broadcasts to search for the control node and updates the configuration.
And S215, the relay node returns the node updating success information.
S216, the intelligent gateway sends the node updating information to the computing server for storage.
S217, the computing server pushes the node update information to the client.
And S218, ending.
Illustratively, the control request is: the working frequency of the intelligent gateway and the node equipment is changed, similar to the node network accessing step, a client initiates a working frequency changing request to a computing server, the computing server is configured to issue the frequency changing request, the intelligent gateway transmits the request to the endmost node according to a stored relay node path after receiving the request, the endmost node changes the working frequency after receiving the request, configuration success information is returned to the relay node, the relay node changes the working frequency of the intelligent gateway, the configuration success information is transmitted layer by layer upwards until the intelligent gateway, and finally the intelligent gateway receives and counts the configuration success information and changes the working frequency of the intelligent gateway. The other control instructions are similar to the above process, and all start to respond from the endmost node, after successful response, the relay node sends operation success information to the relay node, and the relay node responds again, and finally the intelligent gateway counts and sends the operation success information to the computing server, so that the computing server pushes the response condition of the control instructions to the client to display the post-operation state.
Referring to fig. 3, the flow of the configuration of the intelligent gateway networking is as follows:
s301, the intelligent gateway receives the wireless configuration request sent by the computing server, and broadcasts and sends down the wireless configuration frame.
S302, configuring the node equipment.
S303, determine whether the node device is successfully configured, if yes, go to S305, and if no, go to S304.
And S304, relaying the signal according to the node equipment successfully configured last time.
S305, node configuration success information and a node relay path are sent to the computing server.
In the embodiment, the node equipment capable of relaying signals is used, the basic information configuration and the abnormity monitoring of the equipment are completed by matching with the on-line client, the node equipment is accessed to the network in a relay mode, and the function of automatically distributing the node configuration information is completed through the intelligent gateway, so that the communication reliability of the network after networking can be effectively ensured, the networking efficiency is improved, the networking parameters of the equipment manually configured by manpower are reduced, and the operation and maintenance cost is reduced.
EXAMPLE III
Based on the same inventive concept, the present embodiment provides a networking apparatus, which can be used to implement the networking method described in the foregoing embodiments. The device may be implemented by software and/or hardware, and the device may be generally integrated in a gateway.
Fig. 4 is a block diagram of a networking device according to a third embodiment of the present invention, and as shown in fig. 4, the networking device includes:
a first sending module 41, configured to issue a configuration frame in response to a networking configuration request, where the configuration frame is used to allocate an apparatus address for a node apparatus to be networked;
and the relay configuration module 42 is configured to use the successfully configured node device as a relay node device, forward the configuration frame by using the relay node device, and return to the step of using the successfully configured node device as a relay node device until the current networking meets a predetermined condition, and determine that the networking configuration is completed.
Optionally, the relay configuration module 42 includes:
a receiving unit, configured to receive information returned for the configuration frame;
a determining unit, configured to determine, as the relay node device, a node device that returns configuration success information.
Optionally, the relay configuration module 42 is specifically configured to:
the relay node equipment determined by the first time of sending the configuration frame is used as first layer relay node equipment;
the configuration frame is issued to the first layer of relay node equipment every time subsequently, so that the first layer of relay node equipment forwards the configuration frame layer by layer through each layer of determined relay node equipment;
receiving information returned by the first layer of relay node equipment;
and determining the node equipment returning the configuration success information through the first layer of relay node equipment as the Nth layer of relay node equipment, wherein N represents the number of times of issuing the configuration frame, and the value of N is more than or equal to 2.
Optionally, the apparatus further comprises: and the storage module is used for storing the relay paths in the process of determining the relay node equipment, wherein the relay paths with preset number are stored according to the relay signal strength aiming at the condition that one child node equipment performs relay through at least two father node equipment.
Optionally, the apparatus further comprises:
the first receiving module is used for receiving the networking configuration request;
the analysis module is used for analyzing the equipment information and the total number of the node equipment to be accessed from the networking configuration request;
the first generation module is used for generating corresponding equipment addresses for the node equipment to be accessed according to the total number of the node equipment to be accessed;
and the second generating module is used for generating the configuration frame according to the equipment information and the equipment address.
Optionally, the apparatus further comprises:
and the second sending module is used for sending the configuration information of all the to-be-networked node devices to the server after the networking configuration is determined to be completed, so that the server stores the configuration information and pushes the configuration information to the client.
Optionally, the predetermined condition includes at least one of:
the number of the node devices returning the configuration success information is equal to the total number of the node devices to be networked;
the relay node equipment cannot be continuously added by issuing the configuration frame;
and determining the number of layers of the relay node equipment to reach the preset number of layers.
Optionally, the apparatus further comprises:
the second receiving module is used for receiving the control instruction after the networking configuration is determined to be completed;
the determining module is used for determining a target relay path from the stored relay paths according to the control instruction;
the issuing module is used for issuing the control instruction to the terminal node equipment according to the target relay path so as to respond to the control instruction step by step from the terminal node equipment according to the target relay path and upload response information step by step;
and the processing module is used for responding to the control instruction after receiving the response information of all the node devices in the target relay path, and pushing the execution condition of the control instruction to the client.
The device can execute the method provided by the embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the method provided by the embodiment of the present invention.
Example four
The present embodiment provides a networking system, including: the gateway comprises the networking device in the embodiment, and the node equipment has a relay function.
The node device is specifically configured to: after receiving a configuration frame, determining the node equipment to be accessed as the network node equipment according to the equipment information of the node equipment to be accessed in the configuration frame; saving the device address corresponding to the device address in the configuration frame; and returning the configuration success information to the gateway or the relay node equipment of the previous layer. The node equipment is also used for responding to the received control instruction and returning response information.
The networking system may further include: the server is in communication connection with the gateway and is used for storing configuration information of the node equipment; and the client is in communication connection with the server and is used for displaying the network access condition of the node equipment and/or the response condition of the control instruction.
The client is further configured to: and responding to the query request, acquiring the equipment information of the node equipment to be networked and the corresponding gateway information, and sending a networking request to the server.
The server is further configured to: and generating a gateway number according to the gateway information in the networking request, generating the networking configuration request according to the gateway number, the equipment information of the node equipment to be networked and the total number of the node equipment to be networked, and sending the networking configuration request to a gateway.
Referring to fig. 5, the intelligent networking system includes: a client terminal 10 (mobile terminal or web terminal), a computing server 20, an intelligent gateway 30 and a node device 40 with relay function. The client 10 communicates with the computing server 20 over an ethernet link 50. Intelligent gateway 30 and compute server 20 communicate over ethernet link 50. The client 10 displays the node network access statistics and abnormal viewing, the computing server 20 is used for computing and saving the node device configuration parameters, the intelligent gateway 30 is used for broadcasting and collecting the wireless signals of the relay node devices, and the node device 40 is used for responding to terminal control and relaying the wireless signals of other node devices.
The system can execute the method provided by the embodiment of the invention and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the method provided by the embodiment of the present invention.
EXAMPLE five
The present embodiment provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the networking method according to the above-described embodiments of the present invention.
Example six
The embodiment provides an electronic device, including: one or more processors; memory for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the method according to the above-described embodiments of the invention.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (14)

1. A networking method, comprising:
responding to a networking configuration request, and issuing a configuration frame, wherein the configuration frame is used for allocating an equipment address for a node equipment to be networked;
using the successfully configured node equipment as relay node equipment, forwarding the configuration frame by using the relay node equipment, and returning to the step of using the successfully configured node equipment as the relay node equipment until the current networking meets a preset condition, and determining that networking configuration is completed;
after issuing the configuration frame, or after forwarding the configuration frame by using the relay node device, the method further includes:
the node equipment receiving the configuration frame determines itself as the node equipment to be accessed according to the equipment information of the node equipment to be accessed in the configuration frame; saving the device address corresponding to the device address in the configuration frame; and returning the configuration success information to the gateway or the relay node equipment of the previous layer.
2. The method of claim 1, wherein using the successfully configured node device as a relay node device comprises:
receiving information returned for the configuration frame;
and determining the node equipment returning the configuration success information as the relay node equipment.
3. The method according to claim 1, wherein the node device with successful configuration is used as a relay node device, and the relay node device is used to forward the configuration frame, and the method comprises:
the relay node equipment determined by the first time of sending the configuration frame is used as first layer relay node equipment;
the configuration frame is issued to the first layer of relay node equipment every time subsequently, so that the first layer of relay node equipment forwards the configuration frame layer by layer through each layer of determined relay node equipment;
receiving information returned by the first layer of relay node equipment;
and determining the node equipment returning the configuration success information through the first layer of relay node equipment as the Nth layer of relay node equipment, wherein N represents the number of times of issuing the configuration frame, and the value of N is more than or equal to 2.
4. The method of claim 3, wherein in determining the relay node devices, relay paths are saved, wherein a preset number of relay paths are saved according to relay signal strength for a case where one child node device relays through at least two parent node devices.
5. The method of claim 1, further comprising, prior to issuing a configuration frame in response to a networking configuration request:
receiving the networking configuration request;
analyzing the equipment information and the total number of the node equipment to be accessed from the networking configuration request;
generating a corresponding equipment address for each node equipment to be accessed according to the total number of the node equipment to be accessed;
and generating the configuration frame according to the equipment information and the equipment address.
6. The method of claim 1, further comprising, prior to issuing a configuration frame in response to a networking configuration request:
the client responds to the query request, acquires the equipment information of the node equipment to be networked and the corresponding gateway information, and sends a networking request to the server;
and the server generates a gateway number according to the gateway information in the networking request, generates the networking configuration request according to the gateway number, the equipment information of the node equipment to be networked and the total number of the node equipment to be networked, and sends the networking configuration request to the gateway.
7. The method of claim 1, after determining that the networking configuration is complete, further comprising:
and sending the configuration information of all the to-be-networked node devices to a server so that the server stores the configuration information and pushes the configuration information to a client.
8. The method according to any one of claims 1 to 7, wherein the predetermined condition comprises at least one of:
the number of the node devices returning the configuration success information is equal to the total number of the node devices to be networked;
the relay node equipment cannot be continuously added by issuing the configuration frame;
and determining the number of layers of the relay node equipment to reach the preset number of layers.
9. The method of any of claims 1-7, after determining that the networking configuration is complete, further comprising:
receiving a control instruction;
determining a target relay path from the stored relay paths according to the control instruction;
issuing the control instruction to end node equipment according to the target relay path so as to respond to the control instruction step by step from the end node equipment according to the target relay path and upload response information step by step;
and after receiving the response information of all the node equipment in the target relay path, responding to the control instruction, and pushing the response condition of the control instruction to a client.
10. A networking device, comprising:
the first sending module is used for responding to a networking configuration request and issuing a configuration frame, wherein the configuration frame is used for allocating an equipment address for the node equipment to be networked;
the relay configuration module is used for taking the successfully configured node equipment as relay node equipment, forwarding the configuration frame by using the relay node equipment, and returning the step of taking the successfully configured node equipment as the relay node equipment until the current networking meets a preset condition, and determining that networking configuration is completed;
after the first sending module issues a configuration frame, or after the relay configuration module forwards the configuration frame by using the relay node device, the node device receiving the configuration frame is used for determining itself as the node device to be accessed according to the device information of the node device to be accessed in the configuration frame; saving the device address corresponding to the device address in the configuration frame; and returning the configuration success information to the gateway or the relay node equipment of the previous layer.
11. A networking system, comprising: a gateway comprising the networking apparatus of claim 10, and a node device having a relay function.
12. The networking system of claim 11, further comprising:
the server is in communication connection with the gateway and is used for storing configuration information of the node equipment;
and the client is in communication connection with the server and is used for displaying the network access condition of the node equipment and/or the response condition of the control instruction.
13. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the method according to any one of claims 1 to 9.
14. An electronic device, comprising: one or more processors; memory for storing one or more programs, which when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-9.
CN202011281622.8A 2020-11-16 2020-11-16 Networking method, device and system Active CN112566155B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011281622.8A CN112566155B (en) 2020-11-16 2020-11-16 Networking method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011281622.8A CN112566155B (en) 2020-11-16 2020-11-16 Networking method, device and system

Publications (2)

Publication Number Publication Date
CN112566155A CN112566155A (en) 2021-03-26
CN112566155B true CN112566155B (en) 2022-05-10

Family

ID=75042484

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011281622.8A Active CN112566155B (en) 2020-11-16 2020-11-16 Networking method, device and system

Country Status (1)

Country Link
CN (1) CN112566155B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113347646B (en) * 2021-07-08 2023-03-24 博为科技有限公司 Mesh networking management method and related equipment
CN113905349A (en) * 2021-09-29 2022-01-07 中国铁道科学研究院集团有限公司 Networking method, device and system
CN113949605B (en) * 2021-11-03 2024-03-08 珠海格力电器股份有限公司 Gateway, automatic control system and gateway control method
CN114423066B (en) * 2022-03-09 2022-08-09 深圳市爱图仕影像器材有限公司 Networking control method and device for data communication

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109041272A (en) * 2018-07-20 2018-12-18 上海麦士信息技术有限公司 A kind of network-building method and its communication means of LoRa ad hoc network
CN109788444A (en) * 2019-02-25 2019-05-21 武汉晟联智融微电子科技有限公司 Applied to the node networking method in high density multihop network

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8589541B2 (en) * 2009-01-28 2013-11-19 Headwater Partners I Llc Device-assisted services for protecting network capacity
EP2995159B1 (en) * 2013-05-08 2019-02-20 Telefonaktiebolaget LM Ericsson (publ) Improved selection of scheduling policy for network communications links and d2d communications links
CN105451290B (en) * 2014-08-20 2019-09-27 北京南瑞智芯微电子科技有限公司 A kind of micropower wireless network ad hoc network method and micropower wireless network
CN109787903B (en) * 2019-02-28 2021-04-13 武汉晟联智融微电子科技有限公司 Non-collision multicast data feedback method in centralized network

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109041272A (en) * 2018-07-20 2018-12-18 上海麦士信息技术有限公司 A kind of network-building method and its communication means of LoRa ad hoc network
CN109788444A (en) * 2019-02-25 2019-05-21 武汉晟联智融微电子科技有限公司 Applied to the node networking method in high density multihop network

Also Published As

Publication number Publication date
CN112566155A (en) 2021-03-26

Similar Documents

Publication Publication Date Title
CN112566155B (en) Networking method, device and system
US10812597B2 (en) Content delivery network (CDN) management system, method, and apparatus
US10999093B2 (en) NB-IOT based wireless device group access method and terminal
EP3291592B1 (en) Monitoring management method and apparatus
CN105991363B (en) Monitoring processing method and device
CN106993043B (en) Data communication system and method based on agency
CN104410530A (en) Method of finding and utilizing MAC address to manage industrial switches
CN110213359B (en) Internet of vehicles networking data pushing system and method based on D2D
WO2020010906A1 (en) Method and device for operating system (os) batch installation, and network device
US10931529B2 (en) Terminal device management method, server, and terminal device for managing terminal devices in local area network
CN115174528A (en) Equipment address control method, device and system
CN110611589B (en) Control method and device of regional control system and air conditioning system
CN109640339B (en) Method, device, system and storage medium for managing multiple Bluetooth antenna devices
EP3435615B1 (en) Network service implementation method, service controller, and communication system
US20210037093A1 (en) Device state synchronization method and common capability component
CN114489730A (en) Remote upgrading method, terminal equipment and computer readable storage medium
CN113542424A (en) Data processing method, device, equipment and computer program product
CN107248935B (en) System and method for network management to discover and monitor network elements
CN105323088A (en) Springboard processing method and springboard processing device
CN103595629A (en) Rapid gateway switching method and device for hosts in IRDP (ICMP Router Discovery Protocol) network
CN114448801B (en) Method for creating real-time channel group, network topology, equipment and storage medium
CN113472599B (en) Data communication method and system of network node
CN108259211B (en) Equipment management method and device
CN114143825B (en) RRU management method and system based on multimode base station
JP3620492B2 (en) Microwave radio communication system and automatic address assignment method used therefor

Legal Events

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