CN110034974A - A kind of monitoring method and system based on wireless communication automatic addressing technology - Google Patents
A kind of monitoring method and system based on wireless communication automatic addressing technology Download PDFInfo
- Publication number
- CN110034974A CN110034974A CN201910250149.8A CN201910250149A CN110034974A CN 110034974 A CN110034974 A CN 110034974A CN 201910250149 A CN201910250149 A CN 201910250149A CN 110034974 A CN110034974 A CN 110034974A
- Authority
- CN
- China
- Prior art keywords
- terminal device
- frame
- host computer
- configuration
- monitoring host
- 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.)
- Granted
Links
- 238000012544 monitoring process Methods 0.000 title claims abstract description 240
- 238000004891 communication Methods 0.000 title claims abstract description 179
- 238000005516 engineering process Methods 0.000 title claims abstract description 49
- 238000000034 method Methods 0.000 title claims abstract description 29
- 230000004044 response Effects 0.000 claims description 77
- 125000004122 cyclic group Chemical group 0.000 claims description 33
- 230000005540 biological transmission Effects 0.000 claims description 16
- 230000008859 change Effects 0.000 claims description 2
- 230000009286 beneficial effect Effects 0.000 description 13
- 238000009826 distribution Methods 0.000 description 13
- 238000011835 investigation Methods 0.000 description 10
- 238000012423 maintenance Methods 0.000 description 10
- 230000008569 process Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 8
- 238000012806 monitoring device Methods 0.000 description 8
- 230000006872 improvement Effects 0.000 description 2
- 230000006855 networking Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 238000009472 formulation Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/004—Arrangements for detecting or preventing errors in the information received by using forward error control
- H04L1/0056—Systems characterized by the type of code used
- H04L1/0061—Error detection codes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/12—Arrangements for detecting or preventing errors in the information received by using return channel
- H04L1/16—Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
- H04L1/1607—Details of the supervisory signal
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0876—Aspects of the degree of configuration automation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/06—Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/18—Self-organising networks, e.g. ad-hoc networks or sensor networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Multimedia (AREA)
- Automation & Control Theory (AREA)
- Small-Scale Networks (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The present invention relates to a kind of monitoring method and system based on wireless communication automatic addressing technology, the method applied to monitoring host computer includes sending the first broadcasting command frame that configuration ID starts to each terminal equipment of chain road respectively;It is sending in the first preset duration that the first broadcasting command frame finishes, the sequence of the initialization ID generated according to each terminal equipment successively sends polling order frame to all terminal devices;Judgement is communicated with whether each terminal equipment is established, if then sending acknowledgement frame to each terminal equipment respectively, and the initialization ID of each terminal equipment is configured after sending acknowledgement frame, it is saved after obtaining multiple configuration ID and is respectively sent to corresponding terminal device, if otherwise retransmitting polling order frame;After saving and sending all configuration ID, the second broadcasting command frame that configuration ID terminates is sent to each terminal equipment respectively, completes ID configuration.The present invention realizes Automatic parameter configuration and automatic load to terminal device, saves human cost, intelligent high.
Description
Technical field
The present invention relates to monitoring system technical field more particularly to a kind of monitoring based on wireless communication automatic addressing technology
Method and system.
Background technique
In the monitoring system application of modernization, monitoring system is all wire communication in overwhelming majority situation at present, and according to
Each monitoring point at scene is manually gone to go the parameter of setting terminal device.Using early stage, common practices is to will be distributed over
All terminal devices of each floor, after being installed by wired networking, the then communication ID of each terminal device of manual configuration, and
It is loaded into monitoring host computer one by one;Monitoring host computer is connect with each terminal device generally by wired mode, live in this way
Cable wiring manufacture is extremely complex, especially in large-scale dispersed building floor application, will increase human cost, also increases simultaneously
Live operation maintenance cost.
With the continuous improvement of automatization level technology, people are higher and higher to live group-net communication and cabling requirement, right
The requirement that terminal device is automatically loaded into monitoring host computer is also higher and higher, more pursuit convenience and intelligence, therefore traditional has
Line communication mode simultaneously can no longer meet large-scale monitoring system application demand by the mode of manual configuration access terminal equipment.For
Meets the needs of live quickly networking wiring, common practice is that monitoring host computer directly sends out all terminal devices of chain road at present
Send poll frame realize automatic addressing (successively send ID=1,2,3 ... poll frame), to realize that monitoring host computer is set with terminal
Standby connection is simultaneously monitored terminal device, but this processing method still has following several defects:
1. after installing terminal equipment to scene, needing artificial scene that each equipment communication ID is arranged, and to ensure each set
Standby communication ID is inconsistent, will increase human cost in this way, wastes more time.
2. assume due to manually-operated fault, when field erected terminal device ID there are it is identical when, monitoring in this way is led
The terminal equipment in communication at machine and scene will appear abnormal failure, and be unaware that the position of the terminal device of identical ID, scene row
It looks into very difficult, wastes a large amount of cost of labor, extremely not intelligence.
3. if needing to remove on mounted terminal device, then access dedicated formulation terminal device does not have display screen
Software communicates ID to it and is configured, very troublesome, and the versatility and applicability of such terminal device will be restricted, and be increased
Add display screen again and will increase the hardware cost of terminal device.
It is therefore desirable to study a kind of automatic addressing technology based on wireless communication, realize monitoring system wireless communication and
Parameter configuration and automatic load to terminal device, improve the convenience and intelligence of monitoring system.
Summary of the invention
The technical problem to be solved by the present invention is to solve the above shortcomings of the prior art and to provide one kind based on wireless communication
The monitoring method and system of automatic addressing technology, to reduce the wired wiring of existing monitoring system and realize to the automatic of terminal device
Parameter configuration and automatic load.
The technical scheme to solve the above technical problems is that
A kind of monitoring method based on wireless communication automatic addressing technology, is applied in monitoring host computer, comprising the following steps:
Step a1: the first broadcasting command frame that configuration ID starts is sent to each terminal equipment of chain road respectively;
Step a2: it is sending in the first preset duration that the first broadcasting command frame finishes, according to terminal described in every
The sequence for the initialization ID that equipment generates, successively sends polling order frame to all terminal devices;
Step a3: judgement is communicated with whether terminal device described in every is established, if so, setting respectively to terminal described in every
Preparation send acknowledgement frame, and the initialization ID of every terminal device is configured after sending the acknowledgement frame, obtains multiple
ID is configured, multiple configuration ID are saved and is respectively sent to the corresponding terminal device, if it is not, then return step a2;
Step a4: after saving and sending all configuration ID, configuration ID is sent to terminal device described in every respectively
The the second broadcasting command frame terminated completes ID configuration.
The beneficial effects of the present invention are: monitoring host computer pass through it is wide in send that configuration ID starts to each terminal equipment first
After broadcasting command frame, then polling order frame is successively successively sent according to the sequence of the initialization ID of each terminal equipment generation, and work as
Terminal device and monitoring host computer are established after efficient communication connect, and are sent acknowledgement frame and are simultaneously started the corresponding configuration of distribution initialization ID
ID, the configuration ID of distribution is saved and is sent to every corresponding terminal device by monitoring host computer, when to each terminal equipment poll
And after distributing all configuration ID, the second broadcasting command frame that configuration ID terminates is retransmited, oneself of each terminal equipment is completed
Dynamic parameter configuration.Automatic addressing technology of the whole process based on wireless communication, without complicated between monitoring host computer and terminal device
Wired wiring, realize the wireless communication network between monitoring host computer and terminal device, it is complicated and changeable to meet architecture storey etc.
Be applied to demand;Compared with traditional monitoring system, realizes and the Automatic parameter configuration of each terminal equipment is added with automatic
It carries, reduces field wiring, without the communication ID of artificial situ configuration each terminal equipment, the terminal that also can avoid scene is set
It is standby the identical situation of communication ID occur, facilitate the field failure investigation of monitoring system, saves human cost, reduce live fortune
Maintenance cost is sought, the satisfaction of user is improved, communication ID configuration is carried out without setting display screen on the terminal device, is subtracted
Few hardware cost improves monitoring efficiency, intelligent high;
Wherein, the first broadcasting command frame and the second broadcasting command frame that monitoring host computer is sent, can set according to the actual situation
Set transmission number and each interval time, do not receive the first broadcasting command frame to avoid terminal device or this be second wide
The case where broadcasting command frame;First preset duration and monitoring host computer successively send the interval time of polling order frame also according to practical feelings
Condition is configured.
Based on the above technical solution, the present invention can also be improved as follows:
Further, in the step a2, after successively sending the polling order frame to all terminal devices also
Include:
Receive the response frame comprising equipment Serial Number that every terminal device is fed back according to the polling order frame.
The beneficial effect of above-mentioned further scheme is: when monitoring host computer successively sends polling order frame to all terminal devices
Afterwards, each terminal equipment is responded all in accordance with polling order frame, i.e. feedback response frame, and feeds back to monitoring host computer, and is responded
Include the corresponding equipment Serial Number of terminal device in frame, can be determined whether convenient for monitoring host computer according to the response frame corresponding with this
Monitoring device establishes efficient communication, consequently facilitating subsequent monitoring host computer is the terminal device distribution communication ID for establishing efficient communication,
Realize the Automatic parameter configuration and automatic load to terminal device.
Further, whether judgement establishes the specific steps packet of communication with every terminal device in the step a3
It includes:
Judge whether the cyclic redundancy check in the response frame is correct, if so, establishing with the corresponding terminal device logical
Letter, if it is not, then not setting up communication with the corresponding terminal device.
The beneficial effect of above-mentioned further scheme is: CRC being examined (to refer to Cyclic Redundancy Code, Cyclical Redundancy
Check) whether check code is correct, is to make error detection using the principle of division and remainder;Since each terminal equipment exists
CRC can be calculated when sending the response frame comprising the equipment Serial Number (sequence number that this equipment Serial Number is terminal device) of itself
Check code simultaneously feeds back to monitoring host computer with the response frame, and monitoring host computer can recalculate cyclic redundancy check according to the response frame received,
When the cyclic redundancy check recalculated is consistent with the cyclic redundancy check received, then monitoring host computer is established with corresponding terminal device
Otherwise efficient communication illustrates that occurring the case where same communication ID or communication link in terminal device goes wrong, that is, has not set up
Effect communication;By judging cyclic redundancy check, it is capable of determining whether to establish efficient communication with corresponding monitoring device, consequently facilitating subsequent
Monitoring host computer is the terminal device distribution communication ID for establishing efficient communication, realize to the configuration of the Automatic parameter of terminal device with it is automatic
Load.
Further, whether judgement establishes the specific steps of communication with every terminal device further include:
When the errors number for judging cyclic redundancy check described in the response frame is greater than preset times, then abandons and feed back
Communication link between the corresponding terminal device of the response frame.
The beneficial effect of above-mentioned further scheme is: since monitoring host computer judges not setting up effectively with corresponding terminal device
When communication, corresponding polling order frame can be retransmitted, and receives the response frame of corresponding terminal device feedback again, according to sound
Frame is answered to judge whether cyclic redundancy check therein is correct, therefore when the errors number for judging cyclic redundancy check is greater than preset times,
Then illustrate that the wireless communication link between the corresponding terminal device and monitoring host computer goes wrong, can drop the communication link simultaneously
Conveniently take corresponding solution.
Another aspect according to the present invention provides a kind of monitoring method based on wireless communication automatic addressing technology, answers
For in terminal device, comprising the following steps:
Step b1: receiving the first broadcasting command frame for starting of configuration ID that monitoring host computer is sent, and is receiving described the
After one broadcasting command frame, initialization ID is generated according to equipment Serial Number;
Step b2: after the first preset duration for receiving the first broadcasting command frame, according to the initialization ID's
Sequentially, the polling order frame that the monitoring host computer is sent is received;
Step b3: after receiving the polling order frame, when communicating with monitoring host computer foundation, the monitoring master is received
The acknowledgement frame that machine is sent, and the configuration ID that the monitoring host computer is sent is received after receiving the acknowledgement frame, according to the configuration
ID updates the initialization ID, obtains updating ID and save;When not setting up communication with the monitoring host computer, then return step
b2;
Step b4: after the update ID is saved, the second broadcast that the configuration ID that the monitoring host computer is sent terminates is received
Command frame completes ID configuration.
The beneficial effects of the present invention are: terminal device is not necessarily to after receiving the first broadcasting command frame that configuration ID starts
It makes a response and initialization ID is generated according to the equipment Serial Number of itself (sequence number that this equipment Serial Number is terminal device), and
The polling order frame of monitoring host computer transmission is successively received according to the sequence of initialization ID after the first preset duration, and when terminal is set
It is standby when establishing efficient communication with monitoring host computer, receive the acknowledgement frame that monitoring host computer is sent, and the configuration distributed according to monitoring host computer
ID is updated the initialization ID of itself, obtains updating ID and save, and effectively leads to when terminal device and monitoring host computer are not set up
When letter, polling order frame is received again, after the initialization ID of all terminal devices is updated and saved, is receiving monitoring master
The second broadcasting command frame that the configuration ID that machine is sent terminates completes the Automatic parameter configuration of each terminal equipment.Whole process base
Monitoring is realized without wired wiring complicated between monitoring host computer and terminal device in the automatic addressing technology of wireless communication
Wireless communication network between host and terminal device, meet architecture storey etc. it is complicated and changeable be applied to demand;With it is traditional
Monitoring system is compared, and is realized to the configuration of the Automatic parameter of each terminal equipment and automatic load, is reduced field wiring, also without
The communication ID of artificial situ configuration each terminal equipment is needed, the identical feelings of communication ID occurs in the terminal device that also can avoid scene
Condition facilitates the field failure investigation of monitoring system, saves human cost, reduce live operation maintenance cost, improve use
The satisfaction at family carries out communication ID configuration without setting display screen on the terminal device, reduces hardware cost, improve monitoring
Efficiency is intelligent high.
Based on the above technical solution, the present invention can also be improved as follows:
Further, in the step b3, after receiving the polling order frame, further includes:
The random number of the second preset duration is generated, and the random number is set to wait for the time, when the waiting time
Terminate, the response frame comprising the equipment Serial Number is sent to the monitoring host computer according to the polling order frame.
The beneficial effect of above-mentioned further scheme is: by generating the random number of the second preset duration and as every terminal
It the waiting time of equipment, can be convenient for determining within waiting time, whether terminal device receives the bus of monitoring host computer transmission
Data, so that it is determined that whether the initialization ID that terminal device generates is unique communication ID (when the terminal device does not receive bus
Data then illustrate that the waiting time terminates, and without other terminal device response monitoring hosts, and the only terminal device can respond,
Then corresponding initialization ID is unique communication ID, conversely, supervising at the end of then illustrating the waiting time in addition to the terminal device responds
Host is controlled, there are also other terminal devices to have responded monitoring host computer, then initializing ID is not unique communication ID), and it is convenient for every
Terminal device carries out response polling order frame according to the waiting time respectively, corresponding response frame is fed back, consequently facilitating monitoring host computer
Receive the response frame that feeds back according to waiting time, and according to response frame come judge corresponding terminal device whether with monitoring host computer
Establish efficient communication;Wherein, the second preset duration can be arranged according to the actual situation, and random number can be by determining in terminal device
When device generate, the corresponding random number of each terminal equipment is all different;In addition, within the waiting time, if corresponding terminal is set
For when receiving bus data, the waiting time of other terminal devices can be reset, reclocking can facilitate and same communication ID
Other terminal devices of (initialization ID) distinguish, and feed back corresponding response frame respectively, consequently facilitating subsequent monitoring host computer
The unique configuration ID of distribution.
Another aspect according to the present invention provides a kind of monitoring host computer based on wireless communication automatic addressing technology, packet
Include the first sending module, judgment module, configuration module and the first preserving module;
First sending module, first for starting respectively to each terminal equipment of chain road transmission configuration ID are wide
Broadcast command frame;It is also used to sending in the first preset duration that the first broadcasting command frame finishes, according to terminal described in every
The sequence for the initialization ID that equipment generates, successively sends the polling order frame of initialization ID to all terminal devices;
The judgment module, for judging communicate with whether terminal device described in every is established;
First sending module is also used to when communicating with terminal device foundation, respectively to terminal described in every
Equipment sends acknowledgement frame;It is also used to when not setting up communication with the terminal device, it is corresponding to retransmit the initialization ID
The polling order frame;
The configuration module, for configuring the initialization of every terminal device after sending the acknowledgement frame
ID obtains multiple configuration ID;
First preserving module, for saving multiple configuration ID;
First sending module is also used to multiple configuration ID being respectively sent to the corresponding terminal device;
It is also used to after saving and sending all configuration ID, is sent to terminal device described in every configure ID terminates second respectively
Broadcasting command frame.
The beneficial effects of the present invention are: passing through the first sending module, judgment module, configuration module and the first preserving module structure
At the monitoring host computer of the invention based on wireless communication automatic addressing technology, without complicated between monitoring host computer and terminal device
Wired wiring, realize the wireless communication network between monitoring host computer and terminal device, it is complicated and changeable to meet architecture storey etc.
Be applied to demand;Compared with traditional monitoring system, realizes and the Automatic parameter configuration of each terminal equipment is added with automatic
It carries, reduces field wiring, without the communication ID of artificial situ configuration each terminal equipment, the terminal that also can avoid scene is set
It is standby the identical situation of communication ID occur, facilitate the field failure investigation of monitoring system, saves human cost, reduce live fortune
Maintenance cost is sought, the satisfaction of user is improved, communication ID configuration is carried out without setting display screen on the terminal device, is subtracted
Few hardware cost improves monitoring efficiency, intelligent high.
Based on the above technical solution, the present invention can also be improved as follows:
Further, further including the first receiving module;
First receiving module receives after successively sending the polling order frame to all terminal devices
The response frame comprising equipment Serial Number that every terminal device is fed back according to the polling order frame.
The beneficial effect of above-mentioned further scheme is: the response frame fed back by the first receiving module receiving terminal apparatus,
It can determine whether that monitoring device corresponding with this establishes efficient communication according to the response frame convenient for monitoring host computer, consequently facilitating subsequent
Monitoring host computer is the terminal device distribution communication ID for establishing efficient communication, realize to the configuration of the Automatic parameter of terminal device with it is automatic
Load.
Further, the judgment module is specifically used for judging whether the cyclic redundancy check in the response frame is correct, if so,
It then establishes and communicates with the corresponding terminal device, if it is not, then not setting up communication with the corresponding terminal device.
The beneficial effect of above-mentioned further scheme is: cyclic redundancy check is judged by judgment module, be capable of determining whether with it is corresponding
Monitoring device establish efficient communication, consequently facilitating subsequent monitoring host computer be establish efficient communication terminal device distribution communication
ID realizes Automatic parameter configuration and automatic load to terminal device.
Further, the judgment module is also particularly useful for when the mistake time for judging cyclic redundancy check described in the response frame
When number is greater than preset times, then the communication link between the terminal device corresponding with the response frame is fed back is abandoned.
The beneficial effect of above-mentioned further scheme is: since monitoring host computer judges not setting up effectively with corresponding terminal device
When communication, corresponding polling order frame can be retransmitted, and receives the response frame of corresponding terminal device feedback again, according to sound
It answers frame to judge whether cyclic redundancy check therein is correct, therefore is preset when judgment module judges that the errors number of cyclic redundancy check is greater than
When number, then illustrate that the wireless communication link between the corresponding terminal device and monitoring host computer goes wrong, it is logical to can drop this
Letter link simultaneously conveniently takes corresponding solution.
Another aspect according to the present invention provides a kind of terminal device based on wireless communication automatic addressing technology, packet
Include the second receiving module, initialization ID generation module, update module and the second preserving module;
Second receiving module, the first broadcasting command frame that the configuration ID for receiving monitoring host computer transmission starts;
The initialization ID generation module, for after receiving the first broadcasting command frame, according to equipment Serial Number
Generate initialization ID;
Second receiving module is also used in the first preset duration for receiving the first broadcasting command frame, presses
According to the sequence of the initialization ID, the polling order frame for the initialization ID that the monitoring host computer is sent is received;It is also used to receiving
After the polling order frame, when communicate with monitoring host computer foundation, the acknowledgement frame of monitoring host computer transmission is received, and
The configuration ID that the monitoring host computer is sent is received after receiving the acknowledgement frame;It is also used to communicate not setting up with the monitoring host computer
When, the corresponding polling order frame of the initialization ID is received again;
The update module obtains updating ID for updating itself the initialization ID according to the configuration ID;
Second preserving module, for saving the update ID;
Second receiving module is also used to receive the configuration that the monitoring host computer is sent after the update ID is saved
The second broadcasting command frame that ID terminates.
The beneficial effects of the present invention are: being protected by the second receiving module, initialization ID generation module, update module and second
The terminal device of the invention based on wireless communication automatic addressing technology that storing module is constituted, is not necessarily to monitoring host computer and terminal device
Between complicated wired wiring, realize the wireless communication network between monitoring host computer and terminal device, meet architecture storey etc.
Complicated and changeable is applied to demand;Compared with traditional monitoring system, the Automatic parameter configuration to each terminal equipment is realized
With automatic load, reduce field wiring, without the communication ID of artificial situ configuration each terminal equipment, also can avoid scene
Terminal device there is the identical situation of communication ID, facilitate the field failure investigation of monitoring system, save human cost, reduce
Live operation maintenance cost, improves the satisfaction of user, is communicated without setting display screen on the terminal device
ID configuration, reduces hardware cost, improves monitoring efficiency, intelligent high.
Based on the above technical solution, the present invention can also be improved as follows:
Further, further including random number generation module and the second sending module;
The random number generation module is set as generating the random number of the second preset duration, and by the random number
Waiting time;
Second sending module, for terminating when the waiting time, according to the polling order frame to the monitoring
Host sends the response frame comprising the equipment Serial Number.
The beneficial effect of above-mentioned further scheme is: the random number of the second preset duration is generated by random number generation module
And the waiting time as each terminal equipment, it can be convenient for determining within waiting time, whether terminal device receives monitoring
The bus data that host is sent so that it is determined that whether the initialization ID that terminal device generates is unique communication ID, and is convenient for second
Sending module carries out response polling order frame according to the waiting time respectively, corresponding response frame is fed back, consequently facilitating monitoring host computer
Receive the response frame that feeds back according to waiting time, and according to response frame come judge corresponding terminal device whether with monitoring host computer
Establish efficient communication.
Another aspect according to the present invention provides a kind of monitoring system based on wireless communication automatic addressing technology, packet
Include the monitoring host computer based on wireless communication automatic addressing technology in the present invention and automatic based on wireless communication in the present invention
The terminal device of addressing technique, and the monitoring host computer and the terminal device are wirelessly connected.
The beneficial effects of the present invention are: monitoring host computer and end based on wireless communication automatic addressing technology in through the invention
The monitoring system that end equipment is constituted realizes monitoring host computer without wired wiring complicated between monitoring host computer and terminal device
Wireless communication network between terminal device, meet architecture storey etc. it is complicated and changeable be applied to demand;With traditional monitoring
System is compared, and is realized Automatic parameter configuration and automatic load to each terminal equipment, is reduced field wiring, without people
There is the identical situation of communication ID, have in the communication ID of work situ configuration each terminal equipment, the terminal device that also can avoid scene
The field failure investigation for helping monitoring system, saves human cost, reduces live operation maintenance cost, improve expiring for user
Meaning degree carries out communication ID configuration without setting display screen on the terminal device, reduces hardware cost, improve monitoring efficiency,
It is intelligent high.
Detailed description of the invention
Fig. 1 is a kind of flow diagram one of the monitoring method based on wireless communication automatic addressing technology of the present invention;
Fig. 2 is a kind of flow diagram two of the monitoring method based on wireless communication automatic addressing technology of the present invention;
Fig. 3 is a kind of structural schematic diagram one of the monitoring host computer based on wireless communication automatic addressing technology of the present invention;
Fig. 4 is a kind of structural schematic diagram two of the monitoring host computer based on wireless communication automatic addressing technology of the present invention;
Fig. 5 is a kind of structural schematic diagram one of the terminal device based on wireless communication automatic addressing technology of the present invention;
Fig. 6 is a kind of structural schematic diagram two of the terminal device based on wireless communication automatic addressing technology of the present invention;
Fig. 7 is a kind of structural schematic diagram of the monitoring system based on wireless communication automatic addressing technology of the present invention;
Fig. 8 is the workflow schematic diagram of the monitoring system based on wireless communication automatic addressing technology in the present invention.
Specific embodiment
The principle and features of the present invention will be described below with reference to the accompanying drawings, and the given examples are served only to explain the present invention, and
It is non-to be used to limit the scope of the invention.
With reference to the accompanying drawing, the present invention will be described.
Embodiment one, as shown in Figure 1, it is a kind of based on wireless communication automatic addressing technology monitoring method, be applied to monitoring
In host, comprising the following steps:
Sa1: the first broadcasting command frame that configuration ID starts is sent to each terminal equipment of chain road respectively;
Sa2: it is sending in the first preset duration that the first broadcasting command frame finishes, according to terminal device described in every
The sequence of the initialization ID of generation, successively sends polling order frame to all terminal devices;
Sa3: judgement is communicated with whether terminal device described in every is established, if so, into Sa4, if it is not, then returning to Sa2;
Sa4: acknowledgement frame is sent to terminal device described in every respectively, and is configured described in every after sending the acknowledgement frame
The initialization ID of terminal device obtains multiple configuration ID, saves multiple configuration ID and is respectively sent to corresponding institute
State terminal device;
Sa5: after saving and sending all configuration ID, sending configuration ID to terminal device described in every respectively terminates
The second broadcasting command frame, complete ID configuration.
Automatic addressing technology of the present embodiment based on wireless communication has without complicated between monitoring host computer and terminal device
Line wiring, realizes the wireless communication network between monitoring host computer and terminal device, meets that architecture storey etc. is complicated and changeable to answer
For demand;Compared with traditional monitoring system, the Automatic parameter configuration and automatic load to each terminal equipment are realized, is subtracted
Field wiring is lacked, without the communication ID of artificial situ configuration each terminal equipment, the terminal device that also can avoid scene goes out
Now communication ID identical situation facilitates the field failure investigation of monitoring system, saves human cost, reduces scene operation dimension
Cost is protected, the satisfaction of user is improved, communication ID configuration is carried out without setting display screen on the terminal device, is reduced hard
Part cost improves monitoring efficiency, intelligent high.
Specifically, the first broadcasting command frame of the present embodiment is sent 3 times, is sent every 300ms once, to ensure channel radio
The each terminal equipment of letter chain road can receive the first broadcasting command frame, and then complete the equipment according to itself by terminal device
Sequence number (sequence number that this equipment Serial Number is terminal device) generates the operation of initialization ID, and wherein individual communications links are maximum
Only support 119 terminal devices.The format of the first broadcasting command frame is as shown in table 1 in the present embodiment.
The format of 1 first broadcasting command frame of table
Broadcast frame | Remarks |
Terminal device address | 0x00 |
Function code | 0X27 |
Identifier | 0XAA |
Identifier | 0XAA |
Cyclic redundancy check | 2 bytes |
Specifically, first preset duration of the present embodiment is 1s, i.e., after sending the first broadcasting command frame 1s, according to initial
Change ID and successively sends polling order frame from 1~119 pair of terminal device.The format of polling order frame is as shown in table 2 in the present embodiment.
The format of 2 polling order frame of table
Specifically, when monitoring host computer and terminal device establish efficient communication in the present embodiment, then monitoring host computer starts to send out
It send acknowledgement frame, and by the initialization ID of this terminal device configures 119+Index (initial value of Index is 1, the every hair of monitoring host computer
An acknowledgement frame is sent, Index is sent to terminal device after being saved this configuration ID from increasing 1).Acknowledgement frame in the present embodiment
Format it is as shown in table 3.
The format of 3 acknowledgement frame of table
Specifically, in the present embodiment when whole polls and after the completion of configuring ID, the configuration ID sent to terminal device terminates
The second broadcasting command frame, to continuously transmit 3 times, every minor tick 300ms, it is laggard that terminal device receives the second broadcasting command frame
Row respective handling terminates the communication automatic assigning process of ID.The format of the second broadcasting command frame in the present embodiment is as shown in table 4.
The format of 4 second broadcasting command frame of table
Preferably, in Sa2, after successively sending the polling order frame to all terminal devices further include:
Receive the response frame comprising equipment Serial Number that every terminal device is fed back according to the polling order frame.
After monitoring host computer successively sends polling order frame to all terminal devices, each terminal equipment is ordered all in accordance with poll
It enables frame be responded, i.e. feedback response frame, and feeds back to monitoring host computer, and in response frame include the corresponding equipment sequence of terminal device
Row number can determine whether that monitoring device corresponding with this establishes efficient communication according to the response frame convenient for monitoring host computer, thus just
It is the terminal device distribution communication ID for establishing efficient communication in subsequent monitoring host computer, realizes and the Automatic parameter of terminal device is configured
With automatic load.
Preferably, in Sa3, the specific steps whether judgement establishes communication with terminal device described in every include:
Judge whether the cyclic redundancy check in the response frame is correct, if so, establishing with the corresponding terminal device logical
Letter, if it is not, then not setting up communication with the corresponding terminal device.
Since each terminal equipment is being sent comprising equipment Serial Number (sequence number that this equipment Serial Number is terminal device)
Response frame when can calculate cyclic redundancy check and feed back to monitoring host computer with the response frame, monitoring host computer is according to the response received
Frame can recalculate cyclic redundancy check, when the cyclic redundancy check recalculated is consistent with the cyclic redundancy check received, then monitor master
Machine establishes efficient communication with corresponding terminal device, otherwise illustrates occur the case where same communication ID or communication chain in terminal device
Road goes wrong, that is, does not set up efficient communication;By judging cyclic redundancy check, it is capable of determining whether to establish with corresponding monitoring device
Efficient communication, consequently facilitating subsequent monitoring host computer is the terminal device distribution communication ID for establishing efficient communication, realization sets terminal
Standby Automatic parameter configuration and automatic load.
Preferably, judge the specific steps that communication whether is established with every terminal device further include:
When the errors number for judging cyclic redundancy check described in the response frame is greater than preset times, then abandons and feed back
Communication link between the corresponding terminal device of the response frame.
When not setting up efficient communication with corresponding terminal device due to monitoring host computer judgement, corresponding poll can be retransmitted
Command frame, and the response frame of corresponding terminal device feedback is received again, whether frame judges cyclic redundancy check therein according to response
Correctly, therefore when the errors number for judging cyclic redundancy check is greater than preset times, then illustrate the corresponding terminal device and monitoring
Wireless communication link between host goes wrong, and can drop the communication link and conveniently takes corresponding solution.
Specifically, it sets preset times to 5 times in the present embodiment, i.e., when the errors number of cyclic redundancy check is greater than 5 times
When, then abandon the communication link between terminal device corresponding with feedback response frame.
Embodiment two, as shown in Fig. 2, it is a kind of based on wireless communication automatic addressing technology monitoring method, be applied to terminal
In equipment, comprising the following steps:
Sb1: the first broadcasting command frame that the configuration ID that monitoring host computer is sent starts is received, and wide receiving described first
After broadcasting command frame, initialization ID is generated according to equipment Serial Number;
Sb2: after the first preset duration for receiving the first broadcasting command frame, according to the suitable of the initialization ID
Sequence receives the polling order frame that the monitoring host computer is sent;
Sb3: after receiving the polling order frame, when with the monitoring host computer foundation communicate when, enter step Sb4, when with
When the monitoring host computer does not set up communication, Sb2 is returned;
Sb4: the acknowledgement frame that the monitoring host computer is sent is received, and receives the monitoring host computer after receiving the acknowledgement frame
The configuration ID of transmission updates the initialization ID of itself according to the configuration ID, obtains updating ID and save;
Sb5: after the update ID is saved, the second broadcasting command that the configuration ID that the monitoring host computer is sent terminates is received
Frame completes ID configuration.
Automatic addressing technology based on wireless communication, without wired wiring complicated between monitoring host computer and terminal device,
Realize the wireless communication network between monitoring host computer and terminal device, meet architecture storey etc. it is complicated and changeable be applied to need
It asks;Compared with traditional monitoring system, the Automatic parameter configuration and automatic load to each terminal equipment are realized, is reduced existing
Field wiring, without the communication ID of artificial situ configuration each terminal equipment, the terminal device that also can avoid scene is communicated
ID identical situation, facilitate monitoring system field failure investigation, save human cost, reduce live operation maintenance at
This, improve the satisfaction of user, without on the terminal device setting display screen come carry out communication ID configuration, reduce hardware at
This, improves monitoring efficiency, intelligent high.
Specifically, if since terminal device opened after receiving the first broadcasting command frame configuring ID and issuing in the present embodiment
Beginning timing, if it exceeds the second broadcasting command frame that the configuration ID for receiving monitoring host computer transmission for 5 minutes not yet terminates, then certainly
It is dynamic to terminate ID configuration process.
Preferably, in Sb3, after receiving the polling order frame, further includes:
The random number of the second preset duration is generated, and the random number is set to wait for the time, when the waiting time
Terminate, the response frame comprising the equipment Serial Number is sent to the monitoring host computer according to the polling order frame.
By generating the random number of the second preset duration and as the waiting time of each terminal equipment, can be convenient for determining
In waiting time, whether terminal device receives the bus data of monitoring host computer transmission, so that it is determined that terminal device generated
Whether initialization ID is that unique communication ID (when the terminal device does not receive bus data, then illustrates that the waiting time terminates, do not have
Other terminal device response monitoring hosts, and the only terminal device can respond, then corresponding initialization ID is unique communication
ID, conversely, in addition to the terminal device response monitoring host, there are also other terminal devices to ring at the end of then illustrating the waiting time
Monitoring host computer is answered, then initializing ID is not unique communication ID), and carried out respectively according to the waiting time convenient for each terminal equipment
Polling order frame is responded, corresponding response frame is fed back, consequently facilitating monitoring host computer receives the response fed back according to waiting time
Frame, and frame judges whether corresponding terminal device with monitoring host computer establishes efficient communication according to response.
Specifically, in the present embodiment after receiving polling order frame, according to the timer in terminal device, 40 millis are generated
Second~1420 milliseconds of random number (with 20 milliseconds for interval), note this time is T, and as terminal device feedback response frame etc.
To the time.And in waiting time T, if corresponding terminal device receives bus data, can by other terminal devices etc.
It is reset to the time, reclocking, can facilitate and be distinguished with other terminal devices of same communication ID (initialization ID), and respectively
Corresponding response frame is fed back, consequently facilitating the unique configuration ID of subsequent monitoring host computer distribution.
Embodiment three, as shown in figure 3, the present embodiment also disclose it is a kind of based on wireless communication automatic addressing technology monitoring
Host, including the first sending module, judgment module, configuration module and the first preserving module;
First sending module, first for starting respectively to each terminal equipment of chain road transmission configuration ID are wide
Broadcast command frame;It is also used to sending in the first preset duration that the first broadcasting command frame finishes, according to terminal described in every
The sequence for the initialization ID that equipment generates, successively sends the polling order frame of initialization ID to all terminal devices;
The judgment module, for judging communicate with whether terminal device described in every is established;
First sending module is also used to when communicating with terminal device foundation, respectively to terminal described in every
Equipment sends acknowledgement frame;It is also used to when not setting up communication with the terminal device, it is corresponding to retransmit the initialization ID
The polling order frame;
The configuration module, for configuring the initialization of every terminal device after sending the acknowledgement frame
ID obtains multiple configuration ID;
First preserving module, for saving multiple configuration ID;
First sending module is also used to multiple configuration ID being respectively sent to the corresponding terminal device;
It is also used to after saving and sending all configuration ID, is sent to terminal device described in every configure ID terminates second respectively
Broadcasting command frame.
It is made up of the first sending module, judgment module, configuration module and the first preserving module of the invention based on nothing
The monitoring host computer of line communication automatic addressing technology is realized without wired wiring complicated between monitoring host computer and terminal device
Wireless communication network between monitoring host computer and terminal device, meet architecture storey etc. it is complicated and changeable be applied to demand;With biography
The monitoring system of system is compared, and is realized Automatic parameter configuration and automatic load to each terminal equipment, is reduced field wiring,
Without the communication ID of artificial situ configuration each terminal equipment, the terminal device appearance communication ID that also can avoid scene is identical
Situation facilitates the field failure investigation of monitoring system, saves human cost, reduce live operation maintenance cost, improve
The satisfaction of user carries out communication ID configuration without setting display screen on the terminal device, reduces hardware cost, improve prison
Efficiency is controlled, it is intelligent high.
Preferably, as shown in figure 4, further including the first receiving module;
First receiving module receives after successively sending the polling order frame to all terminal devices
The response frame comprising equipment Serial Number that every terminal device is fed back according to the polling order frame.
The response frame fed back by the first receiving module receiving terminal apparatus, can be true according to the response frame convenient for monitoring host computer
Fixed whether monitoring device corresponding with this establishes efficient communication, consequently facilitating subsequent monitoring host computer is the terminal for establishing efficient communication
Equipment distribution communication ID realizes Automatic parameter configuration and automatic load to terminal device.
Preferably, the judgment module is specifically used for judging whether the cyclic redundancy check in the response frame is correct, if so,
It then establishes and communicates with the corresponding terminal device, if it is not, then not setting up communication with the corresponding terminal device.
Cyclic redundancy check is judged by judgment module, is capable of determining whether to establish efficient communication with corresponding monitoring device, thus
It is the terminal device distribution communication ID for establishing efficient communication convenient for subsequent monitoring host computer, the Automatic parameter of terminal device is matched in realization
It sets and loads automatically.
Preferably, the judgment module is also particularly useful for when the mistake time for judging cyclic redundancy check described in the response frame
When number is greater than preset times, then the communication link between the terminal device corresponding with the response frame is fed back is abandoned.
When not setting up efficient communication with corresponding terminal device due to monitoring host computer judgement, corresponding poll can be retransmitted
Command frame, and the response frame of corresponding terminal device feedback is received again, whether frame judges cyclic redundancy check therein according to response
Correctly, therefore when judgment module judges the errors number of cyclic redundancy check greater than preset times, then illustrate that the corresponding terminal is set
The standby wireless communication link between monitoring host computer goes wrong, and can drop the communication link and corresponding solution is conveniently taken to arrange
It applies.
Example IV, as shown in figure 5, the present embodiment also disclose it is a kind of based on wireless communication automatic addressing technology terminal
Equipment, including the second receiving module, initialization ID generation module, update module and the second preserving module;
Second receiving module, the first broadcasting command frame that the configuration ID for receiving monitoring host computer transmission starts;
The initialization ID generation module, for after receiving the first broadcasting command frame, according to equipment Serial Number
Generate initialization ID;
Second receiving module is also used in the first preset duration for receiving the first broadcasting command frame, presses
According to the sequence of the initialization ID, the polling order frame for the initialization ID that the monitoring host computer is sent is received;It is also used to receiving
After the polling order frame, when communicate with monitoring host computer foundation, the acknowledgement frame of monitoring host computer transmission is received, and
The configuration ID that the monitoring host computer is sent is received after receiving the acknowledgement frame;It is also used to communicate not setting up with the monitoring host computer
When, the corresponding polling order frame of the initialization ID is received again;
The update module obtains updating ID for updating itself the initialization ID according to the configuration ID;
Second preserving module, for saving the update ID;
Second receiving module is also used to receive the configuration that the monitoring host computer is sent after the update ID is saved
The second broadcasting command frame that ID terminates.
The present invention being made up of the second receiving module, initialization ID generation module, update module and the second preserving module
Based on wireless communication automatic addressing technology terminal device, without wired cloth complicated between monitoring host computer and terminal device
Line realizes the wireless communication network between monitoring host computer and terminal device, meets that architecture storey etc. is complicated and changeable to be applied to
Demand;Compared with traditional monitoring system, the Automatic parameter configuration and automatic load to each terminal equipment are realized, is reduced
Field wiring, without the communication ID of artificial situ configuration each terminal equipment, the terminal device that also can avoid scene leads to
Believe the identical situation of ID, facilitate the field failure investigation of monitoring system, save human cost, reduce live operation maintenance at
This, improve the satisfaction of user, without on the terminal device setting display screen come carry out communication ID configuration, reduce hardware at
This, improves monitoring efficiency, intelligent high.
Preferably, as shown in fig. 6, further including random number generation module and the second sending module;
The random number generation module is set as generating the random number of the second preset duration, and by the random number
Waiting time;
Second sending module, for terminating when the waiting time, according to the polling order frame to the monitoring
Host sends the response frame comprising the equipment Serial Number.
When by the random number of random number generation module the second preset duration of generation and as the waiting of each terminal equipment
Between, it can be convenient for determining within waiting time, whether terminal device receives the bus data of monitoring host computer transmission, so that it is determined that
Whether the initialization ID that terminal device generates is unique communication ID, and is carried out respectively according to the waiting time convenient for the second sending module
Polling order frame is responded, corresponding response frame is fed back, consequently facilitating monitoring host computer receives the response fed back according to waiting time
Frame, and frame judges whether corresponding terminal device with monitoring host computer establishes efficient communication according to response.
Embodiment five, as shown in fig. 7, the present embodiment also disclose it is a kind of based on wireless communication automatic addressing technology monitoring
System, including in the monitoring host computer based on wireless communication automatic addressing technology in embodiment three and example IV based on
The terminal device of automatic addressing technology is wirelessly communicated, and the monitoring host computer and the terminal device are wirelessly connected.
The monitoring system being made up of the terminal device in the monitoring host computer and example IV in embodiment three, without monitoring
Complicated wired wiring, realizes the wireless communication network between monitoring host computer and terminal device between host and terminal device,
Meet architecture storey etc. it is complicated and changeable be applied to demand;Compared with traditional monitoring system, realize to each terminal equipment
Automatic parameter configuration and automatic load, reduce field wiring, without the communication of artificial situ configuration each terminal equipment
There is the identical situation of communication ID, facilitate the field failure investigation of monitoring system, section in ID, the terminal device that also can avoid scene
It saves labor costs, reduces live operation maintenance cost, improve the satisfaction of user, it is aobvious without setting on the terminal device
Display screen configures to carry out communication ID, reduces hardware cost, improves monitoring efficiency, intelligent high.
It specifically, include a monitoring host computer and multiple terminal devices (001~terminal device of terminal device in the present embodiment
XXX), and monitoring host computer further includes display module, and a button control is arranged on the display module, is matched automatically for controlling
Set the unlatching of ID process.After monitoring host computer and terminal device power on, the two does not carry out any information exchange also at this time, clicks this
When button control, monitoring host computer is waited several seconds for, and is then shown on display module " prepare identification terminal equipment, it is automatic distribute ID into
In row ... ", such monitoring host computer by start terminal equipment in communication ID automatic assigning process (note: ID distribute automatically before need
Ensure that monitoring host computer can carry out physical communication with terminal device).
As shown in figure 8, the workflow of the monitoring system in the present embodiment is as follows:
1, monitoring host computer sends the first broadcasting command frame that configuration ID starts, and it is wide that chain road each terminal equipment is connected to first
It broadcasts command frame not needing to respond, but generates initialization ID according to the equipment Serial Number of terminal device itself, in the range of 1~119;
2, when the first broadcasting command frame is sent waiting 1 second, monitoring host computer is according to initialization ID from 1~119 pair of terminal
Equipment successively sends polling order frame;After terminal device receives polling order frame, according in the timer in terminal device
Count value, generate 40 milliseconds~1420 milliseconds of random number (with 20 milliseconds for interval), note this time is T, then waiting T
Time, the course of work in waiting time T are as follows:
(1) if terminal device is not received by bus data in T time, show to compete without other terminal devices total
Line, when waiting time T terminates, only the terminal device understands response monitoring host, then the corresponding initialization ID of this terminal device is
Unique address, needs response monitoring host, i.e. feedback response frame, which includes the equipment Serial Number of terminal device;
After monitoring host computer receives response frame, check whether the cyclic redundancy check in response frame is correct;If CRC is correct,
Then monitoring host computer send acknowledgement frame, and by the initialization ID of this terminal device be configured to 119+Index (initial value of Index be 1,
1) a monitoring host computer acknowledgement frame of every transmission, Index are to obtain configuration ID from increasing, save and be sent to corresponding terminal device,
Terminal device carries out ID update after receiving the acknowledgement frame, obtains updating ID and save;If crc error, monitoring host computer is vertical
Retransmit this initialization ID polling order frame, while terminal device receive polling order frame after generate 40 milliseconds again
~1420 milliseconds of random number, repeats the above process, and the polling order frame that monitoring host computer retransmits single terminal equipment does not surpass at most
Cross 5 times, more than 5 times after think that this terminal equipment in communication link is problematic, this terminal device will be abandoned;
(2) if terminal device receives bus data in T time, show at the end of waiting time T, in addition to this
Terminal device can response monitoring host, there are also multiple other terminal devices identical with the initialization ID of the terminal device in bus
The case where meeting response monitoring host, checks in response frame after monitoring host computer receives response frame according to above-mentioned identical rule
Whether cyclic redundancy check is correct, and acknowledgement frame is sent according to the correctness of CRC, and certainly by the waiting time T of other terminal devices
Reclocking after dynamic clearing is sequentially completed the new addresses distribution of multiple terminal devices for repeating ID;
3, monitoring host computer monitors bus in the whole process, after bus no data 1.5 seconds, starting is sent next
Initialize the polling order frame of ID;
4, after poll is fully completed, i.e., after configuration ID is all assigned, monitoring host computer sends that configuration ID terminates
Two broadcasting command frames continuously transmit 3 times, every minor tick 300ms, after terminal device receives the second shutdown command frame, terminate
Communicate the automatic assigning process of ID.Meanwhile it if being counted after the first broadcasting command frame sending of the terminal device since configuring ID
When, if it exceeds the second broadcasting command frame that the configuration ID for receiving monitoring host computer transmission for 5 minutes not yet terminates, then automatic to tie
Beam ID assigning process.
Details, detailed in Example three, example IV and Fig. 3 are not use up about monitoring host computer and terminal device in the present embodiment
The specific descriptions of~Fig. 6, specifically repeat no more.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (10)
1. a kind of monitoring method based on wireless communication automatic addressing technology, which is characterized in that it is applied in monitoring host computer, including
Following steps:
Step a1: the first broadcasting command frame that configuration ID starts is sent to each terminal equipment of chain road respectively;
Step a2: after sending the first preset duration that the first broadcasting command frame finishes, according to terminal device described in every
The sequence of the initialization ID of generation, successively sends polling order frame to all terminal devices;
Step a3: judgement is communicated with whether terminal device described in every is established, if so, sending out respectively to terminal device described in every
Acknowledgement frame is sent, and configures the initialization ID of every terminal device after sending the acknowledgement frame, obtains multiple configurations
ID saves multiple configuration ID and is respectively sent to the corresponding terminal device, if it is not, then return step a2;
Step a4: after saving and sending all configuration ID, sending configuration ID to terminal device described in every respectively terminates
The second broadcasting command frame, complete ID configuration.
2. the monitoring method according to claim 1 based on wireless communication automatic addressing technology, which is characterized in that described
In step a2, after the polling order frame that initialization ID is successively sent to all terminal devices further include:
Receive the response frame comprising equipment Serial Number that every terminal device is fed back according to the polling order frame.
3. the monitoring method according to claim 2 based on wireless communication automatic addressing technology, which is characterized in that described
In step a3, the specific steps whether judgement establishes communication with terminal device described in every include:
Judge whether the cyclic redundancy check in the response frame is correct, communicated if so, being established with the corresponding terminal device,
If it is not, then not setting up communication with the corresponding terminal device.
4. a kind of monitoring method based on wireless communication automatic addressing technology, which is characterized in that it is applied in terminal device, including
Following steps:
Step b1: the first broadcasting command frame that the configuration ID that monitoring host computer is sent starts is received, and wide receiving described first
After broadcasting command frame, initialization ID is generated according to equipment Serial Number;
Step b2: after the first preset duration for receiving the first broadcasting command frame, according to it is described initialization ID sequence,
Receive the polling order frame that the monitoring host computer is sent;
Step b3: after receiving the polling order frame, when communicating with monitoring host computer foundation, the monitoring host computer hair is received
The acknowledgement frame sent, and the configuration ID that the monitoring host computer is sent is received after receiving the acknowledgement frame, more according to the configuration ID
The new initialization ID is obtained updating ID and be saved;When not setting up communication with the monitoring host computer, then return step b2;
Step b4: after the update ID is saved, the second broadcasting command that the configuration ID that the monitoring host computer is sent terminates is received
Frame completes ID configuration.
5. the monitoring method according to claim 4 based on wireless communication automatic addressing technology, which is characterized in that described
In step b3, after receiving the polling order frame, further includes:
The random number of the second preset duration is generated, and the random number is set to wait for the time, is terminated when the waiting time,
The response frame comprising the equipment Serial Number is sent to the monitoring host computer according to the polling order frame.
6. a kind of monitoring host computer based on wireless communication automatic addressing technology, which is characterized in that including the first sending module, judgement
Module, configuration module and the first preserving module;
First sending module, for sending the first broadcast life that configuration ID starts to each terminal equipment of chain road respectively
Enable frame;It is also used to after sending the first preset duration that the first broadcasting command frame finishes, according to terminal device described in every
The sequence of the initialization ID of generation, successively sends polling order frame to all terminal devices;
The judgment module, for judging communicate with whether terminal device described in every is established;
First sending module is also used to when communicating with terminal device foundation, respectively to terminal device described in every
Send acknowledgement frame;It is also used to when not setting up communication with the terminal device, it is corresponding described to retransmit the initialization ID
Polling order frame;
The configuration module is obtained for configuring the initialization ID of every terminal device after sending the acknowledgement frame
To multiple configuration ID;
First preserving module, for saving multiple configuration ID;
First sending module is also used to multiple configuration ID being respectively sent to the corresponding terminal device;Also use
In after saving and sending all configuration ID, the second broadcast that configuration ID terminates is sent to terminal device described in every respectively
Command frame.
7. the monitoring host computer according to claim 6 based on wireless communication automatic addressing technology, which is characterized in that further include
First receiving module;
First receiving module receives every after successively sending the polling order frame to all terminal devices
The response frame comprising equipment Serial Number that the terminal device is fed back according to the polling order frame.
8. a kind of terminal device based on wireless communication automatic addressing technology, which is characterized in that including the second receiving module, initially
Change ID generation module, update module and the second preserving module;
Second receiving module, the first broadcasting command frame that the configuration ID for receiving monitoring host computer transmission starts;
The initialization ID generation module, for being generated according to equipment Serial Number after receiving the first broadcasting command frame
Initialize ID;
Second receiving module is also used to after the first preset duration for receiving the first broadcasting command frame, according to institute
The sequence for stating initialization ID receives the polling order frame that the monitoring host computer is sent;It is also used to receiving the polling order frame
Afterwards, when communicating with monitoring host computer foundation, the acknowledgement frame that the monitoring host computer is sent is received, and receiving the acknowledgement frame
The configuration ID that the monitoring host computer is sent is received afterwards;It is also used to receive institute again when not setting up communication with the monitoring host computer
State the corresponding polling order frame of initialization ID;
The update module obtains updating ID for updating itself the initialization ID according to the configuration ID;
Second preserving module, for saving the update ID;
Second receiving module is also used to receive the configuration ID knot that the monitoring host computer is sent after the update ID is saved
Second broadcasting command frame of beam.
9. the terminal device according to claim 8 based on wireless communication automatic addressing technology, which is characterized in that further include
Random number generation module and the second sending module;
The random number generation module is set to wait for for generating the random number of the second preset duration, and by the random number
Time;
Second sending module, for terminating when the waiting time, according to the polling order frame to the monitoring host computer
Send the response frame comprising the equipment Serial Number.
10. a kind of monitoring system based on wireless communication automatic addressing technology, which is characterized in that including such as claim 6 or 7 institutes
State based on wireless communication automatic addressing technology monitoring host computer, and as described in right 8 or 9 based on wirelessly communicate automatic seeking
The terminal device of location technology, and the monitoring host computer and the terminal device are wirelessly connected.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910250149.8A CN110034974B (en) | 2019-03-29 | 2019-03-29 | Monitoring method and system based on wireless communication automatic addressing technology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910250149.8A CN110034974B (en) | 2019-03-29 | 2019-03-29 | Monitoring method and system based on wireless communication automatic addressing technology |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110034974A true CN110034974A (en) | 2019-07-19 |
CN110034974B CN110034974B (en) | 2020-02-21 |
Family
ID=67236946
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910250149.8A Active CN110034974B (en) | 2019-03-29 | 2019-03-29 | Monitoring method and system based on wireless communication automatic addressing technology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110034974B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113225139A (en) * | 2021-03-23 | 2021-08-06 | 深之蓝(天津)水下智能科技有限公司 | Underwater real-time bidirectional wireless communication method and device, electronic device and underwater equipment |
CN115426622A (en) * | 2022-09-01 | 2022-12-02 | 深圳慧联软通科技有限公司 | Maintenance method of wireless data acquisition rod and terminal |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040148388A1 (en) * | 2003-01-24 | 2004-07-29 | Wen-Tzu Chung | Protocol at layer two for discovering and configuring network devices |
CN1925442A (en) * | 2006-08-01 | 2007-03-07 | 程伟明 | Automatic network-building method for wireless communication terminal in intelligent environment |
US20080130646A1 (en) * | 2006-12-04 | 2008-06-05 | Nolterieke Michael H | Method and system for configuring a device that has failed to obtain network address |
CN102752881A (en) * | 2011-04-21 | 2012-10-24 | 佛山市顺德区美的电热电器制造有限公司 | Wireless self-networking method of intelligent home system |
CN103152728A (en) * | 2013-02-20 | 2013-06-12 | 大唐移动通信设备有限公司 | Establishment method and device for remote connection |
CN105264839A (en) * | 2014-04-16 | 2016-01-20 | 华为技术有限公司 | Software defined network based networking method and device |
US9270791B2 (en) * | 2012-04-30 | 2016-02-23 | Dell Products, Lp | Discovery and configuration of network devices via data link layer communications |
CN109450662A (en) * | 2018-09-30 | 2019-03-08 | 浙江正泰电器股份有限公司 | Ad hoc network communication manager and network-building method, ad hoc network communication system |
US20190082342A1 (en) * | 2015-03-23 | 2019-03-14 | Extreme Networks, Inc. | Configuration of rules in a network visibility system |
-
2019
- 2019-03-29 CN CN201910250149.8A patent/CN110034974B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040148388A1 (en) * | 2003-01-24 | 2004-07-29 | Wen-Tzu Chung | Protocol at layer two for discovering and configuring network devices |
CN1925442A (en) * | 2006-08-01 | 2007-03-07 | 程伟明 | Automatic network-building method for wireless communication terminal in intelligent environment |
US20080130646A1 (en) * | 2006-12-04 | 2008-06-05 | Nolterieke Michael H | Method and system for configuring a device that has failed to obtain network address |
CN102752881A (en) * | 2011-04-21 | 2012-10-24 | 佛山市顺德区美的电热电器制造有限公司 | Wireless self-networking method of intelligent home system |
US9270791B2 (en) * | 2012-04-30 | 2016-02-23 | Dell Products, Lp | Discovery and configuration of network devices via data link layer communications |
CN103152728A (en) * | 2013-02-20 | 2013-06-12 | 大唐移动通信设备有限公司 | Establishment method and device for remote connection |
CN105264839A (en) * | 2014-04-16 | 2016-01-20 | 华为技术有限公司 | Software defined network based networking method and device |
US20190082342A1 (en) * | 2015-03-23 | 2019-03-14 | Extreme Networks, Inc. | Configuration of rules in a network visibility system |
CN109450662A (en) * | 2018-09-30 | 2019-03-08 | 浙江正泰电器股份有限公司 | Ad hoc network communication manager and network-building method, ad hoc network communication system |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113225139A (en) * | 2021-03-23 | 2021-08-06 | 深之蓝(天津)水下智能科技有限公司 | Underwater real-time bidirectional wireless communication method and device, electronic device and underwater equipment |
CN113225139B (en) * | 2021-03-23 | 2022-08-19 | 深之蓝(天津)水下智能科技有限公司 | Underwater real-time two-way wireless communication method and device, electronic device and underwater equipment |
CN115426622A (en) * | 2022-09-01 | 2022-12-02 | 深圳慧联软通科技有限公司 | Maintenance method of wireless data acquisition rod and terminal |
CN115426622B (en) * | 2022-09-01 | 2023-10-24 | 深圳慧联软通科技有限公司 | Maintenance method of wireless data acquisition rod and terminal |
Also Published As
Publication number | Publication date |
---|---|
CN110034974B (en) | 2020-02-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019196462A1 (en) | Air conditioning unit, operating method and device for air conditioning unit | |
CN109450662B (en) | Ad hoc network communication manager, networking method and ad hoc network communication system | |
EP3229420A1 (en) | Method for establishing persistent connection between multiple smart devices and server, and smart device | |
CN106878488A (en) | A kind of Modbus RTU bus address auto-allocation methods | |
CN102299833A (en) | Intelligent remote household control system and method | |
CN110233746B (en) | Home networking method and home networking AP | |
CN105610996B (en) | A kind of DHCP collision detection methods applied to interchanger | |
CN102036439B (en) | Automatic equipment identification and maintenance supported DMX512 (Digital Multiplex 512) landscape lighting control system and method | |
CN110034974A (en) | A kind of monitoring method and system based on wireless communication automatic addressing technology | |
CN102833778B (en) | System and method for testing wireless access controller | |
CN107580085A (en) | A networking method for the Internet of Things | |
CN101399722A (en) | Access method and system for wireless network device | |
CN107101348B (en) | Indoor and outdoor unit communication method and device for air-conditioning multi-connection unit and air-conditioning unit | |
CN113765795B (en) | Networking method, networking device, networking system and storage medium | |
CN107769979B (en) | Method for synchronous configuration between routers | |
CN102316079B (en) | Method, system and BEB (backbone edge bridge) equipment for realizing protocol connection in PBB (provider backbone bridge) network | |
CN208015725U (en) | Multi-split system | |
CN100342737C (en) | Method for establishing IPOA channel between base station and base station controller | |
CN110891096A (en) | Building intercom networking system and networking method | |
CN103812684B (en) | A kind of complete outdoor digital microwave transmission equipment independent and mandatory administration passage implementation method and device | |
CN210536687U (en) | Building intercom networking system | |
CN111768165A (en) | Intelligent building design system and design method thereof | |
CN114866411B (en) | Deployment management method and system for Internet of things equipment | |
CN119012314A (en) | Automatic networking configuration method and system for long-distance wireless communication | |
CN211554761U (en) | Temperature control system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |