Data interaction method, terminal device and storage medium
By determining the link building parameters and establishing IP connections in the upper layer application of the terminal device, the problem of long-term connection establishment of BIP channels in the prior art is solved, and a more efficient BIP connection establishment is achieved.
Patent Information
- Application Number
- CN202110688976.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-21
- Publication Date
- 2025-03-04
- Estimated Expiration
- 2041-06-21
AI Technical Summary
In the prior art, when the USIM card establishes a BIP channel with a service platform, it is necessary to trigger the USIM card to establish a BIP connection through data SMS, which results in a long time to establish a BIP channel connection.
The link building parameters are determined through the upper-level application of the terminal device, and the mobile terminal is controlled to establish IP connections with the remote platform based on the link building parameters, replacing data SMS, and optimizing the BIP link establishment process.
It shortens the time-consuming process of establishing connections in BIP channels and improves the efficiency of establishing BIP connections.
Smart Images

Figure CN115515252B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of mobile communication technology, and in particular to a data interaction method, a terminal device and a computer-readable storage medium. Background Art
[0002] USIM (Universal Subscriber Identity Module) is an important physical identifier of a user's mobile identity and an important resource controlled by operators. USIM card is a recognized security carrier in the industry. In addition to basic communication functions, USIM can also be open in space and cooperate with industry partners to carry various card applications (such as digital ID cards, USB shields, car keys, etc.).
[0003] In the related art, when the USIM card establishes a BIP (Bearer Independent Protocol) channel interaction with the service platform, the service platform needs to first trigger the USIM card to establish a BIP connection through a data SMS. Then the USIM card requests the terminal to establish an IP connection with the remote BIP gateway according to the parameters, so that the USIM card and the service platform can interact with each other based on the established IP connection. Since the related technical solution needs to trigger the data SMS first, and then establish a direct BIP channel with the BIP gateway based on the data SMS, there is a defect that it takes a long time to establish the BIP channel connection.
[0004] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of the present invention is to provide a data interaction method, a terminal device and a computer-readable storage medium, aiming to achieve the effect of shortening the link establishment time.
[0006] To achieve the above object, the present invention provides a data interaction method, which is applied to a terminal device. The data interaction method comprises the following steps:
[0007] Determine the link establishment parameters through the application;
[0008] A Bearer Independent Protocol (BIP) channel is established between the terminal device and the remote platform based on the link establishment parameters, so that the terminal device can perform data interaction with the remote platform through the BIP channel.
[0009] Optionally, after the step of determining the link establishment parameters by the application, the method further includes:
[0010] When the application has universal user identity card (USIM) access rights, the step of establishing a bearer independent protocol (BIP) channel between the terminal device and the remote platform based on the link establishment parameters is performed so that the terminal device can interact with the remote platform through the BIP channel for data.
[0011] Optionally, the step of establishing a Bearer Independent Protocol (BIP) channel between the terminal device and the remote platform based on the link establishment parameters so that the terminal device can perform data interaction with the remote platform through the BIP channel includes:
[0012] Generate a link establishment request according to the link establishment parameter, and send the link establishment request to a universal subscriber identity card USIM of the terminal device;
[0013] When the USIM receives the link establishment request, it controls the terminal device to establish the BIP channel with the remote platform, so that the terminal device can perform data interaction with the remote platform through the BIP channel.
[0014] Optionally, data exchange is performed between the terminal device and the remote platform based on IP data packets.
[0015] In addition, to achieve the above purpose, the data interaction method is applied to an application in a terminal device, comprising the following steps:
[0016] Determine the link building parameters;
[0017] The link establishment parameters are sent to the operating system through a preset interface, wherein when the operating system receives the link establishment parameters, a Bearer Independent Protocol (BIP) channel is established between the terminal device and the remote platform based on the link establishment parameters.
[0018] Optionally, when the application receives a link establishment request sent by the remote platform, the application executes the step of determining link establishment parameters.
[0019] Optionally, the step of determining the link establishment parameters includes:
[0020] Obtaining pre-stored parameters as the link establishment parameters; or
[0021] Sending a parameter request to the remote platform, and receiving the link establishment parameters fed back by the remote platform, wherein the remote platform feeds back the link establishment parameters to the terminal device when receiving the parameter request; or
[0022] A link establishment requirement sent by the remote platform is received, and the link establishment parameter is determined based on the link establishment requirement.
[0023] In addition, to achieve the above purpose, the data interaction method is applied to the operating system of the terminal device, comprising the following steps:
[0024] Receiving link establishment parameters sent by an application of the terminal device;
[0025] The link establishment parameters are sent to a baseband chip of the terminal device, wherein after receiving the link establishment parameters, the baseband chip establishes a Bearer Independent Protocol (BIP) channel between the terminal device and a remote platform based on the link establishment parameters.
[0026] Optionally, after the step of receiving the link establishment parameters sent by the application of the terminal device, the method further includes:
[0027] Determining whether the application has a Universal Subscriber Identity Module (USIM) access right;
[0028] When the application has the USIM access right, executing the step of sending the link establishment parameter to the baseband chip of the terminal device;
[0029] When the application does not have the USIM access authority, performing a preset feedback operation, wherein the preset feedback operation includes at least one of the following:
[0030] Ignore the link building parameters;
[0031] Outputting a prompt message indicating that the application does not have the USIM access authority;
[0032] Output risk warning information.
[0033] In addition, to achieve the above purpose, the data interaction method is applied to a baseband chip of a terminal device, comprising the following steps:
[0034] Receive the link establishment parameters sent by the operating system;
[0035] Generate a link establishment application protocol data unit APDU based on the link establishment parameters, and send the link establishment APDU to a universal user identity card USIM, wherein after receiving the link establishment APDU, the USIM sends an open channel OPENCHANNEL instruction to the baseband chip;
[0036] After receiving the OPEN CHANNEL instruction, a Bearer Independent Protocol (BIP) channel is established between the terminal device and the remote platform.
[0037] In addition, to achieve the above purpose, the data interaction method is applied to a remote platform, and the data interaction method includes the following steps:
[0038] Sending link establishment parameters to the terminal device, wherein after receiving the link establishment parameters, the terminal device establishes a bearer independent protocol BIP channel with the remote platform based on the link establishment parameters, so that the terminal device can interact with the remote platform through the BIP channel.
[0039] In addition, to achieve the above-mentioned purpose, the present invention also provides a terminal device, which includes a memory, a processor, and a data interaction program stored in the memory and executable on the processor, and the data interaction program, when executed by the processor, implements the steps of the data interaction method described above.
[0040] In addition, to achieve the above object, the present invention further provides a terminal device, the terminal device comprising:
[0041] An acquisition module, used to obtain a fill value of a slice differentiator SD field of the received single network slice selection auxiliary information S-NSSAI;
[0042] A setting module is used to set the filling value of the SD field to empty when the filling value of the SD field is a reserved value; or to set the filling value of the SD field to the reserved value when the filling value of the SD field is empty.
[0043] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a data interaction program is stored, and when the data interaction program is executed by a processor, the steps of the data interaction method described above are implemented.
[0044] The data interaction method, terminal device and computer-readable storage medium proposed in the embodiment of the present invention can directly determine the link establishment parameters through the upper layer application of the terminal device, and then control the mobile terminal to establish an IP connection with the remote platform based on the link establishment parameters. In this way, the purpose of replacing data SMS with the terminal local access card channel / terminal system instruction is achieved, thereby achieving the effect of optimizing the BIP link establishment process and shortening the link establishment time. The efficiency of BIP connection establishment is greatly improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 It is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiment of the present invention;
[0046] Figure 2 A schematic diagram of a flow chart of an embodiment of a data interaction method of the present invention;
[0047] Figure 3 A signaling flow chart involved in an embodiment of a data interaction method of the present invention;
[0048] Figure 4A schematic diagram of a flow chart of another embodiment of the data interaction method of the present invention;
[0049] Figure 5 A flowchart of another embodiment of the data interaction method of the present invention;
[0050] Figure 6 A flowchart of another embodiment of the data interaction method of the present invention;
[0051] Figure 7 It is a modular schematic diagram of a terminal device involved in an embodiment of the present invention.
[0052] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0053] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0054] Because in the related technology, when the USIM card establishes a BIP (Bearer Independent Protocol) channel interaction with the business platform, the business platform needs to first trigger the USIM card to establish a BIP connection through a data SMS. Then the USIM card requests the terminal to establish an IP connection with the remote BIP gateway according to the parameters, so that the USIM card and the business platform can exchange data based on the established IP connection. Since the related technical solution needs to trigger the data SMS first, and then establish a direct BIP channel with the BIP gateway based on the data SMS, there is a defect that it takes a long time to establish the BIP channel connection.
[0055] In order to solve the defect that it takes a long time to establish a connection in the BIP channel of the related art, the embodiment of the present invention proposes a data interaction method, a terminal device and a computer-readable storage medium, wherein the main steps of the method include:
[0056] Determine the link establishment parameters through the application;
[0057] A Bearer Independent Protocol (BIP) channel is established between the terminal device and the remote platform based on the link establishment parameters, so that the terminal device can perform data interaction with the remote platform through the BIP channel.
[0058] Because the link establishment parameters can be directly determined through the upper-layer application of the terminal device, and then the mobile terminal can be controlled to establish an IP connection with the remote platform based on the link establishment parameters. This achieves the purpose of replacing data SMS with the terminal local card access channel / terminal system instructions, thereby achieving the effect of optimizing the BIP link establishment process and shortening the link establishment time. The efficiency of BIP connection establishment is greatly improved.
[0059] The content to be protected by the claims of the present invention will be described in detail below with reference to the accompanying drawings.
[0060] like Figure 1 As shown, Figure 1 It is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiment of the present invention.
[0061] The terminal in the embodiment of the present invention may be a mobile phone.
[0062] like Figure 1 As shown, the terminal may include: a processor 1001, such as a CPU, a memory 1003, and a communication bus 1002. The communication bus 1002 is used to realize the connection and communication between these components. The memory 1003 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1003 may also be a storage device independent of the aforementioned processor 1001.
[0063] Those skilled in the art will understand that Figure 1 The terminal structure shown in the figure does not constitute a limitation on the terminal, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0064] like Figure 1 As shown, the memory 1003 as a computer storage medium may include an operating system and a data interaction program.
[0065] exist Figure 1 In the terminal shown, the processor 1001 can be used to call the data interaction program stored in the memory 1003 and perform the following operations:
[0066] Determine the link establishment parameters through the application;
[0067] A Bearer Independent Protocol (BIP) channel is established between the terminal device and the remote platform based on the link establishment parameters, so that the terminal device can perform data interaction with the remote platform through the BIP channel.
[0068] Further, the processor 1001 may call the data interaction program stored in the memory 1003, and further perform the following operations:
[0069] When the application has universal user identity card (USIM) access rights, the step of establishing a bearer independent protocol (BIP) channel between the terminal device and the remote platform based on the link establishment parameters is performed so that the terminal device can interact with the remote platform through the BIP channel for data.
[0070] Further, the processor 1001 may call the data interaction program stored in the memory 1003, and further perform the following operations:
[0071] Generate a link establishment request according to the link establishment parameter, and send the link establishment request to a universal subscriber identity card USIM of the terminal device;
[0072] When the USIM receives the link establishment request, it controls the terminal device to establish the BIP channel with the remote platform, so that the terminal device can perform data interaction with the remote platform through the BIP channel.
[0073] Optionally, the processor 1001 may also be configured to call a data interaction program stored in the memory 1003, and perform the following operations:
[0074] Determine the link building parameters;
[0075] The link establishment parameters are sent to the operating system through a preset interface, wherein when the operating system receives the link establishment parameters, a Bearer Independent Protocol (BIP) channel is established between the terminal device and the remote platform based on the link establishment parameters.
[0076] Optionally, the processor 1001 may also be configured to call a data interaction program stored in the memory 1003, and perform the following operations:
[0077] Receiving link establishment parameters sent by an application of the terminal device;
[0078] The link establishment parameters are sent to a baseband chip of the terminal device, wherein after receiving the link establishment parameters, the baseband chip establishes a Bearer Independent Protocol (BIP) channel between the terminal device and a remote platform based on the link establishment parameters.
[0079] Optionally, the processor 1001 may also be configured to call a data interaction program stored in the memory 1003, and perform the following operations:
[0080] Receive the link establishment parameters sent by the operating system;
[0081] Generate a link establishment application protocol data unit APDU based on the link establishment parameters, and send the link establishment APDU to a universal user identity card USIM, wherein after receiving the link establishment APDU, the USIM sends an open channel OPENCHANNEL instruction to the baseband chip;
[0082] After receiving the OPEN CHANNEL instruction, a Bearer Independent Protocol (BIP) channel is established between the terminal device and the remote platform.
[0083] USIM is an important physical identifier of a user's mobile identity and an important resource controlled by operators. USIM card is a recognized security carrier in the industry. In addition to basic communication functions, USIM can also be open in space and cooperate with industry partners to carry various card applications (such as digital ID cards, U shields, car keys, etc.).
[0084] The spatial opening of USIM cards is inseparable from the support of mobile terminals. In online scenarios, terminal local access cards and BIP capabilities are required. Although local channels are the best choice for online scenarios, the support level of front-end terminals is not high (such as Apple phones do not open local channels), so it is necessary to introduce BIP technology so that the terminal can establish a channel between the service platform (remote platform) and the USIM card. Moreover, BIP is a protocol defined by the 3GPP (3rd Generation Partnership Project) international standard, which is supported by all types of mobile phones, so that full coverage of users can be achieved, which solves the problem of machine card access to a certain extent.
[0085] In the related art, when the USIM card establishes a BIP channel interaction with the service platform, the service platform needs to first trigger the USIM card to establish a BIP connection through a data SMS. Then the USIM card requests the terminal to establish an IP connection with the remote BIP gateway according to the parameters, so that the USIM card and the service platform can interact with each other based on the established IP connection. Since the related technical solution needs to trigger the data SMS first, and then establish a direct BIP channel with the BIP gateway based on the data SMS, there is a defect that it takes a long time to establish the BIP channel connection.
[0086] In order to solve the above defects in the related technology, the embodiment of the present invention proposes a data interaction method to optimize the process of USIM establishing a BIP channel. Specifically, the data SMS is replaced by the terminal local access card channel / terminal system instruction to optimize the existing BIP link establishment process, thereby shortening the time consumption of BIP channel connection establishment and improving the efficiency of BIP channel connection establishment.
[0087] The following is an explanation of the content claimed in the claims of the present invention through specific exemplary schemes, so that those skilled in the art can better understand the scope of protection of the claims of the present invention. It is understood that the following exemplary schemes do not limit the scope of protection of the present invention, but are only used to explain the present invention.
[0088] For example, refer to Figure 2 In one embodiment of the data interaction method of the present invention, the data interaction method comprises the following steps:
[0089] Step S11, determining link establishment parameters through the application;
[0090] Step S12: establishing a Bearer Independent Protocol (BIP) channel between the terminal device and the remote platform based on the link establishment parameters, so that the terminal device can perform data interaction with the remote platform through the BIP channel.
[0091] In this embodiment, the data interaction method is applied to a terminal device. The terminal device may be a mobile phone or other terminal device provided with a USIM and communicating based on a USIM card. The terminal device is loaded with an APP (application, application or mobile phone software), so that the mobile terminal can determine the link establishment parameters through the application.
[0092] Example 1: In the storage medium of the terminal device, link building parameters associated with the APP are pre-stored. The link building parameters may include address type (such as IPv4 / IPv6), IP (Internet Protocol) address, port number and bearer parameters. It is understandable that different APPs correspond to different remote platforms. Once the current application is determined, its corresponding remote platform can generally be determined. Therefore, during the application installation process, the link building parameters corresponding to the corresponding remote platform can be pre-saved in the storage medium.
[0093] Example 2: The APP is provided with an interactive interface, and the terminal device is provided with a user interface. The user interface may include a device such as a touch screen or a display that can be used to display the interactive interface of the APP. This allows the user to trigger the corresponding function of the APP from the interactive interface of the APP through the user interface. When a preset function of the APP is triggered, the APP determines that there is currently an establishment requirement. Therefore, a parameter request can be sent to the remote platform. When the remote platform receives the parameter request, it feeds back the link establishment parameters to the terminal device. Then the APP can receive the link establishment parameters to determine the link establishment parameters.
[0094] Example 3: When the remote platform has a link establishment requirement to establish a BIP channel, it can send a link establishment requirement to the terminal device. The link establishment requirement can include an establishment control instruction and a link establishment parameter. After receiving the link establishment requirement, the terminal device can determine the link establishment parameter based on the link establishment requirement.
[0095] Furthermore, after the mobile terminal determines the link establishment parameters, a BIP channel may be established between the mobile terminal and the remote platform based on the link establishment parameters, so that the terminal device can perform data interaction with the remote platform through the BIP channel.
[0096] Exemplarily, a link establishment request may be generated according to the link establishment parameters, and the link establishment request may be sent to a universal user identity card USIM of the terminal device. When the USIM receives the link establishment request, the terminal device is controlled to establish the BIP channel with the remote platform.
[0097] Reference Figure 3 In an application scenario, the terminal device can first determine the link establishment parameters through the APP. Then the APP can call the BIP link establishment interface pre-set in the mobile terminal and send the link establishment parameters to the mobile phone system. When the mobile phone system receives the link establishment parameters, it can generate a BIP link establishment request based on the link establishment parameters and send the BIP link establishment request to the baseband chip. When the baseband chip receives the BIP link establishment request, it can send the link establishment parameters to the USIM through the SMS APDU mode. After the USIM obtains the link establishment parameters, it requests the terminal and the remote platform to establish an IP connection according to the parameter requirements through the open channel instruction. Further, after the terminal device establishes an IP connection with the remote platform, since the USIM does not have the IP transparent transmission capability, the USIM can interact with the baseband chip through the send data (data transmission) instruction and the receive data (data reception) instruction. Then the baseband chip transparently transmits the interactive data to the remote platform through the IP data packet, thereby forming a BIP channel between the USIM and the remote platform.
[0098] Optionally, in order to improve security, after receiving the link establishment parameters sent by the APP, the mobile phone system can also authenticate the APP. That is, determine whether the APP that sends the link establishment parameters has USIM access rights. When the APP that sends the link establishment parameters has USIM access rights, a bearer independent protocol BIP channel is established between the terminal device and the remote platform based on the link establishment parameters, so that the terminal device can interact with the remote platform through the BIP channel. Otherwise, perform a preset feedback operation, wherein the preset feedback operation includes at least one of the following:
[0099] Ignore the link building parameters;
[0100] Outputting a prompt message indicating that the application does not have the USIM access authority;
[0101] Output risk warning information.
[0102] In the technical solution disclosed in this embodiment, the link establishment parameters can be directly determined by the upper layer application of the terminal device, and then the mobile terminal can be controlled to establish an IP connection with the remote platform based on the link establishment parameters. In this way, the purpose of replacing data SMS with the terminal local access card channel / terminal system instructions is achieved, thereby achieving the effect of optimizing the BIP link establishment process and shortening the link establishment time. The efficiency of BIP connection establishment is greatly improved.
[0103] Optionally, refer to Figure 4 In another embodiment of the data interaction method of the present invention, the data interaction method comprises the following steps:
[0104] Step S21: Determine link building parameters
[0105] Step S22: Send the link establishment parameters to the operating system, wherein when the operating system receives the link establishment parameters, a Bearer Independent Protocol (BIP) channel is established between the terminal device and the remote platform based on the link establishment parameters.
[0106] In this embodiment, the data interaction method is applied to an APP (application program) of a terminal device.
[0107] The application can directly determine the link establishment parameters.
[0108] Example 1, the application can query and obtain the pre-stored parameters pre-stored in the storage medium as the link building parameters. It is understandable that during the application installation process, the corresponding link building parameters can be pre-stored in the storage medium. When the user and / or the remote platform triggers the BIP channel link building process, the APP can directly query and obtain the link building parameters. Optionally, the application can also be provided with a link building parameter update function, so that after the installation is completed, the APP can obtain the latest link building parameters saved in the server or the new link building parameters input by the user, and then update the pre-stored parameters pre-stored in the storage medium through the obtained link building parameters.
[0109] Example 2: When the user and / or the remote platform triggers the BIP channel link establishment process, the APP can send a parameter request to the remote platform. When the remote platform receives the parameter request, it feeds back the link establishment parameters to the terminal device. Then the APP can receive the link establishment parameters fed back by the remote platform.
[0110] Example 3: When there is a need to establish a connection, the remote platform may send a connection establishment requirement to the APP, wherein the connection establishment requirement includes the connection establishment parameters. When the APP receives the connection establishment requirement, it may determine the connection establishment parameters based on the connection establishment requirement.
[0111] Furthermore, a preset interface is also provided in the mobile terminal. The preset interface is set as a dedicated BIP link establishment interface. After the APP determines the link establishment parameters, the preset interface can be called to send the link establishment parameters to the operating system of the terminal device through the preset link establishment interface. When the operating system receives the link establishment parameters, a bearer independent protocol BIP channel is established between the terminal device and the remote platform based on the link establishment parameters.
[0112] In the technical solution disclosed in this embodiment, the link establishment parameters for establishing the BIP channel are determined directly through the APP. Therefore, there is no need to determine the link establishment parameters through data SMS. This simplifies the BIP channel link establishment process and shortens the time consumption of BIP channel link establishment. The effect of improving the efficiency of BIP channel establishment is achieved.
[0113] Reference Figure 5 In another embodiment of the data interaction method of the present invention, the data interaction method comprises the following steps:
[0114] Step S31, receiving link establishment parameters sent by the application of the terminal device;
[0115] Step S32: Send the link establishment parameters to the baseband chip of the terminal device, wherein after receiving the link establishment parameters, the baseband chip establishes a Bearer Independent Protocol (BIP) channel between the terminal device and the remote platform based on the link establishment parameters.
[0116] In this embodiment, the data interaction method is applied to the operating system of the terminal device.
[0117] In the terminal device, a BIP link establishment interface is pre-set, so that an APP (upper layer application) can send the link establishment parameters to the operating system by calling the BIP link establishment interface. The operating system can receive the link establishment parameters.
[0118] After the operating system receives the link establishment parameters, the operating system may send the link establishment parameters to the baseband chip, wherein after the baseband chip receives the link establishment parameters, a Bearer Independent Protocol (BIP) channel is established between the terminal device and the remote platform based on the link establishment parameters.
[0119] Optionally, after the operating system receives the link establishment parameters sent by the application of the terminal device, the APP that sends the link establishment parameters may be authenticated first. That is, it is determined whether the APP that sends the link establishment parameters has USIM access rights. When the application has the USIM access rights, the link establishment parameters are sent to the baseband chip. Otherwise, a preset feedback operation is performed. The preset feedback operation may include at least one of the following:
[0120] Ignore the link building parameters;
[0121] Outputting a prompt message indicating that the application does not have the USIM access authority;
[0122] Output risk warning information.
[0123] Exemplarily, when it is determined that the application does not have USIM access rights, the operating system can directly ignore the link establishment parameters sent by the APP. No processing is performed. Optionally, when it is determined that the application does not have USIM access rights, the link establishment parameters sent by the APP can be directly ignored, and the APP is prohibited from calling the BIP link establishment interface again, so as to prohibit the APP from sending the link establishment parameters to the operating system again. Thereby reducing the processing amount of useless information of the operating system and saving system overhead. Optionally, when it is determined that the application does not have USIM access rights, the number of times the APP sends the link establishment parameters to the operating system can be updated (such as when receiving the link establishment parameters sent by the APP, the number of times the APP sends the link establishment parameters corresponding to the APP is increased by one). And / or the interval time length of the APP sending the link establishment parameters (that is, the time interval between the time point of receiving the link establishment parameters sent by the APP this time and the time point of receiving the link establishment parameters sent by the APP last time), when the number of sending times is greater than the preset number of times (5 times) or the interval time length is less than the preset time length (for example, 1s), the APP can be prohibited from calling the BIP link establishment interface again.
[0124] And / or, when it is determined that the application does not have the USIM access right, a prompt message indicating that the application does not have the USIM access right can be output through the prompt message output bar of the terminal device or the running interface of the APP, so as to prompt the user the reason for the link establishment failure, thereby avoiding the user from frequently triggering the link establishment operation.
[0125] And / or, when it is determined that the application does not have USIM access rights, risk warning information may be output to prompt the user that the APP is attempting to perform an operation for which it does not have permission.
[0126] In the technical solution disclosed in this embodiment, the link establishment parameters sent by the application of the terminal device are first received, and then the link establishment parameters are sent to the baseband chip, wherein after the baseband chip receives the link establishment parameters, a Bearer Independent Protocol BIP channel between the terminal device and the remote platform is established based on the link establishment parameters. In this way, the effect of improving the efficiency of BIP channel establishment is achieved.
[0127] Optionally, refer to Figure 6 In yet another embodiment of the data interaction method of the present invention, the data interaction method comprises the following steps:
[0128] Step S41, receiving link establishment parameters sent by the operating system;
[0129] Step S42: Generate a link establishment application protocol data unit APDU based on the link establishment parameters, and send the link establishment APDU to a universal subscriber identity card USIM, wherein after receiving the link establishment APDU, the USIM sends an open channel OPEN CHANNEL instruction to the baseband chip;
[0130] Step S43: after receiving the OPEN CHANNEL instruction, a Bearer Independent Protocol (BIP) channel is established between the terminal device and the remote platform.
[0131] In this embodiment, the data interaction method is applied to the baseband chip of the terminal device. The baseband chip refers to a chip used to synthesize the baseband signal to be transmitted, or to decode the received baseband signal. Specifically, when transmitting, the voice or other data signal is encoded into the baseband code used for transmission; when receiving, the received baseband code is decoded into voice or other data signals. It mainly completes the information processing function of the communication terminal.
[0132] The baseband chip can receive the link establishment parameters sent by the operating system of the terminal device, and then generate a BIP link establishment APDU (Application Protocol Data Unit) based on the link establishment parameters. Then send the BIP link establishment APDU to the USIM. After receiving the BIP link establishment APDU, the USIM will respond to the BIP link establishment APDU, that is, send an open channel OPEN CHANNEL instruction to the baseband chip. When the baseband chip receives the OPEN CHANNEL instruction, a bearer independent protocol BIP channel is established between the terminal device and the remote platform.
[0133] In the technical solution disclosed in this embodiment, the baseband chip first receives the link establishment parameters sent by the operating system, then generates the link establishment application protocol data unit APDU based on the link establishment parameters, and sends the link establishment APDU to the universal user identity card USIM, wherein the USIM sends an open channel OPEN CHANNEL instruction to the baseband chip after receiving the link establishment APDU, and finally establishes a bearer independent protocol BIP channel between the terminal device and the remote platform after receiving the OPEN CHANNEL instruction. In this way, the effect of improving the efficiency of BIP channel establishment is achieved.
[0134] Optionally, in an optional embodiment of the data interaction method of the present invention, the data interaction method includes sending link establishment parameters to a terminal device, wherein, after receiving the link establishment parameters, the terminal device establishes a bearer independent protocol BIP channel with the remote platform based on the link establishment parameters, so that the terminal device can interact with the remote platform through the BIP channel.
[0135] In this embodiment, the remote platform refers to a cloud server deployed in the cloud. The remote platform can communicate data with the application in the terminal device based on the application layer communication protocol. When the remote platform receives the parameter request sent by the terminal device, it feeds back the link establishment parameters to the terminal device. Alternatively, when the remote platform triggers the BIP link establishment demand based on its own business data or the business data sent by the mobile terminal, it can actively send a link establishment demand to the terminal device. Among them, the link establishment demand includes the BIP link establishment parameters.
[0136] In the technical solution disclosed in this implementation, both the terminal device and the remote platform can actively trigger the BIP link building process, which improves the flexibility of BIP link building.
[0137] In addition, an embodiment of the present invention also proposes a terminal device, which includes a memory, a processor, and a data interaction program stored in the memory and executable on the processor, and when the data interaction program is executed by the processor, the steps of the data interaction method described in the above embodiments are implemented.
[0138] In addition, the embodiment of the present invention further provides a terminal device, exemplarily, referring to Figure 7 , the terminal device 100 includes:
[0139] A determination module 101 and a link establishment module 102, wherein the determination module 101 determines link establishment parameters through an application; the link establishment module 102 establishes a bearer independent protocol BIP channel between the terminal device and the remote platform based on the link establishment parameters, so that the terminal device can interact with the remote platform through the BIP channel for data.
[0140] In addition, an embodiment of the present invention further proposes a computer-readable storage medium, on which a data interaction program is stored. When the data interaction program is executed by a processor, the steps of the data interaction method described in the above embodiments are implemented.
[0141] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0142] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0143] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for enabling a terminal device to execute the methods described in each embodiment of the present invention.
[0144] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A data interaction method, characterized in that: Applied to a terminal device, the data interaction method comprises the following steps: Determine the link establishment parameters through the application, wherein different applications correspond to different remote platforms, and different remote platforms are associated with corresponding link establishment parameters, the application sends a parameter request to the remote platform, receives the link establishment parameters fed back by the remote platform, and sends the link establishment parameters to the operating system of the terminal device through the application of the terminal device; Establishing a Bearer Independent Protocol (BIP) channel between the terminal device and the remote platform based on the link establishment parameters, so that the terminal device can perform data interaction with the remote platform through the BIP channel; The establishing of a Bearer Independent Protocol (BIP) channel between the terminal device and the remote platform based on the link establishment parameters includes: Generate a link establishment request according to the link establishment parameters, and send the link establishment request to the universal user identity card USIM of the terminal device, wherein the operating system of the terminal device receives the link establishment parameters sent by the application of the terminal device, sends the link establishment request to the baseband chip, and when the baseband chip receives the link establishment request, generates a link establishment APDU based on the link establishment parameters, and sends the link establishment APDU to the universal user identity card USIM; When the USIM receives the link establishment request, it controls the terminal device to establish the BIP channel with the remote platform, so that the terminal device can interact with the remote platform through the BIP channel. After receiving the link establishment APDU, the USIM sends an open channel OPEN CHANNEL instruction to the baseband chip. After receiving the OPEN CHANNEL instruction, the baseband chip establishes a bearer independent protocol BIP channel between the terminal device and the remote platform.
2. The data interaction method according to claim 1, characterized in that: After the step of determining the link establishment parameters by the application, the method further includes: When the application has universal user identity card (USIM) access rights, the step of establishing a bearer independent protocol (BIP) channel between the terminal device and the remote platform based on the link establishment parameters is performed so that the terminal device can interact with the remote platform through the BIP channel for data.
3. The data interaction method according to claim 1, characterized in that: Data exchange is performed between the terminal device and the remote platform based on IP data packets.
4. A data interaction method, characterized in that: Applied to an application in a terminal device, the data interaction method comprises the following steps: Determine link establishment parameters, wherein different applications correspond to different remote platforms, and different remote platforms are associated with corresponding link establishment parameters, the application sends a parameter request to the remote platform, and receives the link establishment parameters fed back by the remote platform; The link establishment parameters are sent to the operating system through a preset interface, wherein the operating system sends a link establishment request to the baseband chip when receiving the link establishment parameters, and when the baseband chip receives the link establishment request, a link establishment APDU is generated based on the link establishment parameters, and the link establishment APDU is sent to a universal user identity card USIM, and when the USIM receives the link establishment request, a BIP channel is controlled to be established between the terminal device and the remote platform, so that the terminal device can perform data interaction with the remote platform through the BIP channel, wherein after receiving the link establishment APDU, the USIM sends an open channel OPEN CHANNEL instruction to the baseband chip, and after receiving the OPEN CHANNEL instruction, the baseband chip establishes a bearer independent protocol BIP channel between the terminal device and the remote platform.
5. The data interaction method according to claim 4, characterized in that: The step of determining the link establishment parameters comprises: Obtaining pre-stored parameters as the link establishment parameters; or Sending a parameter request to the remote platform, and receiving the link establishment parameters fed back by the remote platform, wherein the remote platform feeds back the link establishment parameters to the terminal device when receiving the parameter request; or A link establishment requirement sent by the remote platform is received, and the link establishment parameter is determined based on the link establishment requirement.
6. A data interaction method, characterized in that: Applied to the operating system of the terminal device, the data interaction method comprises the following steps: Receiving link establishment parameters sent by an application of the terminal device, wherein different applications correspond to different remote platforms, and different remote platforms are associated with corresponding link establishment parameters, the application sends a parameter request to the remote platform, receives the link establishment parameters fed back by the remote platform, and sends the link establishment parameters to the operating system of the terminal device through the application of the terminal device; The link establishment parameters are sent to the baseband chip of the terminal device, wherein after receiving the link establishment parameters, the baseband chip generates a link establishment APDU based on the link establishment parameters, and sends the link establishment APDU to the universal user identity card USIM; when the USIM receives the link establishment request, the terminal device is controlled to establish a BIP channel with the remote platform, so that the terminal device can interact with the remote platform through the BIP channel. After receiving the link establishment APDU, the USIM sends an open channel OPEN CHANNEL instruction to the baseband chip, and after receiving the OPEN CHANNEL instruction, the baseband chip establishes a bearer independent protocol BIP channel between the terminal device and the remote platform.
7. The data interaction method according to claim 6, characterized in that: After the step of receiving the link establishment parameters sent by the application of the terminal device, the method further includes: Determining whether the application has a Universal Subscriber Identity Module (USIM) access right; When the application has the USIM access right, executing the step of sending the link establishment parameter to the baseband chip of the terminal device; When the application does not have the USIM access authority, performing a preset feedback operation, wherein the preset feedback operation includes at least one of the following: Ignore the link building parameters; Outputting a prompt message indicating that the application does not have the USIM access authority; Output risk warning information.
8. A data interaction method, characterized in that: The baseband chip applied to the terminal device, the data interaction method comprises the following steps: Receiving the link establishment parameters sent by the operating system, wherein after receiving the link establishment parameters sent by the application of the terminal device, the operating system generates a BIP link establishment request based on the link establishment parameters, and sends the BIP link establishment request to the baseband chip; Generate a link building APDU based on the link building parameters, and send the link building APDU to a universal user identity card USIM, wherein after receiving the link building APDU, the USIM sends an open channel OPEN CHANNEL instruction to the baseband chip; After receiving the OPEN CHANNEL instruction, a Bearer Independent Protocol (BIP) channel is established between the terminal device and the remote platform.
9. A data interaction method, characterized in that: Applied to a remote platform, the data interaction method comprises the following steps: Send link establishment parameters to the terminal device, wherein after receiving the link establishment parameters, the terminal device establishes a bearer independent protocol BIP channel with the remote platform based on the link establishment parameters, so that the terminal device can interact with the remote platform through the BIP channel for data, wherein different applications correspond to different remote platforms, and different remote platforms are associated with corresponding link establishment parameters, and the remote platform receives the parameter request sent by the application of the terminal device, and sends a link establishment request to the terminal device.
10. A terminal device, characterized in that: The terminal device comprises: a memory, a processor, and a data interaction program stored in the memory and executable on the processor, wherein the data interaction program, when executed by the processor, implements the steps of the data interaction method as claimed in any one of claims 1 to 9.
11. A terminal device, characterized in that: The terminal device comprises: A determination module, which determines link establishment parameters through an application program, wherein different applications correspond to different remote platforms, and different remote platforms are associated with corresponding link establishment parameters, wherein the application program sends a parameter request to the remote platform, receives the link establishment parameters fed back by the remote platform, and sends the link establishment parameters to the operating system of the terminal device through the application program of the terminal device; A link establishment module, which establishes a Bearer Independent Protocol (BIP) channel between the terminal device and the remote platform based on the link establishment parameters, so that the terminal device can exchange data with the remote platform through the BIP channel; The step of establishing a Bearer Independent Protocol (BIP) channel between the terminal device and the remote platform based on the link establishment parameters includes: Generate a link establishment request according to the link establishment parameters, and send the link establishment request to the universal user identity card USIM of the terminal device, wherein the operating system of the terminal device receives the link establishment parameters sent by the application of the terminal device, sends the link establishment request to the baseband chip, and when the baseband chip receives the link establishment request, generates a link establishment APDU based on the link establishment parameters, and sends the link establishment APDU to the universal user identity card USIM; When the USIM receives the link establishment request, it controls the terminal device to establish the BIP channel with the remote platform, so that the terminal device can interact with the remote platform through the BIP channel. After receiving the link establishment APDU, the USIM sends an open channel OPEN CHANNEL instruction to the baseband chip. After receiving the OPEN CHANNEL instruction, the baseband chip establishes a bearer independent protocol BIP channel between the terminal device and the remote platform.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a data interaction program, and when the data interaction program is executed by a processor, the steps of the data interaction method according to any one of claims 1 to 9 are implemented.
Citation Information
Patent Citations
Apparatus and method for implementing OTA based on bearer independent protocol
CN101222514A
SIM card and application program communication method, SIM card, operating system and mobile terminal
CN106332060A