CN108282521B - BIP protocol data transmission method and device, computer equipment and storage medium - Google Patents

BIP protocol data transmission method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN108282521B
CN108282521B CN201810027432.XA CN201810027432A CN108282521B CN 108282521 B CN108282521 B CN 108282521B CN 201810027432 A CN201810027432 A CN 201810027432A CN 108282521 B CN108282521 B CN 108282521B
Authority
CN
China
Prior art keywords
data
uicc
sending
server
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810027432.XA
Other languages
Chinese (zh)
Other versions
CN108282521A (en
Inventor
李子昂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fibocom Wireless Inc
Original Assignee
Fibocom Wireless Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fibocom Wireless Inc filed Critical Fibocom Wireless Inc
Priority to CN201810027432.XA priority Critical patent/CN108282521B/en
Publication of CN108282521A publication Critical patent/CN108282521A/en
Application granted granted Critical
Publication of CN108282521B publication Critical patent/CN108282521B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/26Special purpose or proprietary protocols or architectures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/20Transfer of user or subscriber data
    • H04W8/205Transfer to or from user equipment or user record carrier

Abstract

The application relates to a method and a device for transmitting BIP protocol data, computer equipment and a storage medium. The method comprises the following steps: acquiring a channel opening command sent by a terminal intelligent card UICC; establishing connection with a server according to a channel opening command, and entering a data sending waiting state; after entering a data sending waiting state, acquiring a data sending command sent by the UICC; sending the UICC data acquired according to the data sending command to a server, and entering a state of waiting for receiving the server data; after entering a state of waiting for receiving server data, the receiving server analyzes the analysis data obtained according to the UICC data and stores the analysis data to the local, and enters a state of waiting for receiving data; and after entering a waiting data receiving state, selecting target analysis data meeting preset requirements from the analysis data and sending the target analysis data to the UICC. By adopting the method, the interruption of the BIP protocol data transmission caused by the fact that the terminal sends a plurality of event notifications can be avoided by limiting the state of the terminal.

Description

BIP protocol data transmission method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for transmitting BIP protocol data, a computer device, and a storage medium.
Background
A brand new BIP (Bearer Independent Protocol) Protocol interface is introduced into a Universal Integrated Circuit Card (UICC) Card, a terminal supporting a BIP Protocol allows transparent data transmission between the UICC Card and a remote server by combining the BIP Protocol with UICC application, and the BIP Protocol is more favorable for realizing transmission of high-speed mobile data services, so that downloading, updating and deleting of various service data are easier and faster. The terminal between the UICC and the server plays an important role, and if the terminal processes an error, the communication between the terminal and the server is abnormal.
However, in the conventional technology, after receiving data sent by the server, the terminal sends a related event notification to the UICC card to obtain the data sent by the server, and during the process of obtaining the data by the UICC card, the terminal may continue to receive other data sent by the server, and at this time, the terminal sends a corresponding event notification to the UICC card again.
Disclosure of Invention
In view of the above, it is necessary to provide a method, an apparatus, a computer device and a storage medium for transmitting BIP protocol data by limiting the state of a terminal so as to avoid interruption of BIP protocol data transmission caused by multiple event notifications sent by the terminal.
A method of BIP protocol data transmission, the method comprising:
acquiring a channel opening command sent by a terminal intelligent card UICC;
establishing connection with a server according to a channel opening command, and entering a data sending waiting state;
after entering a data sending waiting state, acquiring a data sending command sent by the UICC;
sending the UICC data acquired according to the data sending command to a server, and entering a state of waiting for receiving the server data;
after entering a state of waiting for receiving server data, the receiving server analyzes the analysis data obtained according to the UICC data and stores the analysis data to the local, and enters a state of waiting for receiving data;
and after entering a waiting data receiving state, selecting target analysis data meeting preset requirements from the analysis data and sending the target analysis data to the UICC.
In one embodiment, the method further comprises the following steps: entering a data sending waiting state after detecting that the analysis data meeting the preset requirement is selected from the analysis data and sent to the UICC; after entering a waiting data sending state, acquiring a channel closing command sent by the UICC; and disconnecting the server according to the channel closing command and entering an idle state.
In one embodiment, the step of establishing a connection with the server according to the open channel command includes: activating a Packet Data Protocol (PDP) according to the channel opening command; and establishing connection with the server through the PDP after the activation is successful.
In one embodiment, the step of sending the UICC data obtained according to the data sending command to the server includes: detecting an operation mode corresponding to the data sending command; when the operation mode is detected to be a storage mode, storing UICC data sent by the UICC into a sending buffer area; acquiring UICC data corresponding to the UICC from a sending buffer, wherein the sending buffer is used for storing the UICC data to be sent by the UICC; and sending the UICC data acquired from the sending buffer to a server.
In one embodiment, the step of receiving the analysis data obtained by analyzing the UICC data by the server and storing the analysis data to the local comprises the steps of receiving the analysis data obtained by analyzing the UICC data by the server; storing the received analysis data to a receiving buffer area, wherein the receiving buffer area is used for storing the analysis data sent by the server; and after the analysis data is stored in the receiving buffer, sending a valid data event request to the UICC so that the UICC acquires the analysis data from the receiving buffer.
In one embodiment, the step of selecting target parsing data meeting preset requirements from the parsing data and sending the target parsing data to the UICC includes: receiving a data receiving command sent by the UICC; acquiring analysis data stored to the local according to the data receiving command; and selecting target analysis data meeting preset requirements from the analysis data and sending the target analysis data to the UICC.
An apparatus for BIP protocol data transmission, the apparatus comprising:
the channel opening command acquisition module is used for acquiring a channel opening command sent by a terminal intelligent card UICC;
the connection module is used for establishing connection with the server according to the channel opening command and entering a data sending waiting state;
the data sending command module is used for acquiring a data sending command sent by the UICC after entering a data sending waiting state;
the UICC data sending module is used for sending the UICC data obtained according to the data sending command to the server and entering a state of waiting for receiving the server data;
the analysis data receiving module is used for receiving analysis data obtained by analyzing the UICC data by the server according to the UICC data and storing the analysis data to the local after entering a state of waiting for receiving the server data, and entering a state of waiting for receiving the data;
and the target analysis data sending module is used for selecting target analysis data meeting the preset requirement from the analysis data and sending the target analysis data to the UICC after entering a data receiving waiting state.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
acquiring a channel opening command sent by a terminal intelligent card UICC;
establishing connection with a server according to a channel opening command, and entering a data sending waiting state;
after entering a data sending waiting state, acquiring a data sending command sent by the UICC;
sending the UICC data acquired according to the data sending command to a server, and entering a state of waiting for receiving the server data;
after entering a state of waiting for receiving server data, the receiving server analyzes the analysis data obtained according to the UICC data and stores the analysis data to the local, and enters a state of waiting for receiving data;
and after entering a waiting data receiving state, selecting target analysis data meeting preset requirements from the analysis data and sending the target analysis data to the UICC.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring a channel opening command sent by a terminal intelligent card UICC;
establishing connection with a server according to a channel opening command, and entering a data sending waiting state;
after entering a data sending waiting state, acquiring a data sending command sent by the UICC;
sending the UICC data acquired according to the data sending command to a server, and entering a state of waiting for receiving the server data;
after entering a state of waiting for receiving server data, the receiving server analyzes the analysis data obtained according to the UICC data and stores the analysis data to the local, and enters a state of waiting for receiving data;
and after entering a waiting data receiving state, selecting target analysis data meeting preset requirements from the analysis data and sending the target analysis data to the UICC.
According to the BIP protocol data transmission method, the device, the computer equipment and the storage medium, the terminal obtains a channel opening command sent by a terminal intelligent card UICC; establishing connection with a server according to a channel opening command, and entering a data sending waiting state; after entering a data sending waiting state, acquiring a data sending command sent by the UICC; sending the UICC data acquired according to the data sending command to a server, and entering a state of waiting for receiving the server data; after entering a state of waiting for receiving server data, the receiving server analyzes the analysis data obtained according to the UICC data and stores the analysis data to the local, and enters a state of waiting for receiving data; and after entering a waiting data receiving state, selecting target analysis data meeting preset requirements from the analysis data and sending the target analysis data to the UICC. Therefore, the terminal is limited to do certain events in a certain state, so that the phenomenon that the BIP protocol data transmission between the terminal and the UICC and the server is interrupted because the terminal receives the data sent by the server and sends the event notice to the UICC card again every time is avoided.
Drawings
FIG. 1 is a diagram of an application environment for a method for BIP protocol data transfer in one embodiment;
FIG. 2 is a flow diagram illustrating a method for BIP protocol data transmission in one embodiment;
FIG. 3 is a flow chart illustrating a method for BIP protocol data transmission according to another embodiment;
FIG. 4 is a flowchart illustrating steps for establishing a connection with a server according to an open channel command in one embodiment;
fig. 5 is a flowchart illustrating a step of sending UICC data obtained according to the data sending command to a server in one embodiment;
fig. 6 is a flowchart illustrating a step of analyzing, by the receiving server, the analysis data obtained according to the UICC data and storing the analysis data locally in one embodiment;
fig. 7 is a flowchart illustrating a step of selecting parsing data meeting a preset requirement from the parsing data and sending the selected parsing data to the UICC according to an embodiment;
FIG. 8 is a flow chart illustrating a method for BIP protocol data transmission in yet another embodiment;
FIG. 9 is a state diagram illustrating a method for BIP protocol data transmission according to an embodiment;
FIG. 10 is a block diagram showing an example of an apparatus for BIP protocol data transmission;
FIG. 11 is a block diagram of an apparatus for BIP protocol data transfer in one embodiment;
FIG. 12 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The BIP protocol data transmission method provided by the application can be applied to the application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The terminal acquires a channel opening command sent by a terminal intelligent card UICC, establishes connection with the server according to the channel opening command and enters a data sending waiting state; after entering a data sending waiting state, acquiring a data sending command sent by the UICC; sending the UICC data acquired according to the data sending command to the server 104, and entering a state of waiting for receiving the server data; after entering a state of waiting for receiving server data, the receiving server analyzes the analysis data obtained according to the UICC data and stores the analysis data to the local, and enters a state of waiting for receiving data; and after entering a waiting data receiving state, selecting target analysis data meeting preset requirements from the analysis data and sending the target analysis data to the UICC. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In an embodiment, as shown in fig. 2, a method for transmitting BIP protocol data is provided, which is described by taking the method as an example for being applied to the terminal in fig. 1, and includes the following steps:
step 202, obtaining a channel opening command sent by the terminal intelligent card UICC.
The UICC (Universal Integrated Circuit Card) is an important link in the design of a 3GPP (3rd Generation Partnership Project) terminal, and is also a removable smart Card for storing information such as user information, an authentication key, a phone book, and a short message. The UICC includes, but is not limited to, a Subscriber Identity Module (SIM), a Universal Subscriber Identity Module (USIM), and an IP Multimedia Service Identity Module (ISIM). The command for opening the channel is a command for opening a BIP channel, and the BIP channel is a channel for establishing data connection between the UICC card and the service platform. Specifically, after receiving the service platform command, the UICC sends a channel opening command open channel command to the terminal, so that the terminal opens the BIP channel. The terminal is in an idle state at this time, where the idle state is that the terminal is used to wait for BIP channel establishment, that is, the terminal receives an open channel command.
And step 204, establishing connection with the server according to the channel opening command, and entering a data sending waiting state.
Here, the wait for data transmission state here is UICC data for allowing the terminal to wait for UICC transmission. Specifically, when the connection is established with the server according to the open channel command, the terminal and the server connection include, but are not limited to, a TCP (Transmission Control Protocol) connection and a UDP (User Datagram Protocol) connection, and the socket interface is an API interface function of the TCP/IP network. Therefore, after the terminal establishes socket communication with the server to transmit the transmission of data between the terminal and the server, a wait data transmission state is entered. The waiting data sending state is a state that the terminal waits for receiving the UICC data sent by the UICC.
And step 206, after entering a data transmission waiting state, acquiring a data transmission command sent by the UICC.
The data sending command is a command for receiving UICC data sent by the UICC, where the data sending command send data command includes, but is not limited to, a UICC data operation mode type and the like. Specifically, since the wait-for-data transmission state is a state for waiting for reception of UICC data transmitted by the UICC, after the terminal enters the wait-for-data transmission state, the terminal obtains a data transmission command transmitted by the UICC and notifies the terminal of the UICC data to be received.
And step 208, sending the UICC data acquired according to the data sending command to a server, and entering a state of waiting for receiving the server data.
The UICC data is related data corresponding to the UICC, including but not limited to SIM file data and the like. Specifically, after acquiring a data sending command sent by the UICC, the terminal stores the UICC data sent by the UICC to the terminal, and acquires the UICC data from the terminal according to the data sending command. Further, the acquired UICC data is sent to a server, and a state of waiting for receiving the server data is entered. Here, the server data waiting state is a state in which the terminal waits for UICC data to be sent by the UICC or sends the acquired UICC data to the server. That is, when the number of servers waiting for reception is the UICC data state for waiting for UICC transmission or the state for waiting for reception of server transmission data according to the state, the terminal switches to the next state after completing the UICC data state transmitted by the UICC or receiving the data transmitted by the server.
And step 210, after entering a state of waiting for receiving server data, receiving analysis data obtained by analyzing according to the UICC data by the server, storing the analysis data to the local, and entering a state of waiting for receiving data.
The analysis data is data obtained by analyzing the UICC data sent by the terminal by the server. Specifically, the data state is used by the terminal to wait for receiving the data sent by the server. Therefore, after entering a state of waiting for receiving server data, the receiving server analyzes the UICC data sent by the terminal to obtain analysis data, and stores the analysis data to the local terminal. After the terminal has finished receiving the analysis data sent by the server, the terminal switches the state and enters a data receiving waiting state from the data receiving waiting server state, wherein the data receiving waiting state is a state in which the terminal waits for receiving the data sent by the server or a state in which the terminal waits for sending the data to the UICC.
And step 212, after entering a data receiving waiting state, selecting target analysis data meeting preset requirements from the analysis data and sending the target analysis data to the UICC.
The UICC has a requirement specification for the length of the analysis data sent to the UICC by the terminal, so that the target analysis data is analysis data meeting the requirement selected from the analysis data sent from the server according to the preset required data length. Specifically, after the terminal enters a data receiving waiting state, because the terminal is in a state of waiting for sending data to the UICC, target analysis data meeting the requirement is selected from analysis data sent by the server according to the length requirement of the UICC on the analysis data sent by the terminal, and the target analysis data is sent to the UICC.
In the BIP protocol data transmission method, a terminal obtains a channel opening command sent by a terminal intelligent card UICC; establishing connection with a server according to a channel opening command, and entering a data sending waiting state; after entering a data sending waiting state, acquiring a data sending command sent by the UICC; sending the UICC data acquired according to the data sending command to a server, and entering a state of waiting for receiving the server data; after entering a state of waiting for receiving server data, the receiving server analyzes the analysis data obtained according to the UICC data and stores the analysis data to the local, and enters a state of waiting for receiving data; and after entering a waiting data receiving state, selecting target analysis data meeting preset requirements from the analysis data and sending the target analysis data to the UICC. Therefore, the terminal is limited to do certain events in a certain state, and the state switching can be performed after the specified events in the state are completed, so that the phenomenon that the BIP protocol data transmission between the terminal and the UICC and between the terminal and the server is interrupted because the terminal receives the data sent by the server and sends the event notification to the UICC card again every time is avoided.
In one embodiment, as shown in fig. 3, the method for BIP protocol data transmission further includes the following steps:
step 302, after it is detected that the selected analytic data meeting the preset requirement from the analytic data is sent to the UICC, entering a data sending waiting state.
The data sending waiting state is a state in which the terminal is used for waiting for receiving UICC data sent by the UICC or receiving a close channel command sent by the UICC. Specifically, after target analysis data meeting the requirement of the UICC on the analysis data length is selected from the analysis data and sent to the UICC, whether all analysis data meeting the preset requirement are selected from the analysis data and sent to the UICC is detected, and when the condition that all analysis data meeting the preset requirement are selected from the analysis data is detected, the terminal is switched from a data waiting receiving state to a data waiting sending state.
And step 304, after entering a data transmission waiting state, acquiring a channel closing command sent by the UICC.
And step 306, disconnecting the server according to the channel closing command, and entering an idle state.
The command for closing the channel is a command for closing a BIP channel, where the BIP channel is a channel for establishing data connection between the UICC card and the service platform. Specifically, when the terminal is in a data transmission waiting state, the UICC sends a close channel command to the terminal after receiving a channel closing command from the service platform, so that the terminal obtains the channel closing command sent by the UICC to close the BIP channel. Further, the terminal disconnects the connection with the server according to the acquired channel closing command, and the terminal is switched to an idle state from a data transmission waiting state. The idle state here is a state in which the terminal is used to wait for the next BIP channel establishment, that is, to obtain the open channel command sent by the next UICC.
In one embodiment, as shown in fig. 4, the step of establishing a connection with the server according to the open channel command includes the steps of:
step 402, activating a packet data protocol PDP according to the channel-on command.
And step 404, establishing connection with the server through the PDP after the activation is successful.
The PDP is a network protocol used between the terminal and the server, and activating the PDP is equivalent to starting data flow between the server and the terminal. Specifically, after acquiring a channel opening command sent by the UICC, the terminal opens a BIP channel and activates a packet data protocol PDP according to the channel opening command. Further, after the successful PDP is activated according to the open channel command, since the PDP is a network protocol used between the terminal and the server, a communication connection is established with the server through the successfully activated PDP.
In an embodiment, as shown in fig. 5, the step of sending the UICC data obtained according to the data sending command to the server includes the following steps:
step 502, detecting an operation mode corresponding to the data sending command.
Step 504, when the operation mode is detected to be the storage mode, storing the UICC data sent by the UICC to a sending buffer.
The data transmission command here includes, but is not limited to, UICC data operation mode type, etc. Specifically, an operation mode corresponding to the data sending command needs to be detected, and when the operation mode of the data sending command is detected to be a storage mode, the UICC data sent by the UICC is stored in a sending buffer of the terminal. Wherein, the sending buffer is used for storing data sent by the UICC to the terminal.
Step 506, obtaining UICC data corresponding to the UICC from the sending buffer, where the sending buffer is used to store the UICC data to be sent by the UICC.
And step 508, sending the UICC data acquired from the sending buffer to a server.
Specifically, due to the limitation on the state of the terminal, after all UICC data sent by the UICC is stored in the sending buffer of the terminal, UICC data corresponding to the UICC needs to be obtained from the sending buffer of the terminal. Further, the UICC data acquired from the sending buffer of the terminal is sent to the server. That is, the terminal receives a data sending command from the UICC, and stores the data of the UICC sent by the UICC into a sending buffer of the terminal according to the operation mode of the data sending command. Further, all UICC data in the terminal's send buffer is sent to the server.
In an embodiment, as shown in fig. 6, the step of receiving the analysis data obtained by analyzing by the server according to the UICC data and storing the analysis data locally includes the following steps:
step 602, receiving analysis data obtained by analyzing the server according to the UICC data.
Step 604, storing the received analysis data in a receiving buffer, where the receiving buffer is used to store the analysis data sent by the server.
Step 606, after storing the parsed data into the receiving buffer, sending a valid data event request to the UICC, so that the UICC obtains the parsed data from the receiving buffer.
Specifically, after the terminal is in a state of waiting for receiving server data, the terminal sends the UICC data sent by all UICCs stored in the sending buffer to the server, and the server analyzes the UICC data sent by the receiving terminal to obtain analyzed data. The parsing data includes, but is not limited to, file information related to the UICC, and the like. Further, the server transmits the analysis data to a receiving buffer of the terminal, wherein the receiving buffer is used for storing the analysis data transmitted by the server. And the terminal stores the received analysis data sent by the server into a receiving buffer zone and sends an effective data event request to the UICC. The valid data event request is used to notify the UICC terminal that the parsed data sent by the server has been received, and after the UICC acquires the valid data event request sent by the terminal, the UICC can acquire the parsed data corresponding to the UICC data from the receive buffer of the terminal, and at this time, the terminal enters a wait data receive state from a wait to receive server send data state.
In an embodiment, as shown in fig. 7, the step of selecting target parsing data meeting the preset requirement from the parsing data and sending the target parsing data to the UICC includes the following steps:
step 702, receiving a data receiving command sent by the UICC.
Step 704, obtaining the analysis data stored to the local according to the data receiving command.
Step 706, selecting target analysis data meeting preset requirements from the analysis data and sending the target analysis data to the UICC.
Specifically, when the terminal is in a data receiving waiting state, the terminal stores the analysis data in a receiving buffer, sends an effective data event request to the UICC, notifies the UICC terminal that the analysis data sent by the server has been received, and sends a data receiving command to the terminal according to the effective data event request sent by the terminal. And the terminal receives a data receiving command from the UICC and analyzes data sent by the acquisition server stored in the local receiving buffer according to the data receiving command. Because the UICC requires length specification for the parsing data of the UICC sent by the terminal, the target parsing data meeting the requirement is selected from the parsing data according to the length requirement of the UICC for the parsing data sent by the terminal and sent to the UICC.
In an embodiment, as shown in fig. 8, a method for transmitting BIP protocol data is provided, which is described by taking the method as an example for being applied to the terminal in fig. 1, and includes the following steps:
and step 802, acquiring a channel opening command sent by the terminal intelligent card UICC.
Fig. 9 is a state diagram illustrating a method for BIP protocol data transmission in one embodiment. As shown in fig. 9, the terminal is in an idle state, where the idle state is a state in which the terminal waits for the BIP communication establishment, that is, obtains the open channel command sent by the UICC. Specifically, after receiving the service platform command, the UICC sends an open channel command to the terminal, so that the terminal obtains the open channel command sent by the UICC to open the BIP channel.
And step 804, activating the packet data protocol PDP according to the channel opening command.
Step 806, establishing connection with the server through the PDP after successful activation, and entering a data transmission waiting state.
As shown in fig. 9, the terminal activates the packet data protocol PDP according to the open channel command sent by the UICC, since the PDP is the network protocol used between the terminal and the server. So that socket communication can be established with the server by activating a successful PDP. Wherein, the terminal and the server establish socket communication connection because the terminal and the server connection include but are not limited to TCP, connection and UDP connection, and the socket interface is an API interface function of the TCP/IP network. After the socket communication connection is established between the terminal and the server, the terminal in the idle state enters a data sending waiting state.
Step 808, after entering the data transmission waiting state, acquiring a data transmission command sent by the UICC.
Specifically, since the wait-to-send state is a state in which the terminal receives UICC data sent by the UICC. Therefore, after entering the data transmission waiting state, the terminal acquires a data transmission command sent by the UICC, and the data transmission command is used for informing the terminal of the UICC data to be received.
Step 810, detecting an operation mode corresponding to the data sending command.
And step 812, storing the UICC data sent by the UICC to a send buffer when the operation mode is detected to be the storage mode.
Step 814, obtaining UICC data corresponding to the UICC from the sending buffer, where the sending buffer is used to store the UICC data to be sent by the UICC.
Step 816, the UICC data obtained from the sending buffer is sent to the server, and the server data waiting state is entered.
As shown in fig. 9, when the terminal is in a data transmission waiting state, the terminal obtains a data transmission command sent by the UICC, and since the data transmission command carries an operation mode corresponding to the data transmission command, when it is detected that the operation mode of the data transmission command is a storage mode, the terminal stores UICC data sent by the UICC in a transmission buffer for storing the UICC data sent to the terminal. Further, the terminal sends the UICC data sent by all the UICCs in the sending buffer to the server. And after the terminal sends all the UICC data in the sending buffer to the server, the terminal is switched from the data sending waiting state to the server data receiving waiting state.
Step 818, after entering the state of waiting to receive server data, receiving the analysis data obtained by analyzing the UICC data by the server.
And step 820, storing the received analysis data to a receiving buffer, wherein the receiving buffer is used for storing the analysis data sent by the server.
Step 822, after storing the analysis data in the receiving buffer, sending a valid data event request to the UICC, so that the UICC obtains the analysis data from the receiving buffer, and entering a data receiving waiting state.
As shown in fig. 9, after the terminal enters the server data waiting state, the server data waiting state is a state in which the terminal waits for the server to transmit data. Therefore, when the terminal is in a state of waiting for receiving the server data, the server analyzes the UICC data sent by the terminal to obtain the analysis data, and further, the terminal stores the received analysis data into a receiving buffer for storing the analysis data sent by the server to the terminal. And after storing the analysis data sent by all the servers in the receiving buffer zone, the terminal sends an effective data event request to the UICC. The UICC is configured to receive a request for an event of valid data from a server, where the request for the event of valid data is used to notify the UICC that the terminal has received the analysis data sent by the server, and after the UICC obtains the request for the event of valid data sent by the terminal, the UICC can obtain the analysis data corresponding to the UICC data from a receiving buffer of the terminal. And when the terminal sends a valid data event request to the UICC, the terminal is switched into a data waiting state from a data waiting state of the server to be received.
Step 824, after entering the wait for data reception state, receiving a data reception command sent by the UICC.
And step 826, acquiring the analysis data stored to the local according to the data receiving command.
And 828, selecting the analysis data meeting the preset requirement from the analysis data and sending the analysis data to the UICC.
Step 830, after it is detected that the analysis data meeting the preset requirement is selected from the analysis data and sent to the UICC, entering a data sending waiting state.
As shown in fig. 9, after the terminal enters the data receiving waiting state, since the data receiving waiting state is a state in which the terminal is used to receive data, when the terminal is in the data receiving waiting state, after the terminal sends a valid data event request to the UICC to notify the UICC that the terminal has received the parsing data sent by the server, the UICC sends a data receiving command to the terminal, and the terminal receives the data receiving command sent by the UICC. Further, the terminal acquires the analysis data sent by the server from a receiving buffer area stored to the local part of the terminal according to the acquired data receiving command. And because the UICC requires length specification for the parsing data of the UICC sent by the terminal, the target parsing data meeting the requirement is selected from the obtained parsing data according to the length requirement of the UICC for the parsing data sent by the terminal and sent to the UICC. And when the terminal detects that the analysis data meeting the preset requirement is selected from the analysis data and sent to the UICC, the terminal is switched from the data receiving waiting state to the data sending waiting state.
Further, as shown in fig. 9, after it is detected that the selected parsing data meeting the preset requirement from the parsing data is completely sent to the UICC, the terminal may continue to receive the parsing data from the server, and thus the terminal continues to be maintained in a data receiving waiting state.
Step 832, after entering the wait for data transmission state, acquiring a close channel command sent by the UICC.
And 834, disconnecting the server according to the channel closing command, and entering an idle state.
As shown in fig. 9, when it is detected that the selection of the analysis data meeting the preset requirement from the analysis data is completed and the analysis data is sent to the UICC, the terminal returns to the state of waiting for data sending, and the UICC sends a close channel command to the terminal after receiving the command of the service platform to close the channel. And the terminal acquires a channel closing command sent by the UICC, disconnects the connection with the server and closes the BIP channel according to the channel closing command. And after the terminal disconnects the link with the server according to the channel closing command acquired from the UICC, the terminal is switched from the data sending waiting state to the idle state. The idle state at this time is a state in which the terminal is used to wait for the next BIP channel establishment, that is, the terminal obtains the open channel command sent by the next UICC.
In the above embodiment, by limiting the terminal to perform corresponding things independently in four states, the terminal can switch to the next state after completing the specified things in each state, and perform the corresponding things in the next state. The method not only effectively avoids that the terminal end receives the data re-sent event notification sent by the server to the UICC card every time, which causes the interruption of the BIP protocol data transmission between the terminal and the UICC and between the terminal and the server, but also can avoid the chaos of the BIP protocol data transmission between the terminal and the UICC and between the terminal and the server.
It should be understood that although the various steps in the flow charts of fig. 2-8 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-8 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 10, there is provided an apparatus 1000 for BIP protocol data transmission, including: a channel opening command obtaining module 1002, a connection module 1004, a data sending command module 1006, a UICC data sending module 1008, an analysis data receiving module 1010, and a target analysis data sending module 1012, wherein:
a channel opening command obtaining module 1002, configured to obtain a channel opening command sent by a terminal smart card UICC.
The connection module 1004 is configured to establish a connection with the server according to the channel opening command, and enter a data sending waiting state.
A data sending command module 1006, configured to obtain a data sending command sent by the UICC after entering a data sending waiting state.
A UICC data sending module 1008, configured to send the UICC data obtained according to the data sending command to the server, and enter a state of waiting for receiving server data.
And the analysis data receiving module 1010 is configured to, after entering a state of waiting for receiving server data, receive analysis data obtained by analyzing according to the UICC data by the server, store the analysis data locally, and enter a state of waiting for receiving data.
A target analysis data sending module 1012, configured to select target analysis data meeting the preset requirement from the analysis data and send the selected data to the UICC after entering the wait data receiving state.
In one embodiment, as shown in fig. 11, the apparatus 1000 for BIP protocol data transmission further includes: parsed data detection module 1014, close channel command acquisition module 1016, and server disconnect module 1018, wherein:
the analysis data detection module 1014 is configured to enter a data sending waiting state after it is detected that the analysis data meeting the preset requirement is selected from the analysis data and sent to the UICC.
A close channel command obtaining module 1016, configured to obtain a close channel command sent by the UICC after entering the wait for data sending state.
And a server disconnection module 1018, configured to disconnect from the server according to the channel closing command, and enter an idle state.
In one embodiment, the connection module 1004 is further configured to activate a packet data protocol PDP according to the open channel command; and establishing connection with the server through the PDP after the activation is successful.
In one embodiment, the UICC data sending module 1008 is further configured to detect an operation mode corresponding to the data sending command; when the operation mode is detected to be a storage mode, storing UICC data sent by the UICC into a sending buffer area; acquiring UICC data corresponding to the UICC from a sending buffer, wherein the sending buffer is used for storing the UICC data to be sent by the UICC; and sending the UICC data acquired from the sending buffer to a server.
In an embodiment, the parsing data receiving module 1010 is further configured to receive parsing data obtained by parsing by the server according to the UICC data; storing the received analysis data to a receiving buffer area, wherein the receiving buffer area is used for storing the analysis data sent by the server; and after the analysis data is stored in the receiving buffer, sending a valid data event request to the UICC so that the UICC acquires the analysis data from the receiving buffer.
In one embodiment, the target parsing data sending module 1012 is further configured to receive a data receiving command sent by the UICC; acquiring analysis data stored to the local according to the data receiving command; and selecting the analysis data meeting the preset requirements from the analysis data and sending the analysis data to the UICC.
For specific limitations of the apparatus for transmitting the BIP protocol data, reference may be made to the above limitations of the method for transmitting the BIP protocol data, which are not described herein again. The modules in the BIP protocol data transmission device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 12. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of BIP protocol data transmission. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 12 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program: acquiring a channel opening command sent by a terminal intelligent card UICC; establishing connection with a server according to a channel opening command, and entering a data sending waiting state; after entering a data sending waiting state, acquiring a data sending command sent by the UICC; sending the UICC data acquired according to the data sending command to a server, and entering a state of waiting for receiving the server data; after entering a state of waiting for receiving server data, the receiving server analyzes the analysis data obtained according to the UICC data and stores the analysis data to the local, and enters a state of waiting for receiving data; and after entering a waiting data receiving state, selecting target analysis data meeting preset requirements from the analysis data and sending the target analysis data to the UICC.
In one embodiment, the method for BIP protocol data transmission further includes: entering a data sending waiting state after detecting that the analysis data meeting the preset requirement is selected from the analysis data and sent to the UICC; after entering a waiting data sending state, acquiring a channel closing command sent by the UICC; and disconnecting the server according to the channel closing command and entering an idle state.
In one embodiment, the step of establishing a connection with the server according to the open channel command comprises: activating a Packet Data Protocol (PDP) according to the channel opening command; and establishing connection with the server through the PDP after the activation is successful.
In one embodiment, the step of sending the UICC data obtained according to the data sending command to the server includes: detecting an operation mode corresponding to the data sending command; when the operation mode is detected to be a storage mode, storing UICC data sent by the UICC into a sending buffer area; acquiring UICC data corresponding to the UICC from a sending buffer, wherein the sending buffer is used for storing the UICC data to be sent by the UICC; and sending the UICC data acquired from the sending buffer to a server.
In one embodiment, the step of receiving the analysis data obtained by analyzing the UICC data by the server and storing the analysis data to the local comprises the steps of receiving the analysis data obtained by analyzing the UICC data by the server; storing the received analysis data to a receiving buffer area, wherein the receiving buffer area is used for storing the analysis data sent by the server; and after the analysis data is stored in the receiving buffer, sending a valid data event request to the UICC so that the UICC acquires the analysis data from the receiving buffer.
In one embodiment, the step of selecting the parsing data meeting the preset requirement from the parsing data and sending the parsing data to the UICC includes: receiving a data receiving command sent by the UICC; acquiring analysis data stored to the local according to the data receiving command; and selecting the analysis data meeting the preset requirements from the analysis data and sending the analysis data to the UICC.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of BIP protocol data transmission, the method comprising:
acquiring a channel opening command sent by a terminal intelligent card UICC;
establishing connection with a server according to the channel opening command, and entering a data sending waiting state;
after entering the data transmission waiting state, acquiring a data transmission command transmitted by the UICC;
sending the UICC data acquired according to the data sending command to a server, and entering a state of waiting for receiving the server data;
after entering the state of waiting to receive the server data, receiving analysis data obtained by analyzing the server according to the UICC data, storing the analysis data to the local, and entering the state of waiting to receive the data;
after entering the waiting data receiving state, selecting target analysis data meeting preset requirements from the analysis data and sending the target analysis data to the UICC;
entering the data sending waiting state after detecting that the analysis data meeting the preset requirements are selected from the analysis data and sent to the UICC;
after entering the waiting data sending state, acquiring a channel closing command sent by the UICC;
and disconnecting the server according to the channel closing command and entering an idle state.
2. The method according to claim 1, wherein the step of receiving and storing the parsed data parsed by the server according to the UICC data to a local location comprises:
receiving analysis data obtained by analyzing the server according to the UICC data;
storing the received analysis data to a receiving buffer area, wherein the receiving buffer area is used for storing the analysis data sent by the server;
after the analysis data is stored in the receiving buffer, sending a valid data event request to the UICC, so that the UICC obtains the analysis data from the receiving buffer.
3. The method of claim 1, wherein the step of establishing a connection with a server according to the open channel command comprises:
activating a Packet Data Protocol (PDP) according to the channel opening command;
and establishing connection with the server through the PDP after the activation is successful.
4. The method according to claim 1, wherein the step of sending the UICC data obtained according to the data sending command to the server includes:
detecting an operation mode corresponding to the data sending command;
when the operation mode is detected to be a storage mode, storing the UICC data sent by the UICC into a sending buffer area;
acquiring UICC data corresponding to the UICC from the sending buffer, wherein the sending buffer is used for storing the UICC data to be sent by the UICC;
and sending the UICC data acquired from the sending buffer to the server.
5. The method according to claim 1, wherein the step of selecting target parsing data meeting preset requirements from the parsing data and sending the target parsing data to the UICC comprises:
receiving a data receiving command sent by the UICC;
acquiring the analysis data stored to the local according to the data receiving command;
and selecting target analysis data meeting preset requirements from the analysis data and sending the target analysis data to the UICC.
6. An apparatus for BIP protocol data transmission, the apparatus comprising:
the channel opening command acquisition module is used for acquiring a channel opening command sent by a terminal intelligent card UICC;
the connection module is used for establishing connection with the server according to the channel opening command and entering a data sending waiting state;
a data sending command module, configured to obtain a data sending command sent by the UICC after entering the wait data sending state;
the UICC data sending module is used for sending the UICC data obtained according to the data sending command to the server and entering a state of waiting for receiving the server data;
the analysis data receiving module is used for receiving analysis data obtained by analyzing the server according to the UICC data after entering the state of waiting for receiving the server data, storing the analysis data to the local and entering the state of waiting for receiving the data;
a target analysis data sending module, configured to select, after entering the wait data receiving state, target analysis data meeting a preset requirement from the analysis data, and send the selected target analysis data to the UICC;
the analysis data detection module is used for entering the data sending waiting state after the analysis data which meets the preset requirements is selected from the analysis data and sent to the UICC;
a channel closing command obtaining module, configured to obtain a channel closing command sent by the UICC after entering the wait data sending state;
and the server disconnection module is used for disconnecting the server according to the channel closing command and entering an idle state.
7. The apparatus of claim 6, wherein the UICC data sending module is further configured to detect an operation mode corresponding to the data sending command; when the operation mode is detected to be a storage mode, storing the UICC data sent by the UICC into a sending buffer area; acquiring UICC data corresponding to the UICC from the sending buffer, wherein the sending buffer is used for storing the UICC data to be sent by the UICC; and sending the UICC data acquired from the sending buffer to the server.
8. The apparatus of claim 6, wherein the connection module is further configured to activate a Packet Data Protocol (PDP) according to the open channel command; and establishing connection with the server through the PDP after the activation is successful.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 5 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
CN201810027432.XA 2018-01-11 2018-01-11 BIP protocol data transmission method and device, computer equipment and storage medium Active CN108282521B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810027432.XA CN108282521B (en) 2018-01-11 2018-01-11 BIP protocol data transmission method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810027432.XA CN108282521B (en) 2018-01-11 2018-01-11 BIP protocol data transmission method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108282521A CN108282521A (en) 2018-07-13
CN108282521B true CN108282521B (en) 2021-05-28

Family

ID=62803556

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810027432.XA Active CN108282521B (en) 2018-01-11 2018-01-11 BIP protocol data transmission method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108282521B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111246455B (en) * 2020-01-10 2022-08-19 高新兴物联科技有限公司 Registration activation method, equipment and computer readable storage medium
CN112188476B (en) * 2020-09-09 2023-04-28 芯象半导体科技(北京)有限公司 Communication method, communication device, mobile terminal, and storage medium
CN112256373B (en) * 2020-10-21 2023-05-23 中国联合网络通信集团有限公司 Setting method of USIM application shortcut, terminal and smart card
CN112506676B (en) * 2020-12-02 2024-04-05 深圳市广和通无线股份有限公司 Inter-process data transmission method, computer device and storage medium
CN113840275B (en) * 2021-09-18 2023-07-07 中国联合网络通信集团有限公司 Terminal session connection confirmation method, USIM, terminal, equipment and medium
CN114221989B (en) * 2021-12-16 2023-06-02 中国联合网络通信集团有限公司 Channel service management method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101267458A (en) * 2008-04-29 2008-09-17 北京泰得思达科技发展有限公司 A data transmission method for storage system under network environment
CN101594614A (en) * 2009-06-30 2009-12-02 中兴通讯股份有限公司 Data download method and terminal
CN102665240A (en) * 2012-03-29 2012-09-12 钱袋网(北京)信息技术有限公司 Data sending method, data receiving method, apparatuses and system
CN104702598A (en) * 2015-02-16 2015-06-10 南京邮电大学 Distributed network protocol security detection method for smart power grid
CN104808116A (en) * 2015-05-11 2015-07-29 毕节供电局 Line fault location method for distribution network based on GPRS (General Packet Radio Service) / SMS (Short Messaging Service) mixed communication

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101267458A (en) * 2008-04-29 2008-09-17 北京泰得思达科技发展有限公司 A data transmission method for storage system under network environment
CN101594614A (en) * 2009-06-30 2009-12-02 中兴通讯股份有限公司 Data download method and terminal
CN102665240A (en) * 2012-03-29 2012-09-12 钱袋网(北京)信息技术有限公司 Data sending method, data receiving method, apparatuses and system
CN104702598A (en) * 2015-02-16 2015-06-10 南京邮电大学 Distributed network protocol security detection method for smart power grid
CN104808116A (en) * 2015-05-11 2015-07-29 毕节供电局 Line fault location method for distribution network based on GPRS (General Packet Radio Service) / SMS (Short Messaging Service) mixed communication

Also Published As

Publication number Publication date
CN108282521A (en) 2018-07-13

Similar Documents

Publication Publication Date Title
CN108282521B (en) BIP protocol data transmission method and device, computer equipment and storage medium
CN108616979B (en) Dual-card network system control method and device, computer equipment and storage medium
US20180091581A1 (en) Method of switching download mode, control method thereof and control system thereof
CN111107176B (en) Data transmission method and device, computer equipment and storage medium
CN111031542B (en) Base station opening method, device, communication equipment and storage medium
CN110337825B (en) Service switching method and device
CA2693659C (en) Method and apparatus for location request tracking
CN111565479B (en) Communication method, device and system thereof
KR20110045154A (en) Apparatus and method for connecting the access point in portable communication system
CN112333803B (en) Communication configuration method and device
CN114501490B (en) Service transfer method, terminal and network side equipment
CN113259927B (en) Terminal capability updating method, device and storage medium
CN110535826B (en) Wireless networking method and device, computer equipment and storage medium
CN113316205A (en) Cell switching method, device, electronic equipment and computer readable storage medium
CN113543276A (en) Network access method, device, storage medium and electronic equipment
CN115209521B (en) Message processing method, device, equipment and storage medium
CN115209492B (en) Communication processing method and device and related equipment
CN115103416B (en) Network switching method, device, equipment and storage medium
CN114071445B (en) Configuration method of information transmission mode, terminal and network side equipment
CN112616167B (en) Switching method and device
CN110536480B (en) Spectrum management method and device, computer equipment and storage medium
KR20090047935A (en) Apparatus and method for file transfer using ims service in mobile communication terminal
CN115580947A (en) Communication processing method and device, and storage medium
CN111757326A (en) Vulnerability prevention and control method and device, mobile terminal and computer readable storage medium
CN116886153A (en) Satellite switching method, communication method, system, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant