Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone.
The terms "first" and "second" and the like in the description of the present invention and the drawings are used for distinguishing different objects or for distinguishing different processes for the same object, and are not used for describing a specific order of the objects.
Furthermore, the terms "comprising" and "having" and any variations thereof as referred to in the description of the invention are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
It should be noted that in the description of the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or illustrations. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the present invention, the meaning of "a plurality" means two or more unless otherwise specified.
The embodiment of the invention provides a tracing method which is used for improving the public confidence of an article tracing system. The tracing method is suitable for a tracing system, and fig. 1 shows one existing form of the tracing system. As shown in fig. 1, the traceability system may comprise: the system comprises a tracing device 100, an identification management server 200, an article information server 300, an article tracing device 400, a block chain 500, an article tracing business server 600 and a user device 700.
In a specific implementation, the tracing apparatus 100 may exist alone, or may be the article tracing service server 600 or a chip in the article tracing service server 600. The embodiment of the present invention does not specifically limit the specific form of the tracing apparatus 100.
The identity management server 200 (which may also be referred to as an identity management module or an identity resolution enterprise node) manages and distributes item identities (e.g., industrial internet identities) and is responsible for transmitting the item identities and certificates generated by the item identities to the item information servers 300 of the respective enterprises.
The article information server 300 (which may also be referred to as an article information module or an article tracking device management platform) establishes a correspondence between an industrial internet identifier and an article tracking device, associates the article identifier with information of the article tracking device (including but not limited to an identifier of the article tracking device, article information of an article to which the article tracking device is attached, and the like), and transmits the article identifier and a certificate generated from the article identifier to the article tracking device.
The item tracking device 400 (which may also be referred to as a traceable module) is configured to receive the item identifier and the certificate generated from the item identifier sent by the item information server 300, and write the received item identifier and the certificate generated from the item identifier into its secure storage area (i.e., the secure storage area of the item tracking device 400). The item tracking device 400 may be attached to an object and move with the item. The article tracking apparatus may acquire article information (e.g., status information of the article (temperature of the article, humidity of the article, etc.), position information of the article, etc.). The article tracking device 400 may upload the acquired article information to the article information server 300, the article tracking device 400 may upload the acquired article information to the block chain 500, or the article tracking device 400 may encrypt the acquired article information (for example, encrypt the article information by a certificate generated from an article identifier) and then upload the encrypted article information to the block chain 500.
Item tracking device 400 includes, but is not limited to, a tracking enabled device such as a cellular tracker.
The article tracking device 400 may acquire the position information of the article through a Global Positioning System (GPS), an operator network, or other manners, which is not limited in the embodiment of the present invention.
The block chain 500 is a federation chain formed by servers (e.g., item information servers) of respective enterprises. Such enterprises include, but are not limited to, all types of enterprises involved in the manufacture, distribution, consumption, and recycling of articles. Such as manufacturing, logistics, retail, recycling, etc. Blockchain 500 may store (e.g., distributed + chained storage) item information (or encrypted item information) uploaded by item tracking device 400. All or a portion of the information uploaded by item tracking device 400 may be read from blockchain 500 using the item identification.
The article tracing service server 600 may receive a tracing request carrying an article identifier of an article to be traced sent by the user equipment 700, and forward the tracing request to the tracing device 100.
The user equipment 700 may send a trace back request to the trace back equipment 100, or may send a trace back request to the article trace back service server 600.
The User Equipment (UE), which may also be referred to as a terminal device, is a device having a wireless transceiving function, and may be deployed on land, including indoors or outdoors, in a handheld manner, or in a vehicle; can also be deployed on the water surface (such as a ship and the like); and may also be deployed in the air (e.g., airplanes, balloons, satellites, etc.). The terminal device may be a mobile phone (mobile phone), a tablet computer (pad), a computer with a wireless transceiving function, a Virtual Reality (VR) terminal, an Augmented Reality (AR) terminal, a wireless terminal in industrial control (industrial control), a wireless terminal in self driving (self driving), a wireless terminal in remote medical (remote medical), a wireless terminal in smart grid (smart grid), a wireless terminal in transportation safety (transportation safety), a wireless terminal in smart city (smart city), a wireless terminal in smart home (smart home), and the like.
Fig. 2 shows a hardware configuration of the trace back apparatus 100. As shown in fig. 2, the trace back device 100 may include a processor 101, a communication line 102, a memory 103, and a communication interface 104.
The structure illustrated in the embodiment of the present invention does not limit the tracing apparatus 100. It may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 101 may include one or more processing units, such as: the processor 101 may include an application 0 processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a Neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
The controller may be a decision maker directing the various components of the traceability device 100 to work in concert as instructed. Is the neural center and command center of the traceability device 100. The controller generates an operation control signal according to the instruction operation code and the time sequence signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 101 for storing instructions and data. In some embodiments, the memory in the processor is a cache memory that may hold instructions or data that have just been used or recycled by the processor. If the processor needs to reuse the instruction or data, it can be called directly from memory. Avoiding repeated accesses and reducing the latency of the processor, thereby increasing the efficiency of the system.
In some embodiments, the processor 101 may include an interface. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
A communication line 102 for transmitting information between the processor 101 and the memory 103.
The memory 103 is used for storing and executing computer execution instructions and is controlled by the processor 101 to execute.
The memory 103 may be separate and coupled to the processor via the communication line 102. The memory 103 may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an electrically Erasable EPROM (EEPROM), or a flash memory. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. By way of example, and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM). It should be noted that the memory of the systems and devices described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
A communication interface 104 for communicating with other devices or a communication network. The communication network may be an ethernet, a Radio Access Network (RAN), or a Wireless Local Area Network (WLAN), a Bluetooth (BT), a Global Navigation Satellite System (GNSS), a Frequency Modulation (FM), a Near Field Communication (NFC), an infrared technology (infrared, IR), or the like.
The following describes a tracing method provided by an embodiment of the present invention with reference to the communication system shown in fig. 1 and the tracing apparatus 100 shown in fig. 2.
As shown in fig. 3, the tracing method provided in the embodiment of the present invention includes:
s301, the trace back device 100 receives the trace back request sent by the user equipment 700.
Wherein, the tracing request comprises an article identifier of the article to be traced.
Illustratively, the tracing device 100 receives a tracing request which is sent by the user equipment 700 and carries an industrial internet identifier of an article to be traced.
S302, the tracing device 100 determines first information according to the article identifier of the article to be traced.
The first information is article information corresponding to an article identifier of an article to be traced stored in a server (article information server 300).
Illustratively, the tracing apparatus 100 sends the received industrial internet identification of the article to be traced and an article information query request to the article information server 300. The article information server 300, after receiving the industrial internet identification of the article to be traced and the article information query request, queries the article information corresponding to the industrial internet identification of the article to be traced through the industrial internet identification, and then sends the article information corresponding to the industrial internet identification of the article to be traced to the tracing device 100 after querying the article information corresponding to the industrial internet identification of the article to be traced. Correspondingly, the tracing device 100 receives the article information corresponding to the industrial internet identifier of the article to be traced sent by the article information server 300.
It is worth mentioning that the article information may include status information of the article, location information of the article, and other information of the article (e.g., a manufacturer name of the article, a name of a person in charge of the article, a sales area of the article, a material of the article, a packaging manner of the article, etc.).
And S303, the tracing device 100 determines second information according to the article identifier of the article to be traced.
The second information is item information corresponding to the item identifier stored in the block chain 500.
Illustratively, the tracing apparatus 100 sends the received industrial internet identification of the article to be traced and an article information query request to the blockchain 500. After receiving the industrial internet identification of the article to be traced and the article information query request, the block chain 500 queries the article information corresponding to the industrial internet identification of the article to be traced through the industrial internet identification, and then sends the article information corresponding to the industrial internet identification of the article to be traced to the tracing device 100 after querying the article information corresponding to the industrial internet identification of the article to be traced. Correspondingly, the tracing device 100 receives the article information corresponding to the industrial internet identifier of the article to be traced sent by the block chain 500.
In a possible implementation manner, the tracing apparatus 100 may determine, according to the article identifier of the article to be traced, the encrypted information corresponding to the article identifier of the article to be traced, and then decrypt the encrypted information corresponding to the article identifier of the article to be traced to obtain the second information. Wherein the encrypted information includes second information.
Illustratively, the tracing apparatus 100 sends the received industrial internet identification of the article to be traced and an article information query request to the blockchain 500. After receiving the industrial internet identification of the article to be traced and the article information query request, the block chain 500 queries the encrypted information corresponding to the industrial internet identification of the article to be traced through the industrial internet identification of the article to be traced, and then sends the encrypted information corresponding to the industrial internet identification of the article to be traced to the tracing device 100 after querying the encrypted information corresponding to the industrial internet identification of the article to be traced. Correspondingly, the tracing device 100 receives the encrypted information corresponding to the industrial internet identifier of the article to be traced sent by the block chain 500, and then decrypts the encrypted information corresponding to the industrial internet identifier by using a decryption algorithm matched with the encrypted information to obtain the article information corresponding to the article identifier stored in the block chain 500.
S304, the trace back device 100 sends the first information to the user equipment 700 when the first information and the second information are consistent.
In a possible implementation manner, the tracing apparatus 100 may first generate a hash value of the first information through a hash algorithm, then generate a hash value of the second information through the hash algorithm, compare the hash value of the first information with the hash value of the second information, and send the first information to the user equipment 700 under the condition that the hash value of the first information is the same as the hash value of the second information.
In another possible implementation manner, the tracing apparatus 100 may determine whether the first information is tampered with through an algorithm relationship according to the acquired encryption information and the first information. The first information is then sent to the user device 700 in case the first information has not been tampered with.
In another possible implementation manner, the encrypted information acquired by the trace back device 100 is a hash value of the second information, in this case, the trace back device 100 may first generate a hash value of the first information through a hash algorithm, then compare the hash value of the first information with the hash value of the second information, and send the first information to the user equipment 700 when the hash value of the first information is the same as the hash value of the second information.
Accordingly, the user equipment 700 receives the first information. The user may view status information of the item, location information of the item, and other information of the item (e.g., a manufacturer name of the item, a name of a person in charge of the item, a sales area of the item, a material of the item, a packaging manner of the item, etc.) through the first information received by the user device 700.
Through S301 to S304, it can be seen that, after receiving a trace back request sent by a user equipment, according to an article identifier of an article to be traced in the trace back request, the embodiment of the present invention obtains article information corresponding to the article identifier of the article to be traced from a server and a block chain, respectively, and then sends the article information of the article to be traced in the server to the user equipment only when the article information obtained in the two ways is consistent. Due to the fact that the block chain has the characteristic of being not capable of being tampered, the article information of the article to be traced in the block chain is not tampered. The article information of the article to be traced in the server is consistent with the article information of the article to be traced in the block chain, which can indicate that the article information of the article to be traced in the server is not tampered, and in this case, the article information of the article to be traced in the server is sent to the user equipment, so that the article information to be traced sent to the user equipment by the tracing equipment is not tampered, the public confidence of the article tracing system is improved, and the problem that the public confidence of the existing article tracing system is insufficient is solved.
Referring to fig. 3, as shown in fig. 4, the tracing method provided in the embodiment of the present invention may further include:
s305, the trace back device 100 sends a trace back failure message to the user equipment 700 when the first information and the second information are inconsistent.
And the tracing failure message is used for representing that the article information of the article to be traced is tampered.
It is worth mentioning that the tracing back failure message can also be used to characterize which item information of the item to be traced back has been tampered with. For example, the tracing failure message may indicate that the location information of the article to be traced has been tampered with.
Accordingly, the user equipment 700 receives the trace back failure message sent by the trace back equipment 100. The user can know that the article information of the article to be traced is tampered by checking the tracing failure message received by the user equipment 700.
The scheme provided by the embodiment of the invention is mainly introduced from the perspective of a method. To implement the above functions, it includes hardware structures and/or software modules for performing the respective functions. Those of skill in the art will readily appreciate that the present invention can be implemented in hardware or a combination of hardware and computer software, with the exemplary elements and algorithm steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiment of the present invention, functional modules of the trace back device 100 may be divided according to the above method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, the division of the modules in the embodiment of the present invention is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
An embodiment of the present invention provides a tracing apparatus 100, configured to execute the tracing method described above, as shown in fig. 5, the tracing apparatus 100 includes: a receiving unit 501, a first determining unit 502, a second determining unit 503, and a first transmitting unit 504.
The receiving unit 501 is configured to receive a tracing request sent by a user equipment, where the tracing request includes an article identifier of an article to be traced. For example, in conjunction with fig. 3, the receiving unit 501 may be configured to perform S301.
A first determining unit 502, configured to determine first information according to the item identifier, where the first information is item information corresponding to the item identifier stored in the server. For example, in conjunction with fig. 3, the first determination unit 502 may be configured to perform S302.
A second determining unit 503, configured to determine second information according to the item identifier, where the second information is item information corresponding to the item identifier stored in the block chain. For example, in conjunction with fig. 3, the second determining unit 503 may be configured to perform S303.
A first sending unit 504, configured to send the first information to the user equipment if the first information and the second information are consistent. For example, in conjunction with fig. 3, the first sending unit 504 may be configured to perform S304.
The second determining unit 503 is specifically configured to:
and determining the encrypted information according to the article identifier, wherein the encrypted information comprises second information.
And decrypting the encrypted information to obtain second information.
As shown in fig. 5, the trace back apparatus 100 may further include: and a second transmitting unit 505.
A second sending unit 505, configured to send a trace back failure message to the user equipment when the first information and the second information are inconsistent, where the trace back failure message is used to indicate that the article information of the article to be traced back has been tampered. For example, in conjunction with fig. 4, the second sending unit 505 may be configured to execute S305.
Specifically, as shown in fig. 2 and 5. The receiving unit 501, the first determining unit 502, the second determining unit 503, the first sending unit 504, and the second sending unit 505 in fig. 5 call the program in the memory 103 via the communication line 102 by the processor 101 in fig. 2 to execute the tracing back method described above.
It should be understood that, in various embodiments of the present invention, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented using a software program, may 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. The processes or functions according to embodiments of the present invention occur, in whole or in part, when computer-executable instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). Computer-readable storage media can be any available media that can be accessed by a computer or can comprise one or more data storage devices, such as servers, data centers, and the like, that can be integrated with the media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided by the present invention, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.