[go: up one dir, main page]

CN116227514A - Electronic label and its signal transmission method, radio frequency system and its signal transmission method - Google Patents

Electronic label and its signal transmission method, radio frequency system and its signal transmission method Download PDF

Info

Publication number
CN116227514A
CN116227514A CN202310240167.4A CN202310240167A CN116227514A CN 116227514 A CN116227514 A CN 116227514A CN 202310240167 A CN202310240167 A CN 202310240167A CN 116227514 A CN116227514 A CN 116227514A
Authority
CN
China
Prior art keywords
electronic tag
current
secret key
encrypted data
reader
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310240167.4A
Other languages
Chinese (zh)
Inventor
周立雄
刘春艳
徐林奕晖
王军
岑玮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Techsun Packing Materials Co ltd
Shanghai Techsun Rfid Technolgoy Co ltd
Shanghai Tianchen Micro Nano Technology Co ltd
Original Assignee
Shanghai Techsun Packing Materials Co ltd
Shanghai Techsun Rfid Technolgoy Co ltd
Shanghai Tianchen Micro Nano Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Techsun Packing Materials Co ltd, Shanghai Techsun Rfid Technolgoy Co ltd, Shanghai Tianchen Micro Nano Technology Co ltd filed Critical Shanghai Techsun Packing Materials Co ltd
Priority to CN202310240167.4A priority Critical patent/CN116227514A/en
Publication of CN116227514A publication Critical patent/CN116227514A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • G06K7/10257Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves arrangements for protecting the interrogation against piracy attacks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisions for transferring data to distant stations, e.g. from a sensing device

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Electromagnetism (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Security & Cryptography (AREA)
  • Lock And Its Accessories (AREA)

Abstract

本发明公开了一种电子标签及其信号传输方法、射频系统及其信号传输方法。其中,电子标签的信号传输方法包括:在电子标签接收到读写器的读写指令时,电子标签更新其存储单元中的运算因子;电子标签将更新后的运算因子与初始秘钥按照第一预设算法计算,得到当前秘钥;电子标签将存储单元中的当前加密数据与当前秘钥发送至读写器。本发明实施例的技术方案解决了电子标签的秘钥容易泄漏,电子标签的安全性较差的问题,有效提高了电子标签的安全性。

Figure 202310240167

The invention discloses an electronic label and its signal transmission method, a radio frequency system and its signal transmission method. Among them, the signal transmission method of the electronic tag includes: when the electronic tag receives the read and write instructions of the reader, the electronic tag updates the operation factor in its storage unit; the electronic tag uses the updated operation factor and the initial secret key according to the first The preset algorithm is calculated to obtain the current secret key; the electronic tag sends the current encrypted data and the current secret key in the storage unit to the reader. The technical solution of the embodiment of the present invention solves the problem that the secret key of the electronic tag is easily leaked and the security of the electronic tag is poor, and effectively improves the security of the electronic tag.

Figure 202310240167

Description

电子标签及其信号传输方法、射频系统及其信号传输方法Electronic label and its signal transmission method, radio frequency system and its signal transmission method

技术领域technical field

本发明涉及电子标签技术领域,尤其涉及一种电子标签及其信号传输方法、射频系统及其信号传输方法。The invention relates to the technical field of electronic tags, in particular to an electronic tag and a signal transmission method thereof, a radio frequency system and a signal transmission method thereof.

背景技术Background technique

无线射频识别即射频识别技术(Radio Frequency Identification,RFID),是自动识别技术的一种,通过无线射频方式进行非接触双向数据通信,利用无线射频方式对记录媒体(电子标签或射频卡)进行读写,能够实现无线识别目标和数据交换,因此得到了广泛应用。Radio Frequency Identification (RFID) is a kind of automatic identification technology. It uses radio frequency to perform non-contact two-way data communication, and uses radio frequency to read recording media (electronic tags or radio frequency cards). It can achieve wireless identification and data exchange, so it has been widely used.

带安全认证的电子标签,一般将秘钥固化到芯片中,例如,专利文件CN02158933.X提供的一种射频电子标签数据加密防伪方法,其中加密方法为:首先在现有的射频电子标签中的只读存储器中读取出UID识别码(相当于秘钥),然后通过逻辑运算后产生新的数据(相当于加密数据),最后将产生的新数据写入可读写用户存储器中。该方法加密后的数据,若获取多组加密数据,可以较容易获取到秘钥,从而对加密数据进行解密。因此,将秘钥固化到芯片中,电子标签的秘钥容易泄漏,电子标签的安全性较差。For electronic tags with safety certification, the secret key is generally solidified into the chip. For example, a method for encrypting and anti-counterfeiting radio frequency electronic tag data provided by patent document CN02158933. The UID identification code (equivalent to a secret key) is read from the read-only memory, and then new data (equivalent to encrypted data) is generated after logic operations, and finally the generated new data is written into the readable and writable user memory. For the data encrypted by this method, if multiple sets of encrypted data are obtained, the secret key can be obtained more easily, so as to decrypt the encrypted data. Therefore, if the secret key is solidified into the chip, the secret key of the electronic tag is easily leaked, and the security of the electronic tag is poor.

发明内容Contents of the invention

本发明提供了一种电子标签及其信号传输方法、射频系统及其信号传输方法,以解决电子标签的秘钥容易泄漏,电子标签的安全性较差的问题。The invention provides an electronic label and its signal transmission method, a radio frequency system and its signal transmission method, in order to solve the problems that the secret key of the electronic label is easily leaked and the security of the electronic label is poor.

根据本发明的一方面,提供了一种电子标签的信息传输方法,包括:According to one aspect of the present invention, an information transmission method of an electronic tag is provided, including:

在所述电子标签接收到读写器的读写指令时,所述电子标签更新其存储单元中的运算因子;When the electronic tag receives the read/write instruction from the reader/writer, the electronic tag updates the operation factor in its storage unit;

所述电子标签将更新后的运算因子与初始秘钥按照第一预设算法计算,得到当前秘钥;The electronic tag calculates the updated operation factor and the initial secret key according to the first preset algorithm to obtain the current secret key;

所述电子标签将所述存储单元中的当前加密数据与所述当前秘钥发送至所述读写器。The electronic tag sends the current encrypted data and the current secret key in the storage unit to the reader.

可选地,所述电子标签将所述存储单元中的当前加密数据与所述当前秘钥发送至所述读写器,包括:Optionally, the electronic tag sends the current encrypted data and the current key in the storage unit to the reader, including:

所述电子标签将所述存储单元中的初始加密数据作为所述当前加密数据,并将所述当前加密数据与所述当前秘钥发送至所述读写器;其中,所述初始加密数据为采用所述初始秘钥加密后的数据。The electronic tag uses the initial encrypted data in the storage unit as the current encrypted data, and sends the current encrypted data and the current secret key to the reader; wherein, the initial encrypted data is The data encrypted with the initial key.

可选地,所述电子标签将所述存储单元中的当前加密数据与所述当前秘钥发送至所述读写器,包括:Optionally, the electronic tag sends the current encrypted data and the current key in the storage unit to the reader, including:

所述电子标签采用所述当前秘钥对所述存储单元中的初始加密数据进行加密,得到所述当前加密数据;The electronic tag uses the current secret key to encrypt the initial encrypted data in the storage unit to obtain the current encrypted data;

所述电子标签将所述当前加密数据与所述当前秘钥发送至所述读写器。The electronic tag sends the current encrypted data and the current secret key to the reader.

可选地,所述在所述电子标签接收到读写器的读写指令时,所述电子标签更新其存储单元中的运算因子,包括:Optionally, when the electronic tag receives a read/write instruction from the reader/writer, the electronic tag updates the calculation factor in its storage unit, including:

在所述电子标签接收到读写器的读写指令时,所述电子标签从所述存储单元中读取所述运算因子;When the electronic tag receives a read/write instruction from the reader/writer, the electronic tag reads the operation factor from the storage unit;

所述电子标签将所述运算因子按照第二预设算法更新,并将更新后的运算因子写入所述存储单元。The electronic tag updates the operation factor according to a second preset algorithm, and writes the updated operation factor into the storage unit.

可选地,所述电子标签将所述运算因子按照第二预设算法更新,包括:Optionally, the electronic tag updates the operation factor according to a second preset algorithm, including:

所述电子标签将所述运算因子与预设数值相加或相减,得到更新后的运算因子;The electronic tag adds or subtracts the operation factor to a preset value to obtain an updated operation factor;

或者,所述电子标签将所述运算因子与所述预设数值进行异或操作,得到更新后的运算因子。Alternatively, the electronic tag performs an XOR operation on the operation factor and the preset value to obtain an updated operation factor.

可选地,在所述电子标签接收到读写器的读写指令时,所述电子标签更新其存储单元中的运算因子之前,还包括:Optionally, when the electronic tag receives the read-write instruction from the reader-writer, before the electronic tag updates the operation factor in its storage unit, it further includes:

所述电子标签根据所述初始秘钥对所述存储单元内的数据进行加密,得到所述初始加密数据。The electronic tag encrypts the data in the storage unit according to the initial key to obtain the initial encrypted data.

可选地,在根据所述初始秘钥对所述存储单元内的数据进行加密,得到所述初始加密数据之前,还包括:Optionally, before encrypting the data in the storage unit according to the initial key to obtain the initial encrypted data, the method further includes:

所述电子标签进行初始化,得到所述初始秘钥。The electronic tag is initialized to obtain the initial secret key.

根据本发明的另一方面,提供了一种电子标签,用于执行本发明任一实施例所述的电子标签的信号传输方法,所述电子标签包括:天线、存储单元和逻辑单元;According to another aspect of the present invention, an electronic tag is provided for performing the signal transmission method of the electronic tag described in any embodiment of the present invention, the electronic tag includes: an antenna, a storage unit, and a logic unit;

所述逻辑单元用于在所述电子标签通过所述天线接收到读写器的读写指令时,更新所述存储单元中的运算因子;The logic unit is used to update the operation factor in the storage unit when the electronic tag receives a read/write command from the reader/writer through the antenna;

所述逻辑单元还用于将更新后的运算因子与初始秘钥按照第一预设算法计算,得到当前秘钥;The logic unit is also used to calculate the updated operation factor and the initial secret key according to the first preset algorithm to obtain the current secret key;

所述天线用于将所述存储单元中的当前加密数据与所述当前秘钥发送至所述读写器。The antenna is used to send the current encrypted data and the current secret key in the storage unit to the reader.

根据本发明的另一方面,提供了一种射频系统的信号传输方法,所述射频系统包括本发明任一实施例所述的电子标签、读写器及服务器;According to another aspect of the present invention, a signal transmission method of a radio frequency system is provided, and the radio frequency system includes the electronic tag, reader and server described in any embodiment of the present invention;

所述射频系统的信号传输方法包括:The signal transmission method of the radio frequency system includes:

所述读写器发送读写指令;The reader-writer sends a read-write command;

所述电子标签更新其存储单元中的运算因子;The electronic tag updates the operation factor in its storage unit;

所述电子标签将更新后的运算因子与初始秘钥按照第一预设算法计算,得到当前秘钥;The electronic tag calculates the updated operation factor and the initial secret key according to the first preset algorithm to obtain the current secret key;

所述电子标签将所述存储单元中的当前加密数据与所述当前秘钥发送至所述读写器;The electronic tag sends the current encrypted data and the current secret key in the storage unit to the reader;

所述读写器将获取到的所述当前秘钥和所述当前加密数据发送至所述服务器;The reader-writer sends the acquired current secret key and the current encrypted data to the server;

所述服务器根据所述初始秘钥和所述当前秘钥对所述当前加密数据进行解密,或者,根据所述初始秘钥对所述当前加密数据进行解密。The server decrypts the current encrypted data according to the initial key and the current key, or decrypts the current encrypted data according to the initial key.

根据本发明的另一方面,提供了一种射频系统,所述射频系统包括本发明任一实施例所述的电子标签、读写器及服务器,用于执行本发明任一实施例所述的射频系统的信号传输方法;According to another aspect of the present invention, a radio frequency system is provided, and the radio frequency system includes the electronic tag, the reader-writer and the server described in any embodiment of the present invention, and is used to implement the electronic tag described in any embodiment of the present invention. Signal transmission methods for radio frequency systems;

所述电子标签与所述读写器通信连接,所述读写器用于向所述电子标签发送读写指令,以获取所述电子标签内的当前加密数据和当前秘钥;The electronic tag is connected in communication with the reader, and the reader is used to send read and write instructions to the electronic tag to obtain the current encrypted data and the current secret key in the electronic tag;

所述服务器与所述读写器通信连接,所述读写器还用于将获取到的所述当前秘钥和所述当前加密数据发送至所述服务器;所述服务器用于根据所述初始秘钥和所述当前秘钥对所述当前加密数据进行解密,或者,根据所述初始秘钥对所述当前加密数据进行解密。The server is connected in communication with the reader, and the reader is further configured to send the obtained current secret key and the current encrypted data to the server; the server is configured to The secret key and the current secret key decrypt the current encrypted data, or decrypt the current encrypted data according to the initial secret key.

本发明实施例提供的技术方案,通过在电子标签接收到读写器的读写指令时,电子标签更新其存储单元中的运算因子;电子标签将更新后的运算因子与初始秘钥按照第一预设算法计算,得到当前秘钥;电子标签将存储单元中的当前加密数据与当前秘钥发送至读写器,这样每次得到的当前秘钥都不一样,并且,每次传输的都是加密后的当前加密数据,当前加密数据是利用初始秘钥加密的,而本次传输的是当前秘钥,所以即使截获当前加密数据和当前秘钥,也无法解析出初始数据;或者,当前加密数据是利用初始秘钥和当前秘钥加密的,本次只传输当前秘钥,所以即使截获当前加密数据和当前秘钥,也无法解析出初始数据。因此,可以达到安全传输的效果,无惧秘钥泄露,提高了电子标签信号传输的可靠性,保证了通信链路的安全性。而且,本申请的电子标签的存储单元中存储的是加密数据,提升了电子标签数据存储的安全性,使得电子标签更具安全性,进一步提高了电子标签的可靠性。本发明实施例的技术方案解决了电子标签的秘钥容易泄漏,电子标签的安全性较差的问题,有效提高了电子标签的安全性。In the technical solution provided by the embodiment of the present invention, when the electronic tag receives the read and write instructions from the reader, the electronic tag updates the operation factor in its storage unit; the electronic tag uses the updated operation factor and the initial secret key according to the first The preset algorithm is calculated to obtain the current secret key; the electronic tag sends the current encrypted data in the storage unit and the current secret key to the reader, so that the current secret key obtained each time is different, and each transmission is The current encrypted data after encryption, the current encrypted data is encrypted with the initial key, and this transmission is the current key, so even if the current encrypted data and the current key are intercepted, the initial data cannot be parsed; or, the current encrypted The data is encrypted with the initial secret key and the current secret key, and only the current secret key is transmitted this time, so even if the current encrypted data and the current secret key are intercepted, the initial data cannot be parsed. Therefore, the effect of secure transmission can be achieved without fear of leakage of the secret key, the reliability of electronic tag signal transmission is improved, and the security of the communication link is guaranteed. Moreover, the storage unit of the electronic tag of the present application stores encrypted data, which improves the security of electronic tag data storage, makes the electronic tag more secure, and further improves the reliability of the electronic tag. The technical solution of the embodiment of the present invention solves the problem that the secret key of the electronic tag is easily leaked and the security of the electronic tag is poor, and effectively improves the security of the electronic tag.

应当理解,本部分所描述的内容并非旨在标识本发明的实施例的关键或重要特征,也不用于限制本发明的范围。本发明的其它特征将通过以下的说明书而变得容易理解。It should be understood that the content described in this section is not intended to identify key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will be easily understood from the following description.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without creative effort.

图1为本发明实施例提供的一种电子标签的信号传输方法的流程图。FIG. 1 is a flowchart of a signal transmission method of an electronic tag provided by an embodiment of the present invention.

图2为本发明实施例提供的又一种电子标签的信号传输方法的流程图。Fig. 2 is a flowchart of another signal transmission method of an electronic tag provided by an embodiment of the present invention.

图3为本发明实施例提供的另一种电子标签的信号传输方法的流程图。Fig. 3 is a flowchart of another signal transmission method of an electronic tag provided by an embodiment of the present invention.

图4为本发明实施例提供的另一种电子标签的信号传输方法的流程图。Fig. 4 is a flowchart of another signal transmission method of an electronic tag provided by an embodiment of the present invention.

图5为本发明实施例提供的另一种电子标签的信号传输方法的流程图。Fig. 5 is a flowchart of another signal transmission method of an electronic tag provided by an embodiment of the present invention.

图6为本发明实施例提供的另一种电子标签的信号传输方法的流程图。Fig. 6 is a flowchart of another signal transmission method of an electronic tag provided by an embodiment of the present invention.

图7为本发明实施例提供的一种电子标签结构示意图。Fig. 7 is a schematic structural diagram of an electronic tag provided by an embodiment of the present invention.

图8为本发明实施例提供的一种射频系统的信号传输方法的流程图。FIG. 8 is a flowchart of a signal transmission method for a radio frequency system according to an embodiment of the present invention.

图9为本发明实施例提供的一种射频系统的结构示意图。FIG. 9 is a schematic structural diagram of a radio frequency system provided by an embodiment of the present invention.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is an embodiment of a part of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.

需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first" and "second" in the description and claims of the present invention and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the invention described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a sequence of steps or elements is not necessarily limited to the expressly listed instead, may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus.

本实施例的技术方案提供了一种电子标签的信号传输方法。图1为本发明实施例提供的一种电子标签的信号传输方法的流程图,如图1所示,该方法包括:The technical solution of this embodiment provides a signal transmission method of an electronic tag. Fig. 1 is a flow chart of a signal transmission method of an electronic tag provided by an embodiment of the present invention. As shown in Fig. 1, the method includes:

S110、在电子标签接收到读写器的读写指令时,电子标签更新其存储单元中的运算因子。S110. When the electronic tag receives the read/write instruction from the reader/writer, the electronic tag updates the operation factor in its storage unit.

其中,电子标签包括存储单元,存储单元中存储中电子标签所在产品的产品信息。电子标签可以与读写器进行无线射频通信,当电子标签进入读写器的场内时,电子标签得电,读写器可以对电子标签进行读写操作,获取电子标签所在产品的产品信息,还可以对电子标签中的信息进行修改。运算因子例如为出厂前预先存储在存储单元中的数据,运算因子可以为一位的十进制数据,也可以为多位的二进制数据,也可以为其他类型的数据,本实施例并不进行限定。Wherein, the electronic tag includes a storage unit, and the storage unit stores product information of the product where the electronic tag is located. The electronic tag can carry out radio frequency communication with the reader. When the electronic tag enters the field of the reader, the electronic tag is powered on, and the reader can read and write the electronic tag to obtain the product information of the product where the electronic tag is located. It is also possible to modify the information in the electronic label. The operation factor is, for example, data pre-stored in the storage unit before leaving the factory. The operation factor can be one-bit decimal data, multi-bit binary data, or other types of data, which is not limited in this embodiment.

具体地,当电子标签接收到读写器的读写指令时,即电子标签与读写器进行会话时,电子标签将其存储单元中的运算因子进行更新,得到更新后的运算因子,便于运用运算因子对秘钥进行更新,使得每一次电子标签与读写器进行通信时传输的秘钥不同。Specifically, when the electronic tag receives the read and write instructions from the reader, that is, when the electronic tag communicates with the reader, the electronic tag updates the calculation factor in its storage unit to obtain the updated calculation factor, which is convenient for use. The operation factor updates the secret key, so that the secret key transmitted each time the electronic tag communicates with the reader is different.

S120、电子标签将更新后的运算因子与初始秘钥按照第一预设算法计算,得到当前秘钥。S120. The electronic tag calculates the updated operation factor and the initial secret key according to a first preset algorithm to obtain the current secret key.

其中,初始秘钥具体可理解为将芯片加工成电子标签,并对电子标签进行初始化后得到的秘钥,初始秘钥存储在电子标签的存储单元中;第一预设算法例如为预先存储在电子标签中的算法,第一预设算法例如包括加、减、乘、除、及异或算法中的至少一种,将更新后的运算因子与初始秘钥按照第一预设算法计算,例如为电子标签将运算因子与预设数值进行相加、相减、相乘、相除或异或操作。Among them, the initial secret key can be specifically understood as the secret key obtained after the chip is processed into an electronic tag and the electronic tag is initialized. The initial secret key is stored in the storage unit of the electronic tag; the first preset algorithm is, for example, pre-stored in The algorithm in the electronic tag, the first preset algorithm includes, for example, at least one of addition, subtraction, multiplication, division, and XOR algorithm, and the updated operation factor and the initial secret key are calculated according to the first preset algorithm, for example Perform addition, subtraction, multiplication, division or XOR operations on the operation factor and the preset value for the electronic tag.

具体地,电子标签将更新后的运算因子的初始秘钥按照第一预设算法计算,可以是计算一次,也可以是计算多次,从而得到当前秘钥。通过确定当前秘钥,使得每一次电子标签与读写器进行通信时传输的秘钥不同,即使截获通信时的秘钥,也无法得出规律,即无法对秘钥和数据进行解析,提升了电子标签信号传输的安全性。Specifically, the electronic tag calculates the updated initial secret key of the operation factor according to the first preset algorithm, which may be calculated once or multiple times, so as to obtain the current secret key. By determining the current secret key, the secret key transmitted each time the electronic tag communicates with the reader is different. Even if the secret key during communication is intercepted, the law cannot be obtained, that is, the secret key and data cannot be analyzed, which improves the The security of electronic tag signal transmission.

S130、电子标签将存储单元中的当前加密数据与当前秘钥发送至读写器。S130. The electronic tag sends the current encrypted data and the current secret key in the storage unit to the reader.

具体地,当前加密数据例如为存储单元中的初始加密数据,初始加密数据是采用初始秘钥加密后的数据;则电子标签与读写器通信时,传输的是初始加密数据和当前秘钥,使得即使使用示波器等设备截获通信数据,也无法利用截获的当前秘钥对初始加密数据进行解析,有效提升了电子标签信息传输的可靠性和安全性,保证了通信链路的安全性。或者,当前加密数据也可以为电子标签采用当前秘钥对存储单元中的初始加密数据进行加密,得到的数据,即可以对数据进行两次加密;因此,电子标签与读写器通信时,传输的是两次加密后的当前加密数据和当前秘钥,即使对通信数据进行截获,只利用当前秘钥也无法对当前加密数据进行解析,可以防止秘钥泄漏,有效提升了电子标签信息传输的可靠性和安全性,保证了通信链路的安全性。并且,存储单元中存储的是加密数据,而不是初始数据,因此提升了电子标签数据存储的安全性,进一步提升了电子标签的安全性和可靠性,进一步防止数据泄漏,避免产品信息泄漏。Specifically, the current encrypted data is, for example, the initial encrypted data in the storage unit, and the initial encrypted data is the data encrypted with the initial key; when the electronic tag communicates with the reader, the initial encrypted data and the current key are transmitted, Even if the communication data is intercepted by equipment such as an oscilloscope, the initial encrypted data cannot be analyzed by using the intercepted current secret key, which effectively improves the reliability and security of electronic tag information transmission and ensures the security of the communication link. Alternatively, the current encrypted data can also be the electronic tag using the current secret key to encrypt the initial encrypted data in the storage unit, and the obtained data can be encrypted twice; therefore, when the electronic tag communicates with the reader, the transmission What is important is the current encrypted data and the current secret key after two encryptions. Even if the communication data is intercepted, the current encrypted data cannot be analyzed only with the current secret key, which can prevent the secret key from leaking and effectively improve the efficiency of electronic tag information transmission. Reliability and security, ensuring the security of the communication link. Moreover, encrypted data is stored in the storage unit instead of initial data, so the security of electronic tag data storage is improved, the security and reliability of electronic tags are further improved, and data leakage and product information leakage are further prevented.

本发明实施例提供的技术方案,通过在电子标签接收到读写器的读写指令时,电子标签更新其存储单元中的运算因子;电子标签将更新后的运算因子与初始秘钥按照第一预设算法计算,得到当前秘钥;电子标签将存储单元中的当前加密数据与当前秘钥发送至读写器,这样每次得到的当前秘钥都不一样,并且,每次传输的都是加密后的当前加密数据,当前加密数据是利用初始秘钥加密的,而本次传输的是当前秘钥,所以即使截获当前加密数据和当前秘钥,也无法解析出初始数据;或者,当前加密数据是利用初始秘钥和当前秘钥加密的,本次只传输当前秘钥,所以即使截获当前加密数据和当前秘钥,也无法解析出初始数据。因此,可以达到安全传输的效果,无惧秘钥泄露,提高了电子标签信号传输的可靠性,保证了通信链路的安全性。而且,本申请的电子标签的存储单元中存储的是加密数据,提升了电子标签数据存储的安全性,使得电子标签更具安全性,进一步提高了电子标签的可靠性。本发明实施例的技术方案解决了电子标签的秘钥容易泄漏,电子标签的安全性较差的问题,有效提高了电子标签的安全性。In the technical solution provided by the embodiment of the present invention, when the electronic tag receives the read and write instructions from the reader, the electronic tag updates the operation factor in its storage unit; the electronic tag uses the updated operation factor and the initial secret key according to the first The preset algorithm is calculated to obtain the current secret key; the electronic tag sends the current encrypted data in the storage unit and the current secret key to the reader, so that the current secret key obtained each time is different, and each transmission is The current encrypted data after encryption, the current encrypted data is encrypted with the initial key, and this transmission is the current key, so even if the current encrypted data and the current key are intercepted, the initial data cannot be parsed; or, the current encrypted The data is encrypted with the initial secret key and the current secret key, and only the current secret key is transmitted this time, so even if the current encrypted data and the current secret key are intercepted, the initial data cannot be parsed. Therefore, the effect of secure transmission can be achieved without fear of leakage of the secret key, the reliability of electronic tag signal transmission is improved, and the security of the communication link is guaranteed. Moreover, the storage unit of the electronic tag of the present application stores encrypted data, which improves the security of electronic tag data storage, makes the electronic tag more secure, and further improves the reliability of the electronic tag. The technical solution of the embodiment of the present invention solves the problem that the secret key of the electronic tag is easily leaked and the security of the electronic tag is poor, and effectively improves the security of the electronic tag.

在上述技术方案的基础上,当前加密数据可以为初始加密数据,也可以为采用当前秘钥对初始加密数据再次加密后的数据,下面结合当前加密数据的确定方式对电子标签的信号传输方法进行说明,但不作为对本申请的限定。On the basis of the above technical solution, the current encrypted data can be the initial encrypted data, or it can be the data after the initial encrypted data is re-encrypted with the current secret key. The signal transmission method of the electronic tag is carried out in combination with the determination method of the current encrypted data. description, but not as a limitation of the application.

在一种实施方式中,图2为本发明实施例提供的又一种电子标签的信号传输方法的流程图,如图2所示,该方法包括:In one embodiment, FIG. 2 is a flow chart of another signal transmission method of an electronic tag provided in an embodiment of the present invention. As shown in FIG. 2 , the method includes:

S210、在电子标签接收到读写器的读写指令时,电子标签更新其存储单元中的运算因子。S210. When the electronic tag receives the read/write instruction from the reader/writer, the electronic tag updates the operation factor in its storage unit.

S220、电子标签将更新后的运算因子与初始秘钥按照第一预设算法计算,得到当前秘钥。S220. The electronic tag calculates the updated operation factor and the initial secret key according to a first preset algorithm to obtain the current secret key.

S230、电子标签将存储单元中的初始加密数据作为当前加密数据,并将当前加密数据与当前秘钥发送至读写器。S230. The electronic tag uses the initial encrypted data in the storage unit as the current encrypted data, and sends the current encrypted data and the current secret key to the reader/writer.

具体地,当前加密数据例如为存储单元中的初始加密数据,初始加密数据是采用初始秘钥加密后的数据;则电子标签与读写器通信时,传输的是初始加密数据和当前秘钥,使得即使使用示波器等设备截获通信数据,也无法利用截获的当前秘钥对初始加密数据进行解析,有效提升了电子标签信息传输的可靠性和安全性,保证了通信链路的安全性。并且,只对数据进行一次加密,简化了操作流程,使得电子标签接收到读写器的读写指令后,可以快速发送加密数据至读写器,有利于提升用户体验。Specifically, the current encrypted data is, for example, the initial encrypted data in the storage unit, and the initial encrypted data is the data encrypted with the initial key; when the electronic tag communicates with the reader, the initial encrypted data and the current key are transmitted, Even if the communication data is intercepted by equipment such as an oscilloscope, the initial encrypted data cannot be analyzed by using the intercepted current secret key, which effectively improves the reliability and security of electronic tag information transmission and ensures the security of the communication link. Moreover, the data is only encrypted once, which simplifies the operation process, so that after the electronic tag receives the read and write instructions from the reader, it can quickly send encrypted data to the reader, which is conducive to improving user experience.

在另一种实施方式中,图3为本发明实施例提供的另一种电子标签的信号传输方法的流程图,如图3所示,该方法包括:In another implementation manner, FIG. 3 is a flow chart of another electronic tag signal transmission method provided by an embodiment of the present invention. As shown in FIG. 3 , the method includes:

S310、在电子标签接收到读写器的读写指令时,电子标签更新其存储单元中的运算因子。S310. When the electronic tag receives the read/write instruction from the reader/writer, the electronic tag updates the operation factor in its storage unit.

S320、电子标签将更新后的运算因子与初始秘钥按照第一预设算法计算,得到当前秘钥。S320. The electronic tag calculates the updated operation factor and the initial secret key according to a first preset algorithm to obtain the current secret key.

S330、电子标签采用当前秘钥对存储单元中的初始加密数据进行加密,得到当前加密数据;电子标签将当前加密数据与当前秘钥发送至读写器。S330. The electronic tag uses the current secret key to encrypt the initial encrypted data in the storage unit to obtain the current encrypted data; the electronic tag sends the current encrypted data and the current secret key to the reader.

具体地,电子标签采用当前秘钥对存储单元中的初始加密数据进行加密,得到的数据,即可以对数据进行两次加密,进行两次加密后,更加提高了数据的安全性,即使使用示波器等器件进行强行破解,也无法获取原始数据,进一步提升了电子标签的安全性。因此,电子标签与读写器通信时,传输的是两次加密后的当前加密数据和当前秘钥,即使对通信数据进行截获,只利用当前秘钥也无法对当前加密数据进行解析,可以防止产品信息泄漏,有效提升了电子标签信息传输的可靠性和安全性,保证了通信链路的安全性。Specifically, the electronic tag uses the current secret key to encrypt the initial encrypted data in the storage unit, and the obtained data can be encrypted twice. After the two encryptions, the security of the data is further improved, even if the oscilloscope Even if the device is forcibly cracked, the original data cannot be obtained, which further improves the security of the electronic tag. Therefore, when the electronic tag communicates with the reader, the current encrypted data and the current secret key after two encryptions are transmitted. Even if the communication data is intercepted, the current encrypted data cannot be analyzed only with the current secret key, which can prevent Product information leakage effectively improves the reliability and security of electronic tag information transmission and ensures the security of communication links.

在上述各技术方案的基础上,图4为本发明实施例提供的另一种电子标签的信号传输方法的流程图,如图4所示,该方法包括:On the basis of the above technical solutions, Fig. 4 is a flow chart of another electronic tag signal transmission method provided by the embodiment of the present invention. As shown in Fig. 4, the method includes:

S410、在电子标签接收到读写器的读写指令时,电子标签从存储单元中读取运算因子。S410. When the electronic tag receives a read/write instruction from the reader/writer, the electronic tag reads the operation factor from the storage unit.

具体地,电子标签例如包括逻辑单元,逻辑单元可以进行运算操作,逻辑单元与存储单元可以进行交互。运算因子存储在存储单元中,当要对运算因子进行更新时,电子标签的逻辑单元要先从存储单元中读取运算因子,再进行计算。Specifically, the electronic tag includes, for example, a logic unit, the logic unit can perform calculation operations, and the logic unit and the storage unit can interact. The operation factor is stored in the storage unit. When the operation factor is to be updated, the logic unit of the electronic tag must first read the operation factor from the storage unit, and then perform calculation.

S420、电子标签将运算因子按照第二预设算法更新,并将更新后的运算因子写入存储单元。S420. The electronic tag updates the operation factor according to the second preset algorithm, and writes the updated operation factor into the storage unit.

其中,第二预设算法例如为预先存储在电子标签中的算法,第二预设算法例如包括加、减、乘、除、及异或算法中的至少一种。Wherein, the second preset algorithm is, for example, an algorithm pre-stored in the electronic tag, and the second preset algorithm includes, for example, at least one of addition, subtraction, multiplication, division, and XOR algorithms.

具体地,电子标签将运算因子按照第二预设算法计算,可以是计算一次,也可以计算多次,得到新的运算因子,然后将更新后的运算因子写入存储单元,以便于逻辑单元从存储单元中获取更新后的运算因子,从而运用更新后的运算因子对秘钥进行更新。Specifically, the electronic tag calculates the operation factor according to the second preset algorithm, which can be calculated once or multiple times to obtain a new operation factor, and then writes the updated operation factor into the storage unit, so that the logic unit can change from The updated operation factor is obtained from the storage unit, so as to use the updated operation factor to update the secret key.

S430、电子标签将更新后的运算因子与初始秘钥按照第一预设算法计算,得到当前秘钥。S430. The electronic tag calculates the updated operation factor and the initial secret key according to a first preset algorithm to obtain the current secret key.

S440、电子标签将存储单元中的当前加密数据与当前秘钥发送至读写器。S440. The electronic tag sends the current encrypted data and the current secret key in the storage unit to the reader.

图5为本发明实施例提供的另一种电子标签的信号传输方法的流程图,如图5所示,该方法包括:Fig. 5 is a flowchart of another electronic tag signal transmission method provided by an embodiment of the present invention. As shown in Fig. 5, the method includes:

S510、在电子标签接收到读写器的读写指令时,电子标签从存储单元中读取运算因子。S510. When the electronic tag receives a read/write instruction from the reader/writer, the electronic tag reads the operation factor from the storage unit.

S520、电子标签将运算因子与预设数值相加或相减,得到更新后的运算因子;或者,电子标签将运算因子与预设数值进行异或操作,得到更新后的运算因子。S520. The electronic tag adds or subtracts the operation factor to the preset value to obtain an updated operation factor; or, the electronic tag performs an XOR operation on the operation factor and the preset value to obtain an updated operation factor.

具体地,预设数值可以是1,也可以是2,也可以是3,也可以是其他数值,预设数值也可以是多位的二进制数据,也可以是其他类型的数据,电子标签将运算因子与预设数值相加或者相减,得到更新后的运算因子,这种运算方式使得系统运算时间短,运算速度快;或者,电子标签将运算因子与预设数值进行异或操作,得到新的运算因子,便于采用更新后的运算因子得到的当前秘钥,异或运算较复杂,使得当前秘钥难以被解析出来,进而使得电子标签更安全。Specifically, the preset value can be 1, 2, 3, or other values. The preset value can also be multi-bit binary data or other types of data. The electronic tag will calculate The factor is added or subtracted from the preset value to obtain the updated operation factor. This operation method makes the system operation time short and the operation speed fast; or, the electronic tag performs XOR operation on the operation factor and the preset value to obtain the new operation factor. The calculation factor is convenient to use the current secret key obtained by the updated calculation factor, and the XOR operation is more complicated, which makes it difficult to parse the current secret key, thereby making the electronic tag more secure.

S530、电子标签将更新后的运算因子与初始秘钥按照第一预设算法计算,得到当前秘钥。S530. The electronic tag calculates the updated operation factor and the initial secret key according to a first preset algorithm to obtain the current secret key.

S540、电子标签将存储单元中的当前加密数据与当前秘钥发送至读写器。S540. The electronic tag sends the current encrypted data and the current secret key in the storage unit to the reader.

作为本实施例进一步的实施方式,在上述各技术方案的基础上,图6为本发明实施例提供的另一种电子标签的信号传输方法的流程图,如图6所示,该方法包括:As a further implementation of this embodiment, on the basis of the above technical solutions, FIG. 6 is a flow chart of another electronic tag signal transmission method provided by the embodiment of the present invention. As shown in FIG. 6, the method includes:

S610、电子标签进行初始化,得到初始秘钥。S610. The electronic tag is initialized to obtain an initial secret key.

具体地,首先将芯片和天线加工成电子标签,并对电子标签进行初始化,从而得到初始秘钥,初始秘钥存储在电子标签的存储单元中,以便于电子标签根据初始秘钥获取初始加密数据,有了初始加密数据再结合当前秘钥,在传输时,传输初始加密数据和当前秘钥,或者传输当前秘钥及当前秘钥对初始加密数据加密后的数据,使得即使使用示波器等设备截获通信数据,也无法利用截获的当前秘钥对初始加密数据进行解析,有效提升了电子标签信息传输的可靠性和安全性,保证了通信链路的安全性。Specifically, first process the chip and antenna into an electronic tag, and initialize the electronic tag to obtain the initial secret key, which is stored in the storage unit of the electronic tag, so that the electronic tag can obtain the initial encrypted data according to the initial secret key , with the initial encrypted data combined with the current secret key, when transmitting, transmit the initial encrypted data and the current secret key, or transmit the current secret key and the data encrypted by the current secret key to the initial encrypted data, so that even if the oscilloscope and other equipment are used to intercept For communication data, the intercepted current secret key cannot be used to analyze the initial encrypted data, which effectively improves the reliability and security of electronic tag information transmission and ensures the security of the communication link.

S620、电子标签根据初始秘钥对存储单元内的数据进行加密,得到初始加密数据。S620. The electronic tag encrypts the data in the storage unit according to the initial key to obtain initial encrypted data.

具体地,电子标签根据初始秘钥对存储单元内的数据进行加密,得到初始加密数据,由于此时的初始加密数据相比较于初始数据是进行了加密后得到的,因此提升了电子标签数据存储的安全性,进一步提升了电子标签的安全性和可靠性,进一步防止数据泄漏,避免产品信息泄漏。Specifically, the electronic tag encrypts the data in the storage unit according to the initial secret key to obtain the initial encrypted data. Since the initial encrypted data at this time is obtained after encryption compared with the initial data, the storage capacity of the electronic tag data is improved. The safety of the electronic label is further improved, and the safety and reliability of the electronic label are further improved to further prevent data leakage and product information leakage.

S630、在电子标签接收到读写器的读写指令时,电子标签更新其存储单元中的运算因子。S630. When the electronic tag receives the read/write instruction from the reader/writer, the electronic tag updates the operation factor in its storage unit.

S640、电子标签将更新后的运算因子与初始秘钥按照第一预设算法计算,得到当前秘钥。S640. The electronic tag calculates the updated operation factor and the initial secret key according to a first preset algorithm to obtain the current secret key.

S650、电子标签将存储单元中的当前加密数据与当前秘钥发送至读写器。S650. The electronic tag sends the current encrypted data and the current secret key in the storage unit to the reader.

本实施例的技术方案还提供了一种电子标签,图7为本发明实施例提供的一种电子标签结构示意图,电子标签用于执行本发明任一实施例的电子标签的信号传输方法,如图7所示,该电子标签包括:天线710、存储单元720和逻辑单元730;逻辑单元730用于在电子标签通过天线710接收到读写器的读写指令时,更新存储单元720中的运算因子;逻辑单元730还用于将更新后的运算因子与初始秘钥按照第一预设算法计算,得到当前秘钥;天线710用于将存储单元720中的当前加密数据与当前秘钥发送至读写器。The technical solution of this embodiment also provides an electronic tag. FIG. 7 is a schematic structural diagram of an electronic tag provided by an embodiment of the present invention. The electronic tag is used to implement the signal transmission method of the electronic tag in any embodiment of the present invention, such as As shown in Figure 7, the electronic tag includes: an antenna 710, a storage unit 720, and a logic unit 730; the logic unit 730 is used to update the operation in the storage unit 720 when the electronic tag receives a read and write command from the reader through the antenna 710 factor; the logic unit 730 is also used to calculate the updated operation factor and the initial secret key according to the first preset algorithm to obtain the current secret key; the antenna 710 is used to send the current encrypted data and the current secret key in the storage unit 720 to reader.

其中,电子标签包括天线710和芯片711,芯片711包括存储单元720和逻辑单元730。存储单元720用于存储运算因子和电子标签所在产品的产品信息,通过与逻辑单元730之间进行逻辑运算可以生成会话秘钥,也可以改写运算因子;逻辑单元730包括振荡模块、滤波模块、放大模块、调制模块、解调模块、D/A模块、A/D模块功能;逻辑单元730还包括运算因子改写模块和当前秘钥生成模块。Wherein, the electronic tag includes an antenna 710 and a chip 711 , and the chip 711 includes a storage unit 720 and a logic unit 730 . The storage unit 720 is used to store the operation factor and the product information of the product where the electronic tag is located. The session key can be generated through logical operation with the logic unit 730, and the operation factor can also be rewritten; the logic unit 730 includes an oscillation module, a filter module, an amplification module, modulation module, demodulation module, D/A module, and A/D module functions; the logic unit 730 also includes an operation factor rewriting module and a current secret key generation module.

具体地,电子标签通过天线710与读写器进行无线射频通信,当电子标签接收到读写器的读写指令时,即电子标签与读写器进行会话时,逻辑单元730的运算因子改写模块将存储单元720中的运算因子进行更新,得到更新后的运算因子,逻辑单元730的当前秘钥生成模块将更新后的运算因子的初始秘钥按照第一预设算法计算,得到当前秘钥。通过确定当前秘钥,使得每一次电子标签与读写器进行通信时传输的秘钥不同,即使截获通信时的秘钥,也无法得出规律,即无法对秘钥和数据进行解析,提升了电子标签信号传输的安全性。Specifically, the electronic tag performs wireless radio frequency communication with the reader through the antenna 710. When the electronic tag receives a read and write instruction from the reader, that is, when the electronic tag and the reader have a conversation, the operation factor rewriting module of the logic unit 730 The operation factor in the storage unit 720 is updated to obtain the updated operation factor, and the current secret key generation module of the logic unit 730 calculates the initial key of the updated operation factor according to the first preset algorithm to obtain the current secret key. By determining the current secret key, the secret key transmitted each time the electronic tag communicates with the reader is different. Even if the secret key during communication is intercepted, the law cannot be obtained, that is, the secret key and data cannot be analyzed, which improves the The security of electronic tag signal transmission.

此外,电子标签还包括射频模拟前端740,其中,射频模拟前端740包括整流模块、稳压模块、时钟模块、解调模块、上电复位模块、调制模块、调谐电容、随机数发生器。In addition, the electronic tag also includes a radio frequency analog front end 740, wherein the radio frequency analog front end 740 includes a rectification module, a voltage stabilization module, a clock module, a demodulation module, a power-on reset module, a modulation module, a tuning capacitor, and a random number generator.

本发明实施例提供的技术方案,电子标签包括:天线、存储单元和逻辑单元;其中,逻辑单元用于在电子标签通过天线接收到读写器的读写指令时,更新存储单元中的运算因子;逻辑单元还用于将更新后的运算因子与初始秘钥按照第一预设算法计算,得到当前秘钥;天线用于将存储单元中的当前加密数据与当前秘钥发送至读写器;由于每次传输的都是加密后的当前加密数据,当前加密数据是利用初始秘钥加密的,而本次传输的是当前秘钥,所以即使截获当前加密数据和当前秘钥,也无法解析出初始数据;或者,当前加密数据是利用初始秘钥和当前秘钥加密的,本次只传输当前秘钥,所以即使截获当前加密数据和当前秘钥,也无法解析出初始数据;因此,可以达到安全传输的效果,无惧秘钥泄露,提高了电子标签信号传输的可靠性,保证了通信链路的安全性。而且,本申请的电子标签的存储单元中存储的是加密数据,提升了电子标签数据存储的安全性,使得电子标签更具安全性,进一步提高了电子标签的可靠性。本发明实施例的技术方案解决了电子标签的秘钥容易泄漏,电子标签的安全性较差的问题,有效提高了电子标签的安全性。In the technical solution provided by the embodiment of the present invention, the electronic tag includes: an antenna, a storage unit, and a logic unit; wherein, the logic unit is used to update the calculation factor in the storage unit when the electronic tag receives a read/write instruction from the reader/writer through the antenna ; The logic unit is also used to calculate the updated operation factor and the initial secret key according to the first preset algorithm to obtain the current secret key; the antenna is used to send the current encrypted data and the current secret key in the storage unit to the reader; Since each transmission is the encrypted current encrypted data, the current encrypted data is encrypted with the initial secret key, and this transmission is the current secret key, so even if the current encrypted data and the current secret key are intercepted, it cannot be parsed out. Initial data; or, the current encrypted data is encrypted with the initial secret key and the current secret key, and only the current secret key is transmitted this time, so even if the current encrypted data and the current secret key are intercepted, the initial data cannot be parsed; therefore, it can be achieved The effect of secure transmission, without fear of key leakage, improves the reliability of electronic tag signal transmission and ensures the security of communication links. Moreover, the storage unit of the electronic tag of the present application stores encrypted data, which improves the security of electronic tag data storage, makes the electronic tag more secure, and further improves the reliability of the electronic tag. The technical solution of the embodiment of the present invention solves the problem that the secret key of the electronic tag is easily leaked and the security of the electronic tag is poor, and effectively improves the security of the electronic tag.

本实施例还提供了一种射频系统的信号传输方法,图8为本发明实施例提供的一种射频系统的信号传输方法的流程图,其中,射频系统包括:电子标签、读写器及服务器,如图8所示,该方法包括以下步骤:This embodiment also provides a signal transmission method of a radio frequency system. FIG. 8 is a flow chart of a signal transmission method of a radio frequency system provided by an embodiment of the present invention, wherein the radio frequency system includes: an electronic tag, a reader-writer and a server , as shown in Figure 8, the method includes the following steps:

S810、读写器发送读写指令。S810. The reader/writer sends a read/write instruction.

S820、电子标签更新其存储单元中的运算因子。S820. The electronic tag updates the operation factor in its storage unit.

S830、电子标签将更新后的运算因子与初始秘钥按照第一预设算法计算,得到当前秘钥。S830. The electronic tag calculates the updated operation factor and the initial secret key according to a first preset algorithm to obtain the current secret key.

S840、电子标签将存储单元中的当前加密数据与当前秘钥发送至读写器。S840. The electronic tag sends the current encrypted data and the current secret key in the storage unit to the reader.

S850、读写器将获取到的当前秘钥和当前加密数据发送至服务器。S850. The reader/writer sends the obtained current secret key and current encrypted data to the server.

S860、服务器根据初始秘钥和当前秘钥对当前加密数据进行解密,或者,根据初始秘钥对当前加密数据进行解密。S860. The server decrypts the current encrypted data according to the initial secret key and the current secret key, or decrypts the current encrypted data according to the initial secret key.

具体地,服务器中预先存储初始秘钥,例如在电子标签与读写器进行本次会话之前,预先将初始秘钥发送至服务器。若当前加密数据为初始加密数据,服务器采用初始秘钥对当前机密数据进行解密,从而解析出原始数据,也就是初始数据。若当前加密数据为采用当前秘钥对初始加密数据加密后的数据,服务器根据初始秘钥和当前秘钥对当前加密数据进行解密,从而解析出来原始数据(初始数据),方便用户获取电子标签所在产品的产品信息,便于进行查伪验证和溯源,从而使得用户了解产品状态,即获知产品是否被使用过等状态,有利于提升用户体验。Specifically, the server pre-stores the initial secret key, for example, before the electronic tag and the reader have this session, the initial secret key is sent to the server in advance. If the current encrypted data is the initial encrypted data, the server uses the initial key to decrypt the current confidential data, thereby parsing the original data, that is, the initial data. If the current encrypted data is the data obtained by encrypting the initial encrypted data with the current secret key, the server decrypts the current encrypted data according to the initial secret key and the current secret key, thereby parsing out the original data (initial data), which is convenient for the user to obtain the location of the electronic tag. The product information of the product is convenient for counterfeit verification and traceability, so that users can know the status of the product, that is, whether the product has been used, etc., which is conducive to improving the user experience.

本发明实施例提供的技术方案,通过读写器发送读写指令;电子标签更新其存储单元中的运算因子;电子标签将更新后的运算因子与初始秘钥按照第一预设算法计算,得到当前秘钥;电子标签将存储单元中的当前加密数据与当前秘钥发送至读写器;读写器将获取到的当前秘钥和当前加密数据发送至服务器;服务器根据初始秘钥和当前秘钥对当前加密数据进行解密,或者,根据初始秘钥对当前加密数据进行解密。由于每次传输的都是加密后的当前加密数据,当前加密数据是利用初始秘钥加密的,而本次传输的是当前秘钥,所以即使截获当前加密数据和当前秘钥,也无法解析出初始数据;或者,当前加密数据是利用初始秘钥和当前秘钥加密的,本次只传输当前秘钥,所以即使截获当前加密数据和当前秘钥,也无法解析出初始数据;因此,可以达到安全传输的效果,无惧秘钥泄露,提高了电子标签信号传输的可靠性,保证了通信链路的安全性。而且,本申请的电子标签的存储单元中存储的是加密数据,提升了电子标签数据存储的安全性,使得电子标签更具安全性,进一步提高了电子标签的可靠性。本发明实施例的技术方案解决了电子标签的秘钥容易泄漏,电子标签的安全性较差的问题,有效提高了电子标签的安全性。In the technical solution provided by the embodiment of the present invention, a read-write command is sent through a reader-writer; the electronic tag updates the operation factor in its storage unit; the electronic tag calculates the updated operation factor and the initial secret key according to the first preset algorithm, and obtains The current secret key; the electronic tag sends the current encrypted data and the current secret key in the storage unit to the reader; the reader sends the acquired current secret key and the current encrypted data to the server; the server key to decrypt the current encrypted data, or, according to the initial key to decrypt the current encrypted data. Since each transmission is the encrypted current encrypted data, the current encrypted data is encrypted with the initial secret key, and this transmission is the current secret key, so even if the current encrypted data and the current secret key are intercepted, it cannot be parsed out. Initial data; or, the current encrypted data is encrypted with the initial secret key and the current secret key, and only the current secret key is transmitted this time, so even if the current encrypted data and the current secret key are intercepted, the initial data cannot be parsed; therefore, it can be achieved The effect of secure transmission, without fear of key leakage, improves the reliability of electronic tag signal transmission and ensures the security of communication links. Moreover, the storage unit of the electronic tag of the present application stores encrypted data, which improves the security of electronic tag data storage, makes the electronic tag more secure, and further improves the reliability of the electronic tag. The technical solution of the embodiment of the present invention solves the problem that the secret key of the electronic tag is easily leaked and the security of the electronic tag is poor, and effectively improves the security of the electronic tag.

本实施例的技术方案还提供了一种射频系统。图9为本发明实施例提供的一种射频系统的结构示意图,如图9所示,该射频系统包括:电子标签910、读写器920及服务器930,射频系统用于执行本发明任一实施例的射频系统的信号传输方法;The technical solution of this embodiment also provides a radio frequency system. Figure 9 is a schematic structural diagram of a radio frequency system provided by an embodiment of the present invention. As shown in Figure 9, the radio frequency system includes: an electronic tag 910, a reader 920 and a server 930, and the radio frequency system is used to implement any implementation of the present invention The signal transmission method of the radio frequency system of example;

电子标签910与读写器920通信连接,读写器920用于向电子标签910发送读写指令,以获取电子标签910内的当前加密数据和当前秘钥;The electronic tag 910 is connected in communication with the reader-writer 920, and the reader-writer 920 is used to send read and write instructions to the electronic tag 910 to obtain the current encrypted data and the current secret key in the electronic tag 910;

服务器930与读写器920通信连接,读写器920还用于将获取到的当前秘钥和当前加密数据发送至服务器930;服务器930用于根据初始秘钥和当前秘钥对当前加密数据进行解密,或者,根据初始秘钥对当前加密数据进行解密。The server 930 is connected in communication with the reader-writer 920, and the reader-writer 920 is also used to send the acquired current secret key and current encrypted data to the server 930; the server 930 is used to process the current encrypted data according to the initial secret key and the current secret key Decrypt, or, decrypt the current encrypted data according to the original key.

本发明实施例提供的技术方案,通过设置电子标签与读写器通信连接,读写器用于向电子标签发送读写指令,以获取电子标签内的当前加密数据和当前秘钥;服务器与读写器通信连接,读写器还用于将获取到的当前秘钥和当前加密数据发送至服务器;服务器用于根据初始秘钥和当前秘钥对当前加密数据进行解密,或者,根据初始秘钥对当前加密数据进行解密。并且,每次传输的都是加密后的当前加密数据,当前加密数据是利用初始秘钥加密的,而本次传输的是当前秘钥,所以即使截获当前加密数据和当前秘钥,也无法解析出初始数据;或者,当前加密数据是利用初始秘钥和当前秘钥加密的,本次只传输当前秘钥,所以即使截获当前加密数据和当前秘钥,也无法解析出初始数据;因此,可以达到安全传输的效果,无惧秘钥泄露,提高了电子标签信号传输的可靠性,保证了通信链路的安全性。而且,本申请的电子标签的存储单元中存储的是加密数据,提升了电子标签数据存储的安全性,使得电子标签更具安全性,进一步提高了电子标签的可靠性。本发明实施例的技术方案解决了电子标签的秘钥容易泄漏,电子标签的安全性较差的问题,有效提高了电子标签的安全性。In the technical solution provided by the embodiment of the present invention, the electronic tag is communicated with the reader, and the reader is used to send read and write instructions to the electronic tag to obtain the current encrypted data and the current secret key in the electronic tag; the server and the reader The reader is also used to send the acquired current secret key and current encrypted data to the server; the server is used to decrypt the current encrypted data according to the initial secret key and the current secret key, or, according to the initial secret key pair The currently encrypted data is decrypted. Moreover, each transmission is the encrypted current encrypted data, the current encrypted data is encrypted with the initial key, and this transmission is the current key, so even if the current encrypted data and the current key are intercepted, it cannot be parsed or, the current encrypted data is encrypted with the initial secret key and the current secret key, and only the current secret key is transmitted this time, so even if the current encrypted data and the current secret key are intercepted, the initial data cannot be parsed; therefore, you can To achieve the effect of safe transmission, no fear of secret key leakage, improve the reliability of electronic tag signal transmission, and ensure the security of communication links. Moreover, the storage unit of the electronic tag of the present application stores encrypted data, which improves the security of electronic tag data storage, makes the electronic tag more secure, and further improves the reliability of the electronic tag. The technical solution of the embodiment of the present invention solves the problem that the secret key of the electronic tag is easily leaked and the security of the electronic tag is poor, and effectively improves the security of the electronic tag.

应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本发明中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本发明的技术方案所期望的结果,本文在此不进行限制。It should be understood that steps may be reordered, added or deleted using the various forms of flow shown above. For example, each step described in the present invention may be executed in parallel, sequentially, or in a different order, as long as the desired result of the technical solution of the present invention can be achieved, there is no limitation herein.

上述具体实施方式,并不构成对本发明保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本发明的精神和原则之内所作的修改、等同替换和改进等,均应包含在本发明保护范围之内。The above specific implementation methods do not constitute a limitation to the protection scope of the present invention. It should be apparent to those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made depending on design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (10)

1.一种电子标签的信号传输方法,其特征在于,包括:1. A signal transmission method of an electronic tag, characterized in that, comprising: 在所述电子标签接收到读写器的读写指令时,所述电子标签更新其存储单元中的运算因子;When the electronic tag receives the read/write instruction from the reader/writer, the electronic tag updates the operation factor in its storage unit; 所述电子标签将更新后的运算因子与初始秘钥按照第一预设算法计算,得到当前秘钥;The electronic tag calculates the updated operation factor and the initial secret key according to the first preset algorithm to obtain the current secret key; 所述电子标签将所述存储单元中的当前加密数据与所述当前秘钥发送至所述读写器。The electronic tag sends the current encrypted data and the current secret key in the storage unit to the reader. 2.根据权利要求1所述的方法,其特征在于,所述电子标签将所述存储单元中的当前加密数据与所述当前秘钥发送至所述读写器,包括:2. The method according to claim 1, wherein the electronic tag sends the current encrypted data and the current secret key in the storage unit to the reader, including: 所述电子标签将所述存储单元中的初始加密数据作为所述当前加密数据,并将所述当前加密数据与所述当前秘钥发送至所述读写器;其中,所述初始加密数据为采用所述初始秘钥加密后的数据。The electronic tag uses the initial encrypted data in the storage unit as the current encrypted data, and sends the current encrypted data and the current secret key to the reader; wherein, the initial encrypted data is The data encrypted with the initial key. 3.根据权利要求1所述的方法,其特征在于,所述电子标签将所述存储单元中的当前加密数据与所述当前秘钥发送至所述读写器,包括:3. The method according to claim 1, wherein the electronic tag sends the current encrypted data and the current secret key in the storage unit to the reader, comprising: 所述电子标签采用所述当前秘钥对所述存储单元中的初始加密数据进行加密,得到所述当前加密数据;The electronic tag uses the current secret key to encrypt the initial encrypted data in the storage unit to obtain the current encrypted data; 所述电子标签将所述当前加密数据与所述当前秘钥发送至所述读写器。The electronic tag sends the current encrypted data and the current secret key to the reader. 4.根据权利要求1所述的方法,其特征在于,所述在所述电子标签接收到读写器的读写指令时,所述电子标签更新其存储单元中的运算因子,包括:4. The method according to claim 1, wherein when the electronic tag receives a read/write command from the reader/writer, the electronic tag updates the operation factor in its storage unit, including: 在所述电子标签接收到读写器的读写指令时,所述电子标签从所述存储单元中读取所述运算因子;When the electronic tag receives a read/write instruction from the reader/writer, the electronic tag reads the operation factor from the storage unit; 所述电子标签将所述运算因子按照第二预设算法更新,并将更新后的运算因子写入所述存储单元。The electronic tag updates the operation factor according to a second preset algorithm, and writes the updated operation factor into the storage unit. 5.根据权利要求4所述的方法,其特征在于,所述电子标签将所述运算因子按照第二预设算法更新,包括:5. The method according to claim 4, wherein the electronic tag updates the operation factor according to a second preset algorithm, including: 所述电子标签将所述运算因子与预设数值相加或相减,得到更新后的运算因子;The electronic tag adds or subtracts the operation factor to a preset value to obtain an updated operation factor; 或者,所述电子标签将所述运算因子与所述预设数值进行异或操作,得到更新后的运算因子。Alternatively, the electronic tag performs an XOR operation on the operation factor and the preset value to obtain an updated operation factor. 6.根据权利要求2或3所述的方法,其特征在于,在所述电子标签接收到读写器的读写指令时,所述电子标签更新其存储单元中的运算因子之前,还包括:6. The method according to claim 2 or 3, wherein when the electronic tag receives the read/write instruction from the reader, before the electronic tag updates the operation factor in its storage unit, it further includes: 所述电子标签根据所述初始秘钥对所述存储单元内的数据进行加密,得到所述初始加密数据。The electronic tag encrypts the data in the storage unit according to the initial key to obtain the initial encrypted data. 7.根据权利要求6所述的方法,其特征在于,在根据所述初始秘钥对所述存储单元内的数据进行加密,得到所述初始加密数据之前,还包括:7. The method according to claim 6, wherein, before encrypting the data in the storage unit according to the initial key to obtain the initial encrypted data, further comprising: 所述电子标签进行初始化,得到所述初始秘钥。The electronic tag is initialized to obtain the initial secret key. 8.一种电子标签,其特征在于,用于执行权利要求1-7任一项所述的电子标签的信号传输方法,所述电子标签包括:天线、存储单元和逻辑单元;8. An electronic tag, characterized in that it is used to implement the signal transmission method of the electronic tag according to any one of claims 1-7, the electronic tag comprising: an antenna, a storage unit and a logic unit; 所述逻辑单元用于在所述电子标签通过所述天线接收到读写器的读写指令时,更新所述存储单元中的运算因子;The logic unit is used to update the operation factor in the storage unit when the electronic tag receives a read/write command from the reader/writer through the antenna; 所述逻辑单元还用于将更新后的运算因子与初始秘钥按照第一预设算法计算,得到当前秘钥;The logic unit is also used to calculate the updated operation factor and the initial secret key according to the first preset algorithm to obtain the current secret key; 所述天线用于将所述存储单元中的当前加密数据与所述当前秘钥发送至所述读写器。The antenna is used to send the current encrypted data and the current secret key in the storage unit to the reader. 9.一种射频系统的信号传输方法,其特征在于,所述射频系统包括权利要求8所述的电子标签、读写器及服务器;9. A signal transmission method of a radio frequency system, characterized in that the radio frequency system comprises the electronic tag, reader and server according to claim 8; 所述射频系统的信号传输方法包括:The signal transmission method of the radio frequency system includes: 所述读写器发送读写指令;The reader sends a read and write command; 所述电子标签更新其存储单元中的运算因子;The electronic tag updates the operation factor in its storage unit; 所述电子标签将更新后的运算因子与初始秘钥按照第一预设算法计算,得到当前秘钥;The electronic tag calculates the updated operation factor and the initial secret key according to the first preset algorithm to obtain the current secret key; 所述电子标签将所述存储单元中的当前加密数据与所述当前秘钥发送至所述读写器;The electronic tag sends the current encrypted data and the current secret key in the storage unit to the reader; 所述读写器将获取到的所述当前秘钥和所述当前加密数据发送至所述服务器;The reader-writer sends the acquired current secret key and the current encrypted data to the server; 所述服务器根据所述初始秘钥和所述当前秘钥对所述当前加密数据进行解密,或者,根据所述初始秘钥对所述当前加密数据进行解密。The server decrypts the current encrypted data according to the initial key and the current key, or decrypts the current encrypted data according to the initial key. 10.一种射频系统,其特征在于,所述射频系统包括权利要求8所述的电子标签、读写器及服务器,用于执行权利要求9所述的射频系统的信号传输方法;10. A radio frequency system, characterized in that, the radio frequency system comprises the electronic tag, reader and server according to claim 8, for performing the signal transmission method of the radio frequency system according to claim 9; 所述电子标签与所述读写器通信连接,所述读写器用于向所述电子标签发送读写指令,以获取所述电子标签内的当前加密数据和当前秘钥;The electronic tag is connected in communication with the reader, and the reader is used to send read and write instructions to the electronic tag to obtain the current encrypted data and the current secret key in the electronic tag; 所述服务器与所述读写器通信连接,所述读写器还用于将获取到的所述当前秘钥和所述当前加密数据发送至所述服务器;所述服务器用于根据所述初始秘钥和所述当前秘钥对所述当前加密数据进行解密,或者,根据所述初始秘钥对所述当前加密数据进行解密。The server is connected in communication with the reader, and the reader is further configured to send the obtained current secret key and the current encrypted data to the server; the server is configured to The secret key and the current secret key decrypt the current encrypted data, or decrypt the current encrypted data according to the initial secret key.
CN202310240167.4A 2023-03-13 2023-03-13 Electronic label and its signal transmission method, radio frequency system and its signal transmission method Pending CN116227514A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310240167.4A CN116227514A (en) 2023-03-13 2023-03-13 Electronic label and its signal transmission method, radio frequency system and its signal transmission method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310240167.4A CN116227514A (en) 2023-03-13 2023-03-13 Electronic label and its signal transmission method, radio frequency system and its signal transmission method

Publications (1)

Publication Number Publication Date
CN116227514A true CN116227514A (en) 2023-06-06

Family

ID=86584302

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310240167.4A Pending CN116227514A (en) 2023-03-13 2023-03-13 Electronic label and its signal transmission method, radio frequency system and its signal transmission method

Country Status (1)

Country Link
CN (1) CN116227514A (en)

Similar Documents

Publication Publication Date Title
US7661132B2 (en) Tag privacy protection method, tag device, backend apparatus, updater, update solicitor and record medium carrying such programs in storage
US9679286B2 (en) Methods and apparatus for enabling secure network-based transactions
US9112680B2 (en) Distribution of credentials
CN101098225B (en) Safety data transmission method and paying method, paying terminal and paying server
US9237008B2 (en) Encryption device, encryption method, and encryption program
EP3185466B1 (en) Encrypted communications method and communications terminal, and computer storage medium
CN106067874B (en) It is a kind of by the method for data record to server end, terminal and server
CN101605325B (en) Method for identity authentication, mobile terminal, server, and identity authentication system
CN101329786B (en) Method and system for acquiring bank card magnetic track information or payment application for mobile terminal
CN104463001A (en) A method for independently generating and storing encrypted digital currency private keys and a device for carrying encrypted digital currency private keys
CN101261675A (en) Secure method for loading service access data in an NFC chipset
CN104217327A (en) Financial IC (integrated circuit) card Internet terminal and trading method thereof
WO2015014245A1 (en) Method and system for safely transmitting transaction sensitive data based on cloud pos
CN116455572B (en) Data encryption method, device and equipment
US10715324B2 (en) Device and method for securing commands exchanged between a terminal and an integrated circuit
CN116227514A (en) Electronic label and its signal transmission method, radio frequency system and its signal transmission method
US10341301B2 (en) Method for transmitting encrypted data, method for receiving, corresponding devices and computer programs
CN204066182U (en) A kind of financial IC card internet terminal
CN108809925A (en) POS terminal data encryption and transmission method, terminal device and storage medium
CN103544011B (en) A kind of dynamic creation is also used the method for functional object
CN106960345B (en) Internet of things card and working method thereof
JP2003348069A (en) Method and device for distributing contents, storage medium and program
CN102026182A (en) Safety control method and system of mobile terminal
KR20080030266A (en) Short message encryption service method and device
JP6801448B2 (en) Electronic information storage media, authentication systems, authentication methods, and authentication application programs

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Country or region after: China

Address after: 201612 Room 101, building 1, No. 118, Xinzhuan Road, Songjiang District, Shanghai

Applicant after: Shanghai Tianchen micro nano technology Co.,Ltd.

Applicant after: Shanghai Tianchen Optoelectronics Technology Co.,Ltd.

Applicant after: SHANGHAI TECHSUN PACKING MATERIALS Co.,Ltd.

Address before: 201612 Room 101, building 1, No. 118, Xinzhuan Road, Songjiang District, Shanghai

Applicant before: Shanghai Tianchen micro nano technology Co.,Ltd.

Country or region before: China

Applicant before: SHANGHAI TECHSUN RFID TECHNOLGOY Co.,Ltd.

Applicant before: SHANGHAI TECHSUN PACKING MATERIALS Co.,Ltd.

CB02 Change of applicant information