CN103259879B - Calibration method and device for equipment nodal point codes - Google Patents
Calibration method and device for equipment nodal point codes Download PDFInfo
- Publication number
- CN103259879B CN103259879B CN201310138109.7A CN201310138109A CN103259879B CN 103259879 B CN103259879 B CN 103259879B CN 201310138109 A CN201310138109 A CN 201310138109A CN 103259879 B CN103259879 B CN 103259879B
- Authority
- CN
- China
- Prior art keywords
- address code
- node
- code
- judging
- equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Small-Scale Networks (AREA)
Abstract
The invention discloses a calibration method and device for equipment nodal point codes. The calibration method for the equipment nodal point codes comprises the steps of receiving heartbeat information sent by the equipment nodal points, wherein the heartbeat information comprises equipment nodal point identification and address codes; judging whether the address codes are illegal address codes according to preset address codes; after judging the address codes are illegal address codes, increasing preset value of the present address codes so as to obtain new address codes, and updating the present address codes into the new address codes; sending calibration orders containing the new address codes to the equipment nodal points. The calibration method and device for the equipment nodal address codes distributes address codes for various equipment nodal points in a successive order of the equipment nodal points uploading heartbeat information, makes full use of heartbeat mechanisms of the equipment nodal points, does not need increase of extra hardware devices, can be realized through application programming, is low in cost, is not restricted to special communication protocols, and is high in compatibility.
Description
Technical field
The present invention relates to node address distribution field, particularly to a kind of scaling method of equipment node address code and dress
Put.
Background technology
In dcs, usually contain the equipment of a large amount of same types, these equipment pass through bus interconnection, every
Equipment corresponds to a device node.When device node needs to realize data exchange, for identifying each independent device node, it is
In system, each device node must have unique mark, to distinguish other equipment node with this.
In the application, set node address frequently with for device node each in system, to distinguish other equipment node, that is, often
An equipment node address code is all comprised, this equipment node address code has uniqueness in systems inside individual device node.If
Slave node address code is included in the data that device node is sent, and data receiver sets according to the identification of this equipment node address code
Slave node.
The realization of equipment node address code includes hardware number and automatic numbering two ways.Under hardware mode, equipment
Node address code is determined by the internal circuit configuration of equipment, arranges equipment section by changing the hardware configuration of this device interior for it
Dot address code.Hardware mode stability is higher, realizes relatively simple, but needs to take hardware resource, relatively costly;Meanwhile, if
When slave node is more, the Comparision arranging node address code for each device node is loaded down with trivial details and error probability is higher.Automatically compile
Number mode has multiple, such as enters row address distribution according to the electric sequence of device node, its deficiency is to need to increase sequential control
Hardware cell, leads to cost to increase;Also as by way of being transmitted and controlled token by bus, its deficiency is that newly added equipment has to comply with
The existing communication protocol of bus, thus lead to interface compatibility poor.
Therefore it provides a kind of low cost and high scaling method of equipment node address code of compatibility and device are current bases
The problem that skilled person needs to solve.
Content of the invention
Therefore, it is an object of the present invention to provide the mark of a kind of low cost and the high equipment node address code of compatibility
Determine method, including:The heartbeat message that receiving device node sends;Described heartbeat message includes device node mark and address code;
Judge whether described address code is illegal address code according to default address code standard;Judging described address code as illegal address
After code, it is worth to new address code by default for code increase in current address, described current address code is updated to described new address
Code;Send the demarcation comprising described new address code to instruct to described device node;Judging described address code as legal address
During code, store device node mark and the address code in described heartbeat message, and update and demarcate nodes;Judge described in
When demarcation nodes are more than or equal to predetermined nodes to be calibrated, the device node of output storage identifies and address code.
Further, described scaling method also wraps after the step of described " judging described address code as illegal address code "
Include:Judge whether warping apparatus node;After judging to there is warping apparatus node, by described warping apparatus address of node
Code is as described new address code;When judging there is not warping apparatus node, execution is described " to be increased described by current address code
Default be worth to described new address code " step.
Further, described scaling method also includes after the step of described " judgement has warping apparatus node ":Sentence
The disconnected address code that whether receives within a preset time interval substitutes configured information;Judging that receiving described address code substitutes instruction letter
During breath, the step of execution described " using described warping apparatus address of node code as described new address code ";Judging not receiving
To described address code substitute configured information when, shield described warping apparatus node, and judge whether exception described in being back to
The step of device node.
Further, the scaling method of described equipment node address code also includes:Generate and send address code and reset and refer to
Make to described device node, described address code reset instruction is pre- for indicating that the address code of itself is reset to by described device node
Definite value;And/or;Generate and send the individual equipment node including address code and demarcate instruction to described device node, described single
Device node is demarcated instruction and is demarcated for indicating that the address code of itself is updated to described individual equipment node by described device node
Address code in instruction.
Further, described " generate and send the individual equipment node including address code and demarcate instruction to described equipment "
Step after also include:Record described individual equipment node and demarcate the address code in instruction;Receiving described device node
After the heartbeat message sending, judge that the address code in described heartbeat message demarcates the address in instruction with described individual equipment node
Whether code is consistent, and when judging consistent, output individual equipment node demarcates successful information.
Further object is that providing a kind of low cost and the demarcation of the high equipment node address code of compatibility
Device, including:Receiver module, the heartbeat message sending for receiving device node;Described heartbeat message includes device node mark
Know and address code;According to default address code standard, processing module, for judging whether described address code is illegal address code;?
After judging described address code as illegal address code, it is worth to new address code by default for code increase in current address, and works as described
Front address code is updated to described new address code;Sending module, for send comprise described new address code demarcation instruct to
Described device node;Memory module, for when described judging submodule judges described address code as legal address code, storing institute
State device node mark and the address code in heartbeat message;Display module, for marking described in the judgement of described judging submodule
When determining nodes and being more than or equal to predetermined nodes to be calibrated, the device node mark of output described memory module storage and ground
Location code.
Further, described processing module includes:Judging submodule, described in judging according to default address code standard
Whether address code is illegal address code;And for when judging described address code as illegal address code, continuing to determine whether to exist
Warping apparatus node;Process submodule, for when described judging submodule judges to there is warping apparatus node, by described exception
The address code of device node is as described new address code;And for judging there is not warping apparatus section in described judging submodule
During point, current address code is increased described presetting and is worth to described new address code;And for sentencing in described judging submodule
When fixed described address code is legal address code, updates and demarcated nodes.
Further, the caliberating device of described equipment node address code also includes:Reset control module, for generate and
Send address code reset instruction to described device node, described address code reset instruction be used for indicating described device node by itself
Address code be reset to predetermined value;And/or;Single demarcation control module, sets including the single of address code for generating and sending
Slave node demarcates instruction to described device node, and described individual equipment node is demarcated instruction and is used for indicating that described device node will be from
The address code of body is updated to described individual equipment node and demarcates the address code in instruction.
The scaling method of equipment node address code that the present invention provides and device upload in heartbeat message according to device node
Address code judge when needing to distribute address code for it, current address code is increased and default is worth to new address code and then distribution
To corresponding device node, current address code is updated to this new address code simultaneously, realizes uploading heartbeat according to device node
The sequencing of information is that each device node distributes address code, takes full advantage of the heartbeat mechanism of device node, need not be existing
Increase extra hardware unit in control system, undergo technological transformation without to the hardware device of existing control system, pass through
Application programming can achieve, cost is little, and does not limit to specific communication protocol, and compatibility is high.
Brief description
Fig. 1 is the main-process stream schematic diagram of the scaling method embodiment of equipment node address code that the present invention provides;
Fig. 2 is the flow chart of the equipment node address code sequential calibration embodiment of the method for step 104 instruction in Fig. 1;
Fig. 3 is the flow chart that in Fig. 2, step 204 indicates locking equipment node address code embodiment of the method really;
Fig. 4 is the flow chart of the individual equipment node address code calibrating method embodiment of step 106 instruction in Fig. 1;
Fig. 5 is the flow chart of the homing device node address code embodiment of the method for step 102 instruction in Fig. 1;
Fig. 6 is the structural representation of the caliberating device embodiment of equipment node address code that the present invention provides.
Specific embodiment
Describe the present invention below in conjunction with the accompanying drawings, the description of this part is only exemplary and explanatory, should not
There is any restriction effect to protection scope of the present invention.Additionally, those skilled in the art are according to the description of presents, can be right
Feature in embodiment and different embodiment in presents can mutual respective combination.
Embodiment of the method
Fig. 1 is the main-process stream schematic diagram of the scaling method embodiment of equipment node address code that the present invention provides, as Fig. 1 institute
Show, it includes:
Step 101:The supervising device of control system judges whether to receive for indication reset equipment node address code
One trigger message;If receiving, proceed to step 102;If not receiving, proceed to step 103;
During concrete operations, the generation of this first trigger message can be realized by the man-machine interaction unit of control system, such as
The SR that operator clicks on the human-computer interaction interface (as touch-screen) of control system produces above-mentioned first triggering immediately
Information;Certainly, reset operation interface can also be set as needed, this reset operation interface can be arranged and treat homing device section
The options (as drop-down dialog box) of point quantity or input frame, comprise to treat homing device in order in above-mentioned first trigger message
Number of nodes, according to this, the supervising device of control system treats that homing device number of nodes judges whether whether reset operation is successful
(referring to the explanation of Fig. 5);
Step 102:The flow process of the address code of the execution each device node of reset;Concrete operations refer to the explanation of Fig. 5;
Step 103:The supervising device of control system judges whether to receive for instruction equipment node address code sequential calibration
The second trigger message;If receiving, proceed to step 104;If not receiving, proceed to step 105;Equally, this second triggering letter
Breath can also be realized by the human-computer interaction interface of control system, does not hereby repeat;Sequential calibration behaviour can also be set as needed
Make interface, this sequential calibration operation interface can arrange options or the input frame of device node quantity to be calibrated, so that
Include line node sum (referring to the explanation of Fig. 2) in the second trigger message;
Step 104:The flow process of execution equipment node address code sequential calibration;Concrete operations refer to the explanation of Fig. 2;
Step 105:The supervising device of control system judges whether to receive for indicating the demarcation of individual equipment node address code
The 3rd trigger message;If receiving, proceed to step 106;Equally, the 3rd trigger message can also be man-machine by control system
Interactive interface, to realize, does not hereby repeat;Individual equipment proving operation interface can also be set as needed, and this individual equipment is demarcated
Device identification to be calibrated and the options of address code for device node to be calibrated distribution or defeated can be arranged on operation interface
Enter frame, include device identification to be calibrated and the address code for device node distribution to be calibrated in order to the 3rd trigger message
(referring to the explanation of Fig. 4);
Step 106:The flow process that execution individual equipment node address code is demarcated;Concrete operations refer to the explanation of Fig. 4.
It is understood that Fig. 1 is mainly used in illustrating that the scaling method of the equipment node address code of present invention offer is implemented
Equipment node address code sequential calibration method, individual equipment node address code calibrating method and each device node ground comprising in example
Three kinds of independent flow of location code repositioning method, wherein, equipment node address code sequential calibration flow process is mainly used in new access device section
The address code distribution of point, individual equipment node address code demarcates flow process with equipment node address code reset flow process according to practical operation
Needs can execute at any time;The not precedence relation in existence time or master slave relation in logic between each flow process, Fig. 1 institute
Show that step is arranged mainly for convenient description, should not being construed as limiting property explain.Additionally, the mark of each equipment node address code of the present invention
Determine embodiment of the method mainly to coordinate to complete by the supervising device in control system and device node information exchange, this device node can
To be IO (input and output) equipment being connected by bus with supervising device.
Fig. 2 is the flow chart of the equipment node address code sequential calibration embodiment of the method for step 204 instruction in Fig. 1, such as Fig. 2
Shown, it includes:
Step 201:The supervising device of control system initializes current address code and has demarcated nodes;As:By current position
Location code is set to 1, certainly can also be the coding of " 1 " corresponding various systems;Demarcated nodes and be set to 0;
Step 202:The heartbeat message that the supervising device receiving device node of control system uploads, this heartbeat message includes setting
Slave node mark and address code;Wherein device node mark can be the product ID with uniqueness;
Step 203:The supervising device of control system judges the address in this heartbeat message according to default address code standard
Whether code is legal;As:The scope of legal address code can be preset, when the address code in heartbeat message belongs to above-mentioned legal
During the scope of address code, determine that the device node sending this heartbeat message has been calibrated (having distributed address code), need not
Reallocation address code, proceeds to step 207;When the address code in heartbeat message is not belonging to the scope of above-mentioned legal address code, really
Surely the device node sending this heartbeat message needs to distribute address code to realize demarcating, and proceeds to step 204;
Certainly, the address code of device node to be calibrated is generally default initial value, during concrete operations, can also will be somebody's turn to do
Default initial value, as the criterion of illegal address code, that is, when the address code in heartbeat message is this initial value, judges
The device node sending this heartbeat message needs to distribute address code;
Step 204:Enter the flow process determining address code, its concrete operations refers to the explanation of Fig. 3;
Step 205:The supervising device of control system sends demarcates instruction;This demarcation instruction includes the ground of step 204 determination
Location code (i.e. new address code);Sending and demarcating the mode instructing to be the mode of broadcast or one-to-one transmission;In sending method
When by the way of broadcast, this demarcation instruction also includes the device node mark in the heartbeat message receiving in step 202, so that
Judge whether (to refer to step to itself carrying out proving operation after instructing in the demarcation receiving broadcast in each device node
The explanation of 205b);Certainly, when using one-to-one transmission, the supervising device of control system directly connects according in step 202
Device node mark in the heartbeat message received, the demarcation instruction including new address code is sent directly to corresponding equipment section
Point, that is, demarcate instruction and can include device node mark;
Step 206:Record above-mentioned new address code and the device node mark being calibrated device node;May be appreciated
It is that step 206 can be carried out with step 205 simultaneously, or carries out between step 204 and step 205;
Step 207, stores device node mark and the address code in this heartbeat message, and updates and demarcate nodes, such as:
Demarcated nodes and added 1;
Whether step 208, judge above-mentioned nodes of having demarcated more than or equal to the second triggering letter in step 103 shown in Fig. 1
Line node sum in breath, if so, then execution step 209;If it is not, being then back to step 202;
Step 209, the address code of all proven device node of storage in output step 207;The way of output can
Think that directly the display device (as human-computer interaction interface) in control system above shows or defeated by way of printing
Go out.
It is understood that the flow process that above-mentioned steps 201-209 are primarily directed to supervising device side is described;Continuing with
Refering to Fig. 2, corresponding to the operation of supervising device side, device node side has corresponding operation, specific as follows:Corresponding to step
202 operation, device node execution step 202a, upload heartbeat message periodically;The corresponding operation with step 205 simultaneously,
Device node execution step 205a, that is, receive the demarcation instruction that supervising device issues, and instruct execution step according to this demarcation
205c, changes the address code of simultaneously storage devices node according to this demarcation instruction;If supervising device is using wide in certain step 205
The mode broadcast issues above-mentioned demarcation instruction, and correspondingly, device node went back execution step 205b before execution step 205c, that is, sentence
The disconnected device node demarcated in instruction identifies whether the device node mark for itself, if then execution step 205c, if it is not, then
Do not carry out action.
This enforcement is passed through supervising device and is judged not needing to divide for it according to the address code in device node upload heartbeat message
When joining address code, update and demarcate nodes, and when demarcating nodes and reaching line node sum, output all has been marked
The address code of fixed device node, convenient inspection, know the state to device node sequential calibration in time.
Fig. 3 is the flow chart that in Fig. 2, step 204 indicates locking equipment node address code embodiment of the method really, as Fig. 3 institute
Show, it includes:
Step 301:Judge whether abnormal nodes;If so, then execution step 302, if it is not, then execution step 305;
During concrete operations, such as supervising device determines the heartbeat not receiving a certain device node in certain period of time
Information, then using this device node as abnormal nodes, can also give abnormal nodes mark for it according to actual needs, and accordingly
The information of storage abnormal nodes;Follow-up supervising device judges there are abnormal nodes when inquiring abnormal nodes information, that is, walk
Rapid 301 can be realized by inquiry means;
Step 302:Judge that whether receiving address code within a preset time interval substitutes configured information;If so, then execute
Step 304, if it is not, then execution step 303;
The effect of this step is:The setting as new addition using abnormal nodes address code can be chosen whether in order to operator
Which when slave node address code, particularly multiple abnormal nodes, it is easy to indicate the address code of abnormal nodes as new addition equipment
Address of node code;Address code substitutes configured information and can trigger generation by the human-computer interaction interface of control system, such as
Corresponding abnormal nodes information can be shown when supervising device judges to there are abnormal nodes, such as its device node sequence number
With address code, so that operator refers to, and provide replacement ACK button, in order to operate, determine the address of this abnormal nodes
Touch this replacement ACK button when code is as the new address code adding device node, and then produce address code and substitute configured information;
Step 303:The corresponding abnormal signal of shielding, and return to step 301;
Step 304:Using warping apparatus address of node code as new address code, reset corresponding warping apparatus node simultaneously
Relevant information (show, by the use of this warping apparatus node as the new address code adding device node, profit to be not repeated
With);
Step 305:Judge that whether current address code is equal to predetermined upper limit value, if so, then execution step 307;If it is not, then holding
Row step 306;
Step 306:Current address code is increased to preset and is worth to new address code;Current address code is updated to this simultaneously
New address code;
During concrete operations, this preset value can be various values such as " 1 ", " 2 " and " -1 ";If current address code is added 1 as
New address code, then can realize sending the order of heartbeat message according to each device node, each device node is continuously incremented by
Formula distributes address code, when in above-mentioned steps 201, current address code is initialized as 1 by supervising device, by arranging preset value
The address code that device node can be realized for " 1 " is the serial number that device node uploads heartbeat message;If this preset value be "-
When 1 ", then realize continuously degression type distribution address code, if this preset value is " 2 ", realize discontinuous incrementally distributing
Address code;
Step 307:OPADD code error message, can also carry out operation of reporting to the police as needed further;
Step 308:Open warping apparatus node shield, the warping apparatus address of node code that is, opening does not reuse,
So that next time utilizes.
This enforcement is passed through supervising device and is judged to need to distribute for it according to the address code in device node upload heartbeat message
During address code, it is worth to default for code increase in current address new address code and then distributes to corresponding device node, will simultaneously
Current address code is updated to this new address code, and realizing according to the sequencing that device node uploads heartbeat message is each equipment section
Point distribution address code, takes full advantage of the heartbeat mechanism of device node, need not increase extra hardware in existing control system
Device, is undergone technological transformation without to the hardware device of existing control system, be can achieve by application programming, cost is little,
And do not limit to specific communication protocol (device node uploads heartbeat message), compatibility is high;Simultaneously by abnormal nodes
Newly added node can be automatically configured to warping apparatus address of node code, to realize address by the monitor in real time detection of information
Code fully recycle, effective save resources.
Fig. 4 is the flow chart of the individual equipment node address code calibrating method embodiment of step 106 instruction in Fig. 1, such as Fig. 4
Shown, it includes:
Step 401:Device identification to be calibrated in 3rd trigger message in supervising device step 105 according to Fig. 1 and
Address code for device node to be calibrated distribution generates the demarcation instruction of individual equipment node, and sends the demarcation of this individual equipment node
Instruction;
As the above-mentioned explanation to step 205, what the demarcation of this individual equipment node instructed issues mode can be
The mode of broadcast or man-to-man mode, hereby do not repeat;For subsequent survey operation, can also store and above-mentioned wait to mark
Locking equipment mark and the address code for device node distribution to be calibrated, refer to the explanation of step 403;
Step 402:The heartbeat message that supervising device receiving device node uploads;
Step 403:Supervising device is grasped to the single demarcation of device node according to the heartbeat message inspection that device node feeds back
Whether successful make;Specifically, judge address code in the heartbeat message that the device node to be calibrated receiving in step 402 uploads with
Whether the address code for device node to be calibrated distribution of step 401 storage is consistent;If unanimously it is determined that demarcating successfully;If no
Unanimously it is determined that demarcating unsuccessfully.
It is understood that the flow process that above-mentioned steps 401-403 are primarily directed to supervising device side is described;Continuing with
Referring to Fig. 4, corresponding to the operation of supervising device side, device node side has corresponding operation, specific as follows:Corresponding to step
401 operation, device node execution step 401a, that is, receive this individual equipment node and demarcate instruction, and according to this individual equipment
Node demarcates instruction execution step 401c, changes the address code of simultaneously storage devices node according to this demarcation instruction;If certain walk
In rapid 401, supervising device issues above-mentioned demarcation instruction by the way of broadcast, correspondingly, device node execution step 401c it
Front also execution step 401b, that is, judge that the device node demarcated in instruction identifies whether the device node mark for itself, if
Then execution step 401c, if it is not, then do not carry out action;Corresponding to the operation of step 402, device node execution step 402a, that is,
Upload heartbeat message periodically.
This enforcement is generated by supervising device and issues above-mentioned individual equipment node demarcates instruction, and then by device node root
Demarcate instruction according to this individual equipment node and carry out proving operation, meet and realize at any time as needed individual equipment is demarcated
Individual demand.
Fig. 5 is the flow chart of the homing device node address code embodiment of the method for step 102 instruction in Fig. 1, as Fig. 5 institute
Show, it includes:
Step 501:Supervising device generates address code reset instruction after receiving above-mentioned first trigger message, and sends this ground
Location code reset instruction;The mode that issues of this address code reset instruction can be the mode or one-to-one transmission broadcasted
Mode, does not hereby repeat;
Step 502:The heartbeat message that supervising device receiving device node uploads;
Step 503:Whether the heartbeat message inspection reset operation that supervising device feeds back according to device node is successful, specifically
According to the heartbeat message that device node uploads, ground, judges whether address code therein meets default reseting address code (such as " 0 "
Or other preset values), update homing device number of nodes when judging to meet reseting address code (such as by homing device nodes
Amount Jia 1), and treat homing device node what homing device number of nodes reached the first trigger message in step 101 shown in Fig. 1
Determining during quantity resets operates successfully;If (each device node heartbeat message within the heartbeat message upload cycle of each device node
Generally periodically upload), homing device number of nodes is still not up to above-mentioned treats homing device number of nodes it is determined that resetting
Operation failure.
It is understood that the flow process that above-mentioned steps 501-503 are primarily directed to supervising device side is described;Continuing with
Referring to Fig. 5, corresponding to the operation of supervising device side, device node side has corresponding operation, specific as follows:Corresponding to step
501 operation, device node execution step 501a, that is, receive this address code reset instruction, and according to this address code reset instruction
Execution step 501b, that is, according to this address code reset instruction homing device address of node code;Corresponding to the operation of step 502,
Device node execution step 502a, uploads heartbeat message periodically.
This enforcement is generated by supervising device and issues address above mentioned code reset instruction, and then by device node according to this ground
Location code reset instruction carries out the operation that resets, it is possible to achieve key reset all online equipment addresss of node code, simple operation.
Device embodiment
For realizing the scaling method of equipment node address code in above-mentioned Fig. 1-Fig. 5, the present invention also provides one kind to set accordingly
Standby, the explanation in above-mentioned Fig. 1-Fig. 5 is all applied to the present embodiment, it should be noted that realizing respectively setting in above-mentioned Fig. 1-Fig. 5
The scaling method of slave node address code is not limited in the present embodiment.
Fig. 6 is the structural representation of the caliberating device embodiment of equipment node address code that the present invention provides, as Fig. 6 institute
Show, this caliberating device includes:
Receiver module 61, the heartbeat message sending for receiving device node;Heartbeat message include device node mark with
Address code;During concrete operations, this receiver module 61 can be also used for receiving the first triggering letter in the above-mentioned explanation to Fig. 1
Breath, the second trigger message and the 3rd trigger message;
Whether processing module 62, for judging address code for being illegal address code according to default address code standard;Sentencing
Determine address code and be worth to new address code for, after the code of illegal address, current address code being increased to preset, and by current address code more
It is newly this new address code;
Sending module 63, instructs to device node for sending the demarcation comprising new address code.
Preferably, processing module 62 includes:
Whether judging submodule 621, for judging address code for being illegal address according to default address code legal standard
Code;And for when judging address code as illegal address code, continuing to determine whether there is warping apparatus node;
Process submodule 622, for when judging submodule 621 judges to there is warping apparatus node, by warping apparatus section
The address code of point is as new address code;When judging submodule 621 judges not existing warping apparatus node, by current address code
Increase to preset and be worth to new address code;And update when judging submodule 621 judges address code as legal address code and mark
Determine nodes.
So, be can achieve as needed by abnormal nodes by arranging judging submodule 621 and process submodule 622
Address code distributes to new addition device node, or directly the precedence according to device node upload heartbeat message is each equipment
Node sequence distributes address code, may refer to the related description of Fig. 3.
Preferably, above-mentioned caliberating device also includes:
Memory module 64, for when judging submodule 621 judges address code as legal address code, storing in heartbeat message
Device node mark and address code;
Display module 65, for judging submodule 621 judge to demarcate nodes be more than or equal to predetermined to be calibrated
During nodes, the device node in the heartbeat message of output memory module 64 storage identifies and address code.
Can achieve and state is demarcated according to each equipment node address code by arranging memory module 64 and display module 65
Show in real time, be easy to inquiry and consult.
Preferably, above-mentioned caliberating device also includes:
Reset control module 66, for generating address code reset instruction, and sends address code reset by sending module 63
Instruct to device node, address code is reset to predetermined value for instruction equipment it is to be understood that being somebody's turn to do by address code reset instruction
Reset control module 66 can also realize the reset associative operation in method shown in Fig. 5, and whether such as inspection reset operation is successful, hereby
Do not repeat;And/or
Single demarcation control module 67, demarcates instruction for generating the individual equipment node including address code, and by sending out
Send module 63 to send individual equipment node and demarcate instruction to device node, individual equipment node demarcates instruction will for instruction equipment
Address code be updated to individual equipment node demarcate instruction in address code it is to be understood that this single demarcation control module 67
The single demarcation associative operation in method shown in Fig. 4 can also be realized, whether successful, hereby not such as check single device node to demarcate
Repeat.
Can achieve that by reset control module 66 demarcating instruction according to individual equipment node carries out individual equipment node is entered
Row proving operation, meets the individual demand realizing at any time as needed individual equipment is demarcated;Demarcate control by single
Molding block 67 can achieve key reset all online equipment addresss of node code, simple operation.
The caliberating device of the equipment node address code of the present embodiment can be encapsulated in existing control system (including but not limited to
Dcs) in supervising device in, be directed to the operation of supervising device, there are corresponding operation, tool in device node side
Body is periodically to upload heartbeat message, and the various demarcation instructions being issued according to supervising device carry out the renewal behaviour of address code
Make, refer to the explanation of Fig. 2, Fig. 4 and Fig. 5, hereby do not repeat.
The above is only the preferred embodiment of the present invention it is noted that ordinary skill people for the art
For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should
It is considered as protection scope of the present invention.
Claims (8)
1. a kind of scaling method of equipment node address code is it is characterised in that include:
The heartbeat message that receiving device node sends;Described heartbeat message includes device node mark and address code;
Judge whether described address code is illegal address code according to default address code standard;
After judging described address code as illegal address code, it is worth to new address code by default for code increase in current address, by institute
State current address code and be updated to described new address code;
Send the demarcation comprising described new address code to instruct to described device node;
When judging described address code as legal address code, store device node mark and the address code in described heartbeat message,
And update and demarcate nodes;
When having demarcated nodes described in judging and being more than or equal to predetermined nodes to be calibrated, the device node mark of output storage
Know and address code.
2. the scaling method of equipment node address code according to claim 1 is it is characterised in that " judge described described
Address code be illegal address code " step after also include:
Judge whether warping apparatus node;
After judging to there is warping apparatus node, using described warping apparatus address of node code as described new address code;
When judging there is not warping apparatus node, execution described " by current address code increase described default be worth to described new
Address code " step.
3. the scaling method of equipment node address code according to claim 2 is it is characterised in that " judge exist described
Also include after the step of warping apparatus node ":
Judge that whether receiving address code within a preset time interval substitutes configured information;
When judging that receiving described address code substitutes configured information, execution is described " to be made described warping apparatus address of node code
For described new address code " step;
When judging that not receiving described address code substitutes configured information, shield described warping apparatus node, and sentence described in being back to
The disconnected step with the presence or absence of warping apparatus node.
4. the scaling method of the equipment node address code according to any one of claim 1-3 is it is characterised in that also wrap
Include:
Generate and send address code reset instruction to described device node, described address code reset instruction is used for indicating described equipment
The address code of itself is reset to predetermined value by node;And/or
Generate and send the individual equipment node including address code and demarcate instruction to described device node, described individual equipment node
Demarcate instruction to demarcate in instruction for indicating that the address code of itself is updated to described individual equipment node by described device node
Address code.
5. the scaling method of equipment node address code according to claim 4 is it is characterised in that " generate concurrent described
Send the individual equipment node including address code to demarcate instruction to described equipment " step after also include:
Record described individual equipment node and demarcate the address code in instruction;
After receiving the heartbeat message that described device node sends, judge that the address code in described heartbeat message is single with described
Whether the address code that device node is demarcated in instruction is consistent, and when judging consistent, output individual equipment node is demarcated and successfully believed
Breath.
6. a kind of caliberating device of equipment node address code is it is characterised in that include:
Receiver module, the heartbeat message sending for receiving device node;Described heartbeat message includes device node mark and ground
Location code;
According to default address code standard, processing module, for judging whether described address code is illegal address code;Judging institute
State after address code is illegal address code, by current address code increase default be worth to new address code, and by described current address
Code is updated to described new address code;
Sending module, instructs to described device node for sending the demarcation comprising described new address code;
Memory module, for when described judging submodule judges described address code as legal address code, the described heartbeat of storage is believed
Device node mark in breath and address code;
Display module, for when judging submodule judges that having demarcated nodes is more than or equal to predetermined nodes to be calibrated,
Export device node mark and the address code of described memory module storage.
7. the caliberating device of equipment node address code according to claim 6 is it is characterised in that described processing module bag
Include:
According to default address code standard, described judging submodule, for judging whether described address code is illegal address code;And
For when judging described address code as illegal address code, continuing to determine whether there is warping apparatus node;
Process submodule, for when described judging submodule judges to there is warping apparatus node, by described warping apparatus node
Address code as described new address code;And it is used for when described judging submodule judges there is not warping apparatus node, will
Current address code increases described presetting and is worth to described new address code;And be used in the judgement of described judging submodule describedly
When location code is legal address code, described in renewal, nodes are demarcated.
8. the caliberating device of the equipment node address code according to claim 6 or 7 is it is characterised in that also include:
Reset control module, for generating and sending address code reset instruction to described device node, described address code resets and refers to
Make for indicating that the address code of itself is reset to predetermined value by described device node;And/or
Single demarcation control module, the individual equipment node for generating and sending including address code demarcates instruction to described equipment
Node, it is described single for indicating that the address code of itself is updated to by described device node that described individual equipment node demarcates instruction
Device node demarcates the address code in instruction.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310138109.7A CN103259879B (en) | 2013-04-19 | 2013-04-19 | Calibration method and device for equipment nodal point codes |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310138109.7A CN103259879B (en) | 2013-04-19 | 2013-04-19 | Calibration method and device for equipment nodal point codes |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103259879A CN103259879A (en) | 2013-08-21 |
CN103259879B true CN103259879B (en) | 2017-02-22 |
Family
ID=48963568
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310138109.7A Active CN103259879B (en) | 2013-04-19 | 2013-04-19 | Calibration method and device for equipment nodal point codes |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103259879B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104600792B (en) * | 2014-12-31 | 2017-05-03 | 浙江南都电源动力股份有限公司 | Address assignment method for energy storage battery management system |
CN108170117B (en) * | 2017-11-24 | 2020-12-15 | 宁波兴为汽车电子有限公司 | Method and system for automatically identifying and distributing vehicle-mounted module parameters |
CN111638687B (en) * | 2020-05-12 | 2022-01-21 | 牧星机器人(江苏)有限公司 | AGV communication method based on simplified communication protocol |
CN112422570B (en) * | 2020-11-19 | 2022-04-26 | 上海幻电信息科技有限公司 | Game login method and device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2004075506A1 (en) * | 2003-02-19 | 2004-09-02 | Siemens Aktiengesellschaft | Method and communication devices for transferring mobile packet orientated data |
CN101447894A (en) * | 2008-12-22 | 2009-06-03 | 三一重工股份有限公司 | Identification of physical address of partial node, network configuration and maintaining method, network system |
-
2013
- 2013-04-19 CN CN201310138109.7A patent/CN103259879B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2004075506A1 (en) * | 2003-02-19 | 2004-09-02 | Siemens Aktiengesellschaft | Method and communication devices for transferring mobile packet orientated data |
CN101447894A (en) * | 2008-12-22 | 2009-06-03 | 三一重工股份有限公司 | Identification of physical address of partial node, network configuration and maintaining method, network system |
Also Published As
Publication number | Publication date |
---|---|
CN103259879A (en) | 2013-08-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102047188B (en) | Method, system and bus coupler for exchanging data between an overlay network and an underlay network | |
CN103259879B (en) | Calibration method and device for equipment nodal point codes | |
CN105808407B (en) | Method, equipment and the equipment management controller of management equipment | |
CN105224362A (en) | Host computer carries out the method and system of program upgrade to slave computer | |
CN106874237A (en) | Method of data synchronization and system based on two lines bus | |
CN105629926B (en) | Input/output module and method for industrial control unit (ICU) | |
CN112291387A (en) | Method, device and equipment for automatically addressing master and slave machines and storage medium | |
CN112202747A (en) | Target device binding method and device, storage medium and electronic device | |
CN102840992A (en) | Satellite-borne self-testing method based on satellite network | |
CN113645086A (en) | Data communication method, apparatus and medium for controlling device | |
CN110137520A (en) | A kind of battery management system slave addresses calibration system and method | |
CN106408020A (en) | Product two-dimensional code marking anti-repeated code detection system and method | |
CN109445973A (en) | Position the method and device of application crash | |
CN110766529B (en) | Operation verification method and device, air conditioner and storage medium | |
CN1555622A (en) | Method and device for producing program interruptions in subscribers to a bus system, and corresponding bus system | |
CN110537347B (en) | Method and central computer for detecting and determining the probability of failure of a radio network | |
CN107992752A (en) | A kind of data processing method, device and computer equipment | |
CN111858233B (en) | Module attribute setting method and system for monitoring module | |
CN112702751A (en) | Method for training and upgrading wireless communication model, network equipment and storage medium | |
CN109066419B (en) | Diagnosis method and system for secondary equipment maintenance safety measure operation and terminal equipment | |
CN106302031B (en) | System for monitoring state of communication line in real time | |
CN109067505A (en) | The acquisition methods and acquisition system of feedback information | |
CN110492935A (en) | Data processing system, method, apparatus and terminal device | |
CN110220639A (en) | Pressure gauge meter register method, device and terminal device in substation | |
EP3461102B1 (en) | Notification control device, notification control system, notification control method, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20180809 Address after: 410100 31 industrial city, Changsha economic and Technological Development Zone, Hunan Patentee after: Hunan Sany Intelligent Control Equipment Co., Ltd. Address before: 410100 31 industrial city, Changsha economic and Technological Development Zone, Hunan Patentee before: Sanyi Heavy Industry Co., Ltd. |