An interaction method based on enhanced BIP, a communication card and a terminal
By introducing a forced closure mechanism for BIP connections and a connection state synchronization mechanism into the BIP protocol, the problem of the BIP protocol being unable to handle multiple connection requests and abnormal connection recovery is solved, thereby improving the reliability of the interaction between the communication card and the remote entity and the service experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-10
- Publication Date
- 2026-04-14
AI Technical Summary
The existing BIP protocol cannot handle multiple connection requests when the communication card interacts with remote entities, resulting in an unknown connection status and the inability to restore the BIP connection in abnormal situations, which affects the reliability of services.
A mechanism for forcibly closing the BIP connection and a connection status synchronization mechanism are introduced. By triggering SMS messages with parameters to manage the BIP connection, the BIP platform can accurately know the connection status of the communication card.
It enables reliable recovery and state synchronization of BIP connections, improves the business experience, and supports normal communication under a multi-BIP platform architecture.
Smart Images

Figure CN115802297B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to an interaction method based on the enhanced bearer-independent protocol (BIP), as well as a communication card and terminal. Background Technology
[0002] BIP is an internationally standardized data exchange protocol between a communication card (or simply a card) and a remote entity. Here, the remote entity refers to an entity other than the communication card. Through BIP, the communication card can interact with the remote entity, thereby providing a secure, high-speed, and reliable data channel for services.
[0003] However, the current BIP has some drawbacks. One of these drawbacks is that the communication card can only handle one BIP connection. If the communication card has already established a BIP connection and the BIP platform initiates another connection establishment request, the request will fail and no response will be sent to the BIP platform. This makes it impossible for the BIP platform to know the connection status of the communication card. Summary of the Invention
[0004] To address the aforementioned technical problems, embodiments of the present invention provide an interaction method based on enhanced BIP, as well as a communication card, a terminal, and a computer-readable storage medium.
[0005] The enhanced BIP-based interaction method provided in this application embodiment is applied to a communication card, and the method includes:
[0006] Get the trigger SMS;
[0007] Determine whether the trigger SMS carries a first parameter and a second parameter, wherein the first parameter is used to trigger the establishment of a BIP connection, and the second parameter is used to indicate the closure of the BIP connection;
[0008] The system interacts with the terminal and / or BIP platform based on the judgment results.
[0009] The communication card provided in this application embodiment includes:
[0010] The acquisition unit is used to acquire the trigger SMS message;
[0011] The judgment unit is used to determine whether the triggering SMS carries a first parameter and a second parameter, wherein the first parameter is used to trigger the establishment of a BIP connection, and the second parameter is used to indicate the closure of the BIP connection;
[0012] The interaction unit is used to interact with the terminal and / or BIP platform based on the judgment result.
[0013] The communication card provided in this application includes a processor and a memory. The memory is used to store computer programs, and the processor is used to call and run the computer programs stored in the memory to execute any of the above-described interactive methods based on enhanced BIP.
[0014] The terminal provided in this application embodiment has a built-in communication card, wherein the communication card includes:
[0015] The acquisition unit is used to acquire the trigger SMS message;
[0016] The judgment unit is used to determine whether the triggering SMS carries a first parameter and a second parameter, wherein the first parameter is used to trigger the establishment of a BIP connection, and the second parameter is used to indicate the closure of the BIP connection;
[0017] The interaction unit is used to interact with the terminal and / or BIP platform based on the judgment result.
[0018] The terminal provided in this application embodiment has a built-in communication card, wherein the communication card includes a processor and a memory, the memory being used to store computer programs, and the processor being used to call and run the computer programs stored in the memory to execute any of the above-described interactive methods based on enhanced BIP.
[0019] The computer-readable storage medium provided in this application embodiment is used to store a computer program that causes a computer to execute any of the methods described above.
[0020] In the technical solution of this application embodiment, BIP is enhanced by introducing a mechanism for forcibly closing the BIP connection. After the communication card receives the trigger SMS, it determines whether the trigger SMS carries a first parameter and a second parameter. The first parameter is used to trigger the establishment of a BIP connection, and the second parameter is used to indicate the closure of the BIP connection. Based on the determination result, the communication card interacts with the terminal and / or the BIP platform, thereby enabling the BIP platform to accurately know the connection status of the communication card, thus improving the service experience. Attached Figure Description
[0021] Figure 1 This is an architecture diagram of the communication protocol provided in the embodiments of this application;
[0022] Figure 2 This is a flowchart of the BIP protocol interaction provided in the embodiments of this application;
[0023] Figure 3 This is an interaction flowchart under the dual-BIP platform architecture provided in the embodiments of this application;
[0024] Figure 4 This is a schematic diagram of BIP connection state loss of synchronization provided in an embodiment of this application;
[0025] Figure 5 This is a flowchart illustrating the interaction method based on enhanced BIP provided in the embodiments of this application. Figure 1 ;
[0026] Figure 6 This is a flowchart illustrating the interaction method based on enhanced BIP provided in the embodiments of this application. Figure 2 ;
[0027] Figure 7 This is a schematic diagram of the communication card provided in an embodiment of this application;
[0028] Figure 8 This is a schematic structural diagram of a communication card provided in an embodiment of this application. Detailed Implementation
[0029] The technical solutions of the embodiments of this application will now be described with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0030] It should be noted that, in the embodiments of this application, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, in the embodiments of this application, the character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0031] It should be understood that the term "instruction" mentioned in the embodiments of this application can be a direct instruction, an indirect instruction, or an indication of a relationship. For example, A instructing B can mean that A directly instructs B, such as B being able to obtain information through A; it can also mean that A indirectly instructs B, such as A instructing C, so B can obtain information through C; or it can mean that there is a relationship between A and B.
[0032] In the description of the embodiments of this application, the term "correspondence" may indicate that there is a direct or indirect correspondence between two things, or that there is an association between two things, or that there is a relationship of instruction and being instructed, configuration and being configured, etc.
[0033] To facilitate understanding of the technical solutions of the embodiments of this application, the relevant technologies of the embodiments of this application are described below. The following relevant technologies are optional solutions and can be combined with the technical solutions of the embodiments of this application in any way, and they all fall within the protection scope of the embodiments of this application.
[0034] BIP is an internationally standardized data exchange protocol between a communication card (or simply a card) and a remote entity. Here, the remote entity refers to an entity other than the communication card. Through BIP, the communication card can interact with the remote entity, thereby providing a secure, high-speed, and reliable data channel for services. Figure 1 This diagram illustrates the protocol architecture of a server, mobile equipment (ME), and communication card, where the BIP (Block Instructions) resides on both the ME and the communication card side. It should be noted that the ME can also be referred to as a terminal, and the communication card can be simply called a card. For example, a communication card can be a Subscriber Identity Module (SIM), a Universal Integrated Circuit Card (UICC), or an embedded eUICC, etc.
[0035] ETSI TS102223 defines the following BIP proactive commands and notification events:
[0036] Active commands: Open Channel command, Send Data command, Receive Data command, Close Channel command.
[0037] Notification events: Data Available Event and Channel Status Event.
[0038] It should be noted that the above-mentioned proactive commands and notification events all belong to Application Protocol Data Unit (APDU) commands.
[0039] ESTI TS102226 defines the Remote File Management (RFM) mechanism and the Remote Application Management (RAM) mechanism. The Remote Application HTTPS mode references the Global Platform Card Specification Amendment B and implements Remote Application Management over HTTP.
[0040] Taking the RAM mechanism as an example, the BIP protocol interaction process is as follows:Figure 2 As shown, it includes the following steps:
[0041] Step 201: The BIP platform receives the request to download the application.
[0042] Here, the BIP platform is a capability platform that supports the BIP mechanism. Business platforms (i.e., business servers) or clients can send application download requests to the BIP platform.
[0043] Step 202: The BIP platform sends a data SMS message to the communication card through the terminal, carrying the connection establishment parameters.
[0044] Here, the connection establishment parameters include information such as the address and port of the BIP platform. The connection establishment parameters are used by the communication card to establish a BIP connection with the BIP platform.
[0045] Step 203: The communication card parses the data SMS and processes the connection establishment parameters.
[0046] Step 204: The communication card sends an Open Channel command to the terminal.
[0047] Step 205: After receiving the Open Channel command, the terminal establishes an HTTPS connection based on TCP / IP with the BIP platform.
[0048] It is important to note that the relationship between HTTPS connections and BIP connections is as follows: HTTPS connections are higher-level connections than BIP connections. In other words, BIP connections are lower-level connections, while HTTPS connections are higher-level connections. BIP connections and HTTPS connections correspond to different layers of the same connection.
[0049] Step 206: The BIP platform returns the processing result to the terminal.
[0050] Here, the processing result is, for example, whether the connection was successfully established.
[0051] Step 207: The terminal sends the execution result of the Open Channel command to the communication card.
[0052] Here, the execution result may be, for example, whether the connection was successfully established.
[0053] Step 208: The communication card sends the Send Data command to the terminal.
[0054] Here, the Send Data command carries an HTTPS request data command, which is used to request data to be sent from the BIP platform.
[0055] Step 209: The terminal sends an HTTPS request data command to the BIP platform.
[0056] Step 210: The BIP platform processes the request data command.
[0057] Step 211: The BIP platform returns an HTTPS response data command to the terminal.
[0058] Here, the HTTPS response data command carries the data that needs to be sent to the communication card.
[0059] Step 212: The terminal sends a Data Available Event to the communication card.
[0060] Here, the Data Available Event is used to notify the communication card that the terminal has data available to send.
[0061] Step 213: The communication card sends a Receive Data command to the terminal.
[0062] Step 214: The terminal sends data to the communication card.
[0063] Step 215: The communication card processes the data.
[0064] Step 216: The communication card sends the Send Data command to the terminal.
[0065] Step 217: The terminal sends an HTTPS request data command to the BIP platform.
[0066] Step 218: The BIP platform confirms that there is no further data and ends the interaction.
[0067] Step 219: The BIP platform returns an HTTPS response data command to the terminal, carrying a No-Content type message.
[0068] Step 220: The terminal sends a Data Available Event to the communication card.
[0069] Step 221: The communication card sends a Receive Data command to the terminal.
[0070] Step 222: The terminal sends data to the communication card.
[0071] Step 223: The communication card sends a Close Channel command to the terminal.
[0072] Here, the Close Channel command is used to trigger the closure of the BIP connection.
[0073] Step 224: The terminal sends the command result to the communication card.
[0074] It should be noted that the communication card is built into the terminal, which can also be called an ME. The BIP platform interacts with the communication card through the terminal. For ease of description, the interaction between the BIP platform and the communication card through the terminal can be directly referred to as the interaction between the BIP platform and the communication card.
[0075] The above Figure 2 In the illustrated process, the BIP platform sends a data SMS to the communication card, triggering the communication card to establish a BIP connection, which in turn establishes an HTTPS connection between the communication card and the BIP platform. The communication card and the BIP platform then exchange data through a secure data channel established by this connection. Further, if there is no subsequent data exchange, the BIP platform sends a No-Content message to the communication card. Upon receiving the No-Content message, the communication card sends a Close Channel command to the terminal, closing the BIP connection.
[0076] According to current standards, a communication card can only handle one HTTPS connection. If the communication card has already established an HTTPS connection, and the BIP platform initiates another connection establishment request, the request will fail, and no response notification will be sent to the BIP platform. This makes the BIP platform unaware of the connection status of the communication card, especially in a dual-BIP platform architecture, such as... Figure 3 As shown, BIP platform 1 has established a BIP connection, but BIP platform 2's request to establish a BIP connection fails, and the reason is unclear, making BIP capabilities of BIP platform 2 unavailable.
[0077] On the other hand, anomalies (such as network outages) may occur during BIP interaction, causing the BIP connection to be interrupted. The current mechanism is that in the event of an abnormal network outage, the BIP platform times out and disconnects the BIP connection, and the terminal sends a Channel Status (Link Dropped) Event to notify the communication card (e.g., ...). Figure 2 The exception handling process shown is that the communication card processes the event and closes the BIP connection. However, actual testing revealed inconsistent support for this event across terminals. If the terminal does not send a Channel Status (Link Dropped) Event during an abnormal network disconnection, the BIP platform disconnects the BIP connection while the communication card's state remains unchanged. This causes the BIP connection states of the BIP platform and the communication card to become out of sync. The BIP platform's re-request for the BIP connection fails, resulting in an unrecoverable BIP exception. Figure 4 As shown.
[0078] In summary, the current BIP mechanism has the following problems: 1) It lacks a mechanism for forcibly closing BIP connections, causing BIP anomalies to become unrecoverable; 2) It lacks a mechanism for synchronizing BIP connection states, causing the BIP platform to fail to establish BIP connections. To address these issues, the following technical solutions are proposed in this application. These solutions enhance BIP by introducing a mechanism for forcibly recovering from BIP anomalies and a mechanism for synchronizing BIP connection states.
[0079] To facilitate understanding of the technical solutions of the embodiments of this application, the technical solutions of this application are described in detail below through specific embodiments. The above-mentioned related technologies are optional solutions and can be arbitrarily combined with the technical solutions of the embodiments of this application, all of which fall within the protection scope of the embodiments of this application. The embodiments of this application include at least some of the following contents.
[0080] The technical solution of this application embodiment enhances BIP. On one hand, it adds a command to force close the BIP connection so that, in abnormal situations, the platform can restore the BIP connection by sending a data SMS carrying the command to close the BIP connection. On the other hand, it realizes the synchronization of the BIP connection status between the platform and the communication card. This will be described below.
[0081] It should be noted that the description of "BIP connection" in the following description can also be replaced with "HTTPS connection", "Transport Layer Security Session (TLS session)", or "HTTPS session (HTTPS session)".
[0082] BIP Enhancement Protocol - Parameters for Forcibly Closing a BIP Connection
[0083] The international standard Global Platform Card Specification Amendment B defines the parameters carried in SMS messages triggered by the BIP protocol, as shown in Table 1 below.
[0084]
[0085] Table 1
[0086] The technical solution of this application embodiment enhances the parameters shown in Table 1. Specifically, a new parameter is introduced, namely, the parameter for forcibly closing the BIP connection (also known as the parameter for forcibly closing the HTTPS connection). The new parameter can also be called a command to forcibly close the BIP connection. As one implementation, this new parameter is Tag=82 (i.e., tag value 82). Tag=82 and Tag=81 are shown in Table 2 below.
[0087] Label Length Name ‘81’ 0-n Administration session triggering parameters ‘82’ 00 Close tls session
[0088] Table 2
[0089] Here, "close TLS session" can also be understood as "close BIP connection", "close HTTPS connection", or "close HTTPS session".
[0090] BIP Enhancement Protocol - Connection Status Notification Parameters
[0091] The BIP platform triggers the establishment of a BIP connection by sending a data SMS (i.e., a trigger SMS). If the communication card has already established a BIP connection, the communication card notifies the BIP platform by replying with a Proof of Receipt (POR) command (i.e., response data). The structure of the response data is shown in Table 3 below.
[0092]
[0093] Table 3
[0094] The technical solution of this application embodiment enhances the parameters shown in Table 3 by introducing new response data, namely, response status codes. As one implementation method, the values and meanings of the response status codes are shown in Table 4 below.
[0095] Value Meaning 01 Current tls session is executing 02 Tls session is closed 03 Parameter error
[0096] Table 4
[0097] Figure 5 This is a flowchart illustrating the interaction method based on enhanced BIP provided in the embodiments of this application. Figure 1 This method is applied to communication cards, such as... Figure 5 As shown, the interaction method based on enhanced BIP includes the following steps:
[0098] Step 501: Obtain the trigger SMS.
[0099] In this embodiment of the application, the communication card receives an APDU command; 1) if the APDU command is a trigger SMS command, then the trigger SMS is obtained from the trigger SMS command; 2) if the APDU command is a terminal response command, then it is determined whether the communication card has cached a trigger SMS, and if so, the cached trigger SMS is obtained.
[0100] Step 502: Determine whether the triggering SMS carries a first parameter and a second parameter, wherein the first parameter is used to trigger the establishment of a BIP connection, and the second parameter is used to indicate the closure of the BIP connection.
[0101] In this embodiment, the first parameter is tag value 81, and the second parameter is tag value 82, as shown in Table 2 above. Here, the first parameter can be understood as a command to establish a BIP connection, and the second parameter can be understood as a command to close a BIP connection.
[0102] It should be noted that the description of "BIP connection" can also be replaced with "HTTPS connection", "TLS session" or "HTTPS session".
[0103] In some optional implementations, before determining whether the trigger SMS carries the first parameter and the second parameter, the communication card determines whether the processing program is in an available state; wherein, if the processing program is in an available state, the step of determining whether the trigger SMS carries the first parameter and the second parameter is executed; if the processing program is in an unavailable state, the trigger SMS is cached. Here, as an example, the processing program can be a proactive handler.
[0104] Step 503: Interact with the terminal and / or BIP platform based on the judgment result.
[0105] In this embodiment of the application, the communication card interacts with the terminal and / or BIP platform based on the judgment result. The interaction process is described in detail below in conjunction with different judgment results.
[0106] Branch 1
[0107] If the determination result is that the triggering SMS carries the first parameter and the second parameter, then a first POR command is sent to the BIP platform. The first POR command carries first response data, which is used to indicate that the parameter is incorrect.
[0108] In the above scheme, the first response data can correspond to status code 03 in Table 4.
[0109] Branch Two
[0110] If the determination result is that the trigger SMS carries the first parameter, then determine whether there is an established BIP connection;
[0111] Branch 2-1) If an established BIP connection exists, send a second POR command to the BIP platform. The second POR command carries second response data, which is used to indicate that an established BIP connection exists.
[0112] Branch 2-2) If no BIP connection has been established, process the trigger SMS to establish a BIP connection.
[0113] In the above solution, determining whether an established BIP connection exists can be replaced by determining whether a TLS session is currently in operation.
[0114] In the above scheme, the second response data can correspond to status code 01 in Table 4.
[0115] In the above scheme, the step of processing the trigger SMS to establish a BIP connection includes: the communication card sending a BIP channel open command to the terminal, the BIP channel open command being used to trigger the terminal to establish a BIP connection between the communication card and the BIP platform, such as... Figure 2 Steps 204 to 207 are shown. Further, in some optional embodiments, after establishing a BIP connection, data interaction between the communication card and the BIP platform is completed through the BIP connection (e.g., ...). Figure 2 After steps 208 to 215 (as shown), the communication card sends a BIP channel close command to the terminal. This BIP channel close command triggers the terminal to close the BIP connection. Here, the BIP channel open command is also known as the Open Channel command, and the BIP channel close command is also known as the Close Channel command.
[0116] Branch 3
[0117] If the determination result is that the trigger SMS carries the second parameter, then determine whether there is an established BIP connection;
[0118] Branch 3-1) If an established BIP connection exists, a command to close the BIP channel is sent to the terminal. The command to close the BIP channel is used to trigger the terminal to close the BIP connection. A third POR command is also sent to the BIP platform. The third POR command carries third response data, which is used to indicate that the BIP connection has been closed.
[0119] Branch 3-2) If no established BIP connection exists, a third POR command is sent to the BIP platform. The third POR command carries third response data, which indicates that the BIP connection has been closed.
[0120] In the above solution, determining whether an established BIP connection exists can be replaced by determining whether a TLS session is currently in operation.
[0121] In the above scheme, the third response data can correspond to status code 02 in Table 4.
[0122] Branch 4
[0123] If the determination result is that the triggering SMS does not carry the first parameter and the second parameter, then a first POR command is sent to the BIP platform. The first POR command carries first response data, which is used to indicate that the parameters are incorrect.
[0124] In the above scheme, the first response data can correspond to status code 03 in Table 4.
[0125] Figure 6 This is a flowchart illustrating the interaction method based on enhanced BIP provided in the embodiments of this application. Figure 2 This method is applied to communication cards, such as... Figure 6 As shown, the interaction method based on enhanced BIP includes the following steps:
[0126] Step 601: The communication card receives an APDU command. If the APDU command is a trigger SMS command, proceed to step 602. If the APDU command is a terminal response command, proceed to step 613.
[0127] Step 602: The communication card receives the trigger SMS command.
[0128] Step 603: Determine if the active processing procedure is available. If it is not available, proceed to step 604. If it is available, proceed to step 605.
[0129] Step 604: Cache the triggered SMS message, skip to step 621.
[0130] Here, for BIP-triggered SMS messages, only the latest one is cached.
[0131] Step 605: Determine whether the triggered SMS message carries parameters 81 and 82. If yes, proceed to step 606; otherwise, proceed to step 607.
[0132] Step 606: Return to the POR command, carrying response data 03, and jump to step 621.
[0133] Step 607: Determine whether the triggered SMS message carries parameter 81. If yes, proceed to step 608; otherwise, proceed to step 615.
[0134] Step 608: Determine if there is an ongoing TLS session. If yes, proceed to step 609; otherwise, proceed to step 610.
[0135] Step 609: Do not cache the triggered SMS, return POR with response data 01, and jump to step 621.
[0136] Step 610: Process the triggered SMS and send an active command to Open Channel to establish a BIP connection.
[0137] Step 611: Complete BIP data interaction based on BIP connection.
[0138] Step 612: Send the active command Close Channel to close the BIP connection, then skip to step 621.
[0139] Step 613: Receive terminal response command.
[0140] Step 614: Determine if there is a cached trigger SMS. If there is, proceed to step 605; otherwise, proceed to step 621.
[0141] Step 615: Determine whether the triggered SMS carries parameter 82. If not, proceed to step 616; if yes, proceed to step 617.
[0142] Step 616: Return to the POR command, carrying response data 03, and jump to step 621.
[0143] Step 617: Determine if there is an ongoing TLS session. If yes, proceed to step 618; otherwise, proceed to step 620.
[0144] Step 618: Close the TLS session.
[0145] Step 619: Send the active command Close Channel to close the BIP connection.
[0146] Step 620: Return the POR command with response data 02, notify the BIP platform that the TLS session has been closed, and jump to step 621.
[0147] Step 621: End the processing flow.
[0148] The technical solution of this application embodiment supports, on the one hand, the command to force close BIP connection, which can force the recovery of abnormal BIP connection and improve the service experience; on the other hand, it supports connection status synchronization, supports multi-BIP platform architecture, and improves the success rate of BIP protocol processing.
[0149] Figure 7 This is a schematic diagram of the communication card provided in the embodiments of this application, as shown below. Figure 7 As shown, the communication card includes:
[0150] Acquisition unit 701 is used to acquire the trigger SMS message;
[0151] The judgment unit 702 is used to determine whether the trigger SMS carries a first parameter and a second parameter, wherein the first parameter is used to trigger the establishment of a BIP connection and the second parameter is used to indicate the closure of the BIP connection;
[0152] The interaction unit 703 is used to interact with the terminal and / or BIP platform based on the judgment result.
[0153] In some optional embodiments, the acquisition unit 701 is used to receive APDU commands; if the APDU command is a trigger SMS command, then the trigger SMS is obtained from the trigger SMS command; if the APDU command is a terminal response command, then it is determined whether the communication card has cached trigger SMS, and if so, the cached trigger SMS is obtained.
[0154] In some optional embodiments, the determination unit 702 is further configured to determine whether the processing program is in an available state before determining whether the triggering SMS carries the first parameter and the second parameter;
[0155] If the processing program is available, it performs the step of determining whether the triggering SMS carries the first parameter and the second parameter; if the processing program is unavailable, it caches the triggering SMS.
[0156] In some optional embodiments, the interaction unit 703 is configured to send a first POR command to the BIP platform if the determination result is that the trigger SMS carries the first parameter and the second parameter. The first POR command carries first response data, which is used to indicate that the parameter is incorrect.
[0157] In some optional embodiments, the judgment unit 702 is used to determine whether an established BIP connection exists if the judgment result is that the trigger SMS carries the first parameter; the interaction unit 703 is used to send a second POR command to the BIP platform if an established BIP connection exists, the second POR command carrying second response data, the second response data being used to indicate that an established BIP connection exists; if no established BIP connection exists, the trigger SMS is processed to establish a BIP connection.
[0158] In some optional embodiments, the interaction unit 703 is used to send a command to the terminal to enable the BIP channel, the command being used to trigger the terminal to establish a BIP connection between the communication card and the BIP platform.
[0159] In some optional embodiments, the interaction unit 703 is used to send a command to close the BIP channel to the terminal after completing the data interaction between the communication card and the BIP platform through the BIP connection. The command to close the BIP channel is used to trigger the terminal to close the BIP connection.
[0160] In some optional embodiments, the judgment unit 702 is used to determine whether an established BIP connection exists if the judgment result is that the trigger SMS carries the second parameter; the interaction unit 703 is used to send a BIP channel closure command to the terminal if an established BIP connection exists, the BIP channel closure command being used to trigger the terminal to close the BIP connection, and to send a third POR command to the BIP platform, the third POR command carrying third response data, the third response data being used to indicate that the BIP connection has been closed; if no established BIP connection exists, a third POR command is sent to the BIP platform, the third POR command carrying third response data, the third response data being used to indicate that the BIP connection has been closed.
[0161] In some optional embodiments, the interaction unit 703 is configured to send a first POR command to the BIP platform if the determination result is that the trigger SMS does not carry the first parameter and the second parameter. The first POR command carries first response data, which is used to indicate that the parameters are incorrect.
[0162] In some alternative implementations, the first parameter is label value 81, and the second parameter is label value 82.
[0163] Those skilled in the art should understand that Figure 7 The functions of each unit in the communication card shown can be understood by referring to the relevant descriptions of the aforementioned methods. Figure 7 The functions of each unit in the communication card shown can be implemented by a program running on a processor or by specific logic circuits.
[0164] Figure 8 This is a schematic structural diagram of a communication card 800 provided in an embodiment of this application. Figure 8 The communication card 800 shown includes a processor 810, which can call and run computer programs from memory to implement the methods in the embodiments of this application.
[0165] Optionally, such as Figure 8 As shown, the communication card 800 may further include a memory 820. The processor 810 can retrieve and run computer programs from the memory 820 to implement the methods described in this embodiment.
[0166] The memory 820 can be a separate device independent of the processor 810, or it can be integrated into the processor 810.
[0167] Optionally, such as Figure 8As shown, the communication card 800 may also include a transceiver 830, which the processor 810 can control to communicate with other devices. Specifically, it can send information or data to other devices or receive information or data sent by other devices.
[0168] The communication card 800 can implement the corresponding processes implemented by the communication card in the various methods of the embodiments of this application, which will not be described in detail here for the sake of brevity.
[0169] This application also provides a terminal with a built-in communication card, the structure of which can be referred to the above. Figure 7 or Figure 8 The proposed solution will not be elaborated further.
[0170] It should be understood that the processor in the embodiments of this application may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method embodiments can be completed by integrated logic circuits in the processor's hardware or by instructions in software form. The processor described above can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above method.
[0171] It is understood that the memory in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DR RAM). It should be noted that the memory used in the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0172] It should be understood that the above-described memory is exemplary and not a limiting description. For example, the memory in the embodiments of this application may also be static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DR RAM), etc. That is to say, the memory in the embodiments of this application is intended to include, but is not limited to, these and any other suitable types of memory.
[0173] This application also provides a computer-readable storage medium for storing computer programs.
[0174] Optionally, the computer-readable storage medium can be applied to the communication card in the embodiments of this application, and the computer program causes the computer to execute the corresponding processes of the communication card in the various methods of the embodiments of this application. For the sake of brevity, it will not be described in detail here.
[0175] This application also provides a computer program product, including computer program instructions.
[0176] Optionally, the computer program product can be applied to the communication card in the embodiments of this application, and the computer program instructions cause the computer to execute the corresponding processes implemented by the communication card in the various methods of the embodiments of this application. For the sake of brevity, they will not be described in detail here.
[0177] This application also provides a computer program.
[0178] Optionally, the computer program can be applied to the communication card in the embodiments of this application. When the computer program is run on the computer, it causes the computer to execute the corresponding processes implemented by the communication card in the various methods of the embodiments of this application. For the sake of brevity, it will not be described in detail here.
[0179] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0180] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0181] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0182] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0183] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0184] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0185] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. An interaction method based on Enhanced Bearer Independent Protocol (BIP), characterized in that, Applied to a communication card, the method includes: Get the trigger SMS; Determine whether the triggering SMS carries a first parameter and a second parameter, wherein the first parameter is used to trigger the establishment of a BIP connection, and the second parameter is used to indicate the closure of the BIP connection; Interact with the terminal and / or BIP platform based on the judgment result; The interaction with the terminal and / or BIP platform based on the judgment result includes: If the determination result is that the trigger SMS carries the first parameter, then determine whether there is an established BIP connection; If an established BIP connection already exists, a second POR command is sent to the BIP platform. The second POR command carries second response data, which is used to indicate that an established BIP connection already exists. If no BIP connection has been established, the trigger SMS is processed to establish a BIP connection. The interaction with the terminal and / or BIP platform based on the judgment result also includes: If the determination result is that the trigger SMS carries the second parameter, then determine whether there is an established BIP connection; If an established BIP connection exists, a command to close the BIP channel is sent to the terminal. The command to close the BIP channel is used to trigger the terminal to close the BIP connection. A third POR command is also sent to the BIP platform. The third POR command carries third response data, which is used to indicate that the BIP connection has been closed. If no BIP connection has been established, a third POR command is sent to the BIP platform. The third POR command carries third response data, which indicates that the BIP connection has been closed.
2. The method according to claim 1, characterized in that, The process of obtaining the trigger SMS includes: Receive Application Protocol Data Unit (APDU) commands; If the APDU command is a trigger SMS command, then the trigger SMS is obtained from the trigger SMS command; If the APDU command is a terminal response command, then determine whether the communication card has cached trigger SMS messages. If so, retrieve the cached trigger SMS messages.
3. The method according to claim 1, characterized in that, Before determining whether the triggered SMS message carries the first parameter and the second parameter, the method further includes: Determine if the handler is in an available state; If the processing program is available, it performs the step of determining whether the triggering SMS carries the first parameter and the second parameter; if the processing program is unavailable, it caches the triggering SMS.
4. The method according to claim 1, characterized in that, The interaction with the terminal and / or BIP platform based on the judgment result includes: If the determination result is that the triggering SMS carries the first parameter and the second parameter, then a first POR command is sent to the BIP platform. The first POR command carries first response data, which is used to indicate that the parameter is incorrect.
5. The method according to claim 1, characterized in that, The process of processing the trigger SMS to establish a BIP connection includes: Send a command to the terminal to enable the BIP channel. The command is used to trigger the terminal to establish a BIP connection between the communication card and the BIP platform.
6. The method according to claim 1, characterized in that, After establishing the BIP connection, the method further includes: After completing the data interaction between the communication card and the BIP platform through the BIP connection, a command to close the BIP channel is sent to the terminal. The command to close the BIP channel is used to trigger the terminal to close the BIP connection.
7. The method according to claim 1, characterized in that, The interaction with the terminal and / or BIP platform based on the judgment result includes: If the determination result is that the triggering SMS does not carry the first parameter and the second parameter, then a first POR command is sent to the BIP platform. The first POR command carries first response data, which is used to indicate that the parameters are incorrect.
8. The method according to any one of claims 1 to 7, characterized in that, The first parameter is the tag value 81, and the second parameter is the tag value 82.
9. A communication card, characterized in that, include: The acquisition unit is used to acquire the trigger SMS message; The judgment unit is used to determine whether the triggering SMS carries a first parameter and a second parameter, wherein the first parameter is used to trigger the establishment of a BIP connection, and the second parameter is used to indicate the closure of the BIP connection; An interaction unit is used to interact with the terminal and / or BIP platform based on the judgment result; The judgment unit is used to determine whether there is an established BIP connection if the judgment result is that the trigger SMS carries the first parameter. The interaction unit is configured to send a second POR command to the BIP platform if an established BIP connection exists, the second POR command carrying second response data, the second response data being used to indicate the existence of an established BIP connection; if no established BIP connection exists, the unit processes the trigger SMS to establish a BIP connection. The judgment unit is further configured to, if the judgment result is that the trigger SMS carries the second parameter, determine whether an established BIP connection exists; if an established BIP connection exists, the interaction unit sends a BIP channel closure command to the terminal, the BIP channel closure command being used to trigger the terminal to close the BIP connection, and sends a third POR command to the BIP platform, the third POR command carrying third response data, the third response data being used to indicate that the BIP connection has been closed; if no established BIP connection exists, a third POR command is sent to the BIP platform, the third POR command carrying third response data, the third response data being used to indicate that the BIP connection has been closed.
10. A communication card, characterized in that, include: A processor and a memory for storing a computer program, the processor for calling and running the computer program stored in the memory to perform the method as described in any one of claims 1 to 8.
11. A terminal, characterized in that, The terminal has a built-in communication card, wherein the communication card includes: The acquisition unit is used to acquire the trigger SMS message; The judgment unit is used to determine whether the triggering SMS carries a first parameter and a second parameter, wherein the first parameter is used to trigger the establishment of a BIP connection, and the second parameter is used to indicate the closure of the BIP connection; An interaction unit is used to interact with the terminal and / or BIP platform based on the judgment result; The judgment unit is used to determine whether there is an established BIP connection if the judgment result is that the trigger SMS carries the first parameter. The interaction unit is configured to send a second POR command to the BIP platform if an established BIP connection exists, the second POR command carrying second response data, the second response data being used to indicate the existence of an established BIP connection; if no established BIP connection exists, the unit processes the trigger SMS to establish a BIP connection. The judgment unit is further configured to, if the judgment result is that the trigger SMS carries the second parameter, determine whether an established BIP connection exists; if an established BIP connection exists, the interaction unit sends a BIP channel closure command to the terminal, the BIP channel closure command being used to trigger the terminal to close the BIP connection, and sends a third POR command to the BIP platform, the third POR command carrying third response data, the third response data being used to indicate that the BIP connection has been closed; if no established BIP connection exists, a third POR command is sent to the BIP platform, the third POR command carrying third response data, the third response data being used to indicate that the BIP connection has been closed.
12. A terminal, characterized in that, The terminal has a built-in communication card, wherein the communication card includes a processor and a memory, the memory being used to store computer programs, and the processor being used to call and run the computer programs stored in the memory to perform the method as described in any one of claims 1 to 8.
13. A computer-readable storage medium, characterized in that, Used to store a computer program that causes a computer to perform the method as described in any one of claims 1 to 8.
Citation Information
Patent Citations
BIP data transmission method and device, computer equipment and storage medium
CN108282521A
Uiccs embedded in terminals or removable therefrom
US20150134958A1