Air card writing method and device and related equipment

By encapsulating business requests into downlink data SMS messages through gateway devices and converting serial numbers using predefined relationships, the problem of insufficient storage space in card devices is solved, and an efficient over-the-air card writing method is realized, improving the accuracy and efficiency of business execution.

CN117295020BActive Publication Date: 2026-08-04CHINA MOBILE M2M +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA MOBILE M2M
Filing Date
2022-06-17
Publication Date
2026-08-04

AI Technical Summary

Technical Problem

In existing technologies, the space resources on the card device side are limited, and storing a unique serial number occupies a large amount of space, resulting in a small operating space.

Method used

The gateway device encapsulates the service request into a downlink data SMS, associates the serial number with the first identifier, and the card device does not need to save the serial number. The gateway device converts the serial number based on a predefined relationship and sends the service response.

Benefits of technology

It saves storage space and computing resources for card devices, improves the accuracy of the business platform in terms of business request execution and results, and enhances the efficiency of over-the-air card writing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117295020B_ABST
    Figure CN117295020B_ABST
Patent Text Reader

Abstract

This invention discloses an over-the-air (OTA) card writing method, apparatus, and related equipment, relating to the field of OTA card writing technology, to solve the problem of the large space occupied by storing unique serial numbers on the card device. The method includes: receiving a service request sent by a service platform; generating a downlink data SMS message based on the service request, the service request carrying a serial number and a card identifier, the downlink data SMS message including a first identifier; sending the downlink data SMS message to the card device; receiving response data sent by the card device, the response data including a second identifier; determining the serial number corresponding to the second identifier based on a predefined correspondence between the second identifier and the first identifier, and a correspondence between the first identifier and the serial number; and sending a service response to the service request to the service platform, the service response being generated based on the response data, the service response carrying the serial number corresponding to the second identifier. This embodiment of the invention eliminates the need to store the serial number on the card device, reducing the space occupied by the card device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of over-the-air card writing technology, and in particular to an over-the-air card writing method, apparatus and related equipment. Background Technology

[0002] With the gradual maturation of smart card technology, on-card applications and on-card data management are showing a rapid growth trend, which also places higher demands on over-the-air (OTA) card writing technology. After a business platform sends a business request to a card device, it typically needs to accurately know the card device's execution status and results of the business request.

[0003] Therefore, in existing technologies, the business requests issued by the business platform carry a unique serial number to identify the business request. After receiving the business request from the business platform, the card device needs to store this unique serial number on the card device side. After performing the corresponding operations, the card device puts the unique serial number into the business data and sends it back to the business platform.

[0004] Card devices typically have very limited space resources. Therefore, storing a unique serial number on the card device takes up a lot of space, putting a lot of pressure on the card device's space and resulting in a small operating space on the card device. Summary of the Invention

[0005] This invention provides an over-the-air card writing method, apparatus, and related equipment to solve the problem of the large space occupied by storing unique serial numbers on the card device.

[0006] In a first aspect, embodiments of the present invention provide an over-the-air card writing method, applied to a gateway device, comprising:

[0007] The system receives a service request sent by a service platform and generates a downlink data SMS message based on the service request. The service request carries a serial number and a card identifier. The card identifier is used to identify the card device corresponding to the service request. The serial number is used to identify the service request. The downlink data SMS message includes a first identifier.

[0008] Send the downlink data SMS to the card device;

[0009] Receive response data sent by the card device based on the downlink data SMS, the response data including a second identifier;

[0010] Based on the predefined correspondence between the second identifier and the first identifier, and the correspondence between the first identifier and the serial number, the serial number corresponding to the second identifier is determined;

[0011] A business response to the business request is sent to the business platform. The business response is generated based on the response data and carries a serial number corresponding to the second identifier.

[0012] Optionally, generating a downlink data SMS based on the received service request includes:

[0013] Receive business requests issued by the business platform;

[0014] The service request is encapsulated based on the target SMS protocol to obtain downlink data SMS.

[0015] Optionally, the downlink data SMS includes a first common parameter part and a first data parameter part. The first common parameter part is generated based on the target SMS protocol and includes the first identifier. The data parameter part of the downlink data SMS is generated based on the service request.

[0016] Optionally, the gateway device includes an SMS gateway and / or a BIP (Bearer Independent Protocol) gateway.

[0017] Secondly, embodiments of the present invention also provide an over-the-air card writing method, applied to a card device, comprising:

[0018] Receive downlink data SMS messages sent by the gateway device, the downlink data SMS messages being generated based on a service request, and the downlink data SMS messages including a first identifier;

[0019] Based on the downlink data SMS, the target operation is performed to obtain the data packet;

[0020] Response data is generated based on the data packet, and the response data includes a second identifier, the correspondence between the second identifier and the first identifier being predefined;

[0021] The response data is sent to the gateway device.

[0022] Optionally, obtaining response data based on the data packet includes:

[0023] The data packet is encapsulated based on the target SMS protocol to obtain response data.

[0024] Optionally, the response data includes a second common parameter portion and a second data parameter portion, wherein the second common parameter portion is generated based on the target SMS protocol and includes the second identifier, and the second data parameter portion is generated based on the data packet.

[0025] Thirdly, embodiments of the present invention also provide an over-the-air card writing device, wherein the gateway device includes the over-the-air card writing device, comprising:

[0026] The processing module is used to receive a service request sent by the service platform and generate a downlink data SMS based on the service request. The service request carries a serial number and a card identifier. The card identifier is used to identify the card device corresponding to the service request, and the serial number is used to identify the service request. The downlink data SMS includes a first identifier.

[0027] The first sending module is used to send the downlink data SMS to the card device;

[0028] The first receiving module is configured to receive response data sent by the card device based on the downlink data SMS, the response data including a second identifier;

[0029] The determination module is used to determine the serial number corresponding to the second identifier based on the predefined correspondence between the second identifier and the first identifier and the correspondence between the first identifier and the serial number;

[0030] The second sending module is used to send a service response to the service request to the service platform. The service response is generated based on the response data and carries a serial number corresponding to the second identifier.

[0031] Fourthly, embodiments of the present invention also provide an over-the-air card writing device, the card device including the over-the-air card writing device, comprising:

[0032] The second receiving module is used to receive downlink data SMS messages sent by the gateway device. The downlink data SMS messages are generated based on service requests and include a first identifier.

[0033] The execution module is used to perform the target operation based on the downlink data SMS to obtain the data packet;

[0034] A generation module is used to generate response data based on the data packet, wherein the response data includes a second identifier, and the correspondence between the second identifier and the first identifier is predefined;

[0035] The third sending module is used to send the response data to the gateway device.

[0036] Fifthly, embodiments of the present invention also provide a gateway device, including: a transceiver, a memory, a processor, and a computer program stored in the memory and executable on the processor;

[0037] The processor is used to read a program from the memory to implement the steps of the method described in the first aspect.

[0038] In a sixth aspect, embodiments of the present invention also provide a card device, including: a transceiver, a memory, a processor, and a computer program stored in the memory and executable on the processor;

[0039] The processor is configured to read a program from memory to implement the steps described in the second aspect of the method.

[0040] In a seventh aspect, embodiments of the present invention also provide a readable storage medium for storing a program, which, when executed by a processor, implements the steps of the method described in the first or second aspect.

[0041] In this embodiment of the invention, after receiving a service request from the service platform, the gateway device encapsulates the service request into a downlink data SMS and associates the serial number carried in the service request with a first identifier included in the downlink data SMS. Then, the gateway device sends the downlink data SMS to the card device and receives response data sent by the card device based on the downlink data SMS. The response data includes a second identifier. Based on a predefined correspondence between the second identifier and the first identifier, and between the first identifier and the serial number, the gateway device can convert the second identifier into a corresponding serial number and send a service response carrying the serial number corresponding to the second identifier to the service platform. Through this method, there is no need to carry the serial number in the downlink data SMS, and the card device does not need to store the serial number, thereby saving storage space and computing resources for the card device. Attached Figure Description

[0042] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0043] Figure 1 This is one of the flowcharts of the over-the-air card writing method provided in the embodiments of the present invention;

[0044] Figure 2 This is the second flowchart of the over-the-air card writing method provided in the embodiments of the present invention;

[0045] Figure 3 This is the over-the-air card writing system provided in the embodiments of the present invention;

[0046] Figure 4 This is the third flowchart of the over-the-air card writing method provided in the embodiments of the present invention;

[0047] Figure 5 This is one of the structural diagrams of the over-the-air card writing device provided in the embodiments of the present invention;

[0048] Figure 6 This is the second structural diagram of the over-the-air card writing device provided in the embodiments of the present invention;

[0049] Figure 7 This is a structural diagram of the gateway device provided in an embodiment of the present invention;

[0050] Figure 8 This is a structural diagram of the card device provided in an embodiment of the present invention. Detailed Implementation

[0051] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0052] See Figure 1 , Figure 1 This is one of the flowcharts for the over-the-air card writing method provided in the embodiments of the present invention. For example... Figure 1 As shown, this embodiment of the invention provides an over-the-air card writing method applied to a gateway device. The method specifically includes the following steps:

[0053] Step 101: Receive a service request sent by the service platform, and generate a downlink data SMS based on the service request. The service request carries a serial number and a card identifier. The card identifier is used to identify the card device corresponding to the service request, and the serial number is used to identify the service request. The downlink data SMS includes a first identifier.

[0054] Step 102: Send the downlink data SMS to the card device.

[0055] Step 103: Receive response data sent by the card device based on the downlink data SMS, the response data including a second identifier.

[0056] Step 104: Based on the predefined correspondence between the second identifier and the first identifier and the correspondence between the first identifier and the serial number, determine the serial number corresponding to the second identifier.

[0057] Step 105: Send a business response to the business request to the business platform. The business response is generated based on the response data and carries a serial number corresponding to the second identifier.

[0058] The service platform sends a service request carrying a serial number and card identifier to the gateway device. The gateway device receives the service request from the service platform and generates a downlink data SMS message based on the service request. The generated downlink data SMS message includes a first identifier.

[0059] The gateway device sends a downlink data SMS to the card device, and then receives response data sent by the card device based on the downlink data SMS. The response data includes a second identifier. The mapping between the first identifier and the serial number is stored in the gateway device, and the mapping between the second identifier and the first identifier is predefined. Therefore, the gateway device can determine the first identifier corresponding to the second identifier, and then determine the serial number corresponding to the first identifier, thereby determining the serial number corresponding to the second identifier.

[0060] The gateway device generates a service response to the service request based on the response data and sends a service response carrying a serial number corresponding to the second identifier to the service platform. The service platform can locate the corresponding service request through the serial number corresponding to the second identifier, thereby determining the execution status and / or execution result of the service request.

[0061] In this embodiment, the service platform can be understood as a server-side device used to send service requests and receive service responses corresponding to the service requests.

[0062] The serial number carried in the business request is used to identify the business request. This can be understood as each business request on the business platform corresponding to a unique serial number, which the business platform can use to determine a unique business request. Specifically, in some embodiments, the business platform establishes a relational data storage model, and for each business request, a unique session identifier serial number (transId) is generated. The card identifier carried in the business request is used to identify the card device corresponding to the business request. The specific content of the card identifier is not limited here. For example, in some embodiments, the card identifier is the card number of the card device corresponding to the business request. In other embodiments, the card identifier is the device code of the card device corresponding to the business request.

[0063] To facilitate understanding, an example will be provided below. In one embodiment, the service platform sends service request A to the gateway device at time A. Service request A carries transId A and card number A. At time B, the service platform sends service request B to the gateway device. Service request B carries transId B and card number B. The gateway device sends service response 1 to the service platform in response to the service request.

[0064] If business response 1 does not carry a transId, the business platform cannot determine whether business response 1 is a response to business request A or business request B. If business response 1 does not carry a transId, the business platform can determine the corresponding business request based on the transId carried in business response 1. That is, if business response 1 carries transId A, the business platform determines that business response 1 is the business response corresponding to business request A; if business response 1 carries transId B, the business platform determines that business response 1 is the business response corresponding to business request B.

[0065] In this embodiment, serial numbers can accurately associate asynchronous downlink and uplink sessions, thereby reducing the probability of misjudgment by the service platform and improving service stability and accuracy. Simultaneously, through the above settings, the service platform can send another service request without receiving a response to the previous request; that is, the service platform can send multiple downlink service requests in parallel, thus improving the efficiency of Over-the-Air (OTA) command issuance and the efficiency of over-the-air (OTA) downlink writing.

[0066] It should be understood that the inclusion of a first identifier in a downlink data message can be interpreted as the first identifier being generated by the gateway device when generating the downlink data message based on service data. Depending on the structure of the downlink data message, the way the first identifier is included can also differ. In some embodiments, the first identifier can be included at any location within the downlink data message.

[0067] It should be understood that the specific content of the first identifier is not limited here. For example, in some embodiments, the first identifier is a counter (CNTR) value generated by the gateway device during the process of generating a downlink data SMS based on the service request. In specific implementations, the CNTR value can be understood as a unique 5-byte identifier corresponding to the card identifier.

[0068] It should be noted that after the gateway device generates a downlink data SMS based on the service request, it stores the first identifier included in the downlink data SMS, as well as the serial number and card identifier carried in the service request, on the gateway device side, and also stores the correspondence between the first identifier, the serial number and the card identifier.

[0069] It should be understood that the specific method by which the gateway device stores the first identifier, serial number, and card identifier, as well as the correspondence between them, is not limited here. For example, in some embodiments, the gateway device directly caches the first identifier, serial number, and card identifier, as well as the correspondence between them. In other embodiments, the gateway device includes a pre-stored database, in which the gateway device stores the first identifier, serial number, and card identifier, as well as the correspondence between them, in the pre-stored database.

[0070] Optionally, in other embodiments, the gateway device establishes a key-value (KV) cache storage model. The gateway device stores a first identifier as a key in the KV cache storage model, and stores the serial number and card identifier corresponding to the first identifier as their respective values ​​in the KV cache storage model. In other embodiments, the gateway device stores the first identifier as a key in the KV cache storage model, and stores the value corresponding to the serial number of the first identifier in the KV cache storage model.

[0071] It should be noted that in this embodiment, the service platform can issue multiple downlink service requests in parallel, therefore the KV cache storage model can store multiple KEY-VALUE pairs. When the gateway device receives the second identifier, it can query the KV cache storage model using the first identifier corresponding to the second identifier to obtain the serial number corresponding to the second identifier.

[0072] It should be noted that in some embodiments, the gateway device may only store the first identifier, the serial number, and the correspondence between the first identifier and the serial number. In practical applications, when different card devices have the same first identifier, storing the card identifier can further improve the uniqueness of the first identifier, thereby improving the accuracy of the association between the first identifier and the serial number.

[0073] It should be understood that the specific method by which the gateway device generates downlink data SMS messages based on the received service requests is not limited here.

[0074] For example, optionally, in some embodiments, generating a downlink data SMS based on a received service request includes:

[0075] Receive business requests issued by the business platform;

[0076] The service request is encapsulated based on the target SMS protocol to obtain downlink data SMS.

[0077] The service platform sends a service request to the gateway device. The gateway device receives the service request from the service platform and encapsulates the service request based on the target SMS protocol to obtain the downlink data SMS. It should be noted that encapsulating the service request based on the target SMS protocol can also be understood as the target SMS protocol packetizing the service request.

[0078] In some embodiments, the gateway device establishes a data SMS packet module to provide the business platform with a Hypertext Transfer Protocol (HTTP) interface or a Hypertext Transfer Protocol over Secure Socket Layer (HTTPS) interface.

[0079] Specifically, the data SMS packet module can provide an HTTP downlink interface, use the serial number as a common input parameter, cache the received serial number, parse the business request received by the HTTP interface, and packetize the business request according to the target SMS protocol to obtain the downlink data SMS and send it to the card device.

[0080] It should be understood that the target SMS protocol can be any standard SMS protocol. For example, in some embodiments, the target SMS protocol is the Short Messaging Service (SMS) protocol. In other embodiments, the target SMS protocol is the Enhanced Message Service (EMS) protocol. In still other embodiments, the target SMS protocol is the Third Generation Partnership Projects (3GPP) 03.48 protocol.

[0081] Encapsulating a business request based on the target SMS protocol to obtain downlink data SMS can be understood as encapsulating the business request based on the target SMS protocol, and the structure of the resulting downlink data SMS is determined by the target SMS protocol. The structure of the downlink data SMS can be understood as including the parameter section, the specific parameter content of each parameter section, and the generation rules of each parameter section.

[0082] In this embodiment of the invention, the gateway device generating a downlink data SMS based on a received service request specifically includes: the gateway device receiving a service request issued by a service platform, encapsulating the service request based on a target SMS protocol, and obtaining a downlink data SMS. By encapsulating the service request based on the target SMS protocol, the serial number carried by the service request can be mapped to a first identifier included in the downlink data SMS, thereby eliminating the need to send the serial number to the card device and improving the standardization of the generation of the first identifier.

[0083] It should be understood that the specific structure of downlink data SMS is not limited here. The structure of downlink data SMS usually varies depending on the target SMS protocol.

[0084] Optionally, in some embodiments, the downlink data SMS includes a first common parameter portion and a first data parameter portion, wherein the first common parameter portion is generated based on the target SMS protocol and includes the first identifier, and the data parameter portion of the downlink data SMS is generated based on the service request.

[0085] The first common parameter part, generated based on the target SMS protocol, can be understood as follows: the target SMS protocol has standardized components and generation rules for common parameters. In the process of encapsulating the business request based on the target SMS protocol to obtain downlink data SMS, the first common parameter part is generated according to the specifications of the target SMS protocol.

[0086] The first data parameter part, generated based on the business request, can be understood as the personalized data part or business data part in the downlink data SMS. The first data parameter part includes the data content of the business request.

[0087] In practice, for different downlink data SMS messages, it can be assumed that the components and generation rules of the first common parameter part are the same, the specific parameter values ​​of the first common parameter part can be different, and the content of the first data parameter part is usually different.

[0088] It should be noted that the first common parameter part and the first data parameter part of downlink data SMS are independent of each other. Therefore, the common parameters of downlink data SMS are completely independent of the business data and have no intrusion on the business, thus achieving functional decoupling between the business layer and the data layer.

[0089] In this embodiment of the invention, the downlink data SMS includes a first common parameter portion and a first data parameter portion. The first common parameter portion is generated based on the target SMS protocol and includes a first identifier. The data parameter portion of the downlink data SMS is generated based on the service request. Through the above settings, the first identifier and the service request are independent of each other, reducing the intrusiveness of the first identifier on the service data.

[0090] Optionally, in some embodiments, the gateway device includes a text messaging gateway and / or a Bearer Independent Protocol (BIP) gateway.

[0091] In some embodiments, the gateway device includes a short message gateway. In other embodiments, the gateway device includes a BIP gateway. In still other embodiments, the gateway device includes both a short message gateway and a BIP gateway. Where the gateway device includes both a short message gateway and a BIP gateway, the short message gateway and the BIP gateway can each perform any part of the steps of the gateway device.

[0092] For example, in some embodiments, the gateway device includes an SMS gateway and a BIP gateway. The SMS gateway is used to receive service requests sent by the service platform, generate downlink data SMS messages based on the service requests, and send the downlink data SMS messages to the card device. The BIP gateway is used to receive response data sent by the card device based on the downlink data SMS messages, determine the serial number corresponding to the second identifier based on a predefined correspondence between a second identifier and a first identifier, and a correspondence between the first identifier and a serial number, and send a service response to the service request to the service platform.

[0093] In other embodiments, the gateway device includes an SMS gateway and a BIP gateway. The SMS gateway is used to receive service requests sent by the service platform, generate downlink data SMS messages based on the service requests, send the downlink data SMS messages to the card device, and determine the serial number corresponding to the second identifier based on a predefined correspondence between a second identifier and a first identifier, and a correspondence between the first identifier and a serial number. The BIP gateway is used to receive response data sent by the card device based on the downlink data SMS messages, and send a service response to the service request to the service platform.

[0094] In some embodiments, the SMS gateway can be used to send data SMS messages to the card device, and the BIP gateway can be used to establish a BIP channel and receive data receipts or perform uplink and downlink data interactions through the BIP channel.

[0095] It should be noted that, in practical implementation, the specific steps executed by the SMS gateway and BIP gateway can be determined based on the size of the service request and / or the size of the service response. For example, when both the service request and the service response are small, the gateway device includes an SMS gateway. When both the service request and the service response are large, the gateway device includes both an SMS device and a BIP gateway.

[0096] In this embodiment of the invention, the gateway device includes an SMS gateway and / or a BIP gateway. This configuration reduces the cost of modifying the relevant gateway devices and improves the practicality and applicability of the method.

[0097] In this embodiment of the invention, after receiving a service request from the service platform, the gateway device encapsulates the service request into a downlink data SMS and associates the serial number carried in the service request with a first identifier included in the downlink data SMS. Then, the gateway device sends the downlink data SMS to the card device and receives response data sent by the card device based on the downlink data SMS. The response data includes a second identifier. Based on a predefined correspondence between the second identifier and the first identifier, and between the first identifier and the serial number, the gateway device can convert the second identifier into a corresponding serial number and send a service response carrying the serial number corresponding to the second identifier to the service platform. Through this method, there is no need to carry the serial number in the downlink data SMS, and the card device does not need to store the serial number, thereby saving storage space and computing resources for the card device.

[0098] See Figure 2 , Figure 2 This is the second flowchart of the over-the-air card writing method provided in this embodiment of the invention. For example... Figure 2 As shown, this embodiment of the invention provides an over-the-air card writing method, applied to a card device. The method specifically includes the following steps:

[0099] Step 201: Receive a downlink data SMS message sent by the gateway device. The downlink data SMS message is generated based on a service request and includes a first identifier.

[0100] Step 202: Perform the target operation based on the downlink data SMS to obtain the data packet.

[0101] Step 203: Generate response data based on the data packet. The response data includes a second identifier, and the correspondence between the second identifier and the first identifier is predefined.

[0102] Step 204: Send the response data to the gateway device.

[0103] The card device receives downlink data messages sent by the gateway device. These downlink data messages include a first identifier. Since the downlink data messages are generated based on service requests, the card device can execute the corresponding target operation based on the service request within the downlink data message to obtain a data packet. The data packet can be used to characterize the result of executing the target operation. The card device generates response data based on the data packet, which includes a second identifier, and then sends the response data to the gateway device.

[0104] In this embodiment, the card device can be used to receive downlink data SMS messages, thereby obtaining service requests issued by the service platform, performing corresponding operations on the card device side, and sending the execution results or service responses back to the service platform via SMS or BIP channel.

[0105] In specific implementations, the specific structure of the card device is not limited here. For example, in some embodiments, the card device is a smart card device. In other embodiments, the card device can be any one of the following card devices with communication functions: Universal Integrated Circuit Card (UICC), Subscriber Identity Module (SIM) card, Embedded-SIM (eSIM) card, etc.

[0106] It should be understood that the correspondence between the second identifier and the first identifier is predefined, and the specific correspondence between the second identifier and the first identifier is not limited here. For example, in some embodiments, the second identifier is the same as the first identifier. In other embodiments, the second identifier can be calculated from the first identifier based on a preset algorithm. In still other embodiments, when both the second identifier and the first identifier are CNTR values, the value of the second identifier is equal to the value of the first identifier plus one.

[0107] It should be understood that the specific method for obtaining response data based on the data message is not limited here.

[0108] For example, optionally, in some embodiments, obtaining response data based on the data packet includes:

[0109] The data packet is encapsulated based on the target SMS protocol to obtain response data.

[0110] The card device encapsulates the data packet based on the target SMS protocol to obtain response data. The target SMS protocol used for encapsulating the data packet can be any standard SMS protocol. For example, in some embodiments, the target SMS protocol is the SMS protocol. In other embodiments, the target SMS protocol is the EMS protocol. In still other embodiments, the target SMS protocol is the 3GPP 03.48 protocol.

[0111] In some embodiments, the target SMS protocol on which the card device encapsulates data packets and the target SMS protocol on which the gateway device encapsulates service requests can be the same SMS protocol in a specific implementation. Since the first identifier and the second identifier are generated based on the same SMS protocol, the correspondence between the first identifier and the second identifier can be considered known or definite.

[0112] In other embodiments, the target SMS protocol on which the card device encapsulates data packets and the target SMS protocol on which the gateway device encapsulates service requests can be different SMS protocols in specific implementations. However, in this case, the correspondence between the first identifier and the second identifier generated based on the two different SMS protocols is predefined, that is, the gateway device can determine its corresponding unique first identifier based on the second identifier.

[0113] It should be understood that the inclusion of a second identifier in the response data can be interpreted as the second identifier being generated by the card device when generating the response data based on the data packet. Upon receiving the response data, the gateway device can extract the second identifier from the response data. Depending on the structure of the response data, the way the second identifier is included in the response data can also vary. In some embodiments, the second identifier can be included at any location within the response data.

[0114] For example, optionally, in some embodiments, the response data includes a second common parameter portion and a second data parameter portion, wherein the second common parameter portion is generated based on the target SMS protocol and includes a second identifier, and the second data parameter portion is generated based on the data packet.

[0115] The second common parameter part, generated based on the target SMS protocol, can be understood as follows: the target SMS protocol has standardized components and generation rules for common parameters. During the process of encapsulating data packets based on the target SMS protocol to obtain response data, the second common parameter part is generated according to the specifications of the target SMS protocol.

[0116] To facilitate understanding, an example will be provided below. For instance, if the target SMS protocol is 3GPP 03.48, according to 3GPP 03.48, the common parameter part of the data encapsulated based on 3GPP 03.48 includes a CNTR value, the specific value of which is directly calculated and generated according to the protocol.

[0117] The second data parameter part, generated based on the data packet, can be understood as the personalized data part or business data part in the response data. The second data parameter part includes the data packet, or in other words, the second data parameter part is the execution result and / or execution status of the card device in response to the business request.

[0118] In practice, for different response data, it can be assumed that the components and generation rules of the second common parameter part are the same, but the specific parameter values ​​of the second common parameter part can be different, and the content of the second data parameter part is usually different.

[0119] It should be noted that the second common parameter part and the second data parameter part of the response data are independent of each other. Therefore, the common parameters of the response data are completely independent of the business data and have no intrusion into the business, thus achieving functional decoupling between the business layer and the data layer.

[0120] In this embodiment of the invention, the response data includes a second common parameter portion and a second data parameter portion. The second common parameter portion is generated based on the target SMS protocol and includes a second identifier. The second data parameter portion is generated based on the data packet. Through the above settings, the second identifier and the data packet are independent of each other, reducing the intrusiveness of the second identifier on the data packet.

[0121] In this embodiment of the invention, the card device receives a downlink data SMS sent by the gateway device. The downlink data SMS is generated based on a service request and includes a first identifier. The card device then performs a target operation based on the downlink data SMS, obtains a data packet, and generates response data including a second identifier based on the data packet. Since the correspondence between the second identifier and the first identifier is predefined, after sending the response data to the gateway device, the gateway device can obtain the corresponding serial number based on the second identifier. Through this method, the card device does not receive the serial number and therefore does not need to store it. Furthermore, since the second identifier is obtained through the target SMS protocol message, no additional on-card storage space is required, thus saving storage space on the card device.

[0122] It should be understood that this embodiment is as a comparison with... Figure 1 The implementation method corresponding to the card device side of the illustrated embodiment can be found in the following examples. Figure 2 The relevant descriptions in the illustrated embodiments are provided. This implementation method can also be applied to... Figure 1 The corresponding embodiments achieve the same beneficial effects.

[0123] Please see Figure 3 and Figure 4 To facilitate understanding, a specific embodiment will be used below to illustrate the detailed process of the over-the-air card writing method provided by this invention. It should be noted that in this embodiment, the target SMS protocol is the 3GPP 03.48 protocol.

[0124] Please see Figure 3 The over-the-air card writing method provided in this embodiment of the invention can be applied to, for example... Figure 3 The over-the-air (OTA) card writing system shown is described. The OTA system includes a service platform, gateway devices, and card devices. The gateway devices include an SMS gateway and a BIP gateway. In specific implementations, the gateway device can also be understood as a converged gateway formed by integrating the 3GPP 03.48 data SMS packet module, the SMS gateway, and the BIP gateway.

[0125] Please see details. Figure 4 A relational data storage model is established on the business platform side. For each downlink command issued by the business platform, a corresponding transId (transaction number) is generated, and the downlink command itself indicates the card number (card identifier) ​​of the card device to which the downlink command is targeted. A key-value (KV) cache storage model is established on the gateway device side. A data SMS packet module is built on top of the SMS gateway to provide HTTP and HTTPS interfaces to the business platform.

[0126] The service platform sends a service request carrying the transId and the card number of the card device to the gateway device. Upon receiving the service request, the gateway device's SMS packet module provides an HTTP downlink interface, using the transId as a common input parameter. The SMS packet module parses the service request from the HTTP interface and packets it according to the 3GPP 03.48 protocol to obtain the downlink data SMS. According to the 3GPP 03.48 protocol, the first common parameter part of the downlink data SMS includes the first CNTR value, i.e., the first identifier.

[0127] The gateway device extracts the first CNTR value from the downlink data SMS and stores it as a KEY in the KV cache storage model. It also stores the transId carried in the received service request and the card number of the card device as the corresponding VALUE in the KV cache storage model, thus associating the first CNTR value, transId, and card number. The SMS packet module then normally sends the downlink data SMS to the card device.

[0128] The card device performs corresponding operations based on downlink data SMS messages, and receives data packets after completing the operations. The card device encapsulates the data packets according to the 3GPP 03.48 protocol to obtain response data. The card device sends the response data to the BIP gateway. According to the 3GPP 03.48 protocol, the second common parameter portion of the response data includes the second CNTR value, i.e., the second identifier.

[0129] It should be noted that the second CNTR value is obtained through standard 3GPP 03.48 protocol messages during the packet encapsulation process by the card device. The card device does not need to store the second CNTR value, therefore it does not occupy on-card storage space. Furthermore, the second CNTR value is included in the second common parameter section of the response data and is completely independent of the data packets included in the response data, thus having no intrusive effect on services.

[0130] After receiving the response data, the BIP gateway parses the data packets within the response data and extracts the second CNTR value from the second common parameter section of the response data. Using a predefined correspondence between the second and first CNTR values, the BIP gateway can determine the corresponding first CNTR value. The BIP gateway then uses this first CNTR value to query the KV cache storage model, obtaining the VALUE whose key is the first CNTR value corresponding to the second CNTR value, thereby retrieving the transId corresponding to the second CNTR value.

[0131] The BIP gateway generates a service response based on the data packet and then sends the service response to the service platform. The service response carries the transId corresponding to the second CNTR value. After receiving the service response carrying the transId corresponding to the second CNTR value, the service platform can confirm the execution status and result of the service request corresponding to that transId, thereby completing a one-to-one accurate closed loop for asynchronous requests.

[0132] This invention also provides an over-the-air card writing device, and the gateway device includes the over-the-air card writing device. See also Figure 5 , Figure 5 This is one of the structural diagrams of the over-the-air card writing device provided in the embodiments of the present invention. Because the principle of the over-the-air card writing device in solving the problem is similar to... Figure 1 The air card writing method in the illustrated embodiment is similar, so the implementation of the air card writing device can refer to the implementation of the method, and the repeated parts will not be described again.

[0133] like Figure 5 As shown, this embodiment of the invention provides an over-the-air card writing device 500. The gateway device includes the over-the-air card writing device 500, which includes:

[0134] The processing module 501 is used to receive a service request sent by the service platform and generate a downlink data SMS based on the service request. The service request carries a serial number and a card identifier. The card identifier is used to identify the card device corresponding to the service request, and the serial number is used to identify the service request. The downlink data SMS includes a first identifier.

[0135] The first sending module 502 is used to send the downlink data SMS to the card device;

[0136] The first receiving module 503 is used to receive response data sent by the card device based on the downlink data SMS, the response data including a second identifier;

[0137] The determining module 504 is used to determine the serial number corresponding to the second identifier based on the predefined correspondence between the second identifier and the first identifier and the correspondence between the first identifier and the serial number;

[0138] The second sending module 505 is used to send a service response to the service request to the service platform. The service response is generated based on the response data and carries a serial number corresponding to the second identifier.

[0139] Optionally, generating a downlink data SMS based on the received service request includes:

[0140] Receive business requests issued by the business platform;

[0141] The service request is encapsulated based on the target SMS protocol to obtain downlink data SMS.

[0142] Optionally, the downlink data SMS includes a first common parameter part and a first data parameter part. The first common parameter part is generated based on the target SMS protocol and includes the first identifier. The data parameter part of the downlink data SMS is generated based on the service request.

[0143] Optionally, the gateway device includes an SMS gateway and / or a BIP gateway.

[0144] The over-the-air card writing device 500 provided in this embodiment of the invention can perform the above-described... Figure 1 The method embodiments shown are similar in principle and technical effect, and will not be described again here.

[0145] In this embodiment of the invention, after receiving a service request from the service platform, the gateway device encapsulates the service request into a downlink data SMS and associates the serial number carried in the service request with a first identifier included in the downlink data SMS. Then, the gateway device sends the downlink data SMS to the card device and receives response data sent by the card device based on the downlink data SMS. The response data includes a second identifier. Based on a predefined correspondence between the second identifier and the first identifier, and between the first identifier and the serial number, the gateway device can convert the second identifier into a corresponding serial number and send a service response carrying the serial number corresponding to the second identifier to the service platform. Through this method, there is no need to carry the serial number in the downlink data SMS, and the card device does not need to store the serial number, thus saving storage space on the card device.

[0146] This invention also provides an over-the-air card writing device, and the card device includes the over-the-air card writing device. See also Figure 6 , Figure 6 This is the second structural diagram of the over-the-air card writing device provided in this embodiment of the invention. Because the over-the-air card writing device solves the problem using the same principle as... Figure 2 The air card writing method in the illustrated embodiment is similar, so the implementation of the air card writing device can refer to the implementation of the method, and the repeated parts will not be described again.

[0147] like Figure 6 As shown, this embodiment of the invention provides an over-the-air card writing device 600. The card device includes the over-the-air card writing device 600, which includes:

[0148] The second receiving module 601 is used to receive downlink data SMS messages sent by the gateway device. The downlink data SMS messages are generated based on service requests and include a first identifier.

[0149] Execution module 602 is used to perform a target operation based on the downlink data SMS to obtain a data packet;

[0150] The generation module 603 is used to generate response data based on the data packet, wherein the response data includes a second identifier, and the correspondence between the second identifier and the first identifier is predefined;

[0151] The third sending module 604 is used to send the response data to the gateway device.

[0152] Optionally, the generation module 603 includes:

[0153] The encapsulation unit is used to encapsulate the data packet based on the target SMS protocol to obtain response data.

[0154] Optionally, the response data includes a second common parameter portion and a second data parameter portion, wherein the second common parameter portion is generated based on the target SMS protocol and includes the second identifier, and the second data parameter portion is generated based on the data packet.

[0155] The over-the-air card writing device 600 provided in this embodiment of the invention can perform the above-described... Figure 2 The method embodiments shown are similar in principle and technical effect, and will not be described again here.

[0156] In this embodiment of the invention, the card device receives a downlink data SMS sent by the gateway device. The downlink data SMS is generated based on a service request and includes a first identifier. The card device then performs a target operation based on the downlink data SMS, obtains a data packet, and generates response data including a second identifier based on the data packet. Since the correspondence between the second identifier and the first identifier is predefined, after sending the response data to the gateway device, the gateway device can obtain the corresponding serial number based on the second identifier. Through this method, the card device does not receive the serial number and therefore does not need to store it. Furthermore, since the second identifier is obtained through the target SMS protocol message, no additional on-card storage space is required, thus saving storage space on the card device.

[0157] This invention also provides a gateway device. Because the gateway device solves problems based on the principle of… Figure 1 The over-the-air card writing method in the illustrated embodiment is similar, so the implementation of this gateway device can refer to the implementation of the method, and the repeated parts will not be described again.

[0158] like Figure 7 As shown, the gateway device in this embodiment of the invention includes: a processor 700, configured to read a program from a memory 720 and execute the following processes:

[0159] Based on the predefined correspondence between the second identifier and the first identifier, and the correspondence between the first identifier and the serial number, the serial number corresponding to the second identifier is determined;

[0160] The processor 700 is used to read the program in the memory 720 and execute the following process: receiving a service request sent by the service platform through the transceiver 710, and generating a downlink data SMS based on the service request. The service request carries a serial number and a card identifier. The card identifier is used to identify the card device corresponding to the service request, and the serial number is used to identify the service request. The downlink data SMS includes a first identifier.

[0161] The downlink data SMS is sent to the card device via transceiver 710;

[0162] The transceiver 710 receives response data sent by the card device based on the downlink data SMS, the response data including a second identifier;

[0163] The transceiver 710 sends a service response to the service request to the service platform. The service response is generated based on the response data and carries a serial number corresponding to the second identifier.

[0164] Transceiver 710 is used to receive and send data under the control of processor 700.

[0165] Among them, Figure 7In this context, the bus architecture can include any number of interconnected buses and bridges, specifically linking various circuits together, represented by one or more processors (processor 700) and memory (memory 720). The bus architecture can also link various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. The bus interface provides an interface. The transceiver 710 can be multiple elements, including transmitters and transceivers, providing a unit for communicating with various other devices over a transmission medium. The processor 700 is responsible for managing the bus architecture and general processing, and the memory 720 can store data used by the processor 700 during operation.

[0166] Optionally, the processor 700 is also used to read the program from the memory 720 and perform the following steps:

[0167] Receive service requests from the service platform via transceiver 710;

[0168] The service request is encapsulated based on the target SMS protocol to obtain downlink data SMS.

[0169] Optionally, the downlink data SMS includes a first common parameter part and a first data parameter part. The first common parameter part is generated based on the target SMS protocol and includes the first identifier. The data parameter part of the downlink data SMS is generated based on the service request.

[0170] Optionally, the gateway device includes an SMS gateway and / or a BIP gateway.

[0171] The gateway device provided in this embodiment of the invention can perform the above-described... Figure 1 The method embodiments shown are similar in principle and technical effect, and will not be described again here.

[0172] This invention also provides a card device. Because the principle by which the card device solves the problem is similar to... Figure 2 The air-to-card writing method in the illustrated embodiment is similar, so the implementation of this card device can refer to the implementation of the method, and the repeated parts will not be described again.

[0173] like Figure 8 As shown, the card device of this embodiment includes: a processor 800, configured to read a program from a memory 820 and execute the following processes:

[0174] Based on the downlink data SMS, the target operation is performed to obtain the data packet;

[0175] Response data is generated based on the data packet, and the response data includes a second identifier, the correspondence between the second identifier and the first identifier being predefined;

[0176] Processor 800 is used to read the program from memory 820 and execute the following procedures:

[0177] The transceiver 810 receives downlink data SMS messages sent by the gateway device. The downlink data SMS messages are generated based on service requests and include a first identifier.

[0178] The response data is sent to the gateway device via transceiver 810;

[0179] Transceiver 810 is used to receive and send data under the control of processor 800.

[0180] Among them, Figure 8 In this context, the bus architecture can include any number of interconnected buses and bridges, specifically linking various circuits together, represented by one or more processors (processor 800) and memory (memory 820). The bus architecture can also link various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. The bus interface provides an interface. The transceiver 810 can be multiple elements, including transmitters and transceivers, providing a unit for communicating with various other devices over a transmission medium. The processor 800 is responsible for managing the bus architecture and general processing, and the memory 820 can store data used by the processor 800 during operation.

[0181] Optionally, the processor 800 is also used to read the program from the memory 820 and perform the following steps:

[0182] The data packet is encapsulated based on the target SMS protocol to obtain response data.

[0183] Optionally, the response data includes a second common parameter portion and a second data parameter portion, wherein the second common parameter portion is generated based on the target SMS protocol and includes the second identifier, and the second data parameter portion is generated based on the data packet.

[0184] The card device provided in this embodiment of the invention can perform the above-described functions. Figure 2 The method embodiments shown are similar in principle and technical effect, and will not be described again here.

[0185] The readable storage medium provided in this application embodiment is used to store a program, which can be executed by a processor to implement as follows: Figure 1 The various steps in the method embodiments shown, or implementations such as Figure 2 Each step in the method embodiment shown.

[0186] In the several embodiments provided in this application, it should be understood that the disclosed methods and apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0187] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can be physically comprised separately, or two or more units can be integrated into one unit. The integrated unit described above can be implemented in hardware or in the form of hardware plus software functional units.

[0188] The integrated units implemented as software functional units described above can be stored in a computer-readable storage medium. These software functional units, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute some steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0189] The above description represents the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. An over-the-air card writing method, applied to a gateway device, characterized in that, include: The system receives a service request sent by the service platform and generates a downlink data SMS message based on the service request. The service request carries a serial number and a card identifier. The card identifier is used to identify the card device corresponding to the service request, and the serial number is used to identify the service request. The downlink data SMS message includes a first identifier, which is a counter value generated by the gateway device during the process of generating the downlink data SMS message based on the service request. The counter value is a unique identifier for the corresponding card identifier. There is a corresponding relationship between the first identifier, the serial number, and the card identifier. Send the downlink data SMS to the card device; Receive response data sent by the card device based on the downlink data SMS, the response data including a second identifier; Based on the predefined correspondence between the second identifier and the first identifier, and the correspondence between the first identifier and the serial number, the serial number corresponding to the second identifier is determined; A business response to the business request is sent to the business platform. The business response is generated based on the response data and carries a serial number corresponding to the second identifier.

2. The method according to claim 1, characterized in that, The process of generating downlink data SMS messages based on received service requests includes: Receive business requests issued by the business platform; The service request is encapsulated based on the target SMS protocol to obtain downlink data SMS.

3. The method according to claim 2, characterized in that, The downlink data SMS includes a first common parameter part and a first data parameter part. The first common parameter part is generated based on the target SMS protocol and includes the first identifier. The data parameter part of the downlink data SMS is generated based on the service request.

4. The method according to claim 1, characterized in that, The gateway device includes an SMS gateway and / or a BIP (Bearer Protocol Independent) gateway.

5. An over-the-air card writing method, applied to card devices, characterized in that, include: The gateway device receives downlink data SMS messages sent by the gateway device. The downlink data SMS messages are generated by the gateway device based on a service request sent by the service platform. The downlink data SMS messages include a first identifier. The service request carries the card identifier of the card device and a serial number used to identify the service request. The first identifier is a counter value generated by the gateway device during the process of generating downlink data SMS messages based on the service request. The counter value is a unique identifier for the corresponding card identifier. There is a corresponding relationship between the first identifier, the serial number, and the card identifier. Based on the downlink data SMS, the target operation is performed to obtain the data packet; Response data is generated based on the data packet, and the response data includes a second identifier, the correspondence between the second identifier and the first identifier being predefined; The response data is sent to the gateway device. The second identifier is used by the gateway device to obtain the serial number of the service response to the service request based on the correspondence between the second identifier and the first identifier and the correspondence between the first identifier and the serial number.

6. The method according to claim 5, characterized in that, The process of obtaining response data based on the data packet includes: The data packet is encapsulated based on the target SMS protocol to obtain response data.

7. The method according to claim 6, characterized in that, The response data includes a second common parameter part and a second data parameter part. The second common parameter part is generated based on the target SMS protocol and includes the second identifier. The second data parameter part is generated based on the data packet.

8. An over-the-air card writing device, wherein the gateway device includes the over-the-air card writing device, characterized in that, include: The processing module is used to receive a service request sent by the service platform and generate a downlink data SMS based on the service request. The service request carries a serial number and a card identifier. The card identifier is used to identify the card device corresponding to the service request, and the serial number is used to identify the service request. The downlink data SMS includes a first identifier, which is a counter value generated by the gateway device during the process of generating the downlink data SMS based on the service request. The counter value is a unique identifier for the corresponding card identifier. There is a correspondence between the first identifier, the serial number, and the card identifier. The first sending module is used to send the downlink data SMS to the card device; The first receiving module is configured to receive response data sent by the card device based on the downlink data SMS, the response data including a second identifier; The determination module is used to determine the serial number corresponding to the second identifier based on the predefined correspondence between the second identifier and the first identifier and the correspondence between the first identifier and the serial number; The second sending module is used to send a service response to the service request to the service platform. The service response is generated based on the response data and carries a serial number corresponding to the second identifier.

9. An over-the-air card writing device, the card device comprising the over-the-air card writing device, characterized in that, include: The second receiving module is used to receive downlink data SMS messages sent by the gateway device. The downlink data SMS messages are generated by the gateway device based on a service request sent by the service platform. The downlink data SMS messages include a first identifier. The service request carries the card identifier of the card device and a serial number used to identify the service request. The first identifier is a counter value generated by the gateway device during the process of generating downlink data SMS messages based on the service request. The counter value is a unique identifier for the corresponding card identifier. There is a corresponding relationship between the first identifier, the serial number, and the card identifier. The execution module is used to perform the target operation based on the downlink data SMS to obtain the data packet; A generation module is used to generate response data based on the data packet, wherein the response data includes a second identifier, and the correspondence between the second identifier and the first identifier is predefined; The third sending module is used to send the response data to the gateway device. The second identifier is used by the gateway device to obtain the serial number of the service response of the service request based on the correspondence between the second identifier and the first identifier and the correspondence between the first identifier and the serial number.

10. A gateway device, comprising: A transceiver, a memory, a processor, and a computer program stored in the memory and executable on the processor; characterized in that, The processor is configured to read a program from memory to implement the steps of the method as described in any one of claims 1 to 4.

11. A card device, comprising: A transceiver, a memory, a processor, and a computer program stored in the memory and executable on the processor; characterized in that, The processor is configured to read a program from memory to implement the steps of the method as described in any one of claims 5 to 7.

12. A readable storage medium for storing a program, characterized in that, When the program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 4, or the steps of the method as described in any one of claims 5 to 7.