WO2009086791A1 - 与移动终端交互管理数据库的方法及智能卡 - Google Patents

与移动终端交互管理数据库的方法及智能卡 Download PDF

Info

Publication number
WO2009086791A1
WO2009086791A1 PCT/CN2009/000041 CN2009000041W WO2009086791A1 WO 2009086791 A1 WO2009086791 A1 WO 2009086791A1 CN 2009000041 W CN2009000041 W CN 2009000041W WO 2009086791 A1 WO2009086791 A1 WO 2009086791A1
Authority
WO
WIPO (PCT)
Prior art keywords
database
stk
command
extended
database command
Prior art date
Application number
PCT/CN2009/000041
Other languages
English (en)
French (fr)
Inventor
Jiye Lei
Original Assignee
Beijing Watch Data System 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 Beijing Watch Data System Co., Ltd. filed Critical Beijing Watch Data System Co., Ltd.
Priority to EP09700529.2A priority Critical patent/EP2461640A4/en
Publication of WO2009086791A1 publication Critical patent/WO2009086791A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/60Subscription-based services using application servers or record carriers, e.g. SIM application toolkits
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier

Definitions

  • the present invention relates to a subscriber identity module in the field of mobile communications, and more particularly to a method for a mobile terminal device to operate a database on a smart card via a STK (SIM Application Toolkit).
  • STK SIM Application Toolkit
  • IC card Integrated Circuit Card
  • IC card As a device for secure storage and secure operation, IC card (Integrated Circuit Card) is widely used in the fields of identity authentication, transaction payment and so on. With the development of integrated circuits and market demands, the performance of smart cards continues to increase. High-performance smart cards have higher performance CPUs, larger memory, and high-speed communication interfaces.
  • the traditional single-task smart card operating system (COS, Chip Operating System) can not fully exploit the performance of this high-performance smart card. Therefore, based on this high-performance smart card, a multi-tasking real-time operating system is built, which includes two cores: task management and file system. Modules and multiple tasks, traditional COS has become a task in the high-performance smart card operating system. Task management includes task creation and deletion, task scheduling, and task communication.
  • the file system supports the FAT12 or FAT16 or FAT 32 file format according to the memory size.
  • the file system also encapsulates a file operation interface called the Virtual File System Application Programming Interface (VFS API).
  • VFS API Virtual File System Application Programming Interface
  • High-performance smart cards have large-capacity memory that can support the storage and calculation of large amounts of data. Simple file operations have been difficult to meet the needs of large amounts of data in terms of speed and convenience.
  • some high-performance smart cards introduce database management functions and provide a database management system application programming interface (DBMS API) to greatly improve the performance of large-capacity data operations.
  • DBMS API database management system application programming interface
  • This type of smart card that supports the database is called a database smart card.
  • no database smart card is applied to the mobile terminal device (mobile phone), that is, the prior art cannot support the mobile terminal device to operate and manage the database on the card, and the mobile terminal device user has a large capacity. The ability to maintain and find data is heavily constrained. Summary of the invention
  • the embodiments of the present invention provide a method for managing a database with a mobile terminal device and a smart card thereof, which are used to implement a function of managing a database on a smart card by a mobile terminal device, and supporting a user of the mobile terminal device to perform maintenance and searching on large-capacity data.
  • a method for interactively managing a database between a smart card and a mobile terminal device includes the following steps:: interacting with the mobile terminal device by using an STK active command to obtain data operation information of the user of the mobile terminal device;
  • the corresponding database API function is called to execute the data operation in the database.
  • a smart card for a mobile terminal device comprising:
  • a storage module configured to store a database
  • a database management module configured to manage a database in the storage module according to a database API function
  • An interaction module configured to interact with the mobile terminal device by using an STK active command
  • the STK database command determining module is configured to obtain data operation information of the mobile terminal device user by using the interaction module, and determine a corresponding extended STK database command;
  • the STK database command execution module is configured to determine, according to the STK database command, the STK database command determined by the module, and the database API function indication information carried by the STK database command, and invoke the corresponding database API function to execute the data in the database. operating.
  • the smart card executes the extended STK database command after obtaining the operation information of the data of the mobile terminal device user, and calls the number when executing the extended STK database command.
  • the library API function the function of the mobile terminal device to operate and manage the database on the smart card through the STK mode is realized, thereby supporting the functions of the mobile terminal device user to quickly maintain and search large-capacity data.
  • FIG. 1 is a flow chart of a prior art mobile terminal device processing an active interactive command of a SIM card by using STK technology
  • FIG. 2 is a flowchart of a method for interactively managing a database between a smart card and a mobile terminal device according to Embodiment 1 of the present invention
  • FIG. 3 is a structural block diagram of a smart card for managing a database with a mobile terminal device according to Embodiment 1 of the present invention.
  • the smart card of the embodiment of the present invention interacts with the mobile terminal device through the STK active command, and obtains operation information of the data of the user of the mobile terminal device, such as data operation information for saving data and deleting data, and is called according to the obtained operation information for the data.
  • the extended STK database command invokes the API function of the database according to the STK database command, thereby implementing management and operation of the database.
  • the common subscriber identity module includes: SIM (Subscriber Identive Module) card in the GSM (Global System for Mobile Communications) communication network.
  • SIM Subscriber Identive Module
  • GSM Global System for Mobile Communications
  • the GSM terminal and the identity module support the STK function.
  • buttons can provide users with a variety of menu applications, such as mobile QQ, SMS bulk, and Monternet.
  • the mobile user can complete the operations of these services by selecting the application menu items and inputting keywords, such as personal short message management, designated information browsing, and the like.
  • STK is a small programming language, which is a tool service software based on SIM card operating system to develop value-added services. It can be understood as derived from the original S-top card passive operating system.
  • the SIM card actively interacts with the operating system. It provides a mechanism to allow applications in the SIM card to interact with the ME (Mobi le Equipment, mobile terminal) supporting the application, that is, to support active dialogue between the SIM card and the ME.
  • the SIM card supporting STK technology follows a series of specifications such as GSM11.11, GSM11.14, GSM03.08, etc., so that the SIM card allows the STK application in the card to implement more services.
  • FIG. 1 shows the process of the mobile terminal device handling the active interactive commands of the SIM card through STK technology:
  • Step S101 The mobile terminal device sends a command to the SIM card.
  • the status word SW 0x91XX ("XX" indicates the number of bytes of the active command) is indicated as the active command is ready.
  • Step S104 After receiving the Fetch command, the SIM card sends an active command to the mobile terminal device, and sends a status word.
  • Step S105 The mobile terminal device processes the command after receiving the active command.
  • the mobile terminal device can recognize the active commands sent by the SBi card and know the specific processing method.
  • Step S106 After processing the command, the mobile terminal device sends a processing result to the SIM card by using the Terminal Response command.
  • the active commands defined in the GSM11.14 specification are shown in Table 1, and may be displayed on mobile terminals.
  • the command for the character (Di splay Text ), the command to get the user input from the mobile terminal device ( Get Input ), the command for the button input by the user (Get Inkey ) from the mobile terminal device, and the installation of the level 0 and level 1 menu commands ( Setup Menu ), install application submenu command (Select I tem), etc.
  • the S-top card can notify the mobile terminal device to display in an active manner, obtain user information input, and select menu options, thereby realizing more and more flexible functions.
  • the SIM card can use these STK active commands to interact with the mobile terminal device.
  • the OTA (Over The Air) specification also defines some basic STK commands and extended STK commands. These basic STK commands and extended ST commands are not used for SIM cards to interact with mobile devices. It corresponds to some common API functions of SIM cards, which makes it easy for developers to write some common STK applications.
  • extended STK commands do not have commands to perform database operations. Developers can't write STK applications with database operations. Based on this, an embodiment of the present invention provides a set of extended STK commands that can operate a database (as shown in Table 3). These extended STK database commands are also not used for SIM card interaction with mobile terminal devices, but respectively corresponding to The API function that manipulates the database. In this way, developers can write STK applications that operate and manage the database through extended STK database commands.
  • Table 3 is only a specific way to extend the STK database command, and other methods can be used to expand the STK database command by those skilled in the art.
  • the extended STK database commands in Table 3 correspond to different database API functions, and these extended STK commands follow the extended command format defined by the 0TA specification, namely TLV (Tag Length Value, Tag Length, Value) format.
  • the extended commands of the TLV format include API-Tag, API-Length, API-Value:
  • the API of the extended STK database command - the value of the tag is the hexadecimal number "FF".
  • API—Lenger indicates the number of bytes of API-Value.
  • API_Value consists of an API index number (API_Index) and several parameters ( Parameter );
  • the API-Index value is not the same as the API-Index index number of the extended APISTK command that the OTA specification already occupies. In principle, the value can be arbitrarily selected.
  • the embodiment of the present invention adopts a preferred scheme, and increments from the last extended API index number (hexadecimal number "36") defined by the 0TA specification, that is, the index number of the DB STK API is from a hexadecimal number. "37" starts, the order is incremented backwards; different API-Index values correspond to database API functions of different functions, then when executing the STK database command, the API-Index value of the STK database command can be called accordingly.
  • Database API function ;
  • Parameter can have zero or more, and each parameter can be a constant or a variable.
  • extended STK commands can carry parameters. Therefore, different STK database commands correspond to different database API functions, and the parameters carried in the STK database commands are the parameters of the corresponding database API functions. In this way, developers of STK applications can write specific STK applications that support the database through extended STK database commands.
  • An embodiment of the present invention provides a method for interactively managing a database between a smart card and a mobile terminal device. As shown in FIG. 2, the method includes the following steps:
  • Step S201 The smart card interacts with the mobile terminal device through the STK active command, and obtains operation information of the data of the user of the mobile terminal device.
  • the smart card interacts with the mobile terminal device through the STK active command to obtain operation information of the data of the mobile terminal device user.
  • the smart card sends a menu for the user to select through the active command mode. After the user selects the menu, the mobile terminal device sends the user's menu option to the smart card, or sends the information input by the user to the smart card, so that the smart card can Obtain operation information of the mobile terminal device user on the data, such as saving a certain data, deleting or modifying. Since this technique is well known to those skilled in the art, it will not be described here.
  • Step S202 The smart card determines to execute the corresponding extended STK database command according to the operation information of the user on the data.
  • the smart card After obtaining the operation information of the user on the data, the smart card knows whether the user wants to save a certain data or delete or query the operation information of a certain data.
  • there is no extended STK database command only some STK commands for reading and writing files, so the developers of STK applications can only call these simple STK commands for reading and writing files to execute. User manipulation of data.
  • the embodiment of the present invention provides an extended STK database command, and then the developer of the STK application can call the corresponding STK database command. For example, if the user's operation information is to add a "Zhang San" name record, then you can call the Add Record STK database command to write the data "Zhang San" to the name database.
  • the STK database command itself can carry parameters, "Zhang San, can be carried as an argument in the Add Record command.
  • Step S203 When executing the corresponding extended STK database command, calling the corresponding database API function to implement operation management on the database.
  • the corresponding database API function When executing the corresponding extended STK database command, the corresponding database API function is called according to the API_Index value carried by the extended STK database command; according to the parameter part of the API_Value carried by the extended STK database command, the relevant parameter is passed to the corresponding database API function.
  • the relevant parameter is passed to the corresponding database API function.
  • Step S2 Q4 The smart card transmits the execution result to the mobile terminal device.
  • the corresponding database API function When executing the corresponding extended STK database command, the corresponding database API function is called to realize the operation management of the database. When the corresponding database API function completes the corresponding operation management of the database, the execution result is returned, such as successful saving, query failure, etc. .
  • the smart card returns the execution result to the mobile terminal device.
  • the embodiment of the present invention provides a smart card for managing a database with a mobile terminal device.
  • the method includes: an interaction module 301, an STK database command determination module 302, an STK database command execution module 303, a database API module 304, and storage. Database 305 in the storage module.
  • the STK database command determining module 302 is configured to obtain operation information of the data of the mobile terminal device user through the interaction module 301, and determine an extended STK database command that should be executed according to the operation information of the user on the data.
  • the STK database command execution module 303 is configured to execute the extended STK database command according to the extended STK database command determined by the STK database command determining module 302.
  • the database API module 304 is invoked according to the extended STK database command.
  • the database API function completes the operation and management of the database 305.
  • the STK database command execution module 303 is further configured to obtain the execution result returned by the database API function after the database API function completes the operation and management of the database 305, and send the execution result to the mobile terminal device through the interaction module 301.
  • the smart card executes the extended STK database command after obtaining the operation information of the data of the user of the mobile terminal device, and invokes the database API function when executing the extended STK database command, thereby realizing the operation of the mobile terminal device through the STK mode.
  • Manage the database function on the smart card which supports the mobile terminal device users to quickly maintain and find large-capacity data.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)
  • Stored Programmes (AREA)

Description

与移动终端交互管理数据库的方法及智能卡
技术领域
本发明涉及移动通信领域用户识别模块, 尤其涉及一种移动终端设备通 过 STK (SIM Application Toolkit, SIM应用工具包)方式操作智能卡上数 据库的方法。
背景技术
IC卡(Integrated Circuit Card, 智能卡)作为一种安全存储和安全运 算的设备, 被广泛应用于身份认证、 交易支付等领域。 随着集成电路和市场 需求的发展, 智能卡的性能不断提高。 高性能智能卡具有更高性能的 CPU、 更 大容量的存储器以及高速的通信接口。
传统的单任务智能卡操作系统(COS, Chip Operating System) 不能充 分发挥这种高性能智能卡的性能, 因此, 基于这种高性能智能卡构建了多任 务实时操作系统, 包含任务管理、 文件系统两大核心模块以及多个任务, 传 统 COS 已成为高性能智能卡操作系统中的一个任务。 任务管理包含任务创建 和删除、 任务调度、 任务通信。 文件系统根据存储器大小支持 FAT12或 FAT16 或 FAT 32 文件格式, 文件系统还封装了一层文件操作接口, 称之为虚拟文件 系统应用编程接口( VFS API, Virtual File System Application Programming Interface )。
高性能智能卡具备大容量存储器, 可以支持大量数据的存储和运算, 简 单的文件操作在速度和方便程度方面已经很难满足大量数据的应用了。 目前, 有的高性能智能卡中引入数据库管理功能, 并提供了一套数据库管理的应用 编程接口 ( DBMS API, Database Management System Application Programming Interface)可以极大地提高大容量数据操作的性能。 这种支持数据库的智能 卡被称为数据库智能卡。 在现有技术中还没有数据库智能卡被应用到移动终端设备' (手机) 中 , 也就是说, 现有技术不能支持移动终端设备对卡上的数据库进行操作和管理, 移动终端设备用户对大容量数据进行维护和查找的功能受到 ί艮大的约束。 发明内容
本发明实施例提供了与移动终端设备交互管理数据库的方法及其智能 卡, 用以实现通过移动终端设备管理智能卡上的数据库, 支持移动终端设备 用户对大容量数据进行维护和查找等功能。
一种智能卡与移动终端设备交互管理数据库的方法, 包括如下步骤: 通过 STK主动式命令与移动终端设备交互, 获得移动终端设备用户的数 据操作信息;
根据所述数据操作信息, 确定对应的扩展 STK数据库命令;
根据所述扩展 STK数据库命令中携带的数据库 API 函数指示信息, 调用 对应的数据库 API函数在数据库中执行所述数据操作。
一种移动终端设备的智能卡, 包括:
存储模块, 用于存储数据库;
数据库管理模块, 用于根据数据库 API 函数管理所述存储模块中的数据 库;
还包括:
交互模块, 用于通过 STK主动式命令与移动终端设备进行交互;
STK数据库命令确定模块,用于通过所述交互模块获得移动终端设备用户 的数据操作信息, 确定对应的扩展 STK数据库命令;
STK数据库命令执行模块,用于根据所述 STK数据库命令确定模块确定出 的 STK数据库命令, 以及所述 STK数据库命令携带的数据库 API函数指示信 息, 调用对应的数据库 API函数在数据库中执行所述数据操作。
本发明实施例由于智能卡在获得移动终端设备用户对数据的操作信息 后, 执行扩展的 STK数据库命令, 并在执行扩展的 STK数据库命令时调用数 据库 API 函数, 实现了移动终端设备通过 STK方式操作和管理智能卡上的数 据库的功能, 从而支持了移动终端设备用户对大容量数据进行快速维护和查 找等功能。
附图说明
图 1为现有技术的移动终端设备通过 STK技术处理 SIM卡的主动交互命 令的流程图;
图 2 为本发明实施例一的智能卡与移动终端设备交互管理数据库的方法 流程图;
图 3 为本发明实施例一的与移动终端设备交互管理数据库的智能卡的结 构框图。
具体实施方式
本发明实施例的智能卡通过 STK主动式命令与移动终端设备交互, 获得 移动终端设备用户对数据的操作信息, 比如保存数据、 删除数据的数据操作 信息等, 并根据获得的对数据的操作信息调用扩展的 STK数据库命令, 根据 STK数据库命令调用数据库的 API函数,从而实现对数据库的管理与操作。 下 面简单介绍一下 STK技术。
在移动通信产业中, 所有移动通信运营商提供的基础业务及增值业务都 是以用户识别模块(智能卡)为载体的。常见的用户识别模块包括: GSM( Global Sys tem for Mobi le Communicat ion, 全球移动通信系统)通信网洛中的 SIM ( Subscriber Ident i ty Module, 用户标识模块)卡。 目前 GSM终端和身份 识别模块 ( GSM手机, SIM卡 )都支持 STK功能。
基于 STK技术, 运营商可以为用户提供各种菜单应用, 如移动 QQ, 短信 群发, 移动梦网等。 移动用户通过对应用菜单项的选择, 关键字的输入可以 完成这这些业务的操作, 如个人短信管理、 指定信息浏览等。
STK是一种小型编程语言,也就是一种基于 SIM卡操作系统开发增值业务 的工具服务软件, 其可以理解为是在原 S頂卡被动式的操作系统上衍生出来 的 SIM卡主动交互式的操作系统。 它所提供的机制, 允许 SIM卡中的应用与 支持该应用的 ME ( Mobi le Equipment , 移动终端)进行交互操作, 即支持 SIM 卡与 ME之间进行主动式对话。支持 STK技术的 SIM卡遵循 GSM11. 11、GSM11. 14、 GSM03. 08等一系列规范, 这样可以使 SIM卡允许卡内的 STK应用程序来实现 更多的业务。
图 1中显示了移动终端设备通过 STK技术处理 SIM卡的主动交互命令的 过程:
步骤 S101 : 移动终端设备向 SIM卡发送了一条命令。
步骤 S102: SIM卡对移动终端设备进行应答, 并发送状态字 SW=0x91XX 到移动终端设备。
状态字 SW=0x91XX ( "XX" 表示主动式命令的字节数 )表示为主动式命令 已经准备好了。
步驟 S103: 移动终端设备在接收到 SIM卡发送的状态字 SW=0x91XX后, 移动终端设备知道 SIM卡有主动式命令需要发送, 则向 SIM卡发送 Fetch命 令, 通知 SIM卡随后可以发送主动式命令了。
步骤 S104: SIM卡收到 Fetch命令后, 向移动终端设备发送主动式命令 , 并发送状态字。
步骤 S105: 移动终端设备接收到主动式命令后处理该命令。
根据 STK遵循的规范, 移动终端设备可以识别 SBi卡发送的主动式命令, 并知道具体的处理方式。
步骤 S106: 移动终端设备处理完该命令后使用 Terminal Response命令 向 SIM卡发送处理结果。
步骤 S107: SBi卡接收到处理结果后, 向移动终端设备发送应答状态字。 如果, 应答状态字 SW=Qx9GQ(), 表示此次主动式命令交互过程结束; 如果 应答状态字 SW=0x91XX, 则通知移动终端设备继续获取下一条主动式命令。
GSM11. 14规范中定义的主动式命令如表 1所示, 可以有移动终端设备显 示字符的命令 ( Di splay Text )、 从移动终端设备获得用户输入的命令 ( Get Input ), 从移动终端设备获得用户输入的按键的命令(Get Inkey ), 安装 0 级和 1级菜单命令 ( Setup Menu )、 安装应用子菜单命令 ( Select I tem )等。 根据规范提供的这些基本指令, S頂卡可以通过主动的方式通知移动终端设备 进行显示, 获得用户信息输入, 进行菜单选项的选择等功能, 从而实现更多、 更灵活的功能。
表 1
Figure imgf000007_0001
上表中是 STK主动式命令, SIM卡可以使用这些 STK主动式命令和移动终 端设备进行交互。
除了 STK主动式命令外, OTA ( Over The Air , 空中下载)规范还定义了 —些基本 STK命令以及扩展 STK命令, 这些基本 STK命令以及扩展 ST 命令 并不用于 SIM卡与移动终端设备进行交互,而是对应了一些 SIM卡的常用 API 函数, 这样可以方便开发人员编写一些普通的 STK应用。
但是, 现有的扩展 STK命令(如表 2所示), 没有执行数据库操作的命令, 开发人员也就不能编写具有数据库操作的 STK应用。 基于此, 本发明实施例 提供了一套可以操作数据库的扩展 STK命令 (如表 3所示), 这些扩展的 STK 数据库命令同样不是用于 SIM卡与移动终端设备进行交互, 而是分别对应于 操作数据库的 API 函数。 这样, 开发人员就可以通过扩展的 STK数据库命令 来编写操作、 管理数据库的 STK应用了。
表 2
Figure imgf000008_0002
表 3
Figure imgf000008_0001
当然, 表 3只是一种扩展 STK数据库命令的具体方式, 对于本领域技术 人员还可以采用其它的方式来扩展 STK数据库命令。
表 3中扩展的 STK数据库命令, 对应于不同的数据库 API函数, 并且这 些扩展的 STK命令遵循 0TA规范定义的扩展命令格式, 即 TLV ( Tag Length Value,标签、长度、数值)格式。 TLV格式的扩展命令包括 API— Tag、 API— Length, API—Value三个部分:
扩展的 STK数据库命令的 API— Tag取值为十六进制数 "FF"。
API— Length表示 API-Value的字节数。
API-Value由 API索引号( API— Index )和若干个参数( Parameter )组成;
API— Index取值只要不与 OTA规范已占用的扩展 APISTK命令的 API— Index 索引号相同, 原则上可以任意取值。 本发明实施例采用较佳的方案, 从 0TA 规范已定义的最后一个扩展 API索引号(十六进制数 "36" )顺序往后递增, 即 DB STK API 的索引号从十六进制数 "37" 起始, 顺序往后递增; 不同的 API-Index值对应于不同功能的数据库 API函数,那么在执行该 STK数据库命 令时, 可以才艮据该 STK数据库命令的 API— Index值调用相应的数据库 API函 数;
Parameter可以有 0个或多个, 每个参数可以是常量或变量。
根据 TLV格式, 扩展的 STK命令可以携带参数。 所以, 不同的 STK数据 库命令, 对应于不同的数据库 API 函数, 并且 STK数据库命令中携带的参数 即为所对应的数据库 API函数的参数。这样, STK应用的开发人员就可以通过 扩展的 STK数据库命令编写支持数据库的具体 STK应用了。
比如, 开发人员希望能够为移动终端设备用户提供某地餐馆查询的 STK 应用。 由于餐馆数量非常多, 如果仍然采用以前的文件记录查找方法, 效率 会十分低。 如果采用支持数据库的智能卡, 并且开发人员通过上述的 STK数 据库命令来编写支持数据库的餐馆查询 STK应用, 则移动终端设备用户在使 用支持数据库的餐馆查询功能时, 查找效率会得到很大的提高。 本发明实施例提供了一种智能卡与移动终端设备交互管理数据库的方 法, 如图 2所示, 具体包括如下步驟:
步骤 S201 : 智能卡通过 STK主动式命令与移动终端设备交互, 获得移动 终端设备用户对数据的操作信息。
智能卡通过 STK主动式命令与移动终端设备交互, 获得移动终端设备用 户对数据的操作信息。 智能卡通过主动式的命令方式向移动终端设备发送可 供用户进行选择的菜单, 用户选择菜单后, 移动终端设备将用户的菜单选项 发送给智能卡, 或者将用户输入的信息发送给智能卡, 从而智能卡可以获得 移动终端设备用户对数据的操作信息, 比如保存某个数据、 删除或者修改等 操作。 由于此技术为本领域人员所熟知, 所以此处不再赘述。
步骤 S202:智能卡根据用户对数据的操作信息,确定执行相应的扩展 STK 数据库命令。
智能卡在获得用户对数据的操作信息后, 从而得知用户是要保存某个数 据或者还是要删除、 查询某个数据的操作信息。 在现有技术中, 没有扩展的 STK数据库命令, 只有一些筒单的对文件进行读写的 STK命令, 那么 STK应用 的开发人员则只能调用这些简单的对文件进行读写的 STK命令来执行用户对 数据的操作。 但是本发明实施例提供了扩展的 STK数据库命令, 那么, STK应 用的开发人员就可以调用相应的 STK数据库命令。 比如, 用户的操作信息为 添加一个 "张三" 的姓名记录, 那么可以调用 Add Record的 STK数据库命令 将数据 "张三" 写入到姓名数据库中。 当然, 由于 STK数据库命令本身可以 携带参数, 所以 "张三,, 可以作为参数携带于 Add Record命令中。
步骤 S203:在执行相应的扩展 STK数据库命令时,调用相应的数据库 API 函数, 实现对数据库的操作管理。
在执行相应的扩展 STK数据库命令时, 根据扩展 STK数据库命令携带的 API_Index值调用相应的数据库 API 函数; 根据扩展 STK数据库命令携带的 API_Value的参数部分, 将有关参数传入到相应的数据库 API函数中,从而实 现了对数据库的操作。 也就是说, 可以实现对数据库进行插入、 删除、 修改、 查询数据等操作。
步骤 S2 Q4: 智能卡将执行结果发送给移动终端设备。
在执行相应的扩展 STK数据库命令时, 调用相应的数据库 API 函数, 实 现对数据库的操作管理, 当相应的数据库 API 函数完成对数据库相应的操作 管理后会返回执行结果, 如保存成功、 查询失败等。 智能卡将该执行结果返 回给移动终端设备。
本发明实施例提供了一种与移动终端设备交互管理数据库的智能卡, 如 图 3所示, 包括: 交互模块 301、 STK数据库命令确定模块 302、 STK数据库 命令执行模块 303、 数据库 API模块 304、 存储在存储模块中的数据库 305。
STK数据库命令确定模块 302, 用于通过交互模块 301获得移动终端设备 用户对数据的操作信息, 并根据用户对数据的操作信息, 确定应该执行的扩 展 STK数据库命令。
STK数据库命令执行模块 303, 用于根据 STK数据库命令确定模块 302确 定的扩展 STK数据库命令执行该扩展 STK数据库命令; 在执行该扩展 STK数 据库命令时, 根据该扩展 STK数据库命令调用数据库 API模块 304中相应的 数据库 API函数, 该数据库 API函数完成对数据库 305的操作与管理。 STK数 据库命令执行模块 303还用于在该数据库 API函数完成对数据库 305的操作 与管理后, 获得该数据库 API 函数返回的执行结果, 并将该执行结果通过交 互模块 301发送给移动终端设备。
本发明实施例由于智能卡在获得移动终端设备用户对数据的操作信息 后, 执行扩展的 STK数据库命令, 并在执行扩展的 STK数据库命令时调用数 据库 API 函数, 实现了移动终端设备通过 STK方式操作与管理智能卡上的数 据库功能, 从而支持了移动终端设备用户对大容量数据进行快速维护和查找 等功能。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤 是可以通过程序来指令相关的硬件来完成, 该程序可以存储于一计算机可读 取存储介质中, 如: R0M/RAM、 磁碟、 光盘等。
以上所述仅是本发明的优选实施方式, 应当指出, 对于本技术领域的普 通技术人员来说, 在不脱离本发明原理的前提下, 还可以作出若干改进和润 饰, 这些改进和润饰也应视为本发明的保护范围。

Claims

权利要求 书
1、 一种智能卡与移动终端设备交互管理数据库的方法, 其特征在于, 包括 如下步骤:
通过 STK主动式命令与移动终端设备交互, 获得移动终端设备用户的数据 操作信息;
根据所述数据操作信息, 确定对应的扩展 STK数据库命令;
根据所述扩展 STK数据库命令中携带的数据库 API 函数指示信息, 调用对 应的数据库 API函数在数据库中执行所述数据操作。 -
2、 如权利要求 1所述的方法, 其特征在于, 所述 展 STK数据库命令的格 式根据 0TA规范确定。
3、 如权利要求 1或 2所述的方法, 其特征在于, 所述扩展 STK数据库命令 包括:
对应数据插入操作的插入记录的 STK数据库命令;
对应数据删除操作的删除记录的 STK数据库命令; .
对应数据查询操作的查询记录的 STK数据库命令;
对应数据修改操作的修改记录的 STK数据库命令;
对应选择应用的打开数据库的 STK数据库命令;
对应退出应用的关闭数据库的 STK数据库命令。
4、 如权利要求 1 所述的方法, 其特征在于, 所述扩展 STK数据库命令的 API-Tag取值为十六进制数 "FF"。
5、 如权利要求 2或 4所述的方法, 其特征在于, 所述扩展 STK数据库命令 的 API— Index取值与 0TA规范已有的扩展 STK命令的 API— Index取值不同。
6、 如权利要求 5所述的方法, 其特征在于, 所述扩展 STK数据库命令携带 的数据库 API函数指示信息为扩展 STK数据库命令的 API_Index值。
7、 如权利要求 2 所述的方法, 其特征在于, 所述扩展 STK数据库命令的 API— Value参数部分可以有零个或至少一个参数。
8、 如权利要求 7所述的方法, 其特征在于, 所述根据所述 展 STK数据库 命令中携带的数据库 API函数指示信息, 调用对应的数据库 API函数的方法, 包括:
根据所述扩展 STK数据库命令中携带的数据库 API 函数指示信息, 调用对 应的数据库 API函数, 并将所述扩展 STK数据库命令的参数传入所述对应的数 据库 API函数。
9、 如权利要求 1所述的方法, 其特征在于, 还包括:
在调用对应的数据库 API 函数在数据库中执行所述数据操作后, 获得所述 数据库 API函数返回的执行结果, 并将所述 于结果通过 STK主动式命令反馈 给所述移动终端设备。
10、 一种移动终端设备的智能卡, 包括:
存储模块, 用于存储数据库;
数据库管理模块, 用于根据数据库 API函数管理所述存储模块中的数据库; 其特征在于, 还包括:
交互模块, 用于通过 STK主动式命令与移动终端设备进行交互;
STK数据库命令确定模块,用于通过所述交互模块获得移动终端设备用户的 数据操作信息, 确定对应的的扩展 STK数据库命令;
STK数据库命令执行模块,用于根据所述 STK数据库命令确定模块确定出的 STK数据库命令, 以及所述 STK数据库命令携带的数据库 API函数指示信息,调 用对应的数据库 API函数在数据库中执行所述数据操作。
11、 如权利要求 10所述的智能卡, 其特征在于, 所述 STK数据库命令确定 模块确定的扩展 STK数据库命令格式根据 0TA规范确定; 以及
所述扩展 STK数据库命令携带的数据库 API函数指示信息为扩展 STK数据 库命令的 API— Index值; 并所述扩展 STK数据库命令的 API— Index取值与 0TA 规范已有的扩展 STK命令的 API— Index取值不同; 所述扩展 STK数据库命令的 API— Tag取值为十六进制数 "FF,,。
12、 如权利要求 10所述的智能卡, 其特征在于, 所述 STK数据库命令执行 模块还用于在调用对应的数据库 API 函数在数据库中执行所述数据操作后, 获 得所述数据库 API函数返回的执行结果, 并将所述执行结果通过 STK主动式命 令反馈给所述移动终端设备。
13、 如权利要求 10所述的智能卡, 其特征在于, 所述 STK数据库命令确定 模块确定的 STK数据库命令包括:
对应数据插入操作的插入记录的 STK数据库命令;
对应数据删除操作的删除记录的 STK数据库命令;
对应数据查询操作的查询记录的 STK数据库命令;
对应数据修改操作的修改记录的 STK数据库命令;
对应选择应用的打开数据库的 STK数据库命令;
对应退出应用的关闭数据库的 STK数据库命令。
PCT/CN2009/000041 2007-12-28 2009-01-12 与移动终端交互管理数据库的方法及智能卡 WO2009086791A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP09700529.2A EP2461640A4 (en) 2007-12-28 2009-01-12 METHOD AND INTEGRATED CIRCUIT BOARD FOR MANAGING A DATABASE INTERACTIONALLY WITH MOBILE EQUIPMENT

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2007103046897A CN101227671B (zh) 2007-12-28 2007-12-28 与移动终端交互管理数据库的方法及智能卡
CN200710304689.7 2007-12-28

Publications (1)

Publication Number Publication Date
WO2009086791A1 true WO2009086791A1 (zh) 2009-07-16

Family

ID=39859387

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/000041 WO2009086791A1 (zh) 2007-12-28 2009-01-12 与移动终端交互管理数据库的方法及智能卡

Country Status (3)

Country Link
EP (1) EP2461640A4 (zh)
CN (1) CN101227671B (zh)
WO (1) WO2009086791A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102185962A (zh) * 2011-02-25 2011-09-14 何滨 手机智能卡与读写装置之间的通信方法
KR101198191B1 (ko) 2008-10-23 2012-11-12 후아웨이 디바이스 컴퍼니 리미티드 차세대 메가 sim 카드를 액세스하는 방법 및 장치

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227671B (zh) * 2007-12-28 2010-08-18 北京握奇数据系统有限公司 与移动终端交互管理数据库的方法及智能卡
CN101872356B (zh) * 2010-05-31 2013-08-07 中兴通讯股份有限公司 一种内存数据库处理性能的方法与系统
CN102567768B (zh) * 2010-12-13 2015-03-11 中国移动通信集团贵州有限公司 基于智能卡实现电子词典的方法和装置
JP5472935B2 (ja) * 2011-03-17 2014-04-16 株式会社東芝 携帯可能電子機器及びicカード
CN102333288B (zh) * 2011-05-31 2014-02-19 华为软件技术有限公司 控制终端应用程序运行的方法和终端
CN102609253B (zh) * 2012-01-19 2016-04-20 捷德(中国)信息科技有限公司 一种智能卡的应用实现方法及系统
FR2996397B1 (fr) * 2012-10-02 2014-12-05 Oberthur Technologies Procede d'amelioration de l'interface utilisateur pour les applications sim-toolkit
CN104346348A (zh) * 2013-07-25 2015-02-11 中兴通讯股份有限公司 信息管理方法及装置
CN103595870B (zh) * 2013-11-21 2015-07-29 深圳中科讯联科技有限公司 一种通过射频刷卡控制手机通讯的方法
CN109905245B (zh) * 2019-02-28 2021-08-31 北京华大智宝电子系统有限公司 签名方法及装置
CN110381472A (zh) * 2019-07-02 2019-10-25 深圳市有方科技股份有限公司 基于stk协议的通信方法及终端
JP7366765B2 (ja) * 2020-01-20 2023-10-23 株式会社東芝 Icカード、icカード処理システム、及びicカード処理装置の制御プログラム

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1602100A (zh) * 2004-10-21 2005-03-30 康健 一种基于stk或utk技术的手机电话本备份的方法
CN1643536A (zh) * 2002-03-14 2005-07-20 塞拉维公司 一种管理存储在移动电话可读的智能卡中的信息的方法
CN101014163A (zh) * 2007-02-28 2007-08-08 凤凰微电子(中国)有限公司 在智能卡上实现时间管理的方法
CN101227671A (zh) * 2007-12-28 2008-07-23 北京握奇数据系统有限公司 与移动终端交互管理数据库的方法及智能卡

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7844055B2 (en) * 2001-06-26 2010-11-30 Link Us All, Llc Detecting and transporting dynamic presence information over a wireless and wireline communications network
EP1489862A1 (en) * 2003-06-20 2004-12-22 Axalto S.A. Database synchronization
US20050277432A1 (en) * 2003-11-26 2005-12-15 Viana Rodrigo B D Dynamic display generation for mobile communication devices

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1643536A (zh) * 2002-03-14 2005-07-20 塞拉维公司 一种管理存储在移动电话可读的智能卡中的信息的方法
CN1602100A (zh) * 2004-10-21 2005-03-30 康健 一种基于stk或utk技术的手机电话本备份的方法
CN101014163A (zh) * 2007-02-28 2007-08-08 凤凰微电子(中国)有限公司 在智能卡上实现时间管理的方法
CN101227671A (zh) * 2007-12-28 2008-07-23 北京握奇数据系统有限公司 与移动终端交互管理数据库的方法及智能卡

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2461640A4 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101198191B1 (ko) 2008-10-23 2012-11-12 후아웨이 디바이스 컴퍼니 리미티드 차세대 메가 sim 카드를 액세스하는 방법 및 장치
CN102185962A (zh) * 2011-02-25 2011-09-14 何滨 手机智能卡与读写装置之间的通信方法

Also Published As

Publication number Publication date
EP2461640A1 (en) 2012-06-06
CN101227671B (zh) 2010-08-18
CN101227671A (zh) 2008-07-23
EP2461640A4 (en) 2014-08-20

Similar Documents

Publication Publication Date Title
WO2009086791A1 (zh) 与移动终端交互管理数据库的方法及智能卡
KR100616157B1 (ko) 애플리케이션 연동 방법 및 그 시스템
CN102783121B (zh) 通信设备
KR101517659B1 (ko) 제3자 애플리케이션으로의 검색 확장성
US9619304B2 (en) Automatic connections between application components
US8596534B2 (en) Interface system between a terminal and a smart card, method for same, and smart card applied to same
US20140086105A1 (en) Device and method for providing drawing screen sharing service
CN110472438B (zh) 基于区块链的交易数据处理、交易查询方法、装置及设备
TW200421776A (en) Method, system, and program for managing devices in a network
CN103049515A (zh) 一种应用程序分类的方法、装置和设备
CN107168905A (zh) 一种文件显示方法、装置、存储介质及移动终端
US9794400B2 (en) Mobile terminal and ringtone playing method thereof
CN111859470A (zh) 一种业务数据上链方法及装置
CN101692746B (zh) 一种对电话簿进行操作的方法及装置
CN111461623B (zh) 基于区块链的仓单创建方法、装置及设备
CN105677148A (zh) 一种终端应用的查找方法及装置
US10599444B2 (en) Extensible input stack for processing input device data
US20120117024A1 (en) Method for updating media database in portable terminal
CN114675982A (zh) 一种业务集成系统的数据获取通用方法及系统
KR101899970B1 (ko) 모바일 클라우드 환경에 적용되는 모바일 단말과 클라우드 서버 및 이를 이용한 모바일 클라우드 컴퓨팅 방법
CN111552460A (zh) 功能配置方法、服务器、终端设备及存储介质
CN101789991A (zh) 获取变更数据信息的方法、装置及移动终端
CN116483477A (zh) 一种api调用方法及装置
CN116339694A (zh) 低代码平台组件的扩展方法、装置、电子设备及存储介质
WO2019139738A1 (en) Extensible input stack for processing input device data

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 09700529

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2009700529

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE