Remote card writing method, card writing terminal, server and storage medium
By co-generating card write request data with the card writing terminal and server, and selecting idle and available ICCID, the problem of high cost of prefabricated card resource occupation and off-site writing is solved, and the remote card writing without pre-occupying numbers is realized. It supports off-site card writing and batch card writing, which improves card sales and service efficiency.
Patent Information
- Application Number
- CN202011379903.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-01
- Publication Date
- 2025-07-11
- Estimated Expiration
- 2040-12-01
AI Technical Summary
In the prior art, prefabricated cards need to occupy a large amount of card data resources on the local network, and cannot implement remote card writing. The cost of cross-provincial card adjustment is high, and the physical channels of blank cards cannot be sold, and the electronic channels are complex, resulting in a decrease in card sales.
Through the working together with the card writing terminal and the server, the card writing request data is generated, and the card writing request is generated using the serial number, mobile phone number and timestamp of the blank card. The server selects the free and available ICCID based on the local network information to realize remote card writing, avoiding the pre-occupation of temporary pass signal codes, and supporting remote card writing and batch card writing.
It realizes remote card writing without pre-occupying temporary signal codes, avoids cross-conflicts, supports remote card writing, saves logistics costs, shortens door-to-door service time, and increases card sales.
Smart Images

Figure CN114579985B_ABST
Abstract
Description
Technical Field
[0001] The present invention generally relates to the field of telecommunications, and more particularly to a remote card writing method, a card writing terminal, a server, and a storage medium. Background Art
[0002] In the all-service model of a telecommunications operator (such as China Telecom), there are mainly two types of cards classified according to the card manufacturing and activation methods: blank cards and prefabricated cards (i.e., ordinary cards). A blank card refers to the following card manufacturing and activation method: card data (such as the International Mobile Subscriber Identity, i.e., IMSI, etc.) and user information are written onto the blank card through a card writer on a card writing system, and then the card data is encrypted and placed inside the blank card. Currently, blank cards are only used for remote card replacement and card writing production through electronic channels. An example of a blank card is shown in Figure 9 An example of a prefabricated card is shown in Figure 10
[0003] In the previous methods, since prefabricated cards need to pre-write card data information (such as ICCID, PIN Unlock Key, i.e., PUK (Personal Identification Number Unlock Key), UIMID (User Identity Model Identification), AAA (Authentication, Accounting, Authorization) encrypted data, etc.), they will pre-occupy a large amount of card data resources in the local network and need to pre-place the cards in business halls. In addition, if on-site wireless card writing is used for prefabricated cards, the card writing failure rate is high, and once it fails, the card becomes a waste card and a new on-site visit needs to be reserved. If the cards are sent by mail, some users may discard the cards, resulting in serious waste of card resources and card number resources. In addition, due to the number resource allocation system, the fixed phone number resources of a fixed number segment are fixedly allocated to a certain region (i.e., the local network attribute of the phone number resources). Currently, prefabricated cards cannot achieve remote card writing (for example, a prefabricated card in Shanghai cannot be bound to a mobile phone number in Guangdong), and the cost of cross-provincial card transfer is high. In addition, currently, blank cards cannot be sold through physical channels and are difficult to sell through electronic channels. This is because the blank card method in offline business halls can only be used for remote card replacement services and cannot sell new cards; for online orders, according to the requirements of the Ministry of Industry and Information Technology, users need to upload 3 photos by themselves to achieve real-name authentication. Due to the complex operation, the actual card sales volume has decreased significantly.
[0004] In existing methods, there is a technology that directly uses a mobile phone to write a card, which can write the IMSI based on the Android address book and SMS interface. However, in this method, card data such as ICCID is prefabricated in the card, which will preoccupy a large amount of card data resources of the local network, and off-site card writing cannot be achieved, and the cost of cross-provincial card transfer is high.
[0005] In existing methods, there is also a method in which a card writing terminal logs in to the online business hall through WIFI, and the user fills in air access request information such as mobile phone number, ICCID, package, and tariff type item by item on the online hall, and the card writing terminal writes the card according to the returned card data. However, this method is only applicable to the air card writing scenario based on WIFI. This is because the establishment of a WIFI connection does not require a SIM card, so it can log in to the online hall; and all information must be manually entered item by item on the online hall, so the operation is cumbersome, and although the card is called an empty card, the card surface is the ICCID number, which still preoccupies a large amount of card data resources of the local network. Summary of the Invention
[0006] An object of the present invention is to provide a remote card writing method, a card writing terminal, a server, and a storage medium that do not need to preoccupy a temporary communication number and do not cause cross conflicts during card writing.
[0007] A brief overview of the present invention is given below to provide a basic understanding of some aspects of the present invention. However, it should be understood that this overview is not an exhaustive overview of the present invention. It is not intended to identify the key or important parts of the present invention, nor is it intended to limit the scope of the present invention. Its purpose is only to give some concepts of the present invention in a simplified form as a prelude to the more detailed description given later.
[0008] According to one aspect of the present invention, there is provided a remote card writing method, which is executed by a card writing terminal and includes: obtaining a mobile phone number to be activated from order information; reading the empty card serial number of a blank card, and at least generating a random number and a time stamp; generating card writing request data based on at least the empty card serial number, the mobile phone number, the random number, and the time stamp, and sending the card writing request data to a server communicatively connected to the card writing terminal; receiving card writing data from the server, where the card writing data is data generated by the server based on an idle and available ICCID selected according to associated local network information; and performing a card writing operation on the blank card according to the received card writing data to activate the mobile phone number for the blank card.
[0009] According to another aspect of the present invention, there is provided a card writing terminal, including: a memory on which instructions are stored; and a processor configured to execute the instructions stored on the memory to execute the above method.
[0010] According to another aspect of the present invention, there is provided a remote card writing method, which is executed by a server and includes: receiving card writing request data from a card writing terminal, where the card writing terminal is communicatively connected to the server; extracting at least an empty card serial number, a mobile phone number to be activated, a random number, and a timestamp from the card writing request data; determining the local network area code of the number according to the mobile phone number and the associated root number; selecting an idle and available ICCID belonging to the local network from a database according to the local network area code, where the database stores idle and available ICCIDs associated with the local network area code; generating card writing data according to the ICCID, the empty card serial number, the mobile phone number to be activated, the random number, and the timestamp; and sending the card writing data to the card writing terminal.
[0011] According to another aspect of the present invention, there is provided a server, including: a memory on which instructions are stored; and a processor configured to execute the instructions stored on the memory to perform the above method.
[0012] According to another aspect of the present invention, there is provided a remote card writing method, which is executed by a card writing terminal and a server, where the card writing terminal and the server are communicatively connected, and the remote card writing method includes: the card writing terminal obtains the mobile phone number to be activated from order information; the card writing terminal reads the empty card serial number of the blank card and at least generates a random number and a timestamp; the card writing terminal generates card writing request data at least according to the empty card serial number, the mobile phone number, the random number, and the timestamp, and sends the card writing request data to the server; the server receives the card writing request data from the card writing terminal; the server extracts at least the empty card serial number, the mobile phone number to be activated, the random number, and the timestamp from the card writing request data; the server determines the local network area code of the number according to the mobile phone number and the associated root number, and selects an idle and available ICCID belonging to the local network from a database according to the local network area code, where the database stores idle and available ICCIDs associated with the local network area code; the server generates card writing data according to the ICCID, the empty card serial number, the mobile phone number to be activated, the random number, and the timestamp, and sends the card writing data to the card writing terminal; the card writing terminal receives the card writing data from the server and performs a card writing operation on the blank card according to the received card writing data to activate the mobile phone number for the blank card.
[0013] According to yet another aspect of the present invention, there is provided a server, including: a memory on which instructions are stored; and a processor configured to execute the instructions stored on the memory to perform the above method.
[0014] According to another aspect of the present invention, there is provided a remote card writing method, which is executed by a card writing terminal and a server. The card writing terminal and the server are communicatively connected. The remote card writing method includes: the card writing terminal obtains the mobile phone number to be activated from the order information; the card writing terminal reads the empty card serial number of the blank card and at least generates a random number and a time stamp; the card writing terminal generates card writing request data at least according to the empty card serial number, the mobile phone number, the random number and the time stamp, and sends the card writing request data to the server; the server receives the card writing request data from the card writing terminal; the server extracts at least the empty card serial number, the mobile phone number to be activated, the random number and the time stamp from the card writing request data; the server determines the local network area code of the number according to the mobile phone number and the associated root number, and selects an idle and available ICCID belonging to the local network from the database according to the local network area code. The database stores the idle and available ICCIDs associated with the local network area codes; the server generates card writing data according to the ICCID, the empty card serial number, the mobile phone number to be activated, the random number and the time stamp, and sends the card writing data to the card writing terminal; the card writing terminal receives the card writing data from the server, and performs a card writing operation on the blank card according to the received card writing data, so as to activate the mobile phone number for the blank card.
[0015] According to another aspect of the present invention, there is provided a remote card writing system, including at least one card writing terminal and a server. The card writing terminal and the server are communicatively connected. Wherein, the card writing terminal obtains the mobile phone number to be activated from the order information, reads the empty card serial number of the blank card, and at least generates a random number and a time stamp, generates card writing request data at least according to the empty card serial number, the mobile phone number, the random number and the time stamp, and sends the card writing request data to the server, receives the card writing data from the server, and the card writing data is data generated by the server based on the selected idle and available ICCID according to the associated local network information, and performs a card writing operation on the blank card according to the received card writing data, so as to activate the mobile phone number for the blank card. The server receives the card writing request data from the card writing terminal, extracts at least the empty card serial number, the mobile phone number to be activated, the random number and the time stamp from the card writing request data, determines the local network area code of the number according to the mobile phone number and the associated root number, selects an idle and available ICCID belonging to the local network from the database according to the local network area code, the database stores the idle and available ICCIDs associated with the local network area codes, generates card writing data according to the ICCID, the empty card serial number, the mobile phone number to be activated, the random number and the time stamp, and sends the card writing data to the card writing terminal.
[0016] According to another aspect of the present invention, there is provided a remote batch card writing method, including: obtaining the number N of telephone numbers to be written, executing the above remote card writing method N times, and recording an exception log when an exception occurs during card writing.
[0017] According to another aspect of the present invention, there is provided a computer-readable storage medium, which includes computer-executable instructions. When the computer-executable instructions are executed by one or more processors, the one or more processors are caused to execute the method according to the above aspect of the present invention.
[0018] According to one aspect of the present invention, fake orders can be filtered, and card writing according to orders is realized, so that users will not discard cards. According to another aspect of the present invention, there is no need to transfer cards from other places, and blank cards can be directly stocked to logistics sites. According to another aspect of the present invention, remote card writing is realized, that is, writing cards across the country from one point. According to another aspect of the present invention, the on-site service duration can be shortened, and the problems of high failure rate and poor security of wireless card writing are avoided. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings forming a part of the specification depict embodiments of the present invention and, together with the description, are used to explain the principles of the present invention.
[0020] Referring to the drawings, the present invention can be more clearly understood from the following detailed description, wherein:
[0021] Figure 1 is a schematic functional block diagram showing a remote card writing system according to an embodiment of the present invention.
[0022] Figure 2 is a flowchart showing a remote card writing method executed by a card writing terminal according to an embodiment of the present invention.
[0023] Figure 3 is a flowchart showing a remote card writing method executed by a server according to an embodiment of the present invention.
[0024] Figure 4 is a flowchart showing a remote card writing method executed by a card writing system according to an embodiment of the present invention.
[0025] Figure 5 shows a flowchart of a batch card writing method according to an embodiment of the present invention.
[0026] Figure 6 is a flowchart of a single card writing method according to an application scenario of the present invention.
[0027] Figure 7It is a flowchart of a single write card method according to an application scenario of the present invention.
[0028] Figure 8 It shows a schematic example of the conversion of the empty card serial number.
[0029] Figure 9 It shows an example of a blank card.
[0030] Figure 10 It shows an example of a prefabricated card. Detailed implementation mode
[0031] The following detailed description is made with reference to the accompanying drawings, and the following detailed description is provided to help a comprehensive understanding of various exemplary embodiments of the present invention. The following description includes various details to help understanding, but these details are only considered as examples and are not intended to limit the present invention, which is defined by the appended claims and their equivalents. The words and phrases used in the following description are only for a clear and consistent understanding of the present invention. In addition, for the sake of clarity and conciseness, the descriptions of well-known structures, functions, and configurations may be omitted. Those of ordinary skill in the art will recognize that various changes and modifications can be made to the examples described herein without departing from the spirit and scope of the present invention.
[0032] Figure 1 It is a schematic functional block diagram showing a remote write card system according to an embodiment of the present invention.
[0033] As Figure 1 shown, the write card system 10 includes a server 1 and more than one write card terminal 2. In Figure 1 the example, the number of write card terminals 2 is N, that is, write card terminals 2-1, 2-2,... 2-N, where N is a natural number greater than or equal to 1. The server 1 is communicably connected to the write card terminal 2 via the network 3. In one embodiment, the network 3 can be any network capable of interconnected communication such as a local area network, a wide area network, or the Internet.
[0034] In addition, the order placement system 4 is connected to the network 3 and can communicate with the write card terminal 2 and the server 1. The customer places an order for a mobile phone number through the order placement system 4. For example, the customer selects a desired mobile phone number through the order placement system 4 and inputs information such as the identity information of the user of the mobile phone number, the receiving phone number of the recipient, and the receiving address.
[0035] Hereinafter, the operation processes of each part will be described in detail with reference to the drawings.
[0036] Figure 2 It is a flowchart of a remote write card method executed by a write card terminal according to an embodiment of the present invention.
[0037] AsFigure 2 As shown, when the card writing terminal 2 performs a card writing operation, in step S201, it obtains the mobile phone number to be activated from the order information submitted by the customer through the order placing system 4.
[0038] Next, in step S203, the card writing terminal 2 reads the empty card serial number of the blank card from the blank card, and at least generates a random number and a time stamp. The empty card serial number is an identification number pre-stored in the blank card for identifying different blank cards. The random number is a randomly generated number of characters, and its number of digits can be arbitrarily set according to actual needs. The time stamp can include year, month, and day, or can include year, month, day, hour, minute, and second. The length and format of the time stamp can be set according to actual needs.
[0039] Next, in step S205, the card writing terminal 2 generates card writing request data based on at least the empty card serial number read in step S203, the mobile phone number to be activated obtained in step S201, the random number generated in step S203, and the time stamp, and sends the card writing request data to the server 1 via the network 3. Then, it enters step S207.
[0040] In step S207, it is judged whether a response from the server 1 is received. When the card writing data from the server 1 is received and the format of the card writing data is normal (in step S207, it is "yes"), then it enters step S209; when the response times out or the response data format is incorrect, it enters exception handling. In one embodiment, the exception handling can include, for example, directly ending the writing operation of the card writing terminal 2, returning to step S205 and resending the card writing request data to the server 1, alarming the card writing operator, recording in the log, or a combination thereof. In Figure 2 only an example where the exception handling is to return to step S205 and resend the card writing request data to the server 1 is shown.
[0041] In step S209, the card writing terminal 2 receives the card writing data from the server 1, and the card writing data is data generated by the server 1 based on the selected idle and available ICCID according to the associated local network information. The card writing data is personalized network access authentication data.
[0042] Next, in step S211, the card writing terminal 2 performs a card writing operation on the blank card according to the received card writing data, so as to activate the mobile phone number to be activated for the blank card. Thus, the card writing terminal 2 completes the card writing operation.
[0043] In one embodiment, the card writing data includes personalized network access authentication data. In one embodiment, the card writing data at least includes ACC (path authentication key), KI (authentication key for user identity authentication), and OPC (authentication key calculated using OP and KI, where OP is the authentication key for user identity authentication, and each provincial company uses a unique OP). Additionally, in one embodiment, the card writing data further includes IMSI, UIMID, authentication key (A-KEY), personal identification password i.e., PIN (Personal Identification Number), PUK, and ADM (personalized data, different for each card).
[0044] In one embodiment, the card writing data is data encrypted by a key, which is generated by server 1 based on a root key, an empty card serial number, a mobile phone number, a random number, and a timestamp. The root key is pre-stored in server 1.
[0045] In one embodiment, in step S211, there is also a step of decrypting the received card writing data by a key, where the key is generated based on a pre-set root key, an empty card serial number, the mobile phone number to be activated, a random number, and a timestamp.
[0046] In one embodiment, it also includes, in step S211, reporting the result of the card writing operation to server 1 after the card writing operation is completed. The result of the card writing can include successful card writing, failed card writing, etc.
[0047] Figure 3 It is a flowchart showing a remote card writing method executed by a server according to an embodiment of the present invention.
[0048] As Figure 3 shown, in step S301, server 1 receives card writing request data from, for example, card writing terminal 2-1 via network 3.
[0049] Next, in step S303, server 1 extracts at least an empty card serial number, the mobile phone number to be activated, a random number, and a timestamp from the received card writing request data. The empty card serial number is the empty card serial number of the blank card to be written during the card writing operation by card writing terminal 2-1. The mobile phone number to be activated is the mobile phone number selected by the customer extracted from the order information. The random number and the timestamp are the random number and the timestamp generated during the card writing operation by card writing terminal 2-1.
[0050] Next, in step S305, server 1 determines the local network area code of the number based on the mobile phone number to be activated and the associated root number.
[0051] Next, in step S307, the server 1 selects an available and idle ICCID belonging to the local network from the database according to the local network area code. The database stores the available and idle ICCIDs associated with the local network area code. The database can be either built into the server 1 or external to the server 1 and communicatively connected thereto.
[0052] Next, in step S309, the server 1 generates card writing data according to the selected ICCID, the empty card serial number, the mobile phone number to be activated, the random number, and the time stamp.
[0053] Next, in step S311, the server 1 sends the generated card writing data to the card writing terminal 2-1.
[0054] In one embodiment, the card writing data is data encrypted by a key, and the key is generated according to a preset root key, the empty card serial number obtained in step S303, the mobile phone number to be activated, the random number, and the time stamp. Preferably, on the server 1 side, the card writing data is encrypted by using an encryption algorithm (such as but not limited to the AES algorithm) with the key K. The key K can be calculated by the following formula (1):
[0055] Key K = MD5(root key|empty card serial number|mobile phone number|random number|time stamp) (1)
[0056] Wherein, MD5 represents the MD5 information digest algorithm, and | represents the concatenation operation, that is, the key K is obtained by applying the MD5 information digest algorithm to the data obtained by concatenating the root key, the empty card serial number, the mobile phone number, the random number, and the time stamp. In addition, the same root key is pre-stored in the card writing terminal 2-1. After receiving the encrypted card writing data, the card writing terminal 2-1 first calculates the key K and decrypts the card writing data by using the corresponding decryption algorithm (such as but not limited to the AES algorithm).
[0057] In one embodiment, the card writing data includes personalized network access authentication data. In one embodiment, the card writing data at least includes ACC (path authentication key), KI (authentication key for user identity authentication), and OPC (authentication key calculated by using OP and KI, where OP is the authentication key for user identity authentication, and each provincial company uses a unique OP). In addition, in one embodiment, the card writing data further includes IMSI, UIMID, authentication key (A-KEY), personal identification password (PIN), PUK, and ADM (personalized data, different for each card).
[0058] In one embodiment, when the server 1 receives the card writing result indicating successful card writing from the card writing terminal 2-1, it deletes the ICCID previously sent to the card writing terminal 2 from the database.
[0059] Figure 4 It is a flowchart showing a remote card writing method executed by a card writing system according to an embodiment of the present invention.
[0060] As Figure 4 shown, first, the customer selects a desired mobile phone number through the order placement system 4, and inputs information such as the identity information of the user of the mobile phone number to be activated, the receiving phone number of the recipient, and the receiving address.
[0061] Next, in step S401, the card writing terminal 2 obtains the mobile phone number to be activated from the order information, and then in step S403, the card writing terminal 2 reads the empty card serial number of the blank card, and at least generates a random number and a time stamp. Subsequently, in step S405, the card writing terminal 2 generates card writing request data at least based on the empty card serial number obtained in step S403, the mobile phone number to be activated obtained in step S401, the random number generated in step S403, and the time stamp, and sends the card writing request data to the server 1.
[0062] In step S409, the server 1 receives the card writing request data from the card writing terminal 2. Then, the server 1 extracts at least the empty card serial number, the mobile phone number to be activated, the random number, and the time stamp from the card writing request data received in step S409. Subsequently, in step S411, the server 1 determines the local network area code of the number according to the mobile phone number and the associated root number, and randomly selects an idle and available ICCID belonging to the local network from the database according to the local network area code, where the database stores the idle and available ICCIDs associated with the local network area code. Then, in step S413, the server 1 generates card writing data based on the ICCID generated in step S411, the empty card serial number, the mobile phone number to be activated, the random number, and the time stamp, and sends the card writing data to the card writing terminal 2 in step S415.
[0063] In step S417, the card writing terminal 2 receives the card writing data from the server 1, and in step S419, performs a card writing operation on the blank card according to the received card writing data to activate the mobile phone number to be activated for the blank card.
[0064] In one embodiment, the card writing terminal 2 can also report the card writing result to the server 1 after the card writing operation is completed. When the server 1 receives the card writing result indicating successful card writing from the card writing terminal 2, the server 1 deletes the ICCID from the database.
[0065] In one embodiment, the card writing data includes personalized network access authentication data. In one embodiment, the card writing data at least includes ACC (path authentication key), KI (authentication key for user identity authentication), and OPC (authentication key calculated using OP and KI, where OP is the authentication key for user identity authentication, and each provincial company uses a unique OP). Additionally, in one embodiment, the card writing data further includes IMSI, UIMID, authentication key (A-KEY), personal identification password (PIN), PUK, and ADM (personalized data, different for each card).
[0066] In one embodiment, the card writing data can be data encrypted by a key, which is generated by the server based on the root key, empty card serial number, mobile phone number, random number, and timestamp. The root key is pre-stored in the server 1 and the card writing terminal 2, and it also includes the card writing terminal decrypting the card writing data using the key.
[0067] In one embodiment, before the card writing terminal 2 obtains the mobile phone number to be activated from the order information, it obtains the recipient's receiving number from the order information and determines whether the receiving number is a valid number. If the receiving number is not a valid number, the step of S401 is not executed.
[0068] In the prior art, the card writing requests sent to the server 1 all contain the ICCID prefabricated in the card. In contrast, in the present invention, the card writing requests sent to the server are the empty card serial number and the mobile phone number. According to the solution of the present invention, there is no need to pre-occupy a temporary communication number, and there will be no cross-conflict during card writing, especially during batch card writing.
[0069] According to the present invention, card writing according to an order can be achieved.
[0070] Furthermore, according to the present invention, since in step S411, the server 1 determines the local network area code of the number based on the mobile phone number and the associated root number, and randomly selects an idle and available ICCID belonging to this local network from the database according to the local network area code, there is no need to transfer cards from other places, thus saving a large amount of logistics costs, and it is possible to write cards across the country at one point through the card writing system and method of the present invention.
[0071] Figure 5 The flowchart of a batch card writing method according to an embodiment of the present invention is shown.
[0072] In this embodiment, the Figure 4 shown card writing method is called the "single card writing method". Hereinafter, the process of the batch card writing method will be described. As Figure 5 shown, the following steps are executed:
[0073] (1) Before batch card writing, enter the number of cards to be written;
[0074] (2) Run the "single card writing method";
[0075] (3) When card writing is abnormal, record the card writing log. The user can terminate at any time or write the next card;
[0076] (4) When card writing is successful, a message "Card writing successful, please change the card" will pop up on the page, and the number of cards to be written will be decreased by one;
[0077] (5) Loop and run step (2) until the number of cards to be written is 0.
[0078] According to the batch card writing method of the present invention, there is no need to pre-occupy a temporary communication signal number, and no cross conflict will occur during batch card writing.
[0079] Figure 6 and Figure 7 shows an example of a specific application scenario according to an embodiment of the present invention.
[0080] Figure 6 is a flowchart of the single card writing method according to an application scenario of the present invention. In this application scenario, the card writing terminal includes a card writer and a terminal device (such as a laptop). The server includes an ESS (business handling system) and a telecom EOP (capability open platform). Each part performs the following steps:
[0081] (1) The card writer obtains the mobile phone number to be written from the order;
[0082] (2) The card writer reads the empty card serial number of the blank card, generates a random number and a timestamp;
[0083] (3) The terminal concatenates the empty card serial number, mobile phone number, random number, and timestamp and sends them to the ESS;
[0084] (4) The telecom server (EOP and the background IT system) associates the local network information and randomly selects an available ICCID;
[0085] (5) Allocate and generate card data (IMSI, UIMID, authentication key (A-KEY), PIN, PUK, ADM, etc.);
[0086] (6) Calculate the key K and encrypt the card data using AES;
[0087] (7) The card writer calculates the key K, decrypts the AES and writes the card data;
[0088] (8) Report the card writing result.
[0089] Among them, to meet the requirements of the IT system for card number information, it is necessary to convert the empty card serial number, and the converted number is 22 digits.
[0090] The discrimination rules for the blank card serial number and ICCID are as follows: For those with the first four digits not being 8986, they are the blank card serial numbers of blank cards (or others), with a total of 20 digits; for those with the first four digits being 8986, they are the ICCIDs of prefabricated cards, with a total of 20 digits.
[0091] The conversion rule is: After converting the 19th and 20th digits of the blank card serial number into the numbers corresponding to the hexadecimal of ASCII code respectively, supplement the 19 - 20th and 21 - 22nd digits in sequence. Figure 8 A schematic example of the conversion of the blank card serial number is shown.
[0092] Figure 7 It is a flowchart of the single - card writing method according to an application scenario of the present invention.
[0093] As Figure 7 shown, the following method is executed
[0094] (1) Pre - implant the national local network root number in the operator card management system;
[0095] (2) After the user places an order online / offline at the contact point, the orders are aggregated;
[0096] (3) Call the EOP interface to determine whether the consignee's mobile phone is "in use";
[0097] (4) Push the order to the logistics site;
[0098] (5) Write cards in batches (encrypt and decrypt);
[0099] (6) The courier personnel go to the door for face - to - face real - name authentication, liveness verification, and activation.
[0100] According to the card - writing method of the present invention, card writing according to orders can be realized; there is no need to transfer cards from other places, saving a large amount of logistics costs; it realizes writing across the country from one point; directly bring the card to the door without on - site card writing, greatly shortening the service duration.
[0101] The present invention can be implemented as any combination of a device, a system, an integrated circuit, and a computer program on a non - transitory computer - readable medium. One or more processors can be implemented as an integrated circuit (IC), an application - specific integrated circuit (ASIC), or a large - scale integrated circuit (LSI), a system LSI, a super LSI, or an ultra LSI component that executes some or all of the functions described in the present invention.
[0102] The present invention includes the use of software, applications, computer programs, or algorithms. The software, applications, computer programs, or algorithms can be stored on a non-transitory computer-readable medium to enable a computer, such as one or more processors, to perform the steps described above and in the accompanying drawings. For example, one or more memories store the software or algorithm as executable instructions, and one or more processors can execute a set of instructions associated with the software or algorithm to provide various functions according to the embodiments described in the present invention.
[0103] Software and computer programs (which may also be referred to as programs, software applications, applications, components, or code) include machine instructions for a programmable processor and can be implemented in a high-level procedural language, an object-oriented programming language, a functional programming language, a logic programming language, or an assembly language or machine language. The term "computer-readable medium" refers to any computer program product, apparatus, or device that provides machine instructions or data to a programmable data processor, such as a magnetic disk, an optical disk, a solid-state storage device, a memory, and a programmable logic device (PLD), including a computer-readable medium that receives the machine instructions as a computer-readable signal.
[0104] By way of example, a computer-readable medium may include a dynamic random access memory (DRAM), a random access memory (RAM), a read-only memory (ROM), an electrically erasable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM), or other optical disk storage devices, a magnetic disk storage device, or other magnetic storage devices, or any other medium that can be used to carry or store the desired computer-readable program code in the form of instructions or data structures and that can be accessed by a general-purpose or special-purpose computer or a general-purpose or special-purpose processor. As used herein, a disk or disc includes a compact disc (CD), a laser disc, an optical disc, a digital versatile disc (DVD), a floppy disk, and a Blu-ray disc, where a disk typically replicates data magnetically and a disc replicates data optically by laser. Combinations of the above are also included within the scope of computer-readable media.
[0105] The subject matter of the present invention is provided as an example of an apparatus, system, method, and program for performing the features described in the present invention. However, other features or variations may be expected in addition to the above features. It is expected that the implementation of the components and functions of the present invention can be accomplished with any emerging technology that may replace any of the above-described implementations.
[0106] In addition, the above description provides examples and does not limit the scope, applicability, or configuration set forth in the claims. Without departing from the spirit and scope of the present invention, changes may be made to the function and arrangement of the elements discussed. Various embodiments may omit, substitute, or add various processes or components as appropriate. For example, the features described with respect to certain embodiments may be combined in other embodiments.
[0107] In addition, in the description of the present invention, the terms "first", "second", "third", etc. are used for descriptive purposes only and should not be construed as indicating or implying relative importance or order.
[0108] Similarly, although the operations are depicted in the drawings in a particular order, this should not be construed as requiring that the operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed to achieve the desired result. In some cases, multitasking and parallel processing may be advantageous.
Claims
1. A remote card writing method, executed by a card writing terminal, comprising: Obtaining the mobile phone number to be activated from the order information; Reading the empty card serial number of the blank card, and generating at least a random number and a time stamp; Generating card writing request data at least based on the empty card serial number, the mobile phone number, the random number, and the time stamp, and sending the card writing request data to a server communicatively connected to the card writing terminal; Receiving card writing data from the server, where the card writing data is data generated by the server based on an idle and available integrated circuit card identifier ICCID, the ICCID is selected by the server from a database according to the local network area code, and the ICCID belongs to the local network, the local network area code is determined by the server according to the mobile phone number and the associated root number, the card writing data is data encrypted by a key, and the key is generated by the server according to a preset root key, the empty card serial number, the mobile phone number, the random number, and the time stamp, and the root key is pre-stored in the server and the card writing terminal; And Performing a card writing operation on the blank card according to the received card writing data to activate the mobile phone number for the blank card, where performing a card writing operation on the blank card according to the received card writing data includes: decrypting the card writing data by a key generated according to the root key, the empty card serial number, the mobile phone number, the random number, and the time stamp.
2. The remote card writing method according to claim 1, wherein The card writing data at least includes personalized network access authentication data.
3. The remote card writing method according to claim 1, wherein Reporting the card writing result to the server after the card writing operation is completed.
4. A card writing terminal, comprising: A memory, on which instructions are stored; And A processor, configured to execute the instructions stored on the memory to execute the method according to any one of claims 1 to 3.
5. A remote card writing method, executed by a server, comprising: Receiving card writing request data from a card writing terminal, where the card writing terminal is communicatively connected to the server; Extracting at least the empty card serial number, the mobile phone number to be activated, the random number, and the time stamp from the card writing request data; Determining the local network area code of the number according to the mobile phone number and the associated root number; Selecting an idle and available integrated circuit card identifier ICCID belonging to the local network from a database according to the local network area code, where the database stores idle and available ICCIDs associated with the local network area code; Generating card writing data according to the ICCID, the empty card serial number, the mobile phone number to be activated, the random number, and the time stamp, where the card writing data is data encrypted by a key, and the key is generated according to a preset root key, the empty card serial number, the mobile phone number, the random number, and the time stamp, and the root key is pre-stored in the server and the card writing terminal; And Send the card writing data to the card writing terminal, so that the card writing terminal decrypts the card writing data with a key generated according to the root key, the empty card serial number, the mobile phone number, the random number, and the timestamp, and performs a card writing operation on the blank card.
6. The remote card writing method according to claim 5, wherein, The card writing data at least includes personalized network access authentication data.
7. The remote card writing method according to claim 5, wherein, When the server receives a card writing result indicating successful card writing from the card writing terminal, the server deletes the ICCID from the database.
8. A server, comprising: A memory storing instructions thereon; And A processor configured to execute the instructions stored on the memory to execute the method according to any one of claims 5 to 7.
9. A remote card writing method, executed by a card writing terminal and a server, the card writing terminal and the server being communicatively connected, the remote card writing method comprising: The card writing terminal obtains the mobile phone number to be activated from the order information; The card writing terminal reads the empty card serial number of the blank card and at least generates a random number and a timestamp; The card writing terminal generates card writing request data according to at least the empty card serial number, the mobile phone number, the random number, and the timestamp, and sends the card writing request data to the server; The server receives the card writing request data from the card writing terminal; The server extracts at least the empty card serial number, the mobile phone number to be activated, the random number, and the timestamp from the card writing request data; The server determines the local network area code of the number according to the mobile phone number and the associated root number, and selects an idle and available integrated circuit card identification code (ICCID) belonging to the local network from the database according to the local network area code. The database stores the idle and available ICCIDs associated with the local network area codes; The server generates card writing data according to the ICCID, the empty card serial number, the mobile phone number to be activated, the random number, and the timestamp, and sends the card writing data to the card writing terminal. The card writing data is data encrypted with a key, and the key is generated by the server according to a preset root key, the empty card serial number, the mobile phone number, the random number, and the timestamp. The root key is pre-stored in the server and the card writing terminal; The card writing terminal receives the card writing data from the server, and performs a card writing operation on the blank card according to the received card writing data, so as to activate the mobile phone number for the blank card. Among them, performing a card writing operation on the blank card according to the received card writing data includes: decrypting the card writing data with a key generated according to the root key, the empty card serial number, the mobile phone number, the random number, and the timestamp.
10. The remote card writing method according to claim 9, wherein, After the card writing operation is completed, the card writing terminal reports the card writing result to the server. When the server receives the card writing result indicating successful card writing from the card writing terminal, the ICCID is deleted from the database.
11. The remote card writing method according to claim 9, wherein the card writing data at least includes personalized network access authentication data.
12. The remote card writing method according to claim 9, wherein, It further includes: Before the card writing terminal obtains the mobile phone number to be activated from the order information, obtain the recipient's receiving number from the order information, determine whether the receiving number is a valid number. If the receiving number is not a valid number, do not execute the method according to claim 9 and delete the order.
13. A remote card writing system includes at least one card writing terminal and a server, and the card writing terminal and the server are communicatively connected. Wherein, the card writing terminal obtains the mobile phone number to be activated from the order information, reads the empty card serial number of the blank card, and at least generates a random number and a time stamp. At least based on the empty card serial number, the mobile phone number, the random number, and the time stamp, generate card writing request data, and send the card writing request data to the server, receive the card writing data from the server, the card writing data is data generated by the server based on the idle and available integrated circuit card identification code ICCID selected according to the associated local network information, and perform a card writing operation on the blank card according to the received card writing data, so as to activate the mobile phone number for the blank card. The server receives the card writing request data from the card writing terminal, extracts at least the empty card serial number, the mobile phone number to be activated, the random number, and the time stamp from the card writing request data, determines the local network area code of the number according to the mobile phone number and the associated root number, and selects an idle and available ICCID belonging to the local network from the database according to the local network area code. The database stores the idle and available ICCIDs associated with the local network area codes. Generate card writing data according to the ICCID, the empty card serial number, the mobile phone number to be activated, the random number, and the time stamp, and send the card writing data to the card writing terminal. The card writing data is data encrypted by a key, and the key is generated by the server according to a preset root key, the empty card serial number, the mobile phone number, the random number, and the time stamp. The root key is pre-stored in the server and the card writing terminal. Among them, performing a card writing operation on the blank card according to the received card writing data includes: decrypting the card writing data by a key generated according to the root key, the empty card serial number, the mobile phone number, the random number, and the time stamp.
14. A remote batch card writing method includes: obtaining the quantity N of the telephone numbers to be written, executing the remote card writing method according to claim 9 for N times, recording an exception log when an exception occurs during card writing.
15. A computer-readable storage medium comprising computer-executable instructions that, when executed by one or more processors, cause the one or more processors to perform the method according to any one of claims 1 to 3, 5 to 7, 9 to 12, 14.
Citation Information
Patent Citations
STK card-writing system and method based on SIM card
CN107220570A
Card activating method and device, equipment and medium
CN111510908A