WO2020011026A1 - Terminal application control method, apparatus, and system - Google Patents

Terminal application control method, apparatus, and system Download PDF

Info

Publication number
WO2020011026A1
WO2020011026A1 PCT/CN2019/093525 CN2019093525W WO2020011026A1 WO 2020011026 A1 WO2020011026 A1 WO 2020011026A1 CN 2019093525 W CN2019093525 W CN 2019093525W WO 2020011026 A1 WO2020011026 A1 WO 2020011026A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
terminal
control
terminal application
control information
Prior art date
Application number
PCT/CN2019/093525
Other languages
French (fr)
Chinese (zh)
Inventor
吴传喜
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2020011026A1 publication Critical patent/WO2020011026A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • 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/20Transfer of user or subscriber data
    • 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/20Transfer of user or subscriber data
    • H04W8/205Transfer to or from user equipment or user record carrier

Definitions

  • the present invention relates to the field of terminals, and in particular, to a method, device, and system for controlling terminal applications.
  • the Internet of Things is known as the third wave of the world's information industry after computers and the Internet. It represents the development direction of the next generation of information technology.
  • the United States, the European Union, China and other countries have issued plans for the development of the Internet of Things to carry out related technology and industry forward-looking layout. .
  • General IoT terminals have the following characteristics: 1) Low mobility: IoT terminals do not move, do not move often, or move within a designated area. 2) Time-controlled access: The Internet of Things terminal sends and receives data within a specified time. 3) Time tolerance: IoT terminals only need to delay data transmission.
  • IoT terminals need packet data transmission.
  • Online small data transmission Always online small data transmission.
  • Offline small amount of data transmission The Internet of Things terminal needs only a small amount of offline data transmission.
  • Only initiated by the Internet of Things use terminal initiated communication.
  • Few mobile receptions the network occasionally initiates a push.
  • Offline instruction The MTC server senses that the terminal is offline.
  • Congestion indication The IoT server senses that the terminal is blocked.
  • Priority alarm The network needs to ensure that PAM messages are delivered with priority.
  • Particularly low power consumption Low power consumption guarantee for the terminal.
  • Secure connection The IoT terminal requires it to establish a secure connection with the IoT server.
  • MTC Machine Type Communication
  • UICC Universal Integrated Circuit Card
  • UICC can include a variety of logic applications, such as Universal User Identity Module (USIM, Universal Subscriber Identity Module), IP Multimedia Service Identity Module (ISIM, IP Multimedia Service Identity Module), custodian user identity module (also translated as custodian subscription identity Modules, HPSIM, Hosting, Party (Subscription, Identity, Module) and other applications.
  • USIM is used to store user identity information, personal data, and security information in a universal mobile communication system network. At the same time, it uses the necessary functions and data to identify and authorize users when they access mobile network services, so that the mobile network can be represented and identified. User application requirements.
  • the USIM of 3G and LTE is no longer built on a single telecommunication application platform, but has become one of the various resident applications on the UICC.
  • the UICC becomes It provides a universal intelligent platform, which provides unified underlying support for its upper-layer applications, and realizes the separation of platform and applications.
  • the UICC is always in a completely passive position.
  • the terminal sends a command to the UICC, and the UICC executes the command and returns a response to the terminal.
  • the terminal and the UICC use a command APDU (Command APDU, referred to as C-APDU for short).
  • C-APDU Command APDU
  • P-APDU Response APDU
  • the terminal is always dominant, and later in order to strengthen the card
  • the need to actively initiate a command introduced the user identification application tool STK (SIM Tool Kit and the universal user identification application tool USAT (USIM Application Toolkit) in the interface between the terminal and the UICC, but STK and USAT also only provide very simple and limited, according to 3GPP 3GPP TS 31.111 version 14.5.0 (Note: 2017.12 released),
  • Proactive UICC commands (active commands) supported by the UICC include only PROVIDE LOCAL INFORMATION, DISPLAY, TEXT, REFRESH, SEND SHORT, MESSAGE, SET, UPCCALL, etc.
  • DISPLAY TEXT requires the terminal to display a piece of text on the screen. These commands can only require the terminal Do some simple functions.
  • the demand for UICC and terminal interaction is increasing, and many terminal applications require UICC applications as active initiators and perform more complex operations.
  • the problem that the card or card application of the terminal cannot effectively actively control the terminal or terminal application is solved.
  • a method for controlling a terminal application includes: a card application actively initiates a control command for controlling a terminal application; and the card application receives a response command from the terminal application in response to the control command.
  • the response command carries a result of corresponding processing performed by the terminal application according to the control command.
  • a method for controlling a terminal application includes: a terminal main control device receiving a control command actively initiated by a card application; and the terminal main control device determining the card application desired control according to the control command A terminal application and control information for actively controlling the terminal application; and the terminal master control device transmitting the control information to the terminal application for the terminal application to perform corresponding processing according to the control information.
  • a method for controlling a terminal application includes: a terminal application obtaining control information from a card application for controlling the terminal application; and the terminal application determining the control according to the control information Whether the information meets the execution requirements; and the terminal application performs corresponding processing according to the determination result, and sends a response command carrying the processing result to the card application.
  • a card application device includes: a control initiating module for actively initiating a control command for controlling a terminal application; and a response receiving module for receiving the terminal application in response to the control command Response command, the response command carries a result of corresponding processing performed by the terminal application according to the control command.
  • a terminal main control device includes: a control command receiving module for receiving a control command actively initiated by a card application; a control command processing module for determining the module according to the control command; A terminal application that the card application desires to control and control information for actively controlling the terminal application; and a control information transfer module for transmitting the control information to the terminal application for the terminal application to control according to the control Information is processed accordingly.
  • a terminal application apparatus includes: a control information acquisition module for acquiring control information from a card application for controlling the terminal application; a control information determination module for the terminal application Determining whether the control information meets the execution requirements according to the control information; and a control information execution module for the terminal application to perform corresponding processing according to the determination result, and send a response command carrying the processing result to the card application .
  • a control system for a terminal application includes: a card application device for actively initiating a control command for controlling a terminal application; and a terminal master control device for determining a location according to the control command.
  • the technical solution provided by the embodiment of the present invention has the following beneficial effects:
  • the embodiment of the present invention implements active control of a terminal or terminal application by a card or a card application, and improves the control effect of a card application in a machine-to-machine environment on a terminal application.
  • FIG. 1 is a schematic flowchart of a terminal application control method according to a first embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a card application device according to a second embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of a terminal application control method according to a third embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a terminal master control device according to a fourth embodiment of the present invention.
  • FIG. 5 is a schematic flowchart of a terminal application control method according to a fifth embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a terminal application device according to a sixth embodiment of the present invention.
  • FIG. 7 is a schematic diagram of interaction between a card application and a terminal application according to a seventh embodiment of the present invention.
  • FIG. 8 is a schematic diagram of Command APDU rules provided by an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of a Response APDU rule provided by an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of a control command definition according to an embodiment of the present invention.
  • FIG. 11 is a schematic diagram of a definition of a response command according to an embodiment of the present invention.
  • FIG. 12 is a schematic diagram of a control command rule according to an embodiment of the present invention.
  • FIG. 1 is a schematic flowchart of a terminal application control method according to a first embodiment of the present invention. As shown in FIG. 1, the method may include steps S101 and S102.
  • step S101 the card application actively initiates a control command for controlling a terminal application.
  • the control command includes a terminal application identifier and control information for actively controlling the terminal application, and the control information includes a card application identifier, data information, and an operation type.
  • the operation type may indicate obtaining a status of the terminal application, such as a running status of the terminal application itself, a connection status of the terminal application and a server, and the like.
  • the operation type may also indicate operations that the terminal application needs to perform, for example, the terminal application transmits data to the card, and the terminal application receives data transmitted by the card.
  • step S102 the card application receives a response command from the terminal application in response to the control command, and the response command carries a result of corresponding processing performed by the terminal application according to the control command.
  • the response command received by the card application is a response command that executes the control command successfully or fails.
  • the response command received by the card application may carry status information obtained after the control command is successfully executed.
  • the response command received by the card application may carry an execution result obtained after the control command is successfully executed.
  • an embodiment of the present invention may also provide a storage medium storing a control program of a terminal application, where the control program of the terminal application is executed by a processor to implement steps of the control method of the terminal application of the first embodiment .
  • the storage medium may include a ROM / RAM, a magnetic disk, an optical disk, and a U disk.
  • FIG. 2 is a schematic structural diagram of a card application device provided by a second embodiment of the present invention.
  • the card application device may include a control initiating module 21 and a response receiving module 22.
  • the control initiating module 21 is configured to actively initiate a control command for controlling a terminal application.
  • the control command includes a terminal application identifier and control information for actively controlling the terminal application, and the control information includes a card application identifier, data information, and an operation type.
  • the control initiating module 21 implements step S101 in FIG. 1, and the operation type may indicate acquiring a status of the terminal application and / or indicating an operation that the terminal application needs to perform.
  • the response receiving module 22 is configured to receive a response command from the terminal application in response to the control command, and the response command carries a result of corresponding processing performed by the terminal application according to the control command.
  • the response receiving module 22 implements step S102 in FIG. 1.
  • the response command received by the card application is a response command that executes the control command successfully or fails.
  • An embodiment of the present invention may further provide a card application device.
  • the device may include: a first processor and a first memory coupled to the first processor;
  • the control program of the terminal application running on the first processor is described.
  • the steps of the control method of the terminal application of the first embodiment are implemented.
  • FIG. 3 is a schematic flowchart of a terminal application control method according to a third embodiment of the present invention. As shown in FIG. 3, the method may include steps S301, S302, and S303.
  • step S301 the terminal main control device receives a control command actively initiated by the card application.
  • step S302 the terminal master control device determines, according to the control command, a terminal application that the card application desires to control and control information for actively controlling the terminal application.
  • the terminal master control device obtains a terminal application identifier and the control information from the control command by analyzing the control command, and determines the terminal application that the card application desires to control according to the terminal application identifier.
  • the control information includes a card application identifier, data information, and operation type.
  • step S303 the terminal master control device transmits the control information to the terminal application for the terminal application to perform corresponding processing according to the control information.
  • the terminal master control device is set in the terminal and is independent of the terminal application and the card application.
  • the terminal main control device is mainly used to find the terminal application according to the terminal application identifier obtained through analysis, and transmit the parsed control information to the terminal application.
  • an embodiment of the present invention may also provide a storage medium storing a control program of a terminal application, where the control program of the terminal application is executed by a processor to implement the steps of the control method of the terminal application of the third embodiment.
  • the storage medium may include a ROM / RAM, a magnetic disk, an optical disk, and a U disk.
  • FIG. 4 is a schematic structural diagram of a terminal master control device according to a fourth embodiment of the present invention.
  • the terminal main control device may include a control command receiving module 41, a control command processing module 42, and a control information transmission module 43.
  • the control command receiving module 41 is configured to receive a control command actively initiated by a card application.
  • the control command receiving module 41 implements step S301 in FIG. 3.
  • the control command processing module 42 is configured to determine a terminal application that the card application desires to control and control information for actively controlling the terminal application according to the control command.
  • the control command processing module 42 implements step S302 in FIG. 3.
  • the control command processing module 42 obtains a terminal application identifier and the control information from the control command by analyzing the control command, and determines the terminal application that the card application desires to control based on the terminal application identifier.
  • the control information includes a card application identifier, data information, and operation type.
  • the control information transmission module 43 is configured to transmit the control information to the terminal application for the terminal application to perform corresponding processing according to the control information.
  • the control information transmission module 43 implements step S303 in FIG. 3.
  • An embodiment of the present invention may also provide a terminal master control device.
  • the device may include: a second processor and a second memory coupled to the second processor; and the second memory stores a A control program for a terminal application running on the second processor, and when the control program for the terminal application is executed by the second processor, the steps of the control method for the terminal application of the third embodiment are implemented.
  • FIG. 5 is a schematic flowchart of a terminal application control method according to a fifth embodiment of the present invention. As shown in FIG. 5, the method may include steps S501, S502, and S503.
  • step S501 the terminal application acquires control information from a card application for controlling the terminal application.
  • the terminal application obtains the control information from a terminal master control device, where the control information is obtained and sent from a control command actively controlled by the card application for controlling the terminal application.
  • the control information includes a card application identification, data information, and operation type.
  • the operation type may indicate acquiring a status of the terminal application and / or indicating an operation that the terminal application needs to perform.
  • step S502 the terminal application determines whether the control information meets execution requirements according to the control information.
  • the terminal application determines that the control information meets execution requirements.
  • the preset execution rule includes performing operations corresponding to part or all of the operation types sent by the preset card application.
  • the preset execution rule is to perform all operations sent by the USIM application, and the terminal application determines whether the card application that sends control information is a USIM application according to the card application identifier, and if so, indicates whether the control information meets execution requirements.
  • step S503 the terminal application performs corresponding processing according to the determination result, and sends a response command carrying the processing result to the card application.
  • the terminal application executes an operation corresponding to the operation type according to a determination result that the control information meets an execution requirement.
  • the operation type indicates acquiring the status of the terminal application
  • the operation is performed to acquire status information.
  • the operation type indicates that the terminal application needs to perform an operation
  • the operation is performed to obtain an operation result.
  • the terminal application generates a response command that successfully executes the operation type, and sends the response command to the card application.
  • the terminal application may put the status information into the response command.
  • the terminal application may put the operation result into the response command.
  • the terminal application generates a response command that fails to execute the operation type, and sends the response command to a card application.
  • the embodiment of the present invention may also provide a storage medium storing a control program of a terminal application, where the control program of the terminal application is executed by a processor to implement steps of the control method of the terminal application of the fifth embodiment .
  • the storage medium may include a ROM / RAM, a magnetic disk, an optical disk, and a U disk.
  • FIG. 6 is a schematic structural diagram of a terminal application device according to a sixth embodiment of the present invention.
  • the terminal application device may include a control information acquisition module 61, a control information determination module 62, and a control information execution module 63.
  • the control information acquisition module 61 is configured to acquire control information from a card application for controlling the terminal application.
  • the control information acquisition module 61 implements step S503 in FIG. 5.
  • the terminal control information acquisition module 61 acquires the control information from a terminal master control device.
  • the control information is acquired and sent by the terminal main control device from a control command actively controlled by the card application for controlling the terminal application.
  • the control information includes a card application identification, data information, and operation type.
  • the operation type may indicate acquiring a status of the terminal application and / or indicating an operation that the terminal application needs to perform.
  • the control information determining module 62 is configured for the terminal application to determine whether the control information meets execution requirements according to the control information.
  • the control information determination module 62 implements step S502 in FIG. 5.
  • the control information determining module 62 determines that the control information meets the execution requirements when the operation type sent by the card application corresponding to the card application identifier conforms to a preset execution rule.
  • the preset execution rule includes performing operations corresponding to part or all of the operation types sent by the preset card application. For example, if the preset execution rule is to perform all operations sent by the USIM application, the control information execution module 63 determines whether the card application that sends control information is a USIM application according to the card application identifier. If so, it indicates whether the control information meets the requirements. Implementation requirements.
  • the control information execution module 63 is configured for the terminal application to perform corresponding processing according to the determination result, and send a response command carrying the processing result to the card application.
  • the control information execution module 63 implements step S503 in FIG. 5.
  • the control information execution module 63 executes an operation corresponding to the operation type according to a determination result that the control information meets an execution requirement, and generates a response command that successfully executes the operation type, and sends the response command to the card application.
  • the control information execution module 63 does not perform the operation corresponding to the operation type according to the determination result that the control information does not meet the execution requirements, and generates a response command that fails to execute the operation type, and sends the response command to the card application.
  • An embodiment of the present invention may also provide a terminal application device.
  • the device may include: a third processor, and a third memory coupled to the third processor; A control program for a terminal application running on the third processor, and when the control program for the terminal application is executed by the third processor, the steps of the control method for the terminal application of the fifth embodiment are implemented.
  • the structure of the control command includes a control command definition field, an operation type definition field, a card application and a terminal application identification field. Further, the control command further includes a length field, a text attribute field, and a terminal identification field. Each of the above fields conforms to the definition of C-APDU in 3GPP.
  • the response command includes an operation type definition field and a response result field. Further, the response command further includes a terminal identification field and a terminal data field. Each of the above fields conforms to the definition of R-APDU in 3GPP.
  • the above card applications include, but are not limited to, USIM, ISIM, HPSIM.
  • FIG. 7 is a schematic diagram of interaction between a card application and a terminal application according to a seventh embodiment of the present invention. As shown in Figure 7, the interaction process is as follows.
  • step 701 the card (for example, a UICC card) or a card application (for example, a UICC card application) sends a control command to the terminal processing control module (realizing the function of the terminal main control device).
  • the card for example, a UICC card
  • a card application for example, a UICC card application
  • step 702 the terminal processing control module parses the control command, and obtains the card application identifier, terminal application identifier, data information, operation type, etc. from the command; the terminal application processing module finds the corresponding terminal application according to the terminal application identifier.
  • step 703 the terminal processing control module transmits the card application identification, the data information, operation type, and the like to the terminal application.
  • step 704 the terminal application determines whether to comply with the rule of the operation type sent by the card application corresponding to the card application identifier according to a preset rule (or a preset execution rule), and if so, execute steps 705a and 706a. , Otherwise, perform steps 705b and 706b.
  • the rule may be that an application only executes the operation sent by the USIM application. If the terminal application recognizes that the card application identifier represents a USIM application, the type of operation performed is performed. If the card application identifier is an HPSIM application, then Not executed.
  • the rule may be that a certain terminal application only executes operations A and B sent by the USIM application. If the operation type is sent by the HPSIM application, it is not executed. If the USIM application is used, the operation type is identified as A or B Execute, if it is other operation type, do not execute.
  • step 705a and step 706a if the terminal application executes the operation type sent by the card application corresponding to the card application identifier, send a response command one to the card.
  • steps 705b and 706b the terminal application does not execute the operation type sent by the card application corresponding to the card application identifier, and returns a corresponding response command two.
  • the above operation type can be one of the following states of the terminal application, including, but not limited to, obtaining the running status of the terminal application itself, obtaining the PIN1 code verification status of the terminal application user, obtaining the PIN2 code verification status of the terminal application user, obtaining terminal application and entity
  • the link status of the terminal obtain the time value specified by the terminal application receiving data, obtain the terminal application time tolerance value, obtain the online and offline status of the terminal application and server link, obtain the address and number of the terminal.
  • the above operation type can also be one of the following operations that need to be performed by the terminal application, including but not limited to the terminal application periodically sending related information and events to the card, the terminal application performing a user verification PIN1 code verification operation, and the terminal application performing a user verification PIN2 code
  • the verification operation the terminal application transmits data to the card
  • the terminal application receives the data transmitted by the card
  • the terminal application performs secure communication links with other entities
  • the terminal application periodically sends related information and events to the card.
  • control commands shall comply with the definition of the command APDU in the 3GPP (ETSI) standard, as shown in Figures 8 and 12 in detail.
  • the response command of the above control command shall comply with the definition of Response APDU (Response APDU, P-APDU for short) in the 3GPP (ETSI) standard, as shown in FIG. 9.
  • the control command is in accordance with the following definitions, as shown in FIG. 10.
  • the response command of the control command conforms to the following definitions, as shown in FIG. 11.
  • the control command is defined in the Proactive UICC command tag.
  • the card application identifier and terminal application identifier are defined in the APP identifier.
  • the card applications include and are not limited to USIM, ISIM, HPSIM.
  • the embodiments of the present invention provide a method, a device, and a system for controlling a terminal application.
  • the UICC card application sends a control command to the terminal processing control module.
  • the terminal processing control module analyzes the control command and obtains the card application identifier, terminal application identifier, data information, operation type, etc. from the command; terminal application
  • the processing module finds the corresponding terminal application according to the terminal application identifier, and transmits the card-side application identifier, the data information, and the operation type to the terminal application.
  • the terminal application determines whether to comply with the rules for performing the operation type sent by the card application corresponding to the card application identifier according to a preset rule, and if it does, it executes, otherwise, it does not execute. If the terminal application executes the operation type sent by the card application corresponding to the card application identifier, it sends a response command one to the card; otherwise, it returns a corresponding command two.
  • the active control of the terminal application in the terminal by the UICC is realized, and the control effect of the terminal application by the UICC in the M2M environment is improved.
  • An embodiment of the present invention provides a control system for a terminal application.
  • the system may include: a card application device for actively initiating a control command for controlling a terminal application; and a terminal main control device for determining according to the control command.
  • the working steps of the system include: first, the terminal main control device receives a control command actively initiated by a card application device, obtains a terminal application identifier and the control information from the control command, and determines according to the terminal application identifier
  • the terminal application that the card application desires to control transmits the control information to the terminal application, where the control information includes a card application identification, data information, and operation type.
  • the terminal application device determines that the control information meets execution requirements, executes the operation corresponding to the operation type, and carries the operation result.
  • a response command is sent to the card application.
  • the embodiments of the present invention mainly solve the problem that current smart cards cannot effectively actively control terminal applications.
  • applications can be summarized as follows: 1. Obtaining the status of applications, including and Not limited to the following: a. The operating status of the application itself; b. The status of the application (user verification), such as the verification status of the PIN1 and PIN2 codes; c. The link status with an entity; d. The time value specified by the received data; e. Time tolerance value; f. Online and offline status of a server; g. Obtaining the address and number of the terminal; h. Sending relevant information and events to the card regularly. 2. Required operations, including but not limited to the following: a.
  • the USIM needs to save some related information data (see 3GPP TS 24.334 and 3GPP TS 32.277). These data can be encapsulated by the terminal (UE) using ENVELOPE )
  • ENVELOPE ENVELOPE
  • the command is transmitted to the USIM, and the verification status of the user (application) needs to be checked before transmission.
  • the USIM can initiate a control command to actively acquire the status of the terminal application.
  • the USIM sends a control command to the terminal master control device, and the terminal master control device analyzes the control command, obtains the card application ID, the terminal application ID, data information, and the type of operation used to check the status of the terminal application from the command; the terminal application
  • the processing module finds the corresponding terminal application according to the terminal application identifier, and transmits the card application identifier and data information, and the operation type used to check the status of the terminal application to the terminal application.
  • the terminal application judges whether to comply with the rules of the operation type for checking the status of the terminal application sent by the USIM corresponding to the card application identifier according to the preset rule, and if it is, execute it; otherwise, do not execute it. If the terminal application performs an operation type for checking the status of the terminal application, it sends a response command one to the USIM, otherwise it returns a response command two, thereby realizing the active control of the terminal application in the terminal by the USIM.

Abstract

Disclosed in the embodiments of the present invention are a terminal application control method, an apparatus and a system. The method comprises: a card application actively initiating a control command for controlling a terminal application; and the card application receiving a response command that the terminal application responds to the control command, the response command carrying a result of corresponding processing performed by the terminal application according to the control command.

Description

终端应用的控制方法、装置及系统Control method, device and system for terminal application
相关申请的交叉引用Cross-reference to related applications
本申请要求享有2018年7月12日提交的名称为“一种终端应用的控制方法、装置及系统”的中国专利申请CN 201810765162.2的优先权,其全部内容通过引用并入本文。This application claims priority from Chinese patent application CN201810765162.2 entitled "A Control Method, Device and System of Terminal Application" filed on July 12, 2018, the entire contents of which are incorporated herein by reference.
技术领域Technical field
本发明涉及终端领域,特别涉及一种终端应用的控制方法、装置及系统。The present invention relates to the field of terminals, and in particular, to a method, device, and system for controlling terminal applications.
背景技术Background technique
物联网被称为继计算机、互联网之后,世界信息产业的第三次浪潮,代表了下一代信息技术发展方向,美国、欧盟、中国等国纷纷出台物联网发展规划,进行相关技术和产业前瞻布局。随着物联网技术的普及,物联网终端的应用也越来越深入到人们的生活中。一般物联网终端具有下列特点:1)低移动性:物联网终端不移动,不经常移动或者是在指定的区域内移动。2)时间控制接入:物联网终端在规定时间内发送接收数据。3)时间容忍度:物联网终端仅需要延迟数据传输。4)使用分组交换:物联网终端需要分组数据传输。5)在线少量数据传输:永远在线少量数据传输。6)离线少量数据传输:物联网终端只需要离线少量数据传输。7)只有物联网发起:使用终端发起的通信。8)很少有移动接收:网络偶尔发起业务(Push)。9)离线指示:物联网服务器(MTC server)感知终端离线。10)拥塞指示:物联网服务器感知终端被屏蔽。11)优先告警:网络需要保证PAM消息优先被传递。12)特别低的功耗:终端低功耗保证。13)安全连接:物联网终端要求它与物联网服务器建立安全连接。14)特定位置触发器:对已知位置物联网终端进行触发的机器型通信(MTC,Machine Type Communication)应用。同时,在多数情况下,物联网终端业务的开展又离不开通用集成电路卡(UICC,Universal Integrated Circuit Card)。众所周知,通用集成电路卡在第三代合作伙伴计划(3GPP,3rd Generation Partnership Project)3G、长期演进(LTE,Long Term Evolution)终端中有着重要的作用。UICC可以包括多种逻辑应用,例如通用用户标识模块(USIM,Universal Subscriber Identity Module)、IP多媒体业务标识模块(ISIM,IP Multimedia Service Identity Module)、托管方用户标识模块(又译为托管方订阅标识模块,HPSIM,Hosting Party Subscription Identity Module) 以及其他应用等等。USIM在通用移动通信系统网络中用于存储用户身份信息、个人数据和安全信息等,同时利用必要的功能和数据,在用户访问移动网络服务时进行用户识别和授权,实现移动网络能够表示和识别用户应用的要求。与2G时代的SIM(用户标识模块,Subscriber Identity Module)卡相比较,3G、LTE的USIM不再建立在单一的电信应用平台上,而是成为UICC上多种驻留的应用之一,UICC成为了通用智能平台,为其上层应用提供了统一的底层支撑,实现了平台与应用的分离。The Internet of Things is known as the third wave of the world's information industry after computers and the Internet. It represents the development direction of the next generation of information technology. The United States, the European Union, China and other countries have issued plans for the development of the Internet of Things to carry out related technology and industry forward-looking layout. . With the popularity of the Internet of Things technology, the application of Internet of Things terminals has become more and more deeply in people's lives. General IoT terminals have the following characteristics: 1) Low mobility: IoT terminals do not move, do not move often, or move within a designated area. 2) Time-controlled access: The Internet of Things terminal sends and receives data within a specified time. 3) Time tolerance: IoT terminals only need to delay data transmission. 4) Use packet switching: IoT terminals need packet data transmission. 5) Online small data transmission: Always online small data transmission. 6) Offline small amount of data transmission: The Internet of Things terminal needs only a small amount of offline data transmission. 7) Only initiated by the Internet of Things: use terminal initiated communication. 8) Few mobile receptions: the network occasionally initiates a push. 9) Offline instruction: The MTC server senses that the terminal is offline. 10) Congestion indication: The IoT server senses that the terminal is blocked. 11) Priority alarm: The network needs to ensure that PAM messages are delivered with priority. 12) Particularly low power consumption: Low power consumption guarantee for the terminal. 13) Secure connection: The IoT terminal requires it to establish a secure connection with the IoT server. 14) Specific location trigger: A machine type communication (MTC, Machine Type Communication) application that triggers an Internet of Things terminal with a known location. At the same time, in most cases, the development of the Internet of Things terminal business is inseparable from the Universal Integrated Circuit Card (UICC, Universal Integrated Circuit Card). As is known to all, universal integrated circuit cards play an important role in 3G, 3rd Generation, and Partnership Project (3GPP) 3G and Long Term Evolution (LTE) terminals. UICC can include a variety of logic applications, such as Universal User Identity Module (USIM, Universal Subscriber Identity Module), IP Multimedia Service Identity Module (ISIM, IP Multimedia Service Identity Module), custodian user identity module (also translated as custodian subscription identity Modules, HPSIM, Hosting, Party (Subscription, Identity, Module) and other applications. USIM is used to store user identity information, personal data, and security information in a universal mobile communication system network. At the same time, it uses the necessary functions and data to identify and authorize users when they access mobile network services, so that the mobile network can be represented and identified. User application requirements. Compared with the SIM (Subscriber Identity Module) card in the 2G era, the USIM of 3G and LTE is no longer built on a single telecommunication application platform, but has become one of the various resident applications on the UICC. The UICC becomes It provides a universal intelligent platform, which provides unified underlying support for its upper-layer applications, and realizes the separation of platform and applications.
在UICC与终端间交互的发展过程中,UICC始终处于完全被动的地位,终端发送命令到UICC,UICC执行命令后返回响应到终端,终端和UICC间以命令APDU(Command APDU,简称为C-APDU,其中APDU为应用协议)/响应APDU(Response APDU,简称为P-APDU)成对的方式进行交互,并且都是终端发起命令UICC响应的方式,终端始终是占据主导地位的,后来为了加强卡主动发起命令的需求,在终端和UICC的接口中引入用户识别应用工具STK(SIM Tool Kit以及通用用户识别应用工具USAT(USIM Application Toolkit),但是STK、USAT也仅仅提供非常简单、有限的,根据3GPP 3GPP TS 31.111 14.5.0版本(注解:2017.12发布),UICC支持的Proactive UICC命令(主动式命令)仅仅包括诸如PROVIDE LOCAL INFORMATION、DISPLAY TEXT、REFRESH、SEND SHORT MESSAGE、SET UP CALL等等。比如DISPLAY TEXT要求终端在屏幕上显示一段文本,这些命令只能要求终端做一些简单的功能。随着物联网的发展以及UICC业务本身的发展,UICC与终端交互的需求越来越多,很多终端应用需要UICC应用作为主动发起者并且执行更为复杂的操作。During the development of the interaction between the UICC and the terminal, the UICC is always in a completely passive position. The terminal sends a command to the UICC, and the UICC executes the command and returns a response to the terminal. The terminal and the UICC use a command APDU (Command APDU, referred to as C-APDU for short). , Where APDU is the application protocol) / Response APDU (P-APDU for short) to interact in pairs, and both are methods in which the terminal initiates a command UICC response. The terminal is always dominant, and later in order to strengthen the card The need to actively initiate a command introduced the user identification application tool STK (SIM Tool Kit and the universal user identification application tool USAT (USIM Application Toolkit) in the interface between the terminal and the UICC, but STK and USAT also only provide very simple and limited, according to 3GPP 3GPP TS 31.111 version 14.5.0 (Note: 2017.12 released), Proactive UICC commands (active commands) supported by the UICC include only PROVIDE LOCAL INFORMATION, DISPLAY, TEXT, REFRESH, SEND SHORT, MESSAGE, SET, UPCCALL, etc. For example, DISPLAY TEXT requires the terminal to display a piece of text on the screen. These commands can only require the terminal Do some simple functions. With the development of the Internet of Things and the development of the UICC business itself, the demand for UICC and terminal interaction is increasing, and many terminal applications require UICC applications as active initiators and perform more complex operations.
发明内容Summary of the invention
根据本发明实施例提供的技术方案,解决终端的卡或卡应用无法有效地主动控制终端或终端应用的问题。According to the technical solution provided by the embodiment of the present invention, the problem that the card or card application of the terminal cannot effectively actively control the terminal or terminal application is solved.
根据本发明一个实施例提供的一种终端应用的控制方法包括:卡应用主动发起用于控制终端应用的控制命令;以及所述卡应用接收所述终端应用响应所述控制命令的响应命令,所述响应命令携带所述终端应用根据所述控制命令进行对应处理的结果。A method for controlling a terminal application according to an embodiment of the present invention includes: a card application actively initiates a control command for controlling a terminal application; and the card application receives a response command from the terminal application in response to the control command. The response command carries a result of corresponding processing performed by the terminal application according to the control command.
根据本发明另一实施例提供的一种终端应用的控制方法包括:终端主控装置接收卡应用主动发起的控制命令;所述终端主控装置根据所述控制命令,确定所述卡应用期望控制的终端应用及用于主动控制所述终端应用的控制信息;以及所述终端主控装置将所述控制信息传送至所述终端应用,以供所述终端应用根据所述控制信息进行对应处理。A method for controlling a terminal application according to another embodiment of the present invention includes: a terminal main control device receiving a control command actively initiated by a card application; and the terminal main control device determining the card application desired control according to the control command A terminal application and control information for actively controlling the terminal application; and the terminal master control device transmitting the control information to the terminal application for the terminal application to perform corresponding processing according to the control information.
根据本发明另一实施例提供的一种终端应用的控制方法包括:终端应用获取来自卡应用的用于控制所述终端应用的控制信息;所述终端应用根据所述控制信息,确定所述控制信息是否符合执行要求;以及所述终端应用根据确定结果,进行对应处理,并将携带处理结果的响应命令发送至所述卡应用。A method for controlling a terminal application according to another embodiment of the present invention includes: a terminal application obtaining control information from a card application for controlling the terminal application; and the terminal application determining the control according to the control information Whether the information meets the execution requirements; and the terminal application performs corresponding processing according to the determination result, and sends a response command carrying the processing result to the card application.
根据本发明另一实施例提供的一种卡应用装置包括:控制发起模块,用于主动发起用于控制终端应用的控制命令;以及响应接收模块,用于接收所述终端应用响应所述控制命令的响应命令,所述响应命令携带所述终端应用根据所述控制命令进行对应处理的结果。A card application device according to another embodiment of the present invention includes: a control initiating module for actively initiating a control command for controlling a terminal application; and a response receiving module for receiving the terminal application in response to the control command Response command, the response command carries a result of corresponding processing performed by the terminal application according to the control command.
根据本发明另一实施例提供的一种终端主控装置包括:控制命令接收模块,用于接收卡应用主动发起的控制命令;控制命令处理模块,用于模块根据所述控制命令,确定所述卡应用期望控制的终端应用及用于主动控制所述终端应用的控制信息;以及控制信息传递模块,用于将所述控制信息传送至所述终端应用,以供所述终端应用根据所述控制信息进行对应处理。According to another embodiment of the present invention, a terminal main control device includes: a control command receiving module for receiving a control command actively initiated by a card application; a control command processing module for determining the module according to the control command; A terminal application that the card application desires to control and control information for actively controlling the terminal application; and a control information transfer module for transmitting the control information to the terminal application for the terminal application to control according to the control Information is processed accordingly.
根据本发明另一实施例提供的一种终端应用装置包括:控制信息获取模块,用于获取来自卡应用的用于控制所述终端应用的控制信息;控制信息确定模块,用于所述终端应用根据所述控制信息,确定所述控制信息是否符合执行要求;以及控制信息执行模块,用于所述终端应用根据确定结果,进行对应处理,并将携带处理结果的响应命令发送至所述卡应用。A terminal application apparatus according to another embodiment of the present invention includes: a control information acquisition module for acquiring control information from a card application for controlling the terminal application; a control information determination module for the terminal application Determining whether the control information meets the execution requirements according to the control information; and a control information execution module for the terminal application to perform corresponding processing according to the determination result, and send a response command carrying the processing result to the card application .
根据本发明另一实施例提供的一种终端应用的控制系统包括:卡应用装置,用于主动发起用于控制终端应用的控制命令;终端主控装置,用于根据所述控制命令,确定所述卡应用期望控制的终端应用及用于主动控制所述终端应用的控制信息,并将所述控制信息传送至所述终端应用;以及终端应用装置,用于根据所述控制信息,确定所述控制信息是否符合执行要求,根据确定结果,进行对应处理,并将携带处理结果的响应命令发送至所述卡应用。A control system for a terminal application according to another embodiment of the present invention includes: a card application device for actively initiating a control command for controlling a terminal application; and a terminal master control device for determining a location according to the control command. A terminal application desired to be controlled by the card application, and control information for actively controlling the terminal application, and transmitting the control information to the terminal application; and a terminal application device for determining the according to the control information Control whether the information meets the execution requirements, perform corresponding processing according to the determination result, and send a response command carrying the processing result to the card application.
本发明实施例提供的技术方案具有如下有益效果:本发明实施例实现卡或卡应用对终端或终端应用的主动控制,提高了机器对机器环境下的卡应用对终端应用的控制效果。The technical solution provided by the embodiment of the present invention has the following beneficial effects: The embodiment of the present invention implements active control of a terminal or terminal application by a card or a card application, and improves the control effect of a card application in a machine-to-machine environment on a terminal application.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是本发明第一实施例提供的一种终端应用的控制方法的示意性流程图;FIG. 1 is a schematic flowchart of a terminal application control method according to a first embodiment of the present invention; FIG.
图2是本发明第二实施例提供的一种卡应用装置的结构示意图;2 is a schematic structural diagram of a card application device according to a second embodiment of the present invention;
图3是本发明第三实施例提供的一种终端应用的控制方法的示意性流程图;3 is a schematic flowchart of a terminal application control method according to a third embodiment of the present invention;
图4是本发明第四实施例提供的一种终端主控装置的结构示意图;4 is a schematic structural diagram of a terminal master control device according to a fourth embodiment of the present invention;
图5是本发明第五实施例提供的一种终端应用的控制方法的示意性流程图;5 is a schematic flowchart of a terminal application control method according to a fifth embodiment of the present invention;
图6是本发明第六实施例提供的一种终端应用装置的结构示意图;6 is a schematic structural diagram of a terminal application device according to a sixth embodiment of the present invention;
图7是本发明第七实施例提供的卡应用与终端应用的交互示意图;7 is a schematic diagram of interaction between a card application and a terminal application according to a seventh embodiment of the present invention;
图8是本发明实施例供的Command APDU规则示意图;FIG. 8 is a schematic diagram of Command APDU rules provided by an embodiment of the present invention; FIG.
图9是本发明实施例供的Response APDU规则示意图;9 is a schematic diagram of a Response APDU rule provided by an embodiment of the present invention;
图10是本发明实施例供的控制命令定义示意图;10 is a schematic diagram of a control command definition according to an embodiment of the present invention;
图11是本发明实施例供的响应命令定义示意图;11 is a schematic diagram of a definition of a response command according to an embodiment of the present invention;
图12是本发明实施例供的控制命令规则示意图。FIG. 12 is a schematic diagram of a control command rule according to an embodiment of the present invention.
具体实施方式detailed description
以下结合附图对本发明的优选实施例进行详细说明,应当理解,以下所说明的优选实施例仅用于说明和解释本发明,并不用于限定本发明。Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. It should be understood that the preferred embodiments described below are only used to illustrate and explain the present invention, and are not intended to limit the present invention.
第一实施例First embodiment
图1是本发明第一实施例提供的一种终端应用的控制方法的示意性流程图。如图1所示,所述方法可以包括步骤S101和S102。FIG. 1 is a schematic flowchart of a terminal application control method according to a first embodiment of the present invention. As shown in FIG. 1, the method may include steps S101 and S102.
在步骤S101中,卡应用主动发起用于控制终端应用的控制命令。In step S101, the card application actively initiates a control command for controlling a terminal application.
所述控制命令包括终端应用标识及用于主动控制所述终端应用的控制信息,所述控制信息包括卡应用标识、数据信息和操作类型。The control command includes a terminal application identifier and control information for actively controlling the terminal application, and the control information includes a card application identifier, data information, and an operation type.
所述操作类型可以指示获取所述终端应用的状态,例如终端应用本身的运行状态,终端应用与服务器的连接状态等。The operation type may indicate obtaining a status of the terminal application, such as a running status of the terminal application itself, a connection status of the terminal application and a server, and the like.
所述操作类型也可以指示终端应用需要执行的操作,例如终端应用传输数据给卡,终端应用接收卡传送的数据等。The operation type may also indicate operations that the terminal application needs to perform, for example, the terminal application transmits data to the card, and the terminal application receives data transmitted by the card.
在步骤S102中,所述卡应用接收所述终端应用响应所述控制命令的响应命令,所述响应命令携带所述终端应用根据所述控制命令进行对应处理的结果。In step S102, the card application receives a response command from the terminal application in response to the control command, and the response command carries a result of corresponding processing performed by the terminal application according to the control command.
所述卡应用收到的响应命令是执行所述控制命令成功或失败的响应命令。The response command received by the card application is a response command that executes the control command successfully or fails.
在一个实施方式中,若所述控制命令携带的操作类型指示获取所述终端应用的状态,则所述卡应用收到的所述响应命令可以携带成功执行所述控制命令后得到的状态信息。In one embodiment, if the type of operation carried by the control command indicates obtaining the status of the terminal application, the response command received by the card application may carry status information obtained after the control command is successfully executed.
在另一实施方式中,若所述控制命令携带的操作类型指示终端应用需要执行操作,则所述卡应用收到的所述响应命令可以携带成功执行所述控制命令后得到的执行结果。In another embodiment, if the type of operation carried by the control command indicates that the terminal application needs to perform an operation, the response command received by the card application may carry an execution result obtained after the control command is successfully executed.
本领域普通技术人员可以理解,实现第一实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,所述的程序可以存储于计算机可读取存储介质中。进一步 说,本发明实施例还可以提供一种存储介质,其上存储有终端应用的控制程序,所述终端应用的控制程序被处理器执行时实现第一实施例的终端应用的控制方法的步骤。其中,所述的存储介质可以包括ROM/RAM、磁碟、光盘、U盘。Those of ordinary skill in the art can understand that all or part of the steps in the method of the first embodiment can be completed by a program instructing related hardware, and the program can be stored in a computer-readable storage medium. Furthermore, an embodiment of the present invention may also provide a storage medium storing a control program of a terminal application, where the control program of the terminal application is executed by a processor to implement steps of the control method of the terminal application of the first embodiment . The storage medium may include a ROM / RAM, a magnetic disk, an optical disk, and a U disk.
第二实施例Second embodiment
图2是本发明第二实施例提供的一种卡应用装置的结构示意图。如图2所示,所述卡应用装置可以包括控制发起模块21和响应接收模块22。FIG. 2 is a schematic structural diagram of a card application device provided by a second embodiment of the present invention. As shown in FIG. 2, the card application device may include a control initiating module 21 and a response receiving module 22.
控制发起模块21用于主动发起用于控制终端应用的控制命令。所述控制命令包括终端应用标识及用于主动控制所述终端应用的控制信息,所述控制信息包括卡应用标识、数据信息和操作类型。所述控制发起模块21实现图1步骤S101,所述操作类型可以指示获取所述终端应用的状态和/或指示终端应用需要执行的操作。The control initiating module 21 is configured to actively initiate a control command for controlling a terminal application. The control command includes a terminal application identifier and control information for actively controlling the terminal application, and the control information includes a card application identifier, data information, and an operation type. The control initiating module 21 implements step S101 in FIG. 1, and the operation type may indicate acquiring a status of the terminal application and / or indicating an operation that the terminal application needs to perform.
响应接收模块22用于接收所述终端应用响应所述控制命令的响应命令,所述响应命令携带所述终端应用根据所述控制命令进行对应处理的结果。所述响应接收模块22实现图1步骤S102。所述卡应用收到的响应命令是执行所述控制命令成功或失败的响应命令。The response receiving module 22 is configured to receive a response command from the terminal application in response to the control command, and the response command carries a result of corresponding processing performed by the terminal application according to the control command. The response receiving module 22 implements step S102 in FIG. 1. The response command received by the card application is a response command that executes the control command successfully or fails.
本发明实施例还可以提供一种卡应用设备,所述设备可以包括:第一处理器,以及与所述第一处理器耦接的第一存储器;所述第一存储器上存储有可在所述第一处理器上运行的终端应用的控制程序,所述终端应用的控制程序被所述第一处理器执行时实现第一实施例的终端应用的控制方法的步骤。An embodiment of the present invention may further provide a card application device. The device may include: a first processor and a first memory coupled to the first processor; The control program of the terminal application running on the first processor is described. When the control program of the terminal application is executed by the first processor, the steps of the control method of the terminal application of the first embodiment are implemented.
第三实施例Third embodiment
图3是本发明第三实施例提供的一种终端应用的控制方法的示意性流程图。如图3所示,所述方法可以包括步骤S301、S302和S303。FIG. 3 is a schematic flowchart of a terminal application control method according to a third embodiment of the present invention. As shown in FIG. 3, the method may include steps S301, S302, and S303.
在步骤S301中,终端主控装置接收卡应用主动发起的控制命令。In step S301, the terminal main control device receives a control command actively initiated by the card application.
在步骤S302中,所述终端主控装置根据所述控制命令,确定所述卡应用期望控制的终端应用及用于主动控制所述终端应用的控制信息。In step S302, the terminal master control device determines, according to the control command, a terminal application that the card application desires to control and control information for actively controlling the terminal application.
所述终端主控装置通过解析所述控制命令,从所述控制命令中获取终端应用标识和所述控制信息,并根据所述终端应用标识,确定所述卡应用期望控制的所述终端应用。其中,所述控制信息包括卡应用标识、数据信息和操作类型。The terminal master control device obtains a terminal application identifier and the control information from the control command by analyzing the control command, and determines the terminal application that the card application desires to control according to the terminal application identifier. The control information includes a card application identifier, data information, and operation type.
在步骤S303中,所述终端主控装置将所述控制信息传送至所述终端应用,以供所述终端应用根据所述控制信息进行对应处理。In step S303, the terminal master control device transmits the control information to the terminal application for the terminal application to perform corresponding processing according to the control information.
所述终端主控装置是设置在终端中,独立于终端应用和卡应用,主要用于根据解析得到的终端应用标识找到终端应用,并将解析得到的控制信息传送给所述终端应用。The terminal master control device is set in the terminal and is independent of the terminal application and the card application. The terminal main control device is mainly used to find the terminal application according to the terminal application identifier obtained through analysis, and transmit the parsed control information to the terminal application.
本领域普通技术人员可以理解,实现第三实施例方法中的全部或部分步骤是可以通过 程序来指令相关的硬件来完成,所述的程序可以存储于计算机可读取存储介质中。进一步说,本发明实施例还可以提供一种存储介质,其上存储有终端应用的控制程序,所述终端应用的控制程序被处理器执行时实现第三实施例的终端应用的控制方法的步骤。其中,所述的存储介质可以包括ROM/RAM、磁碟、光盘、U盘。Those of ordinary skill in the art can understand that all or part of the steps in the method of the third embodiment can be completed by a program instructing related hardware, and the program can be stored in a computer-readable storage medium. Further, an embodiment of the present invention may also provide a storage medium storing a control program of a terminal application, where the control program of the terminal application is executed by a processor to implement the steps of the control method of the terminal application of the third embodiment. . The storage medium may include a ROM / RAM, a magnetic disk, an optical disk, and a U disk.
第四实施例Fourth embodiment
图4是本发明第四实施例提供的一种终端主控装置的结构示意图。如图4所示,所述终端主控装置可以包括控制命令接收模块41、控制命令处理模块42和控制信息传递模块43。FIG. 4 is a schematic structural diagram of a terminal master control device according to a fourth embodiment of the present invention. As shown in FIG. 4, the terminal main control device may include a control command receiving module 41, a control command processing module 42, and a control information transmission module 43.
控制命令接收模块41用于接收卡应用主动发起的控制命令。所述控制命令接收模块41实现图3步骤S301。The control command receiving module 41 is configured to receive a control command actively initiated by a card application. The control command receiving module 41 implements step S301 in FIG. 3.
控制命令处理模块42用于模块根据所述控制命令,确定所述卡应用期望控制的终端应用及用于主动控制所述终端应用的控制信息。所述控制命令处理模块42实现图3步骤S302。所述控制命令处理模块42通过解析所述控制命令,从所述控制命令中获取终端应用标识和所述控制信息,并根据所述终端应用标识,确定所述卡应用期望控制的所述终端应用。其中,所述控制信息包括卡应用标识、数据信息和操作类型。The control command processing module 42 is configured to determine a terminal application that the card application desires to control and control information for actively controlling the terminal application according to the control command. The control command processing module 42 implements step S302 in FIG. 3. The control command processing module 42 obtains a terminal application identifier and the control information from the control command by analyzing the control command, and determines the terminal application that the card application desires to control based on the terminal application identifier. . The control information includes a card application identifier, data information, and operation type.
控制信息传递模块43用于将所述控制信息传送至所述终端应用,以供所述终端应用根据所述控制信息进行对应处理。所述控制信息传递模块43实现图3步骤S303。The control information transmission module 43 is configured to transmit the control information to the terminal application for the terminal application to perform corresponding processing according to the control information. The control information transmission module 43 implements step S303 in FIG. 3.
本发明实施例还可以提供的一种终端主控设备,所述设备可以包括:第二处理器,以及与所述第二处理器耦接的第二存储器;所述第二存储器上存储有可在所述第二处理器上运行的终端应用的控制程序,所述终端应用的控制程序被所述第二处理器执行时实现第三实施例的终端应用的控制方法的步骤。An embodiment of the present invention may also provide a terminal master control device. The device may include: a second processor and a second memory coupled to the second processor; and the second memory stores a A control program for a terminal application running on the second processor, and when the control program for the terminal application is executed by the second processor, the steps of the control method for the terminal application of the third embodiment are implemented.
第五实施例Fifth Embodiment
图5是本发明第五实施例提供的一种终端应用的控制方法的示意性流程图。如图5所示,所述方法可以包括步骤S501、S502和S503。FIG. 5 is a schematic flowchart of a terminal application control method according to a fifth embodiment of the present invention. As shown in FIG. 5, the method may include steps S501, S502, and S503.
在步骤S501中,终端应用获取来自卡应用的用于控制所述终端应用的控制信息。In step S501, the terminal application acquires control information from a card application for controlling the terminal application.
所述终端应用从终端主控装置获取所述控制信息,所述控制信息是所述终端主控装置从卡应用主动发起的用于控制所述终端应用的控制命令中获取并发送的。The terminal application obtains the control information from a terminal master control device, where the control information is obtained and sent from a control command actively controlled by the card application for controlling the terminal application.
所述控制信息包括卡应用标识、数据信息和操作类型。The control information includes a card application identification, data information, and operation type.
所述操作类型可以指示获取所述终端应用的状态和/或指示终端应用需要执行的操作。The operation type may indicate acquiring a status of the terminal application and / or indicating an operation that the terminal application needs to perform.
在步骤S502中,所述终端应用根据所述控制信息,确定所述控制信息是否符合执行 要求。In step S502, the terminal application determines whether the control information meets execution requirements according to the control information.
若所述卡应用标识对应的卡应用发送的操作类型符合预设执行规则,则所述终端应用确定所述控制信息符合执行要求。If the type of operation sent by the card application corresponding to the card application identifier conforms to a preset execution rule, the terminal application determines that the control information meets execution requirements.
所述预设执行规则包括执行预设卡应用发送的部分或全部操作类型对应的操作。The preset execution rule includes performing operations corresponding to part or all of the operation types sent by the preset card application.
例如预设执行规则是执行USIM应用发送的全部操作,则所述终端应用根据卡应用标识,确定发送控制信息的卡应用是否是USIM应用,如果是,则说明所述控制信息是否符合执行要求。For example, the preset execution rule is to perform all operations sent by the USIM application, and the terminal application determines whether the card application that sends control information is a USIM application according to the card application identifier, and if so, indicates whether the control information meets execution requirements.
在步骤S503中,所述终端应用根据确定结果,进行对应处理,并将携带处理结果的响应命令发送至所述卡应用。In step S503, the terminal application performs corresponding processing according to the determination result, and sends a response command carrying the processing result to the card application.
所述控制信息符合执行要求时的处理步骤如下。The processing steps when the control information meets the execution requirements are as follows.
首先,所述终端应用根据所述控制信息符合执行要求的确定结果,执行所述操作类型对应的操作。在一个实施方式中,若所述操作类型指示获取所述终端应用的状态,则执行所述操作,获取状态信息。在另一实施方式中,若所述操作类型指示终端应用需要执行操作,则执行所述操作,得到操作结果。First, the terminal application executes an operation corresponding to the operation type according to a determination result that the control information meets an execution requirement. In one embodiment, if the operation type indicates acquiring the status of the terminal application, the operation is performed to acquire status information. In another embodiment, if the operation type indicates that the terminal application needs to perform an operation, the operation is performed to obtain an operation result.
然后,所述终端应用生成执行所述操作类型成功的响应命令,并将所述响应命令发送至卡应用。在一个实施方式中,若所述操作类型指示获取所述终端应用的状态,所述终端应用可以将所述状态信息放入所述响应命令中。在另一实施方式中,若所述操作类型指示终端应用需要执行的操作,所述终端应用可以将所述操作结果放入所述响应命令中。Then, the terminal application generates a response command that successfully executes the operation type, and sends the response command to the card application. In one embodiment, if the operation type indicates acquiring the status of the terminal application, the terminal application may put the status information into the response command. In another embodiment, if the operation type indicates an operation that a terminal application needs to perform, the terminal application may put the operation result into the response command.
所述控制信息不符合执行要求时的处理步骤如下。The processing steps when the control information does not meet the execution requirements are as follows.
所述终端应用生成执行所述操作类型失败的响应命令,并将所述响应命令发送至卡应用。The terminal application generates a response command that fails to execute the operation type, and sends the response command to a card application.
本领域普通技术人员可以理解,实现第五实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,所述的程序可以存储于计算机可读取存储介质中。进一步说,本发明实施例还可以提供一种存储介质,其上存储有终端应用的控制程序,所述终端应用的控制程序被处理器执行时实现第五实施例的终端应用的控制方法的步骤。其中,所述的存储介质可以包括ROM/RAM、磁碟、光盘、U盘。Those of ordinary skill in the art can understand that all or part of the steps in the method of the fifth embodiment can be completed by a program instructing related hardware, and the program can be stored in a computer-readable storage medium. Further, the embodiment of the present invention may also provide a storage medium storing a control program of a terminal application, where the control program of the terminal application is executed by a processor to implement steps of the control method of the terminal application of the fifth embodiment . The storage medium may include a ROM / RAM, a magnetic disk, an optical disk, and a U disk.
第六实施例Sixth embodiment
图6是本发明第六实施例提供的一种终端应用装置的结构示意图。如图6所示,所述终端应用装置可以包括控制信息获取模块61、控制信息确定模块62和控制信息执行模块63。FIG. 6 is a schematic structural diagram of a terminal application device according to a sixth embodiment of the present invention. As shown in FIG. 6, the terminal application device may include a control information acquisition module 61, a control information determination module 62, and a control information execution module 63.
控制信息获取模块61用于获取来自卡应用的用于控制所述终端应用的控制信息。所 述控制信息获取模块61实现图5步骤S503。所述终端控制信息获取模块61从终端主控装置获取所述控制信息。所述控制信息是所述终端主控装置从卡应用主动发起的用于控制所述终端应用的控制命令中获取并发送的。所述控制信息包括卡应用标识、数据信息和操作类型。所述操作类型可以指示获取所述终端应用的状态和/或指示终端应用需要执行的操作。The control information acquisition module 61 is configured to acquire control information from a card application for controlling the terminal application. The control information acquisition module 61 implements step S503 in FIG. 5. The terminal control information acquisition module 61 acquires the control information from a terminal master control device. The control information is acquired and sent by the terminal main control device from a control command actively controlled by the card application for controlling the terminal application. The control information includes a card application identification, data information, and operation type. The operation type may indicate acquiring a status of the terminal application and / or indicating an operation that the terminal application needs to perform.
控制信息确定模块62用于所述终端应用根据所述控制信息,确定所述控制信息是否符合执行要求。所述控制信息确定模块62实现图5步骤S502。所述控制信息确定模块62在所述卡应用标识对应的卡应用发送的操作类型符合预设执行规则时,确定所述控制信息符合执行要求。其中,所述预设执行规则包括执行预设卡应用发送的部分或全部操作类型对应的操作。例如预设执行规则是执行USIM应用发送的全部操作,则所述控制信息执行模块63根据卡应用标识,确定发送控制信息的卡应用是否是USIM应用,如果是,则说明所述控制信息是否符合执行要求。The control information determining module 62 is configured for the terminal application to determine whether the control information meets execution requirements according to the control information. The control information determination module 62 implements step S502 in FIG. 5. The control information determining module 62 determines that the control information meets the execution requirements when the operation type sent by the card application corresponding to the card application identifier conforms to a preset execution rule. The preset execution rule includes performing operations corresponding to part or all of the operation types sent by the preset card application. For example, if the preset execution rule is to perform all operations sent by the USIM application, the control information execution module 63 determines whether the card application that sends control information is a USIM application according to the card application identifier. If so, it indicates whether the control information meets the requirements. Implementation requirements.
控制信息执行模块63用于所述终端应用根据确定结果,进行对应处理,并将携带处理结果的响应命令发送至所述卡应用。所述控制信息执行模块63实现图5步骤S503。所述控制信息执行模块63根据所述控制信息符合执行要求的确定结果,执行所述操作类型对应的操作,并生成执行所述操作类型成功的响应命令,发送至卡应用。反之,所述控制信息执行模块63根据所述控制信息不符合执行要求的确定结果,不执行所述操作类型对应的操作,并生成执行所述操作类型失败的响应命令,发送至卡应用。The control information execution module 63 is configured for the terminal application to perform corresponding processing according to the determination result, and send a response command carrying the processing result to the card application. The control information execution module 63 implements step S503 in FIG. 5. The control information execution module 63 executes an operation corresponding to the operation type according to a determination result that the control information meets an execution requirement, and generates a response command that successfully executes the operation type, and sends the response command to the card application. On the contrary, the control information execution module 63 does not perform the operation corresponding to the operation type according to the determination result that the control information does not meet the execution requirements, and generates a response command that fails to execute the operation type, and sends the response command to the card application.
本发明实施例还可以提供的一种终端应用设备,所述设备可以包括:第三处理器,以及与所述第三处理器耦接的第三存储器;所述第三存储器上存储有可在所述第三处理器上运行的终端应用的控制程序,所述终端应用的控制程序被所述第三处理器执行时实现第五实施例的终端应用的控制方法的步骤。An embodiment of the present invention may also provide a terminal application device. The device may include: a third processor, and a third memory coupled to the third processor; A control program for a terminal application running on the third processor, and when the control program for the terminal application is executed by the third processor, the steps of the control method for the terminal application of the fifth embodiment are implemented.
上述第一至第六实施例中,所述控制命令的结构包括控制命令定义字段、操作类型定义字段、卡应用和终端应用的标识字段。进一步地,所述控制命令还包括长度字段、文本属性字段和终端标识字段。上述每个字段均符合3GPP中C-APDU的定义。In the above first to sixth embodiments, the structure of the control command includes a control command definition field, an operation type definition field, a card application and a terminal application identification field. Further, the control command further includes a length field, a text attribute field, and a terminal identification field. Each of the above fields conforms to the definition of C-APDU in 3GPP.
上述第一至第六实施例中,所述响应命令包括操作类型定义字段和响应结果字段。进一步地,所述响应命令还包括终端标识字段和终端数据字段。上述每个字段均符合3GPP中R-APDU的定义的。In the foregoing first to sixth embodiments, the response command includes an operation type definition field and a response result field. Further, the response command further includes a terminal identification field and a terminal data field. Each of the above fields conforms to the definition of R-APDU in 3GPP.
上述卡应用包括但不限于USIM、ISIM、HPSIM。The above card applications include, but are not limited to, USIM, ISIM, HPSIM.
第七实施例Seventh embodiment
图7是本发明第七实施例提供的卡应用与终端应用的交互示意图。如图7所示,交互 过程如下。FIG. 7 is a schematic diagram of interaction between a card application and a terminal application according to a seventh embodiment of the present invention. As shown in Figure 7, the interaction process is as follows.
在步骤701:卡(例如UICC卡)或卡应用(例如UICC卡应用)发送控制命令给终端处理控制模块(实现上述终端主控装置的功能)。In step 701: the card (for example, a UICC card) or a card application (for example, a UICC card application) sends a control command to the terminal processing control module (realizing the function of the terminal main control device).
在步骤702:终端处理控制模块对控制命令进行解析,从命令中获取卡应用标识、终端应用标识、数据信息、操作类型等;终端应用处理模块根据终端应用标识找出对应的终端应用。In step 702: the terminal processing control module parses the control command, and obtains the card application identifier, terminal application identifier, data information, operation type, etc. from the command; the terminal application processing module finds the corresponding terminal application according to the terminal application identifier.
在步骤703:终端处理控制模块将所述卡应用标识和所述数据信息、操作类型等传送给该终端应用。In step 703: the terminal processing control module transmits the card application identification, the data information, operation type, and the like to the terminal application.
在步骤704:所述终端应用根据预设规则(或预设执行规则),判断是否符合执行该卡应用标识对应的卡应用发来的操作类型的规则,如果符合,则执行步骤705a和步骤706a,否则,执行步骤705b和步骤706b。In step 704, the terminal application determines whether to comply with the rule of the operation type sent by the card application corresponding to the card application identifier according to a preset rule (or a preset execution rule), and if so, execute steps 705a and 706a. , Otherwise, perform steps 705b and 706b.
例如,所述规则可以是某个应用仅仅执行USIM应用发来的操作,如果终端应用识别出卡应用标识代表是USIM应用,则执行对用的操作类型,如果卡应用标识是是HPSIM应用,则不执行。For example, the rule may be that an application only executes the operation sent by the USIM application. If the terminal application recognizes that the card application identifier represents a USIM application, the type of operation performed is performed. If the card application identifier is an HPSIM application, then Not executed.
再例如,所述规则可以是某个终端应用仅仅执行USIM应用发来的操作A和B,如果是HPSIM应用发来的操作类型,则不执行,如果USIM应用,识别操作类型如是A或B,则执行,如果是其他操作类型,则不执行。For another example, the rule may be that a certain terminal application only executes operations A and B sent by the USIM application. If the operation type is sent by the HPSIM application, it is not executed. If the USIM application is used, the operation type is identified as A or B Execute, if it is other operation type, do not execute.
在步骤705a和步骤706a:如果终端应用执行了卡应用标识对应的卡应用发来的操作类型,则给所述卡发送响应命令一。In step 705a and step 706a: if the terminal application executes the operation type sent by the card application corresponding to the card application identifier, send a response command one to the card.
在步骤705b和步骤706b:终端应用不执行卡应用标识对应的卡应用发来的操作类型,返回相应响应命令二。In steps 705b and 706b: the terminal application does not execute the operation type sent by the card application corresponding to the card application identifier, and returns a corresponding response command two.
上述操作类型可以是获取终端应用的下列状态之一,包括但不限于获取终端应用本身运行状态、获取终端应用用户PIN1码校验状态、获取终端应用用户PIN2码校验状态、获取终端应用与实体的链接状态、获取终端应用接收数据规定的时间值、获取终端应用时间容忍度值、获取终端应用与服务器链接的在线、离线状态、获取终端的地址和编号。The above operation type can be one of the following states of the terminal application, including, but not limited to, obtaining the running status of the terminal application itself, obtaining the PIN1 code verification status of the terminal application user, obtaining the PIN2 code verification status of the terminal application user, obtaining terminal application and entity The link status of the terminal, obtain the time value specified by the terminal application receiving data, obtain the terminal application time tolerance value, obtain the online and offline status of the terminal application and server link, obtain the address and number of the terminal.
上述操作类型也可以是需要终端应用执行的下列操作之一,包括但不限于终端应用定时向卡发送相关信息和事件、终端应用执行用户校验PIN1码验证操作、终端应用执行用户校验PIN2码验证操作、终端应用传输数据给卡、终端应用接收卡传送的数据、终端应用与其它实体进行安全通信链接、终端应用定时向卡发送相关信息和事件。The above operation type can also be one of the following operations that need to be performed by the terminal application, including but not limited to the terminal application periodically sending related information and events to the card, the terminal application performing a user verification PIN1 code verification operation, and the terminal application performing a user verification PIN2 code The verification operation, the terminal application transmits data to the card, the terminal application receives the data transmitted by the card, the terminal application performs secure communication links with other entities, and the terminal application periodically sends related information and events to the card.
上述的控制命令应遵守3GPP(ETSI)标准中命令APDU的定义,具体如图8和图12所示。The above control commands shall comply with the definition of the command APDU in the 3GPP (ETSI) standard, as shown in Figures 8 and 12 in detail.
上述的控制命令的响应命令应遵守3GPP(ETSI)标准中响应APDU(Response APDU,简称为P-APDU)的定义,如图9所示。The response command of the above control command shall comply with the definition of Response APDU (Response APDU, P-APDU for short) in the 3GPP (ETSI) standard, as shown in FIG. 9.
所述的控制命令符合下列定义,如图10所示。The control command is in accordance with the following definitions, as shown in FIG. 10.
所述的控制命令的响应命令符合下列定义,如图11所示。The response command of the control command conforms to the following definitions, as shown in FIG. 11.
所述控制命令的定义于在Proactive UICC command Tag中。The control command is defined in the Proactive UICC command tag.
所述操作类型定义于Command details中。The operation types are defined in Command details.
所述卡应用标识、终端应用标识定义于APP identifier中。The card application identifier and terminal application identifier are defined in the APP identifier.
Text attribute字段可以有多个。There can be multiple Textattribute fields.
所述卡应用包括并且不限于USIM、ISIM、HPSIM。The card applications include and are not limited to USIM, ISIM, HPSIM.
由上述描述可知,本发明实施例提供一种终端应用的控制方法、装置、系统。以UICC卡为例,由UICC卡应用发送控制命令给终端处理控制模块,终端处理控制模块对控制命令进行解析,从命令中获取卡应用标识、终端应用标识、数据信息、操作类型等;终端应用处理模块根据终端应用标识找出对应的终端应用,将卡端应用标识和所述数据信息、操作类型等传送给该终端应用。终端应用根据预设规则判断是否符合执行该卡应用标识对应的卡应用发来的操作类型的规则,如果符合,则执行,否则,不执行。如果终端应用执行了卡应用标识对应的卡应用发来的操作类型,则给所述卡发送响应命令一;否则返回相应命令二。由此实现了UICC对终端中的终端应用的主动控制,提高了M2M环境下的UICC对终端应用的控制效果。It can be known from the foregoing description that the embodiments of the present invention provide a method, a device, and a system for controlling a terminal application. Taking a UICC card as an example, the UICC card application sends a control command to the terminal processing control module. The terminal processing control module analyzes the control command and obtains the card application identifier, terminal application identifier, data information, operation type, etc. from the command; terminal application The processing module finds the corresponding terminal application according to the terminal application identifier, and transmits the card-side application identifier, the data information, and the operation type to the terminal application. The terminal application determines whether to comply with the rules for performing the operation type sent by the card application corresponding to the card application identifier according to a preset rule, and if it does, it executes, otherwise, it does not execute. If the terminal application executes the operation type sent by the card application corresponding to the card application identifier, it sends a response command one to the card; otherwise, it returns a corresponding command two. Thus, the active control of the terminal application in the terminal by the UICC is realized, and the control effect of the terminal application by the UICC in the M2M environment is improved.
第八实施例Eighth embodiment
本发明实施例提供一种终端应用的控制系统,所述系统可以包括:卡应用装置,用于主动发起用于控制终端应用的控制命令;终端主控装置,用于根据所述控制命令,确定所述卡应用期望控制的终端应用及用于主动控制所述终端应用的控制信息,并将所述控制信息传送至所述终端应用;以及终端应用装置,用于根据所述控制信息,确定所述控制信息是否符合执行要求,根据确定结果,进行对应处理,并将携带处理结果的响应命令发送至所述卡应用。An embodiment of the present invention provides a control system for a terminal application. The system may include: a card application device for actively initiating a control command for controlling a terminal application; and a terminal main control device for determining according to the control command. A terminal application desired to be controlled by the card application and control information for actively controlling the terminal application and transmitting the control information to the terminal application; and a terminal application device for determining Whether the control information meets the execution requirements, performs corresponding processing according to the determination result, and sends a response command carrying the processing result to the card application.
所述系统的工作步骤包括:首先所述终端主控装置接收卡应用装置主动发起的控制命令,从所述控制命令中获取终端应用标识和所述控制信息,并根据所述终端应用标识,确定所述卡应用期望控制的所述终端应用,将所述控制信息传送至所述终端应用,其中所述控制信息包括卡应用标识、数据信息和操作类型。然后所述终端应用装置在所述卡应用标识对应的卡应用发送的操作类型符合预设执行规则时,确定所述控制信息符合执行要求,执行所述操作类型对应的操作,并将携带操作结果的响应命令发送至所述卡应用。The working steps of the system include: first, the terminal main control device receives a control command actively initiated by a card application device, obtains a terminal application identifier and the control information from the control command, and determines according to the terminal application identifier The terminal application that the card application desires to control transmits the control information to the terminal application, where the control information includes a card application identification, data information, and operation type. Then, when the operation type sent by the card application corresponding to the card application identifier conforms to a preset execution rule, the terminal application device determines that the control information meets execution requirements, executes the operation corresponding to the operation type, and carries the operation result. A response command is sent to the card application.
第九实施例Ninth embodiment
本发明实施例主要解决了目前智能卡无法有效的对终端应用进行主动控制的问题,一般来说,智能卡对终端(应用)进行控制的问题可以归纳为下列情况:1.获取应用的状态,包括且不限于以下内容:a应用本身运行状态;b应用(用户校验)状态,如PIN1码、PIN2码的校验状态等;c.与某实体的链接状态;d.接收数据规定的时间值;e.时间容忍度值;f.某服务器的在线、离线状态;g.获取终端的地址和编号;h.定时向卡发送相关信息、事件。2.要求的操作,包括且不限于以下内容:a.执行用户校验PIN码验证;b.执行用户校验PIN2验证;c.传输数据给卡;d.接收卡传送的数据;e.与其它实体进行安全通信链接;f.定时向卡发送相关信息、事件等等。The embodiments of the present invention mainly solve the problem that current smart cards cannot effectively actively control terminal applications. Generally, the problem that smart cards control terminals (applications) can be summarized as follows: 1. Obtaining the status of applications, including and Not limited to the following: a. The operating status of the application itself; b. The status of the application (user verification), such as the verification status of the PIN1 and PIN2 codes; c. The link status with an entity; d. The time value specified by the received data; e. Time tolerance value; f. Online and offline status of a server; g. Obtaining the address and number of the terminal; h. Sending relevant information and events to the card regularly. 2. Required operations, including but not limited to the following: a. Perform user verification PIN code verification; b. Perform user verification PIN2 verification; c. Transmit data to the card; d. Receive data transmitted by the card; e. Other entities perform secure communication links; f. Regularly send related information, events, etc. to the card.
例如,在没有网络覆盖的直接D2D(direct device to device communication)通信中,USIM中需要保存一些相关信息数据(参见3GPP TS 24.334及3GPP TS 32.277),这些数据可以经终端(UE)使用封装(ENVELOPE)命令传送给USIM,传送之前需要检查用户(应用)的校验状态,但是目前尚未有相关标准规定在处理接收STK/USAT命令之前USIM应如何去检查用户(应用)的状态。通过本发明实施例USIM可以发起控制命令,主动获取终端应用的状态。即USIM向终端主控装置发送控制命令,终端主控装置对控制命令进行解析,从命令中获取卡应用标识、终端应用标识、数据信息、用于检查终端应用的状态的操作类型等;终端应用处理模块根据终端应用标识找出对应的终端应用,将卡应用标识和数据信息、用于检查终端应用的状态的操作类型等传送给该终端应用。终端应用根据预设规则判断是否符合执行该卡应用标识对应的USIM发来的用于检查终端应用的状态的操作类型的规则,如果符合,则执行,否则,不执行。如果终端应用执行了用于检查终端应用的状态的操作类型,则给USIM发送响应命令一,否则返回响应命令二,从而实现了USIM对终端中的终端应用的主动控制。For example, in direct D2D (direct device communication) communication without network coverage, the USIM needs to save some related information data (see 3GPP TS 24.334 and 3GPP TS 32.277). These data can be encapsulated by the terminal (UE) using ENVELOPE ) The command is transmitted to the USIM, and the verification status of the user (application) needs to be checked before transmission. However, there is currently no relevant standard specifying how the USIM should check the status of the user (application) before processing and receiving the STK / USAT command. Through the embodiment of the present invention, the USIM can initiate a control command to actively acquire the status of the terminal application. That is, the USIM sends a control command to the terminal master control device, and the terminal master control device analyzes the control command, obtains the card application ID, the terminal application ID, data information, and the type of operation used to check the status of the terminal application from the command; the terminal application The processing module finds the corresponding terminal application according to the terminal application identifier, and transmits the card application identifier and data information, and the operation type used to check the status of the terminal application to the terminal application. The terminal application judges whether to comply with the rules of the operation type for checking the status of the terminal application sent by the USIM corresponding to the card application identifier according to the preset rule, and if it is, execute it; otherwise, do not execute it. If the terminal application performs an operation type for checking the status of the terminal application, it sends a response command one to the USIM, otherwise it returns a response command two, thereby realizing the active control of the terminal application in the terminal by the USIM.
尽管上文对本发明进行了详细说明,但是本发明不限于此,本技术领域技术人员可以根据本发明的原理进行各种修改。因此,凡按照本发明原理所作的修改,都应当理解为落入本发明的保护范围。Although the present invention has been described in detail above, the present invention is not limited thereto, and those skilled in the art can make various modifications according to the principles of the present invention. Therefore, any modification made according to the principle of the present invention should be understood to fall within the protection scope of the present invention.

Claims (21)

  1. 一种终端应用的控制方法,包括:A terminal application control method includes:
    卡应用主动发起用于控制终端应用的控制命令;以及The card application actively initiates control commands for controlling terminal applications; and
    所述卡应用接收所述终端应用响应所述控制命令的响应命令,所述响应命令携带所述终端应用根据所述控制命令进行对应处理的结果。The card application receives a response command from the terminal application in response to the control command, and the response command carries a result of corresponding processing performed by the terminal application according to the control command.
  2. 根据权利要求1所述的方法,其中,所述控制命令包括终端应用标识及用于主动控制所述终端应用的控制信息,所述控制信息包括卡应用标识、数据信息和操作类型。The method according to claim 1, wherein the control command includes a terminal application identifier and control information for actively controlling the terminal application, and the control information includes a card application identifier, data information, and an operation type.
  3. 根据权利要求1或2所述的方法,其中,所述控制命令的结构包括控制命令定义字段、操作类型定义字段、卡应用和终端应用的标识字段,每个字段均符合第三代合作伙伴计划标准3GPP中命令应用协议数据单元APDU的定义;所述响应命令包括操作类型定义字段和响应结果字段,每个字段均符合3GPP中响应APDU的定义。The method according to claim 1 or 2, wherein the structure of the control command includes a control command definition field, an operation type definition field, a card application and a terminal application identification field, and each field conforms to the third generation partner program In the standard 3GPP, the definition of the application protocol data unit APDU is commanded; the response command includes an operation type definition field and a response result field, and each field conforms to the definition of the response APDU in the 3GPP.
  4. 根据权利要求3所述的方法,其中,所述卡应用包括通用用户标识模块USIM、IP多媒体业务标识模块ISIM、托管方用户标识模块HPSIM。The method according to claim 3, wherein the card application comprises a universal subscriber identity module USIM, an IP multimedia service identity module ISIM, and a custodian subscriber identity module HPSIM.
  5. 一种终端应用的控制方法,包括:A terminal application control method includes:
    终端主控装置接收卡应用主动发起的控制命令;The terminal main control device receives a control command actively initiated by the card application;
    所述终端主控装置根据所述控制命令,确定所述卡应用期望控制的终端应用及用于主动控制所述终端应用的控制信息;以及The terminal main control device determines, according to the control command, a terminal application that the card application desires to control and control information for actively controlling the terminal application; and
    所述终端主控装置将所述控制信息传送至所述终端应用,以供所述终端应用根据所述控制信息进行对应处理。The terminal master control device transmits the control information to the terminal application for the terminal application to perform corresponding processing according to the control information.
  6. 根据权利要求5所述的方法,其中,所述终端主控装置根据所述控制命令,确定所述卡应用期望控制的终端应用及用于主动控制所述终端应用的控制信息,包括:The method according to claim 5, wherein the terminal master control device determines, according to the control command, a terminal application that the card application desires to control and control information for actively controlling the terminal application, comprising:
    所述终端主控装置从所述控制命令中获取终端应用标识及包含卡应用标识、数据信息、操作类型的所述控制信息;以及The terminal main control device obtaining a terminal application identifier and the control information including a card application identifier, data information, and operation type from the control command; and
    所述终端主控装置根据所述终端应用标识,确定所述卡应用期望控制的所述终端应用。The terminal master control device determines, according to the terminal application identifier, the terminal application that the card application desires to control.
  7. 一种终端应用的控制方法,包括:A terminal application control method includes:
    终端应用获取来自卡应用的用于控制所述终端应用的控制信息;以及The terminal application obtains control information from the card application for controlling the terminal application; and
    所述终端应用根据所述控制信息,确定所述控制信息是否符合执行要求;Determining, by the terminal application, whether the control information meets execution requirements according to the control information;
    所述终端应用根据确定结果,进行对应处理,并将携带处理结果的响应命令发送至所述卡应用。The terminal application performs corresponding processing according to the determination result, and sends a response command carrying the processing result to the card application.
  8. 根据权利要求7所述的控制方法,其中,所述终端应用获取来自卡应用的用于控制所述终端应用的控制信息包括:The control method according to claim 7, wherein the obtaining, by the terminal application, control information for controlling the terminal application from a card application comprises:
    所述终端应用从终端主控装置获取所述控制信息,所述控制信息是所述终端主控装置从卡应用主动发起的用于控制所述终端应用的控制命令中获取并发送的,所述控制信息包括卡应用标识、数据信息和操作类型。The terminal application obtains the control information from a terminal master control device, where the control information is obtained and sent by a terminal master control device from a control command actively initiated by a card application to control the terminal application, the Control information includes card application identification, data information, and operation type.
  9. 根据权利要求8所述的方法,其中,所述终端应用根据所述控制信息,确定所述控制信息是否符合执行要求,包括:The method according to claim 8, wherein the terminal application determining whether the control information meets execution requirements according to the control information comprises:
    若所述卡应用标识对应的卡应用发送的操作类型符合预设执行规则,则所述终端应用确定所述控制信息符合执行要求。If the type of operation sent by the card application corresponding to the card application identifier conforms to a preset execution rule, the terminal application determines that the control information meets execution requirements.
  10. 根据权利要求9所述的方法,其中,所述预设执行规则包括执行预设卡应用发送的部分或全部操作类型对应的操作。The method according to claim 9, wherein the preset execution rule comprises performing an operation corresponding to part or all of the operation types sent by the preset card application.
  11. 根据权利要求8所述的方法,其中,所述终端应用根据确定结果,进行对应处理,包括:The method according to claim 8, wherein the terminal application performs corresponding processing according to the determination result, comprising:
    所述终端应用根据所述控制信息符合执行要求的确定结果,执行所述操作类型对应的操作;或者The terminal application executes an operation corresponding to the operation type according to a determination result that the control information meets an execution requirement; or
    所述终端应用根据所述控制信息不符合执行要求的确定结果,不执行所述操作类型对应的操作。The terminal application does not perform an operation corresponding to the operation type according to a determination result that the control information does not meet an execution requirement.
  12. 一种卡应用装置,包括:A card application device includes:
    控制发起模块,用于主动发起用于控制终端应用的控制命令;以及A control initiation module for actively initiating a control command for controlling a terminal application; and
    响应接收模块,用于接收所述终端应用响应所述控制命令的响应命令,所述响应命令携带所述终端应用根据所述控制命令进行对应处理的结果。The response receiving module is configured to receive a response command from the terminal application in response to the control command, and the response command carries a result of corresponding processing performed by the terminal application according to the control command.
  13. 根据权利要求12所述的装置,其中,所述控制命令包括终端应用标识及用于主动控制所述终端应用的控制信息,所述控制信息包括卡应用标识、数据信息和操作类型。The apparatus according to claim 12, wherein the control command includes a terminal application identifier and control information for actively controlling the terminal application, and the control information includes a card application identifier, data information, and an operation type.
  14. 一种终端主控装置,包括:A terminal main control device includes:
    控制命令接收模块,用于接收卡应用主动发起的控制命令;A control command receiving module for receiving a control command initiated by a card application;
    控制命令处理模块,用于模块根据所述控制命令,确定所述卡应用期望控制的终端应用及用于主动控制所述终端应用的控制信息;以及A control command processing module, configured to determine, according to the control command, a terminal application that the card application desires to control and control information for actively controlling the terminal application; and
    控制信息传递模块,用于将所述控制信息传送至所述终端应用,以供所述终端应用根据所述控制信息进行对应处理。A control information transmission module is configured to transmit the control information to the terminal application for the terminal application to perform corresponding processing according to the control information.
  15. 根据权利要求14所述的装置,其中,所述控制命令处理模块从所述控制命令中获取终端应用标识及包含卡应用标识、数据信息、操作类型的所述控制信息,并根据所述终端应用标识,确定所述卡应用期望控制的所述终端应用。The device according to claim 14, wherein the control command processing module obtains a terminal application identifier and the control information including a card application identifier, data information, and operation type from the control command, and according to the terminal application The identification determines the terminal application that the card application desires to control.
  16. 一种终端应用装置,包括:A terminal application device includes:
    控制信息获取模块,用于获取来自卡应用的用于控制终端应用的控制信息;A control information acquisition module, configured to acquire control information for controlling a terminal application from a card application;
    控制信息确定模块,用于根据所述控制信息,确定所述控制信息是否符合执行要求;以及A control information determination module, configured to determine whether the control information meets execution requirements according to the control information; and
    控制信息执行模块,用于根据确定结果,进行对应处理,并将携带处理结果的响应命令发送至所述卡应用。The control information execution module is configured to perform corresponding processing according to the determination result, and send a response command carrying the processing result to the card application.
  17. 根据权利要求16所述的装置,其中,所述终端控制信息获取模块从终端主控装置获取所述控制信息,所述控制信息是所述终端主控装置从卡应用主动发起的用于控制所述终端应用的控制命令中获取并发送的,所述控制信息包括卡应用标识、数据信息和操作类型。The device according to claim 16, wherein the terminal control information acquisition module acquires the control information from a terminal master control device, and the control information is an initiative initiated by the terminal master control device from a card application for controlling all The control information obtained and sent in the control command of the terminal application includes the card application identifier, data information, and operation type.
  18. 根据权利要求17所述的装置,其中,所述控制信息确定模块在所述卡应用标识对应的卡应用发送的操作类型符合预设执行规则时,确定所述控制信息符合执行要求。The apparatus according to claim 17, wherein the control information determining module determines that the control information meets execution requirements when an operation type sent by a card application corresponding to the card application identifier conforms to a preset execution rule.
  19. 根据权利要求18所述的装置,其中,所述预设执行规则包括执行预设卡应用发送的部分或全部操作类型对应的操作。The device according to claim 18, wherein the preset execution rule comprises performing an operation corresponding to part or all of the operation types sent by the preset card application.
  20. 根据权利要求17所述的装置,所述控制信息执行模块根据所述控制信息符合执行要求的确定结果,执行所述操作类型对应的操作,或者根据所述控制信息不符合执行要求的确定结果,不执行所述操作类型对应的操作。The apparatus according to claim 17, wherein the control information execution module executes an operation corresponding to the operation type according to a determination result that the control information meets an execution requirement, or according to a determination result that the control information does not meet an execution requirement, The operation corresponding to the operation type is not performed.
  21. 一种终端应用的控制系统,包括:A terminal application control system includes:
    卡应用装置,用于主动发起用于控制终端应用的控制命令;A card application device for actively initiating a control command for controlling a terminal application;
    终端主控装置,用于根据所述控制命令,确定所述卡应用期望控制的终端应用及用于主动控制所述终端应用的控制信息,并将所述控制信息传送至所述终端应用;以及A terminal master control device, configured to determine, according to the control command, a terminal application desired to be controlled by the card application and control information for actively controlling the terminal application, and transmit the control information to the terminal application; and
    终端应用装置,用于根据所述控制信息,确定所述控制信息是否符合执行要求,根据确定结果,进行对应处理,并将携带处理结果的响应命令发送至所述卡应用。The terminal application device is configured to determine whether the control information meets execution requirements according to the control information, perform corresponding processing according to the determination result, and send a response command carrying the processing result to the card application.
PCT/CN2019/093525 2018-07-12 2019-06-28 Terminal application control method, apparatus, and system WO2020011026A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810765162.2A CN110719581A (en) 2018-07-12 2018-07-12 Control method, device and system for terminal application
CN201810765162.2 2018-07-12

Publications (1)

Publication Number Publication Date
WO2020011026A1 true WO2020011026A1 (en) 2020-01-16

Family

ID=69142203

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/093525 WO2020011026A1 (en) 2018-07-12 2019-06-28 Terminal application control method, apparatus, and system

Country Status (2)

Country Link
CN (1) CN110719581A (en)
WO (1) WO2020011026A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111447319A (en) * 2020-03-25 2020-07-24 中国联合网络通信集团有限公司 Terminal number book management method, terminal and user identification module
CN112752247B (en) * 2020-12-29 2022-09-27 中国联合网络通信集团有限公司 Short-distance service management method, device, terminal, USIM and medium
CN112738781B (en) * 2020-12-29 2022-09-27 中国联合网络通信集团有限公司 Method, device, terminal, USIM and medium for initiating proximity service
CN113556714B (en) * 2021-06-22 2022-05-10 中国联合网络通信集团有限公司 Method and device for UICC to require terminal to search NFC equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102348017A (en) * 2011-09-07 2012-02-08 中国联合网络通信集团有限公司 Calling method of terminal application, terminal device and UICC (Universal Integrated Circuit Card)
US20120172016A1 (en) * 2010-12-30 2012-07-05 STMicroelectronics NV, Country of Incorporation: Italy Method and system for controlling communication between an uicc and an external application
CN107318098A (en) * 2016-04-27 2017-11-03 中国电信股份有限公司 A kind of terminal control method, SIM cards, communication module and terminal
CN107484152A (en) * 2017-08-01 2017-12-15 中国联合网络通信集团有限公司 The management method and device of terminal applies
CN107844821A (en) * 2017-09-22 2018-03-27 深圳市文鼎创数据科技有限公司 Smart card and its control method, computer-readable recording medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050259673A1 (en) * 2004-05-18 2005-11-24 Axalto Inc. Method and system for end-to-end communication between a universal integrated circuit card and a remote entity over an IP-based wireless wide area network and the internet
GB2467599A (en) * 2009-02-10 2010-08-11 Nec Corp Communications device storing new network access data from smart card
CN104768146B (en) * 2014-01-02 2019-06-28 中兴通讯股份有限公司 Function control method and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120172016A1 (en) * 2010-12-30 2012-07-05 STMicroelectronics NV, Country of Incorporation: Italy Method and system for controlling communication between an uicc and an external application
CN102348017A (en) * 2011-09-07 2012-02-08 中国联合网络通信集团有限公司 Calling method of terminal application, terminal device and UICC (Universal Integrated Circuit Card)
CN107318098A (en) * 2016-04-27 2017-11-03 中国电信股份有限公司 A kind of terminal control method, SIM cards, communication module and terminal
CN107484152A (en) * 2017-08-01 2017-12-15 中国联合网络通信集团有限公司 The management method and device of terminal applies
CN107844821A (en) * 2017-09-22 2018-03-27 深圳市文鼎创数据科技有限公司 Smart card and its control method, computer-readable recording medium

Also Published As

Publication number Publication date
CN110719581A (en) 2020-01-21

Similar Documents

Publication Publication Date Title
WO2020011026A1 (en) Terminal application control method, apparatus, and system
EP3022952B1 (en) Billing of relayed device
CN108243192B (en) Method and system for identifying application access network
EP3662638B1 (en) Transport method selection for delivery of server notifications
WO2015116681A1 (en) Context-aware and proximity-aware service layer connectivity management
CN107852669B (en) Method and system for MTC service management using VNF
EP3117586A1 (en) Cross-layer context management
CN108712485A (en) A kind of resource subscription method and apparatus of internet of things equipment
EP3731545B1 (en) Communication method and devices
US11405481B2 (en) System and methods for service layer cache management
EP3790308B1 (en) Business service quality monitoring method, device and system
US11647104B2 (en) Data processing method and apparatus, and device
WO2023279896A1 (en) Message processing method, electronic device, and storage medium
WO2021189235A1 (en) Data transmission method and apparatus, and communication device
CN113382454B (en) Communication method and device
US20220053309A1 (en) Apparatus, Method and Program for Transmitting and Receiving Data to and From IOT Device
US20200305207A1 (en) Data transmission method and device and computer storage medium
US11487910B2 (en) Terminal and communication method
CN210431909U (en) Identity card information reading system
US8949476B2 (en) Method and apparatus for providing an interface between a UICC and a processor in an access terminal that supports asynchronous command processing by the UICC
US20220141309A1 (en) Efficient resource representation exchange between service layers
WO2024061091A1 (en) Network communication method and apparatus, and network-side device, terminal and medium
JP7262550B2 (en) Apparatus, method and program for transmitting/receiving data to/from IoT device
WO2023143414A1 (en) Data transmission method and apparatus, configuration method and apparatus, and terminal and network-side device
JP6509413B1 (en) Device, method and program for transmitting and receiving data with IoT device

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: 19833869

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19833869

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 02/02/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 19833869

Country of ref document: EP

Kind code of ref document: A1