CN114630361A - Zigbee wireless communication analysis system based on imaging - Google Patents

Zigbee wireless communication analysis system based on imaging Download PDF

Info

Publication number
CN114630361A
CN114630361A CN202210246753.5A CN202210246753A CN114630361A CN 114630361 A CN114630361 A CN 114630361A CN 202210246753 A CN202210246753 A CN 202210246753A CN 114630361 A CN114630361 A CN 114630361A
Authority
CN
China
Prior art keywords
data
equipment
neighbor
analysis
zigbee
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210246753.5A
Other languages
Chinese (zh)
Inventor
谢绍兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Raying Iot Technology Co ltd
Original Assignee
Zhejiang Raying Iot Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Raying Iot Technology Co ltd filed Critical Zhejiang Raying Iot Technology Co ltd
Priority to CN202210246753.5A priority Critical patent/CN114630361A/en
Publication of CN114630361A publication Critical patent/CN114630361A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/18Complex mathematical operations for evaluating statistical data, e.g. average values, frequency distributions, probability functions, regression analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Mathematical Physics (AREA)
  • Mathematical Analysis (AREA)
  • Computational Mathematics (AREA)
  • Pure & Applied Mathematics (AREA)
  • Mathematical Optimization (AREA)
  • Probability & Statistics with Applications (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Operations Research (AREA)
  • Evolutionary Biology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Algebra (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to a Zigbee wireless communication analysis system based on imaging, which comprises an equipment management module, an analysis operation module and a topology analysis module; the equipment management module is used for comprehensively managing all equipment participating in the communication test, providing basic service data for the state statistics and analysis module and calibrating the position of the equipment; the analysis operation module is used for carrying out various test operations on the equipment and acquiring corresponding data to provide data for the statistics and analysis module; the topology analysis module is used for judging the communication quality of the Zigbee equipment according to the relationship among various network topology elements in the network topology map by establishing the network topology map. The invention has the advantages that: the user can easily and efficiently analyze the wireless communication quality without professional knowledge of the related wireless communication.

Description

Zigbee wireless communication analysis system based on imaging
Technical Field
The invention relates to the technical field of communication equipment testing, in particular to a Zigbee wireless communication analysis system based on imaging.
Background
Currently, all large Zigbee chip source plants on the market can provide Zigbee wireless communication debugging tools, and these tools can meet most development and debugging requirements of development engineers, but obviously have the following defects and shortcomings: 1. focusing substantially only on the debugging and display of wireless communication protocol data; 2. the method does not have a statistical analysis function, particularly a topology analysis function of a Zigbee wireless network; 3. part of tools have statistical power scores, but are extremely simple and have extremely poor practicability; 4. the test equipment cannot be simply and intuitively managed; 5. the operation and use are very complicated, and the requirement of users on professionalism is very high.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, provides a Zigbee wireless communication analysis system based on imaging, and solves the defects of the existing Zigbee wireless communication debugging tool.
The purpose of the invention is realized by the following technical scheme: the Zigbee wireless communication analysis system based on the imaging comprises an equipment management module, an analysis operation module, a statistic and analysis module, a topology analysis module and an event query module; the equipment management module is used for comprehensively managing all equipment participating in the communication test, providing basic service data for the state statistics and analysis module and calibrating the position of the equipment; the analysis operation module is used for carrying out various test operations on the equipment and acquiring corresponding data to provide data for the statistics and analysis module; the state statistics and analysis module is used for analyzing whether data are reported in a fixed time to determine whether the equipment is on-line or off-line, and analyzing continuous multi-turn data to obtain a state change trend; analyzing the single device in different data sending modes; the topology analysis module is used for judging the communication quality of the Zigbee equipment according to the relationship among various network topology elements in the network topology map by establishing the network topology map; the event query module is used for querying all events or designated events of all devices or designated devices in any time period.
The statistic and analysis module comprises a state statistic and analysis unit, a polling statistic and analysis unit, a broadcast statistic and analysis unit and a multicast statistic and analysis unit;
the state counting and analyzing unit is used for analyzing whether data are reported in fixed time to determine whether the equipment is on-line or off-line, and analyzing continuous multi-turn data to obtain a state change trend;
the polling counting and analyzing unit is used for analyzing the communication quality of data generated by the single equipment in an on-demand mode, and counting and analyzing according to the polling data to obtain the communication success rate and the communication failure rate of the equipment in a long-time operation device and the response time length;
the broadcast counting and analyzing unit is used for analyzing the communication quality of data generated by a single device in a broadcast mode, and counting and analyzing according to the polling data to obtain the communication success rate and the communication failure rate of the device in a long-time operation device and the response time length;
the multicast counting and analyzing unit is used for analyzing the communication quality of data generated by the single device in a multicast mode, and counting and analyzing according to the polling data to obtain the communication success rate and the communication failure rate of the device in long-time operation and the response duration.
The analysis process of the topology analysis module comprises the following steps:
collecting source data: collecting three types of source data of neighbor data, routing data and child node data for topology analysis through resetting data or reading data in a complementary mode; the neighbor data comprises a device address, a neighbor address and signal quality and is used for describing neighbor information of the device; the routing belongs to the next hop information that the data of the data description equipment reaches the Zigbee gateway path; the sub-node data comprises an equipment address, a sub-node address and signal quality, is mounted under Zigbee routing equipment with a data forwarding function, and does not have the data forwarding function;
and (3) calculating a topological relation: caching the collected neighbor data and child node data to form a complete neighbor and child node table, indexing the neighbor and child node table according to the equipment address, and calculating the neighbor, calculating the child node and calculating the route in sequence;
drawing a topological graph: and according to the calculated neighbors, child nodes and routes of all the devices, sequentially performing neighbor relation drawing, child node relation drawing and route relation drawing to obtain a network topology map.
The specific content of the topological relation calculation includes:
and (3) calculating the neighbors: searching all neighbors in a neighbor table according to the equipment address, if one piece of neighbor data is searched, indicating that the equipment represented by the neighbor address in the data is one neighbor of the current equipment, namely a one-way neighbor relation, then searching all the neighbors again in the neighbor table by using the neighbor address, and if the current equipment exists in the neighbors, enabling the two equipment to be neighbors of each other;
calculating a child node: searching all child nodes in the byte table according to the equipment addresses, and finding out all child node data, wherein the equipment represented by the child node addresses in the child node data is the child nodes;
and (3) calculating a route: searching a first neighbor in a neighbor table according to the address of the equipment, if the first neighbor is not searched, indicating that the current equipment has no route, if the first neighbor is searched, using the neighbor as a node in the route, recording the address, then repeatedly searching and recording the address of the neighbor until the found neighbor is a Zigbee gateway, and routing to a terminal point to be an effective route, in the process, if the newly found neighbor appears in the previously recorded address, forming a loop in the route, and determining the route to be an invalid route.
The specific contents of the drawing topological graph are as follows:
and (3) drawing a neighbor relation: if the Zigbee routing device 2 is a neighbor of the Zigbee routing device 1, a first line segment is drawn from the central position of the Zigbee routing device 1 to the midpoint between the Zigbee routing device 1 and the Zigbee routing device 2, and a second line segment is drawn from the midpoint between the Zigbee routing device 1 and the Zigbee routing device 2 to the central position of the Zigbee routing device 2; if the Zigbee routing device 1 and the Zigbee routing device 2 are neighbors of each other, the central positions of the two Zigbee routing devices are both drawn by a first line segment;
and (3) drawing a child node relation: if the Zigbee terminal device is a child node of the Zigbee routing device, a second line segment is drawn from the first device center location to the second device center location;
and (3) drawing a routing relation: and connecting the central positions of the Zigbee routing equipment or the Zigbee terminal equipment and the central positions of all routing nodes in sequence by using a third line segment, drawing a rectangle between the two nodes, and indicating the sequence number of the hop count in the middle of the rectangle.
The analysis operation module comprises polling operation, broadcasting operation and multicasting operation; the polling operation is used for sending unicast commands according to a certain time interval by one device, and visually analyzing whether the state of a single device is stable and whether the communication quality is good or not through polling analysis; the broadcast operation is used for sending broadcast commands to all equipment according to a certain time, and whether the communication quality of the whole Zigbee network is good under the condition of a large amount of wireless communication is visually analyzed through broadcast analysis; the multicast operation is used for sending a multicast command to all the devices according to a certain time, and whether the communication quality of the whole Zigbee network is good under the condition of a large amount of wireless communication is visually analyzed through multicast analysis.
The invention has the following advantages:
1. the user does not need the professional knowledge and skill of ZigBee, and basically sets up a statistical analysis task only through simple selection and a small amount of input, then the system can automatically run for a long time without interruption, and automatically stores the analysis result generated in the running period. In addition, based on the statistical analysis of the device plan, the results of the statistical analysis are clear at a glance.
2. The device is managed based on the floor plan. And calibrating the position of the equipment by dragging the mouse and the direction keys. The device location coordinates are expressed in terms of aspect ratios, and therefore, the device plan supports zooming in and out. Due to the introduction of the plan, the actual position of the equipment is displayed very intuitively, so that the analysis of the system becomes extremely intuitive, particularly the topology analysis of the ZigBee wireless network.
3. Provides rich statistical analysis indexes, mainly comprising: online rate: if the equipment has data to report in a heartbeat cycle (namely a polling turn interval), the equipment is online, and the online rate refers to the proportion of the ZigBee equipment in an online state. Off-line rate: if no data is reported in the heartbeat cycle (i.e. polling turn interval), the device is offline, and the offline rate refers to the proportion of the ZigBee device in an offline state. Success rate: the tool receives response data of the device to the control command issued by the tool, and the success rate is the proportion of the success times of controlling the ZigBee device. Failure rate: and the tool does not receive response data of the control command issued by the equipment to the tool in a polling period, and the failure rate is the proportion of failure times of controlling the ZigBee equipment. Minimum response time length: the number of milliseconds used by the ZigBee device to respond the fastest to control commands. Maximum response time length: the number of milliseconds it takes for the ZigBee device to respond the slowest to the control command. Average response time length: the average of the number of milliseconds used by the ZigBee device to respond to the control command.
4. A rich presentation mode is provided for the statistical analysis result, and the method mainly comprises the following steps: summary table: the summary data is presented in the form of a data table. The detailed table is as follows: and displaying the control failure data and the control non-response data in detail in the form of a data table. Excel file: all data sheets can be exported as Excel files. A statistical chart is as follows: the change condition and trend of each statistical index are visually shown by a curve graph according to the sequence of the statistical analysis, a certain statistical index can be independently displayed in the statistical graph, and a plurality of statistical indexes can also be displayed in a comparison mode. The statistical map is one of the most practical functions of the tool.
5. The reason that the communication quality of some areas of some equipment in the network is not high can be easily found; supporting the enlargement and reduction of the topological graph; the topology elements can be displayed integrally or in a single device; and for the equipment at the dense line segment, dragging the equipment to the sparse line segment by using a mouse to clearly display the equipment. The network topology analysis imaging is the most distinctive and creative function of the tool.
6. All the statistical analysis data are historically filed in the database, and any one of the previous statistical analysis can be traced and inquired.
Drawings
FIG. 1 is a schematic diagram of the location calibration of the apparatus;
FIG. 2 is a topological diagram drawing effect diagram;
FIG. 3 is a schematic view of a topology analysis interface;
FIG. 4 is a schematic representation of the topology in single mode;
FIG. 5 is a topological diagram of a single mode with background removed;
FIG. 6 is a schematic representation of the topology in the magnification mode;
FIG. 7 is a diagram of the topology after magnification and clear background.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the detailed description of the embodiments of the present application provided below in connection with the appended drawings is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application. The invention is further described below with reference to the accompanying drawings.
The invention adopts a hierarchical structure to construct a system, the overall structure is divided into three layers of an equipment layer, an application layer and a data layer, and the main functions of each layer are as follows:
equipment layer: the ZigBee wireless network testing tool specifically comprises a ZigBee gateway and various ZigBee devices, the ZigBee wireless network is formed by the ZigBee gateway and the ZigBee devices, and an analysis object of the tool testing is communication data in the network. The ZigBee gateway receives various equipment operation command communication data issued by the application layer and forwards the data to related ZigBee equipment in the ZigBee network, and meanwhile, various state communication data reported by the ZigBee equipment are collected and uploaded to the application layer.
An application layer: the physical form is a Windows application program and is realized by adopting C #. Net and WinForm technologies. The application layer is the core part of the tool and realizes various statistical analysis service functions. And real-time bidirectional data interaction is realized between the ZigBee gateways of the application layer and the equipment layer by adopting the TCP, so that the real-time performance and the correctness of statistical analysis data are ensured. In addition, the application layer also interacts with the data layer to realize the continuous storage of the statistical analysis result.
And (3) a data layer: the MS SQL Server 2018 database system is adopted, and by means of the powerful functions of the database system, stable and efficient data access service is provided for long-time uninterrupted operation of statistical analysis of the tool, and data are provided for later-stage data query and display. And the data layer and the application layer carry out data interaction through the Sqlclient.
The invention specifically comprises the following steps:
equipment management: the device management is a basic function of the invention, and although the device management does not have an analysis statistical function, the device management provides basic service data for subsequent statistical analysis, particularly the calibration of the device position, and a plan view of the device can be established through the calibration of the device position, so that the graphical analysis is realized.
The equipment management carries out comprehensive management on all the equipment participating in the communication test, such as adding, modifying, deleting, position calibrating, clearing and the like of the equipment, wherein the equipment adding supports automatic adding according to the equipment information data reported by the ZigBee gateway, and manual adding by one user is not needed.
As shown in fig. 1, the calibration position is the most important function in the device management, and is a premise and a basis for implementing analysis and graphics. The method for calibrating the position of the ZigBee device in the wireless network in the plan view comprises the following steps:
first, the point < reselect floor > button brings up the floor plan.
Secondly, any one device in the right device list is clicked by a mouse, and then a mouse is clicked at the corresponding position in the plan view, so that the device icons appear in the plan view, wherein the following three device icons are arranged in the plan view:
square: represents a ZigBee gateway (i.e., Coo);
and (3) circular: the routing device represents a ZigBee routing device (namely, a Router, which is abbreviated as R and can provide routing support for prompting message forwarding of other devices);
triangle: representing ZigBee terminal devices (i.e. Zed, abbreviated as Z, such devices as child nodes need to have a ZigBee routing device as a parent node to communicate).
And according to the operation, the positions of all the ZigBee devices are calibrated to obtain a complete device plan for subsequent analysis.
Finally, any one of the devices is clicked on the plan view by using a mouse, and the position of the device can be adjusted by dragging the mouse or pressing a direction key.
When the tool represents the position of the equipment in the plan view, absolute coordinates are not adopted, but a proportion method is adopted, and the specific implementation is as follows:
and when the X coordinate is to be displayed, multiplying the ratio by the current width of the plan view to obtain the true value of the X coordinate.
And when the Y coordinate is displayed, multiplying the ratio by the current height of the plane graph to obtain the true value of the X coordinate.
The proportion method is adopted for representation, so that when the system is used for analyzing and the plan view is enlarged or reduced, the relative position of the equipment in the plan view can be ensured not to be changed, and the analysis is convenient.
And (3) analysis operation: three test operations on the device are implemented in the analysis operation to obtain communication data generated by the operations, and source data is provided for subsequent statistical analysis.
During the analysis operation, the tool automatically collects the data of all the transmitted commands and the response data of the ZigBee device to the commands, and the communication quality of the whole ZigBee wireless communication can be intuitively reflected through the analysis result of the data generated by the three operations.
And (3) polling operation: the unicast commands are sent by the equipment one by one according to a certain time interval, and the polling analysis can visually analyze whether the state of the single equipment is stable and the communication quality is good.
And (3) broadcasting operation: all the devices send broadcast commands according to a certain time, and the broadcast analysis can visually analyze whether the communication quality of the whole ZigBee network is good under the condition of a large amount of wireless communication.
Multicast operation: the multicast commands are sent to all the devices according to a certain time, and the multicast analysis can visually analyze whether the communication quality of the whole ZigBee network is good under the condition of a large amount of wireless communication, and only the device addressing is carried out according to the groups.
All three operations are simply set for operation names, operation intervals, operation times and participated operation equipment. After the operation setting is finished, the system automatically runs and can be unattended until the operation is finished or the operation is finished manually. The total number of devices, the number of devices offline, the rate offline, and the communication diagram (i.e., the arrow lines from Router, Zed, to Coo, the same below) are dynamically displayed in the interface. In addition, in the analysis operation interface, function buttons for all analysis operations are provided so that the user can conveniently use the functions.
And (3) state statistical analysis: the state of the equipment refers to the online state or the offline state of the equipment, the ZigBee equipment is in wireless communication, although no long-connection equipment has the online state or the offline state, the ZigBee equipment has a heartbeat mechanism and command response capability, so that the tool determines whether the equipment is online or offline by analyzing whether the equipment has data report in a heartbeat cycle (namely polling round interval) or not, and the tool can analyze continuous multiple rounds of data, thereby obtaining the state change trend. The state is the basis of communication analysis, and basic indexes such as the online number, the offline number, the online rate, the offline rate and the like of the equipment and changes of the basic indexes are obtained through statistical analysis, so that the most basic quality condition of ZigBee wireless communication is visually displayed.
Clicking a < state analysis > button in the analysis operation main interface can perform statistical analysis of the state, and the method specifically comprises the following steps:
the offline times are counted according to the equipment, and the offline times are arranged in a descending order from large to small, namely the equipment with the largest offline occurrence times is arranged at the top, and in addition, the offline detail data of a specific equipment can be browsed. All statistical table data can be exported as Excel files. And counting the online number, the offline number, the online rate and the offline rate of all the equipment according to the counting time points. In addition, the state detail data of all the devices at a specific statistical time point can be browsed. All statistical table data can be exported as Excel files. And counting the online rate and the offline rate of all the equipment according to the counting time points, displaying in a curve statistical chart mode, and clearly seeing the state change condition of the equipment through the statistical chart.
Polling statistics and analysis: the polling statistics and analysis is to analyze the communication quality of a single device, and the polling statistics and analysis are performed according to polling data to obtain indexes such as communication success rate, failure rate, various response durations and the like of the device in a long-time operation period, and specific explanations of the indexes are described in the foregoing.
The operation of polling statistics and analysis is very simple, and the statistical analysis can be performed by clicking a < polling analysis > button and a < polling statistics > button in the analysis operation main interface, which specifically includes: the total polling times, the total failure times and the failure rate are counted according to the equipment, and are arranged in descending order from large to small according to the failure rate, namely the equipment with the maximum failure rate is arranged at the top, and in addition, the polling failure detail data of a specific equipment can be browsed. All statistical table data can be exported as Excel files.
And counting the total number of all the devices, the average response time, the minimum response time, the maximum response time and the success rate according to the counting time points. In addition, polling detail data of all devices at a specific statistical time point can be browsed. All statistical table data can be exported as Excel files. And counting the average response time, the minimum response time, the maximum response time and the success rate of all the devices according to the counting time points, displaying the average response time, the minimum response time, the maximum response time and the success rate in a curve statistical chart mode, and clearly seeing the change situation of the polling efficiency of the devices through the statistical chart. In addition, each statistical analysis index may be fully, partially, or individually presented in the statistical map. All polling data of each device are counted to obtain the success rate of the polling data, and then the success rate is marked in a device plan, so that the areas with the worst communication quality (namely the areas with the lowest power) can be visually analyzed.
Broadcast statistics and analysis: the broadcast statistics and analysis are the same as the polling statistics and analysis, but the data transmission mode is different, the broadcast statistics and analysis adopt data generated by broadcasting, and the polling statistics and analysis adopt data generated by on-demand, so that the description is not repeated. The broadcast statistics and analysis mainly aim at the communication quality analysis of the ZigBee network under the condition of mass data communication.
Multicast statistics and analysis: the multicast statistics and analysis are the same as the polling statistics and analysis, but the data transmission mode is different, the multicast statistics and analysis adopt the data generated by multicast, and the polling statistics and analysis adopt the data generated by on-demand, so that the description is not repeated. The multicast statistics and analysis mainly aim at the communication quality analysis of the ZigBee network under the condition of mass data communication.
Topology analysis: the implementation process of the topology analysis comprises the following steps:
the method comprises the following steps: collecting source data;
the operator clicks the < reset data > or < complement data > with a mouse in the topology analysis interface to trigger the start of collecting the latest network diagnostic data, which is the source data for performing the topology analysis. < reset data > indicates that all the source data is collected again, and the process takes different time depending on the number of devices. And the complementary data is collected again for the device which does not report the source data, when the number of the devices is large, if the devices do not collect completely at one time, the function can be used for quickly and completely collecting the source data. There are three types of source data: neighbor data, routing data, and child node data.
Neighbor data: describing the neighbor information of the device, one piece of neighbor data comprises data items such as device address, neighbor address, signal quality and the like, and one device can have a plurality of pieces of neighbor data.
Routing data: the next hop information describing the arrival of the data of the device in the Coo path is that for the same device, only one neighbor data subset of the routing data is provided, and the device selects a neighbor with the optimal communication quality as a routing node according to the signal quality and places the neighbor as the forefront of the neighbor data, so that the routing data of a certain device is the first neighbor data.
Child node data: a device with a data forwarding function (i.e. Router device) is used as a parent node, a device without a data forwarding function (i.e. Zed dormant device) hung below the device is used as a child node, and data of the child node is forwarded through the parent node. A father node can hang a plurality of child nodes, and a piece of child node data comprises a device address, a child node address and signal quality.
Step two: calculating a topological relation;
the calculation of topological relation is the core function of the whole topological analysis, and the statistical analysis is carried out based on the collected source data, and the specific calculation method is as follows:
firstly, the collected neighbor data and child node data are cached to form a complete neighbor table and a complete child node table, the two tables are indexed according to the equipment address, and the cache and the index can greatly improve the calculation speed. And then calculating neighbors, calculating child nodes and calculating routes respectively.
And (3) calculating the neighbors: searching all the neighbors in the neighbor table according to the equipment address, if one piece of neighbor data is searched, indicating that the equipment represented by the neighbor address in the data is one neighbor of the current equipment (namely, one-way neighbor relation), then searching all the neighbors in the neighbor table again according to the neighbor address, and if the current equipment is arranged in the neighbor table, enabling the two equipments to be neighbors of each other.
Calculating a child node: and searching all child nodes in the child node table according to the device address, and searching all child node data, wherein the device represented by the child node address in the child node data is the child node.
And (3) calculating a route: searching a first neighbor in the neighbor table according to the equipment address, and if the first neighbor is not searched, indicating that the current equipment has no route; if the neighbor is found, the neighbor is used as a node in the route, the address of the node is recorded, the searching, the recording and the like are repeated by using the address of the neighbor until the found neighbor is Coo, the node is routed to the end point and is a valid route, and in the process, if the newly found neighbor appears in the previously recorded address, a loop is formed in the route, and the route is an invalid route. In the process of calculating the routing, the number of the routing nodes such as the hop number is also calculated, the number of the routing nodes such as the hop number is reduced by 1, and if a certain device has 5 routing nodes, the hop number is 4.
Step three: drawing a topological graph;
after the tool calculates the neighbors, child nodes and routing nodes of all the devices, a network topology graph is automatically drawn. Firstly, calculating a coordinate position in an equipment plan according to a calibrated equipment proportion position, the length and the height of the plan at the time, then drawing an equipment icon according to the coordinate position, wherein the specific shape and the style of the equipment icon are as described above, the center position of the equipment icon is calculated when the equipment icon is drawn, and the coordinates of the center positions draw the starting and stopping positions of topological relation line segments in the topological graph. If the device has no relation with other devices (such as neighbors, parent-child subordinates) and is an isolated point in the topological graph, the device icon also generates a flashing motion graph effect, so that the problem node device can be clear at a glance. Next, a topological relation is drawn, and a specific drawing method is as follows:
and (3) drawing a neighbor relation: if the R1 device is a neighbor of the device R, a real line segment is drawn from the center of R, and when half of the line segment is drawn, the remaining half of the line segment is drawn as a dotted line segment (i.e., the width is only one third of the thick line segment), so that the relationship between them can be easily distinguished. If device R1 and device R2 are neighbors of each other, then a solid line segment is drawn from the center of R1 to the center of R2. Where R, R1 and R2 both represent Router devices, and R1 and R2 represent different individuals of the Router device class.
And (3) drawing a child node relation: if device Z is a child of device R, a dashed line segment is drawn from the center position of R1 to the center position of R2, and since the child node device Z icon is different from the neighbor device icon, it is easy to distinguish between neighbor relationships. Note that: z represents a Zed device.
And (3) drawing a routing relation: the center position of a certain device (Router device or Zed device) and the center positions of all routing nodes are connected in sequence by a thick solid line segment, a rectangle is drawn between the two nodes, the sequence number of the hop count is marked in the middle of the rectangle, and if 1 represents the first hop, 3 represents the 3 rd hop.
After the topological graph of the ZigBee wireless network is drawn, the effect graph is shown in FIG. 2, and the topological graph can be visually judged, if the solid line is dense, the device has more neighbors, and a plurality of devices can monitor wireless information mutually, so that surplus alternative routes can be selected, and the high success rate of wireless communication is ensured.
In the topological graph, if the equipment has a lot of data and is densely deployed, the network topological graph calculated and drawn by the topology is very dense and complicated, and the analysis is influenced. However, the problem can be solved after multi-stage amplification, and in addition, the figure is huge, so that only a few elements are involved, and the overall display is concise. The description of each element is shown in the following table:
Figure BDA0003545040420000111
as shown in fig. 3, the following relevant data is shown on the right side of the network topology:
device list: the routing hop counts are displayed in the list, the routing hop counts can be sorted according to the clicking routing hop count table head, and if the routing fails or no routing exists (namely 0 hop), the routing is displayed as dark grey background and yellow characters;
the self-owned neighbors: all neighbors of the device and the last communication signal of the device are strong; .
It has neighbors: the device itself is used as the device to which the other device neighbors belong and the final communication signal intensity thereof;
and (3) child nodes: all of the child nodes of the device itself and their final communication signal strengths.
As shown in fig. 4 and 5, if the neighbors and children of all devices are displayed, the lines in the topological graph are likely to be too dense, and many lines overlap each other to be unfavorable for analysis, and then the < single mode > button can be clicked to switch the display mode from the dense overall mode to the single mode, and only the neighbors and children of the device selected at the point are displayed. The background may be cleared if the background of the floor plan would affect the topology analysis.
As shown in fig. 6 and 7, if the devices in the plan view are too densely distributed to affect the topology analysis, the magnification may be performed in proportion to not affect the relative positions between the devices and the absolute positions in the plan view. Likewise, the zoom-out can be carried out, if the zoom-in is carried out for multiple times, the original size can be directly restored through reduction, and the original size does not need to be restored through multiple times of zoom-out.
And (3) event query: all events or specified events at any time period, all devices or specified devices may be queried.
The foregoing is illustrative of the preferred embodiments of the present invention, and it is to be understood that the invention is not limited to the precise form disclosed herein and is not to be construed as limited to the exclusion of other embodiments, and that various other combinations, modifications, and environments may be used and modifications may be made within the scope of the concepts described herein, either by the above teachings or the skill or knowledge of the relevant art. And that modifications and variations may be effected by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (6)

1. Zigbee wireless communication analysis system based on imaging is characterized in that: the system comprises an equipment management module, an analysis operation module, a statistic and analysis module, a topology analysis module and an event query module; the equipment management module is used for comprehensively managing all equipment participating in the communication test, providing basic service data for the state statistics and analysis module and calibrating the position of the equipment; the analysis operation module is used for carrying out various test operations on the equipment and acquiring corresponding data to provide data for the statistics and analysis module; the state statistics and analysis module is used for analyzing whether data are reported in a fixed time to determine whether the equipment is on-line or off-line, and analyzing continuous multi-turn data to obtain a state change trend; analyzing the single device in different data sending modes; the topology analysis module is used for judging the communication quality of the Zigbee equipment according to the relationship among various network topology elements in the network topology map by establishing the network topology map; the event query module is used for querying all events or designated events of all devices or designated devices in any time period.
2. The graphical-based Zigbee wireless communication analysis system of claim 1, wherein: the statistic and analysis module comprises a state statistic and analysis unit, a polling statistic and analysis unit, a broadcast statistic and analysis unit and a multicast statistic and analysis unit;
the state counting and analyzing unit is used for analyzing whether data are reported in fixed time to determine whether the equipment is on-line or off-line, and analyzing continuous multi-turn data to obtain a state change trend;
the polling counting and analyzing unit is used for analyzing the communication quality of data generated by the single equipment in an on-demand mode, and counting and analyzing according to the polling data to obtain the communication success rate and the communication failure rate of the equipment in a long-time operation device and the response time length;
the broadcast counting and analyzing unit is used for analyzing the communication quality of data generated by a single device in a broadcast mode, and counting and analyzing according to the polling data to obtain the communication success rate and the communication failure rate of the device in a long-time operation device and the response time length;
the multicast counting and analyzing unit is used for analyzing the communication quality of data generated by the single device in a multicast mode, and counting and analyzing according to the polling data to obtain the communication success rate and the communication failure rate of the device in long-time operation and the response duration.
3. The graphical-based Zigbee wireless communication analysis system of claim 1, wherein: the analysis process of the topology analysis module comprises the following steps:
collecting source data: three types of source data of neighbor data, routing data and child node data for topology analysis are collected through resetting data or complementing data; the neighbor data comprises a device address, a neighbor address and signal quality and is used for describing neighbor information of the device; the routing belongs to the next hop information that the data of the data description equipment reaches the Zigbee gateway path; the sub-node data comprises an equipment address, a sub-node address and signal quality, is mounted under Zigbee routing equipment with a data forwarding function, and does not have the data forwarding function;
and (3) calculating a topological relation: caching the collected neighbor data and child node data to form a complete neighbor and child node table, indexing the neighbor and child node table according to the equipment address, and calculating the neighbor, calculating the child node and calculating the route in sequence;
drawing a topological graph: and according to the calculated neighbors, child nodes and routes of all the devices, sequentially performing neighbor relation drawing, child node relation drawing and route relation drawing to obtain a network topology map.
4. The graphical-based Zigbee wireless communication analysis system of claim 3, wherein: the specific contents of the topological relation calculation include:
and (3) calculating the neighbors: searching all neighbors in a neighbor table according to the equipment address, if one piece of neighbor data is searched, indicating that the equipment represented by the neighbor address in the data is one neighbor of the current equipment, namely a one-way neighbor relation, then searching all the neighbors again in the neighbor table by using the neighbor address, and if the current equipment exists in the neighbors, enabling the two equipment to be neighbors of each other;
calculating a child node: searching all child nodes in the byte table according to the equipment addresses, and finding out all child node data, wherein the equipment represented by the child node addresses in the child node data is the child nodes;
and (3) calculating a route: searching a first neighbor in a neighbor table according to the address of the equipment, if the first neighbor is not searched, indicating that the current equipment has no route, if the first neighbor is searched, taking the neighbor as a node in the route, recording the address, then repeatedly searching and recording the address of the neighbor until the found neighbor is a Zigbee gateway (namely, a Coo equipment), and routing to a terminal point to be an effective route.
5. The graphical-based Zigbee wireless communication analysis system of claim 3, wherein: the specific contents of the drawing topological graph are as follows:
and (3) drawing a neighbor relation: if the Zigbee routing device 2 is a neighbor of the Zigbee routing device 1, a first line segment is drawn from the central position of the Zigbee routing device 1 to the midpoint between the Zigbee routing device 1 and the Zigbee routing device 2, and a second line segment is drawn from the midpoint between the Zigbee routing device 1 and the Zigbee routing device 2 to the central position of the Zigbee routing device 2; if the Zigbee routing device 1 and the Zigbee routing device 2 are neighbors of each other, the central positions of the two Zigbee routing devices are both drawn by a first line segment;
and (3) drawing a child node relation: if the Zigbee terminal device is a child node of the Zigbee routing device, a second line segment is drawn from the first device center location to the second device center location;
and (3) drawing a routing relation: and connecting the central positions of the Zigbee routing equipment or the Zigbee terminal equipment and the central positions of all routing nodes in sequence by using a third line segment, drawing a rectangle between the two nodes, and indicating the sequence number of the hop count in the middle of the rectangle.
6. The graphical-based Zigbee wireless communication analysis system of claim 1, wherein: the analysis operation module comprises polling operation, broadcast operation and multicast operation; the polling operation is used for sending unicast commands according to a certain time interval by one device, and visually analyzing whether the state of a single device is stable and whether the communication quality is good or not through polling analysis; the broadcast operation is used for sending broadcast commands to all equipment according to a certain time, and whether the communication quality of the whole Zigbee network is good under the condition of a large amount of wireless communication is visually analyzed through broadcast analysis; the multicast operation is used for sending a multicast command to all the devices according to a certain time, and whether the communication quality of the whole Zigbee network is good under the condition of a large amount of wireless communication is visually analyzed through multicast analysis.
CN202210246753.5A 2022-03-14 2022-03-14 Zigbee wireless communication analysis system based on imaging Pending CN114630361A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210246753.5A CN114630361A (en) 2022-03-14 2022-03-14 Zigbee wireless communication analysis system based on imaging

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210246753.5A CN114630361A (en) 2022-03-14 2022-03-14 Zigbee wireless communication analysis system based on imaging

Publications (1)

Publication Number Publication Date
CN114630361A true CN114630361A (en) 2022-06-14

Family

ID=81901563

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210246753.5A Pending CN114630361A (en) 2022-03-14 2022-03-14 Zigbee wireless communication analysis system based on imaging

Country Status (1)

Country Link
CN (1) CN114630361A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101945043A (en) * 2010-09-06 2011-01-12 华南理工大学 Topology discovery system of next generation Internet based on IPv6 (Internet Protocol Version 6) and realizing method thereof
CN104219113A (en) * 2014-06-09 2014-12-17 武汉迈威实达软件有限公司 Topological algorithm for displaying and analyzing multicast distribution
CN104539482A (en) * 2014-12-29 2015-04-22 南京邮电大学 Converged communication network monitoring managing system
CN105208573A (en) * 2014-06-18 2015-12-30 赵海 Wireless sensor network analysis method
CN112020119A (en) * 2020-10-22 2020-12-01 江苏怀业信息技术股份有限公司 Mesh ad hoc network topological graph design method based on batman-adv protocol
CN113067744A (en) * 2021-02-08 2021-07-02 杭州涂鸦信息技术有限公司 Network testing method, electronic equipment and storage device
CN113727379A (en) * 2021-09-28 2021-11-30 深圳绿米联创科技有限公司 Network visualization processing method and device, computer equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101945043A (en) * 2010-09-06 2011-01-12 华南理工大学 Topology discovery system of next generation Internet based on IPv6 (Internet Protocol Version 6) and realizing method thereof
CN104219113A (en) * 2014-06-09 2014-12-17 武汉迈威实达软件有限公司 Topological algorithm for displaying and analyzing multicast distribution
CN105208573A (en) * 2014-06-18 2015-12-30 赵海 Wireless sensor network analysis method
CN104539482A (en) * 2014-12-29 2015-04-22 南京邮电大学 Converged communication network monitoring managing system
CN112020119A (en) * 2020-10-22 2020-12-01 江苏怀业信息技术股份有限公司 Mesh ad hoc network topological graph design method based on batman-adv protocol
CN113067744A (en) * 2021-02-08 2021-07-02 杭州涂鸦信息技术有限公司 Network testing method, electronic equipment and storage device
CN113727379A (en) * 2021-09-28 2021-11-30 深圳绿米联创科技有限公司 Network visualization processing method and device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘钊: "基于ZigBee无线传感网络拓扑控制的研究与设计", 《中国优秀硕士学位论文》, pages 2 - 5 *

Similar Documents

Publication Publication Date Title
CN105657413B (en) Intelligent video quality monitoring platform
CN102638405B (en) Routing method of content-centric network strategy layer
US6487604B1 (en) Route monitoring graphical user interface, system and method
US8929221B2 (en) Method and system of monitoring the receipt of multicast traffic
CN101369918B (en) Network management browser
KR102076861B1 (en) Network performance diagnosis method and apparatus, and system
KR20060084040A (en) Apparatus and method for dynamic qos management
US8788958B2 (en) Modeling, monitoring, and analysis of computer services
CN103514310A (en) Visualized editing and displaying method for IT infrastructure topology
CN111130928B (en) Network measurement method based on in-band detection in wide area network
CN106452927A (en) Business topology information display method and system of cloud monitoring system
US20120030344A1 (en) Network monitoring system
CN108306911A (en) A kind of Internet of Things event monitoring method and apparatus
Jiang et al. A general framework for efficient continuous multidimensional top-k query processing in sensor networks
CN103649859A (en) Monitoring process control system
CN111934936A (en) Network state detection method and device, electronic equipment and storage medium
CN115277510B (en) Method for automatically identifying equipment, equipment interface and equipment path in network session
CN113810293A (en) Network preferred agent method, device, electronic equipment, server and storage medium
CN102355373B (en) Method and device for automatically troubleshooting large convergent point hidden troubles of transmission network
CN113612646B (en) Neighborhood network topology visualization method based on neighbor discovery
CN113746654A (en) IPv6 address management and flow analysis method and device
CN114630361A (en) Zigbee wireless communication analysis system based on imaging
CN114430388B (en) Visual tracking method for multicast service path
CN105976087A (en) New method of analyzing enterprise information system fault influence range based on graphic modeling
WO2012051852A1 (en) Method and system for quality of service monitoring based on grouping indicator architecture

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