CN109887262B - Automatic installation method of MBUS remote meter reading system - Google Patents

Automatic installation method of MBUS remote meter reading system Download PDF

Info

Publication number
CN109887262B
CN109887262B CN201910255707.XA CN201910255707A CN109887262B CN 109887262 B CN109887262 B CN 109887262B CN 201910255707 A CN201910255707 A CN 201910255707A CN 109887262 B CN109887262 B CN 109887262B
Authority
CN
China
Prior art keywords
slave
address
master station
installation
judging whether
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
Application number
CN201910255707.XA
Other languages
Chinese (zh)
Other versions
CN109887262A (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.)
Ningbo Sanxing Electric Co Ltd
Original Assignee
Ningbo Sanxing Electric 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 Ningbo Sanxing Electric Co Ltd filed Critical Ningbo Sanxing Electric Co Ltd
Priority to CN201910255707.XA priority Critical patent/CN109887262B/en
Publication of CN109887262A publication Critical patent/CN109887262A/en
Application granted granted Critical
Publication of CN109887262B publication Critical patent/CN109887262B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Arrangements For Transmission Of Measured Signals (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The invention relates to an automatic installation method of an MBUS remote meter reading system, which is characterized by comprising the following steps: s1, the master station automatically searches the slave machines; s2, if the slave is searched, judging whether the master station has an available channel, if the slave is not searched, executing S5; s3, if the master station has an available channel, allocating the available channel for the slave and executing S4, if the master station has no available channel, executing S5; s4, the master station automatically determines the address for the slave and returns to S1; and S5, finishing the installation. The method can realize automatic installation of the slave machine, has high installation efficiency and is very convenient to use.

Description

Automatic installation method of MBUS remote meter reading system
Technical Field
The invention relates to the technical field of meter reading, in particular to an automatic installation method of an MBUS remote meter reading system.
Background
The MBUS remote meter reading system is a European standard two-wire system bus system, an intelligent electric meter is used as a master station, a water meter, a gas meter and a heat meter are used as slave stations, and the master station acquires information of the slave stations through an MBUS bus to realize the centralized meter reading of four meters.
At present, the mode of installing slave stations such as water meters, gas meters, heat meters and the like to a master station is generally manual installation, namely, when a certain slave station needs to be installed, the slave station is accessed to an MBUS bus, and when another slave station needs to be installed, the accessed slave station needs to be detached and then the slave station to be accessed is installed. For example, the slave station address to be installed must be 0, and only one device with an address of 0 exists on the bus, so that the slave station address cannot be installed under many conditions, such as the slave station address is not 0, the field installation requirement cannot be met, and the operation and use are inconvenient.
Disclosure of Invention
In view of the above problems, the present invention aims to provide an automatic installation method for an MBUS remote meter reading system, which can automatically assign addresses to MBUS devices and is convenient to use.
In order to achieve the purpose, the invention adopts the technical scheme that: an automatic installation method of an MBUS remote meter reading system is characterized in that: the method comprises the following steps of,
s1, the master station automatically searches the slave;
s2, if the slave is searched, judging whether the master station has an available channel, if the slave is not searched, executing S5;
s3, if the master station has an available channel, allocating the available channel for the slave and executing S4, if the master station has no available channel, executing S5;
s4, the master station automatically determines the address for the slave and returns to S1;
s5, finishing the installation;
wherein the step of the master station determining the address for the slave in S4 comprises,
s41, judging whether the native address of the slave is legal, if so, continuing to judge, and if not, reallocating the address for the slave;
the step of continuing the judgment in S41 includes,
s411, judging whether the slave information conflicts with the installed equipment information, if so, executing S412, and if not, continuing to judge;
s412, judging whether the address of the slave machine is consistent with the address of the installed equipment, if so, indicating that the installation of the slave machine is successful; if not, the slave machine restores the master station to store the address.
The step of continuing the judgment in S411 includes,
s4111, judging whether the native address of the slave is 0, if so, reallocating the address to the slave, otherwise, continuously judging whether the slave conflicts with the address of the installed equipment, if so, reallocating the address to the slave, and if not, installing according to the native address of the slave.
Further, the main station is an electric meter.
Further, the slave machines comprise a water meter, a gas meter and a heat meter.
Further, the legal address range is 0-250.
Further, the rule of reallocating the addresses is that the first unused address is searched from small to large as the installation address of the slave.
Furthermore, the number of searching times for searching the first unused address from small to large is not more than the preset installation number of the slave machines.
Compared with the prior art, the invention has the advantages that: the master station automatically searches the slave machines and automatically allocates and determines addresses for the slave machines according to the conditions of the slave machines, and when the information and the addresses of the installed slave machines are the same, the slave machines are not processed, so that the installation efficiency is improved; the method has the advantages that the slave with illegal addresses can be reallocated for installation, and the slave with addresses not being 0 and conflicting with the installed equipment can also be reallocated for installation, so that the method has good applicability; the slave machine with the address not being 0 and not conflicting with the installed equipment can be installed by using the address of the slave machine, so that the chance of address change is reduced, and communication faults are avoided; the slave which is installed but the address is changed to cause that the communication is not available is automatically installed by the method, the original address can be recovered for communication, and the application is very convenient.
Drawings
Fig. 1 is a schematic structural diagram of an embodiment of the MBUS remote meter reading system of the present invention.
Fig. 2 is a flowchart of an embodiment of an automatic installation method of an MBUS remote meter reading system according to the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
Fig. 2 is a flowchart illustrating an automatic installation method of an MBUS remote meter reading system according to an embodiment of the present invention, the automatic installation method of an MBUS remote meter reading system includes,
s1, the master station automatically searches the slave;
s2, if the slave is searched, judging whether the master station has an available channel, if the slave is not searched, executing S5;
s3, if the master station has an available channel, allocating the available channel for the slave and executing S4, if the master station has no available channel, executing S5;
s4, the master station automatically determines the address for the slave and returns to S1;
and S5, finishing the installation.
When the master station automatically determines the address for the slave, whether the native address of the slave is legal is judged firstly, if so, whether the information of the slave conflicts with the information of the installed equipment is continuously judged, and if not, the address is reallocated for the slave.
And if the slave information conflicts with the installed equipment information, namely the slave is installed on the master station before, continuously judging whether the slave address is consistent with the installed equipment address. If the slave is consistent with the master station, the slave is successfully installed to the master station, data interaction can be carried out, further installation is not needed, and the next slave searching is directly quitted; if the addresses of the slaves are inconsistent with the addresses of the master channels, the slaves are installed before, but the addresses are modified for some reason, in this case, the slaves do not need to be re-allocated with new addresses for installation, and data interaction can be performed only by restoring the addresses of the slaves to the addresses stored in the master channels, so that the slaves can normally communicate with the electricity meter.
If the slave information does not conflict with the installed device information, namely the slave is not installed on the master station before, the original address of the slave is continuously judged whether to be 0 or not. If the native address of the slave is 0, the slave is redistributed with the address, and further installation tasks are set according to the channel and the table number; and if the native address of the slave is not 0, continuously judging whether the native address of the slave conflicts with the installed equipment address. If the original address of the slave machine does not conflict with the installed equipment address, the original address of the slave machine is used for installation, and a further installation task is set according to the channel and the table number; if the native address of the slave conflicts with the installed device address, the native address of the slave is used in the master station, the slave needs to be reassigned to an address for installation, and further installation tasks are set according to the channel and the table number.
The method for judging whether the master station has the available channel is realized by reading the initial address of the master station channel, if the number of the channels of which the addresses are used is consistent with the number of the preset installed slave machines, the fact that the slave machines are installed is indicated, no available channel exists, and if not, the number of the channels of which the addresses are used is smaller than the number of the preset installed slave machines, the available channels are increased for the slave machines to be installed.
As shown in fig. 1, which is a schematic structural diagram of an embodiment of the MBUS remote meter reading system of the present invention, in this embodiment, the master station is an electric meter, the slave machines include a water meter, a gas meter, a heat meter, and the like, and metering data of the water meter, the gas meter, and the heat meter is transmitted to the electric meter through the MBUS bus, and then transmitted to the console server through the electric meter in a wired or wireless transmission manner, so as to implement remote meter reading. A plurality of slave devices can be automatically installed on the MBUS bus, so that remote meter reading is very convenient.
In this embodiment, the legal address range is 0-250.
In this embodiment, the rule for reallocating addresses is that the first unused address is searched from small to large as the slave installation address.
In this embodiment, the number of searching times for searching the first unused address from small to large is not greater than the preset number of installed slaves. For example, the master station plans to install 4 slave devices, when the slave devices are reassigned addresses, only four times of searching are needed at most in a legal address range to obtain unused addresses, if the number of the used addresses exceeds four times, the slave devices are installed completely, no available channel exists, and the slave devices are not installed even if the slave devices are searched later, so that the inquiry of the slave devices is not performed, and the automatic installation process is directly finished, so that the installation efficiency can be improved, and the repeated installation is avoided.
The master station automatically searches the slave machines and automatically allocates the determined addresses to the slave machines according to different conditions of the slave machines, so that the slave machines are very convenient to install and use. When the information and the address of the installed slave are the same, the slave is not processed, and the installation efficiency is improved; the method has the advantages that the slave with illegal addresses can be reallocated for installation, and the slave with addresses not being 0 and conflicting with the installed equipment can also be reallocated for installation, so that the method has good applicability; the slave machine with the address not being 0 and not conflicting with the installed equipment can be installed by using the address of the slave machine, so that the chance of address change is reduced, and communication faults are avoided; the slave which is installed but the address is changed to cause that the communication is not available is automatically installed by the method, the original address can be recovered for communication, and the application is very convenient.
In addition to the above-mentioned modifications, other similar modifications are also included in the scope of the modifications of the present invention, and are not described herein in detail. While embodiments of the invention have been shown and described, it will be understood by those skilled in the art that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.

Claims (6)

1. An automatic installation method of an MBUS remote meter reading system is characterized in that: the method comprises the following steps of,
s1, the master station automatically searches the slave;
s2, if the slave is searched, judging whether the master station has an available channel, if the slave is not searched, executing S5;
s3, if the master station has an available channel, allocating the available channel for the slave and executing S4, if the master station has no available channel, executing S5;
s4, the master station automatically determines the address for the slave and returns to S1;
s5, finishing the installation;
wherein the step of the master station determining addresses for the slaves in S4 includes,
s41, judging whether the native address of the slave is a legal address, if so, continuing the judgment, and if not, reallocating the address for the slave;
the step of continuing the judgment in S41 includes,
s411, judging whether the slave information conflicts with the installed equipment information stored by the master station, if so, executing S412, and if not, continuing to judge;
s412, judging whether the address of the slave is consistent with the address of the installed equipment stored by the master station, if so, indicating that the installation of the slave is successful; if not, the address of the slave machine is restored to the address saved by the master station;
the step of continuing the judgment in S411 includes,
s4111, judging whether the native address of the slave is 0, if so, reallocating the address to the slave, otherwise, continuously judging whether the slave conflicts with the installed equipment address stored by the master station, if so, reallocating the address to the slave, and if not, installing according to the native address of the slave.
2. The method of claim 1, further comprising:
the main station is an ammeter.
3. The method of claim 2, further comprising:
the slave machine comprises a water meter, a gas meter and a heat meter.
4. The method of claim 1, further comprising:
the legal address range is 0-250.
5. The method of claim 1, further comprising:
the rule for reallocating the addresses is that the first unused address is searched from small to large to be used as a slave installation address.
6. The method of claim 5, further comprising:
and the searching times of searching the first unused address from small to large is not more than the preset installation number of the slave machines.
CN201910255707.XA 2019-03-29 2019-03-29 Automatic installation method of MBUS remote meter reading system Active CN109887262B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910255707.XA CN109887262B (en) 2019-03-29 2019-03-29 Automatic installation method of MBUS remote meter reading system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910255707.XA CN109887262B (en) 2019-03-29 2019-03-29 Automatic installation method of MBUS remote meter reading system

Publications (2)

Publication Number Publication Date
CN109887262A CN109887262A (en) 2019-06-14
CN109887262B true CN109887262B (en) 2021-03-16

Family

ID=66935506

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910255707.XA Active CN109887262B (en) 2019-03-29 2019-03-29 Automatic installation method of MBUS remote meter reading system

Country Status (1)

Country Link
CN (1) CN109887262B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113938471B (en) * 2021-09-26 2024-06-07 广州极飞科技股份有限公司 Automatic device adding method, device, system, device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102339300A (en) * 2011-06-17 2012-02-01 杭州炬华科技股份有限公司 Automatic meter searching method for intelligent power grid
CN105933468A (en) * 2016-06-13 2016-09-07 江苏赛达电子科技有限公司 Water meter reading system and reading method of wireless ad hoc network

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4095389B2 (en) * 2002-09-18 2008-06-04 大阪瓦斯株式会社 Communication system, communication terminal, and server
US8314717B2 (en) * 2009-09-01 2012-11-20 Harris Corporation Network address field for nodes within a meter reading wireless mesh network and associated system
CN102325201B (en) * 2011-10-27 2013-10-09 珠海派诺科技股份有限公司 Method for allocating network addresses to slave node equipment in Modbus communication network
CN103546592A (en) * 2013-10-22 2014-01-29 深圳市国电科技通信有限公司 Automatic energy meter address searching method
CN106530667A (en) * 2016-11-09 2017-03-22 深圳云联讯数据科技有限公司 Automatic address allocation serial port ammeter acquiring method and smart ammeter acquiring system
CN106603308A (en) * 2017-01-03 2017-04-26 国网浙江省电力公司宁波供电公司 Method and system for household meter dynamic registration and stage area identification
CN106878488B (en) * 2017-04-29 2020-03-20 成都工鼎科技有限公司 Automatic Modbus RTU bus address allocation method
CN109218155A (en) * 2018-09-13 2019-01-15 深圳益邦物联科技有限公司 Address automatic distribution system and method based on Modbus rtu protocol
CN108986440B (en) * 2018-09-27 2020-07-17 深圳友讯达科技股份有限公司 Multi-network fusion meter reading system and address allocation method of meter reading system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102339300A (en) * 2011-06-17 2012-02-01 杭州炬华科技股份有限公司 Automatic meter searching method for intelligent power grid
CN105933468A (en) * 2016-06-13 2016-09-07 江苏赛达电子科技有限公司 Water meter reading system and reading method of wireless ad hoc network

Also Published As

Publication number Publication date
CN109887262A (en) 2019-06-14

Similar Documents

Publication Publication Date Title
CN101140528B (en) Method and device for realizing timing tasks load in cluster
US11336616B2 (en) Address competition method of multi-connected type control system
RU2009107025A (en) CENTRALIZED ALLOCATION OF RADIO RESOURCES IN COMMUNICATION NETWORKS
CN115242752B (en) Address allocation method, device, equipment and medium of battery management system
CN112532761B (en) Management method and device for automatically reporting and recording public network address
CN111399764A (en) Data storage method, data reading device, data storage equipment and data storage medium
CN109887262B (en) Automatic installation method of MBUS remote meter reading system
CN113852699B (en) System and method for automatically distributing bus address
CN104410511B (en) A kind of server management method and system
CN106302864A (en) A kind of IP in order arranges system
CN103079207A (en) Configuration method and equipment of physical cell identity (PCI)
CN109787688B (en) Communication device, pluggable optical module, communication system, communication method, and storage medium
CN111371593B (en) Service deployment method, device, electronic equipment and storage medium
CN112860494A (en) Data center switching method and related equipment thereof
CN107249050A (en) The management method and device of resource in cloud platform
CN106301889B (en) A kind of port numbers rapid-setting method and system
CN106028303B (en) Intelligent device discovery method and device
CN106844036A (en) The access method and device of physical equipment
CN105657831B (en) Baseband resource management method and device
CN102244929B (en) Method for distributing signal processing resources to carriers
CN105740180A (en) Virtual machine access method and apparatus for USB device
CN104221416A (en) Frequency hopping sequence planning method and device
CN104615410A (en) Multi-type hardware interface instruction processing method and system
CN114884770B (en) Multi-machine communication system and communication method based on system bus
CN112860708B (en) Data consistency restoration method, system, device and equipment

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