admin 管理员组文章数量: 1086019
2024年12月27日发(作者:log4j logback)
中文2611字
INTELLECTUAL IC CARD GAS METER IMPLEMENTATION
A
uthor and Presenter: Matthew, Kerry Ray IC card reader Acoustical Society of
America Journal, Volume 111, Issue4, pp. 1516-1516 (2002).
As the development of the worldwide computer and information technology, the
global information era has come. Every country is taking actions for its development
in high technology fields. Chinese government is also dedicating itself to build an
information-based national economy; while application projects represented by "Gold
Card Project" speeds up our pace in moving towards international economic
integration. As the representative of "Gold Card Project", IC technology is no doubt
the most excellent application technology. It transits from the earliest coin box type
into magcard type and later into current IC card type. IC card, whose shape is similar
to the magcard covering magnetic stripe, is an intellectual card (also named integrated
circuit card), which embeds an integrated circuit chip into a plastic substrate and seals
it into the form of card. The main purpose to develop IC card technology is to realize
the electrical cash payment, deposit and exchange, to reduce the turnover of cash and
to realize e-commerce and prepayment of public utility etc..
IC card natural gas meter is a new-style gas meter developed in recent several
years, consisting of metered sensor circuit, MCU of low power consumption, valve of
low power consumption, voltage testing circuit, circuit of guarding against gas theft,
flow monitoring circuit, and so on. Compared with the traditional involucra gas meter,
more functions such as accurate counting, transmission medium function of
intellectual card, automatic processing of the valve, illegal operation processing,
under-voltage processing, power down processing, data downloading, data display,
and voice prompt are added to this new type. IC card technology is becoming more
and more mature through manufacturers' years of effort made on the improvement
and renovation and it's more and more widely used. IC card gas meter basically
solved the difficult problem of charging for the use of gas. Meanwhile, the
progressing of the times, the enhancing of residents' democratic consciousness and the
improving of the living standard also challenge the traditional methods to collect fees
which supplies gas first, then send some persons to each residence to get the readings
of the meters and get payment later. The popularization of IC card technology has
substantially solved the problems mentioned above, taking the interests of both
providers and customers into consideration at the same time. For providers, three
difficult problems are solved: Visiting the customers to write down the amount of
gas being used, urging the customers to pay, and the dissension between providers
and customers. For customers, three problems are also solved: Disturbance made by
the people who make an appointment with users and mean to visit users to record the
gas consumption, restrained use of gas, and restriction of local government charge.
This not only provides customers with convenience, but also diminishes the economic
cost of providers. IC card gas meter will dominate the market of gas meter in the
future.
Statistics in recent years indicates that the domestic safety and precaution
products develop rapidly at a compound annual growth rate of 20%-30%. The
cumulative annual production value of safety and precaution products is 30-40 billion.
Take Beijing area as an example, the absorption of safety and precaution market was
just 0.5 billion in 1996 and 0.625 billion in 1997, while in 1998 the popularization of
finance networking made the absorption of market soar to 1.36 billion and in 1999 it
was 0.92 billion. In recent years it remains more than 1 billion. Since the entire
infrastructure for Olympic Games should be completed before 2006, authorities point
out that the period between 2004 and 2005 will offer numerous business opportunities
for the manufacture, distribution and engineering installation of safety and precaution
products, and the market will reach a new peak.
In developed countries, the orientation of safety and precaution products is
networked and wireless, which will also be our development orientation. Presently
many domestic safety and precaution products have developed into wireless ones,
such as various detectors and vidicons, but yet technique leaves much room to desire.
Performing networked safety and precaution has more strategic significance. The
profit pattern should shift from the existing distribution and installation to security
service to pursue more extra value and network will be the only way. Thus it can be
seen that safety and precaution technique still has a long way to go.
This document aims to prompt the application of SPMC65 family MCU so that Sunplus 8-bit
MCU can reinforce the development of domestic safety and precaution industry.
System Introduction
The intellectual IC card gas meter is composed of a power supply circuit, an
IC card read/write circuit, a microcontroller, a control valve, a displaying module,
and a battery box position detector.
When inserting an IC card with purchased gas volume (in the form of
encryption value) into the meter, the meter will open the valve and begin gas supply
under the electric control system. If a meter unit runs out, the meter circuit will issue
a serial group of metered pulse wave with uniform period. If the pulse sequence is
proved to be valid by the electric control system, a metered unit will be detracted
from the volume and the LCD module will display the surplus volume. Normally,
the control valve is in "on" state. It will be "off" if there is an exception. When the
purchased volume is used up, the power supply is cut off automatically, and users
need to recharge the card to resume the supply. Information read from IC card will
be stored into meter EEPROM memory whose I2C adopts 24C01 chip to memorize
important data reliably for a long time under power-off state. The life span of the
chip reached up to 106. When the card is inserted into the meter, the key data such as
password, number, purchase volume and the gas consumption record will be stored
in 24C01 chip in the form of cryptograph.
Smart Card Interface Standard - ISO 7816 is an international standard that
describes the interface requirements for contact-type smart standards
have multiple parts. For instance, part 1, 2 and 3 are applicable to card readers.
Part 1 defines the physical characteristics of the card
Part 2 defines dimension and location of smart card chip contacts
Part 3 defines the electronic signals and transmission protocols of the card.
Card readers may be referred to as conforming to ISO 7816 1/2/3, or in its simplified
term, ISO 7816.
Driver - This refers to the software used by the operating system (OS) of a
PC for managing a smart card and applicable card reader. To read a smart ID card,
the driver of the card reader must be PC/SC compliant which is supported by most
card reader products currently available. It should be noted that different OS would
require different drivers. In acquiring card readers, the compatibility between the
driver and the OS has to be determined and ensured. Smart card readers are also used
as smart card programmers to configure and personalize integrated circuit cards. It
won't take long before smart card readers become an integral part of every computer
- and, subsequently, the lives of computer users. Computer systems with keyboards
that have smart card reader/writer integration are also available.
The reader provides a path for your application to send and receive
commands from the card .There are many types of readers available, such as serial,
IC card, and standard keyboard models .Unfortunately , the ISO group was unable to
provide a standard for communicating with the readers so there is no one-size-fits-all
approach to smart card communication。Each manufacturer provides a different
protocol for communication with the reader. First you have to communicate with the
reader .Second , the reader communicates with the card, acting as the intermediary
before sending the data to the card. Third , communication with a smart card is based
on the APDU format .The card will process the data and return it to the reader, which
will then return the data to its originating source.
Battery Voltage & Battery Box Position Detection Circuit and The LCD and
The Acousto-optic Alarming Circuit
If the battery voltage is lower than the required, an alarm will be generated from
both the displaying circuit and the alarm circuit to prompt users to replace with new
batteries. To secure system power supply, the current circuit carries out high sensitive
detection to find the position of the battery box. When the box is pulled open, the
circuit outputs data in low level, and the micro-controller is going to close the control
valve. The control valve is opened automatically after the battery box is fixed well.
The LCD displays the following information: low voltage, purchased volume,
valve state, card error, surplus volume. The acousto-optic alarm is controlled by the
microcontroller and composed of an LED and a buzzer.
Device Feature
SPMC65P2404A, an industrial 8-bit micro-controller of Sunplus, provides powerful
features for driving the gas meter.
· Sunplus 8-bit micro-controller
- 182 instructions
- 11 addressing modes
- Operation frequency: 8M Hz
☉Bit operation instructions (Set, Clear, Inverse, Test)
· Two 8- bit programmable Timer/Counter (auto initialization)
- General purpose Timer/Counter
- 8-bit capture mode
- 8-bit compare mode
· Two 16-bit programmable Timer/Counter (auto initialization)
☉General purpose Timer/Counter
- 8-bit / 16-bit capture mode
- 16-bit compare mode
☉12-bit PWM output
· Interrupt management
- IRQ and NMI for the external interrupts
- 4 external interrupts
- 11 internal interrupts
· 5 types of reset functions: Power- On Reset (POR), Low Voltage Reset (LVR),
Watchdog Timer Reset (WDTR), External Reset (RESET), and, Illegal Address
Reset (IAR)
· Support three clock circuit: Crystal resonator, RC oscillator, external clock input
· Two power saving modes: Halt and Stop
· Low voltage detection(LVD)
· One buzzer output port
· SPI communication interface
· 8 10- bit ADC (100KHz)
· Working voltage: 2.5V~5V
· Built- in 4K bytes OTP ROM
· Built- in 192K bytes RAM
· Built- in pull- up & pull- low resistor
· 23 programmable general purpose IOs
The matching software is designed to fully carry out the following functions
and therefore meets the requirement of intellectual IC card gas meter:
· To read and write information
· To judge IC card type
· To judge the metering signal and to process data
· To detect voltage
· To protect power
In addition, performances about signal safety, software reliability, and
anti-interference ability are highly improved in the software design.
With the development of science and technology, the prepaid IC card is
becoming more and more popular. The intellectual IC card gas meter is designed
based on the idea of the integration of the machine and electron. Featured by
distinctive design, high reliability, high signal resolving power, precise measurement,
easy installation, simple operation, the intellectual IC card gas meter is likely to have
a promising market prospect.
附录 B
中文译文
智能IC卡燃气表中的应用
作者和主编:马休,克里雷 IC卡读卡器 美国社会期刊 第111卷,第4期, 1516至1516
页( 2002年)
随着世界计算机技术和信息技术的发展,全球的信息时代已来临,各国都在
高科技领域制订适合自己的发展道路,我国政府正在致力于国民经济信息化的建
设,以“金卡工程”为代表的信息化应用工程使我们加速向全球经济一体化迈
进。作为金卡工程的代表,IC技术无疑是当今世界最优秀应用技术。它从早期
的投币式,过渡到磁卡式,直到现在的IC卡式。IC卡即智能卡,又称集成电路
卡,它将一个集成电路芯片镶嵌于塑料基片中,封装成卡的形式,其外形与覆盖
磁条的磁卡相似,开发IC卡技术的主要目的是实现现金支付和存兑的电子化、
减少现金的流通量、实现电子商务、实现公用事业预付费等。
IC卡燃气表是近十几年发展起来的新型燃气表,一般由计量传感器电路、
微功耗单片机、微功耗阀门、电压测试电路、防窃气电路、流量监测等部分组成。
与传统的皮膜式燃气表相比,它更具备了精确记数功能、功能卡传输媒介功能、
阀门自动处理功能、非法操作处理功能、欠压处理功能、掉电处理功能、数据下
载功能、数据显示与声音提示功能等。经过广大IC卡生产厂家多年的技术改进
和革新,IC卡技术日益成熟,应用也越来越普及。IC卡燃气表基本解决了气费
收费难的问题,同时,随着时代的进步、居民民主意识的增强、生活水平的提高,
也要求改变过去落后的上门抄表收费问题,IC卡技术的推广应用,从根本上解
决了上述问题,兼顾了企业和用户的利益。对燃气企业来说:一是解决了入户抄
表难的问题;二是解决了催费收费难的问题;三是解决了企业和用户的纠纷问题。
对用户来说:一是消除了抄表人员的打扰和时间预约问题;二是用气自由;三是
消除了地方性收费方式的约束限制。既方便了用户,也减轻了企业负担和诸多难
题,简化了操作程序,促进了社会发展,提高了人民群众的生活质量,降低了企
业的经济成本,IC卡燃气表是今后的发展方向。其安全性能也得到了保证。
最近几年统计数字显示:国内安防产品行业平均以20%-30%的年增长率迅速
成长。安防市场的年产值为300-400亿元。就北京地区来讲,安防市场容量1996
年为5亿元,1997年6.25亿元,1998年由于大力推行金融网建设激增至13.6
亿元,1999年9.2亿元,近几年则一直保持在10亿元以上。由于奥运设施应在
2006年以前基本建成,因此专家指出,在2004年到2005年安防市场将迎来总
体高峰,对安防产品制造、销售和工程安装都是不可多得的商机。
安防产品的网络化和无线化是发达国家安防发展的方向,也将成为我国安防
业的发展方向。目前已经有很多产品实现了无线化,例如各种探测器、摄像机等,
但是在技术上还不十分完善。安防网络化则更具有战略意义。安防行业的盈利模
式要从目前的销售和安装转向附加值更高的安防服务,网络化是必由之路。由此
可见,安防技术距离成熟还有很长的路要走。
IC卡燃气表的基本结构
智能IC卡燃气表的组成由电源电路、IC卡读写部分、单片机控制部分、阀门控
制及显示部分、电池电压和位置检测电路等组成。
当用户将含有购气量(以加密数值形式表示)的IC卡插入表内时,控制阀
在电控系统控制下开通气路。用户每用一个计量单位,计量电路便发出一组等周
期计量脉冲序列,该脉冲序列如经电控系统判定为有效,即可以已购气量中减去
一个计量单位,并通过液晶模块显示表内剩余气量。当剩余气量为零时,控制阀
自动关闭,气路即被切断,此时用户须重新持卡购气。在正常情况下控制阀处于
接通态,只有当特殊事件发生时控制阀才从接通态变为关闭态。从IC卡读回来
的信息,随之存入EEPROM存储器中,EEPROM存储器I2C采用24C01芯片,该芯
片可以在无电源状态下长期可靠存储系统内重要数据,工作寿命可达106次。当
用户卡插入系统时,卡内密码、卡号、购气量及用户用气记录等关键数据将以密
文形式存储在24C01芯片中。
处理系统软件的计算机还必须配备有一个IC卡读卡器,它具有下列特点:
IC卡规格标准-ISO7816是一项国际标准,描述了接触式智能卡的接口要求。
这些标准有多个部分。第1部分,第2部分和第3部分是IC卡的说明. 第1部分
规定了IC卡的物理特性. 第2部分规定了智能卡芯片接触点的位置。第三部分
规定了IC卡的时钟信号和传输协议。
接口装置--指的是智能卡适用读卡器。不同的操作系统需要不同的软件。在
买读卡器,读卡器和操作系统之间的兼容性应该保证。智能卡读卡器上也使用只
能卡编程和配置个性集成电路卡。要不了多久就智能读卡器成为每个电脑的一个
组成部分。
电池电压检测、电池盒位置检测部分液晶显示及声光报警电路
当电池盒中的供电电池的电压小于正常工作电压时,系统会自动提示用户要
更换电池了,并且通过显示电路和报警电路告之用户;为有效保护系统电源,本
电路可对电池盒位置进行高灵敏检测。当电池盒被拉开时,保护电路输出低电平,
单片机监测该信号后,即控制阀门使其关断。直到电池安装好并将电池盒推入表
内正常位置时,单片机才会再次控制阀门使重新开阀供气。
液晶显示电路可显示欠压、购气、关阀、卡误和气量五种信息状态及其任意
组合。报警电路采用LED和蜂鸣器进行报警,由单片机控制发出声光报警。
芯片特性
该电路使用主控制芯片是凌阳公司的SPMC65P2404A。SPMC65P2404A是凌阳
公司(Sunplus)推出的8位工业控制单片机,最高工作频率为8MHz,工作电压
2.5V~5V,有192字节的RAM和4K字节的OTP ROM,有23个可编程IO口,内置
上/下拉电阻,8通道10位A/D转换器(100KHz),SPMC65P2404其他特性包括:
◆凌阳科技8位单片机
☉182条指令
☉11种寻址模式
☉支持位操作(Set ,Clear ,Inverse ,Test)
◆2个8位可编程定时器/计数器(可自动预置初始计数值)
☉普通的定时/计数器
☉具有8位捕获功能
☉具有8位比较功能
◆2个16位可编程定时器/计数器(可自动预置初始计数值)
☉普通的定时/计数器
☉具有8或16位捕获功能
☉具有16位比较功能
☉12位PWM输出
◆中断方式
☉支持IRQ和NMI中断
☉4种外部中断
☉11种内部中断
◆5种复位功能:上电复位、低电压复位、看门狗复位、外部复位及错误地
址复位
◆支持3种时钟电路:晶体振荡器、RC振荡、外部时钟信号
◆2种低功耗模式:Halt模式和Stop模式
◆低电压监测(LVD)功能
◆一个蜂鸣器驱动输出口
◆具有SPI总线
利用这些资源就能够实现智能IC卡燃气表的功能。
软件设计紧密结合智能IC卡燃气表的控制模式,充分体现了对IC卡信息读
写、卡类型判断、计量信号判断与数据处理、电压监测与电源保护等功能,并在
IC与信号安全性、软件运行可靠性及抗干扰等方面进行了精心设计。
随着科技的不断发展,智能IC卡燃气表采用IC卡实现预收费,能够确保“先
付费后用气”的消费方式,该产品从机电一体化的优化设计思路出发,构思独特、
控制可靠、检测信号分辨高、计量精确、安装方便、操作简单,这种智能IC卡
燃气表的市场前景将十分优越。
版权声明:本文标题:中英文翻译---智能IC卡燃气表中的应用 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://roclinux.cn/p/1735330666a1649099.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论