The present invention provides a method, a chip operating system to download a chip operating system and a smart card, wherein the method includes: the internal operating system program into the main program and subprogram, the auxiliary program size does not exceed the size of the area of smart card loader; call at the loader loader program area, will be the main program is compiled and downloaded to smart card chip operating system; control and erase the loader area, by the main program and the subprogram compiled and downloaded to the loader area. The invention can save the Flash space of the smart card, thereby satisfying the requirement of the user area space.
【技术实现步骤摘要】
本专利技术涉及智能卡
,特别是涉及一种片内操作系统下载的方法、一种片 内操作系统和一种智能卡。
技术介绍
伴随着智能卡的发展,人们利用其内部的微处理器芯片,开发了应用于智能卡内 部的各种各样的操作系统,即cos。COS的全称是Chip OperatingSystem(片内操作系统), 它一般是紧紧围绕着它所服务的智能卡的特点而开发的,即COS是一个专用系统而不是通 用系统,一种COS —般都只能应用于特定的某种(或者某些)智能卡,不同卡内的COS—般 是不同的。传统的COS下载通常按以下过程进行首先,芯片在下载COS前称为白卡状态,白卡状态的卡片由Loader (加载器)程序 控制所有命令的运行;其中,Loader程序是预置于白卡中的一段程序,用于控制COS下载, 所以在下载完成COS之前Loader程序不能被修改,否则下载COS不能成功;其次,通过Loader程序提供的命令接口,将COS程序下载到卡片中,当COS程序下 载完成后,卡片的控制权会交给C0S,也就是说卡片的命令处理全部由COS完成,而Loader 程序目前没有用处;再者,当卡片需要恢复为白卡 ...
【技术保护点】
1.一种片内操作系统下载的方法,其特征在于,包括:将片内操作系统程序拆分为主程序和辅程序,其中,辅程序的大小不超过智能卡的加载器区的大小;调用位于所述加载器区的加载器程序,将主程序编译后下载至智能卡的片内操作系统区;通过主程序控制擦除所述加载器区,以及,将所述辅程序编译后下载至所述加载器区。
【技术特征摘要】
【专利技术属性】
技术研发人员:崔毅,
申请(专利权)人:北京握奇数据系统有限公司,
类型:发明
国别省市:11
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。