CN108109356A - A kind of collector concentrator realized using virtual meter to oneself state monitoring - Google Patents

A kind of collector concentrator realized using virtual meter to oneself state monitoring Download PDF

Info

Publication number
CN108109356A
CN108109356A CN201611054806.4A CN201611054806A CN108109356A CN 108109356 A CN108109356 A CN 108109356A CN 201611054806 A CN201611054806 A CN 201611054806A CN 108109356 A CN108109356 A CN 108109356A
Authority
CN
China
Prior art keywords
collector
address
meter
concentrator
virtual meter
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.)
Pending
Application number
CN201611054806.4A
Other languages
Chinese (zh)
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.)
Shanghai Yingshiwei Energy Data Technology Co Ltd
Original Assignee
Shanghai Yingshiwei Energy Data 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 Shanghai Yingshiwei Energy Data Technology Co Ltd filed Critical Shanghai Yingshiwei Energy Data Technology Co Ltd
Priority to CN201611054806.4A priority Critical patent/CN108109356A/en
Publication of CN108109356A publication Critical patent/CN108109356A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The present invention is directed to central heating household-based heat metering field, propose a kind of method of virtual meter, judgement to collector/concentrator state can be realized by this method, and address configuration can be carried out to virtual meter by way of toggle switch or Remote configuration.Virtual meter is realized by the method for software inside microcontroller, and the configuration of virtual meter address is realized by the toggle switch outside microcontroller, ensures the uniqueness of the virtual meter address in certain area.

Description

A kind of collector concentrator realized using virtual meter to oneself state monitoring
Technical field
The present invention relates to central heating household-based heat metering FIELD OF THE INVENTIONThe, a kind of realized using virtual meter supervises oneself state Wireless data acquisition unit/concentrator of control.
Background technology
In the city dweller's heating method of the northern area of China, central heating is a kind of main method.It is counted to heat It needs to use calorimeter during amount, and realizes that calorimeter meter reading is then needed using wireless data acquisition system, including collector, concentrate Device.
In the During Process of Long-term Operation of collector/concentrator, control data corporation needs to know collector and concentrator energy No normal work.So when wireless data acquisition system exception, administrative center can facilitate, timely remote diagnosis goes wrong Source, and then solve the problems, such as.
Transparent transmission collector/concentrator traditionally, be by being successfully transmitted the metrical information of the next meter to administrative center, Prove that itself is working properly, when the next meter breaks down or lower BITBUS network breaks down, collector/concentrator It can not copy and remove a meter, at this moment administrative center can not know whether collector/concentrator is normal.This position investigation solve the problems, such as and The work quality for effectively weighing collector/concentrator brings difficulty.
The content of the invention
In central heating field, in order to realize the automatic data logging to calorimeter, it will usually which mating installation calorimeter data are adopted Collecting system mainly includes calorimeter data collector and concentrator.Calorimeter teletransmission data collecting system can be by household heat supplying Flow, heating power gather simultaneously teletransmission to number for information such as heat history heat, water inlet temperature, outlet temperatures from calorimeter According to center, control of the Thermal Corp for system running state is strengthened, and is conducive to analyze data, is later The optimization operation of heating system provides certain foundation.
Typical calorimeter teletransmission acquisition system is as shown in Figure 1.
As shown in Figure 1, every collector can be by MBUS connection certain amount meters, and collector and between concentrator It can wirelessly communicate.It is needed after collector installation to debugging, to ensure that equipment, link are in normal State.At this point it is possible to carry out field adjustable using instrument, while the verification of server end can be carried out:Guarantee can be normal Meter reading.
In system normal operation, the state of collector can not be monitored;And if after a period of time is run System goes wrong, it is difficult to the problem of the problem of intuitively determining collector or meter or link, to the investigation of problem It makes troubles.
According to problem described previously, the present invention proposes a kind of new collector/concentrator software scheme, and logic diagram is such as Shown in Fig. 2, the program be while big change is not carried out to legacy data transmission mode, control flow, realize for The judgement of collector, communication link state.
As shown in Fig. 2, the present invention be original concentrator, collector control logic in add in a virtual meter, The function of meter is namely realized using software:The order for meeting related protocol form is received, returns to the meter of certain format Reply data.The function of meter thus is realized in the level of software, in concentrator, collector or administrative center, Such virtual meter is different there is no what from true meter.Agreement mentioned here is including but not limited to CJ/T 188- 2004。
Concentrator, collector inner utilization software realize virtual meter composition as shown in figure 3, mainly include it is as follows Several parts:Address configuration, command analysis, data answering and logic control.Wherein, address configuration is the address to virtual meter It is configured, it realizes and set data to preserve using the interactive elements on circuit board, ensures different collection with this The uniqueness of virtual meter address in middle device, collector.The configuration address can also be considered as to the address of collector, it is so each There are one unique address, condition adjudgement is carried out using this unique address to concentrator, collector for a collector.
Address configuration includes state and sets and store.State setting can be using the interaction component on circuit board come complete Into, such as toggle switch, button etc., the setting of address is completed with this.In view of the actual conditions of concentrator, concentrator is adopted The quantity of storage may be more than the state range of toggle switch, and some other set-up mode may be less convenient, so In this case the mode of Remote configuration is used, i.e. the host computer of concentrator loads the address of concentrator by communication link It is configured.Storage is then to preserve the address state that control logic is read, in command analysis and response, it is necessary to use To the address.
Command analysis is that the meter reading order of collector, concentrator is parsed, obtains its operation content.
Data answering is the response to collector, concentrator meter reading order, is by the judgement to order, makes corresponding Data answering.
Logic control is the control to virtual meter flow, reading, the reception of meter reading order set including address state With the transmission of data answering etc..
System describe
Inside collector/concentrator by way of software, increase a virtual meter, which can receive symbol The order of related protocol is closed, reply data is returned to afterwards, to realize the function of meter.Virtual meter is present in collector data biography Outside defeated and control logic, status is suitable with external true meter, equally there is the information such as address, and simply these information are not Real calorimeter data are, it is necessary to be identified meter using special value.When being filled to virtual meter reply data, It is contemplated that the data of some other aspects, for example be filled using the temperature of concentrator local, so convenient to concentrating When device, collector status are judged, the data of some other aspects can also be obtained, strengthening system is to the analysis energy of data Power.The filling of certain data needs to meet relevant protocol rule.
Due to calorimeter, manufacturer is numerous, and each family is less identical to the understanding of agreement, causes actual calorimeter communication protocol There are some small differences, to tackle such case, the specific agreement of virtual meter can be configured, make virtual meter Actual data communication agreement is identical with the calorimeter communication protocol that the concentrator is connected.On the one hand so that virtual meter and reality The differentiation of meter is more fuzzy, on the other hand decreases the complexity of upper platform data processing.When concentrator connection is a variety of During the meter that data communication protocol has differences, the protocol type for making virtual meter is one of which.
After installation is complete, collector can read virtual meter first during system operation, then that its reply data is upward Transmission, on data platform, can check the data of the virtual meter.Thus PROBLEM DECOMPOSITION can be coordinated true meter Data, can more quick failure judgement position.
In specific operation, administrative center can copy the data for taking virtual meter first, if there is response, then recognize at this time Communication link between collector and collector and concentrator is normal;Otherwise need to check it.Afterwards to true Real meter carries out meter reading, if there is response, then all goes well;Otherwise it is assumed that meter(Including meter)To leading between collector Believe that there are problems for link.Fig. 4 is the flow chart judged.
Description of the drawings
Fig. 1 is calorimeter teletransmission acquisition system communication link schematic diagram;
Fig. 2 is collector logic diagram;
Fig. 3 forms for virtual meter;
Fig. 4 is breakdown judge flow;
Fig. 5 is the annexation figure of toggle switch and STM32F103VET6 chips;
Fig. 6 is address remote configuration data frame structure(Example);
Fig. 7 is local debugging breakdown judge example.
Specific embodiment
Below according to the drawings and specific embodiments, the invention will be further described:
In the present embodiment, virtual meter is realized in microcontroller inner utilization software.Microcontroller uses STM32F103VET6, toggle switch are connected with the PE8-PE15 pins of STM32F103VET6 chips(But it is not limited to these pipes Foot)It is connected, as shown in Figure 5.
In the present apparatus, 3 in toggle switch are only used, corresponding STM32F103VET6 chips draw Foot is PE9-PE11 pins, can so set 8 different addresses, correspond to toggle switch and from a high position to low label It is 5,6,7 successively.
1st, address configuration
(1)Toggle switch address configuration
The configuration of address state is completed using toggle switch, by setting the state of several toggle switch, can reach and set Determine the purpose of different address.
In this example, the configuration of address is completed using 3 toggle switch, can so generate 8 different addresses.By In in a cell existing collector, concentrator quantity be usually no more than 8, so this quantity can be met the requirements. When collector, concentrator quantity are more than 8, it may be considered that setting address is carried out in more toggle switch positions.
(2)Remote address configures
Configuration to concentrator, collector address is realized by host computer, host computer can be that computer is connect by uart etc. Mouth is connected with concentrator, collector or host computer is carried out by way of wireless network.Due to host computer and concentrator In communication process, configuration process does not have dependence to data protocol, so to simplify explanation, host computer is directly by configuration information Concentrator is sent to, as shown in Figure 6.
It after concentrator, collector receive virtual meter configuration address data, saves it in flash, so as to disconnected Point still can have correctly virtual meter address after restarting, while Virtual table is counted to the address in structure and is carried out Modification.
(3)Protocol configuration
Agreement for being followed virtual meter configures, and data frame is as shown in Figure 6.By itself and virtual meter address Data are put together, streamline operation, and the configuration of agreement is carried out while virtual meter memory address configuration.Different agreement Between difference be the order of individual data byte, it is possible to different agreements is realized according to the difference.Following reality It is illustrated in example with certain specific agreement.
2nd, frame format
According to agreement, the frame format of order and meter response should comply with following form.Wherein frame bebinning character is fixed as 0x68, end mark are fixed as 0x16.Meter type is different and different with meter type, in this example, by meter type T It is set to 0x20, i.e. calorimeter(Count heat), naturally it is also possible to other types of meter is arranged to, is to keep and gather here The actual working environment of device is consistent(Data acquisition is carried out to calorimeter).Data below is 16 systems unless stated otherwise Data.
1 frame format of table
3rd, meter data are read
, it is necessary to modify to corresponding data in table 1, including control code, Data Identification etc. when being read out to data.It reads The frame configuration example of meter data is as shown in table 2.
2 read data frame example of table
Byte order 0 1 2-8 9 10 11-12 13 14 15
Explanation Starting T A0-A6 Control code L Data Identification SER CS 16H
Example 68 20 12 34 56 78 00 11 11 01 03 90 1F 00 71 16
After virtual meter receives mentioned order, according to command format, it is parsed.If the meter address in order And verification identical with the address of virtual meter is correct, then should be according to example format returned data as shown in table 3.
For this example, the data of reading are preset, it is possible to further be sentenced after the data are read Break whether it consistent with preset value, confirms whether the working condition of collector is normal with this.
Table 3 reads data answering example
Byte order 0 1 2-8 9 10 11-12 13 14-56 57 58
Explanation Starting T A0-A6 Control code L Data Identification SER DATA CS Terminate
Example 68 20 12 34 56 78 00 11 11 81 2E 90 1F 00 (*) 83 16
(*)78 56 34 12 05 78 56 34 12 05 78 56 34 12 14 78 56 34 12 32 78 56 34 12 2C 78 56 00 34 12 00 56 34 12 37 47 21 08 06 10 20 00 04
4th, the filling of virtual meter reply data
In order to improve the utilization rate of virtual meter reply data, the data field of acknowledgement frame can be customized, that is, according to reality The demand on border fills corresponding data in data field, can include the data such as oneself state, the environment temperature of equipment, is upper The data analysis of machine provides foundation.This also provides a kind of data-interface with regard to the communication between host computer and concentrator in fact, And data are transmitted on demand.
In this example, the data field in virtual meter acknowledgement frame is fixed, and this is mainly due in practice some It is unrelated with this method caused by other factors limit.
5th, protocol configuration
For the agreement of several meter manufacturers there are some small differences, the byte for being concentrated mainly on Data Identification and meter address is suitable In terms of sequence.By adjusting the associated byte order of virtual meter, achieve the purpose that match different agreement.In this example, use Byte order may be referred to table 2, table 3.
Example in malfunction elimination
It, can be by the reading to collector internal virtual meter, to increase the judgement to problem during actual installation.
By taking collector locally debugging as an example, trouble spot judging is as shown in Figure 7.
When debugging, it can be sentenced by reading the virtual meter inside collector come the state to collector It is disconnected.If the data of the virtual meter read are problematic, then there are failures for collector;If the Virtual table read counts not It is problematic, then to read the meter being connected on collector again.If the data of the external meter read have no problem, you can logical Cross debugging;Otherwise it can be concluded that guilty culprit:Link and/or external meter of the collector with external meter.
These work can carry out field adjustable using local instrument, can also pass through management after all installing Center is checked or for monitoring of the system to concentrator, collector status.
Or effect as a result
The invention has the advantages that by the virtual meter inside collector/concentrator, administrative center can be realized to adopting The inquiry of storage state, and will be various possible in malfunction elimination the problem of decompose, problem institute can be found faster .

Claims (6)

1. a kind of collector concentrator realized using virtual meter to oneself state monitoring, for central heating household-based heat metering Field, it is proposed that a kind of method of virtual meter can realize the judgement to collector/concentrator state by this method, and And address configuration can be carried out to virtual meter by way of toggle switch or Remote configuration;The virtual meter utilizes software It realizes, the order for meeting respective protocol can be received and return to response, to realize the function of true meter, which is included but not It is limited to CJ/T 188-2004.
2. the composition for the virtual meter that collector/concentrator inner utilization software is realized, main to include following several parts:Match somebody with somebody address It puts, command analysis, data answering and logic control, wherein:
1)Described address configuration is that the address of virtual meter is configured, it is realized simultaneously using the interactive elements on circuit board And data is set to preserve, ensure the uniqueness of virtual meter address in different concentrators, collector with this;It can also incite somebody to action The configuration address is considered as the address of collector, and so each collector is unique using this there are one unique address Address to carry out condition adjudgement to concentrator, collector;
2)The command analysis is that the meter reading order of collector, concentrator is parsed, and obtains its operation content;
3)The data answering is the response to collector, concentrator meter reading order, is by the judgement to order, makes corresponding Data answering;
4)The logic control is the control to virtual meter flow, and reading, meter reading order including address state setting connect Receive transmission with data answering etc..
3. Wireless data acquisition unit/the concentration according to claim 1 realized using virtual meter to oneself state monitoring Device, it is characterised in that:Virtual meter is logically identical with true meter.
4. the virtual meter of utilization according to claim 1 or 3 realizes the collector concentrator to oneself state monitoring, special Sign is:Virtual meter inside collector/concentrator can be as a kind of state instruction of relevant device, for being adjusted in installation Failure is investigated during examination, monitoring of the system to equipment can also be realized, beneficial to malfunction elimination.
5. the collector concentrator according to claim 1 realized using virtual meter to oneself state monitoring, feature It is:Described address configuration completes the address configuration of virtual meter using toggle switch, but is not limited to toggle switch.
6. using Wireless data acquisition unit/concentrator any one of claim 1-5 using virtual meter to collector The method of condition monitoring, it is characterised in that:
1)The toggle switch address configuration completes the configuration of address state using toggle switch, by setting several dial-ups The state of switch can achieve the purpose that set different address;
2)The remote address configuration realizes the configuration to concentrator, collector address by host computer, and host computer can be Computer is interfaces such as uart with being carried out by way of concentrator, collector are connected or host computer is by wireless network;
3)The protocol configuration puts itself and virtual meter address date together, streamline operation, in virtual meter memory The configuration of agreement is carried out while address configuration;Difference between different agreement is the order of individual data byte, so can To realize different agreements according to the difference;
4)Virtual meter remote address configuration and protocol configuration are unrelated with specific communication format, can according to reality demand into Row modification.
CN201611054806.4A 2016-11-25 2016-11-25 A kind of collector concentrator realized using virtual meter to oneself state monitoring Pending CN108109356A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611054806.4A CN108109356A (en) 2016-11-25 2016-11-25 A kind of collector concentrator realized using virtual meter to oneself state monitoring

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611054806.4A CN108109356A (en) 2016-11-25 2016-11-25 A kind of collector concentrator realized using virtual meter to oneself state monitoring

Publications (1)

Publication Number Publication Date
CN108109356A true CN108109356A (en) 2018-06-01

Family

ID=62204239

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611054806.4A Pending CN108109356A (en) 2016-11-25 2016-11-25 A kind of collector concentrator realized using virtual meter to oneself state monitoring

Country Status (1)

Country Link
CN (1) CN108109356A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102737491A (en) * 2012-06-28 2012-10-17 杭州讯能科技有限公司 Electric power meter reading system
CN103646524A (en) * 2013-12-09 2014-03-19 洛阳愿景科技有限公司 Communication method of double-mode local communication module device of electric energy meter
CN104391499A (en) * 2014-10-29 2015-03-04 江苏林洋电子股份有限公司 Simulated electric energy meter used for testing electric power centralized meter reading system and test method thereof
CN105279952A (en) * 2015-11-30 2016-01-27 国网江西省电力科学研究院 Whole-event acquisition testing system of intelligent ammeter based on virtual ammeter module

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102737491A (en) * 2012-06-28 2012-10-17 杭州讯能科技有限公司 Electric power meter reading system
CN103646524A (en) * 2013-12-09 2014-03-19 洛阳愿景科技有限公司 Communication method of double-mode local communication module device of electric energy meter
CN104391499A (en) * 2014-10-29 2015-03-04 江苏林洋电子股份有限公司 Simulated electric energy meter used for testing electric power centralized meter reading system and test method thereof
CN105279952A (en) * 2015-11-30 2016-01-27 国网江西省电力科学研究院 Whole-event acquisition testing system of intelligent ammeter based on virtual ammeter module

Similar Documents

Publication Publication Date Title
CN104345717B (en) Intelligent remote data acquisition system based on Internet of Things
CN107770022A (en) Collecting method, electronic equipment and storage medium based on rtu protocol
CN103714150A (en) Visualization error correction method of power distribution network topology model
CN103727626B (en) Ground-source heat pump central air-conditioning long distance control system and method
CN109150854B (en) Dynamic configurable communication protocol conversion system based on XML file
CN103401881B (en) Based on data acquisition system and the method for intelligent instrument
CN105389242A (en) Method for acquiring overall cabinet server information in batch
CN102945594B (en) Meter-bus data collector with ultra-low power loss
CN113028603B (en) Equipment monitoring system applied to central air-conditioning system
CN114205427A (en) Method, device and storage medium for protocol docking debugging
CN106524357A (en) Intelligent control system of central air conditioner
CN104486182A (en) Serial Modbus communication extending method
CN104951421A (en) Automatic numbering and type recognition method and device for serial bus communication devices
CN103501256A (en) Method for testing interchangeability of local communication unit of electric energy meter
CN206338892U (en) A kind of central air conditioner intelligent control system
CN108109356A (en) A kind of collector concentrator realized using virtual meter to oneself state monitoring
CN108462510A (en) Fault detection system based on power carrier and method
CN107820265A (en) Handle the method and system of radio POS terminal failure
CN202110651U (en) Automatic monitoring device of ground source heat pump system
CN111025916B (en) Household appliance detection control method and system
CN103092141A (en) Network remote monitoring system of oil tank group
CN209373404U (en) A kind of data collection system based on LabView
CN202976445U (en) Counter bus data collector with ultralow power consumption
CN108181867A (en) A kind of equipment remote monitoring method, machine room monitoring system and monitoring system
CN104579848A (en) Data analyzing and network monitoring integration method for OBS instrument

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180601