CN115866579B - Smart card writing method, smart card writing system, terminal and storage medium - Google Patents

Smart card writing method, smart card writing system, terminal and storage medium Download PDF

Info

Publication number
CN115866579B
CN115866579B CN202310173800.2A CN202310173800A CN115866579B CN 115866579 B CN115866579 B CN 115866579B CN 202310173800 A CN202310173800 A CN 202310173800A CN 115866579 B CN115866579 B CN 115866579B
Authority
CN
China
Prior art keywords
target
card
resource
acquiring
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310173800.2A
Other languages
Chinese (zh)
Other versions
CN115866579A (en
Inventor
高河福
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Yishoubao Internet Technology Co ltd
Original Assignee
Guangzhou Yishoubao Internet Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Yishoubao Internet Technology Co ltd filed Critical Guangzhou Yishoubao Internet Technology Co ltd
Priority to CN202310173800.2A priority Critical patent/CN115866579B/en
Publication of CN115866579A publication Critical patent/CN115866579A/en
Application granted granted Critical
Publication of CN115866579B publication Critical patent/CN115866579B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The present application relates to the field of card writing technologies, and in particular, to a method, a system, a terminal, and a storage medium for writing a smart card, where the method includes: judging whether a card writing request for the intelligent card is acquired, and if the card writing request is acquired, acquiring target card resources and target code number resources; judging whether the target card resource and/or the target code number resource are repeatedly selected, if so, acquiring a target selection rule, acquiring data to be written based on the target selection rule, and writing the smart card based on a card writing request and the data to be written. The method and the device help to reduce the occurrence of the situation of duplicate cards.

Description

Smart card writing method, smart card writing system, terminal and storage medium
Technical Field
The present disclosure relates to the field of card writing technologies, and in particular, to a method, a system, a terminal, and a storage medium for writing a smart card.
Background
Smart card write card refers to writing data necessary for communication into a smart subscriber identity module (Subscriber Identity Module, SIM) card. The current card writing method applies for downloading personalized data code number resources of a smart card to a server through a card writing terminal in a business hall, for example, an international mobile subscriber identity (International MobileSubscriber Identification Number, IMSI) and a short message service center (Short Message Service Center, SMSC), so that the personalized data code number resources are written into the smart card through the card writing terminal, the personalized data card resources which are corresponding to the personalized data card resources are written in the smart card in advance, the personalized data code number resources comprise integrated circuit card identities (Integrate circuit card identity, ICCID), authentication keys (kids), personal identification codes (Personal Identification Number, PIN), PIN unlocking passwords (PIN Unblocking Key, PUK) and the like, when the smart card needs to be written into the smart card, the card writing terminal sends a card writing request which comprises the personalized data card resources to the server, and after the card writing request is received, the server sends the personalized data code number resources which are corresponding to the personalized data card resources to the smart card writing terminal according to the corresponding relationship between the pre-established personalized data card resources, and the personalized data card number resources, and the card writing terminal writes the personalized data code number resources into the smart card resources which comprise the personal data card resources and the personal data resources which must be communicated with the personal data resources.
The method comprises the steps of writing personalized data card resources on a smart card in advance before writing the card, and pre-establishing a corresponding relation between the personalized data card resources and the personalized data code number resources, so that a large amount of personalized data card resources and personalized data code number resources are occupied, and the utilization rate of the personalized data card resources and the personalized data code number resources is reduced.
However, the inventor believes that when the smart card writing method in the related art is used, if a plurality of terminals write the smart card according to the personalized data card resource and the personalized data code number resource at the same time, the idle personalized data card resource and the idle personalized data code number resource are visible to all the smart terminals, so that when the idle personalized data card resource and the idle personalized data code number resource are selected, the plurality of smart terminals easily select one idle personalized data card resource at the same time or select one idle personalized data code number resource at the same time, that is, one idle personalized data card resource or one idle personalized data code number resource is simultaneously allocated to the plurality of smart terminals, thereby easily causing the plurality of terminals to write the smart card according to the same personalized data card resource or the plurality of terminals according to the same personalized data code number resource, that is, the situation of repeating the writing of the card occurs.
Disclosure of Invention
In order to help reduce the occurrence of repeated card writing, the application provides a smart card writing method, a smart card writing system, a smart card writing terminal and a storage medium.
According to the smart card writing method provided by the application, the following technical scheme is adopted:
A smart card writing method, comprising:
judging whether a card writing request for the smart card is acquired or not;
if the card writing request is obtained, obtaining a target card resource and a target code number resource;
judging whether the target card resource and/or the target code number resource are repeatedly selected or not;
if the target card resource and/or the target code number resource are repeatedly selected, acquiring a target selection rule;
acquiring data to be written based on the target selection rule;
and writing the smart card based on the card writing request and the data to be written.
By adopting the technical scheme, whether the card writing request for the intelligent card is acquired is firstly judged, if the card writing request for the intelligent card is acquired, the target card resource and the target code number resource are acquired, whether the target card resource and/or the target code number resource are repeatedly selected is judged, if the target card resource and/or the target code number resource are repeatedly selected, the fact that one target card resource or one target code number resource is simultaneously allocated to a plurality of intelligent terminals is indicated, one target card resource or one target code number resource is intelligently used by one intelligent card is indicated, therefore, a target selection rule is required to be acquired, and after each intelligent card is allocated to the independent and available target card resource and target code number resource, the target card resource and the target code number resource are combined into data to be written, and finally, the data to be written into the corresponding intelligent card is written, so that the situation of the repeated card is facilitated to be reduced.
Optionally, the specific step of determining whether the target card resource and/or the target code number resource are repeatedly selected includes:
judging whether a card writing number exists on the target card resource and/or the target code number resource;
if the card writing number exists on the target card resource and/or the target code number resource, acquiring the number of the card writing number;
judging whether the number of the numbers is larger than 1;
if the number is greater than 1, judging that the target card resource and/or the target code number resource are repeatedly selected;
and if the number of the numbers is equal to 1, judging that the target card resource and/or the target code number resource are not repeatedly selected.
By adopting the technical scheme, whether the target card resource and/or the target code number resource have the card writing number is judged firstly, if the target card resource and/or the target code number resource have the card writing number, the target card resource and/or the target code number resource are/is selected by the intelligent terminal, so that the number of the card writing number is required to be acquired, and whether the number is larger than 1 is judged, if the number is larger than 1, a plurality of intelligent terminals are indicated to mark the target card resource and/or the target code number resource, namely, the target card resource and/or the target code number resource are repeatedly selected, and if the number is equal to 1, only one intelligent terminal is indicated to mark the target card resource and/or the target code number resource, so that the target card resource and/or the target code number resource are not repeatedly selected, and the situation of reducing the repeated card is facilitated by judging whether the target card resource and/or the target code number resource is repeatedly selected.
Optionally, if the target card resource and/or the target code number resource are repeatedly selected, the specific step of obtaining the target selection rule includes:
if the target card resource and/or the target code number resource are repeatedly selected, acquiring a target terminal based on the card writing number;
acquiring a terminal grade based on the target terminal;
sorting the terminal grades and generating a first sorting list;
and acquiring the target selection rule based on the first sorting list.
By adopting the technical scheme, after the target card resources and/or the target code number resources are repeatedly selected, the corresponding target terminals are acquired according to the card writing numbers, terminal grades are acquired according to the target terminals, the terminal grades are ordered to generate the first ordered list, the target selection rule is formulated according to the first ordered list, the target card resources and/or the target code number resources are selected according to the target selection rule, the higher the terminal grade is, the higher the priority authority is indicated, so that the target card resources and/or the target code number resources are preferentially distributed to the target terminals which are ordered to the front in the first ordered list, the situation that the same target card resources and/or the same target code number resources are repeatedly distributed is reduced, and the situation that the repeated card writing is repeated is reduced is facilitated.
Optionally, the specific step of obtaining the target selection rule based on the first ordered list includes:
acquiring a first sorting level based on the first sorting list;
acquiring a first terminal based on the first sorting level;
acquiring a first terminal number based on the first terminal;
judging whether the number of the first terminals is larger than 1;
and if the number of the first terminals is equal to 1, acquiring a target selection rule based on the first sorting level.
By adopting the technical scheme, the first sorting level is obtained according to the first sorting list, the first terminal and the first terminal number are obtained according to the first sorting level, whether the first terminal number is larger than 1 is judged, if the first terminal number is equal to 1, only one first terminal number with the first sorting level is indicated, so that the target selection rule is obtained according to the first sorting level, namely, the target card resource and/or the target code number resource are directly distributed to the first terminal corresponding to the first sorting level, the situation that the same target card resource and/or the same target code number resource are repeatedly distributed is reduced, and the situation of repeated writing of cards is reduced.
Optionally, after the determining whether the number of the first terminals is greater than 1, the method further includes:
if the number of the first terminals is greater than 1, acquiring historical card writing data of the first terminals;
acquiring historical card writing times based on the historical card writing data;
sorting the historical card writing times to generate a second sorting list;
and acquiring the target selection rule based on the second sorting list.
By adopting the technical scheme, if the number of the first terminals is greater than 1, the number of the first terminals with the first sorting level is indicated to be more, so that the historical card writing data of the first terminals are required to be acquired, the historical card writing times are acquired according to the historical card writing data, the historical card writing times are sorted to generate a second sorting list, then a target selection rule is formulated according to the second sorting list, the target card resources and/or the target code number resources are selected according to the selection rule, the more the historical card writing times are, the larger the traffic volume according to the first terminals is, and therefore the target card resources and/or the target code number resources are preferentially distributed to the target terminals with the first sorting level in the second sorting list, not only is the traffic volume improved, but also the repeated distribution of the same target card resources and/or the same target code number resources is reduced, and the repeated card writing is reduced.
Optionally, the specific step of obtaining the target selection rule based on the second ordered list includes:
acquiring a first sorting number based on the second sorting list;
acquiring a second terminal based on the first ordering quantity;
acquiring a second terminal number based on the second terminal;
judging whether the number of the second terminals is larger than 1;
and if the number of the second terminals is equal to 1, acquiring a target selection rule based on the first sorting number.
By adopting the technical scheme, the first ordering quantity is firstly obtained according to the second ordering list, the second terminals and the second terminal quantity are obtained according to the first ordering quantity, whether the second terminal quantity is larger than 1 is judged, if the second terminal quantity is equal to 1, only one second terminal quantity with the first ordering quantity is indicated, so that the target selection rule is obtained according to the first ordering quantity, namely, the target card resource and/or the target code number resource are directly distributed to the second terminal corresponding to the first ordering quantity, the situation that the same target card resource and/or the same target code number resource are repeatedly distributed is reduced, and the situation of repeated writing of cards is reduced.
Optionally, after the determining whether the number of the second terminals is greater than 1, the method further includes:
if the number of the second terminals is greater than 1, acquiring a target region based on the second terminals;
judging whether the target regions corresponding to different second terminals are consistent;
if the target regions corresponding to the different second terminals are consistent, acquiring a target selection rule based on the card writing number;
and if the target regions corresponding to the different second terminals are inconsistent, acquiring a target selection rule based on the target regions.
By adopting the technical scheme, if the number of the second terminals is greater than 1, the number of the second terminals with the first ordering number is multiple, so that target regions need to be acquired, whether the target regions corresponding to different second terminals are consistent or not is judged, and if the target regions corresponding to different second terminals are consistent, a target selection rule is acquired based on the card writing number, namely, distributing target card resources and target code number resources according to the card writing number; if the target regions corresponding to the different second terminals are inconsistent, the target selection rule is acquired based on the target regions, namely, the target card resources and the target code number resources are allocated according to the target regions, so that the situation that the same target card resources and/or the same target code number resources are repeatedly allocated is reduced, and the situation that the duplicate cards are repeatedly written is reduced.
In a second aspect, the present application further discloses a smart card writing system, which adopts the following technical scheme:
a smart card writing system comprising:
the first judging module is used for judging whether a card writing request for the intelligent card is acquired or not;
the first acquisition module is used for acquiring target card resources and target code number resources if the card writing request is acquired;
the second judging module is used for judging whether the target card resource and/or the target code number resource are repeatedly selected or not;
the second acquisition module is used for acquiring a target selection rule if the target card resource and/or the target code number resource are repeatedly selected;
the third acquisition module is used for acquiring data to be written based on the target selection rule;
and the card writing module is used for writing the card to the intelligent card based on the card writing request and the data to be written.
By adopting the technical scheme, whether the card writing request for the intelligent card is acquired is firstly judged, if the card writing request for the intelligent card is acquired, the target card resource and the target code number resource are acquired, whether the target card resource and/or the target code number resource are repeatedly selected is judged, if the target card resource and/or the target code number resource are repeatedly selected, the fact that one target card resource or one target code number resource is simultaneously allocated to a plurality of intelligent terminals is indicated, one target card resource or one target code number resource is intelligently used by one intelligent card is indicated, therefore, a target selection rule is required to be acquired, and after each intelligent card is allocated to the independent and available target card resource and target code number resource, the target card resource and the target code number resource are combined into data to be written, and finally, the data to be written into the corresponding intelligent card is written, so that the situation of the repeated card is facilitated to be reduced.
In a third aspect, the present application provides a computer apparatus, which adopts the following technical scheme:
an intelligent terminal comprising a memory, a processor, wherein the memory is configured to store a computer program capable of running on the processor, and the processor, when loaded with the computer program, performs the method of the first aspect.
By adopting the technical scheme, the computer program is generated based on the method of the first aspect and is stored in the memory to be loaded and executed by the processor, so that the intelligent terminal is manufactured according to the memory and the processor, and the intelligent terminal is convenient for a user to use.
In a fourth aspect, the present application provides a computer readable storage medium, which adopts the following technical scheme:
a computer readable storage medium having stored therein a computer program which, when loaded by a processor, performs the method of the first aspect.
By adopting the technical scheme, the method based on the first aspect generates the computer program, and stores the computer program in the computer readable storage medium to be loaded and executed by the processor, and the computer program is convenient to read and store through the computer readable storage medium.
In summary, the present application includes the following beneficial technical effects:
firstly judging whether a card writing request for the intelligent card is acquired, if the card writing request for the intelligent card is acquired, acquiring target card resources and target code number resources, judging whether the target card resources and/or the target code number resources are repeatedly selected, if the target card resources and/or the target code number resources are repeatedly selected, indicating that one target card resource or one target code number resource is simultaneously allocated to a plurality of intelligent terminals, and one target card resource or one target code number resource is intelligently used by one intelligent card, so that a target selection rule needs to be acquired, and allocating independent and available target card resources and target code number resources for each intelligent card according to the target selection rule.
Drawings
FIG. 1 is a main flow chart of a smart card writing method according to an embodiment of the present application;
Fig. 2 is a specific step flowchart of steps S201 to S205;
fig. 3 is a specific step flowchart of steps S301 to S304;
fig. 4 is a specific step flowchart of steps S401 to S405;
fig. 5 is a step flowchart of steps S501 to S504;
fig. 6 is a step flowchart of steps S601 to S605;
fig. 7 is a step flowchart of steps S701 to S704;
fig. 8 is a block diagram of a smart card writing system according to an embodiment of the present application.
Reference numerals illustrate:
1. a first judgment module; 2. a first acquisition module; 3. a second judging module; 4. a second acquisition module; 5. a third acquisition module; 6. and the card writing module.
Detailed Description
In a first aspect, the present application discloses a smart card writing method.
Referring to fig. 1, a smart card writing method includes steps S101 to S106:
step S101: and judging whether a card writing request for the smart card is acquired.
Specifically, in this embodiment, the smart card is a blank smart card before card writing, only the hardware identification number is pre-stored, and the smart card may further include an operating system (Chip Operating System, COS) and a card writing application program in a preset piece, where a card writing request is a request sent by the smart terminal to the card writing system for requesting card writing.
Step S102: and if the card writing request is acquired, acquiring the target card resource and the target code number resource.
Specifically, in this embodiment, the target card resource is an idle personalized data card resource, where the personalized data card resource includes ICCID, KI, operator variable algorithm configuration domain (OperatorVariant Algorithm Configuration Field, OP), PIN, PUK, and the like; the target code number resource is idle personalized data code number resource, and the personalized data code number resource comprises an IMSI, an SMSC and the like.
Step S103: and judging whether the target card resource and/or the target code number resource are repeatedly selected.
Specifically, in this embodiment, one spare personalized data card resource or one spare personalized data code number resource is repeatedly selected and allocated to a plurality of intelligent terminals at the same time.
Step S104: and if the target card resource and/or the target code number resource are repeatedly selected, acquiring a target selection rule.
Specifically, in this embodiment, the target selection rule is a rule for selecting a target card resource and/or a target code number resource, and the target selection rule may be stored in the card writing system in advance, or may be generated according to an actual situation.
If the target card resource and/or the target code number resource are not repeatedly selected, directly acquiring the data to be written.
Step S105: and acquiring the data to be written based on the target selection rule.
Specifically, in this embodiment, the data to be written, that is, the data to be written in the smart card, may be obtained by combining the target card resource and the target code resource, and it should be noted that, if the target card resource and/or the target code resource are repeatedly selected, the data to be written is also considered to be repeatedly selected, so as to determine, according to the target selection rule, to which smart terminal the repeatedly selected data to be written is allocated, and then the other smart terminals re-obtain the target card resource and the target code resource.
Step S106: and writing the smart card based on the card writing request and the data to be written.
Specifically, in this embodiment, the data to be written is written into the smart card according to the card writing request.
According to the smart card writing method provided by the embodiment, whether a request for writing a smart card is acquired is firstly judged, if the request for writing the smart card is acquired, then target card resources and target code number resources are acquired, whether the target card resources and/or the target code number resources are repeatedly selected is judged, if the target card resources and/or the target code number resources are repeatedly selected, it is indicated that one target card resource or one target code number resource is simultaneously allocated to a plurality of smart terminals, one target card resource or one target code number resource is intelligently used by one smart card, therefore, a target selection rule needs to be acquired, and independent and available target card resources and target code number resources are allocated to each smart card according to the target selection rule.
Referring to fig. 2, in one implementation manner of the present embodiment, the specific step of determining whether the target card resource and/or the target code number resource are repeatedly selected in step S103 includes steps S201 to S205:
step S201: and judging whether the card writing number exists on the target card resource and/or the target code number resource.
Specifically, in this embodiment, the intelligent terminal generates a unique number, i.e. a card writing number, after receiving the card writing request, and when the intelligent terminal selects the target card resource and the target code number resource, the intelligent terminal marks the card writing number on the target card resource and the target code number resource.
Step S202: if the card writing number exists on the target card resource and/or the target code number resource, the number of the card writing number is obtained.
Specifically, in this embodiment, the number is the number of the card writing numbers, and the number can be directly obtained from the target card resource and the target code number resource.
Step S203: judging whether the number of the numbers is larger than 1.
Specifically, in this embodiment, the number of numbers is compared with 1, so as to determine whether the number of numbers is greater than 1.
Step S204: if the number of the numbers is greater than 1, the target card resource and/or the target code number resource are/is repeatedly selected.
Specifically, in this embodiment, if the number of numbers is greater than 1, it indicates that the target card resource or the target code number resource is marked by multiple intelligent terminals, and it is determined that the target card resource and/or the target code number resource is repeatedly selected.
Step S205: if the number of the numbers is equal to 1, the target card resource and/or the target code number resource are/is judged not to be repeatedly selected.
Specifically, in this embodiment, if the number of numbers is equal to 1, it indicates that the target card resource or the target code number resource is only marked by one intelligent terminal, so that it is determined that the target card resource and/or the target code number resource is not repeatedly selected.
According to the smart card writing method provided by the embodiment, firstly, whether the target card resource and/or the target code number resource are/is provided with the card writing number is judged, if the target card resource and/or the target code number resource are/is provided with the card writing number, the target card resource and/or the target code number resource are/is indicated to be selected by the smart terminal, so that the number of the card writing number is required to be acquired and whether the number is larger than 1 is judged, if the number is larger than 1, a plurality of smart terminals are indicated to mark the target card resource and/or the target code number resource, namely, the target card resource and/or the target code number resource are repeatedly selected, if the number is equal to 1, only one smart terminal is indicated to mark the target card resource and/or the target code number resource, and therefore, the target card resource and/or the target code number resource are not repeatedly selected, and the situation of reducing repeated card writing is facilitated by judging whether the target card resource and/or the target code number resource are repeatedly selected.
Referring to fig. 3, in one implementation manner of the present embodiment, if the target card resource and/or the target code number resource are repeatedly selected in step S104, the specific steps of obtaining the target selection rule include steps S301 to S304:
step S301: and if the target card resource and/or the target code number resource are repeatedly selected, acquiring the target terminal based on the card writing number.
Specifically, in this embodiment, if the target card resource and/or the target code number resource are repeatedly selected, the target terminal corresponding to the write card number is obtained according to the write card number, that is, the target terminal selects the same target card resource and/or intelligent terminal of the target code number resource, for example, three write card numbers of 8888, 9999 and 7777 are marked on the target card resource, and the intelligent terminals corresponding to the write card numbers of 8888, 9999 and 7777 are A, B and C, respectively, and the intelligent terminals A, B and C can be obtained by the write card numbers of 8888, 9999 and 7777.
Step S302: and acquiring the terminal grade based on the target terminal.
Specifically, in this embodiment, the terminal level is the authority level of the intelligent terminal, and each intelligent terminal has a corresponding terminal level, for example, the terminal level may be classified into a first level, a second level, a third level, and so on.
Step S303: and ordering the terminal grades and generating a first ordered list.
Specifically, in this embodiment, the first ordered list is a list ordered according to the terminal level, and in this embodiment, the first ordered list is arranged according to the order from high to low of the terminal level.
Step S304: and acquiring a target selection rule based on the first sorting list.
Specifically, in this embodiment, the target selection rule is generated according to the order from high to low of the terminal levels in the first ranked list, that is, the target card resource and/or the target code number resource is preferentially allocated to the target terminal with the highest terminal level in the first ranked list.
According to the smart card writing method provided by the embodiment, after the target card resources and/or the target code number resources are repeatedly selected, the corresponding target terminals are acquired according to the writing card numbers, the terminal grades are acquired according to the target terminals, the terminal grades are ordered to generate the first ordered list, the target selection rules are formulated according to the first ordered list, the target card resources and/or the target code number resources are selected according to the target selection rules, the higher the terminal grade is, the higher the priority authority is indicated, so that the target card resources and/or the target code number resources are preferentially distributed to the target terminals which are ordered in the first ordered list and are located in front, the repeated distribution of the same target card resources and/or the same target code number resources is facilitated to be reduced, and the repeated writing of the card is facilitated to be reduced.
Referring to fig. 4, in one implementation manner of the present embodiment, step S304 includes steps S401 to S405, based on the first ordered list, of acquiring a target selection rule:
step S401: based on the first ranking list, a first ranking level is obtained.
Specifically, in this embodiment, the first rank, i.e., the rank with the highest terminal rank, includes the card number of the target terminal and the terminal rank in the first rank list, so the first rank may be directly obtained from the first rank list, for example, the first rank list is arranged into three stages, two stages and one stage according to the order from high to low of the terminal rank, and then the first rank is three stages.
Step S402: and acquiring the first terminal based on the first sorting level.
Specifically, in this embodiment, the first terminal, that is, the target terminal corresponding to the first ranking level, may directly obtain the first terminal from the first ranking list by using the first ranking level, for example, the terminal ranks corresponding to the target terminals A, B, C and D are respectively the first level, the second level, the third level and the third level, and then the first terminal is the terminals C and D.
Step S403: based on the first terminals, a first number of terminals is obtained.
Specifically, in this embodiment, the number of the first terminals, that is, the number of the first terminals, may be directly known from the first ordered list according to the first terminals.
Step S404: it is determined whether the first number of terminals is greater than 1.
Specifically, in this embodiment, the first terminal number is compared with 1, so as to determine whether the first terminal number is greater than 1.
Step S405: and if the number of the first terminals is equal to 1, acquiring a target selection rule based on the first sorting level.
Specifically, in this embodiment, when the number of the first terminals is equal to 1, the target card resources and/or the target code number resources are directly allocated to the first terminals.
According to the smart card writing method provided by the embodiment, the first ordering grade is obtained according to the first ordering list, the first terminal and the first terminal number are obtained according to the first ordering grade, whether the first terminal number is larger than 1 is judged, if the first terminal number is equal to 1, only one first terminal number with the first ordering grade is indicated, so that the target selection rule is obtained according to the first ordering grade, namely, the target card resource and/or the target code number resource are directly allocated to the first terminal corresponding to the first ordering grade, the situation that the same target card resource and/or the same target code number resource are repeatedly allocated is reduced, and the situation that the repeated writing of the card is reduced is facilitated.
Referring to fig. 5, in one implementation manner of the present embodiment, after determining in step S404 whether the first terminal number is greater than 1, steps S501 to S504 are further included:
step S501: and if the number of the first terminals is greater than 1, acquiring the historical card writing data of the first terminals.
Specifically, in this embodiment, the historical card writing data, that is, the data for writing cards in the past preset time period, where the preset time period may be 1 year or 2 years, may be obtained from the historical database.
Step S502: based on the historical card writing data, the historical card writing times are obtained.
Specifically, in this embodiment, the number of times of writing cards in the history, that is, the number of times of writing cards in the past preset time period, for example, the number of times of writing cards in 1 year or 2 years, may be directly obtained from the history database.
Step S503: and ordering the historical card writing times to generate a second ordering list.
Specifically, in this embodiment, the second ordered list is an ordered list according to the number of times of writing cards, and in this embodiment, the ordered list is arranged according to the order of the number of times of writing cards from more to less.
Step S504: and acquiring a target selection rule based on the second ordered list.
Specifically, in this embodiment, according to the second ordered list, the target selection rule is generated according to the order of the number of times of writing cards in the second ordered list from more to less, that is, the target card resource and/or the target code number resource is preferentially allocated to the first terminal with the largest number of times of writing cards in the first ordered list.
According to the smart card writing method provided by the embodiment, if the number of the first terminals is greater than 1, the number of the first terminals with the first ordering level is greater, so that the historical card writing data of the first terminals are required to be acquired, the historical card writing times are acquired according to the historical card writing data, the historical card writing times are ordered to generate a second ordering list, a target selection rule is formulated according to the second ordering list, the target card resources and/or the target code number resources are selected according to the selection rule, the greater the historical card writing times are, the greater the traffic volume according to the first terminals is indicated, and therefore the target card resources and/or the target code number resources are preferentially allocated to the target terminals which are ordered to the front in the second ordering list, not only is the traffic volume improved, but also the repeated allocation of the same target card resources and/or the same target code number resources is reduced, and the repeated card writing is reduced.
Referring to fig. 6, in one implementation manner of the present embodiment, step S504 includes steps S601 to S605 of acquiring a target selection rule based on the second ordered list:
step S601: based on the second sorted list, a first sorted quantity is obtained.
Specifically, in this embodiment, the first ordered number, that is, the number of the most times of writing cards in the history in the second ordered list may be directly obtained in the second ordered list.
Step S602: and acquiring the second terminal based on the first ordering quantity.
Specifically, in this embodiment, the second terminal is the first terminal corresponding to the first ordering number.
Step S603: and acquiring the number of the second terminals based on the second terminals.
Specifically, in this embodiment, the second number of terminals is the number of second terminals.
Step S604: it is determined whether the number of second terminals is greater than 1.
Step S605: and if the number of the second terminals is equal to 1, acquiring a target selection rule based on the first sequencing number.
Specifically, in this embodiment, when the number of the second terminals is equal to 1, the target card resources and/or the target code number resources are directly allocated to the second terminals.
According to the smart card writing method provided by the embodiment, the first ordering quantity is firstly obtained according to the second ordering list, the second terminal and the second terminal quantity are obtained according to the first ordering quantity, whether the second terminal quantity is larger than 1 is judged, if the second terminal quantity is equal to 1, only one second terminal quantity with the first ordering quantity is indicated, so that the target selection rule is obtained according to the first ordering quantity, namely, the target card resource and/or the target code number resource are directly distributed to the second terminal corresponding to the first ordering quantity, the situation that the same target card resource and/or the same target code number resource are repeatedly distributed is reduced, and the situation that the repeated writing of the card is reduced is facilitated.
Referring to fig. 7, in one implementation manner of the present embodiment, the specific step of determining whether the number of the second terminals is greater than 1 in step S604 includes steps S701 to S704:
step S701: if the number of the second terminals is greater than 1, the target region can be acquired according to the network points registered by the second terminals based on the acquisition of the target region by the second terminals.
Specifically, in this embodiment, the target area is the area where the business hall where the second terminal is located, for example, the county or the city.
Step S702: and judging whether the target regions corresponding to the different second terminals are consistent.
Step S703: and if the target regions corresponding to the different second terminals are consistent, acquiring a target selection rule based on the card writing number.
Specifically, in this embodiment, if the target areas corresponding to different second terminals are consistent, it indicates that all the second terminals are in one target area, so that the target selection rule is obtained according to the card writing number.
Step S704: and if the target regions corresponding to the different second terminals are inconsistent, acquiring a target selection rule based on the target regions.
Specifically, in this embodiment, if the target areas corresponding to different second terminals are inconsistent, the target selection rule is obtained according to the target area, and in this embodiment, the target selection rule may be determined according to the development degree of the target area, for example, the development degree of Beijing is better than that of Wuhan, and the second terminal whose target area is Beijing is preferentially selected.
In the smart card writing method provided in this embodiment, if the number of the second terminals is greater than 1, it indicates that there are a plurality of second terminals with the first ordering number, so that the target regions need to be acquired, whether the target regions corresponding to different second terminals are consistent is determined, and if the target regions corresponding to different second terminals are consistent, a target selection rule is acquired based on the writing number, that is, the target card resource and the target code number resource are allocated according to the writing number; if the target regions corresponding to the different second terminals are inconsistent, the target selection rule is acquired based on the target regions, namely, the target card resources and the target code number resources are allocated according to the target regions, so that the situation that the same target card resources and/or the same target code number resources are repeatedly allocated is reduced, and the situation that the duplicate cards are repeatedly written is reduced.
The implementation principle of the smart card writing method in the embodiment of the application is as follows:
judging whether a card writing request for the intelligent card is acquired, and if the card writing request is acquired, acquiring target card resources and target code number resources; judging whether the target card resource and/or the target code number resource are repeatedly selected, if so, acquiring a target selection rule, acquiring data to be written based on the target selection rule, and writing the smart card based on a card writing request and the data to be written.
In a second aspect, the present application also discloses a smart card writing system.
Referring to fig. 8, a smart card writing system includes:
the first judging module 1 is used for judging whether a card writing request for the smart card is acquired or not;
the first acquisition module 2 is used for acquiring target card resources and target code number resources if the card writing request is acquired;
a second judging module 3, configured to judge whether the target card resource and/or the target code number resource are repeatedly selected;
the second acquisition module 4 is used for acquiring a target selection rule if the target card resource and/or the target code number resource are repeatedly selected;
The third acquisition module 5 is used for acquiring data to be written based on a target selection rule;
and the card writing module 6 is used for writing the smart card based on the card writing request and the data to be written.
In a third aspect, an embodiment of the present application discloses an intelligent terminal, including a memory, and a processor, where the memory is configured to store a computer program capable of running on the processor, and when the processor loads the computer program, the processor executes a card writing method of the foregoing embodiment.
In a fourth aspect, embodiments of the present application disclose a computer readable storage medium, and a computer program is stored in the computer readable storage medium, where the computer program, when loaded by a processor, performs a smart card writing method of the above embodiments.
The foregoing are all preferred embodiments of the present application, and are not intended to limit the scope of the present application in any way, therefore: all equivalent changes in structure, shape and principle of this application should be covered in the protection scope of this application.

Claims (5)

1. A method for writing a smart card, comprising:
judging whether a card writing request for the smart card is acquired or not;
if the card writing request is obtained, obtaining a target card resource and a target code number resource;
Judging whether the target card resource and/or the target code number resource are repeatedly selected or not;
if the target card resource and/or the target code number resource are repeatedly selected, acquiring a target selection rule;
acquiring data to be written based on the target selection rule;
based on the card writing request and the data to be written, writing the card to the intelligent card;
the specific step of judging whether the target card resource and/or the target code number resource are repeatedly selected comprises the following steps:
judging whether a card writing number exists on the target card resource and/or the target code number resource;
if the card writing number exists on the target card resource and/or the target code number resource, acquiring the number of the card writing number;
judging whether the number of the numbers is larger than 1;
if the number is greater than 1, judging that the target card resource and/or the target code number resource are repeatedly selected;
if the number of the numbers is equal to 1, judging that the target card resources and/or the target code number resources are not repeatedly selected;
if the target card resource and/or the target code number resource are repeatedly selected, the specific step of obtaining the target selection rule includes:
If the target card resource and/or the target code number resource are repeatedly selected, acquiring a target terminal based on the card writing number;
acquiring a terminal grade based on the target terminal;
sorting the terminal grades and generating a first sorting list;
acquiring the target selection rule based on the first sorting list;
the specific step of obtaining the target selection rule based on the first ordered list includes:
acquiring a first sorting level based on the first sorting list;
acquiring a first terminal based on the first sorting level;
acquiring a first terminal number based on the first terminal;
judging whether the number of the first terminals is larger than 1;
if the number of the first terminals is equal to 1, acquiring a target selection rule based on the first sorting level;
after the determining whether the first terminal number is greater than 1, further includes:
if the number of the first terminals is greater than 1, acquiring historical card writing data of the first terminals;
acquiring historical card writing times based on the historical card writing data;
sorting the historical card writing times to generate a second sorting list;
acquiring the target selection rule based on the second sorting list;
The specific step of obtaining the target selection rule based on the second ordered list includes:
acquiring a first sorting number based on the second sorting list;
acquiring a second terminal based on the first ordering quantity;
acquiring a second terminal number based on the second terminal;
judging whether the number of the second terminals is larger than 1;
and if the number of the second terminals is equal to 1, acquiring a target selection rule based on the first sorting number.
2. The smart card writing method according to claim 1, further comprising, after said determining whether the number of the second terminals is greater than 1:
if the number of the second terminals is greater than 1, acquiring a target region based on the second terminals;
judging whether the target regions corresponding to different second terminals are consistent;
if the target regions corresponding to the different second terminals are consistent, acquiring a target selection rule based on the card writing number;
and if the target regions corresponding to the different second terminals are inconsistent, acquiring a target selection rule based on the target regions.
3. A smart card writing system, comprising:
The first judging module (1) is used for judging whether a card writing request for the smart card is acquired or not;
the first acquisition module (2) is used for acquiring target card resources and target code number resources if the card writing request is acquired;
a second judgment module (3) for:
judging whether a card writing number exists on the target card resource and/or the target code number resource;
if the card writing number exists on the target card resource and/or the target code number resource, acquiring the number of the card writing number;
judging whether the number of the numbers is larger than 1;
if the number is greater than 1, judging that the target card resource and/or the target code number resource are repeatedly selected;
if the number of the numbers is equal to 1, judging that the target card resources and/or the target code number resources are not repeatedly selected;
a second acquisition module (4), if the target card resource and/or the target code number resource are repeatedly selected, the second acquisition module (4) is configured to:
acquiring a target terminal based on the card writing number;
acquiring a terminal grade based on the target terminal;
sorting the terminal grades and generating a first sorting list;
Acquiring a first sorting level based on the first sorting list;
acquiring a first terminal based on the first sorting level;
acquiring a first terminal number based on the first terminal;
judging whether the number of the first terminals is larger than 1;
if the number of the first terminals is equal to 1, acquiring a target selection rule based on the first sorting level;
if the number of the first terminals is greater than 1, acquiring historical card writing data of the first terminals;
acquiring historical card writing times based on the historical card writing data;
sorting the historical card writing times to generate a second sorting list;
acquiring a first sorting number based on the second sorting list;
acquiring a second terminal based on the first ordering quantity;
acquiring a second terminal number based on the second terminal;
judging whether the number of the second terminals is larger than 1;
if the number of the second terminals is equal to 1, acquiring a target selection rule based on the first sorting number;
the third acquisition module (5) is used for acquiring data to be written based on the target selection rule;
and the card writing module (6) is used for writing the card to the intelligent card based on the card writing request and the data to be written.
4. A smart terminal comprising a memory, a processor, wherein the memory is adapted to store a computer program capable of running on the processor, and wherein the processor, when loaded with the computer program, performs the method of any one of claims 1 to 2.
5. A computer readable storage medium having a computer program stored therein, characterized in that the computer program, when loaded by a processor, performs the method of any of claims 1 to 2.
CN202310173800.2A 2023-02-28 2023-02-28 Smart card writing method, smart card writing system, terminal and storage medium Active CN115866579B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310173800.2A CN115866579B (en) 2023-02-28 2023-02-28 Smart card writing method, smart card writing system, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310173800.2A CN115866579B (en) 2023-02-28 2023-02-28 Smart card writing method, smart card writing system, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN115866579A CN115866579A (en) 2023-03-28
CN115866579B true CN115866579B (en) 2023-05-12

Family

ID=85659214

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310173800.2A Active CN115866579B (en) 2023-02-28 2023-02-28 Smart card writing method, smart card writing system, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN115866579B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114579985A (en) * 2020-12-01 2022-06-03 中国电信股份有限公司 Remote card writing method, card writing terminal, server and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10269162A (en) * 1997-03-26 1998-10-09 Mitsubishi Electric Corp Resource allocation setting method for expansion card in fa controller, fa controller and expansion card for fa controller
CN104796882B (en) * 2014-01-16 2018-12-07 中国联合网络通信集团有限公司 Writing smart card method and apparatus
CN110460987B (en) * 2019-06-25 2022-04-08 中国移动通信集团江西有限公司 Card writing method, device, server and storage medium
CN112437427B (en) * 2019-08-26 2023-03-31 中国移动通信有限公司研究院 Card writing method, device, equipment and computer readable storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114579985A (en) * 2020-12-01 2022-06-03 中国电信股份有限公司 Remote card writing method, card writing terminal, server and storage medium

Also Published As

Publication number Publication date
CN115866579A (en) 2023-03-28

Similar Documents

Publication Publication Date Title
CN107679684B (en) Policy allocation method, policy allocation device, storage medium and computer equipment
CN108271120B (en) Method, device and equipment for determining target area and target user
CN105554728A (en) Cloud SIM card pool system
CN108932310B (en) Space service providing method and device, server and storage device
CN104991924A (en) Method and apparatus for determining address of new supply point
CN103841550A (en) Method and device for identifying multi-card user
EP1336317B1 (en) System and method for identifying the position of mobile terminals
CN110298687B (en) Regional attraction assessment method and device
CN113055878B (en) Cloud card distribution method and device, electronic equipment and storage medium
CN108430059B (en) Method, device and system for distributing user identification card and readable storage medium
CN104994492B (en) Method for saving standard format page and server
EP2883396A1 (en) Wlan radiomap with access points uniquely identified by combination of bssid and mcc
CN105630419A (en) Partition view sending method of resource pools and management node
CN104780253A (en) Address book management method
CN115866579B (en) Smart card writing method, smart card writing system, terminal and storage medium
CN114585002A (en) Communication processing method, communication processing device, terminal equipment and computer readable storage medium
CN107798450B (en) Service distribution method and device
CN112887910B (en) Method and device for determining abnormal coverage area and computer readable storage medium
CN112203220A (en) IMEI (International Mobile Equipment identity) belonging terminal identification method and device
CN110248354A (en) A kind of data processing method and its application based on dynamic configuration
CN112188591B (en) Network access method, device, computer equipment and storage medium
CN107784548B (en) Order processing method and device
CN109151808A (en) A kind of data analysing method and system
CN112040413B (en) User track calculation method and device and electronic equipment
CN104780254A (en) Terminal

Legal Events

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