Data processing method, device and electronic equipment for electronic tags
The cloud server generates the instruction set template for electronic tags and combines project feature information for encryption processing, which solves the problem of low efficiency of RFID tag chip burning in the existing technology, and realizes an efficient solution that is compatible with multi-dimensional differentiated production line burning.
Patent Information
- Application Number
- CN202210693246.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-17
- Publication Date
- 2025-05-09
- Estimated Expiration
- 2042-06-17
AI Technical Summary
Existing RFID tag chip manufacturers need to burn different instruction sets for each project's RFID tag chip, which is not compatible with multi-dimensional differentiated production line burns, and are less efficient.
The cloud server generates an instruction set template based on the general tag attribute information of the electronic tag, encrypts the command key based on the project feature information, and processes the instruction set template, root key and project feature information to generate an electronic tag instruction set suitable for multi-dimensional differentiated production lines.
It realizes compatible multi-dimensional differentiated production line recording, improves the efficiency of chip recording, and manages electronic tag instruction set recording for multiple projects through cloud servers.
Smart Images

Figure CN115018035B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of cloud computing, and in particular to a data processing method, device and electronic device for electronic tags. Background Art
[0002] Radio Frequency Identification (RFID) is a wireless communication technology that can identify specific targets and read and write related data through radio signals without establishing mechanical or optical contact between the identification system and the specific target. Electronic tags, also known as RFID tags, are an application form of RFID technology. The electronic tag and the reader realize spatial (contactless) coupling of radio frequency signals through coupling elements; in the coupling channel, energy transfer and data exchange are realized according to the timing relationship. Electronic tags are durable and can work in harsh temperatures and environments.
[0003] However, different RFID tags have different production lines, different chips, and different protocols. To meet the needs of different projects, RFID tag chip manufacturers need to burn different instruction sets for the RFID tag chips of each project separately. This is not compatible with multi-dimensional production line burning and is inefficient. Summary of the invention
[0004] The embodiments of the present application provide a data processing method, device and electronic device for an electronic tag, so as to be compatible with multi-dimensional differentiated production line burning and improve the efficiency of chip burning.
[0005] In a first aspect, an embodiment of the present application provides a data processing method for an electronic tag, comprising:
[0006] Generate an instruction set template of the electronic tag according to the general tag attribute information of the electronic tag;
[0007] Encryption processing is performed based on the project characteristic information of the project corresponding to the electronic tag to obtain the root key of the project;
[0008] The instruction set template, the root key and the project characteristic information are processed to generate the instruction set of the electronic tag. The instruction set is used for the electronic tag to realize the requirements corresponding to the project.
[0009] In a second aspect, an embodiment of the present application provides a data processing method for an electronic tag, comprising:
[0010] Obtain the instruction set template of the electronic tag, the root key of the project corresponding to the electronic tag, and the project feature information of the project; the instruction set template is generated by the cloud server based on the general attribute information of the electronic tag;
[0011] Parse the instruction set template to obtain a common instruction set in the instruction set of the electronic tag;
[0012] Based on the root key and the item characteristic information, a personalized instruction set in the instruction set of the electronic tag is obtained.
[0013] In a third aspect, an embodiment of the present application provides a data processing device for an electronic tag, comprising:
[0014] A generating module, used for generating an instruction set template of the electronic tag according to the general tag attribute information of the electronic tag;
[0015] A first processing module, configured to perform encryption processing based on the project characteristic information of the project corresponding to the electronic tag to obtain a root key of the project;
[0016] The second processing module is used to process the instruction set template, the root key and the project characteristic information to generate an instruction set of the electronic tag, and the instruction set is used for the electronic tag to realize the requirements corresponding to the project.
[0017] In a fourth aspect, an embodiment of the present application provides a data processing device for an electronic tag, comprising:
[0018] The acquisition module is used to acquire the instruction set template of the electronic tag, the root key of the project corresponding to the electronic tag, and the project feature information of the project; the instruction set template is generated by the cloud server according to the general attribute information of the electronic tag;
[0019] A parsing module, used for parsing the instruction set template to obtain a common instruction set in the instruction set of the electronic tag;
[0020] The generation module is used to obtain a personalized instruction set in the instruction set of the electronic tag based on the root key and the project characteristic information.
[0021] In a fifth aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory, and the processor implements the method provided in any embodiment of the present application when executing the computer program.
[0022] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the method provided in any embodiment of the present application is implemented.
[0023] Compared with the prior art, this application has the following advantages:
[0024] The data processing method, device and electronic device for electronic tags provided in the embodiments of the present application are as follows: the cloud server generates an instruction set template for the electronic tag based on the general tag attribute information of the electronic tag; performs encryption processing based on the project feature information of the project corresponding to the electronic tag to obtain the root key of the project; and processes the instruction set template, the root key and the project feature information to generate an instruction set for the electronic tag, and the instruction set is used for the electronic tag to implement the requirements corresponding to the project. In the technical solution of the present application, the cloud server generates an instruction set template based on the general tag attribute information, which can meet the general requirements of multiple projects for the electronic tag instruction set. Taking the project feature information as a consideration for generating the electronic tag instruction set can meet the differentiated requirements of the project, thereby being compatible with multi-dimensional differentiated production line burning. The cloud server uniformly manages the instruction set burning of the electronic tags of multiple projects, which can improve the efficiency of chip burning.
[0025] The above summary is for illustrative purposes only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments and features described above, further aspects, embodiments and features of the present application will be readily apparent by reference to the accompanying drawings and the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments disclosed in the present application and should not be regarded as limiting the scope of the present application.
[0027] Figure 1 A schematic diagram of a system architecture of a data processing method for an electronic tag provided in an embodiment of the present application;
[0028] Figure 2 A flowchart of a data processing method for an electronic tag provided in an embodiment of the present application;
[0029] Figure 3 A schematic diagram of a key derivation process provided by an embodiment of the present application;
[0030] Figure 4 A flowchart of a data processing method for an electronic tag provided in an embodiment of the present application;
[0031] Figure 5 A schematic diagram of a data processing device for an electronic tag provided in an embodiment of the present application;
[0032] Figure 6 A schematic diagram of a data processing device for an electronic tag provided in an embodiment of the present application;
[0033] Figure 7 A block diagram of an electronic device used to implement an embodiment of the present application. DETAILED DESCRIPTION
[0034] In the following, only some exemplary embodiments are briefly described. As those skilled in the art will appreciate, the described embodiments may be modified in various ways without departing from the spirit or scope of the present application. Therefore, the drawings and descriptions are considered to be exemplary and non-restrictive in nature.
[0035] To facilitate understanding of the technical solutions of the embodiments of the present application, the relevant technologies of the embodiments of the present application are described below. The following related technologies can be arbitrarily combined with the technical solutions of the embodiments of the present application as optional solutions, and they all belong to the protection scope of the embodiments of the present application.
[0036] In order to more clearly demonstrate the data processing method for electronic tags provided in the embodiments of the present application, an application scenario that can be used to implement the method is first introduced.
[0037] Figure 1 Schematic diagram of the system architecture of the data processing method for electronic tags provided in one embodiment of the present application. Figure 1As shown, the cloud server includes multiple distributed microservices, each of which is deployed on a physical server, and the multiple distributed microservices together constitute an encrypted RFID security cloud service. The cloud server can be a public cloud, which provides a unified RFID security service. The terminal devices of various electronic tag manufacturers are registered in the public cloud to obtain their respective access user IDs. The cloud server generates an instruction set template for the electronic tag according to the universal tag attribute information of the electronic tag, such as the APDU (Application Protocol Data Unit) instruction template shown in the figure. The encryption machine in the cloud server performs encryption processing based on the project feature information of the project corresponding to the electronic tag to obtain the root key of the project, and stores it in the encryption card. The instruction set template, the encryption card and the project feature information are sent to the terminal devices of multiple electronic tag manufacturers, such as RFID manufacturer 1, RFID manufacturer, and RFID manufacturer as shown in the figure. The terminal device uses the parsing SDK (Software Development Kit) issued by the cloud server to parse the encryption card to obtain the root key of the project, parse the instruction set template, and obtain the universal instruction set in the instruction set of the electronic tag, wherein some instructions may vary depending on the electronic tag, and this part is handled as a placeholder by a universal wildcard. Based on the root key and the characteristic information of the electronic tag in the project characteristic information (the personalized RFID data shown in the figure), the personalized instruction set in the instruction set of the electronic tag is obtained, including the user account, subkey, personalized data, etc. of the electronic tag. The wildcards in the general instruction set are uniformly replaced by the personalized instruction set, that is, the instruction set to be burned into the chip is obtained, and the instruction set is burned into the chip of the electronic tag (the production line write data shown in the figure).
[0038] In another implementation, the cloud server and the terminal device of the electronic tag manufacturer are connected through the network, and the cloud server generates the general instruction set and personalized instruction set of the electronic tag, which are sent to the terminal device for burning. Specifically, the cloud server generates the instruction set template of the electronic tag according to the general tag attribute information of the electronic tag. The project identifier in the project feature information is encrypted by an encryption algorithm to obtain the root key of the project. The project identifier and the tag identifier are encrypted by the root key to obtain the subkey of the electronic tag. The instruction set template is parsed to obtain the general instruction set in the instruction set; some instructions will be different for different electronic tags, and this part is handled by general wildcards as placeholders. Based on the subkey and the feature information of the electronic tag in the project feature information, the personalized instruction set in the instruction set is obtained, and the wildcards in the general instruction set are uniformly replaced by the personalized instruction set, that is, the instruction set to be burned into the chip is finally obtained, and sent to the terminal devices of multiple electronic tag manufacturers for instruction set burning.
[0039] The present application embodiment provides a data processing method for an electronic tag. Figure 2 1 is a flow chart of a data processing method for an electronic tag according to an embodiment of the present application. The method can be applied to a data processing device for an electronic tag, which can be deployed in a server or other processing device. In some possible implementations, the method can also be implemented by a processor calling a computer-readable instruction stored in a memory. Figure 2 As shown, the method includes:
[0040] Step S201: Generate an instruction set template for the electronic tag according to the general tag attribute information of the electronic tag.
[0041] The method in this embodiment can be deployed in a cloud server, and the common tag attribute information of the electronic tag can be the common electronic tag attribute information of multiple projects, or the common attribute information of multiple electronic tags applicable to one project. The common electronic tag attribute information for multiple projects can include at least one of the following: chip brand, chip model, RFID protocol, etc. The common tag attribute information for one project can include at least one of the following: chip brand, chip model, RFID protocol, the tag personalized data requirements of the project, project-specific burning requirements, etc.
[0042] Step S202, encrypting the project feature information of the project corresponding to the electronic tag to obtain a root key of the project.
[0043] The project characteristic information may include project identification, project customization requirements, etc., and may also include personalized data corresponding to each electronic tag, such as product serial number, place of origin, material information, etc.
[0044] The cloud server can use a hardware encryption machine to encrypt the information representing the uniqueness of each project in the feature information of the project and generate the root key of the project.
[0045] Step S203: Process the instruction set template, the root key and the project characteristic information to generate an instruction set of the electronic tag. The instruction set is used for the electronic tag to realize the requirements corresponding to the project.
[0046] The server can generate the instruction set of the electronic label through the instruction set template, root key and project characteristic information, and send it to the terminal device of the electronic label manufacturer for instruction set burning. Alternatively, the instruction set template, root key and project characteristic information can be sent to the terminal device, and the terminal device can generate the instruction set of the electronic label.
[0047] Different projects have different requirements, so the instruction sets burned into the chip of the electronic tag are different. The instruction set is a collection of instructions for controlling the chip in the electronic tag. After the instruction set is burned into the chip of the electronic tag, the electronic tag production is completed. When using the electronic tag, the electronic tag is scanned by the device, the instructions in the instruction set are executed, the data stored in the electronic tag is decrypted, and information such as the chip brand and chip model are obtained, as well as information on the product corresponding to the project, such as origin and material information.
[0048] The data processing method for electronic tags provided in the embodiment of the present application is that the cloud server generates an instruction set template based on the general tag attribute information, which can meet the general requirements of multiple projects for the electronic tag instruction set. The project feature information is used as a consideration for generating the electronic tag instruction set, which can meet the differentiated requirements of the projects, thereby being compatible with multi-dimensional differentiated production line burning. The cloud server uniformly manages the instruction set burning of electronic tags of multiple projects, which can improve the efficiency of chip burning.
[0049] The specific implementation of the instruction set for generating electronic tags is shown in the following embodiment:
[0050] In one possible implementation, step S203 processes the instruction set template, the root key, and the project characteristic information to generate the instruction set of the electronic tag, including: step S2031, generating the subkey of the electronic tag based on the root key, the project characteristic information, and the tag identifier of the electronic tag; step S2032, generating the instruction set of the electronic tag according to the instruction set template, the subkey, and the project characteristic information.
[0051] In actual applications, the root key of the project is used to derive the unique identification of the electronic tag and the project characteristic information to obtain the subkey of the electronic tag. The subkey of the electronic tag corresponds to the electronic tag one by one. Among them, the cloud server can obtain the unique identification of the electronic tag from the user terminal. Password derivation refers to a string of ciphertext data obtained by encrypting a string of data factors with a root key as a new key. As long as the data factor does not repeat the last calculated new key value, it will not be repeated. The encryption algorithm can be AES (Advanced Encryption Standard) algorithm, 3DES (Triple Data Encryption Standard) algorithm, etc. The cloud server generates the instruction set of the electronic tag based on the instruction set template, the subkey of the electronic tag and the project characteristic information, and sends it to the user terminal for chip burning.
[0052] In this embodiment, the cloud server directly generates an instruction set for the electronic tag and sends it to the user terminal. The cloud server can achieve compatibility with multi-dimensional differentiated production line burning and improve the efficiency of chip burning.
[0053] The specific implementation of step S2032 is shown in the following embodiment:
[0054] In one possible implementation, an instruction set for an electronic tag is generated based on an instruction set template, a subkey, and project characteristic information, including: parsing the instruction set template to obtain a general instruction set in the instruction set; and obtaining a personalized instruction set in the instruction set based on the characteristic information of the electronic tag in the subkey and project characteristic information.
[0055] In actual applications, the cloud server parses the instruction set template to obtain the general instruction set in the instruction set. The general instruction set is a general instruction set for electronic tags of one or more projects. Some instructions may vary depending on the electronic tag, such as the user account, subkey, personalized data, etc. of the electronic tag. This part is handled by a general wildcard as a placeholder. The subkey and the feature information of the electronic tag in the project feature information (for example, the personalized data of the electronic tag) are used as variables to generate a personalized instruction set, and the wildcard in the general instruction set is replaced to obtain the instruction set to be burned into the chip of the electronic tag.
[0056] The specific implementation method of the cloud server generating the root key of the project is shown in the following embodiment:
[0057] In a possible implementation, step S202 encrypts the project characteristic information of the project corresponding to the electronic tag to obtain the root key of the project, including: encrypting the project identifier in the project characteristic information using an encryption algorithm to obtain the root key of the project.
[0058] In actual applications, the cloud server can use the unified root key and encryption algorithm of the cloud service to encrypt the project identifier, and use the project identifier as a derivation factor to obtain the root key of the project. The project identifier corresponds to the project one-to-one. The encryption algorithm can be the AES (Advanced Encryption Standard) algorithm, the 3DES (Triple Data Encryption Standard) algorithm, etc. The unified root key of the cloud service is pre-configured by the cloud server.
[0059] The specific implementation method of the cloud server generating the subkey of the electronic tag is shown in the following embodiment:
[0060] In a possible implementation, a subkey of the electronic tag is generated based on a root key, project feature information and a tag identifier of the electronic tag, including: using the root key to encrypt the project identifier and the tag identifier in the project feature information to obtain the subkey of the electronic tag.
[0061] Specifically, the combined string of the project identifier and the tag identifier is used as a derivation factor, and the root key of the project and the derivation factor are used to derive the key to obtain the subkey of the electronic tag, and the subkey and the electronic tag have a one-to-one correspondence. In this embodiment, the subkey of the electronic tag is dynamically derived from the project root key to ensure the high security of one chip and one key.
[0062] In one possible implementation, the instruction set template, the root key and the project characteristic information are processed to generate the instruction set of the electronic tag, including: sending the instruction set template, the root key and the project characteristic information to the terminal device of the electronic tag manufacturer, so that the terminal device parses the instruction set template to obtain the general instruction set in the instruction set of the electronic tag, and obtains the personalized instruction set in the instruction set of the electronic tag based on the characteristic information of the electronic tag in the root key and the project characteristic information.
[0063] In actual applications, in addition to generating the instruction set of the electronic tag through the cloud server, the instruction set template, root key and project feature information can also be sent to the terminal device of the electronic tag manufacturer. The terminal device uses the parsing SDK to parse the instruction set template to obtain the general instruction set in the instruction set of the electronic tag, and uses the root key to encrypt the project identifier and the tag identifier to obtain the subkey of the electronic tag. The subkey and the feature information of the electronic tag in the project feature information (for example, the personalized data of the electronic tag, etc.) are used as variables to generate a personalized instruction set, replace the wildcard in the general instruction set, and thus obtain the instruction set to be burned into the chip of the electronic tag.
[0064] In a possible implementation, the method further includes: performing an XOR operation on the root key of the project to obtain multiple key components of the root key, and sending them to a terminal device of the electronic label manufacturer so that the terminal device synthesizes the multiple key components to obtain the root key.
[0065] In actual applications, in addition to directly sending the project's root key to the terminal device, the cloud server can also process the root key, perform an XOR operation on the key and a random data to obtain multiple key components, and send them to the electronic tag manufacturer's terminal device. The terminal device synthesizes the multiple key components to obtain the root key, and then uses the root key and encryption algorithm to obtain the sub-key of each electronic tag.
[0066] Figure 3 is a schematic diagram of a key derivation process according to an embodiment of the present application. Figure 3 As shown, in this embodiment, two key derivation operations are performed. The cloud server uses the unified root key of the cloud service and takes the project identifier of each project as the derivation factor to derive the subkey of each project, such as project subkey k1, project subkey k2, and project subkey k3 as shown in the figure. Then, using the project subkey, the project identifier (project ID) and the tag identifier (tag ID) of the electronic tag are used as derivation factors to obtain the key of the electronic tag. Figure 3 As shown, using key k1, taking project ID and tag ID as derivation factors, since the tag IDs of tags A, B, and C are different, the keys Ak1, Bk1, and Ck1 corresponding to tags A, B, and C are obtained respectively; using key k2, taking project ID and tag ID as derivation factors, the keys Xk2, Yk2, and Zk2 corresponding to tags X, Y, and Z are obtained respectively; using key k3, taking project ID and tag ID as derivation factors, the keys Uk3, Vk3, and Wk3 corresponding to tags U, V, and W are obtained respectively.
[0067] In addition, the present application also provides a data processing method for an electronic tag. Figure 4 1 is a flow chart of a data processing method for an electronic tag according to an embodiment of the present application. The method can be applied to a data processing device for an electronic tag, which can be deployed in a terminal device or other processing device. In some possible implementations, the method can also be implemented by a processor calling a computer-readable instruction stored in a memory. Figure 4 As shown, the method includes:
[0068] Step S401, obtain the instruction set template of the electronic tag, the root key of the project corresponding to the electronic tag, and the project feature information of the project; the instruction set template is generated by the cloud server according to the general attribute information of the electronic tag.
[0069] The method in this embodiment can be deployed on the terminal device of the electronic label manufacturer. The terminal device receives the instruction set template of the electronic label, the root key of the project corresponding to the electronic label, and the project feature information of the project sent by the server. The instruction set template is generated by the cloud server based on the general attribute information of the electronic label. The specific generation method is shown in the above embodiment and will not be repeated here.
[0070] The project characteristic information may include project identification, project customization requirements, etc., and may also include personalized data corresponding to each electronic tag, such as product serial number, place of origin, material information, etc.
[0071] Step S402: Parse the instruction set template to obtain a common instruction set in the instruction set of the electronic tag.
[0072] The terminal device uses the parsing SDK (Software Development Kit) sent by the cloud server to parse the instruction set template to obtain the general instruction set in the instruction set of the electronic tag. The general instruction set is a general instruction set for electronic tags of one or more projects. Some instructions will vary depending on the electronic tag, for example, the user account, subkey, personalized data, etc. of the electronic tag. This part is handled by a general wildcard as a placeholder.
[0073] Step S403: obtaining a personalized instruction set in the instruction set of the electronic tag based on the root key and the project characteristic information.
[0074] Based on the root key and the characteristic information of the electronic tag in the project characteristic information, a personalized instruction set is obtained in the instruction set. The wildcards in the general instruction set are uniformly replaced using the personalized instruction set, that is, the instruction set that is ultimately to be burned into the chip is obtained and sent to the terminal devices of multiple electronic tag manufacturers for instruction set burning.
[0075] The data processing method for electronic tags provided in the embodiment of the present application is that the terminal device receives the instruction set template of the electronic tag, the root key of the project corresponding to the electronic tag, and the project characteristic information of the project sent by the cloud server, parses the instruction set template, and obtains a common instruction set in the instruction set of the electronic tag, which can meet the common requirements of multiple projects for the electronic tag instruction set. Based on the root key and the project characteristic information, a personalized instruction set in the instruction set of the electronic tag is obtained, which can meet the differentiated requirements of the project, thereby being compatible with multi-dimensional differentiated production line burning and improving the efficiency of chip burning.
[0076] In one possible implementation, a personalized instruction set in the instruction set of the electronic tag is obtained based on the root key and project characteristic information, including: generating a subkey of the electronic tag based on the root key, project characteristic information and the tag identifier of the electronic tag; and obtaining a personalized instruction set in the instruction set of the electronic tag based on the subkey and the characteristic information of the electronic tag in the project characteristic information.
[0077] In actual applications, the project identifier and the tag identifier are encrypted using the root key to obtain the subkey of the electronic tag. The subkey and the feature information of the electronic tag in the project feature information (for example, the personalized data of the electronic tag, etc.) are used as variables to generate a personalized instruction set. The subkey of the electronic tag corresponds to the electronic tag one by one. In this embodiment, the subkey of the electronic tag is dynamically derived through the project root key to ensure the high security of one chip and one key.
[0078] In a possible implementation, the root key of the project corresponding to the electronic tag is obtained in the following manner: receiving multiple key components of the root key sent by the cloud server, and synthesizing the multiple key components to obtain the root key.
[0079] In actual applications, in addition to directly sending the project's root key to the terminal device, the cloud server can also process the root key, perform an XOR operation on the key and a random data to obtain multiple key components, and send them to the electronic tag manufacturer's terminal device. The terminal device synthesizes the multiple key components to obtain the root key, and then uses the root key and encryption algorithm to obtain the sub-key of each electronic tag.
[0080] Corresponding to the application scenario and method of the method provided in the embodiment of the present application, the embodiment of the present application also provides a data processing device for an electronic tag. Figure 5 As shown, the data processing device for electronic tags may include:
[0081] A generating module 501 is used to generate an instruction set template of the electronic tag according to the general tag attribute information of the electronic tag;
[0082] The first processing module 502 is used to perform encryption processing based on the project characteristic information of the project corresponding to the electronic tag to obtain the root key of the project;
[0083] The second processing module 503 is used to process the instruction set template, the root key and the project characteristic information to generate an instruction set of the electronic tag. The instruction set is used for the electronic tag to realize the requirements corresponding to the project.
[0084] The data processing method for electronic tags provided in the embodiment of the present application generates an instruction set template based on the general tag attribute information, which can meet the general requirements of multiple projects for the electronic tag instruction set. The project feature information is used as a consideration for generating the electronic tag instruction set, which can meet the differentiated requirements of the projects, thereby being compatible with multi-dimensional differentiated production line burning. The instruction set burning of electronic tags of multiple projects is uniformly managed by a cloud server, which can improve the efficiency of chip burning.
[0085] In a possible implementation, the second processing module 503 includes a first generating unit and a second generating unit;
[0086] A first generating unit, configured to generate a subkey of the electronic tag based on the root key, the project characteristic information and the tag identifier of the electronic tag;
[0087] The second generating unit is used to generate the instruction set of the electronic tag according to the instruction set template, the subkey and the project characteristic information.
[0088] In a possible implementation manner, the second generating unit is specifically configured to:
[0089] Parse the instruction set template to obtain the common instruction set in the instruction set;
[0090] Based on the subkey and the characteristic information of the electronic tag in the project characteristic information, a personalized instruction set in the instruction set is obtained.
[0091] In a possible implementation, the first processing module 502 is specifically configured to:
[0092] The project identifier in the project feature information is encrypted using an encryption algorithm to obtain the root key of the project.
[0093] In a possible implementation, the first generating unit is specifically configured to:
[0094] The project identifier and tag identifier in the project characteristic information are encrypted using the root key to obtain the subkey of the electronic tag.
[0095] In a possible implementation, the second processing module 503 is configured to:
[0096] The instruction set template, root key and project characteristic information are sent to the terminal device of the electronic tag manufacturer so that the terminal device parses the instruction set template to obtain the general instruction set in the instruction set of the electronic tag, and obtains the personalized instruction set in the instruction set of the electronic tag based on the characteristic information of the electronic tag in the root key and the project characteristic information.
[0097] In a possible implementation, the device further includes a splitting module, which is used to:
[0098] An XOR operation is performed on the root key of the project to obtain multiple key components of the root key, and the multiple key components are sent to the terminal device of the electronic label manufacturer so that the terminal device synthesizes the multiple key components to obtain the root key.
[0099] The functions of each module in each device in the embodiments of the present application can be found in the corresponding description in the above method, and have corresponding beneficial effects, which will not be repeated here.
[0100] Corresponding to the application scenario and method of the method provided in the embodiment of the present application, the embodiment of the present application also provides a data processing device for an electronic tag. Figure 7 As shown, the data processing device for electronic tags may include:
[0101] The acquisition module 601 is used to acquire the instruction set template of the electronic tag, the root key of the project corresponding to the electronic tag, and the project characteristic information of the project; the instruction set template is generated by the cloud server according to the general attribute information of the electronic tag;
[0102] The parsing module 602 is used to parse the instruction set template to obtain a common instruction set in the instruction set of the electronic tag;
[0103] The generating module 603 is used to obtain the personalized instruction set in the instruction set of the electronic tag based on the root key and the project characteristic information.
[0104] The data processing device for electronic tags provided in the embodiment of the present application receives the instruction set template of the electronic tag, the root key of the project corresponding to the electronic tag, and the project characteristic information of the project sent by the cloud server, parses the instruction set template, and obtains a common instruction set in the instruction set of the electronic tag, which can meet the common requirements of multiple projects for the electronic tag instruction set. Based on the root key and the project characteristic information, a personalized instruction set in the instruction set of the electronic tag is obtained, which can meet the differentiated requirements of the project, thereby being compatible with multi-dimensional differentiated production line burning and improving the efficiency of chip burning.
[0105] In a possible implementation, the generating module 603 is used to:
[0106] Generate a subkey of the electronic tag based on the root key, the project characteristic information and the tag identifier of the electronic tag;
[0107] A personalized instruction set in the instruction set of the electronic tag is obtained according to the subkey and the characteristic information of the electronic tag in the project characteristic information.
[0108] In a possible implementation, the root key of the item corresponding to the electronic tag is obtained in the following manner:
[0109] Receive multiple key components of the root key sent by the cloud server, and synthesize the multiple key components to obtain the root key.
[0110] The functions of each module in each device in the embodiments of the present application can be found in the corresponding description in the above method, and have corresponding beneficial effects, which will not be repeated here.
[0111] Figure 7 FIG. 1 is a block diagram of an electronic device used to implement an embodiment of the present application. Figure 7 As shown, the electronic device includes: a memory 710 and a processor 720. The memory 710 stores a computer program that can be run on the processor 720. When the processor 720 executes the computer program, the method in the above embodiment is implemented. The number of the memory 710 and the processor 720 can be one or more.
[0112] The electronic device also includes:
[0113] The communication interface 730 is used to communicate with external devices and perform data exchange transmission.
[0114] If the memory 710, the processor 720 and the communication interface 730 are implemented independently, the memory 710, the processor 720 and the communication interface 730 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0115] Optionally, in a specific implementation, if the memory 710, the processor 720 and the communication interface 730 are integrated on a chip, the memory 710, the processor 720 and the communication interface 730 can communicate with each other through an internal interface.
[0116] An embodiment of the present application provides a computer-readable storage medium storing a computer program, which implements the method provided in the embodiment of the present application when the program is executed by a processor.
[0117] An embodiment of the present application also provides a chip, which includes a processor for calling and executing instructions stored in the memory from the memory, so that a communication device equipped with the chip executes the method provided by the embodiment of the present application.
[0118] An embodiment of the present application also provides a chip, including: an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected via an internal connection path, and the processor is used to execute the code in the memory. When the code is executed, the processor is used to execute the method provided in the embodiment of the application.
[0119] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor supporting the Advanced RISC Machines (ARM) architecture.
[0120] Further, optionally, the above-mentioned memory may include a read-only memory and a random access memory, and may also include a non-volatile random access memory. The memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may include a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may include a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (DR RAM).
[0121] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
[0122] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples, unless they are contradictory.
[0123] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0124] Any process or method description in the flow chart or otherwise described herein can be understood to represent a module, fragment or portion of a code including one or more executable instructions for implementing the steps of a specific logical function or process. And the scope of the preferred embodiment of the present application includes other implementations, in which the functions may not be performed in the order shown or discussed, including in a substantially simultaneous manner or in a reverse order according to the functions involved.
[0125] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, which can be embodied in any computer-readable medium for use by an instruction execution system, apparatus or device (such as a computer-based system, a system including a processor or other system that can fetch instructions from an instruction execution system, apparatus or device and execute instructions), or used in combination with these instruction execution systems, apparatuses or devices.
[0126] It should be understood that the various parts of the present application can be implemented with hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented with software or firmware stored in a memory and executed by a suitable instruction execution system. All or part of the steps of the above embodiment method can be completed by instructing the relevant hardware through a program, which can be stored in a computer-readable storage medium, and when the program is executed, it includes one of the steps of the method embodiment or a combination thereof.
[0127] In addition, each functional unit in each embodiment of the present application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the above-mentioned integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. The storage medium can be a read-only memory, a disk or an optical disk, etc.
[0128] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A data processing method for an electronic tag, characterized in that: The method is applied to a cloud server, and the method comprises: Generate an instruction set template for the electronic tag according to the common tag attribute information of the electronic tag, wherein the common tag attribute information includes common electronic tag attribute information for multiple projects and / or common attribute information for multiple electronic tags applicable to one project; Perform encryption processing based on the project characteristic information of the project corresponding to the electronic tag to obtain the root key of the project; The instruction set template, the root key and the project characteristic information are processed to generate an instruction set for the electronic tag, wherein the instruction set is used by the electronic tag to implement the requirements corresponding to the project; wherein some instructions in the instruction set use universal wildcards as placeholders.
2. The method according to claim 1, characterized in that The processing of the instruction set template, the root key and the item characteristic information to generate the instruction set of the electronic tag includes: Generate a subkey of the electronic tag based on the root key, the item feature information and the tag identifier of the electronic tag; An instruction set of the electronic tag is generated according to the instruction set template, the subkey and the item characteristic information.
3. The method according to claim 2, characterized in that The step of generating the instruction set of the electronic tag according to the instruction set template, the subkey and the item characteristic information includes: Parsing the instruction set template to obtain a common instruction set in the instruction set; Based on the subkey and the characteristic information of the electronic tag in the item characteristic information, a personalized instruction set in the instruction set is obtained.
4. The method according to claim 1, characterized in that: The encrypting the project feature information of the project corresponding to the electronic tag to obtain the root key of the project includes: The project identifier in the project characteristic information is encrypted using an encryption algorithm to obtain a root key of the project.
5. The method according to claim 2, characterized in that: The generating the subkey of the electronic tag based on the root key, the item feature information and the tag identifier of the electronic tag includes: The project identifier and the tag identifier in the project characteristic information are encrypted using the root key to obtain the subkey of the electronic tag.
6. The method according to claim 1, characterized in that The processing of the instruction set template, the root key and the item characteristic information to generate the instruction set of the electronic tag includes: The instruction set template, the root key and the project characteristic information are sent to the terminal device of the electronic label manufacturer, so that the terminal device parses the instruction set template to obtain the general instruction set in the instruction set of the electronic label, and obtains the personalized instruction set in the instruction set of the electronic label based on the characteristic information of the electronic label in the root key and the project characteristic information.
7. The method according to claim 1, characterized in that The method further comprises: An XOR operation is performed on the root key of the project to obtain multiple key components of the root key, and the components are sent to the terminal device of the electronic label manufacturer so that the terminal device synthesizes the multiple key components to obtain the root key.
8. A data processing method for an electronic tag, characterized in that: The method is applied to a terminal device, and the method comprises: Acquire an instruction set template of an electronic tag, a root key of a project corresponding to the electronic tag, and project characteristic information of the project; the instruction set template is generated by the cloud server according to common attribute information of the electronic tag, wherein the common attribute information includes common electronic tag attribute information of multiple projects and / or common attribute information of multiple electronic tags applicable to one project; Parsing the instruction set template to obtain a general instruction set in the instruction set of the electronic tag; wherein some instructions in the instruction set use general wildcards as placeholders; Based on the root key and the item characteristic information, a personalized instruction set in the instruction set of the electronic tag is obtained.
9. The method according to claim 8, characterized in that The step of obtaining the personalized instruction set in the instruction set of the electronic tag based on the root key and the item characteristic information includes: Generate a subkey of the electronic tag based on the root key, the item feature information and the tag identifier of the electronic tag; A personalized instruction set in the instruction set of the electronic tag is obtained according to the subkey and the characteristic information of the electronic tag in the project characteristic information.
10. The method according to claim 8, characterized in that The root key of the project corresponding to the electronic tag is obtained in the following way: Receive multiple key components of the root key sent by the cloud server, and synthesize the multiple key components to obtain the root key.
11. A data processing device for an electronic tag, characterized in that: The device comprises: A generating module, configured to generate an instruction set template of the electronic tag according to the common tag attribute information of the electronic tag, wherein the common tag attribute information includes common electronic tag attribute information of multiple projects and / or common attribute information of multiple electronic tags applicable to one project; A first processing module, configured to perform encryption processing based on the project characteristic information of the project corresponding to the electronic tag to obtain a root key of the project; The second processing module is used to process the instruction set template, the root key and the project characteristic information to generate an instruction set for the electronic tag, wherein the instruction set is used by the electronic tag to implement the requirements corresponding to the project; wherein some instructions in the instruction set use universal wildcards as placeholders.
12. A data processing device for an electronic tag, characterized in that: The device comprises: an acquisition module, used to acquire an instruction set template of an electronic tag, a root key of a project corresponding to the electronic tag, and project characteristic information of the project; the instruction set template is generated by the cloud server according to common attribute information of the electronic tag, wherein the common attribute information includes common electronic tag attribute information of multiple projects and / or common attribute information of multiple electronic tags applicable to one project; A parsing module, used to parse the instruction set template to obtain a general instruction set in the instruction set of the electronic tag; wherein some instructions in the instruction set use general wildcards as placeholders; A generating module is used to obtain a personalized instruction set in the instruction set of the electronic tag based on the root key and the item characteristic information.
13. An electronic device comprising a memory, a processor and a computer program stored in the memory, wherein the processor implements the method according to any one of claims 1 to 10 when executing the computer program.
Citation Information
Patent Citations
Print program safety burning recording method, chip and printing consumable
CN110816089A
Computer program burning method and device, electronic equipment and storage medium
CN112306506A