A processing method for information identification of a SIM card supply chain label
By using unified code identification definitions and tag data encapsulation rules, standardized identification of SIM card packaging has been achieved, solving the complex management problems caused by inconsistent SIM card packaging identification and reducing costs.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING SHUMI NETWORK TECH CO LTD
- Filing Date
- 2023-02-10
- Publication Date
- 2026-05-08
AI Technical Summary
The lack of standardized packaging and labeling solutions for SIM cards from different operators and card vendors forces operators to establish complex identification systems, increasing the complexity of supply chain management and the cost of information processing.
It provides a unified code identification definition rule and tag data encapsulation rule, requiring operators or card manufacturers to pre-encapsulate tag data that conforms to the rule before packaging the SIM card, and to parse and identify it based on these rules during the circulation process, supporting the scanning and parsing of barcode, QR code, RFID and NFC tag types.
By using unified rules to identify SIM card packaging from different operators or card vendors, the complexity of supply chain management and the cost of information processing are reduced.
Smart Images

Figure CN116070659B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a processing method for identifying information from SIM card supply chain tags. Background Technology
[0002] Although SIM cards are standardized products, different operators and card vendors lack standardized packaging labeling solutions. This forces telecommunications operators (hereinafter referred to as "operators") that need to purchase SIM cards from different operators and vendors to establish a complex SIM card packaging labeling identification system to identify the information on the packaging labels of each SIM card. This undoubtedly increases the complexity of the operator's supply chain management and the cost of information processing. Summary of the Invention
[0003] The purpose of this invention is to address the shortcomings of existing technologies by providing a processing method, electronic device, and computer-readable storage medium for identifying information from SIM card supply chain tags. This invention presents a unified code identifier definition rule and tag data encapsulation rule, requiring each operator or card vendor to pre-encapsulate code identifier information conforming to the code identifier definition rule into corresponding tag data before issuing SIM card packaging. Based on this tag data, a corresponding supply chain tag is generated and affixed to the SIM card packaging. When the SIM card packaging enters various stages of the operator's circulation process, the tag scanning information of the packaging supply chain tag is parsed according to the data parsing process corresponding to the tag data encapsulation rule to obtain the corresponding parsing data packet. Then, based on the code identifier parsing rule corresponding to the code identifier definition rule, the parsing data packet is used to identify the code identifier information to obtain the corresponding code identifier information set. Through this invention, operators only need to use one set of rules to identify SIM card packaging supply chain tags from different operators or card vendors, thereby reducing the complexity of supply chain management and the cost of information processing.
[0004] To achieve the above objectives, a first aspect of the present invention provides a method for identifying information from SIM card supply chain tags, the method comprising:
[0005] The information on the first supply chain label on the first SIM card logistics packaging is scanned to obtain the corresponding first scan information; the first scan information includes a first packaging mode and a first packaging data packet; the first packaging mode includes a first mode, a second mode, a third mode, and a fourth mode;
[0006] The first encapsulated data packet is parsed according to the first encapsulation mode to obtain the corresponding first parsed data packet;
[0007] Based on preset code identification parsing rules, the first parsed data packet is processed to identify code identification information to obtain a corresponding first identification information set; the first identification information set includes first country name information, first industry name information, first enterprise name information and first product object information set; the first product object information set includes multiple first product object information.
[0008] Preferably, the step of scanning the first supply chain label on the first SIM card logistics packaging to obtain the corresponding first scan information specifically includes:
[0009] The label type of the first supply chain label on the first SIM card logistics packaging is identified to obtain the corresponding first label type; the first label type includes barcode label type, QR code label type, RFID label type and NFC label type;
[0010] When the first label type is a barcode label type, the first supply chain label is scanned using a preset barcode scanning device to obtain the corresponding first scan information;
[0011] When the first label type is a QR code label type, the first supply chain label is scanned using a preset QR code scanning device to obtain the corresponding first scan information.
[0012] When the first tag type is an RFID tag type, the first supply chain tag is processed by a preset RFID tag reading device to obtain the corresponding first RFID tag data, and the first RFID tag data is used as the corresponding first scanning information.
[0013] When the first tag type is an NFC tag type, the first supply chain tag is processed by an NFC tag reading device based on a preset NFC tag reading device to obtain the corresponding first NFC tag data, and the first NFC tag data is used as the corresponding first scanning information.
[0014] Preferably, the step of performing data parsing processing on the first encapsulated data packet according to the first encapsulation mode to obtain the corresponding first parsed data packet specifically includes:
[0015] When the first encapsulation mode is the first mode, the first encapsulated data packet is used as the corresponding first parsed data packet;
[0016] When the first encapsulation mode is the second mode, the corresponding first key identifier, first algorithm identifier, and first encrypted data are extracted from the first encapsulated data packet; and the first encrypted data is decrypted using the first key corresponding to the first key identifier based on the first encryption / decryption algorithm corresponding to the first algorithm identifier to obtain the corresponding first decrypted data; and the first decrypted data is used as the corresponding first parsing data packet.
[0017] When the first encapsulation mode is the third mode, the corresponding second algorithm identifier, first plaintext data, and first check code data are extracted from the first encapsulated data packet; and the corresponding second check code data is obtained by performing check code calculation based on the first plaintext data according to the first check code algorithm corresponding to the second algorithm identifier; and the first and second check code data are identified as matching; if they match, the first plaintext data is used as the corresponding first parsing data packet; if they do not match, the corresponding first parsing data packet is set to empty.
[0018] When the first encapsulation mode is the fourth mode, the corresponding second key identifier, third algorithm identifier, fourth algorithm identifier, second encrypted data, and third checksum data are extracted from the first encapsulated data packet; and the second encrypted data is decrypted using the second key corresponding to the second key identifier based on the second encryption / decryption algorithm corresponding to the third algorithm identifier to obtain the corresponding second decrypted data; and the second checksum is calculated based on the second decrypted data using the second checksum algorithm corresponding to the fourth algorithm identifier to obtain the corresponding fourth checksum data; and the matching of the third and fourth checksum data is identified; if they match, the second decrypted data is used as the corresponding first parsed data packet; if they do not match, the corresponding first parsed data packet is set to empty.
[0019] Preferably, the code identifier resolution rules include first-level code field separators, second-level code field separators, country code identifier resolution rules, industry code identifier resolution rules, enterprise code identifier resolution rules, product object code identifier resolution rules, and / or security code identifier resolution rules; the first-level code field separator is the single forward slash identifier " / " by default; the second-level code field separator is the single dot identifier "." by default; the security code identifier resolution rules are optional.
[0020] The country code identifier resolution rule includes a first-level code domain index and a first country code identifier information table; the first country code identifier information table includes multiple first country code identifier information records; the first country code identifier information record includes a first country code identifier field and a first country name field;
[0021] The industry code identifier resolution rule includes a second-level code domain index and a first industry code identifier information table; the first industry code identifier information table includes multiple first industry code identifier information records; the first industry code identifier information record includes a first industry code identifier field and a first industry name field;
[0022] The enterprise code identifier resolution rules include a third-level code domain index and a first enterprise code identifier information table; the first enterprise code identifier information table includes multiple first enterprise code identifier information records; the first enterprise code identifier information record includes a first enterprise code identifier field and a first enterprise name field;
[0023] The product object code identifier parsing rule includes the number of secondary code fields N and a first product object code identifier information table; the first product object code identifier information table includes N first product object code identifier information records; the first product object code identifier information record includes a first product object index field and a first product object name field; the value of the first product object index field ranges from 1 to N;
[0024] The security code identifier parsing rules include a first security code identifier information table; the first security code identifier information table includes multiple first security code identifier information records; the first security code identifier information record includes a first algorithm identifier field, a first algorithm key field, and a first algorithm interface field; if the algorithm corresponding to the first algorithm identifier field is an algorithm that does not require key intervention, then the corresponding first algorithm key field is empty.
[0025] Preferably, the step of performing code identification information recognition processing on the first parsed data packet based on preset code identification parsing rules to obtain the corresponding first identification information set specifically includes:
[0026] Step 51: Perform string data conversion on the first parsed data packet to obtain the corresponding first string;
[0027] Step 52: Confirm whether the security code identifier parsing rule is included in the code identifier parsing rule; if it is confirmed that it is not included, set the corresponding first verification result to successful verification; if it is confirmed that it is included, perform security code verification processing on the first string based on the security code identifier parsing rule to generate the corresponding first verification result; the first verification result includes successful verification and failed verification.
[0028] Step 53: Identify whether the first verification result is successful; if yes, proceed to step 54; if no, set the first country name information, the first industry name information, the first enterprise name information, and the first product object information set to empty, and proceed to step 57.
[0029] Step 54: Based on the first-level code field separator of the code identifier parsing rule, the first string is split into substrings. The substrings in the first string before the first-level code field separator are extracted as the corresponding first prefix string, and the substrings in the first string after the first-level code field separator are extracted as the corresponding first suffix string.
[0030] Step 55: Based on the second-level code field separator of the code identifier parsing rule, the country code identifier parsing rule, the industry code identifier parsing rule, and the enterprise code identifier parsing rule, the first prefix string is processed to identify the country, industry, and enterprise code identifier information to obtain the corresponding first country name information, first industry name information, and first enterprise name information;
[0031] Step 56: Based on the second-level code field separator of the code identifier parsing rule and the product object code identifier parsing rule, perform product object code identifier information recognition processing on the first suffix string to obtain the corresponding first product object information set;
[0032] Step 57: The first identification information set is composed of the obtained first country name information, first industry name information, first enterprise name information and first product object information set, and then output.
[0033] Furthermore, the step of performing security code verification processing on the first string based on the security code identifier parsing rules to generate the corresponding first verification result specifically includes:
[0034] Extract the substring from the first string from the character after the last second-level code field separator to the end character as the corresponding second string, and take the remaining string in the first string other than the second string as the corresponding third string;
[0035] Extract a specified number of characters from the second string at the starting position to serve as the corresponding fifth algorithm identifier; and extract the remaining characters from the second string excluding the fifth algorithm identifier to serve as the corresponding first security code; the specified number of characters at the starting position is 2 by default;
[0036] The first algorithm key field and the first algorithm interface field of the first security code identifier information record that matches the fifth algorithm identifier in the first security code identifier information table of the security code identifier parsing rule are extracted as the corresponding third key and first algorithm interface; the third string and the third key are input into the first algorithm interface for security code calculation processing; and the security code string returned by the first algorithm interface is used as the corresponding second security code;
[0037] The system identifies whether the first and second security codes match; if the first and second security codes match, the corresponding first verification result is set to verification successful; if the first and second security codes do not match, the corresponding first verification result is set to verification failed.
[0038] Furthermore, the process of identifying the country, industry, and enterprise code identifier information of the first prefix string based on the second-level code field separator, the country code identifier resolution rule, the industry code identifier resolution rule, and the enterprise code identifier resolution rule to obtain the corresponding first country name information, first industry name information, and first enterprise name information specifically includes:
[0039] Based on the second-level code field separators, the first prefix string is segmented and substrings are extracted. The substring from the start character to the character before the first second-level code field separator is extracted as the first substring, and a first substring index of 1 is assigned to it. The substring from the end character to the beginning character is extracted as the second substring, and a first substring index of 2 is assigned to it. This process continues until the substring from the end character to the end character is extracted as the last substring, and a first substring index is assigned to it.
[0040] The first substring corresponding to the first substring index that matches the first level code domain index of the country code identifier resolution rule is taken as the corresponding first country code identifier; and the first country name field of the first country code identifier information record that matches the first country code identifier in the first country code identifier information table of the country code identifier resolution rule is extracted as the corresponding first country name information.
[0041] The first substring corresponding to the first substring index that matches the second-level code field index of the industry code identifier parsing rule is taken as the corresponding first industry code identifier; and the first industry name field of the first industry code identifier information record that matches the first industry code identifier in the first industry code identifier information table of the industry code identifier parsing rule is extracted as the corresponding first industry name information.
[0042] The first substring corresponding to the first substring index that matches the third-level code field index of the enterprise code identifier parsing rule is taken as the corresponding first enterprise code identifier; and the first enterprise name field of the first enterprise code identifier information record that matches the first enterprise code identifier in the first enterprise code identifier information table of the enterprise code identifier parsing rule is extracted as the corresponding first enterprise name information.
[0043] The obtained first country name information, first industry name information, and first enterprise name information are output as the corresponding processing results.
[0044] Furthermore, the step of performing product object code identification information recognition processing on the first suffix string based on the second-level code field separator of the code identifier parsing rule and the product object code identifier parsing rule to obtain the corresponding first product object information set specifically includes:
[0045] Based on the number N of the second-level code fields according to the second-level code field separators and the product object code identifier parsing rules, the first suffix string is segmented and substrings are extracted. The substring from the starting character to the character before the first second-level code field separator is extracted as the corresponding first second substring, and a second substring index of 1 is assigned to the first second substring. The substring from the character after the first second-level code field separator to the character before the second second-level code field separator is extracted as the second second substring, and a second substring index of 2 is assigned to the second second substring. This process continues until the substring from the character after the (N-1)th second-level code field separator to the character before the Nth second-level code field separator is extracted as the Nth second substring, and a second substring index of N is assigned to the Nth second substring.
[0046] Extract the first product object name field from the first product object code identifier information record in the first product object code identifier information table of the product object code identifier parsing rule that matches the first product object index field with each of the second substring indices, and use it as the corresponding first product object name;
[0047] The first product object information is composed of each first product object name and the corresponding second substring; and the first product object information is composed of all the obtained first product object information.
[0048] A second aspect of the present invention provides an electronic device, including: a memory, a processor, and a transceiver;
[0049] The processor is configured to be coupled to the memory, read and execute instructions in the memory to implement the method described in the first aspect above;
[0050] The transceiver is coupled to the processor, and the processor controls the transceiver to send and receive messages.
[0051] A third aspect of the present invention provides a computer-readable storage medium storing computer instructions that, when executed by a computer, cause the computer to perform the method described in the first aspect.
[0052] This invention provides a processing method, electronic device, and computer-readable storage medium for identifying information from SIM card supply chain tags. The invention presents a unified code identifier definition rule and tag data encapsulation rule, requiring each operator or card vendor to pre-encapsulate code identifier information conforming to the code identifier definition rule into corresponding tag data before issuing SIM card packaging. A corresponding supply chain tag is then generated based on this tag data and affixed to the SIM card packaging. When the SIM card packaging enters various stages of the operator's distribution chain, the tag scanning information of the packaging supply chain tag is parsed according to the data parsing process corresponding to the tag data encapsulation rule to obtain the corresponding parsing data packet. Furthermore, the parsing data packet is then used to identify the code identifier information according to the code identifier definition rule to obtain the corresponding code identifier information set. Through this invention, operators only need one set of rules to identify SIM card packaging supply chain tags from different operators or card vendors, reducing both the complexity and the information processing costs of supply chain management. Attached Figure Description
[0053] Figure 1 This is a schematic diagram of a method for identifying information from SIM card supply chain tags according to Embodiment 1 of the present invention;
[0054] Figure 2 This is a schematic diagram of the structure of an electronic device provided in Embodiment 2 of the present invention. Detailed Implementation
[0055] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.
[0056] Before describing the processing steps of the method for identifying information from SIM card supply chain tags provided in Embodiment 1 of the present invention, the code identification definition rules and tag data encapsulation rules provided in the embodiments of the present invention will be explained first.
[0057] The tag data encapsulation rules of this invention are used to uniformly and standardizedly define the tag information of the supply chain tags loaded on the SIM card packaging. This unified tag information consists of an encapsulation mode and an encapsulated data packet; there are four encapsulation modes: the first, second, third, and fourth modes.
[0058] When the encapsulation mode is the first mode, it means that the encapsulated data packet is a plaintext data packet composed of a set of plaintext code identification information.
[0059] When the encapsulation mode is the second mode, it means that the encapsulated data packet is a ciphertext data packet. Its specific data format is: key identifier + algorithm identifier + encrypted data. It is necessary to use the data encryption and decryption algorithm corresponding to the algorithm identifier and the key corresponding to the key identifier to decrypt the encrypted data to obtain the required plaintext data packet.
[0060] When the encapsulation mode is the third mode, it means that the encapsulated data packet is a plaintext data packet that needs to be checked by a check code. Its specific data format is: algorithm identifier + plaintext data + check code data. Only when the check code algorithm corresponding to the algorithm identifier is used to calculate the check code of the plaintext data and the calculation result matches the check code data can the plaintext data be confirmed as the required plaintext data packet.
[0061] When the encapsulation mode is the fourth mode, it means that the encapsulated data packet is a ciphertext data packet that needs to be decrypted and verified. Its specific data format is: key identifier + decryption algorithm identifier + verification algorithm identifier + encrypted data + verification data. Only when the encryption and decryption algorithm is based on the data corresponding to the decryption algorithm identifier, and the encrypted data is decrypted using the key corresponding to the key identifier to obtain the corresponding plaintext data packet, and the verification code is calculated based on the verification algorithm corresponding to the verification algorithm identifier, and the calculation result matches the verification code data, can the plaintext data packet be confirmed as the required plaintext data packet.
[0062] The code identifier definition rules of this invention are used to uniformly and standardizedly define the aforementioned plaintext data packets. The plaintext data packet can be considered as a string with a fixed format. This string has two data formats: a data format with a security code identifier and a data format without a security code identifier.
[0063] (1) The data format with security code identifier is:
[0064] Country code identifier + '.' + Industry code identifier + '.' + Enterprise code identifier + ' / ' + Product object code identifier 1 + '.' + Product object code identifier 2 + '.' + ... + Product object code identifier N + '.' + Security code identifier;
[0065] For example, if the string that meets the data format with security code identifier is 86.1001.21 / 1.PO0239923023.PRD3223232323.xxxxxx, then the country code identifier is '86', the industry code identifier is '1001', the enterprise code identifier is '21', the product object code identifier 1 is '1', the product object code identifier 2 is 'PO0239923023', the product object code identifier 3 is 'PRD3223232323', and the security code identifier is 'xxxxxx'.
[0066] (2) The data format without security code identifier is:
[0067] Country code identifier + '.' + Industry code identifier + '.' + Enterprise code identifier + ' / ' + Product object code identifier 1 + '.' + Product object code identifier 2 + '.' + ... + Product object code identifier N;
[0068] For example, if the string that meets the data format without security code identifier is 86.1001.21 / 1.PO0239923023.PRD3223232323.xxxxxx, then the country code identifier is '86', the industry code identifier is '1001', the enterprise code identifier is '21', the product object code identifier 1 is '1', the product object code identifier 2 is 'PO0239923023', the product object code identifier 3 is 'PRD3223232323', and the product object code identifier 4 is 'xxxxxx'.
[0069] In the above data format, the single slash identifier " / " is called the first-level code field separator, and the single dot identifier "." is called the second-level code field separator; each country code identifier corresponds to a country name; each industry code identifier corresponds to an industry name, which can also be used to record the operator name; each enterprise code identifier corresponds to an enterprise name; there can be one or more product object code identifiers, and the specific number can be set according to actual application needs. For example, different code identifier values for product object code identifier 1 can be used to correspond to different packaging types, different code identifier settings for product object code identifier 2 can be used to correspond to different order numbers, and product object codes... Different code identifier settings for code identifier 3 can be used to correspond to different production batch numbers, etc.; the data format of the security code identifier is: algorithm identifier + security code. The code identifier definition rules of this embodiment stipulate that the security code is the calculation result obtained by performing security code calculation on the substrings other than the security code identifier in the above string (i.e.: country code identifier + '.' + industry code identifier + '.' + enterprise code identifier + ' / ' + product object code identifier 1 + '.' + product object code identifier 2 + '.' + ... + product object code identifier N) based on the security code algorithm corresponding to the algorithm identifier. Under normal circumstances, the first two characters of the security code identifier are the algorithm identifier.
[0070] This invention requires each operator or card vendor to pre-encapsulate the code identifier information that conforms to the above code identifier definition rules, i.e., the above-mentioned uniform plaintext data packet, into uniformly formatted tag information according to the above-mentioned tag data encapsulation rules before issuing the SIM card package, and generate the corresponding supply chain tag according to the tag information, and affix the obtained supply chain tag to the SIM card package.
[0071] When the SIM card package enters the various circulation stages of the business operator, the business operator can use the processing method for identifying information of SIM card supply chain tags provided in Embodiment 1 of the present invention to parse the tag scanning information of the package supply chain tag according to the data parsing processing flow corresponding to the above tag data encapsulation rules to obtain the corresponding parsing data packet, and to identify the code identification information of the parsing data packet according to the code identification parsing rules corresponding to the above code identification definition rules to obtain the corresponding code identification information set. Figure 1 This is a schematic diagram of a method for identifying information from SIM card supply chain tags according to Embodiment 1 of the present invention. Figure 1 As shown, this method mainly includes the following steps:
[0072] Step 1: Scan the information on the first supply chain label on the first SIM card's logistics packaging to obtain the corresponding first scan information;
[0073] The first scan information includes a first encapsulation mode and a first encapsulated data packet; the first encapsulation mode includes a first mode, a second mode, a third mode, and a fourth mode;
[0074] Specifically, this includes: Step 11, identifying the label type of the first supply chain label on the first SIM card logistics packaging to obtain the corresponding first label type;
[0075] The first label type includes barcode label type, QR code label type, RFID label type and NFC label type;
[0076] Here, this embodiment of the invention supports scanning multiple types of supply chain label information, including at least four types of supply chain labels: barcode label type, QR code label type, RFID label type and NFC label type;
[0077] Step 12: When the first label type is a barcode label type, the first supply chain label is scanned using a preset barcode scanning device to obtain the corresponding first scan information;
[0078] Here, if the current first supply chain label is a barcode label, then in this embodiment of the invention, when the first supply chain label is scanned using a preset barcode scanning device, the barcode information of the first supply chain label will be acquired using the preset barcode scanning device (such as a barcode scanner), and the acquired barcode information will be parsed using the corresponding barcode information parsing algorithm to obtain the corresponding first scan information.
[0079] Step 13: When the first label type is a QR code label type, the first supply chain label is scanned using a preset QR code scanning device to obtain the corresponding first scan information;
[0080] Here, if the current first supply chain label is a QR code label, then in this embodiment of the invention, when scanning the QR code information of the first supply chain label based on a preset QR code scanning device, the QR code information of the first supply chain label will be obtained based on the preset QR code scanning device (such as a QR code scanner), and the obtained QR code information will be parsed based on the corresponding QR code information parsing algorithm to obtain the corresponding first scan information.
[0081] Step 14: When the first tag type is an RFID tag type, the first supply chain tag is processed by the preset RFID tag reading device to obtain the corresponding first RFID tag data, and the first RFID tag data is used as the corresponding first scanning information.
[0082] Here, if the current first supply chain tag is an RFID tag, then in this embodiment of the invention, when the first supply chain tag is processed by reading RFID tag data based on a preset RFID tag reading device, the storage content of one or more specified data storage blocks stored on the first supply chain tag will be read based on the preset RFID tag reading device (such as an RFID card reader), and the read one or more data block contents will be sorted in order according to a preset sorting rule to obtain the corresponding first RFID tag data.
[0083] Step 15: When the first tag type is an NFC tag type, the first supply chain tag is processed by an NFC tag reading device based on a preset NFC tag reading device to obtain the corresponding first NFC tag data, and the first NFC tag data is used as the corresponding first scan information.
[0084] Here, if the current first supply chain tag is an NFC tag, then in this embodiment of the invention, when performing NFC tag data reading processing on the first supply chain tag based on a preset NFC tag reading device, the storage content of one or more specified data storage blocks stored on the first supply chain tag will be read based on the preset NFC tag reading device (such as an NFC card reader), and the read one or more data block contents will be sorted sequentially according to a preset sorting rule to obtain the corresponding first NFC tag data.
[0085] Step 2: Perform data parsing processing on the first encapsulated data packet according to the first encapsulation mode to obtain the corresponding first parsed data packet;
[0086] Here, the embodiments of the present invention are based on the data parsing process corresponding to the aforementioned tag data encapsulation rules. According to the first encapsulation mode of the first scan information, the first encapsulated data packet of the first scan information is parsed to obtain the corresponding plaintext data packet, namely the first parsed data packet.
[0087] Specifically, this includes: Step 21, when the first encapsulation mode is the first mode, the first encapsulated data packet is used as the corresponding first parsed data packet;
[0088] Here, as described in the aforementioned tag data encapsulation rules, when the first encapsulation mode is the first mode, it means that the first encapsulated data packet is a plaintext data packet composed of a set of plaintext code identification information. At this time, the first encapsulated data packet can be directly used as the corresponding first parsing data packet.
[0089] Step 22: When the first encapsulation mode is the second mode, extract the corresponding first key identifier, first algorithm identifier, and first encrypted data from the first encapsulated data packet; and decrypt the first encrypted data using the first key corresponding to the first key identifier based on the first encryption / decryption algorithm corresponding to the first algorithm identifier to obtain the corresponding first decrypted data; and use the first decrypted data as the corresponding first parsing data packet.
[0090] Here, as described in the aforementioned tag data encapsulation rules, when the first encapsulation mode is the second mode, the data format of the first encapsulated data packet is: first key identifier + first algorithm identifier + first encrypted data. It is necessary to use the data encryption and decryption algorithm corresponding to the first algorithm identifier and the first key corresponding to the first key identifier to decrypt the first encrypted data to obtain the required plaintext data packet, i.e., the first decrypted data. Then, the first decrypted data is used as the corresponding first parsing data packet.
[0091] Step 23: When the first encapsulation mode is the third mode, extract the corresponding second algorithm identifier, first plaintext data, and first checksum data from the first encapsulated data packet; and calculate the corresponding second checksum data based on the first checksum algorithm corresponding to the second algorithm identifier and the first plaintext data; and identify whether the first and second checksum data match; if they match, use the first plaintext data as the corresponding first parsing data packet; if they do not match, set the corresponding first parsing data packet to empty.
[0092] Here, as described in the aforementioned tag data encapsulation rules, when the first encapsulation mode is the third mode, the data format of the first encapsulated data packet is: second algorithm identifier + first plaintext data + first check code data. Only when the check code algorithm corresponding to the second algorithm identifier is used to calculate the check code of the first plaintext data and the calculation result, i.e., the second check code data, matches the first check code data, can the first plaintext data be confirmed as the required plaintext data packet, and the first plaintext data be used as the corresponding first parsed data packet.
[0093] Step 24: When the first encapsulation mode is the fourth mode, extract the corresponding second key identifier, third algorithm identifier, fourth algorithm identifier, second encrypted data, and third checksum data from the first encapsulated data packet; and decrypt the second encrypted data using the second key corresponding to the second key identifier based on the second encryption / decryption algorithm corresponding to the third algorithm identifier to obtain the corresponding second decrypted data; and calculate the checksum based on the second decrypted data using the second checksum algorithm corresponding to the fourth algorithm identifier to obtain the corresponding fourth checksum data; and identify whether the third and fourth checksum data match; if they match, use the second decrypted data as the corresponding first parsing data packet; if they do not match, set the corresponding first parsing data packet to empty.
[0094] Here, as described in the aforementioned tag data encapsulation rules, when the first encapsulation mode is the fourth mode, the data format of the first encapsulated data is: second key identifier + third algorithm identifier + fourth algorithm identifier + second encrypted data + third check code data. At this time, it is necessary to first use the data encryption and decryption algorithm corresponding to the third algorithm identifier and the second key corresponding to the second key identifier to decrypt the second encrypted data to obtain the corresponding plaintext data packet, i.e., the second decrypted data. Then, based on the check code algorithm corresponding to the fourth algorithm identifier, the check code is calculated on the second decrypted data. Only when the calculation result, i.e., the fourth check code data, matches the third check code data can it be confirmed that the second decrypted data is the required plaintext data packet, and only then can the second decrypted data be used as the corresponding first parsed data packet.
[0095] After obtaining the first parsed data packet, this embodiment of the invention will, through subsequent step 3, identify the code identification information of the parsed data packet based on the code identification parsing rules corresponding to the aforementioned code identification definition rules to obtain the corresponding code identification information set, i.e., the first identification information set. Here, before describing the subsequent step 3, the code identification parsing rules of this embodiment of the invention will be explained as follows.
[0096] The code identifier resolution rules in this embodiment of the invention include first-level code field separators, second-level code field separators, country code identifier resolution rules, industry code identifier resolution rules, enterprise code identifier resolution rules, product object code identifier resolution rules, and / or security code identifier resolution rules;
[0097] Among them, corresponding to the aforementioned code identifier definition rules, the first-level code field separator defaults to the single forward slash identifier " / "; the second-level code field separator defaults to the single dot identifier "."; the security code identifier parsing rules are optional.
[0098] The country code identifier resolution rules include a first-level code domain index and a first country code identifier information table; the first country code identifier information table includes multiple first country code identifier information records; each first country code identifier information record includes a first country code identifier field and a first country name field; here, the first-level code domain index is 1 by default;
[0099] The industry code identifier resolution rules include a second-level code domain index and a first industry code identifier information table; the first industry code identifier information table includes multiple first industry code identifier information records; each first industry code identifier information record includes a first industry code identifier field and a first industry name field; here, the second-level code domain index defaults to 2;
[0100] The enterprise code identifier resolution rules include a third-level code domain index and a first enterprise code identifier information table; the first enterprise code identifier information table includes multiple first enterprise code identifier information records; each first enterprise code identifier information record includes a first enterprise code identifier field and a first enterprise name field; here, the third-level code domain index defaults to 3;
[0101] The product object code identifier resolution rules include the number of secondary code fields N and the first product object code identifier information table; the first product object code identifier information table includes N first product object code identifier information records; the first product object code identifier information record includes a first product object index field and a first product object name field; the value range of the first product object index field is 1 to N;
[0102] The security code identification resolution rules include a first security code identification information table; the first security code identification information table includes multiple first security code identification information records; the first security code identification information record includes a first algorithm identification field, a first algorithm key field, and a first algorithm interface field; if the algorithm corresponding to the first algorithm identification field is an algorithm that does not require key intervention, then the corresponding first algorithm key field is empty; here, the first algorithm interface field stores a security code calculation processing interface. The input parameter format of the security code calculation processing interface in this embodiment is string + key, and the output (return) parameter format is security code string; each security code calculation processing interface in this embodiment will perform corresponding security code calculation based on a preset security code algorithm based on the input string. If the security code algorithm corresponding to the current security code calculation processing interface requires key intervention, then the key is the key input to the interface.
[0103] Step 3: Based on the preset code identifier parsing rules, the first parsed data packet is processed to identify the code identifier information to obtain the corresponding first identification information set;
[0104] The first identification information set includes first country name information, first industry name information, first enterprise name information, and first product object information set; the first product object information set includes multiple first product object information sets.
[0105] Specifically, this includes: Step 31, performing string data conversion on the first parsed data packet to obtain the corresponding first string;
[0106] Step 32: Confirm whether the code identifier parsing rules include security code identifier parsing rules; if it is confirmed that they do not include them, set the corresponding first verification result to successful verification; if it is confirmed that they include them, perform security code verification processing on the first string based on the security code identifier parsing rules to generate the corresponding first verification result.
[0107] The first verification result includes verification success and verification failure;
[0108] Specifically, the first string is processed for security code verification based on security code identifier parsing rules to generate the corresponding first verification result, including:
[0109] Step A1: Extract the substring from the first string from the character after the last second-level code field separator to the end character as the corresponding second string, and take the remaining string in the first string excluding the second string as the corresponding third string;
[0110] For example, if the second-level code field separator is ".", the first string is:
[0111] "86.1001.21 / 1.PO0239923023.PRD3223232323.11xxxx",
[0112] So,
[0113] The second string is "11xxxx".
[0114] The third string is "86.1001.21 / 1.PO0239923023.PRD3223232323.";
[0115] Step A2: Extract the specified number of characters from the starting position of the second string as the corresponding fifth algorithm identifier; and extract the strings from the second string excluding the fifth algorithm identifier as the corresponding first security code;
[0116] The default value for specifying the starting position is 2.
[0117] For example, if the starting position specifies a quantity of 2 by default, and the second string is "11xxxx", then the fifth algorithm identifier is "11", and the first security code is "xxxx".
[0118] Step A3: Extract the first algorithm key field and first algorithm interface field from the first security code identifier information record in the first security code identifier information table that matches the fifth algorithm identifier, and use them as the corresponding third key and first algorithm interface; input the third string and third key into the first algorithm interface for security code calculation; and use the security code string returned by the first algorithm interface as the corresponding second security code.
[0119] Step A4: Check whether the first and second security codes match; if the first and second security codes match, set the corresponding first verification result to verification success; if the first and second security codes do not match, set the corresponding first verification result to verification failure.
[0120] Step 33: Identify whether the first verification result is successful; if yes, proceed to step 34; if no, set the first country name information, first industry name information, first enterprise name information and first product object information set to empty, and proceed to step 37.
[0121] Step 34: Based on the first-level code field separator of the code identifier parsing rules, the first string is split into substrings. The substrings in the first string before the first-level code field separator are extracted as the corresponding first prefix string, and the substrings in the first string after the first-level code field separator are extracted as the corresponding first suffix string.
[0122] For example, if the first-level code field separator is " / ", the first string is:
[0123] "86.1001.21 / 1.PO0239923023.PRD3223232323.11xxxx",
[0124] So,
[0125] The first prefix string is "86.1001.21".
[0126] The third string is “1.PO0239923023.PRD3223232323.11xxxx”;
[0127] Step 35: Based on the secondary code field separator, country code identifier resolution rule, industry code identifier resolution rule and enterprise code identifier resolution rule, the first prefix string is processed to identify the country, industry and enterprise code identifier information to obtain the corresponding first country name information, first industry name information and first enterprise name information;
[0128] Specifically, this includes: Step 351, extracting substrings from the first prefix string based on the second-level code field separators, extracting the substring from the start character to the character before the first second-level code field separator as the corresponding first substring, and assigning a first substring index set to 1 to the first substring; extracting the substring from the end character of the first second-level code field separator to the character before the second second-level code field separator as the second first substring, and assigning a first substring index set to 2 to the second first substring; and so on, until the substring from the end character of the last second-level code field separator to the end character of the first prefix string is extracted as the last first substring and a corresponding first substring index is assigned and set for the last first substring;
[0129] For example, if the second-level code field separator is "." and the first prefix string is "86.1001.21", then, through the current step, we can obtain 3 pairs of first substring + first substring index, which are:
[0130] The first substring is "86", and its index is 1.
[0131] The second first substring is "1001", and the corresponding first substring index is 2.
[0132] The third first substring is "21", and the corresponding first substring index is 3;
[0133] Step 352: Take the first substring corresponding to the first substring index that matches the first level code field index of the country code identifier resolution rule as the corresponding first country code identifier; and extract the first country name field of the first country code identifier information record that matches the first country code identifier in the first country code identifier information table of the country code identifier resolution rule as the corresponding first country name information.
[0134] For example, if the first-level code field index of the country code identifier resolution rule is 1, then the first country code identifier is the first substring '86'; by querying the first country code identifier information table through the first country code identifier '86', the corresponding first country name information can be found;
[0135] Step 353: Take the first substring corresponding to the first substring index that matches the second-level code field index of the industry code identifier parsing rule as the corresponding first industry code identifier; and extract the first industry name field of the first industry code identifier information record that matches the first industry code identifier in the first industry code identifier information table of the industry code identifier parsing rule as the corresponding first industry name information.
[0136] For example, if the index of the second-level code field in the industry code identifier resolution rule is 2, then the first industry code identifier is the second first substring '1001'; by querying the first industry code identifier information table through the first industry code identifier '1001', the corresponding first industry name information can be found;
[0137] Step 354: Take the first substring corresponding to the first substring index that matches the third-level code field index of the enterprise code identifier resolution rule as the corresponding first enterprise code identifier; and extract the first enterprise name field of the first enterprise code identifier information record that matches the first enterprise code identifier in the first enterprise code identifier information table of the enterprise code identifier resolution rule as the corresponding first enterprise name information.
[0138] For example, if the index of the third-level code field in the enterprise code identifier resolution rule is 3, then the first enterprise code identifier is the third first substring '21'; by querying the first enterprise code identifier information table through the first enterprise code identifier '21', the corresponding first enterprise name information can be found;
[0139] Step 355: Output the obtained first country name information, first industry name information, and first enterprise name information as the corresponding processing results;
[0140] Step 36: Based on the secondary code field separator of the code identifier parsing rule and the product object code identifier parsing rule, perform product object code identifier information recognition processing on the first suffix string to obtain the corresponding first product object information set;
[0141] Specifically, this includes: Step 361, extracting substrings from the first suffix string based on the number N of the second-level code fields according to the second-level code field separators and the product object code identifier parsing rules. The substring from the starting character to the character preceding the first second-level code field separator in the first suffix string is extracted as the corresponding first second substring, and a second substring index specifically set to 1 is assigned to the first second substring. Similarly, the substring from the character following the first second-level code field separator to the character preceding the second second-level code field separator in the first suffix string is extracted as the second second substring, and a second substring index specifically set to 2 is assigned to the second second substring. This process continues until the substring from the character following the (N-1)th second-level code field separator to the character preceding the Nth second-level code field separator in the first prefix string is extracted as the Nth second substring, and a second substring index specifically set to N is assigned to the Nth second substring.
[0142] For example, if the second-level code field separator is ".", the number of second-level code fields is N=3, and the first suffix string is "1.PO0239923023.PRD3223232323.11xxxx", then, through the current step, we can obtain 3 pairs of second substrings + second substring indices, which are:
[0143] The first second substring is "1", and the corresponding index of the second substring is 1.
[0144] The second substring is "PO0239923023", and its index is 2.
[0145] The third second substring is "PRD3223232323", and the corresponding index of the second substring is 3.
[0146] Step 362: Extract the first product object name field from the first product object code identifier information record in the first product object code identifier information table of the product object code identifier parsing rules, where the first product object index field matches each second substring index, and use it as the corresponding first product object name;
[0147] For example, suppose the first product object code identification information table includes N=3 first product object code identification information records, which are as follows:
[0148] First Product Object Code Identification Information Record 1: The first product object index field is 1, and the first product object name field is "packaging type".
[0149] Record 2 of the first product object code identification information: The index field of the first product object is 2, and the name field of the first product object is "order number".
[0150] First Product Object Code Identification Information Record 3: The index field of the first product object is 3, and the name field of the first product object is "production batch number";
[0151] After processing in the current step, we can obtain the first product object names corresponding to the 1st, 2nd, and 3rd second substrings respectively. That is, the first product object name corresponding to the 1st second substring "1" is "Packaging Type", the first product object name corresponding to the 2nd second substring "PO0239923023" is "Order Number", and the first product object name corresponding to the 3rd second substring "PRD3223232323" is "Production Batch Number".
[0152] Step 363: The first product object information is composed of the name of each first product object and the corresponding second substring; and the first product object information is composed of all the obtained first product object information.
[0153] For example, given that the first product object name corresponding to the first second substring "1" is "Packaging Type", the first product object name corresponding to the second second substring "PO0239923023" is "Order Number", and the first product object name corresponding to the third second substring "PRD3223232323" is "Production Batch Number",...
[0154] Therefore, the first product object information set obtained after processing in the current step consists of three first product object information sets, namely:
[0155] The first product object information 1 is "Packaging Type" + "1".
[0156] The first product object information 2 is "order number" + "PO0239923023".
[0157] The first product object information 3 is "Production Batch Number" + "PRD3223232323";
[0158] Step 37: The first set of identification information is composed of the first set of first country name information, first industry name information, first enterprise name information and first product object information, and then output.
[0159] In summary, by using steps 1-3 above, service operators can identify SIM card packaging supply chain labels from different operators or card manufacturers based on a fixed set of rules. This eliminates the need to customize and maintain multiple versions of information identification and processing procedures based on the different SIM card packaging labeling rules for each operator and card manufacturer. This naturally helps service operators reduce the complexity of supply chain management and the cost of information processing.
[0160] Figure 2 This is a schematic diagram of an electronic device provided in Embodiment 2 of the present invention. This electronic device can be the aforementioned terminal device or server, or it can be a terminal device or server connected to the aforementioned terminal device or server that implements the method of the embodiments of the present invention. Figure 2 As shown, the electronic device may include: a processor 301 (e.g., CPU), a memory 302, and a transceiver 303; the transceiver 303 is coupled to the processor 301, and the processor 301 controls the transmission and reception operations of the transceiver 303. The memory 302 may store various instructions for performing various processing functions and implementing the processing steps described in the foregoing method embodiments. Preferably, the electronic device involved in the embodiments of the present invention further includes: a power supply 304, a system bus 305, and a communication port 306. The system bus 305 is used to realize communication connections between components. The communication port 306 is used for communication between the electronic device and other peripherals.
[0161] exist Figure 2 The system bus 305 mentioned can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This system bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 2 The symbol is represented by a single thick line, but this does not imply that there is only one bus or one type of bus. The communication interface is used to enable communication between the database access device and other devices (e.g., clients, read-write libraries, and read-only libraries). Memory may include random access memory (RAM) and may also include non-volatile memory, such as at least one disk drive.
[0162] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), graphics processing units (GPUs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0163] It should be noted that the embodiments of the present invention also provide a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the methods provided in the above embodiments.
[0164] This invention also provides a chip for executing instructions, which is used to perform the processing steps described in the foregoing method embodiments.
[0165] This invention provides a processing method, electronic device, and computer-readable storage medium for identifying information from SIM card supply chain tags. The invention presents a unified code identifier definition rule and tag data encapsulation rule, requiring each operator or card vendor to pre-encapsulate code identifier information conforming to the code identifier definition rule into corresponding tag data before issuing SIM card packaging. A corresponding supply chain tag is then generated based on this tag data and affixed to the SIM card packaging. When the SIM card packaging enters various stages of the operator's distribution chain, the tag scanning information of the packaging supply chain tag is parsed according to the data parsing process corresponding to the tag data encapsulation rule to obtain the corresponding parsing data packet. Furthermore, the parsing data packet is then used to identify the code identifier information according to the code identifier definition rule to obtain the corresponding code identifier information set. Through this invention, operators only need one set of rules to identify SIM card packaging supply chain tags from different operators or card vendors, reducing both the complexity and the information processing costs of supply chain management.
[0166] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0167] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented in hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0168] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for processing information identification from SIM card supply chain tags, characterized in that, The method includes: The information on the first supply chain label on the first SIM card logistics packaging is scanned to obtain the corresponding first scan information; the first scan information includes a first packaging mode and a first packaging data packet; the first packaging mode includes a first mode, a second mode, a third mode, and a fourth mode; The first encapsulated data packet is parsed according to the first encapsulation mode to obtain the corresponding first parsed data packet; Based on preset code identification parsing rules, the first parsed data packet is processed to identify code identification information to obtain a corresponding first identification information set; the first identification information set includes first country name information, first industry name information, first enterprise name information, and a first product object information set; the first product object information set includes multiple first product object information sets; The code identifier resolution rules include first-level code field separators, second-level code field separators, country code identifier resolution rules, industry code identifier resolution rules, enterprise code identifier resolution rules, product object code identifier resolution rules, and / or security code identifier resolution rules; the first-level code field separator defaults to the single forward slash identifier " / "; the second-level code field separator defaults to the single dot identifier "."; the security code identifier resolution rules are optional. The country code identifier resolution rule includes a first-level code domain index and a first country code identifier information table; the first country code identifier information table includes multiple first country code identifier information records; the first country code identifier information record includes a first country code identifier field and a first country name field; The industry code identifier resolution rule includes a second-level code domain index and a first industry code identifier information table; the first industry code identifier information table includes multiple first industry code identifier information records; the first industry code identifier information record includes a first industry code identifier field and a first industry name field; The enterprise code identifier resolution rules include a third-level code domain index and a first enterprise code identifier information table; the first enterprise code identifier information table includes multiple first enterprise code identifier information records; the first enterprise code identifier information record includes a first enterprise code identifier field and a first enterprise name field; The product object code identifier parsing rule includes the number of secondary code fields N and a first product object code identifier information table; the first product object code identifier information table includes N first product object code identifier information records; the first product object code identifier information record includes a first product object index field and a first product object name field; the value of the first product object index field ranges from 1 to N; The security code identifier parsing rules include a first security code identifier information table; the first security code identifier information table includes multiple first security code identifier information records; the first security code identifier information record includes a first algorithm identifier field, a first algorithm key field, and a first algorithm interface field; if the algorithm corresponding to the first algorithm identifier field is an algorithm that does not require key intervention, then the corresponding first algorithm key field is empty.
2. The processing method for information identification of SIM card supply chain tags according to claim 1, characterized in that, The step of scanning the first supply chain label on the first SIM card's logistics packaging to obtain the corresponding first scan information specifically includes: The label type of the first supply chain label on the first SIM card logistics packaging is identified to obtain the corresponding first label type; the first label type includes barcode label type, QR code label type, RFID label type and NFC label type; When the first label type is a barcode label type, the first supply chain label is scanned using a preset barcode scanning device to obtain the corresponding first scan information; When the first label type is a QR code label type, the first supply chain label is scanned using a preset QR code scanning device to obtain the corresponding first scan information. When the first tag type is an RFID tag type, the first supply chain tag is processed by a preset RFID tag reading device to obtain the corresponding first RFID tag data, and the first RFID tag data is used as the corresponding first scanning information. When the first tag type is an NFC tag type, the first supply chain tag is processed by an NFC tag reading device based on a preset NFC tag reading device to obtain the corresponding first NFC tag data, and the first NFC tag data is used as the corresponding first scanning information.
3. The processing method for information identification of SIM card supply chain tags according to claim 1, characterized in that, The step of parsing the first encapsulated data packet according to the first encapsulation mode to obtain the corresponding first parsed data packet specifically includes: When the first encapsulation mode is the first mode, the first encapsulated data packet is used as the corresponding first parsed data packet; When the first encapsulation mode is the second mode, the corresponding first key identifier, first algorithm identifier, and first encrypted data are extracted from the first encapsulated data packet; and the first encrypted data is decrypted using the first key corresponding to the first key identifier based on the first encryption / decryption algorithm corresponding to the first algorithm identifier to obtain the corresponding first decrypted data; and the first decrypted data is used as the corresponding first parsing data packet. When the first encapsulation mode is the third mode, the corresponding second algorithm identifier, first plaintext data, and first check code data are extracted from the first encapsulated data packet; and the corresponding second check code data is obtained by performing check code calculation based on the first plaintext data according to the first check code algorithm corresponding to the second algorithm identifier; and the first and second check code data are identified as matching; if they match, the first plaintext data is used as the corresponding first parsing data packet; if they do not match, the corresponding first parsing data packet is set to empty. When the first encapsulation mode is the fourth mode, the corresponding second key identifier, third algorithm identifier, fourth algorithm identifier, second encrypted data, and third checksum data are extracted from the first encapsulated data packet; and the second encrypted data is decrypted using the second key corresponding to the second key identifier based on the second encryption / decryption algorithm corresponding to the third algorithm identifier to obtain the corresponding second decrypted data; and the second checksum is calculated based on the second decrypted data using the second checksum algorithm corresponding to the fourth algorithm identifier to obtain the corresponding fourth checksum data; and the matching of the third and fourth checksum data is identified; if they match, the second decrypted data is used as the corresponding first parsed data packet; if they do not match, the corresponding first parsed data packet is set to empty.
4. The processing method for information identification of SIM card supply chain tags according to claim 1, characterized in that, The step of performing code identification information recognition processing on the first parsed data packet based on preset code identification parsing rules to obtain the corresponding first identification information set specifically includes: Step 51: Perform string data conversion on the first parsed data packet to obtain the corresponding first string; Step 52: Confirm whether the security code identifier parsing rule is included in the code identifier parsing rule; if it is confirmed that it is not included, set the corresponding first verification result to successful verification; if it is confirmed that it is included, perform security code verification processing on the first string based on the security code identifier parsing rule to generate the corresponding first verification result; the first verification result includes successful verification and failed verification. Step 53: Identify whether the first verification result is successful; if yes, proceed to step 54; if no, set the first country name information, the first industry name information, the first enterprise name information, and the first product object information set to empty, and proceed to step 57. Step 54: Based on the first-level code field separator of the code identifier parsing rule, the first string is split into substrings. The substrings in the first string before the first-level code field separator are extracted as the corresponding first prefix string, and the substrings in the first string after the first-level code field separator are extracted as the corresponding first suffix string. Step 55: Based on the second-level code field separator of the code identifier parsing rule, the country code identifier parsing rule, the industry code identifier parsing rule, and the enterprise code identifier parsing rule, the first prefix string is processed to identify the country, industry, and enterprise code identifier information to obtain the corresponding first country name information, first industry name information, and first enterprise name information; Step 56: Based on the second-level code field separator of the code identifier parsing rule and the product object code identifier parsing rule, perform product object code identifier information recognition processing on the first suffix string to obtain the corresponding first product object information set; Step 57: The first identification information set is composed of the obtained first country name information, first industry name information, first enterprise name information and first product object information set, and then output.
5. The processing method for information identification of SIM card supply chain tags according to claim 4, characterized in that, The step of performing security code verification processing on the first string based on the security code identifier parsing rule to generate the corresponding first verification result specifically includes: Extract the substring from the first string from the character after the last second-level code field separator to the end character as the corresponding second string, and take the remaining string in the first string other than the second string as the corresponding third string; Extract a specified number of characters from the second string at the starting position to serve as the corresponding fifth algorithm identifier; and extract the remaining characters from the second string excluding the fifth algorithm identifier to serve as the corresponding first security code; the specified number of characters at the starting position is 2 by default; The first algorithm key field and the first algorithm interface field of the first security code identifier information record that matches the fifth algorithm identifier in the first security code identifier information table of the security code identifier parsing rule are extracted as the corresponding third key and first algorithm interface; the third string and the third key are input into the first algorithm interface for security code calculation processing; and the security code string returned by the first algorithm interface is used as the corresponding second security code; The system identifies whether the first and second security codes match; if the first and second security codes match, the corresponding first verification result is set to verification successful; if the first and second security codes do not match, the corresponding first verification result is set to verification failed.
6. The processing method for information identification of SIM card supply chain tags according to claim 4, characterized in that, The process of identifying and processing the first prefix string based on the second-level code field separator, the country code identifier resolution rule, the industry code identifier resolution rule, and the enterprise code identifier resolution rule to obtain the corresponding first country name information, first industry name information, and first enterprise name information specifically includes: Based on the second-level code field separators, the first prefix string is segmented and substrings are extracted. The substring from the start character to the character before the first second-level code field separator is extracted as the first substring, and a first substring index of 1 is assigned to it. The substring from the end character to the beginning character is extracted as the second substring, and a first substring index of 2 is assigned to it. This process continues until the substring from the end character to the end character is extracted as the last substring, and a first substring index is assigned to it. The first substring corresponding to the first substring index that matches the first level code domain index of the country code identifier resolution rule is taken as the corresponding first country code identifier; and the first country name field of the first country code identifier information record that matches the first country code identifier in the first country code identifier information table of the country code identifier resolution rule is extracted as the corresponding first country name information. The first substring corresponding to the first substring index that matches the second-level code field index of the industry code identifier parsing rule is taken as the corresponding first industry code identifier; and the first industry name field of the first industry code identifier information record that matches the first industry code identifier in the first industry code identifier information table of the industry code identifier parsing rule is extracted as the corresponding first industry name information. The first substring corresponding to the first substring index that matches the third-level code field index of the enterprise code identifier parsing rule is taken as the corresponding first enterprise code identifier; and the first enterprise name field of the first enterprise code identifier information record that matches the first enterprise code identifier in the first enterprise code identifier information table of the enterprise code identifier parsing rule is extracted as the corresponding first enterprise name information. The obtained first country name information, first industry name information, and first enterprise name information are output as the corresponding processing results.
7. The processing method for information identification of SIM card supply chain tags according to claim 4, characterized in that, The process of identifying and processing the product object code identifier information of the first suffix string based on the second-level code field separator and the product object code identifier parsing rule to obtain the corresponding first product object information set specifically includes: Based on the number N of the second-level code fields according to the second-level code field separators and the product object code identifier parsing rules, the first suffix string is segmented and substrings are extracted. The substring from the starting character to the character before the first second-level code field separator is extracted as the corresponding first second substring, and a second substring index of 1 is assigned to the first second substring. The substring from the character after the first second-level code field separator to the character before the second second-level code field separator is extracted as the second second substring, and a second substring index of 2 is assigned to the second second substring. This process continues until the substring from the character after the (N-1)th second-level code field separator to the character before the Nth second-level code field separator is extracted as the Nth second substring, and a second substring index of N is assigned to the Nth second substring. Extract the first product object name field from the first product object code identifier information record in the first product object code identifier information table of the product object code identifier parsing rule that matches the first product object index field with each of the second substring indices, and use it as the corresponding first product object name; The first product object information is composed of each first product object name and the corresponding second substring; and the first product object information is composed of all the obtained first product object information.
8. An electronic device, characterized in that, include: Memory, processor, and transceiver; The processor is configured to be coupled to the memory, read and execute instructions in the memory to implement the method according to any one of claims 1-7; The transceiver is coupled to the processor, and the processor controls the transceiver to send and receive messages.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a computer, cause the computer to perform the method described in any one of claims 1-7.
Citation Information
Patent Citations
Industrial internet identifier processing method and device
CN113553305A