CN106127960A - A kind of single-phase charge-controlled intelligent electric meter - Google Patents
A kind of single-phase charge-controlled intelligent electric meter Download PDFInfo
- Publication number
- CN106127960A CN106127960A CN201610407996.7A CN201610407996A CN106127960A CN 106127960 A CN106127960 A CN 106127960A CN 201610407996 A CN201610407996 A CN 201610407996A CN 106127960 A CN106127960 A CN 106127960A
- Authority
- CN
- China
- Prior art keywords
- module
- task
- intelligent electric
- service
- electric 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
Links
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07F—COIN-FREED OR LIKE APPARATUS
- G07F15/00—Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity
- G07F15/003—Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity for electricity
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Arrangements For Transmission Of Measured Signals (AREA)
Abstract
The present invention proposes a kind of single-phase charge-controlled intelligent electric meter, and it includes that expense controls module, with the ESAM module that expense control module uses 7816 protocol communications;With the CPU card that expense control module uses 7816 protocol communications;The memory module being connected by memory interface with expense control module;The LCD display module communicated with expense control module employing message-driven and task module;Described single-phase charge-controlled intelligent electric meter also includes embedded management system.The present invention by being divided into driving layer, intermediate layer and application layer by management system so that separate between each task of application layer;Can change on the premise of not changing other layers or other functional modules when needing and revising a certain functional module of application layer or need upgrade-system configuration etc..
Description
Technical field
The present invention relates to a kind of intelligent electric energy meter, particularly relate to a kind of single-phase charge-controlled intelligent electric meter.
Background technology
Single-phase charge-controlled intelligent electric meter is a kind of intelligent electric energy meter, and it is power application electronics, computer, communication in ammeter
And the technology such as metering, with control chip as core, there is electrical energy metering, information storage and process, monitoring in real time, automatically control
The functions such as system, information are mutual.
Data volume is big, collection period is short, output data cause greatly existing owing to gathering for existing single-phase charge-controlled intelligent electric meter
The embedded management system of some single-phase charge-controlled intelligent electric meters is often made mistakes, is blocked and wait indefinitely.Simultaneously because each Utilities Electric Co. demand
Difference and change, cause corresponding intelligent electric energy meter embedded management system also to need corresponding frequently change and upgrading, and show
Some single-phase charge-controlled intelligent electric meters upgrading inconvenience.
Summary of the invention
The technical problem to be solved is, for the above-mentioned deficiency of prior art, proposes one and is prone to exploitation
With the single-phase charge-controlled intelligent electric meter safeguarded, conveniently distribute rationally and upgrade.
The present invention solves its technical problem and employed technical scheme comprise that, proposes a kind of single-phase charge-controlled intelligent electric meter, its bag
Include:
Take control module, with the ESAM module that expense control module uses 7816 protocol communications;7816 agreements are used with expense control module
The CPU card of communication;The memory module being connected by memory interface with expense control module;Message-driven is used to communicate with expense control module
LCD display module and task module;
Described single-phase charge-controlled intelligent electric meter also includes embedded management system, in order to control described expense control module, ESAM
Module, CPU card, memory module, LCD display module and task module;
Described embedded management system includes:
Driving layer, described driving layer includes system configuration module and User Defined configuration module;
Application layer, described application layer includes the task module of multinomial single-phase charge-controlled intelligent electric meter;
Intermediate layer, described intermediate layer includes:
Message-driven service module;
Beat service module, for judging whether the execution time that task is fixed arrives;
The task that described the multi-task module performs is according to the judgement circular flow of beat service module;Described the multi-task
Module also can receive message that message-driven service module sends to determine the execution state of task.
Further, described the multi-task module also can receive the message that message-driven service module sends and holds with time delay
Row, in advance execution or abort the mission.
Further, described intermediate layer also includes:
Metering service module, is used for providing computation chip to drive and electric current, power compares service function;
LCD shows service module, is used for providing display chip to drive and resolving display chip interface function;
Clock service module, is used for providing system clock service;
Communication service module, is used for providing communication drivers;
Storage services module, is used for providing storage read/write function.
Further, described the multi-task module includes:
System reset task module, is used for each task of the system that initializes;
Take control task module;
Display task module;
Sampling task module, for acquisition system cell voltage;
Freeze task module, be used for freezing electricity;
Metering tasks module, has produced charge value for calculating.
Further, described system configuration module includes: port configuration module, interrupt function, hardware configuration module, electric energy
Table configuration module.
Hinge structure of the present invention have the advantages that by embedded management system is divided into driving layer,
Intermediate layer and application layer so that separate between each task of application layer carry out information transmission with message;Make when needing amendment
The a certain functional module of application layer or need not change other layers or other function moulds during upgrade-system configuration etc.
Change on the premise of block, improve reliability and the portability of management system, be also convenient for safeguarding.
Accompanying drawing explanation
Fig. 1 is the structured flowchart of single-phase charge-controlled intelligent electric meter of the present invention;
Fig. 2 is the structured flowchart driving layer in a preferred embodiment of the present invention;
Fig. 3 is the structured flowchart in intermediate layer in a preferred embodiment of the present invention;
Fig. 4 is the structured flowchart of application layer in a preferred embodiment of the present invention.
Detailed description of the invention
The following is the specific embodiment of the present invention and combine accompanying drawing, technical scheme is further described,
But the present invention is not limited to these embodiments.
Please join Fig. 1, single-phase charge-controlled intelligent electric meter includes expense control module, uses 7816 protocol communications with expense control module
ESAM module;With the CPU card that expense control module uses 7816 protocol communications;The storage mould being connected by memory interface with expense control module
Block;The LCD display module communicated with expense control module employing message-driven and task module.
Above-mentioned 7816 agreements are standard communication protocol, and above-mentioned message-driven communication mode is the embedded pipe of the present invention
The function of the message-driven service module in reason system.
The present invention uses embedded management system to control above-mentioned module so that communication between above-mentioned module is convenient and just
In maintenance.
To this end, refer to Fig. 2, Fig. 3, Fig. 4, the embedded management system of the single-phase charge-controlled intelligent electric meter of the present invention is by three
Layer is constituted, and i.e. drives layer, intermediate layer and application layer.
Driving layer as the bottom of embedded management system, it is used in storage system changing less part.This reality
Execute in example, drive layer to be divided into system configuration module and user configuration module two major parts.
System configuration module includes MCU bottom, including such as NEC0527 chip bottom, Fudan University's micro-FM301 chip bottom
Or U.S.'s letter 71M6542 chip bottom;Also include that each port configures module, hardware configuration module, such as PCB selects, MCU selects,
Computation chip selects, clock chip selects, whether selects carrier wave etc.;Also include that ammeter configures module, such as meter constant, electricity
Traffic specification, voltage specification, starting current gear, metering constant parameter setting, software and hardware version number etc..Additionally, due to interrupt function
Change less, therefore interrupt function is also integrated in by the present embodiment in system configuration.
User's configuration then includes the module that various user can customize, such as task, message and the definition of message parameter,
Beat unit, the definition (including that programming state keeps the number of minutes, password locking to keep the number of minutes etc.) of various delay times, support
Stipulations number, electricity customizes, and take control customization, record customization, freezes to customize, various compare service customization etc..User configures mould
Block also includes other expansion modules that can customize.
Said system configuration and user's configuration are all to change less part in the future, are detached out and are easy to follow-up dimension
Protect and software upgrading.
Intermediate layer completes various services and the message transmission of task needed for providing application layer.Every configuration in intermediate layer
It is the core place of the present invention, has had the configuration in intermediate layer just can make each task functional module of application layer can be only just
Erect put, complementary interference.Concrete, intermediate layer includes: metering service module, is used for providing computation chip driving, coulant meter
Amount service, electric current, power factor (PF) etc. compare service function;LED shows service module, be used for providing various display chip to drive and
Display resolves interface function;Clock service, is used for providing system clock service function;Communication service module, for providing such as
Infrared communication, 485 communications, carrier communication service;Storage services module, be used for providing memory block division, memory block read/write function,
Senior read/write function etc. service;Drive service module, be used for providing all kinds of IIC, RSIO, SPI, ESAM etc. to drive;Record and freeze
Knot drives service module, for providing all records, freezing use unified searching and increase function and public function service
Module.
Even more important, the intermediate layer of the present invention is also provided with beat service module, is used for judging each task in application layer
Whether the fixing execution time arrives.Being also provided with message-driven service module, in application layer, the message between each task passes
Pass.Each task module in application layer determines the execution state of task according to the message that message-driven service module transmits.Example
Time delay performs or interrupts execution etc. in this way.
Concrete, can be found in Fig. 3, each task module in application layer is according to the function realized needed for intelligent electric energy meter,
The task module of the independent operating of design forming is divided according to different running frequencies, different functions.
Those task modules run in the major cycle of backstage, and each task module order is run, and does not has the concept of priority.
The circular order of those task modules is determined by beat service module.I.e. beat service module has judged a certain task module the most
To its fixing execution time in the major cycle of backstage.
Those task modules all have the message queue of oneself, can receive the message sent from message-driven service module
Or the message that interrupt module sends.Task module takes out message from message queue and then realizes the function of message queue.
So so that those task modules are functionally independent of one another, upon execution, via message-driven service module
Message transmission function is the most associated with each other.So that when conveniently making change at device, interface circuit or functional requirement etc.,
Have only to revise corresponding service module with task module without affecting the working stability of other service modules and task module
Property.
In the present embodiment, each task module of application layer includes: ammeter stipulations communication task module, rate calculate task mould
Block;Message pool task module, for being sent to corresponding task module by the message deriving from interruption;System beat task mould
Block, is used for safeguarding system beat source and calling beat service function;System service task module, is used for each task of the system that initializes
And confirm that power supply is the most normal;Power failure task module, is used for terminating each task module and entering low-power consumption mode;Account day appoints
Business module, is used for calling account day function;Take control task module, take control function for every;Metering tasks module, is used for measuring
The timing detection of parameter, the reading of ammeter real time data, the execution of electric quantity function and the execution of comparision of quantity of electricity function;Clock task
Module, for regularly calling clock service function and monitoring Multifunctional mouth characteristic change;Freeze task module, for regularly freezing
Tie, freeze day to freeze with integral point;Logger task module, for programmed recording and record of uncapping;MCU mouth line and depositor are safeguarded and are appointed
Business module, when each systemic circulation, detect mouth line and buffer status, and unified management mouth line and the direction of depositor and
Low and high level;Ammeter display task module, for performing the configuration of display task and explicit function;AD sampling task module, uses
In detecting cell voltage according to beat;Rate electricity price, step price switching task module, at rate electricity price and step price
Middle switching.
According to the actual requirements, other task modules can also be increased in application layer.
Specific embodiment described herein is only to present invention spirit explanation for example.Technology neck belonging to the present invention
Described specific embodiment can be made various amendment or supplements or use similar mode to replace by the technical staff in territory
Generation, but without departing from the spirit of the present invention or surmount scope defined in appended claims.
Claims (5)
1. a single-phase charge-controlled intelligent electric meter, it is characterised in that: include that expense controls module, use 7816 agreements to lead to expense control module
The ESAM module of letter;With the CPU card that expense control module uses 7816 protocol communications;With expense control module by depositing that memory interface is connected
Storage module;The LCD display module communicated with expense control module employing message-driven and task module;
Described single-phase charge-controlled intelligent electric meter also includes embedded management system, in order to control described expense control module, ESAM module,
CPU card, memory module, LCD display module and task module;
Described embedded management system includes:
Driving layer, described driving layer includes system configuration module and User Defined configuration module;
Application layer, described application layer includes the task module of multinomial single-phase charge-controlled intelligent electric meter;
Intermediate layer, described intermediate layer includes:
Message-driven service module;
Beat service module, for judging whether the execution time that task is fixed arrives;
The task that described the multi-task module performs is according to the judgement circular flow of beat service module;Described the multi-task module
Also can receive message that message-driven service module sends to determine the execution state of task.
Single-phase charge-controlled intelligent electric meter the most according to claim 1, it is characterised in that: described the multi-task module also can connect
The message that receipts message-driven service module sends performs with time delay, performs in advance or abort the mission.
Single-phase charge-controlled intelligent electric meter the most according to claim 1, it is characterised in that: described intermediate layer also includes:
Metering service module, is used for providing computation chip to drive and electric current, power compares service function;
LCD shows service module, is used for providing display chip to drive and resolving display chip interface function;
Clock service module, is used for providing system clock service;
Communication service module, is used for providing communication drivers;
Storage services module, is used for providing storage read/write function.
Single-phase charge-controlled intelligent electric meter the most according to claim 1, it is characterised in that: described the multi-task module includes:
System reset task module, is used for each task of the system that initializes;
Take control task module;
Display task module;
Sampling task module, for acquisition system cell voltage;
Freeze task module, be used for freezing electricity;
Metering tasks module, has produced charge value for calculating.
Single-phase charge-controlled intelligent electric meter the most according to claim 1, it is characterised in that: described system configuration module includes:
Port configuration module, interrupt function, hardware configuration module, electric energy meter configuration module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610407996.7A CN106127960A (en) | 2016-06-12 | 2016-06-12 | A kind of single-phase charge-controlled intelligent electric meter |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610407996.7A CN106127960A (en) | 2016-06-12 | 2016-06-12 | A kind of single-phase charge-controlled intelligent electric meter |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106127960A true CN106127960A (en) | 2016-11-16 |
Family
ID=57270451
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610407996.7A Pending CN106127960A (en) | 2016-06-12 | 2016-06-12 | A kind of single-phase charge-controlled intelligent electric meter |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106127960A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201945630U (en) * | 2010-12-20 | 2011-08-24 | 杭州海兴电力科技有限公司 | Multifunctional intelligent electric energy meter |
CN103114914A (en) * | 2013-02-04 | 2013-05-22 | 哈尔滨东安发动机(集团)有限公司 | Control method of micro gas turbine |
CN103458086A (en) * | 2012-06-04 | 2013-12-18 | 联想(北京)有限公司 | Smart phone and fault detection method thereof |
CN103941084A (en) * | 2014-05-13 | 2014-07-23 | 上海电气集团股份有限公司 | MuCOS (Micro Control Operation System) operating system based intelligent electric meter |
CN205068599U (en) * | 2015-10-14 | 2016-03-02 | 哈尔滨电工仪表研究所 | One -phase fee -controlling intelligent electric energy meter |
-
2016
- 2016-06-12 CN CN201610407996.7A patent/CN106127960A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201945630U (en) * | 2010-12-20 | 2011-08-24 | 杭州海兴电力科技有限公司 | Multifunctional intelligent electric energy meter |
CN103458086A (en) * | 2012-06-04 | 2013-12-18 | 联想(北京)有限公司 | Smart phone and fault detection method thereof |
CN103114914A (en) * | 2013-02-04 | 2013-05-22 | 哈尔滨东安发动机(集团)有限公司 | Control method of micro gas turbine |
CN103941084A (en) * | 2014-05-13 | 2014-07-23 | 上海电气集团股份有限公司 | MuCOS (Micro Control Operation System) operating system based intelligent electric meter |
CN205068599U (en) * | 2015-10-14 | 2016-03-02 | 哈尔滨电工仪表研究所 | One -phase fee -controlling intelligent electric energy meter |
Non-Patent Citations (2)
Title |
---|
田泽: "《嵌入式系统开发与应用教程》", 31 March 2005, 北京航天航空大学出版社 * |
赵荣: "基于RN8209C的高精度费控电能表的研制", 《中国优秀硕士学位论文全文数据库》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN208953594U (en) | A kind of electric energy meter legality measurement and non-legal system functional hardware separator | |
CN108761160A (en) | A kind of electric energy meter legality measurement and non-legal system functional hardware separated structure | |
CN101872996A (en) | Be used to consume and provide the efficient system and the method for power | |
CN108089689A (en) | A kind of small-sized SoC super low-power consumptions control circuit and method | |
CN104198974A (en) | Specifically changed collection terminal for automated test of assembly line field calibration | |
CN105182065A (en) | Electricity information acquisition system based on intelligent electric meter | |
CN203673575U (en) | Network remote gas meter and control system thereof | |
CN104184884A (en) | Device and method for managing and controlling power consumption of mobile terminal and mobile terminal | |
CN106652206B (en) | A kind of electricity consumption interactive terminal | |
CN105429192A (en) | Electric automobile charging pile achieving distributed sharing | |
CN106970252A (en) | A kind of intelligent electric energy meter | |
CN104198972A (en) | Concentrator for automated test of assembly line field calibration | |
CN202512665U (en) | Mixed charging type prepayment electric energy meter for electronic type tiered pricing for electricity, and time-sharing electricity price | |
CN106097589A (en) | A kind of embedded management system of single-phase charge-controlled intelligent electric meter | |
CN206684533U (en) | Wechat remote control chip | |
CN106127960A (en) | A kind of single-phase charge-controlled intelligent electric meter | |
CN201955840U (en) | Local single-phase prepaid intelligent electric energy meter | |
CN209706883U (en) | A kind of intelligent gas meter | |
CN103337909A (en) | Intelligent power consumption management method based on Internet of Things | |
CN208538246U (en) | A kind of intellective IC card mobile device based on Bluetooth technology | |
CN201966639U (en) | Novel monitoring system for direct current screen storage battery | |
CN202372571U (en) | Remote carrier wave single-phase cost control intelligent electric energy meter | |
CN108762468A (en) | Low-power-consumptiocontrol control method and device | |
CN206756889U (en) | A kind of intelligent electric energy meter | |
CN202177945U (en) | Card charging power charging and selling system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 315326 Ningbo, Cixi, ancient street, the streets of science and technology road, No. 711 Applicant after: Ningbo Canaan intelligent electrical Limited by Share Ltd Address before: 315326 Ningbo, Cixi, ancient street, the streets of science and technology road, No. 711 Applicant before: Ningbo Jianan Electronics Co., Ltd. |
|
COR | Change of bibliographic data |