Obtain the method for wireless collecting network nodal information
[technical field]
The present invention relates to collection and copy, relate in particular to wireless collection and copy.
[background technology]
It all is to adopt wired collection to copy mode that present system's collection is copied, and wired collection mode of copying need be laid a large amount of circuits between the building residence, the installation and maintenance complexity, and extended capability is relatively poor, and it is not very flexible using.
Along with the continuous decline of the continuous maturation and the cost price of short-distance wireless communication technology, the wireless collection mode of copying has obtained user's acceptance and approval gradually.Chinese patent 02130969.8 discloses a kind of method and system of remote wireless meter recording, another data center station is transmitted news in brief breath through a mobile phone network and is instructed to remote control device, remote control device is set up the bluetooth binding and is read the number of degrees with each number of degrees repayment device then receiving that searching all number of degrees of periphery immediately after these news in brief cease repays devices.This radio meter register mode escapable cost.But, send amr message passively by remote control in this radio meter register, need the meter reading personnel to wait to operate and check meter; Only have the number of degrees of simply copying ammeter, can not obtain the information such as state, ambient temperature of ammeter in real time; Adopt simple point-to-point wireless connections, can only search the repayment device in 100 meters, and the number of the repayment node of setting up on remote control is less, has not extensibility.
[summary of the invention]
Purpose of the present invention solves the problems of the prior art exactly, proposes a kind of method of obtaining wireless collecting network nodal information, is applied in the centralized meter-reading system, need not lay circuit between the building residence, and convenient for installation and maintenance, extended capability is strong, applying flexible.
For achieving the above object, the present invention proposes a kind of method of obtaining wireless collecting network nodal information, comprise the steps:
The request of data convergence node broadcasts: the data convergence node is according to certain time interval, and all wireless communication nodes in wireless collection diddle-net network are broadcasted a frame nodal information request msg;
Wireless communication node echo reply: the wireless communication node that receives above-mentioned broadcast node information request data, can obtain the unique identification of above-mentioned data convergence node, note this frame nodal information request msg arrives this wireless communication node from the data convergence node routing iinformation, and behind one section time delays at random, according to above-mentioned routing iinformation, return a frame nodal information reply data to the data convergence node;
The data convergence node processing is uploaded: the nodal information reply data that above-mentioned each wireless communication node of data convergence node arrangement returns, and the information that is comprised in these nodal information reply datas handled, upload to the database with these associating informations, thereby obtain the nodal information of whole wireless collection diddle-net network.
As preferably, described wireless communication node is connected with electric energy meter, it is the communication equipment that possesses short range, wireless signals reception, sending function, this communication equipment is supported routing function, can with data convergence node in the above-mentioned wireless collection diddle-net network or other any wireless communication nodes exchange message wirelessly, and can pass through serial mode, perhaps RS232 mode, perhaps RS485 mode is according to appropriate protocol, with the electric energy meter exchange message.
As preferably, described routing function is meant any one wireless communication node in the above-mentioned wireless collection diddle-net network, can utilize one or more other similar wireless communication nodes in this network as relay point, set up the radio communication channel with other any wireless communication nodes in the network; This wireless communication node itself also can be used as the relay point on the similar radio communication channel, for other any similar wireless communication nodes are set up the radio communication channel.
As preferably, the broadcasting of assembling in the node broadcasts request is meant at all wireless communication nodes transmissions in the wireless collection diddle-net network, rather than only send at wherein certain or certain several wireless communication nodes, specifically be, data convergence node all wireless communication nodes in its communication range send, and receive the wireless communication node of this broadcast data, all wireless communication nodes that also continue in communication range separately send this broadcast data, make every effort to make all nodes in the above-mentioned wireless collection diddle-net network all to receive this broadcast data.
As preferably, the nodal information request msg of assembling in the node broadcasts request is meant in accordance with appropriate protocol, according to certain tactic one group of data, the length of these group data changes according to its content, and its content comprises the information such as lock in time of the unique identifier and the wireless collection diddle-net network of the unique identifier of nodal information request type, data convergence node, wireless collection diddle-net network at least.
As preferably, described nodal information request type can be selected one or more of following type:
A) the electric energy meter number of wireless communication node connection: the wireless communication node that requires to receive the nodal information request msg returns the electric energy meter number that this node connects;
B) the electric energy meter table number that connects of wireless communication node: the wireless communication node that requires to receive the nodal information request msg returns the table number of the electric energy meter that this node connects;
C) state of the electric energy meter of wireless communication node connection: the wireless communication node that requires to receive the nodal information request msg returns the current running status of electric energy meter that this node connects, these states include but not limited to: whether electric energy meter is wrong, fault or warning, battery dump energy etc.
As preferably, the unique identifier of described data convergence node is a data sign, by this Data Identification, can unique specified data assemble node.
As preferably, the unique identifier of described wireless collection diddle-net network is a data sign, by this Data Identification, can uniquely determine a wireless collection diddle-net network, obscures to avoid the wireless communication node in adjacent two different radio collection diddle-net network.
As preferably, be meant the time that the data convergence node is held the lock in time of described wireless collection diddle-net network, require in the whole wireless collection diddle-net network all wireless communication nodes all with this time keep going up to greatest extent consistent.
As preferably, the routing iinformation in the wireless communication node echo reply is meant a certain node from wireless collection diddle-net network, arrives the information of other via nodes in the consolidated network of the required process of another node in the consolidated network.
As preferably, the nodal information reply data in the wireless communication node echo reply is meant observes appropriate protocol, according to certain tactic one group of data.The length of these group data changes according to its content, its content comprise at least the unique identifier of making the wireless communication node of replying and with the nodal information request msg in the corresponding data message of nodal information request type that comprised.
As preferably, described data convergence node is meant the destination node that various information are assembled in the wireless collection diddle-net network, and this node can be the some wireless communication nodes in the above-mentioned wireless communication node, or possesses the autonomous device of identical short-range communication capabilities.
As preferably, uploading during the data convergence node processing is uploaded is meant by suitable means of communication, data are delivered in the destination device according to suitable form, and above-mentioned means of communication includes but are not limited to GPRS, RS232, PSTN, USB, infrared, bluetooth, Ethernet.
As preferably, the database during the data convergence node processing is uploaded is meant the data management software that runs on the PC computer, can carry out layout and arrangement to data, and functions such as inquiry, management are provided.
Beneficial effect of the present invention: the method that the present invention obtains wireless collecting network nodal information comprises the node broadcasts request of assembling, communication node echo reply and assemble node processing and step such as upload, the data convergence node is according to certain time interval, other node broadcasts one frame data in same wireless collection diddle-net network, notify other nodes, this node is the data convergence node of current wireless collection diddle-net network, each node that receives this broadcast frame set up in view of the above and the data convergence node between binding, return a frame reply data to the data convergence node then, the data convergence node is added up the reply data frame that all receive, just can obtain the nodal information of whole wireless collection diddle-net network, thereby can effectively manage network.The present invention can provide the real time information of each node in the wireless collection diddle-net network to the user, is convenient to each node is managed and controls; The upper strata collection is copied the real time information of software according to each node in the wireless collection diddle-net network, can in time find out of order node, thereby overhaul as early as possible and handle, and avoids causing danger and reducing the loss; For out of order node, the upper strata collection is copied software and can not attempted sending instruction to it, thereby reduces invalid communication, alleviates the wireless communication burden, makes this wireless collection diddle-net network more stable; The wireless collection mode of copying is compared with existing wired collection mode of copying to be had convenient for installation and maintenancely, and expandability is strong, traffic rate height, advantages such as applying flexible; Assemble the every certain interval of time of node just initiatively to each communication node broadcast message, the real-time status of obtaining communication node initiatively; Can obtain the multiple integrated information such as ambient temperature, ammeter state of ammeter in real time; Adopt routing mode to make system have extensibility, each is assembled on the node can connect more communication node, thereby saves resource; Short-distance wireless communication technology maturation of the present invention, cost price are low, and this technology is applied in the radio ammeter centralized meter-reading system, have obtained user's acceptance and approval, along with all-round popularization of the present invention is used, will produce far-reaching influence to the electric utility of China.
Feature of the present invention and advantage will be elaborated in conjunction with the accompanying drawings by embodiment.
[description of drawings]
Fig. 1 is the flow chart that the present invention obtains the method for wireless collecting network nodal information;
Fig. 2 is the schematic diagram that the present invention obtains the method for wireless collecting network nodal information.
[embodiment]
Fig. 1 is the flow chart that the present invention obtains the method for wireless collecting network nodal information; Fig. 2 is the schematic diagram that the present invention obtains the method for wireless collecting network nodal information.
In wireless collection diddle-net network, include a plurality of wireless communication nodes and a data convergence node.Be connected by serial mode between wireless communication node and the electric energy meter, observe suitable communication protocol, wireless communication module can be visited the information of electric energy meter inside, and these information include but not limited to: electric table number is the unique sign of ammeter, ammeter state, electric energy metrical reading.The data convergence node not only can be communicated by letter with other wireless communication nodes in the collection diddle-net network by wireless mode, but also is connected with database.Therefore, from logic, the data convergence node is the central point of whole wireless collection diddle-net network; On the angle of network service, the data convergence node is the gateway of whole wireless collection diddle-net network.The data convergence point can obtain the information of other all wireless communication nodes in the wireless collection diddle-net network at interval according to certain hour.This time interval can suitably be set according to user's request, unsuitable oversize also should not be too short.If the time interval is too short, the communications burden of wireless network will be increased; If the time interval is long, then the state information of node will be too outmoded, and real-time is not good.
The method of obtaining wireless collecting network nodal information mainly comprises following three steps:
Data convergence node broadcasts request 1: the data convergence node is according to certain time interval, and all wireless communication nodes in wireless collection diddle-net network are broadcasted a frame nodal information request msg.
When the data convergence node need obtain the information of other wireless communication nodes in the wireless collection diddle-net network, to whole Web broadcast one frame nodal information request msg.Broadcasting is meant that all receive the wireless communication node of this Frame, all repeats to send once this request of data frame, and purpose is all wireless communication nodes of making every effort to make in the wireless collection diddle-net network, can both receive this frame nodal information request msg.
In this frame nodal information request msg, comprise following information at least: nodal information request type, the unique identifier of data convergence node, the unique identifier of wireless collection diddle-net network, the lock in time of wireless collection diddle-net network.
Wherein, the nodal information request type comprises following several types at least, and the nodal information request type in the nodal information request msg, can select in the following type one or more:
A) the electric energy meter number of wireless communication node connection: the wireless communication node that requires to receive the nodal information request msg returns the electric energy meter number that this node connects;
B) the electric energy meter table number that connects of wireless communication node: the wireless communication node that requires to receive the nodal information request msg returns the table number of the electric energy meter that this node connects;
C) state of the electric energy meter of wireless communication node connection: the wireless communication node that requires to receive the nodal information request msg returns the current running status of electric energy meter that this node connects, these states include but not limited to: whether electric energy meter is wrong, fault or warning, battery dump energy etc.
The unique identifier of data convergence node is a data sign, can unique specified data assemble node by this Data Identification.
The unique identifier of wireless collection diddle-net network is a data sign, can uniquely determine a wireless collection diddle-net network by this Data Identification, obscures to avoid the wireless communication node in adjacent two different radio collection diddle-net network.
Be the time that the data convergence node is held the lock in time of wireless collection diddle-net network, require in the whole wireless collection diddle-net network all wireless communication nodes all with this time keep going up to greatest extent consistent.
Wireless communication node echo reply 2: the wireless communication node that receives above-mentioned broadcast node information request data, can obtain the unique identification of above-mentioned data convergence node, note these frame data arrive this node from the data convergence node routing iinformation, and behind one section time delays at random, according to above-mentioned routing iinformation, return a frame nodal information reply data to the data convergence node.
Receive the wireless communication node of nodal information request msg,, the nodal information request msg that receives handled according to following step:
The unique identifier of the wireless collection diddle-net network that 21) is comprised in the decision node information request data, the identifier of the wireless collection diddle-net network of preserving with this node is identical.As inequality, illustrate that then received nodal information request msg receives from other wireless collection diddle-net networks, be invalidation request, abandon this nodal information request msg, jump to step 27); If identical, then the order execution in step 22).
22) according to suitable method, according to the lock in time that is comprised in the nodal information request msg, adjust the time of this node, the time that makes this node and the time of data convergence node go up to greatest extent consistent.
23) unique identifier of the data convergence node that is comprised in the preservation nodal information request msg, and automatic reporting information after this all attempts sending to the well-determined data convergence node of this identifier.Automatically reporting information includes but not limited to: electric energy meter reading, the warning message that electric energy meter produces, ambient temperature, humidity etc.
24) note this frame nodal information request msg arrives this node from the data convergence node routing iinformation.Follow this routing iinformation, this node can send to data the data convergence node fast, efficiently, and success rate is higher.If do not write down above-mentioned routing iinformation, then this node need perhaps need to inquire about route when the data convergence node sends data, perhaps need send with the form of broadcasting, no matter be in which way, all can increase the network service burden.
25) wireless communication node is before data convergence node echo reply, need carry out the time-delay of one section random-length earlier, purpose is a wireless communication node of avoiding all to receive the nodal information request msg, sends reply data and causes the communication of wireless collection diddle-net network to stop up at synchronization.Can select the random-length of time-delay according to suitable method, and make each wireless communication node take different time-delay length as far as possible, to avoid taking place communication contention aware.
26) after time-delay, according to step 24) routing iinformation that write down, return a frame reply data to the data convergence node.In these frame data, comprise following information at least: the unique identifier of this node, and with the nodal information request msg in the corresponding data message of nodal information request type that comprised.
27) withdrawing from the nodal information request msg handles.
The data convergence node processing uploads 3: the nodal information reply data that above-mentioned each wireless communication node of data convergence node arrangement returns, and the information that is comprised in these node reply datas handled, upload to the database with these associating informations, thereby obtain the nodal information of whole wireless collection diddle-net network.
From the reply data that wireless communication node returns, the data convergence node can obtain to reply the unique identifier of node, and with the nodal information request msg in the corresponding data message of request type.The data convergence node is added up all reply data information of returning, and these information are arranged according to suitable mode, uploads in the database with suitable communication protocol unification at last.Other application programming interfaces just can obtain the real time information of each wireless communication node in the whole wireless collection diddle-net network by this database of inquiry.
By analyzing the reply data information that each wireless communication node returns, just can obtain in present wireless collection diddle-net network, which wireless communication node is working properly, and fault has appearred in which wireless communication node.The visit that this not only can optimize each wireless communication node in the wireless collection diddle-net network also can in time note abnormalities or fault, thereby take suitable treatment measures, avoids resulting in greater loss.
ZigBee is a kind of wireless communication technology that is proposed and advocated by motorola inc, and its maximum characteristics are super low-power consumptions and support complicated network TOP structure, in the short-distance wireless communication field that the low-power consumption demand is arranged boundless market prospects arranged.The ZigBee technology is compared with Bluetooth technology and is wanted much simple, so the ZigBee technology only needs the less hardware memory in realization, takies the less CPU processing time.The protocol stack of ZigBee is fairly simple, probably has only 1/4 size of bluetooth or 802.11 protocol stacks, this for reduce cost and maintenance cost be very important characteristic.At the time-delay and the power consumption demand of different application, Bluetooth technology has been formulated different mode of operations and state, comprises sniff, park, hold, active etc.And ZigBee only comprises activation and two kinds of mode of operations of dormancy.Therefore application program only need be concerned about how to satisfy application demand, and needn't consider how at different application mode of operation to be optimized.ZigBee also supports complicated network TOP structure.So short-distance wireless communication mode of the present invention preferably adopts ZigBee, certainly, also can adopt the poor slightly bluetooth of performance, technology such as small wireless.
The present invention can realize following multinomial function by above-mentioned three steps:
Statement data convergence point: data convergence node other wireless communication nodes in wireless collection diddle-net network have been issued the unique identifier of oneself, thereby have indicated the destination node of automatic reporting information to each wireless communication node.
Obtain routing iinformation: each wireless communication node can obtain to point to the routing iinformation of data convergence node, therefore when the data convergence node sends data, follow this route and can efficiently, efficiently data be sent to the data convergence node, and needn't send by the mode of broadcasting or inquiring about again route, alleviated the wireless communication burden.
Obtain lock in time: wireless communication node can be consistent with the data convergence node retention time to greatest extent, and this will improve the accuracy that collection is copied to a great extent.
Obtain real time node information: the data convergence node can obtain the information of each wireless communication node in the wireless collection diddle-net network, according to these information, can understand the real time information of each wireless communication node, thereby improve the performance of whole centralized meter-reading system.
The foregoing description is to further specify of the present invention; not to concrete qualification of the present invention; the present invention is preferably applied to the electric meters collecting system, also can be applied to other association area, any to the inventive method simple replacement or migrate and all belong to protection scope of the present invention.