CN105181103A - Automatic addressing method for digital weighing sensor - Google Patents
Automatic addressing method for digital weighing sensor Download PDFInfo
- Publication number
- CN105181103A CN105181103A CN201510518336.1A CN201510518336A CN105181103A CN 105181103 A CN105181103 A CN 105181103A CN 201510518336 A CN201510518336 A CN 201510518336A CN 105181103 A CN105181103 A CN 105181103A
- Authority
- CN
- China
- Prior art keywords
- instruction
- sensor
- instrument
- matching
- enabling
- 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
Abstract
The invention discloses an automatic addressing method for a digital weighing sensor, and the method specifically comprises the following steps: 1, enabling an instrument to transmit a search start instruction; 2, enabling the instrument to transmit a matching instruction; 3, comparing the sensor with the matching instruction, and switching to step 4 if the sensor is consistent with the matching instruction; 4, enabling the sensor to transmit a matching success instruction; 5, enabling the instrument to verify the matching success instruction: switching to step 6 if the verification is successful, or else switching to step 9; 6, enabling the instrument to transmit a next response forbidding instruction to the sensor transmitting the matching success instruction; 7, enabling the sensor to transmit a receiving determining instruction after the sensor receives the next response forbidding instruction; 8, enabling the instrument to judge whether the matching of units digits (0-9) of the matching instruction is completed or not: switching to step 2 if the matching of units digits (0-9) of the matching instruction is not completed, or else, switching to step 10; 9, enabling the instruction to carry higher digits on the basis of the matching instruction, and switching to step 2; 10, enabling the instrument to carry out the addressing of each sensor responding to the matching instruction. The method is accurate and quick in coding, and is lower in error rate.
Description
Technical field
The present invention relates to a kind of addressing method of gauge sensor, be specifically related to a kind of digital weighing sensor automatic addressing method.
Background technology
Existing digital weighing sensor is generally all articulated in a RS485 bus, and each LOAD CELLS needs a unique address code as the identity tag of oneself.But time sensor dispatches from the factory be all a unified address, addressing is gone at needs scene, because RS485 is broadcast mode, therefore general sensor intelligent adopts in each bus can only connect a sensor, and then the way of addressing, such inefficiency, simultaneously the SDID code data length that carries of sensor is longer, to such an extent as to real-time is not high in high-speed traffic process, data are oversize simultaneously, and probability of makeing mistakes in transmitting procedure is also larger.
Summary of the invention
The present invention is directed to the deficiencies in the prior art, propose a kind of addressing efficiency high, the digital weighing sensor automatic addressing method that error rate is little, concrete technical scheme is as follows:
A kind of digital weighing sensor automatic addressing method, concrete steps are,
Step one: instrument sends and starts search instruction;
Step 2: instrument sends matching instruction;
Step 3: sensor and described matching instruction comparison, unanimously, then enter step 4;
Step 4: sensor sends the match is successful instruction;
Step 5: the match is successful that instruction verifies to described for instrument, and success, then enter step 6, mistake, then enter step 9;
Step 6: instrument sends to the sensor of the instruction that sends that the match is successful forbids that next time responds instruction;
Step 7: after forbidding responding instruction next time described in sensor accepts, send and determine to receive instruction;
Step 8: instrument judges whether a described matching instruction position 0-9 mates complete, otherwise, enter step 2, be then, enter step 10;
Step 9: instrument, on the basis of described matching instruction, is carried more high-order, entered step 2;
Step 10: instrument carries out volume address to each sensor of responses match instruction successively.
Beneficial effect of the present invention is: in addressing process, and instrument is searched for automatically from individual position, when individual position has identical, is incremented to ten and continues search, the like, search precision is high, and speed is fast; After having searched for, instrument carries out re-mapping operation according to the situation of institute's response sensor, and address can increase progressively successively as required from 1, coding is simple, effective solution sensor carries long, the complicated problem of code length, and communication speed is faster, controls more accurate; Addressing speed is faster, makes the work efficiency of its whole instrument higher.
Accompanying drawing explanation
Fig. 1 is process flow diagram of the present invention.
Embodiment
Below in conjunction with accompanying drawing, preferred embodiment of the present invention is described in detail, can be easier to make advantages and features of the invention be readily appreciated by one skilled in the art, thus more explicit defining is made to protection scope of the present invention.
As shown in Figure 1: a kind of digital weighing sensor automatic addressing method, concrete steps are,
Step one: instrument sends and starts search instruction, all devices in notice bus carries out corresponding preparation, and sensor does not need to respond in the process;
Step 2: instrument sends matching instruction, is specially and mates with the SDID address in sensor from units 0 address;
Step 3: each sensor, by a self-contained SDID position and above-mentioned matching instruction comparison, unanimously, then enters step 4, inconsistent, does not give a response;
Step 4: sensor sends the match is successful instruction, and the SDID of self is sent to instrument, and instrument carries out respective record;
Step 5: the match is successful that CRC check is carried out in instruction to described for instrument, and success, shows to only have a sensor matching success, then enter step 6, mistake, show there is a branched sensor position identical with matching instruction, then enter step 9;
Step 6: instrument sends to the sensor of the instruction that sends that the match is successful forbids that next time responds instruction;
Step 7: after forbidding responding instruction next time described in sensor accepts, send and determine to receive instruction, until start search instruction upper once receiving, any matching instruction can not be responded;
Step 8: instrument judges whether a described matching instruction position 0-9 mates complete, no, then enter step 2 at matching instruction and continue search, be then, enter step 10 after individual position increases progressively one;
Step 9: instrument, on the basis of described matching instruction, is carried more high-order, as identical in individual position, is incremented to ten, the like increase progressively after, enter step 2 continue search, until individual bit scan to numeral be 9;
Step 10: instrument carries out volume address to each sensor of responses match instruction successively from 1, whole addressing activity completes.
Claims (1)
1. a digital weighing sensor automatic addressing method, is characterized in that: concrete steps are,
Step one: instrument sends and starts search instruction;
Step 2: instrument sends matching instruction;
Step 3: sensor and described matching instruction comparison, unanimously, then enter step 4;
Step 4: sensor sends the match is successful instruction;
Step 5: the match is successful that instruction verifies to described for instrument, and success, then enter step 6, mistake, then enter step 9;
Step 6: instrument sends to the sensor of the instruction that sends that the match is successful forbids that next time responds instruction;
Step 7: after forbidding responding instruction next time described in sensor accepts, send and determine to receive instruction;
Step 8: instrument judges whether a described matching instruction position 0-9 mates complete, no, then enter step 2, be, then enter step 10;
Step 9: instrument, on the basis of described matching instruction, is carried more high-order, entered step 2;
Step 10: instrument carries out volume address to each sensor of responses match instruction successively.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510518336.1A CN105181103B (en) | 2015-08-21 | 2015-08-21 | Digital weighing sensor automatic addressing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510518336.1A CN105181103B (en) | 2015-08-21 | 2015-08-21 | Digital weighing sensor automatic addressing method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105181103A true CN105181103A (en) | 2015-12-23 |
CN105181103B CN105181103B (en) | 2017-12-12 |
Family
ID=54903348
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510518336.1A Expired - Fee Related CN105181103B (en) | 2015-08-21 | 2015-08-21 | Digital weighing sensor automatic addressing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105181103B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5728218A (en) * | 1980-07-25 | 1982-02-15 | Tokyo Electric Co Ltd | Error number indicator for electronic price scale |
CN101309306A (en) * | 2008-07-16 | 2008-11-19 | 哈尔滨工业大学 | Method for allocating addresses from node device in Modbus communication network |
CN103546592A (en) * | 2013-10-22 | 2014-01-29 | 深圳市国电科技通信有限公司 | Automatic energy meter address searching method |
CN104065763A (en) * | 2014-06-26 | 2014-09-24 | 东元总合科技(杭州)有限公司 | Free-number air conditioner automatic random addressing communication method based on RS485 |
-
2015
- 2015-08-21 CN CN201510518336.1A patent/CN105181103B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5728218A (en) * | 1980-07-25 | 1982-02-15 | Tokyo Electric Co Ltd | Error number indicator for electronic price scale |
CN101309306A (en) * | 2008-07-16 | 2008-11-19 | 哈尔滨工业大学 | Method for allocating addresses from node device in Modbus communication network |
CN103546592A (en) * | 2013-10-22 | 2014-01-29 | 深圳市国电科技通信有限公司 | Automatic energy meter address searching method |
CN104065763A (en) * | 2014-06-26 | 2014-09-24 | 东元总合科技(杭州)有限公司 | Free-number air conditioner automatic random addressing communication method based on RS485 |
Non-Patent Citations (1)
Title |
---|
邹琳等: "基于IPv6的无线传感器网络编址方案", 《论文选粹》 * |
Also Published As
Publication number | Publication date |
---|---|
CN105181103B (en) | 2017-12-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105488615A (en) | Repair scheduling method and scheduling module for power system | |
CN105978727A (en) | Node firmware updating method of wearable human body motion capture system | |
CN104065763A (en) | Free-number air conditioner automatic random addressing communication method based on RS485 | |
CN103617657A (en) | System and method for monitoring and displaying staff on-guard state | |
CN105551222A (en) | Embedded bridge health monitoring system | |
CN203706058U (en) | CAN bus based multi-I/O board card expansion structure | |
CN104809250A (en) | Loose type data consistency checking method | |
CN104280032A (en) | Automatic navigation system and method for temporary entering of foreign personnel into residential area | |
CN104331330A (en) | Resource pool generation method and device | |
CN105181103A (en) | Automatic addressing method for digital weighing sensor | |
CN204346597U (en) | A kind of novel unibus temperature measuring equipment | |
CN203982361U (en) | A kind of multiple serial communication proving installation | |
CN105116807A (en) | System and method for automatically configuring module information of modular controller | |
CN204856143U (en) | System for modular controller automatic configuration module information | |
CN110456691A (en) | A kind of suspension insulator detection robot control system | |
CN106789296B (en) | A kind of processing system and method for station institute's terminal remote signalling and the configuration of line switching signal | |
CN104407259A (en) | Identification method for hardware ID of communication module of electricity information collecting terminal | |
CN204810558U (en) | Wireless location's device is realized at premises | |
CN104133788B (en) | CAN bus data transmission method in active filter system | |
CN104834292A (en) | Nuclear-biological-chemical monitoring data synchronization method | |
CN105160845A (en) | Internal and external network integrated gateway system for Internet of Things | |
CN203275664U (en) | Building earthquake-proof real-time detection system | |
CN104361684A (en) | Communication method for virtual electric meter | |
CN204576174U (en) | A kind of digital device intelligent identification device | |
CN204833578U (en) | Fire control supervisory equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20171212 Termination date: 20180821 |
|
CF01 | Termination of patent right due to non-payment of annual fee |