CN1547366A - Automatic addressing method for electronic instruments and application - Google Patents

Automatic addressing method for electronic instruments and application Download PDF

Info

Publication number
CN1547366A
CN1547366A CNA2003101110848A CN200310111084A CN1547366A CN 1547366 A CN1547366 A CN 1547366A CN A2003101110848 A CNA2003101110848 A CN A2003101110848A CN 200310111084 A CN200310111084 A CN 200310111084A CN 1547366 A CN1547366 A CN 1547366A
Authority
CN
China
Prior art keywords
addressing
slave station
order
time
meter
Prior art date
Application number
CNA2003101110848A
Other languages
Chinese (zh)
Other versions
CN100456761C (en
Inventor
何世刚
Original Assignee
何世刚
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 何世刚 filed Critical 何世刚
Priority to CNB2003101110848A priority Critical patent/CN100456761C/en
Publication of CN1547366A publication Critical patent/CN1547366A/en
Application granted granted Critical
Publication of CN100456761C publication Critical patent/CN100456761C/en

Links

Abstract

The invention belongs to data collecting technology field of electron instrument meter. Pointing to the data collecting mode of point to multi-point, the invention is the automatic searching of the communication address of the instrument and the meters. The method is: the primary station uses broadcasting order addressing, the slave station uses random delay mode to replay; after the slave station receives the addressing order, there generates an integer less than a set integer T in random, the T is multiplied by a fixed time interval A, the result is the reply delay time of the slave station; after the primary sends out the addressing order, in TxX time, it is in state of receiving data, completes part of the addressing task of the slave station; the primary station sends out order to the slave station which is addressed, thus the slave station doesn't response the broadcasting addressing order in the time DT; repeats the process, it can complete the addressing task to the slave station, the stop label is: after several times of sending addressing order, the slave station has no response. The invention can realize automatic addressing quickly, the invention is simple and convenient.

Description

Electronic instruments automatic addressing method and application
Technical field
The present invention relates to the data collecting field of electronic instruments, be applicable to the automatic addressing method in the point-to-multipoint data acquisition scheme.
Background technology
1. market background
At present, a lot of intelligent instrumentations all possess the data communication mouth, and intelligent instrumentation carries out exchanges data by these communication ports and external equipment.External equipment can carry out parameter setting, operations such as data acquisition to these instruments thus easily.Carry out the instrument and meter of exchanges data for needs, often possess multiple PORT COM, generally speaking, majority possesses a kind of or possesses multiple PORT COM simultaneously: RS-232 port, RS485 port, infrared communication mouth, wireless telecommunications mouth etc.If the data acquisition of these instruments is not fully one to one, but the situation of one-to-many, so must be in the middle of the programming of instrument, for each instrument and meter is provided with an address or communication coding, as unique identity code of this instrument and meter.In the use of instrument and meter, all data acquisitions and the transmission of order all should comprise this identification code in Frame.This is the practice widely followed of present intelligent instrumentation.Such as, the data acquisition of multifunction electric meter, time-sharing electricity meter is belonged to this situation exactly.
Along with the generally use of intelligent instrumentation, the user presses for the better data acquisition technology, in the middle of numerous technical needs, is a relatively more crucial technology to the automatic search method of the address (communication coding) of instrument and meter.In the data acquisition of point-to-multipoint, which type of automatic address (communication coding) searching method has determined the formulation of whole automatic data collection scheme.Such as, to copy and accept automatically in the system at ammeter, ammeter address search fast to the quality of Automatic meter reading system, plays a part very big.The only update of domestic meter reading method, this market are very huge.The automatic data collection of other instrument and meter, also there is similar situation in some.Have this as seen, the automatic search method of the address of electronic instruments is a very important techniques, can bring very big economic benefit, has the vast market space.
2. correlation technique present situation
At present, there are a lot of methods in the automatic addressing of instrument and meter, what mainly adopt is round-robin method, promptly in certain coding range, from small to large, go examination again and again, after certain code communication success, promptly assert the equipment that in the data acquisition network of this point-to-multipoint, has such coding, thereby obtain the address of this equipment.This method, under the smaller situation of coding range, still relatively effectively, if but coding range is very big, and then this process is just very long.Such as, concerning ammeter, its address overwhelming majority is 12, concerning the instrument with 12 bit address, adopts circulation to ask that the method for location is insufferable in time, is impossible in the practice.
In advanced at present mechanics of communication, also exist some can realize from maying I ask the coded system and the method for location.But consider the hardware configuration of general instrument and meter, communication modes, particularity such as development cost, nobody adopts these technology basically.
Summary of the invention
The objective of the invention is to adopt simple mode to find out in the data acquisition scheme of point-to-multipoint, seek the method for electronic instruments address automatically.
Technical scheme of the present invention is achieved in that
A kind of electronic instruments automatic addressing method, it is characterized in that: in the data acquisition scheme of point-to-multipoint, main website is that computer or data collection host adopt the broadcasting command addressing, slave station is that the instrument and meter random delay is replied, thereby reach the purpose of searching for each tributary address automatically, concrete grammar is as follows:
A. main website adopts the broadcasting command addressing, and the slave station of receiving broadcasting command is that instrument and meter adopts the random delay mode to reply;
B. Yan Shi rule is: after each slave station receives the broadcast addressing order, produce an integer less than certain setting integer value T at random, T multiply by a regular time interval A and is the delay time that this slave station is replied;
C. main website in the time of TxA (T multiply by A), is in and accepts data mode after sending the broadcast addressing order, in during this period of time, might successfully receive the addressing acknowledgement command that or a part of slave station are beamed back;
D. main website sends order according to the tributary address of seeking to these slave stations of having asked the location success, makes these temporarily not respond the broadcast addressing order in certain hour DT from standing in;
E. constantly repeat above process, can finish the addressing task to slave station, the judgement symbol that addressing finishes is: after sending broadcasting command n time repeatedly continuously, and all no responses, think that then the address of all slave stations is all successfully obtained in the network, the size of n value has determined to ask the location incomplete probability of successful.
Described time interval A is for finishing the minimum time of an addressing process separately; T can be chosen to be with network in slave station quantity with an integer of the order of magnitude, can do preferably according to the actual tests result; DT must be greater than completing successfully the required time of addressing work in the network, can be provided with in the practice bigger, such as more than 20 times.
User of the present invention in conjunction with the general technology of computer communication, and finishes corresponding programing work according to the present invention, can realize the automatic addressing function in the data acquisition network that data collection station and a plurality of instrument and meter form.
Operation principle: in the automatic data acquisition network of point-to-multipoint, often adopt the RS485 networking mode, the infrared communication mode, wireless communication mode, and adopt semiduplex communication modes to realize the transmission of data.Principle of the present invention is, the main website in the network is that data collection host adopts the broadcasting command addressing, and the slave station of receiving broadcasting command is that instrument and meter adopts the random delay mode to reply.In the process of each random challenge, just may obtain the address of one or more slave stations.After each addressing process finishes, the slave station of successful address acquisition is repelled outside the scope of broadcast addressing next time.By carrying out this process repeatedly, and then finish addressing work to all slave stations.The validity of each broadcast addressing process is uncertain in the method, but according to random law, we improve final success rate by the number of times that the control broadcast addressing moves repeatedly, reach the degree of practicability.
Adopt broadcasting command to ask that the mode of address is adopted by a lot of product design personnel, general instrument and meter all possesses this function.In the data acquisition network of point-to-multipoint, use the broadcasting command addressing, owing to each equipment is almost replied simultaneously, so the addressing process is often failed.The method that adopts different delayed time to reply can address this problem.Wherein, to reply be the novel and desirable method of comparison to this method random delay under certain rule of illustrating.
Advantage and effect:
1. automatic addressing, quick and precisely
Use by our experiment and concrete product, this method can search out the address of the instrument and meter in the data acquisition network rapidly and accurately, is not subjected to the influence of coding range size fully, and data accurately and reliably.
2. simple, practical, it is little that old product is transformed difficulty, compatible strong
Use this method, the user only needs to add a bit of program of this method of employing in the program of instrument and meter and data collection station, can realize the function of automatic addressing, does not change hardware designs, does not increase the direct cost of product.
The user uses the technical difficulty of this method also little.Will successfully adopt this method, the existing product development personnel of user all can realize.
3. it is low to promote cost
Description of drawings:
Fig. 1 is a schematic diagram of the present invention, and data acquisition network is the RS485 networking mode, and comprising a main website is that data collection station and several slave stations are instrument and meter.After adopting the present invention, do not need to understand quantity and its address of slave station before the main website image data.Main website can utilize method of the present invention before image data, the address of searching for each slave station also can count the quantity of slave station fast automaticly automatically.After the address of slave station had been arranged, the internal data of slave station just can be gathered according to the address of slave station by main website.
The automatic data logging schematic diagram of Fig. 2 for adopting the present invention to design.Ammeter is formed data acquisition network by the RS485 bus, and different data acquisition networks carries out data communication by wireless telecommunications device and palmtop PC data collection host.Data collection host can be realized the address of ammeter in the network is sought fast and accurately.
Embodiment:
In the data acquisition scheme of point-to-multipoint, adopt automatic addressing method to instrument and meter, will make automatic data acquisition become more convenient.After adopting this method, can abandon over fully and the sort ofly look for address earlier by hand, carry out two step processes of data acquisition again, finish automatically and can be designed as a step.
After using this method, in the point-to-multipoint data acquisition scheme, its workflow is as follows: the log-on data capture program, and----instrument and meter in the network is carried out automatic addressing, and--storing these addresses-----respectively calls these addresses and carries out data acquisition.
Automatically copying and accepting system with ammeter below is example, and this The Application of Technology is described.
1. show the Automatic meter reading system application example
Traditional ammeter ' s reading meter mode is manually meter reading data to be recorded in to check meter on this, check meter finish after, again with the data input computer.In recent years, along with the use of multifunction electric meter, time-sharing electricity meter, electronic type intelligent electric meter, very big variation has taken place in meter reading method.Infrared copy meter, the RS485 networking is checked meter, and radio meter register has obtained general application.The meter reading method that these are new all is that the address according to ammeter comes reading of data.
Before adopting the automatic addressing method, the meter reading personnel needs at first inquiring user data, finds out the address of ammeter in the network, carries out meter reading communication more respectively.After adopting automatic addressing, the person of checking meter only needs to start the order of checking meter, and all working of back can be finished automatically.Meter reader at first adopts this report institute extracting method, carries out the address of ammeter and searches for automatically, can copy and accept automatically the ammeter that searches after search finishes.Adopt this method, for the scene person of checking meter is saved a large amount of time.
This technology in being applied in certain company recently, has obtained good effect, has strengthened the said firm's product competitiveness greatly.
2. other application
Also have a lot with above similar application.As property sub-district water, electricity, gas Automatic meter reading system, petroleum pipeline automatic data acquisition system (ADAS) etc.The pattern of using and top similar for example.

Claims (2)

1. electronic instruments automatic addressing method and application thereof, it is characterized in that: in the data acquisition scheme of point-to-multipoint, main website is that computer or data collection host adopt the broadcasting command addressing, slave station is that the instrument and meter random delay is replied, thereby reach the purpose of searching for each tributary address automatically, concrete grammar is as follows:
A. main website adopts the broadcasting command addressing, and the slave station of receiving broadcasting command is that instrument and meter adopts the random delay mode to reply;
B. Yan Shi rule is: after each slave station receives the broadcast addressing order, produce an integer less than certain setting integer value T at random, T multiply by a regular time interval A and is the delay time that this slave station is replied;
C. main website in the time of TxA (T multiply by A), is in and accepts data mode after sending the broadcast addressing order, in during this period of time, might successfully receive the addressing acknowledgement command that or a part of slave station are beamed back;
D. main website sends order according to the tributary address of seeking to these slave stations of having asked the location success, makes these temporarily not respond the broadcast addressing order in certain hour DT from standing in;
E. constantly repeat above process, can finish the addressing task to slave station, the judgement symbol that addressing finishes is: after sending broadcasting command n time repeatedly continuously, and all no responses, think that then the address of all slave stations is all successfully obtained in the network, the size of n value has determined to ask the location incomplete probability of successful.
2. electronic instruments automatic addressing method according to claim 1 and application is characterized in that: time interval A is for finishing the minimum time of an addressing process separately; T can be chosen to be with network in slave station quantity with an integer of the order of magnitude, can do preferably according to the actual tests result; DT must be greater than completing successfully the required time of addressing work in the network, can be provided with in the practice bigger, such as more than 20 times.
CNB2003101110848A 2003-12-03 2003-12-03 Automatic addressing method for electronic instruments and application CN100456761C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2003101110848A CN100456761C (en) 2003-12-03 2003-12-03 Automatic addressing method for electronic instruments and application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2003101110848A CN100456761C (en) 2003-12-03 2003-12-03 Automatic addressing method for electronic instruments and application

Publications (2)

Publication Number Publication Date
CN1547366A true CN1547366A (en) 2004-11-17
CN100456761C CN100456761C (en) 2009-01-28

Family

ID=34335913

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2003101110848A CN100456761C (en) 2003-12-03 2003-12-03 Automatic addressing method for electronic instruments and application

Country Status (1)

Country Link
CN (1) CN100456761C (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102176726A (en) * 2010-12-16 2011-09-07 中国电力科学研究院 Address self-adaption method in electric energy meter information acquisition system
CN102339300A (en) * 2011-06-17 2012-02-01 杭州炬华科技股份有限公司 Automatic meter searching method for intelligent power grid
CN103000019A (en) * 2012-12-21 2013-03-27 青岛乾程电子科技有限公司 Collecting method of meter reading terminal for automatically uploading meter address
CN104020347A (en) * 2013-03-01 2014-09-03 北海市聚志电子科技有限公司 Method for fast searching electric energy meter in transformer area
CN105261192A (en) * 2015-09-18 2016-01-20 国网山东省电力公司电力科学研究院 Method for automatically obtaining logical addresses of electricity information acquisition terminals, and system thereof
WO2017157065A1 (en) * 2016-03-17 2017-09-21 华为技术有限公司 Method for managing address of meter device, and acquisition terminal and meter device
CN107483307A (en) * 2017-07-07 2017-12-15 国网浙江省电力公司 It is a kind of that table method is searched based on the stipulations standards of DL/T 645
CN109389741A (en) * 2018-08-22 2019-02-26 湖南金码智能设备制造有限公司 A kind of pallet for vending machine/cargo path state data acquisition system and method
WO2019165775A1 (en) * 2018-02-28 2019-09-06 深圳市大迈科技有限公司 Local area network equipment searching method and searching system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3767635B2 (en) * 1995-03-31 2006-04-19 ソニー株式会社 Interactive program broadcast method, interactive program response method and response apparatus
KR100542936B1 (en) * 1997-10-06 2006-03-23 마츠시타 덴끼 산교 가부시키가이샤 Information transmission control apparatus for transmitting same information to a plurality of destinations, and information reception apparatus for receiving information from information transmission control apparatus

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102176726A (en) * 2010-12-16 2011-09-07 中国电力科学研究院 Address self-adaption method in electric energy meter information acquisition system
CN102176726B (en) * 2010-12-16 2014-10-01 中国电力科学研究院 Address self-adaption method in electric energy meter information acquisition system
CN102339300A (en) * 2011-06-17 2012-02-01 杭州炬华科技股份有限公司 Automatic meter searching method for intelligent power grid
CN103000019A (en) * 2012-12-21 2013-03-27 青岛乾程电子科技有限公司 Collecting method of meter reading terminal for automatically uploading meter address
CN104020347A (en) * 2013-03-01 2014-09-03 北海市聚志电子科技有限公司 Method for fast searching electric energy meter in transformer area
CN104020347B (en) * 2013-03-01 2017-09-29 北海市聚志电子科技有限公司 A kind of method of the affiliated electric energy meter of fast search platform area transformer
CN105261192A (en) * 2015-09-18 2016-01-20 国网山东省电力公司电力科学研究院 Method for automatically obtaining logical addresses of electricity information acquisition terminals, and system thereof
WO2017157065A1 (en) * 2016-03-17 2017-09-21 华为技术有限公司 Method for managing address of meter device, and acquisition terminal and meter device
CN107205059A (en) * 2016-03-17 2017-09-26 华为技术有限公司 Manage method, acquisition terminal and the meter equipment of meter device address
US10944716B2 (en) 2016-03-17 2021-03-09 Huawei Technologies Co., Ltd. Metering device address management method, collection terminal, and metering device
CN107483307A (en) * 2017-07-07 2017-12-15 国网浙江省电力公司 It is a kind of that table method is searched based on the stipulations standards of DL/T 645
WO2019165775A1 (en) * 2018-02-28 2019-09-06 深圳市大迈科技有限公司 Local area network equipment searching method and searching system
CN109389741A (en) * 2018-08-22 2019-02-26 湖南金码智能设备制造有限公司 A kind of pallet for vending machine/cargo path state data acquisition system and method

Also Published As

Publication number Publication date
CN100456761C (en) 2009-01-28

Similar Documents

Publication Publication Date Title
CN101882105B (en) Method for testing response time of Web page under concurrent environment
Penna Camera calibration: A quick and easy way to determine the scale factor
AU770611B2 (en) Transaction recognition and prediction using regular expressions
Shen et al. Evaluation of automated biometrics-based identification and verification systems
CN1185843C (en) Method of surveilling intennet communication
Maqbool et al. The weighted combined algorithm: A linkage algorithm for software clustering
CN101826996B (en) Domain name system flow detection method and domain name server
Chen et al. Adaptive random testing: The art of test case diversity
JP3774729B2 (en) Response time measuring apparatus and method
US8285677B2 (en) Method and apparatus for propagating tables while preserving cyclic foreign key relationships
CN100565526C (en) A kind of anti-cheat method and system at the webpage cheating
CN105354290B (en) A kind of method and system for searching specific people based on mobile terminal MAC Address
CN102663054B (en) A kind of method and device determining weight of website
CN1309218C (en) Real-time service level agreement (SLA) impact analysis method and system
CN104699737A (en) Method and system for managing a search
WO1997013330A3 (en) Apparatus for capturing, storing and processing co-marketing information associated with a user of an on-line computer service
CN103337087B (en) A kind of compressed sensing image reconstructing method based on pseudoinverse adaptive algorithm
CN103838754B (en) Information retrieval device and method
CN101510209A (en) Method, system and server for implementing real time search
CN1178943A (en) Magnetic disc device
CN104615760A (en) Phishing website recognizing method and phishing website recognizing system
CN105930727A (en) Web-based crawler identification algorithm
WO2010148201A2 (en) Data compression for reducing storage requirements in a database system
EP2674884A1 (en) Method, system and computer-readable recording medium for adding a new image and information on the new image to an image database
CN100492445C (en) Network-based remote electronic circuit experimental method and system

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
C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 610041 NO.2, UNIT 1, BUILDING 1, NO.2, FANGCAO WEST 1ST STREET, HIGH-TECH ZONE, CHENGDU CITY,SICHUAN PROVINCE TO: 610045 NO.18, WUXING 3RD ROAD, WUHOU DISTRICT, CHENGDU CITY, SICHUAN PROVINCE

ASS Succession or assignment of patent right

Owner name: CHENGDU BO-TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: HE SHIGANG

Effective date: 20100331

TR01 Transfer of patent right

Effective date of registration: 20100331

Address after: 610045, No. three, No. 18, Wu Xing Road, Chengdu, Sichuan, Wuhou District

Patentee after: Chengdu Boost Technology Co., Ltd.

Address before: 610041 No. 1, No. 1, building 2, West First Street, fragrant herb street, Chengdu hi tech Zone, Sichuan, 2

Patentee before: He Shigang

Effective date of registration: 20100331

Address after: 610045, No. three, No. 18, Wu Xing Road, Chengdu, Sichuan, Wuhou District

Patentee after: Chengdu Boost Technology Co., Ltd.

Address before: 610041 No. 1, No. 1, building 2, West First Street, fragrant herb street, Chengdu hi tech Zone, Sichuan, 2

Patentee before: He Shigang

C56 Change in the name or address of the patentee

Owner name: CHENGDU BOST INFORMATION TECHNOLOGY CO., LTD.

Free format text: FORMER NAME: CHENGDU BOOST TECHNOLOGY CO., LTD.

CP01 Change in the name or title of a patent holder

Address after: 610045, No. three, No. 18, Wu Xing Road, Chengdu, Sichuan, Wuhou District

Patentee after: CHENGDU BOOST INFORMATION TECHNOLOGY INC.

Address before: 610045, No. three, No. 18, Wu Xing Road, Chengdu, Sichuan, Wuhou District

Patentee before: Chengdu Boost Technology Co., Ltd.

Address after: 610045, No. three, No. 18, Wu Xing Road, Chengdu, Sichuan, Wuhou District

Patentee after: CHENGDU BOOST INFORMATION TECHNOLOGY INC.

Address before: 610045, No. three, No. 18, Wu Xing Road, Chengdu, Sichuan, Wuhou District

Patentee before: Chengdu Boost Technology Co., Ltd.

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090128

Termination date: 20181203

CF01 Termination of patent right due to non-payment of annual fee