CN106355763A - Reading-writing card communication method based on electric energy meter and terminal - Google Patents
Reading-writing card communication method based on electric energy meter and terminal Download PDFInfo
- Publication number
- CN106355763A CN106355763A CN201610769929.XA CN201610769929A CN106355763A CN 106355763 A CN106355763 A CN 106355763A CN 201610769929 A CN201610769929 A CN 201610769929A CN 106355763 A CN106355763 A CN 106355763A
- Authority
- CN
- China
- Prior art keywords
- electric energy
- energy meter
- terminal
- file
- parameter information
- 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/06—Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity with means for prepaying basic charges, e.g. rent for meters
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/0004—Hybrid readers
-
- 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/08—Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity with means for varying the tariff or changing the price
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Theoretical Computer Science (AREA)
- Storage Device Security (AREA)
Abstract
The invention relates to a reading-writing card communication method based on an electric energy meter and a terminal. The reading-writing card communication method includes the steps: 101 transmitting identity authentication instructions to the electric energy meter by the terminal; receiving the identity authentication instructions and comparing the identity authentication instructions with a first ciphertext by the electric energy meter; 102 transmitting a correct answer to the terminal when comparison is successful, and transmitting an abnormal answer to the terminal when comparison is failed; 103 receiving the correct answer and transmitting a wallet file and a parameter information file to the electric energy meter by the terminal, receiving the wallet file and the parameter information file by the electric energy meter, and judging whether recharge is needed or not according to the wallet file; 104 writing the wallet file into a storage list by the electric energy meter if recharge is needed; 105 returning recharge success information to the terminal by the electric energy meter after writing is finished. According to the reading-writing card communication method, the electric energy meter without a bayonet has a card interaction function.
Description
[technical field]
The present invention relates to field of electrical equipment, more particularly, to the read-write card means of communication based on electric energy meter and terminal.
[background technology]
Take in the design of control table in intelligent electric energy now, be generally divided into remote bill control table (without bayonet socket) and local charge control table
(band bayonet socket) two types.Local charge control table many one piece of bayonet socket circuit on hardware circuit than remote bill control table, can be with card
Interaction, realizes pre paid functionality, and remote bill control table does not possess this function.
[content of the invention]
For solving foregoing problems, the present invention propose to assist remote bill control table realize pre-payment based on electric energy meter and terminal
The read-write card means of communication.
For reaching object defined above, the present invention adopts the following technical scheme that the read-write card communication side based on electric energy meter and terminal
Method is it is characterised in that comprise the steps:
Described terminal sends authentication instruction to described electric energy meter;Described electric energy meter receives described authentication and instructs simultaneously
Described authentication instruction is compared with the first ciphertext;
Compare successfully when described, then send correct response to described terminal, compare unsuccessfully when described, then send out to described terminal
Send exception response;
Described terminal receives described correct response, and described terminal sends wallet file and parameter information file to electric energy meter;
Described electric energy meter receives described wallet file and parameter information file, and judges whether that needs are supplemented with money according to wallet file;
If desired supplement with money, described electric energy meter writes described wallet file to storage table.
It is optional: described wallet file includes the power purchase amount of money in card interior power purchase number of times and card,
When in the table of described electric energy meter, power purchase number of times is equal to power purchase number of times in card, described electric energy meter sends not to described terminal
Supplement response with money;
When in described card, power purchase number of times is power purchase number of times+1 in table, then described electric energy meter is to described storage table write wallet literary composition
Part;
When in described card, power purchase number of times is other situation, then described electric energy meter sends exception response, institute to described terminal
State other situations be Fei Biaonei power purchase number of times be equal to card in power purchase number of times and card in power purchase number of times be table in power purchase number of times+1.
Optional: to include: described parameter information file includes parameter and updates flag bit and parameter information;Described parameter updates
Flag bit includes parameter information flag bit, when protheca flag bit and standby set flag bit;
Described electric energy meter receives described parameter information file, and judges wherein to whether there is to update to indicate, if not existing more
New flag bit, then described electric energy meter is to described terminal transmission response ending message;
When only existing parameter information flag bit, then described electric energy meter is to described storage table write parameters information;Join when existing
Count Information sign position and work as protheca flag bit, then described electric energy meter receives parameter information and when protheca electricity price file and writes described
Storage table, terminal sends described protheca electricity price file of working as to described electric energy meter;When existing parameter information flag bit and standby set
Flag bit, then described electric energy meter receive parameter information and standby set electricity price file and write described storage table, described terminal is to institute
State electric energy meter and send described standby set electricity price file;When there is parameter information flag bit, when protheca flag bit and standby set mark
Position, described electric energy meter receives described parameter information, when protheca electricity price file and standby set electricity price file and write described storage table.
Optional: described electric energy meter described wallet file, parameter information file, when protheca electricity price file or standby set electricity
The encrypting module that value document writes in storage table does cryptographic check, and when described cryptographic check success, described electric energy meter is deposited to described
Write in storage table described electric energy meter to described storage table write wallet file, parameter information file, when protheca electricity price file, standby
Cover at least one in electricity price file;When described cryptographic check failure, described electric energy meter sends exception response to described terminal.
Optional: after the completion of said write, described electric energy meter returns successful recharging information to described terminal.
Optional: described encrypting module is esam module.
The present invention possesses following technique effect: 1, makes the electric energy meter not possessing bayonet socket can also have card interactive function;
2nd, it is easy to compatibility and upgrading, contact card and radio-frequency card can be realized by changing the read-write dop of separate type terminal, keep away
Exempted to need significant cost 3 that the electric energy meter replacing substantial amounts brought, former need to can be with not using electric energy meter with bayonet
Electric energy meter with bayonet replaces, and reduces the cost manufacturing and purchasing, and uses especially for the resident installing concentratedly in electricity box
Table, has very big replacement to be worth.
These features of the present invention and advantage will be detailed in following specific embodiment, accompanying drawing exposure.
[brief description]
The present invention is described further below in conjunction with the accompanying drawings:
Fig. 1 is the read-write card means of communication based on electric energy meter and terminal of the embodiment of the present invention 1.
[specific embodiment]
Accompanying drawing with reference to the embodiment of the present invention is explained and illustrated to the technical scheme of the embodiment of the present invention, but under
State embodiment and be only the preferred embodiments of the present invention, and not all.Based on the embodiment in embodiment, those skilled in the art
On the premise of not making creative work, obtained other embodiment, broadly falls into protection scope of the present invention.
Embodiment 1.
Referring to Fig. 1, based on the read-write card means of communication of electric energy meter and terminal, comprise the steps:
Step 101: terminal sends authentication instruction to electric energy meter;Electric energy meter receives authentication instruction and recognizes identity
Card instruction is compared with the first ciphertext;
Step 102: when comparing successfully, then send correct response to terminal, when comparing unsuccessfully, then send abnormal answering to terminal
Answer;
Step 103: terminal receives correct response, terminal sends wallet file and parameter information file to electric energy meter;Electric energy
Table receives wallet file and parameter information file, and judges whether that needs are supplemented with money according to wallet file;
Step 104: if desired supplement with money, electric energy meter writes wallet file to storage table.
Step 106: after the completion of write, electric energy meter returns successful recharging information to terminal.
In abovementioned steps 103, wallet file includes the power purchase amount of money in card interior power purchase number of times and card,
When in the table of electric energy meter, power purchase number of times is equal to power purchase number of times in card, electric energy meter sends to terminal and does not supplement response with money;
When in card, power purchase number of times is power purchase number of times+1 in table, then electric energy meter writes wallet file to storage table;
When in card, power purchase number of times is other situation, then electric energy meter sends exception response to terminal, and other situations are non-table
Interior power purchase number of times is power purchase number of times+1 in table equal to power purchase number of times in power purchase number of times in card and card.
Between abovementioned steps 104 and step 106, carry out step 105, judge whether to need undated parameter information, work as protheca
Electricity price file and standby set electricity price file;
Parameter information file includes parameter and updates flag bit and parameter information;Parameter updates flag bit and includes parameter information mark
Will position, when protheca flag bit and standby set flag bit.
Electric energy meter receives parameter information file, and judges wherein to whether there is to update to indicate, if there is not renewal flag bit,
Then electric energy meter sends response ending message to terminal;
When only existing parameter information flag bit, then electric energy meter is to storage table write parameters information;When there is parameter information mark
Will position and work as protheca flag bit, then electric energy meter receives parameter information and when protheca electricity price file write storage table, and terminal sends
When protheca electricity price file is to electric energy meter;When existing parameter information flag bit and standby set flag bit, then electric energy meter reception parameter
Information and standby set electricity price file simultaneously write storage table, and terminal sends standby set electricity price file to electric energy meter;Believe when there is parameter
Breath flag bit, when protheca flag bit and standby set flag bit, electric energy meter receives parameter information, when protheca electricity price file and standby set
Electricity price file simultaneously writes storage table.
Aforementioned write information to storage table during, comprising: electric energy meter is wallet file, parameter information file, current
Encrypting module in set electricity price file or standby set electricity price file write storage table does cryptographic check, when cryptographic check success, electricity
Can table write in storage table electric energy meter to storage table write wallet file, parameter information file, when protheca electricity price file, standby
Cover at least one in electricity price file;When cryptographic check failure, electric energy meter sends exception response to terminal.
Aforementioned encrypting module is esam module.This esam module is embedded safe control module.It is substantially dip or
The cpu the core of the card piece of sop chip package, is used for using as wallet in ic card ammeter earliest, and storage is supplemented with money and spending amount, with
And some other important parameter, there is identity recognition function simultaneously, carry out bidirectional identity authentication with outside card.With terminal
Increasingly being taken seriously of safety, is widely used in the safety storage that various built-in terminals realize data at present, and adding of data solves
Close, the identification and authentication of terminal identity, the copyright protection of embedded software, the function such as management of drm digital publishing rights.
Response in previous embodiment 1 and instruction, the design of its frame format is as follows:
In order that read-write card communication mechanism can have more preferable versatility, portability, we adopt domestic electric energy meter field
Communication frame format defined in most widely used dl/t645-2007 communicates framework as it, and form is as follows:
Frame initial code and end code are fixed character;Address field is with the electric energy meter of separate type terminal networking communicatively
Location, every piece of table all should have one and be completely independent different addresses, just can realize a separation by different address fields
Formula terminal covers the application of polylith electric energy meter;Control code is the classification of communication command, and different control codes correspond to different types of
Communication instruction;Data length is the byte number of data field;Data field is content truly to be interacted or response message;Check code
It is the arithmetic sum of all data before first frame initial code starts to check code, disregard the part beyond 256.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, and is familiar with
This those skilled in the art should be understood that the present invention includes but is not limited to accompanying drawing and interior described in specific embodiment above
Hold.The modification of any function and structure principle without departing from the present invention is intended to be included in the scope of claims.
Claims (6)
1. the read-write card means of communication based on electric energy meter and terminal are it is characterised in that comprise the steps:
Described terminal sends authentication instruction to described electric energy meter;Described electric energy meter receives described authentication instruction and by institute
State authentication instruction to compare with the first ciphertext;
Compare successfully when described, then send correct response to described terminal, compare unsuccessfully when described, then send to described terminal different
Often response;
Described terminal receives described correct response, and described terminal sends wallet file and parameter information file to electric energy meter;Described
Electric energy meter receives described wallet file and parameter information file, and judges whether that needs are supplemented with money according to wallet file;
If desired supplement with money, described electric energy meter writes described wallet file to storage table.
2. according to claim 1 the read-write card means of communication based on electric energy meter and terminal it is characterised in that described wallet is civilian
Part includes the power purchase amount of money in card interior power purchase number of times and card,
When in the table of described electric energy meter, power purchase number of times is equal to power purchase number of times in card, described electric energy meter sends to described terminal and does not supplement with money
Response;
When in described card, power purchase number of times is power purchase number of times+1 in table, then described electric energy meter writes wallet file to described storage table;
When in described card, power purchase number of times is other situation, then described electric energy meter sends exception response to described terminal, described its
Its situation is Fei Biaonei power purchase number of times is power purchase number of times+1 in table equal to power purchase number of times in power purchase number of times in card and card.
3. according to claim 1 the read-write card means of communication based on electric energy meter and terminal it is characterised in that include: described
Parameter information file includes parameter and updates flag bit and parameter information;Described parameter updates flag bit and includes parameter information mark
Position, when protheca flag bit and standby set flag bit;
Described electric energy meter receives described parameter information file, and judges wherein to whether there is to update to indicate, if there is not renewal mark
Will position, then described electric energy meter is to described terminal transmission response ending message;
When only existing parameter information flag bit, then described electric energy meter is to described storage table write parameters information;Believe when there is parameter
Cease flag bit and work as protheca flag bit, then described electric energy meter receives parameter information and when protheca electricity price file and writes described storage
Table, terminal sends described protheca electricity price file of working as to described electric energy meter;When existing parameter information flag bit and standby set mark
, then described electric energy meter receives parameter information and standby set electricity price file and writes described storage table, and described terminal is to described electricity
Described standby set electricity price file can be sent by table;When there is parameter information flag bit, when protheca flag bit and standby set flag bit, institute
State electric energy meter and receive described parameter information, when protheca electricity price file and standby set electricity price file and write described storage table.
4. according to claim 1 or 2 or 3 the read-write card means of communication based on electric energy meter and terminal it is characterised in that: described
Electric energy meter described wallet file, parameter information file, when protheca electricity price file or standby set electricity price file write storage table in
Encrypting module do cryptographic check, when described cryptographic check success, described electric energy meter writes described electric energy in described storage table
Table to described storage table write wallet file, parameter information file, when at least one in protheca electricity price file, standby set electricity price file
Individual;When described cryptographic check failure, described electric energy meter sends exception response to described terminal.
5. according to claim 1 the read-write card means of communication based on electric energy meter and terminal it is characterised in that said write is complete
Cheng Hou, described electric energy meter returns successful recharging information to described terminal.
6. according to claim 5 the read-write card means of communication based on electric energy meter and terminal it is characterised in that: described encryption mould
Block is esam module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610769929.XA CN106355763A (en) | 2016-08-30 | 2016-08-30 | Reading-writing card communication method based on electric energy meter and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610769929.XA CN106355763A (en) | 2016-08-30 | 2016-08-30 | Reading-writing card communication method based on electric energy meter and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106355763A true CN106355763A (en) | 2017-01-25 |
Family
ID=57857475
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610769929.XA Pending CN106355763A (en) | 2016-08-30 | 2016-08-30 | Reading-writing card communication method based on electric energy meter and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106355763A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109300246A (en) * | 2018-10-10 | 2019-02-01 | 深圳市科陆电子科技股份有限公司 | A kind of shared ammeter control method, device and computer-readable medium |
CN110136340A (en) * | 2019-06-03 | 2019-08-16 | 国网宁夏电力有限公司电力科学研究院 | A kind of intelligent electric energy meter electricity charge recharge method and system |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1228162A (en) * | 1997-05-30 | 1999-09-08 | 通用电气公司 | Automated communication of electricity meter data |
CN200947108Y (en) * | 2006-09-14 | 2007-09-12 | 北京航空航天大学 | Single-phase electric energy meter based on internet |
CN101661646A (en) * | 2009-09-21 | 2010-03-03 | 中兴通讯股份有限公司 | Method for charging in real time, mobile terminal and intelligent meter |
CN102129745A (en) * | 2010-10-25 | 2011-07-20 | 上海复展照明科技有限公司 | Charging method and system for rechargeable card and application method and management system for rechargeable card |
CN102426724A (en) * | 2011-11-04 | 2012-04-25 | 四川电力科学研究院 | Integrated charging and acquisition terminal |
CN103236974A (en) * | 2013-04-01 | 2013-08-07 | 浙江正泰仪器仪表有限责任公司 | Dynamic routing algorithm for power line carrier metering |
CN103810793A (en) * | 2014-01-22 | 2014-05-21 | 广东浩迪创新科技有限公司 | Intelligent power purchase management system and power purchase method thereof |
US20160035047A1 (en) * | 2014-07-30 | 2016-02-04 | International Business Machines Corporation | Managing Energy Meter Usage Feedback |
-
2016
- 2016-08-30 CN CN201610769929.XA patent/CN106355763A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1228162A (en) * | 1997-05-30 | 1999-09-08 | 通用电气公司 | Automated communication of electricity meter data |
CN200947108Y (en) * | 2006-09-14 | 2007-09-12 | 北京航空航天大学 | Single-phase electric energy meter based on internet |
CN101661646A (en) * | 2009-09-21 | 2010-03-03 | 中兴通讯股份有限公司 | Method for charging in real time, mobile terminal and intelligent meter |
CN102129745A (en) * | 2010-10-25 | 2011-07-20 | 上海复展照明科技有限公司 | Charging method and system for rechargeable card and application method and management system for rechargeable card |
CN102426724A (en) * | 2011-11-04 | 2012-04-25 | 四川电力科学研究院 | Integrated charging and acquisition terminal |
CN103236974A (en) * | 2013-04-01 | 2013-08-07 | 浙江正泰仪器仪表有限责任公司 | Dynamic routing algorithm for power line carrier metering |
CN103810793A (en) * | 2014-01-22 | 2014-05-21 | 广东浩迪创新科技有限公司 | Intelligent power purchase management system and power purchase method thereof |
US20160035047A1 (en) * | 2014-07-30 | 2016-02-04 | International Business Machines Corporation | Managing Energy Meter Usage Feedback |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109300246A (en) * | 2018-10-10 | 2019-02-01 | 深圳市科陆电子科技股份有限公司 | A kind of shared ammeter control method, device and computer-readable medium |
CN110136340A (en) * | 2019-06-03 | 2019-08-16 | 国网宁夏电力有限公司电力科学研究院 | A kind of intelligent electric energy meter electricity charge recharge method and system |
CN110136340B (en) * | 2019-06-03 | 2021-11-16 | 国网宁夏电力有限公司营销服务中心(国网宁夏电力有限公司计量中心) | Intelligent electric energy meter electric charge recharging method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2126796B1 (en) | Contactless recharging of mobile terminal battery | |
CN101013903A (en) | Near-field communication handset with multi-way switch interface and method of power supply and communication thereof | |
CN105245349A (en) | User wearing equipment provided with embedded UICC card | |
KR20080076477A (en) | Mobile communication device and battery recharge method thereof | |
CN203761095U (en) | Self-service intelligent charging device and self-service intelligent charging system | |
JP2007525903A (en) | Reset circuit, data carrier and communication device | |
CN109034984A (en) | A kind of lease battery charging management system and its charging method | |
CN101719211B (en) | IC card reader and method for safely reading and writing IC card | |
CN106355763A (en) | Reading-writing card communication method based on electric energy meter and terminal | |
CN106022177A (en) | Data processing method and intelligent card | |
CN104143996A (en) | Radio communication devices and methods for controlling a radio communication device | |
CN203224904U (en) | Integrated device of mobile memory, smart card and payment terminal thereof | |
CN103902496B (en) | USB KEY protocol conversion devices and method | |
CN105490708B (en) | A kind of method and device for reading and writing smart card | |
CN104240075A (en) | Financial card, mobile terminal and mobile payment system | |
CN202564991U (en) | Movable power supply device with card reading function | |
CN204990547U (en) | A device is opened to invoice for taxation control system | |
CN104376650A (en) | Vehicle wireless charging payment method | |
TWM549900U (en) | Mobile device and subscriber identity module card | |
CN103428313B (en) | A kind of client identification module card compatible apparatus and terminal equipment | |
CN208938245U (en) | A kind of Internet of Things water meter device based on NFC technique | |
CN106203191A (en) | A kind of data processing method and smart card | |
CN105634036A (en) | Wireless charging authentication system of mobile terminal | |
CN105956854A (en) | Data processing method and cloud server | |
CN105916098A (en) | Communication mobile power supply apparatus and method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170125 |
|
RJ01 | Rejection of invention patent application after publication |