CN102930653A - Method, device and system for analyzing electricity meter data of electricity meter IC (Integrated Circuit) card - Google Patents

Method, device and system for analyzing electricity meter data of electricity meter IC (Integrated Circuit) card Download PDF

Info

Publication number
CN102930653A
CN102930653A CN2012104784269A CN201210478426A CN102930653A CN 102930653 A CN102930653 A CN 102930653A CN 2012104784269 A CN2012104784269 A CN 2012104784269A CN 201210478426 A CN201210478426 A CN 201210478426A CN 102930653 A CN102930653 A CN 102930653A
Authority
CN
China
Prior art keywords
card
meter
analysis program
data
electric energy
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
CN2012104784269A
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.)
SHENZHEN TECHRISE ELECTRONICS CO Ltd
Original Assignee
SHENZHEN TECHRISE ELECTRONICS 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 SHENZHEN TECHRISE ELECTRONICS CO Ltd filed Critical SHENZHEN TECHRISE ELECTRONICS CO Ltd
Priority to CN2012104784269A priority Critical patent/CN102930653A/en
Publication of CN102930653A publication Critical patent/CN102930653A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention is suitable for the technical field of electricity meters and provides a method, a device and a prepayment management system for analyzing electricity meter data of an electricity meter IC (Integrated Circuit) card. The method comprises the following steps: when the operation of the electricity meter IC card is processed, analysis programs in an electricity meter IC card analysis program group are traversed; whether the type of the electricity meter IC card can be analyzed by the current dispatched analysis program or not is judged, if not, a next one analysis program in the electricity meter IC card analysis program group is dispatched; and if yes, the electricity meter IC card is analyzed by the current dispatched analysis program according to the data unit format of the electricity IC card, and analysis data is generated. According to the invention, the analysis program capable of analyzing the electricity meter IC card can completely analyze data of the electricity meter IC card, therefore, all data of the electricity meter IC card can be analyzed safely, accurately and completely.

Description

Resolve electric energy meter data method, device and system in the meter IC card
Technical field
The invention belongs to the electric energy meter technical field, relate in particular to a kind of method, device and pre-payment management system that resolves the electric energy meter data in the meter IC card.
Background technology
In IC-card pre-payment management system, the pre-payment management system is IC-card with the medium that table meter (electric energy meter) is communicated by letter, and this IC-card is used for the information such as the current data of electric energy meter, state are returned to the pre-payment management system.The pre-payment management system needs safe, correct, complete parsing and shows the electric energy meter data of carrying in the IC-card, so the Card Reader operation is essential.How the different electric energy meter data of carrying in the different meter IC cards being carried out complete parsing and demonstration, is the problem of a lot of pre-payment management systems face.
Existing IC-card pre-payment management system, the general IC-card Card Reader operation of adopting, be by the unified Card Reader data of pre-payment management system agreement, resolved by the data of agreement by the IC-card analysis program of each phenotype electric energy meter, shown again the Card Reader data of agreement by the pre-payment management system.Although prior art has also realized the Card Reader operation, for the pre-payment management system, the IC-card analysis program of each electric energy meter is only resolved the data division of agreement, and the data on the IC-card of each electric energy meter are complete reading not, and shortcoming is personalized.
Summary of the invention
The embodiment of the invention provides a kind of method, device and pre-payment management system that resolves the electric energy meter data in the meter IC card, is intended to solve the problem of reading the electric energy meter data in the meter IC card that prior art can not be complete.
On the one hand, provide a kind of method of resolving the electric energy meter data in the meter IC card, described method comprises:
When reading the meter IC card operation, the analysis program in the traversal meter IC card analysis program group;
Judge that whether described meter IC card is the type that the analysis program of current scheduling can be resolved;
If not, then dispatch next analysis program in the described meter IC card analysis program group;
If so, then described meter IC card is resolved according to the data cell form of described meter IC card by the analysis program of described current scheduling, generate resolution data.
On the other hand, provide a kind of device of resolving the electric energy meter data in the meter IC card, described device comprises:
The traversal unit is used for when reading the meter IC card operation, the analysis program in the traversal meter IC card analysis program group;
Judging unit is used for judging that whether described meter IC card is the type that the analysis program of current scheduling can be resolved;
The program scheduler unit is used for if not, then dispatches the next analysis program in the described meter IC card analysis program group;
Resolution unit is used for if then according to the data cell form of described meter IC card described meter IC card is resolved the generation resolution data by the analysis program of described current scheduling.
Again on the one hand, provide a kind of pre-payment management system, described pre-payment management system comprises the device of the electric energy meter data in the aforesaid parsing meter IC card.
In embodiments of the present invention, when reading the meter IC card operation, analysis program in the traversal meter IC card analysis program group, when the analysis program of current scheduling can be resolved meter IC card, directly by the analysis program of described current scheduling described meter IC card is resolved, otherwise, dispatch next analysis program, until find till the suitable analysis program.Because the analysis program that meter IC card is resolved can be resolved the data in the meter IC card completely, therefore can safely, correctly, intactly parse all data in the meter IC card.
Description of drawings
Fig. 1 is the realization flow figure of the method for the electric energy meter data in the parsing meter IC card that provides of the embodiment of the invention one;
Fig. 2 is the realization flow figure of the method for the electric energy meter data in the parsing meter IC card that provides of the embodiment of the invention two;
Fig. 3 is the structured flowchart of the device of the electric energy meter data in the parsing meter IC card that provides of the embodiment of the invention three;
Fig. 4 is the structured flowchart of the device of the electric energy meter data in the parsing meter IC card that provides of the embodiment of the invention four.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
In embodiments of the present invention, when reading the meter IC card operation, analysis program in the traversal meter IC card analysis program group, when the analysis program of current scheduling can be resolved meter IC card, directly by the analysis program of described current scheduling described meter IC card is resolved, otherwise, dispatch next analysis program, until find till the suitable analysis program.
Below in conjunction with specific embodiment realization of the present invention is described in detail:
Embodiment one
Fig. 1 shows the realization flow of the method for the electric energy meter data in the parsing meter IC card that the embodiment of the invention one provides, and details are as follows:
In step S101, when reading the meter IC card operation, the analysis program in the traversal meter IC card analysis program group.
In the present embodiment, when reading the meter IC card operation, analysis program in the pre-payment management system traversal meter IC card analysis program group, wherein, described meter IC card analysis program group comprises one or more analysis programs, each analysis program is corresponding with one type meter IC card, guarantee when resolving the meter IC card data, can only there be an analysis program can correctly resolve one type meter IC card, dispatches and all return error code when other analysis programs are resolved this meter IC card.
In step S102, judge that whether described meter IC card is the type that the analysis program of current scheduling can be resolved, if not, execution in step S103 then, if so, execution in step S104 then.
In the present embodiment, each analysis program in the pre-payment management system traversal meter IC card analysis program group, judge that whether meter IC card is the type of card that the analysis program of current scheduling can be resolved, return code according to the analysis program of current scheduling judges whether execution in step S103, if the analysis program of current scheduling return error code, the analysis program that then represents current scheduling can not be resolved the data in the meter IC card, execution in step S103, until the scheduling current analysis program can resolve meter IC card till, if travel through all IC-card analysis programs, all resolve unsuccessfully, then directly return and show unusual; If the analysis program of current scheduling can be resolved meter IC card, execution in step S104 then.
In step S103, dispatch the next analysis program in the described meter IC card analysis program group.
In step S104, described meter IC card is resolved according to the data cell form of described meter IC card by the analysis program of described current scheduling, generate resolution data.
In the present embodiment, the analysis program of current scheduling carries out the operations such as data read, deciphering according to the data cell form of described meter IC card, requires analysis program that all data in the meter IC card are read and decipher herein, generates resolution data.
Present embodiment, when reading the meter IC card operation, analysis program in the traversal meter IC card analysis program group, when the analysis program of current scheduling can be resolved meter IC card, directly by the analysis program of described current scheduling described meter IC card is resolved, otherwise, dispatch next analysis program, until find till the suitable analysis program.Because the analysis program that meter IC card is resolved can be resolved the data in the meter IC card completely, therefore can safely, correctly, intactly parse all data in the meter IC card.
Embodiment two
Fig. 2 shows the realization flow of the method for the electric energy meter data in the parsing meter IC card that the embodiment of the invention two provides, and details are as follows:
In step S201, generating electric energy Table I C card analysis program group comprises one or more analysis programs in the described meter IC card analysis program group in advance, the corresponding analysis program of one type meter IC card.
In step S202, when reading the meter IC card operation, the analysis program in the traversal meter IC card analysis program group.
In step S203, judge that whether described meter IC card is the type that the analysis program of current scheduling can be resolved, if not, execution in step S204 then, if so, execution in step S205 then.
In step S204, dispatch the next analysis program in the described meter IC card analysis program group.
In step S205, described meter IC card is resolved according to the data cell form of described meter IC card by the analysis program of described current scheduling, generate resolution data.
In the present embodiment, the analysis program of current scheduling carries out the operations such as data read, deciphering according to the data cell form of described meter IC card, requires analysis program that all data in the meter IC card are read and decipher herein, generates resolution data.
In step S206, described resolution data is stored by default form.
In the present embodiment, the data after the pre-payment management system will decipher write in the Card Reader destination file line by line by the form of " data item name: data value (unit) ", and the Card Reader destination file is kept under the specified path.Certainly, also the data after the deciphering can be stored in the character string by default form.
In step S207, show described resolution data.
In the present embodiment, the Card Reader destination file under the pre-payment management system loading specified path, whole Card Reader data messages of demonstration meter IC card.
Present embodiment at first creates the analysis program that is fit to various types of meter IC cards.When reading the meter IC card operation, analysis program in the traversal meter IC card analysis program group, when the analysis program of current scheduling can be resolved meter IC card, directly by the analysis program of described current scheduling described meter IC card is resolved, otherwise, dispatch next analysis program, until find till the suitable analysis program.Because the analysis program that meter IC card is resolved can be resolved the data in the meter IC card completely, therefore can safely, correctly, intactly parse all data in the meter IC card; In addition, resolution data can also be stored on certain carrier, then call this carrier, show all resolution datas.
Embodiment three
Fig. 3 shows the concrete structure block diagram of the device of the electric energy meter data in the parsing meter IC card that the embodiment of the invention three provides, and for convenience of explanation, only shows the part relevant with the embodiment of the invention.In the present embodiment, the device of the electric energy meter data in this parsing meter IC card is interior unit as for the software unit in the pre-payment management system, hardware cell or software and hardware combining, and the device of the electric energy meter data in this parsing meter IC card comprises: traversal unit 31, judging unit 32, program scheduler unit 33 and resolution unit 34.
Wherein, traversal unit 31 is used for when reading the meter IC card operation, the analysis program in the traversal meter IC card analysis program group;
Judging unit 32 is used for judging that whether described meter IC card is the type that the analysis program of current scheduling can be resolved;
Program scheduler unit 33 is used for if not, then dispatches the next analysis program in the described meter IC card analysis program group;
Resolution unit 34 is used for if then according to the data cell form of described meter IC card described meter IC card is resolved the generation resolution data by the analysis program of described current scheduling.
The device of the electric energy meter data in the parsing meter IC card that the embodiment of the invention provides can be applied in the embodiment of the method one of aforementioned correspondence, and details do not repeat them here referring to the description of above-described embodiment one.
Embodiment four
Fig. 4 shows the concrete structure block diagram of the device of the electric energy meter data in the parsing meter IC card that the embodiment of the invention four provides, and for convenience of explanation, only shows the part relevant with the embodiment of the invention.In the present embodiment, the device of the electric energy meter data in this parsing meter IC card is interior unit as for the software unit in the pre-payment management system, hardware cell or software and hardware combining, and the device of the electric energy meter data in this parsing meter IC card comprises: package creating unit 41, traversal unit 42, judging unit 43, program scheduler unit 44 and resolution unit 45.
Wherein, package creating unit 41 is used in advance generating electric energy Table I C card analysis program group, comprises one or more analysis programs in the described meter IC card analysis program group, the corresponding analysis program of one type meter IC card;
Traversal unit 42 is used for when reading the meter IC card operation, the analysis program in the traversal meter IC card analysis program group;
Judging unit 43 is used for judging that whether described meter IC card is the type that the analysis program of current scheduling can be resolved;
Program scheduler unit 44 is used for if not, then dispatches the next analysis program in the described meter IC card analysis program group;
Resolution unit 45 is used for if then according to the data cell form of described meter IC card described meter IC card is resolved the generation resolution data by the analysis program of described current scheduling.
As a preferred embodiment of the present invention, described device also comprises: data storage cell, this data storage cell is used for described resolution data by default form storage.Wherein, this data storage cell is stored in described resolution data in the character string or with described resolution data by default form and writes line by line in the Card Reader destination file by default form.
The device of the electric energy meter data in the parsing meter IC card that the embodiment of the invention provides can be applied in the embodiment of the method two of aforementioned correspondence, and details do not repeat them here referring to the description of above-described embodiment two.
It should be noted that among the said system embodiment that included unit is just divided according to function logic, but is not limited to above-mentioned division, as long as can realize corresponding function; In addition, the concrete title of each functional unit also just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
In addition, one of ordinary skill in the art will appreciate that all or part of step that realizes in the various embodiments described above method is to come the relevant hardware of instruction to finish by program, corresponding program can be stored in the computer read/write memory medium, described storage medium is such as ROM/RAM, disk or CD etc.
The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1. method of resolving the electric energy meter data in the meter IC card is characterized in that described method comprises:
When reading the meter IC card operation, the analysis program in the traversal meter IC card analysis program group;
Judge that whether described meter IC card is the type that the analysis program of current scheduling can be resolved;
If not, then dispatch next analysis program in the described meter IC card analysis program group;
If so, then described meter IC card is resolved according to the data cell form of described meter IC card by the analysis program of described current scheduling, generate resolution data.
2. the method for claim 1 is characterized in that, when reading the meter IC card operation, before the analysis program in the traversal meter IC card analysis program group, described method also comprises described:
Generating electric energy Table I C card analysis program group in advance;
Comprise one or more analysis programs in the described meter IC card analysis program group, the corresponding analysis program of one type meter IC card.
3. the method for claim 1, it is characterized in that, described meter IC card is resolved according to the data cell form of described meter IC card at described analysis program by described current scheduling, generate after the step of resolution data, described method also comprises:
Described resolution data is stored by default form.
4. method as claimed in claim 3 is characterized in that, described described resolution data is stored by default form is specially:
Described resolution data is stored in the character string by default form; Perhaps
Described resolution data is write in the Card Reader destination file line by line by default form.
5. device of resolving the electric energy meter data in the meter IC card is characterized in that described device comprises:
The traversal unit is used for when reading the meter IC card operation, the analysis program in the traversal meter IC card analysis program group;
Judging unit is used for judging that whether described meter IC card is the type that the analysis program of current scheduling can be resolved;
The program scheduler unit is used for if not, then dispatches the next analysis program in the described meter IC card analysis program group;
Resolution unit is used for if then according to the data cell form of described meter IC card described meter IC card is resolved the generation resolution data by the analysis program of described current scheduling.
6. device as claimed in claim 5 is characterized in that, described device also comprises:
The package creating unit is used in advance generating electric energy Table I C card analysis program group, comprises one or more analysis programs in the described meter IC card analysis program group, the corresponding analysis program of one type meter IC card.
7. device as claimed in claim 5 is characterized in that, described device also comprises:
Data storage cell is used for described resolution data by default form storage.
8. device as claimed in claim 7 is characterized in that, described data storage cell is stored in described resolution data in the character string or with described resolution data by default form and writes line by line in the Card Reader destination file by default form.
9. a pre-payment management system is characterized in that, described pre-payment management system comprises the device such as the electric energy meter data in the described parsing meter IC card of claim 5 to 8 any one.
CN2012104784269A 2012-11-22 2012-11-22 Method, device and system for analyzing electricity meter data of electricity meter IC (Integrated Circuit) card Pending CN102930653A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012104784269A CN102930653A (en) 2012-11-22 2012-11-22 Method, device and system for analyzing electricity meter data of electricity meter IC (Integrated Circuit) card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012104784269A CN102930653A (en) 2012-11-22 2012-11-22 Method, device and system for analyzing electricity meter data of electricity meter IC (Integrated Circuit) card

Publications (1)

Publication Number Publication Date
CN102930653A true CN102930653A (en) 2013-02-13

Family

ID=47645441

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012104784269A Pending CN102930653A (en) 2012-11-22 2012-11-22 Method, device and system for analyzing electricity meter data of electricity meter IC (Integrated Circuit) card

Country Status (1)

Country Link
CN (1) CN102930653A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070071197A1 (en) * 2005-09-05 2007-03-29 Ryoo Chang W System and method for managing prepaid card
CN101339681A (en) * 2008-08-08 2009-01-07 深圳市思达仪表有限公司 One-card-pass pre-payment system
CN101634980A (en) * 2009-06-12 2010-01-27 深圳市科陆电子科技股份有限公司 System and method for managing prepaid electric energy meter

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070071197A1 (en) * 2005-09-05 2007-03-29 Ryoo Chang W System and method for managing prepaid card
CN101339681A (en) * 2008-08-08 2009-01-07 深圳市思达仪表有限公司 One-card-pass pre-payment system
CN101634980A (en) * 2009-06-12 2010-01-27 深圳市科陆电子科技股份有限公司 System and method for managing prepaid electric energy meter

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
王作维,付汉东,马利人,陶永法,徐健: "多厂家IC卡预付费电能表(控制器)管理方法的研究", 《电测与仪表》, vol. 42, no. 473, 31 May 2005 (2005-05-31) *
马利人,王作维,张名: "统一的IC卡预付费售电系统技术实现", 《电测与仪表》, vol. 42, no. 477, 30 September 2005 (2005-09-30) *

Similar Documents

Publication Publication Date Title
TWI728266B (en) Two-dimensional bar code generation, business processing method, device and equipment, and two-dimensional bar code
CN104407980A (en) Mobile application automated testing device and method
WO2020244235A1 (en) Offline graphic code processing and generating methods and apparatuses
CN104541244A (en) Methods and systems for performing a replay execution
CN106776515A (en) The method and device of data processing
CN103729235A (en) Java virtual machine (JVM) and compiling method thereof
CN105791178B (en) Message assemble method and device
RU2014137055A (en) MECHANISM ALLOWING USE OF DISPOSABLE CARDS IN THE SYSTEM DESIGNED FOR RECEPTION OF CARDS ACCORDING TO THE STANDARDS OF THE INTERNATIONAL PAYMENT INDUSTRY
CN102479123A (en) System and method for testing chip operating system (COS)
Wang et al. Smart grid information security-a research on standards
CN103326930B (en) Open platform interface automatic detecting method and system
CN111209206A (en) Automatic test method and system for software product
CN113238929A (en) Code testing method and device based on Mock data, electronic equipment and storage medium
CN101770388A (en) Method and device for obtaining chip code information
CN104242994A (en) Communication method, communication device and corresponding mobile terminal with NFC function
CN103019690B (en) A kind of visual assembly module development approach based on JET technology
CN113434542B (en) Data relationship identification method and device, electronic equipment and storage medium
CN105005497A (en) Method and apparatus for calling local function in Java card virtual machine
CN102930653A (en) Method, device and system for analyzing electricity meter data of electricity meter IC (Integrated Circuit) card
CN104142817A (en) Method and device for measuring resource usage of users in Java applications
CN110765069A (en) Data migration method, device and system
CN103294837B (en) A kind of verifying and debugging method and system of integrated circuit
CN102004666A (en) Large-scale computer operation scheduling equipment and system
CN115904317A (en) Method, device, equipment and storage medium for uniformly calling front-end interface and back-end interface
CN103678114A (en) Apparatus and method for generating assertion, and apparatus and method for verifying processor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130213