CN109215327A - A kind of metering method of electric power acquisition terminal - Google Patents
A kind of metering method of electric power acquisition terminal Download PDFInfo
- Publication number
- CN109215327A CN109215327A CN201810945166.9A CN201810945166A CN109215327A CN 109215327 A CN109215327 A CN 109215327A CN 201810945166 A CN201810945166 A CN 201810945166A CN 109215327 A CN109215327 A CN 109215327A
- Authority
- CN
- China
- Prior art keywords
- metering
- electric power
- acquisition terminal
- power acquisition
- request
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 112
- 230000008569 process Effects 0.000 claims abstract description 86
- 230000003993 interaction Effects 0.000 claims abstract description 11
- 238000004804 winding Methods 0.000 claims abstract description 7
- 238000010009 beating Methods 0.000 claims abstract description 3
- 210000004072 lung Anatomy 0.000 claims abstract description 3
- 238000004891 communication Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 7
- 230000005611 electricity Effects 0.000 description 4
- 230000006872 improvement Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C19/00—Electric signal transmission systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/06—Energy or water supply
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/26—Special purpose or proprietary protocols or architectures
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Health & Medical Sciences (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Economics (AREA)
- General Health & Medical Sciences (AREA)
- Primary Health Care (AREA)
- Public Health (AREA)
- Water Supply & Treatment (AREA)
- Computer Networks & Wireless Communication (AREA)
- Human Resources & Organizations (AREA)
- Marketing (AREA)
- Signal Processing (AREA)
- Strategic Management (AREA)
- Tourism & Hospitality (AREA)
- Computer Security & Cryptography (AREA)
- General Business, Economics & Management (AREA)
- Computing Systems (AREA)
- Theoretical Computer Science (AREA)
- Arrangements For Transmission Of Measured Signals (AREA)
Abstract
The present invention relates to a kind of metering method of electric power acquisition terminal, this method includes that S1 establishes metering process, and TCP server, monitor process request connection are established on winding network interface;S2, if there is process requested connection, record the process information monitors request content and carries out corresponding execution operation and monitor heartbeat signal;If being more than that time-out time is connected without process requested, 485 channel of the second tunnel is seized, 485 data interaction of the second tunnel is carried out;S3 seizes 485 channel of the second tunnel if being more than certain time Lungs from Non-Heart-Beating signal, carries out 485 data interaction of the second tunnel, if it is not, continuing to monitor request content.This method can in other functional module delay machines metering module work normally, it is ensured that the operation of function of measuring normal table.
Description
Technical field
The present invention relates to electric power acquisition field of terminal more particularly to a kind of metering methods of electric power acquisition terminal.
Background technique
With the development of social productive forces, the production and living of people are higher and higher to the dependence of electric power, for acquiring electricity consumption
For the electric power acquisition terminal of information as electric system part and parcel, use is also more and more common, in China some areas, electricity
Power acquisition terminal has been substituted platform area three-phase summary table to carry out the acquisition of power information.Therefore, exploitation have communication success rate it is high,
The electric power acquisition terminal of good reliability has great importance.
In the prior art, also there is the patent for much being intended to improve electric power acquisition terminal communication success rate and reliability.For example,
Chinese invention patent that application publication number is CN107967801A " a kind of energy measurement data online acquisition and monitoring method and is
System ", it is made of two large divisions, a part is the hardware platform centered on MCU control module;Another part, which is with main website, is
Administrative center's platform of the heart, administrative center's platform can remotely manage collector by GPRS module, and hardware platform can lead to
It crosses 485 modes and carrier system to carry out data acquisition to intelligent meter and report to administrative center, which is characterized in that hardware platform
Including embedded controller circuit, RS-485 telecommunication circuit, GPRS telecommunication circuit, power carrier communication circuit, clock circuit, show
Show circuit, power circuit, keyboard input circuit, JTAG debugging circuit and storage circuit;Collector uses two kinds of communication parties altogether
Formula, two kinds of communication modes all use serial ports carry out data communication, RS-485 telecommunication circuit modulate signals into symmetrical form with
The mode of balance transmission carries out the transmission of signal, is then received in a differential manner, logical using hypotactic half-duplex
Letter mode.The system has good communication stability and route anti-interference ability.
But the uplink communication of the electric power acquisition terminal of the prior art, downlink meter reading, liquid crystal display, meter store use
Same process, this results in the independence of meter store, stability insufficient.Along with the iteration maintenance of electric power acquisition terminal software
More frequently, function of measuring is easily influenced, if because the software function iteration of other function module leads to process delay machine, thus
Function of measuring failure, will lead to very serious consequence.
Summary of the invention
In view of the above problems, the purpose of the present invention is to provide a kind of metering method of electric power acquisition terminal, this method solutions
Electric power acquisition terminal meter in the prior art of having determined stores independence and stability deficiency, the metering in other functional module delay machines
The vulnerable problem of function, it is ensured that the operation of function of measuring normal table.
To achieve the above object, the technical solution adopted by the present invention are as follows: a kind of metering method of electric power acquisition terminal, it is special
Sign is: this method includes,
S1 establishes metering process, and TCP server, monitor process request connection are established on winding network interface;
S2, if there is process requested connection, record the process information monitors request content and carries out corresponding execution operation and monitor the heart
Jump signal;If being more than that time-out time is connected without process requested, 485 channel of the second tunnel is seized, 485 data interaction of the second tunnel is carried out;
S3 seizes 485 channel of the second tunnel if being more than certain time Lungs from Non-Heart-Beating signal, carries out 485 data interaction of the second tunnel,
If it is not, continuing to monitor request content.
Further, the S1 includes that compiling source code generates executable file, is placed on electric power acquisition terminal storage
In area, the order for starting the metering process is added into electric power acquisition terminal starting script.
Further, request content includes request of data and command request in the S2.
Further, it includes replying request of data, executing command request and return operation result that operation is executed in the S2.
Further, process requested connection passes through customized message mode as defined in metering process to the meter in the S2
Amount process issues request of data or command request.
Further, process requested connects the reply to metering process according to customized as defined in metering process in the S2
Message is parsed.
Further, in the s2, if also switching to execute when not hearing request content monitors heartbeat signal.
Further, the dynamic that process requested join dependency is provided in the metering process towards other processes in the S2
Library file.
Further, further include in the S2, if being connected in time-out time without process requested, switch to continue to monitor into
Journey request connection.
Further, the certain time in the S3 is 3 heartbeat signal periods.
Compared with prior art, of the invention to be a little: by building metering independent process in electric power acquisition terminal,
Communication is carried out by winding network interface and custom protocol carries out data interaction, does not depend on it and not by other process shadows
Ring, even if all process delay machines, metering also can independent operating, and by special command directly from metering process obtain needed for electricity
Energy datum.The metering method communicates success rate height, good reliability.
Detailed description of the invention
Fig. 1 is the metering process work flow diagram of a preferred embodiment of the present invention;
Fig. 2 is the process works flow chart in the process requested connection of a preferred embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, and for explaining only the invention, and is not considered as limiting the invention.
If Fig. 1 to 2 is a preferred embodiment of the present invention flow chart, this method comprises:
Metering process is built in electric power acquisition terminal first, metering process is built in electric power acquisition terminal after the completion of building
IP is winding network address, the TCP server that port is customized port, builds holding for the source code compiling generation of metering process
Style of writing part is placed in electric power acquisition terminal storage area, and will be started the metering process order and be added into electric power acquisition terminal and open
In dynamic script.
Metering process is communicated by winding network interface, is carried out data interaction by custom protocol, is disobeyed it
Rely and do not influenced by other processes, even if all process delay machines, metering process also can independent operating, and special life can be passed through
It enables and directly obtains required electricity data from metering process.
After the completion of TCP server is built, customized port is monitored, and judges whether there is process connection request, if do not had
Process connection request then needs further to judge, that is, judges whether do not have process connection request in time-out time, if so,
Then return and continued to determine whether process connection request, if it is not, then metering process seizes 485 channel of the second tunnel, and with it is outer
Boundary directly passes through communication protocol as defined in national grid and carries out 485 data interaction of the second tunnel;If there is process connection request, then remember
The progress information of record request connection, while listening for the content of request.
Metering process also needs further to judge before judging request content to determine whether request content, if do not had
Have, then the heartbeat signal that the process in monitor process request connection is sent, if so, then further sentencing to request content
It is disconnected.If the content of request is request of data, metering process returns to corresponding data to the process of request, asks if it is order
It asks, then metering process executes the corresponding command and then implementing result is returned to the process of request.
Here request of data or command request need to be sent according to customized message form as defined in metering process, and be pressed
It is parsed according to customized message form as defined in metering process, and the process of process requested connection need to depend on the metering
The dynamic library file that process is provided towards the process.After metering process has executed the content of process requested, process is begun listening for
The heartbeat signal that process in request connection is sent.
Metering process judges whether not receive heartbeat signal in some cycles, and in the present embodiment, which is 3
A heartbeat signal period judges whether there is process requested content if it is not, then returning;If it is, metering process seizes
Two tunnels, 485 channel, and 485 data interaction of the second tunnel is directly carried out by communication protocol as defined in national grid with extraneous.
By building metering independent process in electric power acquisition terminal, is communicated and made by oneself by winding network interface
Adopted agreement carries out data interaction, it is made not depend on and not influenced by other processes, even if all process delay machines, metering also can be only
Vertical operation, and required electric energy data is directly obtained from metering process by special command.Metering method communication success rate height,
Good reliability.
Other than above-mentioned improvement, other similar improvement are also contained in improvement threshold of the invention, are not just existed herein
It repeats.Although an embodiment of the present invention has been shown and described, it will be appreciated by those skilled in the art that: do not departing from the present invention
Principle and objective in the case where can to these embodiments carry out it is a variety of variation, modification, replacement and deformation, the scope of the present invention
It is defined by the claims and their equivalents.
Claims (10)
1. a kind of metering method of electric power acquisition terminal, it is characterised in that: this method includes,
S1 establishes metering process, and TCP server, monitor process request connection are established on winding network interface;
S2, if there is process requested connection, record the process information monitors request content and carries out corresponding execution operation and monitor heartbeat letter
Number;If being more than that time-out time is connected without process requested, 485 channel of the second tunnel is seized, 485 data interaction of the second tunnel is carried out;
S3 seizes 485 channel of the second tunnel if being more than certain time Lungs from Non-Heart-Beating signal, carries out 485 data interaction of the second tunnel, if it is not,
Continue to monitor request content.
2. the metering method of electric power acquisition terminal according to claim 1, it is characterised in that:
The S1 includes that compiling source code generates executable file, is placed in electric power acquisition terminal storage area, by starting
The order for stating metering process is added into electric power acquisition terminal starting script.
3. the metering method of electric power acquisition terminal according to claim 1, it is characterised in that:
Request content includes request of data and command request in the S2.
4. the metering method of electric power acquisition terminal according to claim 3, it is characterised in that:
It includes replying request of data, executing command request and return operation result that operation is executed in the S2.
5. the metering method of electric power acquisition terminal according to claim 3, it is characterised in that:
Process requested connection issues number to the metering process by customized message mode as defined in metering process in the S2
According to request or command request.
6. the metering method of electric power acquisition terminal according to claim 4, it is characterised in that:
Process requested connection parses the reply of metering process according to customized message as defined in metering process in the S2.
7. the metering method of electric power acquisition terminal according to claim 1, it is characterised in that:
In the S2, if also switching to execute when not hearing request content monitors heartbeat signal.
8. the metering method of electric power acquisition terminal according to claim 1, it is characterised in that:
The dynamic library file that process requested join dependency is provided in the metering process towards other processes in the S2.
9. the metering method of electric power acquisition terminal according to claim 1, it is characterised in that:
It further include, if connecting in time-out time without process requested, switching to continue monitor process request connection in the S2.
10. the metering method of electric power acquisition terminal according to claim 1, it is characterised in that:
Certain time in the S3 is 3 heartbeat signal periods.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810945166.9A CN109215327B (en) | 2018-08-17 | 2018-08-17 | Metering method of power acquisition terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810945166.9A CN109215327B (en) | 2018-08-17 | 2018-08-17 | Metering method of power acquisition terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109215327A true CN109215327A (en) | 2019-01-15 |
CN109215327B CN109215327B (en) | 2021-02-02 |
Family
ID=64988706
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810945166.9A Active CN109215327B (en) | 2018-08-17 | 2018-08-17 | Metering method of power acquisition terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109215327B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102254414A (en) * | 2011-07-19 | 2011-11-23 | 中山大学深圳研究院 | Embedded automatic meter reading system based on GPRS (Global System for Mobile Communications) |
CN102857363A (en) * | 2012-05-04 | 2013-01-02 | 运软网络科技(上海)有限公司 | Automatic computing system and method for virtual networking |
CN102999390A (en) * | 2012-11-14 | 2013-03-27 | 北京搜狐新媒体信息技术有限公司 | Rear-end resource control method and device under cloud computing environment |
CN103795647A (en) * | 2012-11-01 | 2014-05-14 | 鼎点视讯科技有限公司 | Data acquisition method, data collector and data acquisition system |
CN203773718U (en) * | 2014-01-14 | 2014-08-13 | 北京远东仪表有限公司 | Communication system of on-off time area method |
US9958291B1 (en) * | 2014-08-11 | 2018-05-01 | Abl Ip Holding Llc | Self-service connection, data collection, and automation of metering and building systems, controls, and devices |
-
2018
- 2018-08-17 CN CN201810945166.9A patent/CN109215327B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102254414A (en) * | 2011-07-19 | 2011-11-23 | 中山大学深圳研究院 | Embedded automatic meter reading system based on GPRS (Global System for Mobile Communications) |
CN102857363A (en) * | 2012-05-04 | 2013-01-02 | 运软网络科技(上海)有限公司 | Automatic computing system and method for virtual networking |
CN103795647A (en) * | 2012-11-01 | 2014-05-14 | 鼎点视讯科技有限公司 | Data acquisition method, data collector and data acquisition system |
CN102999390A (en) * | 2012-11-14 | 2013-03-27 | 北京搜狐新媒体信息技术有限公司 | Rear-end resource control method and device under cloud computing environment |
CN203773718U (en) * | 2014-01-14 | 2014-08-13 | 北京远东仪表有限公司 | Communication system of on-off time area method |
US9958291B1 (en) * | 2014-08-11 | 2018-05-01 | Abl Ip Holding Llc | Self-service connection, data collection, and automation of metering and building systems, controls, and devices |
Non-Patent Citations (1)
Title |
---|
朱宪伟: ""江苏电力用户用电信息采集终端设计与实现"", 《信息科技辑》 * |
Also Published As
Publication number | Publication date |
---|---|
CN109215327B (en) | 2021-02-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113014449B (en) | Local communication protocol pressure testing method and system of electricity consumption information acquisition system | |
CN108683636B (en) | Charging pile communication method and system | |
CN108810126A (en) | A kind of open type data acquisition system | |
CN102331569B (en) | Intelligent interactive detection apparatus for detection on electric energy meter | |
CN105335316A (en) | Motor assembling line serial port server based on cloud computation | |
CN201732472U (en) | Automatic testing device of concentrated electric energy meter reading equipment | |
CN105590436A (en) | Point-to-point meter reading method | |
CN114268556A (en) | Broadband micropower MAC layer consistency test system in power consumption information acquisition system | |
CN109215327A (en) | A kind of metering method of electric power acquisition terminal | |
CN112526276A (en) | Interface converter detection method | |
CN104699553A (en) | Clock self-recovery method after failure in acquiring terminal clock battery with electrical information | |
CN204556816U (en) | A kind of electric energy meter communication debugger | |
CN110166322A (en) | A kind of detection method and relevant apparatus of metering automation terminal | |
CN105354101A (en) | Operation error processing method and system and intelligent terminal | |
CN110164343A (en) | A kind of reverse-timing display device detection method, device, system and control system | |
CN112312376B (en) | Method and system for remotely and interactively managing multifunctional electric meter | |
CN112346996B (en) | Autonomous arrangement testing method for reliability of load identification module | |
CN108562804A (en) | Intelligent grid terminal real-time detection method and device | |
CN209570825U (en) | One kind driving the training customized message device of Driving Test project | |
CN114691493A (en) | Lithium battery testing method and system | |
CN202404664U (en) | Monitoring device and system of automatic plug-in equipment | |
CN207557362U (en) | A kind of full production cycle automatic test device of distribution terminal | |
CN214410267U (en) | High-efficient low-power consumption thing networking collector | |
CN111007336A (en) | Module production test power-on and power-off automatic detection system and method based on serial port communication | |
CN209784442U (en) | Energy consumption on-line monitoring device |
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 |