CN108319565A - A kind of meter address searching method and device based on bus - Google Patents

A kind of meter address searching method and device based on bus Download PDF

Info

Publication number
CN108319565A
CN108319565A CN201711386954.0A CN201711386954A CN108319565A CN 108319565 A CN108319565 A CN 108319565A CN 201711386954 A CN201711386954 A CN 201711386954A CN 108319565 A CN108319565 A CN 108319565A
Authority
CN
China
Prior art keywords
instrument
address
communication
communication host
register
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
Application number
CN201711386954.0A
Other languages
Chinese (zh)
Other versions
CN108319565B (en
Inventor
饶洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZHUHAI PILOT TECHNOLOGY Co Ltd
Original Assignee
ZHUHAI PILOT TECHNOLOGY Co Ltd
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 ZHUHAI PILOT TECHNOLOGY Co Ltd filed Critical ZHUHAI PILOT TECHNOLOGY Co Ltd
Priority to CN201711386954.0A priority Critical patent/CN108319565B/en
Publication of CN108319565A publication Critical patent/CN108319565A/en
Application granted granted Critical
Publication of CN108319565B publication Critical patent/CN108319565B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • G06F13/4286Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus using a handshaking protocol, e.g. RS232C link
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/36Handling requests for interconnection or transfer for access to common bus or bus system

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Small-Scale Networks (AREA)

Abstract

The present invention provides a kind of meter address searching method based on bus, including step:Communication connection is established, detection communication connection searches for meter address, establishes the connection of communication host and instrument by communication bus;Detect the communication connection of communication host and instrument, when communicating to connect successfully, communication host carries out meter address poll to instrument, and communication host reads address register, model register, the version number's register of instrument, obtains address information, type information and the version number information of instrument;The present invention relates to a kind of meter address searcher based on bus;The present invention can in quick search to bus all instrument address information, and identify the type information and version number information of the instrument, by the way that the type information of instrument is arranged, communication host enable to inquire the address information and version number information of this model instrument.

Description

A kind of meter address searching method and device based on bus
Technical field
The present invention relates to meter address search technique field more particularly to a kind of meter address searching methods based on bus And device.
Background technology
At present can only be in a kind of meter address of model of total on-line checking, but on condition that need to know instrument in the bus Model.In practical work situation, the various types of instrument of carry in live bus, and the instrument of same model can correspond to Different version number informations, when the instrument of some version of live certain model needs to carry out function upgrading, staff needs It to go to search the information such as model, version number, the address of instrument to each floor for placing instrument, and identify which instrument belongs to Same model, labor workload is big, and efficiency is low, cannot quickly inquire the ground of multiple same model instrument of carry in bus Location and version number.
Invention content
For overcome the deficiencies in the prior art, one of the objects of the present invention is to provide a kind of meter address based on bus Searching method, solve the problems, such as to be unable to different model in quick search to bus, different editions meter address.
The present invention provides a kind of meter address searching method based on bus, includes the following steps:
Communication connection is established, the connection of communication host and instrument by communication bus is established;
Detection communication connection, detects the communication connection of the communication host and the instrument, described when communicating to connect successfully, Go to step search meter address;
Meter address is searched for, the communication host carries out meter address poll to the instrument, and the communication host is read Address register, model register, the version number's register of the instrument, obtain address information, the type information of the instrument And version number information.
Further, the step search meter address further includes:The mter model of address to be searched, the communication are set Host carries out meter address poll to the corresponding instrument of the mter model, and the address that the communication host reads the instrument is posted Storage, model register, version number's register obtain address information and version number information that the mter model corresponds to instrument.
Further, the step search meter address further includes:Address query context is set, and the communication host is to institute The instrument stated in address range carries out meter address poll, and the communication host reads the address register of the instrument, model Register, version number's register obtain address information, type information and the version number information of instrument within the scope of described address.
Further, the step detection communication connection is specially that the communication host sends broadcasting command to the instrument Table, if the non-returning response data of the instrument, the instrument is not connected with successfully with the communication host;If instrument returning response Data, the then instrument and the communication host successful connection.
Further, the step detection, which communicates to connect, further includes:Traffic rate is replaced, if the instrument and the communication Host is not connected with successfully, then the communication host replaces traffic rate, is re-searched for the instrument.
A kind of meter address searcher based on bus, including communication host, interface convertor, several instrument, communication Bus, power module are connected between the communication host and the interface convertor by the communication bus, and the interface turns Parallel operation is connect with several instrument, and the power module is connect with the communication host and several instrument, the power supply Module provides power supply for the communication host and several instrument, and the instrument includes address register, model register, version This number register, the communication host carry out meter address poll to the instrument, and the communication host reads the instrument Address register, model register, version number's register obtain address information, type information and the version number's letter of the instrument Breath.
Further, the communication host includes communication connection detection module, and the communication connection detection module detects institute State the communication connection of communication host and the instrument.
Further, the communication host further includes mter model setup module, and the mter model setup module is used for The mter model of address to be searched is set, and the communication host carries out meter address wheel to the corresponding instrument of the mter model It askes, the communication host reads the address register of the instrument, model register, version number's register, obtains the instrument Model corresponds to the address information and version number information of instrument.
Further, the communication host further includes address setup module, and described address setup module is for being arranged address Query context, the communication host carry out meter address poll to the instrument within the scope of described address, and the communication host is read Address register, model register, the version number's register of the instrument obtain the address letter of instrument within the scope of described address Breath, type information and version number information.
Further, the interface convertor is specially RS485 converters, and the communication bus is specially RS485 buses, The communication host is connect by the RS485 converters with the RS485 buses.
Compared with prior art, the beneficial effects of the present invention are:
The present invention provides a kind of meter address searching method based on bus, including step:Communication connection is established, detection is logical Letter connection, searches for meter address, establishes the connection of communication host and instrument by communication bus;Detect communication host and instrument Communication connection, when communicating to connect successfully, communication host carries out meter address poll to instrument, and communication host reads the address of instrument Register, model register, version number's register obtain address information, type information and the version number information of instrument;The present invention It is related to a kind of meter address searcher based on bus;The present invention can in quick search to bus all instrument address letter Breath, and identify the type information and version number information of the instrument, by the way that the type information of instrument is arranged, enable communication host The address information and version number information for inquiring this model instrument save communication host inquiry by the way that address query context is arranged The time of meter address information improves search efficiency, solves scene and is unable to different model in quick search to bus, different versions This number meter address problem, reduces a large amount of manual operation, subsequently to prepare to the upgrading of instrument.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technical means of the present invention, And can be implemented in accordance with the contents of the specification, below with presently preferred embodiments of the present invention and after coordinating attached drawing to be described in detail such as. The specific implementation mode of the present invention is shown in detail by following embodiment and its attached drawing.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and is constituted part of this application, this hair Bright illustrative embodiments and their description are not constituted improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is a kind of meter address searching method flow chart based on bus of the present invention;
Fig. 2 is a kind of meter address searcher schematic diagram based on bus of the present invention.
Specific implementation mode
In the following, in conjunction with attached drawing and specific implementation mode, the present invention is described further, it should be noted that not Under the premise of conflicting, new implementation can be formed between various embodiments described below or between each technical characteristic in any combination Example.
A kind of meter address searching method based on bus, as shown in Figure 1, including the following steps:
Communication connection is established, the connection of communication host and instrument by communication bus is established, builds communication network.
Detection communication connection, detects the communication connection of communication host and instrument, when communicating to connect successfully, gos to step and search Rope meter address, it is preferable that step detection communication connection is specially that communication host sends broadcasting command to instrument, if instrument is not returned Response data is returned, then Instrumentation And Communications host is not connected with successfully;If instrument returning response data, the connection of Instrumentation And Communications host Success.
In one embodiment, it is preferable that step detection, which communicates to connect, further includes:Traffic rate is replaced, if Instrumentation And Communications Host is not connected with successfully, then communication host replaces traffic rate, is re-searched for instrument.
Meter address is searched for, communication host carries out meter address poll to instrument, and communication host reads the special mark of instrument Know register, address register, model register, version number's register, obtains address information, type information and the version of instrument Number information.
In one embodiment, when need to only be operated to the instrument of a certain model, it is preferable that step search meter address Further include:The mter model of address to be searched is set, communication host carries out meter address poll to the corresponding instrument of mter model, Communication host reads address register, model register, the version number's register of instrument, obtains the ground that mter model corresponds to instrument Location information and version number information save the time that communication host searches the model meter address information, improve work efficiency.
In one embodiment, when the mailing address range of the instrument of clear communication bus carry, it is preferable that step search Meter address further includes:Address query context is set, and communication host carries out meter address poll to the instrument in address range, leads to Believe that host reads address register, model register, the version number's register of instrument, obtains the address letter of instrument in address range Breath, type information and version number information, save communication host into the time of row address poll, improve work efficiency.
A kind of meter address searcher based on bus, as shown in Fig. 2, including communication host, interface convertor, several Instrument, communication bus, power module, in the present embodiment, instrument is connect by translation interface with interface convertor, solves instrument It cannot be directly connected to problem between interface and general converter, connected by communication bus between communication host and interface convertor It connects, interface convertor is connect with several instrument, and power module is connect with communication host and several instrument, and power module is that communication is led Machine and several instrument provide power supply, and instrument includes address register, model register, version number's register, and communication host is to instrument Table carries out meter address poll, and communication host reads address register, model register, the version number's register of instrument, obtains Address information, type information and the version number information of instrument.
In one embodiment, it is preferable that communication host includes communication connection detection module, communication connection detection module detection The communication connection of communication host and instrument specially communicates to connect detection module and sends broadcasting command to instrument, if instrument is not returned Response data is returned, then Instrumentation And Communications host is not connected with successfully;If instrument returning response data, the connection of Instrumentation And Communications host Success, if Instrumentation And Communications host is not connected with successfully, communication host replaces traffic rate, and communication connection detection module is to instrument It is re-searched for.
In one embodiment, it is preferable that communication host further includes mter model setup module, and mter model setup module is used In the mter model that address to be searched is arranged, communication host carries out meter address poll, communication to the corresponding instrument of mter model Host reads address register, model register, the version number's register of instrument, obtains the address letter that mter model corresponds to instrument Breath and version number information.
In one embodiment, it is preferable that communication host further includes address setup module, and address setup module is for being configured Location query context, communication host carry out meter address poll to the instrument in address range, and communication host reads the address of instrument Register, model register, version number's register obtain address information, type information and the version number of instrument in address range Information.
In one embodiment, it is preferable that interface convertor is specially RS485 converters, and communication bus is specially RS485 total Line, communication host are connect by RS485 converters with RS485 buses.If communication host does not have serial ports, RS485 is turned using USB and is turned Parallel operation connection communication host connects expansion interface because the metered quantity of the practical carry of RS485 buses is limited by interface convertor Enable the more instrument of RS485 bus carries.
The present invention provides a kind of meter address searching method based on bus, including step:Communication connection is established, detection is logical Letter connection, searches for meter address, establishes the connection of communication host and instrument by communication bus;Detect communication host and instrument Communication connection, when communicating to connect successfully, communication host carries out meter address poll to instrument, and communication host reads the address of instrument Register, model register, version number's register obtain address information, type information and the version number information of instrument;The present invention It is related to a kind of meter address searcher based on bus;The present invention can in quick search to bus all instrument address letter Breath, and identify the type information and version number information of the instrument, by the way that the type information of instrument is arranged, enable communication host The address information and version number information for inquiring this model instrument save communication host inquiry by the way that address query context is arranged The time of meter address information improves search efficiency, solves scene and is unable to different model in quick search to bus, different versions This number meter address problem, it is subsequently to prepare to the upgrading of instrument to reduce a large amount of manual operation.
More than, only presently preferred embodiments of the present invention is not intended to limit the present invention in any form;All one's own professions The those of ordinary skill of industry can be shown in by specification attached drawing and above and swimmingly implement the present invention;But all to be familiar with sheet special The technical staff of industry without departing from the scope of the present invention, is made a little using disclosed above technology contents The equivalent variations of variation, modification and evolution are the equivalent embodiment of the present invention;Meanwhile all substantial technologicals according to the present invention To the variation, modification and evolution etc. of any equivalent variations made by above example, technical scheme of the present invention is still fallen within Within protection domain.

Claims (10)

1. a kind of meter address searching method based on bus, it is characterised in that include the following steps:
Communication connection is established, the connection of communication host and instrument by communication bus is established;
Detection communication connection, detects the communication connection of the communication host and the instrument, described when communicating to connect successfully, redirects To step search meter address;
Meter address is searched for, the communication host carries out meter address poll to the instrument, described in the communication host is read Address register, model register, the version number's register of instrument, obtain address information, type information and the version of the instrument This number information.
2. a kind of meter address searching method based on bus as described in claim 1, which is characterized in that the step search Meter address further includes:The mter model of address to be searched is set, and the communication host is to the corresponding instrument of the mter model Meter address poll is carried out, the communication host reads the address register of the instrument, model register, version number's deposit Device obtains address information and version number information that the mter model corresponds to instrument.
3. a kind of meter address searching method based on bus as described in claim 1, which is characterized in that the step search Meter address further includes:Address query context is set, and the communication host is to the instrument progress instrument within the scope of described address Location poll, the communication host read the address register of the instrument, model register, version number's register, described in acquisition The address information of instrument, type information and version number information in address range.
4. a kind of meter address searching method based on bus as described in claim 1, it is characterised in that:The step detection The specially described communication host transmission broadcasting command of communication connection is to the instrument, if the non-returning response data of the instrument, The instrument is not connected with successfully with the communication host;If instrument returning response data, the instrument and the communication host Successful connection.
5. a kind of meter address searching method based on bus as claimed in claim 4, which is characterized in that the step detection Communication connection further includes:Traffic rate is replaced, if the instrument is not connected with successfully with the communication host, the communication host Traffic rate is replaced, the instrument is re-searched for.
6. a kind of meter address searcher based on bus, it is characterised in that:Including communication host, interface convertor, several Instrument, communication bus, power module are connected between the communication host and the interface convertor by the communication bus, The interface convertor is connect with several instrument, and the power module connects with the communication host and several instrument It connects, the power module provides power supply for the communication host and several instrument, and the instrument includes address register, type Number register, version number's register, the communication host carry out meter address poll to the instrument, and the communication host is read Address register, model register, the version number's register of the instrument, obtain address information, the type information of the instrument And version number information.
7. a kind of meter address searcher based on bus as claimed in claim 6, it is characterised in that:The communication host Including communicating to connect detection module, the communication connection detection module detects the communication link of the communication host and the instrument It connects.
8. a kind of meter address searcher based on bus as claimed in claim 6, it is characterised in that:The communication host Further include mter model setup module, the mter model setup module is used to be arranged the mter model of address to be searched, described Communication host carries out meter address poll to the corresponding instrument of the mter model, and the communication host reads the ground of the instrument Location register, model register, version number's register obtain address information and version number's letter that the mter model corresponds to instrument Breath.
9. a kind of meter address searcher based on bus as claimed in claim 6, it is characterised in that:The communication host Further include address setup module, described address setup module is for being arranged address query context, and the communication host is to described Instrument within the scope of location carries out meter address poll, and the communication host reads the address register of the instrument, model deposit Device, version number's register obtain address information, type information and the version number information of instrument within the scope of described address.
10. a kind of meter address searcher based on bus as claimed in claim 6, it is characterised in that:The interface turns Parallel operation is specially RS485 converters, and the communication bus is specially RS485 buses, and the communication host is turned by the RS485 Parallel operation is connect with the RS485 buses.
CN201711386954.0A 2017-12-20 2017-12-20 Bus-based instrument address searching method and device Active CN108319565B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711386954.0A CN108319565B (en) 2017-12-20 2017-12-20 Bus-based instrument address searching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711386954.0A CN108319565B (en) 2017-12-20 2017-12-20 Bus-based instrument address searching method and device

Publications (2)

Publication Number Publication Date
CN108319565A true CN108319565A (en) 2018-07-24
CN108319565B CN108319565B (en) 2020-12-15

Family

ID=62892835

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711386954.0A Active CN108319565B (en) 2017-12-20 2017-12-20 Bus-based instrument address searching method and device

Country Status (1)

Country Link
CN (1) CN108319565B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115314384A (en) * 2022-06-13 2022-11-08 珠海派诺科技股份有限公司 Device upgrading method and device upgrading system under RS485 bus and collector

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102014172A (en) * 2010-08-13 2011-04-13 深圳市科陆电子科技股份有限公司 Method for automatically searching electric meter address below collector
US8909803B2 (en) * 2009-03-16 2014-12-09 Apple Inc. Accessory identification for mobile computing devices
CN104731062A (en) * 2015-02-06 2015-06-24 武汉虹信通信技术有限责任公司 Intelligent network management system and method used for monitoring state and dispatching for instruments
CN105161130A (en) * 2014-05-28 2015-12-16 惠州市德赛西威汽车电子股份有限公司 Method for on-line burning and verifying method of EEPROM of automobile instrument

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8909803B2 (en) * 2009-03-16 2014-12-09 Apple Inc. Accessory identification for mobile computing devices
CN102014172A (en) * 2010-08-13 2011-04-13 深圳市科陆电子科技股份有限公司 Method for automatically searching electric meter address below collector
CN105161130A (en) * 2014-05-28 2015-12-16 惠州市德赛西威汽车电子股份有限公司 Method for on-line burning and verifying method of EEPROM of automobile instrument
CN104731062A (en) * 2015-02-06 2015-06-24 武汉虹信通信技术有限责任公司 Intelligent network management system and method used for monitoring state and dispatching for instruments

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张仕伦: "HART通讯协议及应用", 《自动化与仪器仪表》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115314384A (en) * 2022-06-13 2022-11-08 珠海派诺科技股份有限公司 Device upgrading method and device upgrading system under RS485 bus and collector

Also Published As

Publication number Publication date
CN108319565B (en) 2020-12-15

Similar Documents

Publication Publication Date Title
CN105844892B (en) Identify the device and method of the ammeter in electric system platform area
CN107146395A (en) The kilowatt meter reading-out system and meter register method communicated based on bandwidth carrier
CN104916048B (en) One kind is based on internet thinking, cloud platform, charge control system and method that APP pays
CN102608962B (en) A kind of power information collecting device automatic maintenance method from bottom to top
CN102339300A (en) Automatic meter searching method for intelligent power grid
CN109407657A (en) A kind of remote vehicle data collection system based on CAN bus CCP agreement
CN108154675A (en) Electric Power Data Collector and acquisition system
CN206400530U (en) A kind of industrial bus system of adaptive three kinds of industrial bus agreements
CN105488994A (en) Electrical transformer district electricity meter dynamic three-phase single phase line loss acquisition method
CN104408546A (en) Internet-of-things-based automatic generation system of vehicle maintenance electronic archive
CN202584408U (en) Remote power meter reading system
CN110737665B (en) Data processing method and device
CN108319565A (en) A kind of meter address searching method and device based on bus
CN106373279A (en) Communication method for intelligent IC card water meter for multi-meter centralized reading system
CN204178381U (en) Be applied to the multi-functional cable identity device of Design of Cable Layout system
CN201732472U (en) Automatic testing device of concentrated electric energy meter reading equipment
CN104636368A (en) Data retrieval method and device and server
CN100462936C (en) Universal serial bus host controller rapid testing system and method thereof
CN106686549A (en) Sharing bicycle park system based on wireless positioning base station
CN103577485B (en) Master slave mode inquiry system and method
CN202600940U (en) Wireless meter reading system
CN105632160A (en) Electricity information acquisition system
CN108304203A (en) A kind of more instrument firmware upgrade methods and device
CN106997659B (en) Meter searching method for maintaining meter files of multi-meter acquisition equipment with multi-type meter reading ports
CN206118100U (en) LED lamp location control circuit that plough

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant