ZigBee gateway device, multi-role switching method and system
By analyzing the operating status of the ZigBee network and switching function roles of the ZigBee smart gateway device, the problem of the ZigBee smart gateway cannot be flexibly switched in the existing technology is solved, and the stability and intelligence of the ZigBee network are improved. change.
Patent Information
- Application Number
- CN202411259394.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-10
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2044-09-10
AI Technical Summary
The existing ZigBee smart gateway cannot flexibly switch to wireless routing equipment and network monitoring equipment based on the ZigBee network operation status, resulting in reduced network operation reliability and intelligence.
By collecting and preprocessing the network output port signal data of ZigBee gateway devices and wireless routing devices, analyzing the network operating status, and switching the corresponding functional roles based on the analysis results, the intelligent evaluation and functional role switching of ZigBee network are realized.
It improves the anti-interference performance and intelligence of ZigBee network, ensuring the stability and applicability of the network.
Smart Images

Figure CN118803950B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of wireless communication networks, and in particular to a ZigBee gateway device, a multi-role switching method and a system. Background Art
[0002] Zigbee smart gateway plays a vital role in the field of smart home. Its popularity and application have brought great convenience and intelligent experience to modern family life. As consumers' demand for smart home products continues to increase, Zigbee smart gateway, as the core hub connecting various smart devices, is also becoming more and more popular. At present, more and more Zigbee smart gateways of different forms are entering users' homes. In addition to acting as the hub of ZigBee network, they also undertake various application functions such as lighting, voice, control panel, camera, etc.; however, the existing Zigbee smart gateway cannot be flexibly switched to ZigBee wireless routing device and ZigBee network monitoring device according to the operation status of ZigBee network when connected to ZigBee network, thus reducing the reliability and intelligence of ZigBee network operation.
[0003] The Chinese invention patent with announcement number CN112492660B discloses a network switching method, management platform and gateway, which receive the service identifier of the data flow reported by the gateway; respond to the priority service and send a network switching indication message to enable the gateway to switch the network channel of the data flow from the current first network to the second network connected to the gateway, and the priority service is the service with a level higher than the preset priority; provide users with suitable services and access to suitable networks according to different business needs, avoiding unnecessary costs or affecting business rates; however, the network gateway of the above technical solution cannot flexibly switch to a wireless routing device and a network monitoring device according to the network operation status, which reduces the stability of network communication. Summary of the invention
[0004] 1. Technical issues to be resolved
[0005] In order to solve the problem that the existing ZigBee intelligent gateway cannot be flexibly switched to ZigBee wireless routing equipment and ZigBee network monitoring equipment according to the operation status of the ZigBee network when being connected to the ZigBee network, thereby reducing the reliability and intelligence of the ZigBee network operation, the above-mentioned intelligent evaluation of the real operation status of the ZigBee network, scientific analysis of the network transmission function role switching scheme of the ZigBee intelligent gateway, accurate execution of the network transmission function role switching operation of the ZigBee intelligent gateway, and improvement of the anti-interference performance and intelligence of the ZigBee network are achieved.
[0006] (II) Technical solution
[0007] The present invention is implemented by the following technical scheme: a ZigBee gateway device and a multi-role switching method, the method comprising the following steps:
[0008] S1, collecting the network output port signal data of the ZigBee gateway device and the network output port signal data of the ZigBee wireless routing device;
[0009] S2, preprocessing the data of the output port signal of the communication device of the ZigBee network to generate standard ZigBee gateway device network output port signal data and standard ZigBee wireless routing device network output port signal data;
[0010] S3, performing ZigBee network operation status analysis and processing based on the standard ZigBee gateway device network output port signal data and the standard ZigBee wireless routing device network output port signal data, and generating ZigBee network operation status analysis data;
[0011] S4, performing analysis and processing of the ZigBee intelligent gateway network transmission function role type required for ZigBee network operation according to the ZigBee network operation status analysis data and the ZigBee intelligent gateway network transmission function role type switching scheme data, and constructing ZigBee intelligent gateway network transmission function role type switching scheme analysis data;
[0012] S5, performing identification processing of the execution program corresponding to the ZigBee intelligent gateway network transmission function role type according to the ZigBee intelligent gateway network transmission function role type switching scheme analysis data and the ZigBee intelligent gateway network transmission function role execution program data, and constructing the specific execution program data of the ZigBee intelligent gateway network transmission function role;
[0013] S6. Execute a ZigBee intelligent gateway network transmission function role switching operation in the ZigBee network according to the ZigBee intelligent gateway network transmission function role specific execution program data.
[0014] Preferably, the operation steps of collecting the ZigBee gateway device network output port signal data and the ZigBee wireless routing device network output port signal data are as follows:
[0015] S11, collecting signal parameters of the network output port of the ZigBee gateway device in the ZigBee network online through the gateway interface signal collection device and generating signal data of the network output port of the ZigBee gateway device , the gateway interface signal acquisition device includes any one of an RS485 data collector and a HART data collector;
[0016] The signal acquisition device of the router communication interface collects the signal parameters of the network output port of the ZigBee wireless routing device in the ZigBee network online and generates the signal data of the network output port of the ZigBee wireless routing device The router communication interface signal acquisition device includes any one of a wireless access point and an industrial data collector.
[0017] Preferably, the operation steps of performing data preprocessing on the output port signal of the communication device of the ZigBee network to generate standard ZigBee gateway device network output port signal data and standard ZigBee wireless routing device network output port signal data are as follows:
[0018] S21, using an adaptive filtering method to filter the ZigBee gateway device network output port signal data and the ZigBee wireless routing device network output port signal data Perform noise reduction preprocessing on the network output port signal data and generate standard ZigBee gateway device network output port signal data And standard ZigBee wireless routing device network output port signal data .
[0019] Preferably, the steps of performing ZigBee network operation status analysis and processing based on the standard ZigBee gateway device network output port signal data and the standard ZigBee wireless routing device network output port signal data and generating ZigBee network operation status analysis data are as follows:
[0020] S31, obtaining the standard ZigBee gateway device network output port signal data And the standard ZigBee wireless routing device network output port signal data ;
[0021] S32, output port signal data according to the standard ZigBee gateway device network And the standard ZigBee wireless routing device network output port signal data The signal data status corresponding to the network output port signal data of the ZigBee gateway device and the ZigBee wireless routing device is judged respectively, and the ZigBee network operation status analysis data set is generated according to the judgment result of the data status ,in Represents the standard ZigBee gateway device network output port signal data The signal data state is a non-empty set and the standard ZigBee wireless routing device network output port signal data The signal data state is a non-empty set, and the corresponding ZigBee network operation status analysis data is that the ZigBee gateway device and the ZigBee wireless routing device are communicating normally;
[0022] in Represents the standard ZigBee gateway device network output port signal data The signal data state is an empty set and the standard ZigBee wireless routing device network output port signal data The signal data state is a non-empty set, and the corresponding ZigBee network operation status analysis data is that the ZigBee gateway device communication fails and the ZigBee wireless routing device communication is normal;
[0023] in Represents the standard ZigBee gateway device network output port signal data The signal data state is a non-empty set and the standard ZigBee wireless routing device network output port signal data The signal data state is an empty set, and the corresponding ZigBee network operation status analysis data is that the ZigBee gateway device communication is normal and the ZigBee wireless routing device communication is faulty;
[0024] in Represents the standard ZigBee gateway device network output port signal data The signal data state is an empty set and the standard ZigBee wireless routing device network output port signal data The signal data state is an empty set, and the corresponding ZigBee network operation status analysis data is that both the ZigBee gateway device and the ZigBee wireless routing device have communication failures.
[0025] Preferably, the steps of performing ZigBee intelligent gateway network transmission function role type analysis and processing required for ZigBee network operation according to the ZigBee network operation status analysis data and the ZigBee intelligent gateway network transmission function role type switching scheme data, and constructing the ZigBee intelligent gateway network transmission function role type switching scheme analysis data are as follows:
[0026] S41. Establishing a ZigBee intelligent gateway network transmission function role type switching scheme data set ,in Indicates ZigBee network operation status analysis data The corresponding ZigBee intelligent gateway network transmission function role type switching scheme data is that the ZigBee intelligent gateway switches to a ZigBee network monitoring device. At this time, the ZigBee gateway device and the ZigBee wireless routing device both communicate normally, and the ZigBee network monitoring device is required to monitor the running status of the ZigBee network;
[0027] Indicates ZigBee network operation status analysis data The corresponding ZigBee intelligent gateway network transmission function role type switching scheme data is that the ZigBee intelligent gateway directly acts as a ZigBee gateway device. At this time, the ZigBee gateway device communication fails, and the ZigBee intelligent gateway is required to directly act as a ZigBee gateway device to translate and process the ZigBee communication signal of the ZigBee network;
[0028] Indicates ZigBee network operation status analysis data The corresponding ZigBee smart gateway network transmission function role type switching scheme data is that the ZigBee smart gateway switches to a ZigBee wireless routing device. At this time, the ZigBee wireless routing device fails in communication, and the ZigBee smart gateway needs to switch to a ZigBee wireless routing device to forward the ZigBee communication signal of the ZigBee network to the mobile smart terminal, and the mobile smart terminal includes any one or more of a smart phone, a wearable device, a tablet computer, and a smart home device;
[0029] Indicates ZigBee network operation status analysis data The corresponding ZigBee intelligent gateway network transmission function role type switching scheme data is that the ZigBee intelligent gateway switches to a ZigBee network monitoring device. At this time, both the ZigBee gateway device and the ZigBee wireless routing device have communication failures, and the ZigBee network monitoring device is required to diagnose and process the ZigBee network operation failure points;
[0030] S42, combining the ZigBee network operation status analysis data with the ZigBee intelligent gateway network transmission function role type switching solution data The ZigBee intelligent gateway network transmission function role type switching scheme data is searched according to the ZigBee network operation status analysis type number to find the ZigBee intelligent gateway network transmission function role type switching scheme data corresponding to the ZigBee network operation status analysis data and construct the ZigBee intelligent gateway network transmission function role type switching scheme analysis data , execute and build the ZigBee intelligent gateway network transmission function role type switching solution analysis data The specific operations are as follows:
[0031] S421, initializing algorithm parameters, population size K, maximum number of iterations T;
[0032] S422, initializing the population, calculating the fitness, and determining the network transmission function role type search pathfinder and the network transmission function role type search follower;
[0033] S423, according to the position formula Data collection of the switching scheme for the transmission function role type in the ZigBee intelligent gateway network The position of the network transmission function role type search pathfinder of the ZigBee intelligent gateway network transmission function role type switching solution data corresponding to the ZigBee network operation status analysis data is updated in the search space, where t represents the current iteration number of the algorithm; Represents the network transmission function role type search pathfinder after the tth iteration Data collection of the switching scheme of the role type in the ZigBee intelligent gateway network transmission function The position in the search space, Represents the network transmission function role type search pathfinder after the t-1th iteration Data collection of the switching scheme of the role type in the ZigBee intelligent gateway network transmission function The position in the search space, Represents the network transmission function role type search pathfinder after the t+1th iteration Data collection of the switching scheme of the role type in the ZigBee intelligent gateway network transmission function The position in the search space, The step size factor for searching the pathfinder moves for the network transfer function role type, It follows a uniform distribution in [0,1];
[0034] S424, according to the position formula Update and search for the network transmission function role type search follower of the ZigBee intelligent gateway network transmission function role type switching solution data corresponding to the ZigBee network operation status analysis data in the ZigBee intelligent gateway network transmission function role type switching solution data set The position in the search space where Represents the network transmission function role type search follower after the tth iteration Data collection of the switching scheme of the role type in the ZigBee intelligent gateway network transmission function The position in the search space, Represents the network transmission function role type search follower after the t+1th iteration Data collection of the switching scheme of the role type in the ZigBee intelligent gateway network transmission function Position in the search space; Represents the other network transmission function role type search follower after the tth iteration Data collection of the switching scheme of the role type in the ZigBee intelligent gateway network transmission function Search for positions in space, network transfer function role type search for follower positions Mobile is not only about network transfer function role type search pathfinder location Related, and affected by other network transfer functions Role Type Search Follower Location The impact of Represents the network transmission function role type search follower network transmission function role type switching scheme data set in ZigBee intelligent gateway The position distance parameter in the search space, Represents the data set of the network transmission function role type switching scheme between the network transmission function role type search pathfinder and the network transmission function role type search follower in the ZigBee intelligent gateway network transmission function role type switching scheme The position distance parameter in the search space, , ; represents the interaction coefficient between the network transmission function role type search followers, It represents the attraction coefficient of the network transmission function role type search pathfinder to the network transmission function role type search follower, , All are uniformly distributed in [1,2]; The step size factor for the NTF role type search follower and the other NTF role type search follower moves, The step size factor for the network transfer function role type search follower and network transfer function role type search pathfinder moves, , All are random numbers in the range [0,1];
[0035] S425, calculate the fitness value and update the global optimal value, that is, in the ZigBee intelligent gateway network transmission function role type switching scheme data set Searching the fitness values of all the ZigBee intelligent gateway network transmission function role type switching scheme data corresponding to the ZigBee network operation status analysis data in the search space according to the ZigBee network operation status analysis type number, and updating the ZigBee intelligent gateway network transmission function role type switching scheme data with the largest fitness value corresponding to the ZigBee network operation status analysis data;
[0036] S426, when the maximum number of iterations is met, output the ZigBee intelligent gateway network transmission function role type switching solution data corresponding to the ZigBee network operation status analysis data searched out in step S425, and constructed the data identification as the ZigBee intelligent gateway network transmission function role type switching solution analysis data .
[0037] Preferably, the execution program identification processing corresponding to the ZigBee intelligent gateway network transmission function role type is performed according to the ZigBee intelligent gateway network transmission function role type switching scheme analysis data and the ZigBee intelligent gateway network transmission function role execution program data, and the operation steps of constructing the specific execution program data of the ZigBee intelligent gateway network transmission function role are as follows:
[0038] S51, establish ZigBee intelligent gateway network transmission function role execution program data set ,in Indicates the ZigBee smart gateway network transmission function role type switching scheme data The corresponding ZigBee intelligent gateway network transmission function role execution program data is an execution program for the ZigBee intelligent gateway to switch to a ZigBee network monitoring device, and the ZigBee intelligent gateway network transmission function role execution program data represents the control program instruction data corresponding to the ZigBee intelligent gateway executing the network transmission function role switching operation according to different types of network transmission function role type switching schemes;
[0039] Indicates the ZigBee smart gateway network transmission function role type switching scheme data The corresponding ZigBee intelligent gateway network transmission function role execution program data is the execution program of the ZigBee intelligent gateway directly as a ZigBee gateway device;
[0040] Indicates the ZigBee smart gateway network transmission function role type switching scheme data The corresponding ZigBee intelligent gateway network transmission function role execution program data is the execution program for the ZigBee intelligent gateway to switch to a ZigBee wireless routing device;
[0041] Indicates the ZigBee smart gateway network transmission function role type switching scheme data The corresponding ZigBee intelligent gateway network transmission function role execution program data is the execution program for the ZigBee intelligent gateway to switch to a ZigBee network monitoring device;
[0042] S52, using the KD tree nearest neighbor search algorithm to transmit the function role execution program data set in the ZigBee intelligent gateway network According to the ZigBee network operation status analysis type number, the switching scheme analysis data of the ZigBee intelligent gateway network transmission function role type is searched out. The matching ZigBee intelligent gateway network transmission function role execution program data is constructed into ZigBee intelligent gateway network transmission function role specific execution program data through data identification. .
[0043] Preferably, the operation steps of executing the ZigBee intelligent gateway network transmission function role switching operation in the ZigBee network according to the ZigBee intelligent gateway network transmission function role specific execution program data are as follows:
[0044] S61, obtaining the specific execution program data of the ZigBee intelligent gateway network transmission function role ;
[0045] S62: Execute program data according to the ZigBee intelligent gateway network transmission function role Execute the role switching operation of the ZigBee intelligent gateway network transmission function in the ZigBee network;
[0046] when for When the ZigBee intelligent gateway switches to become a ZigBee network monitoring device, the ZigBee intelligent gateway network transmission function role switching operation in the ZigBee network is executed;
[0047] when for When the ZigBee intelligent gateway directly acts as the execution program of the ZigBee gateway device to perform the role switching operation of the ZigBee intelligent gateway network transmission function in the ZigBee network;
[0048] when for When the ZigBee intelligent gateway switches to become a ZigBee wireless routing device, the ZigBee intelligent gateway network transmission function role switching operation in the ZigBee network is performed;
[0049] when for When the ZigBee intelligent gateway switches to become the ZigBee network monitoring device, the execution program performs the ZigBee intelligent gateway network transmission function role switching operation in the ZigBee network.
[0050] A ZigBee gateway device and a multi-role switching system are used to implement the ZigBee gateway device and the multi-role switching method, wherein the system comprises a ZigBee network operation status analysis module, a ZigBee intelligent gateway network transmission function role type evaluation module, and a ZigBee intelligent gateway network transmission function role switching execution module;
[0051] The ZigBee network operation status analysis module includes a ZigBee gateway device network output port signal acquisition unit, a ZigBee wireless routing device network output port signal acquisition unit, a ZigBee network device output port signal preprocessing unit, and a ZigBee network operation status analysis unit;
[0052] The ZigBee gateway device network output port signal acquisition unit acquires ZigBee gateway device network output port signal data through a gateway interface signal acquisition device; the ZigBee wireless router device network output port signal acquisition unit acquires ZigBee wireless router device network output port signal data through a router communication interface signal acquisition device; the ZigBee network device output port signal preprocessing unit performs data preprocessing on the communication device output port signal of the ZigBee network to generate standard ZigBee gateway device network output port signal data and standard ZigBee wireless router device network output port signal data; the ZigBee network operation status analysis unit performs ZigBee network operation status analysis and processing based on the standard ZigBee gateway device network output port signal data and the standard ZigBee wireless router device network output port signal data, and generates ZigBee network operation status analysis data;
[0053] The ZigBee intelligent gateway network transmission function role type evaluation module includes a ZigBee intelligent gateway network transmission function role type switching scheme storage unit, a ZigBee intelligent gateway network transmission function role type switching scheme analysis unit, and a ZigBee intelligent gateway network transmission function role type switching scheme output unit;
[0054] The ZigBee intelligent gateway network transmission function role type switching scheme storage unit is used to store the ZigBee intelligent gateway network transmission function role type switching scheme data; the ZigBee intelligent gateway network transmission function role type switching scheme analysis unit performs ZigBee intelligent gateway network transmission function role type analysis processing required for ZigBee network operation according to the ZigBee network operation status analysis data and the ZigBee intelligent gateway network transmission function role type switching scheme data, and constructs ZigBee intelligent gateway network transmission function role type switching scheme analysis data; the ZigBee intelligent gateway network transmission function role type switching scheme output unit is used to output the ZigBee intelligent gateway network transmission function role type switching scheme analysis data;
[0055] The ZigBee intelligent gateway network transmission function role switching execution module includes a ZigBee intelligent gateway network transmission function role intelligent execution program storage unit, a ZigBee intelligent gateway network transmission function role execution program identification unit, and a ZigBee intelligent gateway network transmission function role switching job execution unit;
[0056] The ZigBee intelligent gateway network transmission function role intelligent execution program storage unit is used to store the ZigBee intelligent gateway network transmission function role execution program data; the ZigBee intelligent gateway network transmission function role execution program identification unit performs execution program identification processing corresponding to the ZigBee intelligent gateway network transmission function role type according to the ZigBee intelligent gateway network transmission function role type switching scheme analysis data and the ZigBee intelligent gateway network transmission function role execution program data, and constructs the specific execution program data of the ZigBee intelligent gateway network transmission function role; the ZigBee intelligent gateway network transmission function role switching operation execution unit executes the ZigBee intelligent gateway network transmission function role switching operation in the ZigBee network according to the ZigBee intelligent gateway network transmission function role specific execution program data.
[0057] (III) Beneficial effects
[0058] The present invention provides a ZigBee gateway device, a multi-role switching method and a system, which have the following beneficial effects:
[0059] 1. Through the cooperation of the ZigBee gateway device network output port signal acquisition unit and the ZigBee wireless router device network output port signal acquisition unit, the gateway interface signal acquisition device and the router communication interface signal acquisition device are used to conveniently and efficiently obtain the network output port signal parameters of the ZigBee gateway device and the ZigBee wireless router device; the ZigBee network device output port signal preprocessing unit performs data noise reduction preprocessing on the output port signal of the communication device of the ZigBee network, thereby improving the acquisition accuracy of the output port signal parameters of the communication device of the ZigBee network; the ZigBee network operation status analysis unit scientifically evaluates the operation status of the ZigBee network based on the output port signal parameters of the communication device of the ZigBee network, thereby realizing accurate analysis of the operation status of the ZigBee network.
[0060] 2. Through the cooperation of the ZigBee intelligent gateway network transmission function role type switching scheme storage unit and the ZigBee intelligent gateway network transmission function role type switching scheme analysis unit, the ZigBee intelligent gateway network transmission function role type switching scheme parameters are scientifically preset, and the intelligent recognition algorithm and the ZigBee network operation status analysis parameters are combined to perform a scientific analysis of the communication device role type switching scheme required for the ZigBee intelligent gateway to access the ZigBee network, so as to realize the ZigBee intelligent gateway to adaptively identify the required communication device role type in the ZigBee network, thereby improving the intelligence and stability of the ZigBee network.
[0061] 3. Through the cooperation of the ZigBee intelligent gateway network transmission function role intelligent execution program storage unit and the ZigBee intelligent gateway network transmission function role execution program identification unit, the standard setting of the ZigBee intelligent gateway network transmission function role execution program parameters is combined with the intelligent search algorithm and the ZigBee intelligent gateway network transmission function role type switching scheme analysis parameters to search for the communication device role type switching control instructions required for the ZigBee intelligent gateway to access the ZigBee network, so that the ZigBee intelligent gateway can accurately search for the communication device role type switching control instructions required in the ZigBee network, and realize the ZigBee intelligent gateway to accurately switch multiple roles according to the ZigBee network communication requirements; the ZigBee intelligent gateway network transmission function role switching job execution unit, according to the specific execution program parameters of the ZigBee intelligent gateway network transmission function role, scientifically and efficiently classifies and executes the ZigBee intelligent gateway network transmission function role switching operations in the ZigBee network, thereby improving the anti-interference performance and applicability of the ZigBee network. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] Figure 1A schematic diagram of a module of a ZigBee gateway device and a multi-role switching system provided by the present invention;
[0063] Figure 2 The present invention provides a ZigBee gateway device and a flow chart of a multi-role switching method. DETAILED DESCRIPTION
[0064] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0065] The embodiments of the ZigBee gateway device, multi-role switching method and system are as follows: Example 1
[0066] See also Figure 1 - Figure 2 , a ZigBee gateway device, a multi-role switching method, the method comprising the following steps:
[0067] S1, collecting the network output port signal data of the ZigBee gateway device and the network output port signal data of the ZigBee wireless routing device;
[0068] S2, preprocessing the data of the output port signal of the communication device of the ZigBee network to generate standard ZigBee gateway device network output port signal data and standard ZigBee wireless routing device network output port signal data;
[0069] S3, performing ZigBee network operation status analysis and processing based on standard ZigBee gateway device network output port signal data and standard ZigBee wireless routing device network output port signal data, and generating ZigBee network operation status analysis data;
[0070] S4, performing analysis and processing of the ZigBee intelligent gateway network transmission function role type required for ZigBee network operation according to the ZigBee network operation status analysis data and the ZigBee intelligent gateway network transmission function role type switching scheme data, and constructing the ZigBee intelligent gateway network transmission function role type switching scheme analysis data;
[0071] S5, according to the ZigBee intelligent gateway network transmission function role type switching scheme analysis data and the ZigBee intelligent gateway network transmission function role execution program data, the execution program identification processing corresponding to the ZigBee intelligent gateway network transmission function role type is performed to construct the specific execution program data of the ZigBee intelligent gateway network transmission function role;
[0072] S6. Execute a ZigBee intelligent gateway network transmission function role switching operation in the ZigBee network according to the specific execution program data of the ZigBee intelligent gateway network transmission function role.
[0073] For further information, see Figure 1 - Figure 2 The steps for collecting the network output port signal data of the ZigBee gateway device and the network output port signal data of the ZigBee wireless router device are as follows:
[0074] S11, collecting signal parameters of the network output port of the ZigBee gateway device in the ZigBee network online through the gateway interface signal collection device and generating signal data of the network output port of the ZigBee gateway device , the gateway interface signal acquisition device includes any one of RS485 data collector and HART data collector;
[0075] The signal acquisition device of the router communication interface collects the signal parameters of the network output port of the ZigBee wireless routing device in the ZigBee network online and generates the signal data of the network output port of the ZigBee wireless routing device ,The router communication interface signal acquisition device includes any one of a wireless access point and an industrial data collector.
[0076] The steps for preprocessing the output port signal of the communication device of the ZigBee network and generating the network output port signal data of the standard ZigBee gateway device and the network output port signal data of the standard ZigBee wireless routing device are as follows:
[0077] S21, using adaptive filtering method to filter the ZigBee gateway device network output port signal data and ZigBee wireless routing device network output port signal data Perform noise reduction preprocessing on the network output port signal data and generate standard ZigBee gateway device network output port signal data And standard ZigBee wireless routing device network output port signal data .
[0078] The steps for analyzing and processing the ZigBee network operation status based on the network output port signal data of the standard ZigBee gateway device and the network output port signal data of the standard ZigBee wireless routing device and generating the ZigBee network operation status analysis data are as follows:
[0079] S31. Obtaining standard ZigBee gateway device network output port signal data And standard ZigBee wireless routing device network output port signal data ;
[0080] S32, according to the standard ZigBee gateway device network output port signal data And standard ZigBee wireless routing device network output port signal data The signal data status corresponding to the network output port signal data of the ZigBee gateway device and the ZigBee wireless routing device is judged respectively, and the ZigBee network operation status analysis data set is generated according to the judgment result of the data status ,in Represents the standard ZigBee gateway device network output port signal data The signal data state is a non-empty set and the standard ZigBee wireless routing device network output port signal data The signal data state is a non-empty set, and the corresponding ZigBee network operation status analysis data is that the ZigBee gateway device and the ZigBee wireless routing device are communicating normally;
[0081] in Represents the standard ZigBee gateway device network output port signal data The signal data state is an empty set and the standard ZigBee wireless routing device network output port signal data The signal data state is a non-empty set, and the corresponding ZigBee network operation state analysis data is that the ZigBee gateway device communication fails and the ZigBee wireless routing device communication is normal;
[0082] in Represents the standard ZigBee gateway device network output port signal data The signal data state is a non-empty set and the standard ZigBee wireless routing device network output port signal data The signal data state is an empty set, and the corresponding ZigBee network operation state analysis data is that the ZigBee gateway device communication is normal and the ZigBee wireless routing device communication is faulty;
[0083] in Represents the standard ZigBee gateway device network output port signal data The signal data state is an empty set and the standard ZigBee wireless routing device network output port signal data The signal data state is an empty set and the corresponding ZigBee network operation status analysis data is that both the ZigBee gateway device and the ZigBee wireless routing device have communication failures.
[0084] Through the cooperation of the ZigBee gateway device network output port signal acquisition unit and the ZigBee wireless router device network output port signal acquisition unit, the gateway interface signal acquisition device and the router communication interface signal acquisition device are used to conveniently and efficiently obtain the network output port signal parameters of the ZigBee gateway device and the ZigBee wireless router device; the ZigBee network device output port signal preprocessing unit performs data noise reduction preprocessing on the output port signal of the communication device of the ZigBee network, thereby improving the acquisition accuracy of the output port signal parameters of the communication device of the ZigBee network; the ZigBee network operation status analysis unit scientifically evaluates the operation status of the ZigBee network based on the output port signal parameters of the communication device of the ZigBee network, thereby realizing accurate analysis of the operation status of the ZigBee network.
[0085] For further information, see Figure 1 - Figure 2 According to the ZigBee network operation status analysis data and the ZigBee intelligent gateway network transmission function role type switching scheme data, the ZigBee intelligent gateway network transmission function role type analysis and processing required for the ZigBee network operation are performed, and the operation steps for constructing the ZigBee intelligent gateway network transmission function role type switching scheme analysis data are as follows:
[0086] S41. Establishing a ZigBee intelligent gateway network transmission function role type switching scheme data set ,in Indicates ZigBee network operation status analysis data The corresponding ZigBee intelligent gateway network transmission function role type switching scheme data is that the ZigBee intelligent gateway switches to a ZigBee network monitoring device. At this time, the ZigBee gateway device and the ZigBee wireless routing device both communicate normally, and the ZigBee network monitoring device is required to monitor the running status of the ZigBee network;
[0087] Indicates ZigBee network operation status analysis data The corresponding ZigBee intelligent gateway network transmission function role type switching scheme data is that the ZigBee intelligent gateway directly acts as a ZigBee gateway device. At this time, the ZigBee gateway device communication fails, and the ZigBee intelligent gateway is required to directly act as a ZigBee gateway device to translate and process the ZigBee communication signal of the ZigBee network;
[0088] Indicates ZigBee network operation status analysis data The corresponding ZigBee smart gateway network transmission function role type switching scheme data is that the ZigBee smart gateway switches to a ZigBee wireless routing device. At this time, the ZigBee wireless routing device fails in communication, and the ZigBee smart gateway needs to switch to a ZigBee wireless routing device to forward the ZigBee communication signal of the ZigBee network to the mobile smart terminal. The mobile smart terminal includes any one or more of a smart phone, a wearable device, a tablet computer, and a smart home device.
[0089] Indicates ZigBee network operation status analysis data The corresponding ZigBee intelligent gateway network transmission function role type switching scheme data is that the ZigBee intelligent gateway switches to a ZigBee network monitoring device. At this time, both the ZigBee gateway device and the ZigBee wireless routing device have communication failures, and the ZigBee network monitoring device is required to diagnose and process the ZigBee network operation failure points;
[0090] S42, combining the ZigBee network operation status analysis data with the ZigBee intelligent gateway network transmission function role type switching solution data The ZigBee intelligent gateway network transmission function role type switching scheme data is searched according to the ZigBee network operation status analysis type number to find the ZigBee intelligent gateway network transmission function role type switching scheme data corresponding to the ZigBee network operation status analysis data and construct the ZigBee intelligent gateway network transmission function role type switching scheme analysis data. , execute and build the ZigBee intelligent gateway network transmission function role type switching solution analysis data The specific operations are as follows:
[0091] S421, initializing algorithm parameters, population size K, maximum number of iterations T;
[0092] S422, initializing the population, calculating the fitness, and determining the network transmission function role type search pathfinder and the network transmission function role type search follower;
[0093] S423, according to the position formula Data collection of the switching scheme for the transmission function role type in the ZigBee intelligent gateway network The position of the network transmission function role type search pathfinder of the ZigBee intelligent gateway network transmission function role type switching solution data corresponding to the ZigBee network operation status analysis data is updated in the search space, where t represents the current iteration number of the algorithm; Represents the network transmission function role type search pathfinder after the tth iteration Data collection of the switching scheme of the role type in the ZigBee intelligent gateway network transmission function The position in the search space, Represents the network transmission function role type search pathfinder after the t-1th iteration Data collection of the switching scheme of the role type in the ZigBee intelligent gateway network transmission function The position in the search space, Represents the network transmission function role type search pathfinder after the t+1th iteration Data collection of the switching scheme of the role type in the ZigBee intelligent gateway network transmission function The position in the search space, The step size factor for searching the pathfinder moves for the network transfer function role type, It follows a uniform distribution in [0,1];
[0094] S424, according to the position formula Update and search for the network transmission function role type search follower of the ZigBee intelligent gateway network transmission function role type switching solution data corresponding to the ZigBee network operation status analysis data in the ZigBee intelligent gateway network transmission function role type switching solution data set The position in the search space where Represents the network transmission function role type search follower after the tth iteration Data collection of the switching scheme of the role type in the ZigBee intelligent gateway network transmission function The position in the search space, Represents the network transmission function role type search follower after the t+1th iteration Data collection of the switching scheme of the role type in the ZigBee intelligent gateway network transmission function Position in the search space; Represents the other network transmission function role type search follower after the tth iteration Data collection of the switching scheme of the role type in the ZigBee intelligent gateway network transmission function Search for positions in space, network transfer function role type search for follower positions Mobile is not only about network transfer function role type search pathfinder location Related, and affected by other network transfer functions Role Type Search Follower Location The impact of Represents the network transmission function role type search follower network transmission function role type switching scheme data set in ZigBee intelligent gateway The position distance parameter in the search space, Represents the data set of the network transmission function role type switching scheme between the network transmission function role type search pathfinder and the network transmission function role type search follower in the ZigBee intelligent gateway network transmission function role type switching scheme The position distance parameter in the search space, , ; represents the interaction coefficient between the network transmission function role type search followers, It represents the attraction coefficient of the network transmission function role type search pathfinder to the network transmission function role type search follower, , All are uniformly distributed in [1,2]; The step size factor for the NTF role type search follower and the other NTF role type search follower moves, The step size factor for the network transfer function role type search follower and network transfer function role type search pathfinder moves, , All are random numbers in the range [0,1];
[0095] S425, calculate the fitness value and update the global optimal value, that is, in the ZigBee intelligent gateway network transmission function role type switching scheme data set Searching the fitness values of all ZigBee intelligent gateway network transmission function role type switching scheme data corresponding to the ZigBee network operation status analysis data in the search space according to the ZigBee network operation status analysis type number, and updating the ZigBee intelligent gateway network transmission function role type switching scheme data with the largest fitness value corresponding to the ZigBee network operation status analysis data;
[0096] S426, when the maximum number of iterations is met, output the ZigBee intelligent gateway network transmission function role type switching solution data corresponding to the ZigBee network operation status analysis data in step S425, perform data identification and construct the data as the ZigBee intelligent gateway network transmission function role type switching solution analysis data .
[0097] Through the cooperation of the ZigBee intelligent gateway network transmission function role type switching scheme storage unit and the ZigBee intelligent gateway network transmission function role type switching scheme analysis unit, the ZigBee intelligent gateway network transmission function role type switching scheme parameters are scientifically preset, and the intelligent recognition algorithm and the ZigBee network operation status analysis parameters are combined to perform a scientific analysis of the communication device role type switching scheme required for the ZigBee intelligent gateway to access the ZigBee network, so that the ZigBee intelligent gateway can adaptively identify the communication device role type required in the ZigBee network, thereby improving the intelligence and stability of the ZigBee network.
[0098] For further information, see Figure 1 - Figure 2 According to the ZigBee intelligent gateway network transmission function role type switching scheme analysis data and the ZigBee intelligent gateway network transmission function role execution program data, the execution program corresponding to the ZigBee intelligent gateway network transmission function role type is identified and processed, and the operation steps for constructing the specific execution program data of the ZigBee intelligent gateway network transmission function role are as follows:
[0099] S51, establish ZigBee intelligent gateway network transmission function role execution program data set ,in Indicates the ZigBee smart gateway network transmission function role type switching scheme data The corresponding ZigBee intelligent gateway network transmission function role execution program data is an execution program for the ZigBee intelligent gateway to switch to a ZigBee network monitoring device, and the ZigBee intelligent gateway network transmission function role execution program data represents the control program instruction data corresponding to the ZigBee intelligent gateway executing the network transmission function role switching operation according to different types of network transmission function role type switching schemes;
[0100] Indicates the ZigBee smart gateway network transmission function role type switching scheme data The corresponding ZigBee intelligent gateway network transmission function role execution program data is the execution program of the ZigBee intelligent gateway directly as a ZigBee gateway device;
[0101] Indicates the ZigBee smart gateway network transmission function role type switching scheme data The corresponding ZigBee intelligent gateway network transmission function role execution program data is the execution program for the ZigBee intelligent gateway to switch to a ZigBee wireless routing device;
[0102] Indicates the ZigBee smart gateway network transmission function role type switching scheme data The corresponding ZigBee intelligent gateway network transmission function role execution program data is the execution program for the ZigBee intelligent gateway to switch to a ZigBee network monitoring device;
[0103] S52, using KD tree nearest neighbor search algorithm to transmit function role execution program data set in ZigBee intelligent gateway network According to the ZigBee network operation status analysis type number, search for the ZigBee smart gateway network transmission function role type switching solution analysis data The matching ZigBee intelligent gateway network transmission function role execution program data is constructed into the ZigBee intelligent gateway network transmission function role specific execution program data through data identification. .
[0104] The operation steps of switching the network transmission function role of the ZigBee intelligent gateway in the ZigBee network according to the specific execution program data of the network transmission function role of the ZigBee intelligent gateway are as follows:
[0105] S61. Obtaining specific execution program data of the ZigBee intelligent gateway network transmission function role ;
[0106] S62, specific execution of program data according to the ZigBee intelligent gateway network transmission function role Execute the role switching operation of the ZigBee intelligent gateway network transmission function in the ZigBee network;
[0107] when for When the ZigBee intelligent gateway switches to become a ZigBee network monitoring device, the ZigBee intelligent gateway network transmission function role switching operation in the ZigBee network is executed;
[0108] when for When the ZigBee intelligent gateway directly acts as the execution program of the ZigBee gateway device to perform the role switching operation of the ZigBee intelligent gateway network transmission function in the ZigBee network;
[0109] when for When the ZigBee intelligent gateway switches to become a ZigBee wireless routing device, the ZigBee intelligent gateway network transmission function role switching operation in the ZigBee network is performed;
[0110] when for When the ZigBee intelligent gateway switches to become the ZigBee network monitoring device, the execution program performs the ZigBee intelligent gateway network transmission function role switching operation in the ZigBee network.
[0111] Through the cooperation of the ZigBee intelligent gateway network transmission function role intelligent execution program storage unit and the ZigBee intelligent gateway network transmission function role execution program identification unit, the standard setting of the ZigBee intelligent gateway network transmission function role execution program parameters combined with the intelligent search algorithm and the ZigBee intelligent gateway network transmission function role type switching scheme analysis parameters to search for the communication device role type switching control instructions required for the ZigBee intelligent gateway to access the ZigBee network, so that the ZigBee intelligent gateway can accurately search for the communication device role type switching control instructions required in the ZigBee network, and realize the ZigBee intelligent gateway to accurately switch multiple roles according to the ZigBee network communication requirements; the ZigBee intelligent gateway network transmission function role switching job execution unit, according to the specific execution program parameters of the ZigBee intelligent gateway network transmission function role, scientifically and efficiently classifies and executes the ZigBee intelligent gateway network transmission function role switching jobs in the ZigBee network, thereby improving the anti-interference performance and applicability of the ZigBee network.
[0112] Embodiment 2:
[0113] See also Figure 1 - Figure 2 , a ZigBee gateway device, a multi-role switching system, used to implement a ZigBee gateway device, a multi-role switching method, the system includes a ZigBee network operation status analysis module, a ZigBee intelligent gateway network transmission function role type evaluation module, and a ZigBee intelligent gateway network transmission function role switching execution module;
[0114] The ZigBee network operation status analysis module includes a ZigBee gateway device network output port signal acquisition unit, a ZigBee wireless routing device network output port signal acquisition unit, a ZigBee network device output port signal preprocessing unit, and a ZigBee network operation status analysis unit;
[0115] A ZigBee gateway device network output port signal acquisition unit, which acquires ZigBee gateway device network output port signal data through a gateway interface signal acquisition device; a ZigBee wireless router device network output port signal acquisition unit, which acquires ZigBee wireless router device network output port signal data through a router communication interface signal acquisition device; a ZigBee network device output port signal preprocessing unit, which performs data preprocessing on the ZigBee network communication device output port signal, and generates standard ZigBee gateway device network output port signal data and standard ZigBee wireless router device network output port signal data; a ZigBee network operation status analysis unit, which performs ZigBee network operation status analysis and processing based on the standard ZigBee gateway device network output port signal data and the standard ZigBee wireless router device network output port signal data, and generates ZigBee network operation status analysis data;
[0116] The ZigBee intelligent gateway network transmission function role type evaluation module includes a ZigBee intelligent gateway network transmission function role type switching scheme storage unit, a ZigBee intelligent gateway network transmission function role type switching scheme analysis unit, and a ZigBee intelligent gateway network transmission function role type switching scheme output unit;
[0117] The ZigBee intelligent gateway network transmission function role type switching scheme storage unit is used to store the ZigBee intelligent gateway network transmission function role type switching scheme data; the ZigBee intelligent gateway network transmission function role type switching scheme analysis unit performs the ZigBee intelligent gateway network transmission function role type analysis and processing required for the ZigBee network operation according to the ZigBee network operation status analysis data and the ZigBee intelligent gateway network transmission function role type switching scheme data, and constructs the ZigBee intelligent gateway network transmission function role type switching scheme analysis data; the ZigBee intelligent gateway network transmission function role type switching scheme output unit is used to output the ZigBee intelligent gateway network transmission function role type switching scheme analysis data;
[0118] The ZigBee intelligent gateway network transmission function role switching execution module includes a ZigBee intelligent gateway network transmission function role intelligent execution program storage unit, a ZigBee intelligent gateway network transmission function role execution program identification unit, and a ZigBee intelligent gateway network transmission function role switching job execution unit;
[0119] The ZigBee intelligent gateway network transmission function role intelligent execution program storage unit is used to store the ZigBee intelligent gateway network transmission function role execution program data; the ZigBee intelligent gateway network transmission function role execution program identification unit performs execution program identification processing corresponding to the ZigBee intelligent gateway network transmission function role type according to the ZigBee intelligent gateway network transmission function role type switching scheme analysis data and the ZigBee intelligent gateway network transmission function role execution program data, and constructs the ZigBee intelligent gateway network transmission function role specific execution program data; the ZigBee intelligent gateway network transmission function role switching operation execution unit executes the ZigBee intelligent gateway network transmission function role switching operation in the ZigBee network according to the ZigBee intelligent gateway network transmission function role specific execution program data.
[0120] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A multi-role switching method, characterized in that: The method comprises the following steps: S1, collecting the network output port signal data of the ZigBee gateway device and the network output port signal data of the ZigBee wireless routing device; S2, preprocessing the data of the output port signal of the communication device of the ZigBee network to generate standard ZigBee gateway device network output port signal data and standard ZigBee wireless routing device network output port signal data; S3, performing ZigBee network operation status analysis and processing based on the standard ZigBee gateway device network output port signal data and the standard ZigBee wireless routing device network output port signal data, and generating ZigBee network operation status analysis data; S4, performing analysis and processing of the ZigBee intelligent gateway network transmission function role type required for ZigBee network operation according to the ZigBee network operation status analysis data and the ZigBee intelligent gateway network transmission function role type switching scheme data, and constructing ZigBee intelligent gateway network transmission function role type switching scheme analysis data; S5, performing identification processing of the execution program corresponding to the ZigBee intelligent gateway network transmission function role type according to the ZigBee intelligent gateway network transmission function role type switching scheme analysis data and the ZigBee intelligent gateway network transmission function role execution program data, and constructing the specific execution program data of the ZigBee intelligent gateway network transmission function role; S6. Execute a ZigBee intelligent gateway network transmission function role switching operation in the ZigBee network according to the ZigBee intelligent gateway network transmission function role specific execution program data.
2. A multi-role switching method according to claim 1, characterized in that: The S1 comprises the following steps: S11, collecting signal parameters of the network output port of the ZigBee gateway device in the ZigBee network online through the gateway interface signal collection device and generating signal data of the network output port of the ZigBee gateway device ; The signal acquisition device of the router communication interface collects the signal parameters of the network output port of the ZigBee wireless routing device in the ZigBee network online and generates the signal data of the network output port of the ZigBee wireless routing device .
3. A multi-role switching method according to claim 2, characterized in that: The S2 comprises the following steps: S21, using an adaptive filtering method to filter the ZigBee gateway device network output port signal data and the ZigBee wireless routing device network output port signal data Perform noise reduction preprocessing on the network output port signal data and generate standard ZigBee gateway device network output port signal data And standard ZigBee wireless routing device network output port signal data .
4. A multi-role switching method according to claim 3, characterized in that: The S3 comprises the following steps: S31, obtaining the standard ZigBee gateway device network output port signal data And the standard ZigBee wireless routing device network output port signal data ; S32, output port signal data according to the standard ZigBee gateway device network And the standard ZigBee wireless routing device network output port signal data The signal data status corresponding to the network output port signal data of the ZigBee gateway device and the ZigBee wireless routing device is judged respectively, and the ZigBee network operation status analysis data set is generated according to the judgment result of the data status ,in Represents the standard ZigBee gateway device network output port signal data The signal data state is a non-empty set and the standard ZigBee wireless routing device network output port signal data The signal data state is a non-empty set, and the corresponding ZigBee network operation status analysis data is that the ZigBee gateway device and the ZigBee wireless routing device are communicating normally; in Represents the standard ZigBee gateway device network output port signal data The signal data state is an empty set and the standard ZigBee wireless routing device network output port signal data The signal data state is a non-empty set, and the corresponding ZigBee network operation status analysis data is that the ZigBee gateway device communication fails and the ZigBee wireless routing device communication is normal; in Represents the standard ZigBee gateway device network output port signal data The signal data state is a non-empty set and the standard ZigBee wireless routing device network output port signal data The signal data state is an empty set, and the corresponding ZigBee network operation status analysis data is that the ZigBee gateway device communication is normal and the ZigBee wireless routing device communication is faulty; in Represents the standard ZigBee gateway device network output port signal data The signal data state is an empty set and the standard ZigBee wireless routing device network output port signal data The signal data state is an empty set, and the corresponding ZigBee network operation status analysis data is that both the ZigBee gateway device and the ZigBee wireless routing device have communication failures.
5. A multi-role switching method according to claim 4, characterized in that: The S4 comprises the following steps: S41. Establishing a ZigBee intelligent gateway network transmission function role type switching scheme data set ,in Indicates ZigBee network operation status analysis data The corresponding ZigBee intelligent gateway network transmission function role type switching solution data is that the ZigBee intelligent gateway switches to become a ZigBee network monitoring device; Indicates ZigBee network operation status analysis data The corresponding ZigBee intelligent gateway network transmission function role type switching scheme data is that the ZigBee intelligent gateway directly serves as a ZigBee gateway device; Indicates ZigBee network operation status analysis data The corresponding ZigBee intelligent gateway network transmission function role type switching solution data is that the ZigBee intelligent gateway switches to a ZigBee wireless routing device; Indicates ZigBee network operation status analysis data The corresponding ZigBee intelligent gateway network transmission function role type switching solution data is that the ZigBee intelligent gateway switches to become a ZigBee network monitoring device; S42, combining the ZigBee network operation status analysis data with the ZigBee intelligent gateway network transmission function role type switching solution data The ZigBee intelligent gateway network transmission function role type switching scheme data is searched according to the ZigBee network operation status analysis type number to find the ZigBee intelligent gateway network transmission function role type switching scheme data corresponding to the ZigBee network operation status analysis data and construct the ZigBee intelligent gateway network transmission function role type switching scheme analysis data , execute and build the ZigBee intelligent gateway network transmission function role type switching solution analysis data The specific operations are as follows: S421, initializing algorithm parameters, population size K, maximum number of iterations T; S422, initializing the population, calculating the fitness, and determining the network transmission function role type search pathfinder and the network transmission function role type search follower; S423: Performing a data collection of a switching scheme for a transmission function role type in a ZigBee intelligent gateway network Update the position of the network transmission function role type search pathfinder of the ZigBee intelligent gateway network transmission function role type switching solution data corresponding to the ZigBee network operation status analysis data in the search space; S424, update and search for the network transmission function role type search follower of the ZigBee intelligent gateway network transmission function role type switching solution data corresponding to the ZigBee network operation status analysis data in the ZigBee intelligent gateway network transmission function role type switching solution data set Position in the search space; S425, calculate the fitness value and update the global optimal value, that is, in the ZigBee intelligent gateway network transmission function role type switching scheme data set Searching the fitness values of all the ZigBee intelligent gateway network transmission function role type switching scheme data corresponding to the ZigBee network operation status analysis data in the search space according to the ZigBee network operation status analysis type number, and updating the ZigBee intelligent gateway network transmission function role type switching scheme data with the largest fitness value corresponding to the ZigBee network operation status analysis data; S426, when the maximum number of iterations is met, output the ZigBee intelligent gateway network transmission function role type switching solution data corresponding to the ZigBee network operation status analysis data searched out in step S425, and constructed the data identification as the ZigBee intelligent gateway network transmission function role type switching solution analysis data .
6. A multi-role switching method according to claim 5, characterized in that: The S5 comprises the following steps: S51, establish ZigBee intelligent gateway network transmission function role execution program data set ,in Indicates the ZigBee smart gateway network transmission function role type switching scheme data The corresponding ZigBee intelligent gateway network transmission function role execution program data is an execution program for the ZigBee intelligent gateway to switch to a ZigBee network monitoring device, and the ZigBee intelligent gateway network transmission function role execution program data represents the control program instruction data corresponding to the ZigBee intelligent gateway executing the network transmission function role switching operation according to different types of network transmission function role type switching schemes; Indicates the ZigBee smart gateway network transmission function role type switching scheme data The corresponding ZigBee intelligent gateway network transmission function role execution program data is the execution program of the ZigBee intelligent gateway directly as a ZigBee gateway device; Indicates the ZigBee smart gateway network transmission function role type switching scheme data The corresponding ZigBee intelligent gateway network transmission function role execution program data is the execution program for the ZigBee intelligent gateway to switch to a ZigBee wireless routing device; Indicates the ZigBee smart gateway network transmission function role type switching scheme data The corresponding ZigBee intelligent gateway network transmission function role execution program data is the execution program for the ZigBee intelligent gateway to switch to a ZigBee network monitoring device; S52, using the KD tree nearest neighbor search algorithm to transmit the function role execution program data set in the ZigBee intelligent gateway network According to the ZigBee network operation status analysis type number, the switching scheme analysis data of the ZigBee intelligent gateway network transmission function role type is searched out. The matching ZigBee intelligent gateway network transmission function role execution program data is constructed into ZigBee intelligent gateway network transmission function role specific execution program data through data identification. .
7. A multi-role switching method according to claim 6, characterized in that: The S6 comprises the following steps: S61, obtaining the specific execution program data of the ZigBee intelligent gateway network transmission function role ; S62: Execute program data according to the ZigBee intelligent gateway network transmission function role Execute the role switching operation of the ZigBee intelligent gateway network transmission function in the ZigBee network; when for When the ZigBee intelligent gateway switches to become a ZigBee network monitoring device, the ZigBee intelligent gateway network transmission function role switching operation in the ZigBee network is executed; when for When the ZigBee intelligent gateway directly acts as the execution program of the ZigBee gateway device to perform the role switching operation of the ZigBee intelligent gateway network transmission function in the ZigBee network; when for When the ZigBee intelligent gateway switches to become a ZigBee wireless routing device, the ZigBee intelligent gateway network transmission function role switching operation in the ZigBee network is performed; when for When the ZigBee intelligent gateway switches to become the ZigBee network monitoring device, the execution program performs the ZigBee intelligent gateway network transmission function role switching operation in the ZigBee network.
8. A multi-role switching system, used to implement a multi-role switching method as claimed in any one of claims 1 to 7, characterized in that: The system comprises a ZigBee network operation status analysis module, a ZigBee intelligent gateway network transmission function role type evaluation module, and a ZigBee intelligent gateway network transmission function role switching execution module.
