[go: up one dir, main page]

CN110502922B - Article circulation link tracing method and device based on block chain and electronic equipment - Google Patents

Article circulation link tracing method and device based on block chain and electronic equipment Download PDF

Info

Publication number
CN110502922B
CN110502922B CN201910742764.0A CN201910742764A CN110502922B CN 110502922 B CN110502922 B CN 110502922B CN 201910742764 A CN201910742764 A CN 201910742764A CN 110502922 B CN110502922 B CN 110502922B
Authority
CN
China
Prior art keywords
data
layer code
layer
block
link
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.)
Expired - Fee Related
Application number
CN201910742764.0A
Other languages
Chinese (zh)
Other versions
CN110502922A (en
Inventor
谢军
曹胜虎
邢有涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Yuhu Information Technology Co ltd
Original Assignee
Shanghai Yuhu Information 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 Yuhu Information Technology Co ltd filed Critical Shanghai Yuhu Information Technology Co ltd
Priority to CN201910742764.0A priority Critical patent/CN110502922B/en
Publication of CN110502922A publication Critical patent/CN110502922A/en
Application granted granted Critical
Publication of CN110502922B publication Critical patent/CN110502922B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6227Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database where protection concerns the structure of data, e.g. records, types, queries
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • G06K17/0029Methods 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 the arrangement being specially adapted for wireless interrogation of grouped or bundled articles tagged with wireless record carriers
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/02Agriculture; Fishing; Forestry; Mining
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • General Health & Medical Sciences (AREA)
  • General Business, Economics & Management (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Accounting & Taxation (AREA)
  • Primary Health Care (AREA)
  • Agronomy & Crop Science (AREA)
  • Animal Husbandry (AREA)
  • Marine Sciences & Fisheries (AREA)
  • Mining & Mineral Resources (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • Human Resources & Organizations (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Tourism & Hospitality (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Databases & Information Systems (AREA)
  • Bioethics (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本公开涉及一种基于区块链的物品流通环节追溯方法、装置、电子设备及计算机可读介质。该方法包括:获取物品的物联网数据和环节标识;通过所述物联网数据生成区块数据,并将所述区块数据上传至区块链系统;通过所述环节标识生成多层码标签;将所述区块数据、所述多层码标签和所述物品相关联;以及通过所述多层码标签对所述物品的流通环节进行追溯。本公开涉及的基于区块链的物品流通环节追溯方法、装置、电子设备及计算机可读介质,在物品的流通环节,用户既可以扫描查询在本环节之前的指定的区块的数据信息,还可以记录本环节的相应数据,便于未来的进一步追溯和可信查验。

The present disclosure relates to a blockchain-based tracing method, device, electronic equipment and computer-readable medium for article circulation links. The method includes: obtaining the Internet of Things data and link identification of the item; generating block data through the Internet of Things data, and uploading the block data to the blockchain system; generating a multi-layer code label through the link identification; The block data, the multi-layer code label and the article are associated; and the circulation link of the article is traced through the multi-layer code label. This disclosure involves a blockchain-based traceability method, device, electronic device, and computer-readable medium for the circulation of items. During the circulation of items, users can scan and query the data information of the designated blocks before this link, and also The corresponding data of this link can be recorded to facilitate further traceability and credible inspection in the future.

Description

基于区块链的物品流通环节追溯方法、装置及电子设备Blockchain-based traceability methods, devices and electronic equipment for items in circulation

技术领域Technical field

本公开涉及计算机信息处理领域,具体而言,涉及一种基于区块链的物品流通环节追溯方法、装置、电子设备及计算机可读介质。The present disclosure relates to the field of computer information processing, and specifically, to a blockchain-based tracing method, device, electronic equipment, and computer-readable medium for article circulation links.

背景技术Background technique

现有农副食品的安全是目前社会的热点问题。农产品质量安全问题涉及到产地环境、生产、收获、加工、贮藏、运输、销售、监管、执法等诸多环节。农产品质量安全主要风险来源有产地环境污染、农业投入品残留、生产及加工过程中非法添加违禁物质、病原微生物及寄生虫污染、制假售假、动植物疫病、农产品自身毒素及其代谢产物,以及收贮运过程中原料、产品、包装、设备污染等。The safety of existing agricultural and sideline foods is a hot issue in society at present. Agricultural product quality and safety issues involve many aspects such as the environment of origin, production, harvesting, processing, storage, transportation, sales, supervision, and law enforcement. The main risk sources for the quality and safety of agricultural products include environmental pollution in the place of production, residues of agricultural inputs, illegal addition of prohibited substances during production and processing, contamination by pathogenic microorganisms and parasites, counterfeiting and selling, animal and plant diseases, agricultural products’ own toxins and their metabolites. As well as contamination of raw materials, products, packaging, and equipment during collection, storage, and transportation.

目前已经有一些区块链的技术应用到农产品的溯源中,但是产品包装中往往应用到一些二维码作为溯源入口,目前这些溯源方法存在以下问题:At present, some blockchain technologies have been applied to the traceability of agricultural products, but some QR codes are often used in product packaging as traceability entrances. Currently, these traceability methods have the following problems:

1)现在的物品溯源的二维码很容易防制,特别是可以通过拍照打印,很容易仿造出一模一样的二维码标签,然后将标签贴到假冒伪劣的产品上,用户很难辨别,特别需要一种可以链接区块链技术并实现记录食品在整个物流链过程中的数据检查的新的码技术;1) The current QR code for item traceability is easy to prevent, especially by taking a photo and printing it. It is easy to forge an identical QR code label, and then paste the label on fake and shoddy products. It is difficult for users to distinguish, especially There is a need for a new coding technology that can link to blockchain technology and enable data inspection to record food throughout the entire logistics chain;

2)现有的二维码都是一个简单入口,用户扫码后,用户就会获得一个链接或者弹开一个App及网页之类的后台。现在也有一些应用到区块链记录到产品的整个过程,但是缺少带时间和空间的追溯技术,无法实现多维度的可信的追溯系统。2) Existing QR codes are a simple entrance. After the user scans the code, the user will get a link or pop up a backend such as an app or web page. There are also some applications that use blockchain to record the entire process of products, but the lack of traceability technology with time and space makes it impossible to achieve a multi-dimensional and credible traceability system.

因此,需要一种新的基于区块链的物品流通环节追溯方法、装置、电子设备及计算机可读介质。Therefore, a new blockchain-based traceability method, device, electronic equipment and computer-readable medium for item circulation is needed.

在所述背景技术部分公开的上述信息仅用于加强对本公开的背景的理解,因此它可以包括不构成对本领域普通技术人员已知的现有技术的信息。The above information disclosed in the Background section is only for enhancement of understanding of the context of the disclosure and therefore it may contain information that does not form the prior art that is already known to a person of ordinary skill in the art.

发明内容Contents of the invention

有鉴于此,本公开提供一种基于区块链的物品流通环节追溯方法、装置、电子设备及计算机可读介质,在物品的流通环节,用户既可以扫描查询在本环节之前的指定的区块的数据信息,还可以记录本环节的相应数据,便于未来的进一步追溯和可信查验。In view of this, the present disclosure provides a blockchain-based tracing method, device, electronic device, and computer-readable medium for items in circulation. During the circulation of items, users can scan and query the designated blocks before this link. The data information of this link can also be recorded to facilitate further traceability and trustworthy inspection in the future.

本公开的其他特性和优点将通过下面的详细描述变得显然,或部分地通过本公开的实践而习得。Additional features and advantages of the disclosure will be apparent from the following detailed description, or, in part, may be learned by practice of the disclosure.

根据本公开的一方面,提出一种基于区块链的物品流通环节追溯方法,该方法包括:获取物品的物联网数据和环节标识;通过所述物联网数据生成区块数据,并将所述区块数据上传至区块链系统;通过所述环节标识生成多层码标签;将所述区块数据、所述多层码标签和所述物品相关联;以及通过所述多层码标签对所述物品的流通环节进行追溯。According to one aspect of the present disclosure, a blockchain-based tracing method for item circulation links is proposed. The method includes: obtaining the Internet of Things data and link identifiers of the items; generating block data through the Internet of Things data, and converting the Upload the block data to the blockchain system; generate a multi-layer code label through the link identifier; associate the block data, the multi-layer code label and the item; and use the multi-layer code label to The circulation links of the items are traced.

在本公开的一种示例性实施例中,通过所述环节标识生成多层码标签包括:通过所述环节标识生成单层码标识;以及将所述单层码标识打印在预设的单层码标签上以生成所述多层码标签。In an exemplary embodiment of the present disclosure, generating a multi-layer code label through the link identifier includes: generating a single-layer code label through the link identifier; and printing the single-layer code label on a preset single layer code label to generate the multi-layer code label.

在本公开的一种示例性实施例中,将所述区块数据、所述多层码标签和所述物品相关联包括:将所述区块数据与所述单层码标识相关联;以及将所述多层码标签与所述物品相关联。In an exemplary embodiment of the present disclosure, associating the block data, the multi-layer code label and the item includes: associating the block data with the single-layer code identification; and The multi-layer code label is associated with the item.

在本公开的一种示例性实施例中,将所述区块数据与所述单层码标识相关联包括:通过区块标识表将所述区块数据与所述单层码标识相关联;其中,所述区块标识表包括所述区块数据的表头标识、所述单层码标识和有效时间。In an exemplary embodiment of the present disclosure, associating the block data with the single-layer code identifier includes: associating the block data with the single-layer code identifier through a block identifier table; Wherein, the block identification table includes the header identification of the block data, the single-layer code identification and the valid time.

在本公开的一种示例性实施例中,通过所述多层码标签对所述物品的流通环节进行追溯包括:接收来自客户端的数据访问申请,所述数据访问申请中包括当前时间和单层码标识;基于所述当前时间和单层码标识判断所述数据访问申请是否符合预设规则;以及在符合预设规则时,将所述单层码标识对应的区块数据发送至所述客户端。In an exemplary embodiment of the present disclosure, tracing the circulation link of the item through the multi-layer code tag includes: receiving a data access application from the client, the data access application including the current time and a single layer code identification; determine whether the data access application complies with the preset rules based on the current time and the single-layer code identification; and when the preset rules are met, send the block data corresponding to the single-layer code identification to the customer end.

在本公开的一种示例性实施例中,基于所述当前时间和单层码标识判断所述数据访问申请是否符合预设规则包括:将所述单层码标识与区块标识表中的单层码标识进行比对;在比对一致时,判断所述当前时间是否超出区块标识表中的有效时间范围;以及在未超出所述有效时间范围时确定所述数据访问申请符合预设规则。In an exemplary embodiment of the present disclosure, determining whether the data access application complies with preset rules based on the current time and a single-layer code identifier includes: comparing the single-layer code identifier with a single-layer code identifier in the block identifier table. Compare the layer code identifiers; when the comparison is consistent, determine whether the current time exceeds the effective time range in the block identification table; and determine whether the data access application complies with the preset rules when it does not exceed the effective time range. .

在本公开的一种示例性实施例中,获取物品的物联网数据和环节标识之前还包括:获取物品的数据上传申请,所述上传申请包括当前环节标识和目标环节标识;基于预设层级关系与当前环节标识、目标环节标识判断所述数据上传申请是否有效;在所述数据上传申请有效时,获取物品的所述物联网数据和所述环节标识。In an exemplary embodiment of the present disclosure, obtaining the Internet of Things data and link identifier of the item also includes: obtaining a data upload application for the item, the upload application including the current link identifier and the target link identifier; based on the preset hierarchical relationship Use the current link identifier and the target link identifier to determine whether the data upload application is valid; when the data upload application is valid, obtain the Internet of Things data and the link identifier of the item.

在本公开的一种示例性实施例中,获取物品的物联网数据和环节标识包括:通过智能传感器获取所述物品的物联网数据。In an exemplary embodiment of the present disclosure, obtaining the IoT data and link identification of the item includes: obtaining the IoT data of the item through a smart sensor.

在本公开的一种示例性实施例中,通过智能传感器获取所述物品的物联网数据包括以下至少一者:通过智能传感器获取物品的环节数据以生成所述物联网数据;通过智能传感器获取物品的状态数据以生成所述物联网数据;以及通过智能传感器获取物品的位置数据以生成所述物联网数据。In an exemplary embodiment of the present disclosure, acquiring the IoT data of the item through a smart sensor includes at least one of the following: acquiring link data of the item through a smart sensor to generate the IoT data; acquiring the item through a smart sensor status data to generate the Internet of Things data; and obtain location data of items through smart sensors to generate the Internet of Things data.

根据本公开的一方面,提出一种基于区块链的物品流通环节追溯装置,该装置包括:数据模块,用于获取物品的物联网数据和环节标识;上传模块,用于通过所述物联网数据生成区块数据,并将所述区块数据上传至区块链系统;标签模块,用于通过所述环节标识生成多层码标签;以及关联模块,用于将所述区块数据、所述多层码标签和所述物品相关联,以通过所述多层码标签对所述物品的流通环节进行追溯。According to one aspect of the present disclosure, a blockchain-based item circulation link tracing device is proposed. The device includes: a data module for obtaining the IoT data and link identification of the item; an upload module for passing the IoT The data generates block data and uploads the block data to the blockchain system; a label module is used to generate multi-layer code labels through the link identification; and an association module is used to combine the block data and all the The multi-layer code label is associated with the article, so that the circulation link of the article can be traced through the multi-layer code label.

根据本公开的一方面,提出一种电子设备,该电子设备包括:一个或多个处理器;存储装置,用于存储一个或多个程序;当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现如上文的方法。According to one aspect of the present disclosure, an electronic device is proposed, which includes: one or more processors; a storage device for storing one or more programs; when one or more programs are processed by one or more processors Execution causes one or more processors to implement the method as above.

根据本公开的一方面,提出一种计算机可读介质,其上存储有计算机程序,该程序被处理器执行时实现如上文中的方法。According to one aspect of the present disclosure, a computer-readable medium is proposed, on which a computer program is stored. When the program is executed by a processor, the method as above is implemented.

根据本公开的基于区块链的物品流通环节追溯方法、装置、电子设备及计算机可读介质,通过物联网数据生成区块数据,并将所述区块数据上传至区块链系统;通过环节标识生成多层码标签;将所述区块数据、所述多层码标签和所述物品相关联;以及通过所述多层码标签对所述物品的流通环节进行追溯的方式,在物品的流通环节,用户既可以扫描查询在本环节之前的指定的区块的数据信息,还可以记录本环节的相应数据,便于未来的进一步追溯和可信查验。According to the blockchain-based article circulation link traceability method, device, electronic equipment and computer-readable medium of the present disclosure, block data is generated through Internet of Things data, and the block data is uploaded to the blockchain system; through the link The identification generates a multi-layer code label; associating the block data, the multi-layer code label and the item; and tracing the circulation link of the article through the multi-layer code label. In the circulation link, users can not only scan and query the data information of the designated blocks before this link, but also record the corresponding data in this link to facilitate further traceability and trustworthy inspection in the future.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本公开。It should be understood that the above general description and the following detailed description are only exemplary and do not limit the present disclosure.

附图说明Description of the drawings

通过参照附图详细描述其示例实施例,本公开的上述和其它目标、特征及优点将变得更加显而易见。下面描述的附图仅仅是本公开的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。The above and other objects, features and advantages of the present disclosure will become more apparent by describing in detail example embodiments thereof with reference to the accompanying drawings. The drawings described below are only some embodiments of the present disclosure. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without exerting creative efforts.

图1是根据一示例性实施例示出的一种基于区块链的物品流通环节追溯方法及装置的系统框图。Figure 1 is a system block diagram of a blockchain-based article circulation link traceability method and device according to an exemplary embodiment.

图2是根据一示例性实施例示出的一种基于区块链的物品流通环节追溯方法及装置的应用场景示意图。Figure 2 is a schematic diagram of an application scenario of a blockchain-based article circulation link traceability method and device according to an exemplary embodiment.

图3是根据一示例性实施例示出的一种基于区块链的物品流通环节追溯方法的流程图。Figure 3 is a flow chart of a blockchain-based traceability method for article circulation links according to an exemplary embodiment.

图4是根据一示例性实施例示出的一种基于区块链的物品流通环节追溯方法的流程图。Figure 4 is a flow chart of a blockchain-based traceability method for article circulation links according to an exemplary embodiment.

图5是根据另一示例性实施例示出的一种基于区块链的物品流通环节追溯方法的示意图。Figure 5 is a schematic diagram of a blockchain-based traceability method for article circulation links according to another exemplary embodiment.

图6是根据一示例性实施例示出的一种基于区块链的物品流通环节追溯装置的框图。Figure 6 is a block diagram of a blockchain-based article circulation link traceability device according to an exemplary embodiment.

图7是根据一示例性实施例示出的一种电子设备的框图。FIG. 7 is a block diagram of an electronic device according to an exemplary embodiment.

图8是根据一示例性实施例示出的一种计算机可读介质的框图。Figure 8 is a block diagram of a computer-readable medium according to an exemplary embodiment.

具体实施方式Detailed ways

现在将参考附图更全面地描述示例实施例。然而,示例实施例能够以多种形式实施,且不应被理解为限于在此阐述的实施例;相反,提供这些实施例使得本公开将全面和完整,并将示例实施例的构思全面地传达给本领域的技术人员。在图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in various forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concepts of the example embodiments. To those skilled in the art. The same reference numerals in the drawings represent the same or similar parts, and thus their repeated description will be omitted.

此外,所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施例中。在下面的描述中,提供许多具体细节从而给出对本公开的实施例的充分理解。然而,本领域技术人员将意识到,可以实践本公开的技术方案而没有特定细节中的一个或更多,或者可以采用其它的方法、组元、装置、步骤等。在其它情况下,不详细示出或描述公知方法、装置、实现或者操作以避免模糊本公开的各方面。Furthermore, the described features, structures or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to provide a thorough understanding of embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other instances, well-known methods, apparatus, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the present disclosure.

附图中所示的方框图仅仅是功能实体,不一定必须与物理上独立的实体相对应。即,可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. That is, these functional entities may be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and/or processor devices and/or microcontroller devices. entity.

附图中所示的流程图仅是示例性说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解,而有的操作/步骤可以合并或部分合并,因此实际执行的顺序有可能根据实际情况改变。The flowcharts shown in the drawings are only illustrative, and do not necessarily include all contents and operations/steps, nor must they be performed in the order described. For example, some operations/steps can be decomposed, and some operations/steps can be merged or partially merged, so the actual order of execution may change according to the actual situation.

应理解,虽然本文中可能使用术语第一、第二、第三等来描述各种组件,但这些组件不应受这些术语限制。这些术语乃用以区分一组件与另一组件。因此,下文论述的第一组件可称为第二组件而不偏离本公开概念的教示。如本文中所使用,术语“及/或”包括相关联的列出项目中的任一个及一或多者的所有组合。It will be understood that, although the terms first, second, third, etc. may be used herein to describe various components, these components should not be limited by these terms. These terms are used to distinguish one component from another component. Accordingly, a first component discussed below may be termed a second component without departing from the teachings of the presently disclosed concepts. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.

本领域技术人员可以理解,附图只是示例实施例的示意图,附图中的模块或流程并不一定是实施本公开所必须的,因此不能用于限制本公开的保护范围。Those skilled in the art can understand that the accompanying drawings are only schematic diagrams of exemplary embodiments, and the modules or processes in the accompanying drawings are not necessarily necessary to implement the present disclosure, and therefore cannot be used to limit the scope of protection of the present disclosure.

图1是根据一示例性实施例示出的一种基于区块链的物品流通环节追溯方法及装置的系统框图。Figure 1 is a system block diagram of a blockchain-based article circulation link traceability method and device according to an exemplary embodiment.

如图1所示,系统架构100可以包括物流终端设备101、102、103,网络104和服务器105、用户终端设备106、107、108。网络104用以在物流终端设备101、102、103和服务器105之间提供通信链路的介质。网络104还用以在用户终端设备101、102、103和服务器105之间提供通信链路的介质;网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in Figure 1, the system architecture 100 may include logistics terminal equipment 101, 102, 103, a network 104 and server 105, and user terminal equipment 106, 107, 108. The network 104 is used as a medium for providing communication links between the logistics terminal equipment 101, 102, 103 and the server 105. The network 104 is also used to provide a medium for communication links between the user terminal devices 101, 102, 103 and the server 105; the network 104 may include various connection types, such as wired, wireless communication links, optical fiber cables, etc.

物流端的用户可以使用物流终端设备101、102、103通过网络104与服务器105交互,以接收或发送消息等。终端设备101、102、103上可以安装有各种通讯客户端应用。Users on the logistics side can use logistics terminal devices 101, 102, 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications can be installed on the terminal devices 101, 102, and 103.

物流终端设备101、102、103可以是具有显示屏并且支持网页浏览的各种电子设备,包括但不限于智能手机、平板电脑、膝上型便携计算机和台式计算机等等。Logistics terminal devices 101, 102, and 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and so on.

物流终端设备101、102、103中还可以包括智能传感器,智能传感器,可采集相应的有价值的数据,比如在生产环节,采集诸如光线、PH值、水质、空气等环境的数据、还有各种视频、生产加工数据等,而在运输环境,需要采集各种运输过程的温湿度、震动等数据,这些数据成为溯源等有价值的数据。Logistics terminal equipment 101, 102, 103 can also include smart sensors, which can collect corresponding valuable data, such as environmental data such as light, PH value, water quality, air, etc. in the production process, as well as various videos, production and processing data, etc. In the transportation environment, it is necessary to collect temperature, humidity, vibration and other data during various transportation processes. These data become valuable data such as traceability.

用户可以使用用户终端设备106、107、108通过网络104与服务器105交互,以查询当前的物品的物流信息等。用户终端设备106、107、108上可以安装有各种通讯客户端应用。Users can use user terminal devices 106, 107, 108 to interact with the server 105 through the network 104 to query the current logistics information of the items, etc. Various communication client applications can be installed on the user terminal devices 106, 107, and 108.

用户终端设备106、107、108可以是具有显示屏并且支持网页浏览的各种电子设备,包括但不限于智能手机、平板电脑、膝上型便携计算机和台式计算机等等。The user terminal devices 106, 107, and 108 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

服务器105可以是提供各种服务的服务器,例如对用户利用物流终端设备101、102、103所上传的物品物流信息进行存储的后台管理服务器。后台管理服务器可以对物品在各个流通环节的状态进行记录或者分析等处理,并将上述信息实时存储在区块链中。The server 105 may be a server that provides various services, such as a backend management server that stores item logistics information uploaded by users using the logistics terminal devices 101, 102, and 103. The backend management server can record or analyze the status of items in various circulation links, and store the above information in the blockchain in real time.

服务器105可例如由物流终端设备101、102、103获取物品的物联网数据和环节标识;服务器105可例如通过所述物联网数据生成区块数据,并将所述区块数据上传至区块链系统;服务器105可例如通过所述环节标识生成多层码标签;服务器105可例如将所述区块数据、所述多层码标签和所述物品相关联;服务器105可例如通过所述多层码标签对所述物品的流通环节进行追溯。The server 105 can, for example, obtain the Internet of Things data and link identifiers of the items from the logistics terminal devices 101, 102, and 103; the server 105 can, for example, generate block data through the Internet of Things data and upload the block data to the blockchain. System; the server 105 can, for example, generate a multi-layer code label through the link identifier; the server 105 can, for example, associate the block data, the multi-layer code label and the item; the server 105 can, for example, use the multi-layer code label. Code tags trace the circulation of the items.

服务器105可以是提供各种服务的服务器,例如对用户利用用户终端设备106、107、108所浏览的物品流程信息跟踪网站提供支持的后台管理服务器。后台管理服务器可以对物品在各个流通环节的状态进行记录或者分析等处理,并将上述信息实时存储在区块链中以供用户查询。The server 105 may be a server that provides various services, such as a backend management server that provides support for the item flow information tracking website browsed by the user using the user terminal devices 106, 107, and 108. The background management server can record or analyze the status of items in various circulation links, and store the above information in the blockchain in real time for user query.

服务器105可例如接收来自用户终端设备106、107、108的数据访问申请,所述数据访问申请中包括当前时间和单层码标识;服务器105可例如基于所述当前时间和单层码标识判断所述数据访问申请是否符合预设规则;服务器105可例如在符合预设规则时,将所述单层码标识对应的区块数据发送至所述客户端。The server 105 may, for example, receive a data access application from the user terminal devices 106, 107, 108. The data access application includes the current time and a single-layer code identifier; the server 105 may, for example, determine the requested data based on the current time and the single-layer code identifier. Whether the data access application complies with the preset rules; the server 105 may, for example, send the block data corresponding to the single-layer code identification to the client when the preset rules are met.

服务器105可以是一个实体的服务器,还可例如为多个服务器组成,服务器105中的一部分可例如作为本公开中的数据处理系统,用于获取物品的物联网数据或者接收来自客户端的请求;以及服务器105中的一部分还可例如作为本公开中的区块链系统,用于存储物联网数据等。The server 105 may be an entity server, or may be composed of multiple servers, for example. A part of the server 105 may be used as a data processing system in this disclosure, for obtaining Internet of Things data of items or receiving requests from clients; and A part of the server 105 may also be used as a blockchain system in the present disclosure, for storing Internet of Things data and the like.

需要说明的是,本公开实施例所提供的基于区块链的物品流通环节追溯方法可以由服务器105执行,相应地,物品流通环节追溯装置可以设置于服务器105中。而提供给用户进行物流信息上传或下载的网页端一般位于物流终端设备101、102、103或用户终端设备106、107、108中。It should be noted that the blockchain-based article circulation link traceability method provided by the embodiment of the present disclosure can be executed by the server 105. Correspondingly, the article circulation link traceability device can be provided in the server 105. The web page provided for users to upload or download logistics information is generally located in logistics terminal equipment 101, 102, 103 or user terminal equipment 106, 107, 108.

图2是根据一示例性实施例示出的一种基于区块链的物品流通环节追溯方法及装置的应用场景示意图。Figure 2 is a schematic diagram of an application scenario of a blockchain-based article circulation link traceability method and device according to an exemplary embodiment.

本公开的基于区块链的物品流通环节追溯方法及装置工作流程可分为3部分:The disclosed blockchain-based article circulation link traceability method and device workflow can be divided into three parts:

1)各个环节的数据采集系统,采集各种需要上链并实现溯源的数据;可例如,在各个流通的各个环节中,增加各类型的智能传感器,采集相应的有价值的数据,比如在生产环节,采集诸如光线、PH值、水质、空气等环境的数据、还有各种视频、生产加工数据等,而在运输环境,需要采集各种运输过程的温湿度、震动等数据,这些数据可以存在云端,最后上链,成为溯源等价值数据。1) The data collection system in each link collects various data that need to be uploaded and traced; for example, various types of smart sensors can be added to each link of circulation to collect corresponding valuable data, such as in production During the transportation process, environmental data such as light, pH value, water quality, air, etc., as well as various videos, production and processing data, etc. need to be collected. In the transportation environment, data such as temperature, humidity, and vibration during various transportation processes need to be collected. These data can It exists in the cloud and is finally uploaded to the chain to become valuable data such as traceability.

2)打印机打码及生成码层序号;通过专用的打印机设备,可以打出多层码标签,直接将多层码打印在封口处,打印会将码表面的相应的点,自动构成并命名为一个码层,可以根据需要,在电脑或者打印机里进行定义,不同的码层,可以对应链上不同的数据。2) Printer codes and generates code layer serial numbers; through special printer equipment, multi-layer code labels can be printed, and the multi-layer code can be printed directly on the seal. The printing will automatically form and name the corresponding points on the code surface into a The code layer can be defined on a computer or printer as needed. Different code layers can correspond to different data on the chain.

物品生产出来后,可根据其物品/产品的流通要求,事先可以定义好多层码块的层数,每个码块可以存储或指向不同的数据块,同时,专用的打印码的机器,直接将多层码打印在封口处,可以打印针对本物品的多层码标签,同时打印的时候给这个标签分配一个ID,这个与标签对应的唯一的ID会存在区块链上,同时这些数据块对应着区块链上的区块,这样在物品的流通环节,用户既可以用App扫描查询在本环节之前的指定的区块的数据信息,还可以记录本环节的相应数据,便于未来的进一步追溯和可信查验。After the item is produced, the number of layers of multi-layer code blocks can be defined in advance according to the circulation requirements of the item/product. Each code block can store or point to a different data block. At the same time, a dedicated code printing machine can directly print the code. The multi-layer code is printed on the seal. You can print a multi-layer code label for this item. At the same time, the label is assigned an ID when printing. This unique ID corresponding to the label will be stored on the blockchain, and these data blocks correspond to Blocks on the blockchain, so that during the circulation of items, users can use the App to scan and query the data information of the designated blocks before this link, and can also record the corresponding data of this link to facilitate further tracing in the future. and credibility checks.

而且,每一个区块在存储的时候会有一个时间戳信息,这样即使有不法商人在该物品流通的某一个环节通过拍照和打印,贴上一样的码标签,也不会伪造。Moreover, each block will have a timestamp information when it is stored, so that even if an unscrupulous businessman takes photos and prints the same code label at a certain point in the circulation of the item, it will not be forged.

因为,某不法商人A在物品流通的N环节通过拍照和打印,贴上一样的第N层的多层码标签,但是这个时候,物品已经流通到了N+1环节,该物品对应的多层码标签为N+1层的码标签,第N层的多层码标签已经失效,在有人扫描不法商人提供的第N层的多层码标签时,区块链系统就会提示该数据是伪造的,或者该数据已经失效。This is because an unscrupulous businessman A attached the same multi-layer code label of the Nth layer by taking pictures and printing in the N link of item circulation. However, at this time, the item had already circulated to the N+1 link. The multi-layer code corresponding to the item The code label labeled with layer N+1 and the multi-layer code label at layer N have expired. When someone scans the multi-layer code label at layer N provided by an unscrupulous businessman, the blockchain system will prompt that the data is forged. , or the data has expired.

更进一步的,某不法商人A在物品流通的N环节通过拍照和打印,贴上一样的第N层的多层码标签,这个时候,物品虽然还未流通到N+1环节,该物品对应时间戳已经超期,这意味着第N层的多层码标签已经失效,在有人扫描不法商人提供的第N层的多层码标签时,区块链系统就会提示该数据是超期的,或者该数据已经失效。其他人也就无法读取相应的真实数据,更无法伪造数据了。Furthermore, an unscrupulous businessman A took pictures and printed out the same N-layer multi-layer code label in the N stage of item circulation. At this time, although the item had not yet circulated to the N+1 stage, the item's corresponding time The stamp has expired, which means that the Nth layer of multi-layer code labels have expired. When someone scans the Nth layer of multi-layer code labels provided by unscrupulous merchants, the blockchain system will prompt that the data has expired, or that the data has expired. The data has expired. Others will not be able to read the corresponding real data, let alone forge the data.

3)溯源数据上链及码层序号对应标定,以及溯源系统读取链上数据进行溯源确证。在多层码打印完后,系统可以将先前的数据加密,得到的哈希值可以存在链上,同时在每个流通环境,不通的数据可以存到指定的码层上,同时溯源系统提供专用的读取多层码设备或者用智能手机App读取信息,也提供API,用户可以在他的系统或者读码设备上开发溯源界面。3) The traceability data is uploaded to the chain and the code layer serial number is correspondingly calibrated, and the traceability system reads the data on the chain for traceability confirmation. After the multi-layer code is printed, the system can encrypt the previous data and the resulting hash value can be stored on the chain. At the same time, in each circulation environment, unreasonable data can be stored in the designated code layer. At the same time, the traceability system provides a dedicated It also provides APIs for reading multi-layer code devices or using smart phone Apps to read information. Users can develop a traceability interface on their systems or code reading devices.

本公开的基于区块链的物品流通环节追溯方法,通过在专用的打印机打印出并定义出多层码,直接将多层码打印在物品的封口处,打印机会自动将马上的不通的数据点定义为不通的码层,这种码可以对应区块链的区块,存储着用户需要用来溯源或者确证的数据。The disclosed blockchain-based traceability method for item circulation links prints out and defines multi-layer codes on a dedicated printer, and directly prints the multi-layer codes on the seals of the items. The printer will automatically print out the immediately unreasonable data points. Defined as an unreasonable code layer, this code can correspond to the blocks of the blockchain and store the data that users need to trace or confirm.

本公开的基于区块链的物品流通环节追溯方法,数据上链并自动对应相应的码层,链上存取了相应的数据加密的哈希值,基于区块链一个区块中会存储上一个区块的数据,而且,同一个区块的数仅能写入一次的特征,本公开中的多层码只存取环节以前的数据,同一环节的数据不能两次写入,保证了数据不被伪造,也不能被仿造。其中,本公开的多层码可以通过专用设备或者智能手机读取码,也提供API供授权第三方读取相应的溯源数据。In the disclosed method for tracing the circulation of items based on the blockchain, the data is uploaded to the chain and automatically corresponds to the corresponding code layer. The corresponding data encrypted hash value is accessed on the chain. Based on the blockchain, a block will store the above The data of a block, and the same block can only be written once. The multi-layer code in this disclosure only accesses the data before the link, and the data of the same link cannot be written twice, ensuring that the data It cannot be counterfeited and cannot be counterfeited. Among them, the multi-layer code of the present disclosure can be read by a special device or a smartphone, and an API is also provided for authorized third parties to read the corresponding traceability data.

下面结合具体的实施例,来对本公开的基于区块链的物品流通环节追溯方法进行详细说明。The blockchain-based article circulation link traceability method of the present disclosure will be described in detail below with reference to specific embodiments.

图3是根据一示例性实施例示出的一种基于区块链的物品流通环节追溯方法的流程图。基于区块链的物品流通环节追溯方法30至少包括步骤S302至S310。Figure 3 is a flow chart of a blockchain-based traceability method for article circulation links according to an exemplary embodiment. The blockchain-based article circulation link traceability method 30 includes at least steps S302 to S310.

如图3所示,在S302中,获取物品的物联网数据和环节标识。可包括:通过智能传感器获取所述物品的物联网数据。As shown in Figure 3, in S302, the IoT data and link identification of the item are obtained. It may include: obtaining IoT data of the item through smart sensors.

在一个实施例中,通过智能传感器获取所述物品的物联网数据可具体包括:通过智能传感器获取物品的环节数据以生成所述物联网数据;通过智能传感器获取物品的状态数据以生成所述物联网数据;以及通过智能传感器获取物品的位置数据以生成所述物联网数据。In one embodiment, obtaining the IoT data of the item through a smart sensor may specifically include: obtaining link data of the item through a smart sensor to generate the IoT data; obtaining status data of the item through a smart sensor to generate the IoT data. Internet data; and obtaining location data of items through smart sensors to generate the Internet of Things data.

在S304中,通过所述物联网数据生成区块数据,并将所述区块数据上传至区块链系统。In S304, block data is generated from the Internet of Things data, and the block data is uploaded to the blockchain system.

区块链本质上是几种技术方案的统称,包括点对点的对等网络传输协议,密码学加密算法,分布式的共识机制,以及纳什均衡的博弈设计。基于这几种技术的结合,可以实现去中心化去信任的可靠数据库,使用算法证明机制来保证链上所记录信息的可追踪溯源,不可伪造,不可纂改。Blockchain is essentially a collective name for several technical solutions, including point-to-point peer-to-peer network transmission protocols, cryptographic encryption algorithms, distributed consensus mechanisms, and Nash equilibrium game designs. Based on the combination of these technologies, a decentralized and trustless reliable database can be realized, using an algorithmic proof mechanism to ensure that the information recorded on the chain is traceable and cannot be forged or tampered with.

区块链是一种按照时间顺序将数据区块以顺序相连的方式组合成的一种链式数据结构,并以密码学方式保证的不可篡改和不可伪造的分布式账本。广义来讲,区块链技术是利用块链式数据结构来验证与存储数据、利用分布式节点共识算法来生成和更新数据、利用密码学的方式保证数据传输和访问的安全、利用由自动化脚本代码组成的智能合约来编程和操作数据的一种全新的分布式基础架构与计算范式。Blockchain is a chain data structure that combines data blocks in a chronological manner and is cryptographically guaranteed to be an untamperable and unforgeable distributed ledger. Broadly speaking, blockchain technology uses block chain data structures to verify and store data, uses distributed node consensus algorithms to generate and update data, uses cryptography to ensure the security of data transmission and access, and uses automated scripts to A new distributed infrastructure and computing paradigm that uses smart contracts composed of code to program and manipulate data.

在本公开的一种示例性实施例中,通过所述物联网数据生成区块数据,并将所述区块数据上传至区块链系统包括:通过区块链协议将所述物联网数据进行加密处理;以及将加密处理之后的所述物联网数据储存至所述区块中。In an exemplary embodiment of the present disclosure, generating block data from the Internet of Things data and uploading the block data to the blockchain system includes: processing the Internet of Things data through a blockchain protocol. Encryption processing; and storing the encrypted Internet of Things data into the block.

其中,加密技术使用加密算法对原始数据进行加密,如RSA265,MD5,等。区块链自身拥有账户体系,并且给每一个账户分配一对公钥私钥。区块链会使用当前调用的用户的私钥对加密数据进行签名。然后存储到区块链数据结构中。最后区块链会为该数据返回一个唯一的区块链编码(哈希值)。该编码将在区块链中永久记录。Among them, encryption technology uses encryption algorithms to encrypt original data, such as RSA265, MD5, etc. The blockchain itself has an account system and assigns a pair of public and private keys to each account. The blockchain signs the encrypted data using the private key of the currently calling user. Then stored into the blockchain data structure. Finally, the blockchain will return a unique blockchain code (hash value) for the data. This code will be permanently recorded in the blockchain.

在S306中,通过所述环节标识生成多层码标签。可包括:通过所述环节标识生成单层码标识;以及将所述单层码标识打印在预设的单层码标签上以生成所述多层码标签。In S306, a multi-layer code label is generated based on the link identifier. It may include: generating a single-layer code identifier through the link identifier; and printing the single-layer code identifier on a preset single-layer code label to generate the multi-layer code label.

更进一步的,存储多层码的区块链系统,这个系统可以提供一个带时间轴的追溯技术,同时识别码不再是平面易仿造的,而是三维立体的,每一层代表一个站点(N),在这个站点上用户需扫码确认溯源信息或者是准备上传在供应链前一个环节(N-1~N)的数据。Furthermore, a blockchain system that stores multi-layer codes can provide a traceability technology with a timeline. At the same time, the identification code is no longer flat and easy to forge, but three-dimensional, with each layer representing a site ( N), on this site users need to scan the code to confirm the traceability information or prepare to upload data from the previous link in the supply chain (N-1~N).

在S308中,将所述区块数据、所述多层码标签和所述物品相关联。In S308, the block data, the multi-layer code tag and the item are associated.

在一个实施例中,将所述区块数据、所述多层码标签和所述物品相关联包括:将所述区块数据与所述单层码标识相关联;以及将所述多层码标签与所述物品相关联。In one embodiment, associating the block data, the multi-layer code tag and the item includes: associating the block data with the single-layer code identification; and associating the multi-layer code Tags are associated with the item.

其中,将所述区块数据与所述单层码标识相关联包括:通过区块标识表将所述区块数据与所述单层码标识相关联;其中,所述区块标识表包括所述区块数据的表头标识、所述单层码标识和有效时间。Wherein, associating the block data with the single-layer code identification includes: associating the block data with the single-layer code identification through a block identification table; wherein the block identification table includes the The header identifier of the block data, the single-layer code identifier and the validity time.

其中,将所述多层码标签与所述物品相关联包括:可直接将多层码打印在物品的封口处,Wherein, associating the multi-layer code label with the article includes: directly printing the multi-layer code on the seal of the article,

在S310中,通过所述多层码标签对所述物品的流通环节进行追溯。可包括:接收来自客户端的数据访问申请,所述数据访问申请中包括当前时间和单层码标识;基于所述当前时间和单层码标识判断所述数据访问申请是否符合预设规则;以及在符合预设规则时,将所述单层码标识对应的区块数据发送至所述客户端。In S310, the circulation link of the item is traced through the multi-layer code label. It may include: receiving a data access application from the client, the data access application including the current time and a single-layer code identifier; judging whether the data access application complies with the preset rules based on the current time and the single-layer code identifier; and When the preset rules are met, the block data corresponding to the single-layer code identification is sent to the client.

在一个实施例中,获取物品的物联网数据和环节标识之前还包括:获取物品的数据上传申请,所述上传申请包括当前环节标识和目标环节标识;基于预设层级关系与当前环节标识、目标环节标识判断所述数据上传申请是否有效;在所述数据上传申请有效时,获取物品的所述物联网数据和所述环节标识。In one embodiment, obtaining the IoT data and link identifier of the item also includes: obtaining a data upload application for the item. The upload application includes the current link identifier and the target link identifier; based on the preset hierarchical relationship and the current link identifier and target link identifier. The link identifier determines whether the data upload application is valid; when the data upload application is valid, the Internet of Things data and the link identifier of the item are obtained.

其中,专用的打印设备可以在打印时候,直接将多层码打印在封口处,可以自动将打印出来的点图设置成多层并定义层序号,然后层的序号和数据都存在区块链。还可在区块链系统中进行定义,后一层必须读取前一层的数据后再读入新的数据,这样就避免了被防制(因为同一层的数据无法被输入两次),同时在物品流通过程中,可以用来溯源和读取区块链数据,也来写入新的数据,这样就提供了一个完整的基于多层码的溯源系统。Among them, special printing equipment can directly print multi-layer codes on the seal during printing, and can automatically set the printed dot pattern into multiple layers and define layer serial numbers, and then the layer serial numbers and data are stored in the blockchain. It can also be defined in the blockchain system. The latter layer must read the data of the previous layer before reading new data. This avoids being prevented (because the data of the same layer cannot be entered twice). At the same time, during the circulation of items, it can be used to trace and read blockchain data, as well as write new data, thus providing a complete traceability system based on multi-layer codes.

根据本公开的基于区块链的物品流通环节追溯方法,通过物联网数据生成区块数据,并将所述区块数据上传至区块链系统;通过环节标识生成多层码标签;将所述区块数据、所述多层码标签和所述物品相关联;以及通过所述多层码标签对所述物品的流通环节进行追溯的方式,在物品的流通环节,用户既可以扫描查询在本环节之前的指定的区块的数据信息,还可以记录本环节的相应数据,便于未来的进一步追溯和可信查验。According to the blockchain-based article circulation link tracing method of the present disclosure, block data is generated through Internet of Things data, and the block data is uploaded to the blockchain system; multi-layer code labels are generated through link identifiers; and the The block data, the multi-layer code label and the item are associated; and the method of tracing the circulation link of the item through the multi-layer code label. During the circulation link of the item, the user can scan and query the item. The data information of the designated block before the link can also record the corresponding data of this link to facilitate further traceability and trustworthy inspection in the future.

应清楚地理解,本公开描述了如何形成和使用特定示例,但本公开的原理不限于这些示例的任何细节。相反,基于本公开公开的内容的教导,这些原理能够应用于许多其它实施例。It should be clearly understood that this disclosure describes how to make and use specific examples, but that the principles of the disclosure are not limited to any details of these examples. Rather, these principles can be applied to many other embodiments based on the teachings of this disclosure.

图4是根据另一示例性实施例示出的一种基于区块链的物品流通环节追溯方法的流程图。图4所示的流程是对图3所示的流程中S310“通过所述多层码标签对所述物品的流通环节进行追溯”的详细描述。Figure 4 is a flow chart of a blockchain-based traceability method for article circulation links according to another exemplary embodiment. The process shown in Figure 4 is a detailed description of S310 "Tracing the circulation link of the item through the multi-layer code label" in the process shown in Figure 3 .

如图4所示,在S402中,接收来自客户端的数据访问申请,所述数据访问申请中包括当前时间和单层码标识。As shown in Figure 4, in S402, a data access application is received from the client, and the data access application includes the current time and a single-layer code identifier.

在S404中,基于所述当前时间和单层码标识判断所述数据访问申请是否符合预设规则。可包括:将所述单层码标识与区块标识表中的单层码标识进行比对;在比对一致时,判断所述当前时间是否超出区块标识表中的有效时间范围;以及在未超出所述有效时间范围时确定所述数据访问申请符合预设规则。In S404, it is determined whether the data access application complies with preset rules based on the current time and the single-layer code identifier. It may include: comparing the single-layer code identifier with the single-layer code identifier in the block identifier table; when the comparison is consistent, determining whether the current time exceeds the valid time range in the block identifier table; and When the valid time range is not exceeded, it is determined that the data access application complies with the preset rules.

即为,在当前时间在预设的时间戳的有效时间范围内,当前上传的单层码标识即为当前区块数据所对应的层级标识,这个时候判断数据访问申请为有效的申请。That is, when the current time is within the valid time range of the preset timestamp, the currently uploaded single-layer code identification is the level identification corresponding to the current block data. At this time, the data access application is judged to be a valid application.

在S406中,在符合预设规则时,将所述单层码标识对应的区块数据发送至所述客户端。In S406, when the preset rules are met, the block data corresponding to the single-layer code identification is sent to the client.

图5是根据另一示例性实施例示出的一种基于区块链的物品流通环节追溯方法的示意图。图5所示的流程是对本公开的全过程的描述。Figure 5 is a schematic diagram of a blockchain-based traceability method for article circulation links according to another exemplary embodiment. The flow shown in Figure 5 is a description of the entire process of the present disclosure.

首先,生产端产生物品的物联网数据,该数据可为该物品的第一个区块数据,同时定义多层码标签的目标层数。在定义好目标层数之后,打印当前层的单层码标签。将第一个区块数据上传至云端,并且上传至区块链系统中,将区块链系统中的该区块与多层码标签中的当前层相关联。将多层码标签粘贴在物品的封口处,以进行下一个环节的流通。First, the production end generates the IoT data of the item, which can be the first block data of the item, and also defines the target number of layers of the multi-layer code label. After defining the target number of layers, print the single-layer code label of the current layer. Upload the first block data to the cloud and upload it to the blockchain system, and associate the block in the blockchain system with the current layer in the multi-layer code label. Attach the multi-layer code label to the seal of the item for circulation in the next step.

然后,在物品流通的第一个环节,实时获取流通的相关数据,该数据可为该物品的第二个区块数据,同时依据定义好的多层码标签的目标层数,为第二个区块数据分配单层码标签。将第二个区块数据上传云端,并上传至区块链系统中,将区块链系统中的第二个区块与多层码标签中的当前层相关联。同时将以往的区块数作废。将多层码标签粘贴在物品的封口处,以进行下一个环节的流通。Then, in the first step of item circulation, the relevant circulation data is obtained in real time. This data can be the second block data of the item. At the same time, based on the defined target layer number of the multi-layer code label, it can be the second block data of the item. Block data is assigned single-layer code labels. Upload the second block data to the cloud and to the blockchain system, and associate the second block in the blockchain system with the current layer in the multi-layer code label. At the same time, the previous block numbers will be invalidated. Attach the multi-layer code label to the seal of the item for circulation in the next step.

以此类推,直至商品到达目标流通环节,完成全过程的流通。By analogy, until the goods reach the target circulation link, the entire process of circulation is completed.

本领域技术人员可以理解实现上述实施例的全部或部分步骤被实现为由CPU执行的计算机程序。在该计算机程序被CPU执行时,执行本公开提供的上述方法所限定的上述功能。所述的程序可以存储于一种计算机可读存储介质中,该存储介质可以是只读存储器,磁盘或光盘等。Those skilled in the art can understand that all or part of the steps for implementing the above-described embodiments are implemented as computer programs executed by a CPU. When the computer program is executed by the CPU, the above-mentioned functions defined by the above-mentioned method provided by the present disclosure are performed. The program can be stored in a computer-readable storage medium, which can be a read-only memory, a magnetic disk or an optical disk.

此外,需要注意的是,上述附图仅是根据本公开示例性实施例的方法所包括的处理的示意性说明,而不是限制目的。易于理解,上述附图所示的处理并不表明或限制这些处理的时间顺序。另外,也易于理解,这些处理可以是例如在多个模块中同步或异步执行的。Furthermore, it should be noted that the above-mentioned drawings are only schematic illustrations of processes included in the methods according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is readily understood that the processes shown in the above figures do not indicate or limit the temporal sequence of these processes. In addition, it is also easy to understand that these processes may be executed synchronously or asynchronously in multiple modules, for example.

下述为本公开装置实施例,可以用于执行本公开方法实施例。对于本公开装置实施例中未披露的细节,请参照本公开方法实施例。The following are device embodiments of the present disclosure, which can be used to perform method embodiments of the present disclosure. For details not disclosed in the device embodiments of the disclosure, please refer to the method embodiments of the disclosure.

图6是根据一示例性实施例示出的一种基于区块链的物品流通环节追溯装置的框图。基于区块链的物品流通环节追溯装置60包括:数据模块602,上传模块604,标签模块606,关联模块608,追溯模块610。Figure 6 is a block diagram of a blockchain-based article circulation link traceability device according to an exemplary embodiment. The blockchain-based article circulation link traceability device 60 includes: a data module 602, an upload module 604, a label module 606, an association module 608, and a traceability module 610.

数据模块602用于获取物品的物联网数据和环节标识;The data module 602 is used to obtain the Internet of Things data and link identification of the item;

上传模块604用于通过所述物联网数据生成区块数据,并将所述区块数据上传至区块链系统;The upload module 604 is used to generate block data from the Internet of Things data and upload the block data to the blockchain system;

标签模块606用于通过所述环节标识生成多层码标签;以及The label module 606 is used to generate multi-layer code labels through the link identification; and

关联模块608用于将所述区块数据、所述多层码标签和所述物品相关联;The association module 608 is used to associate the block data, the multi-layer code tag and the item;

追溯模块610用于通过所述多层码标签对所述物品的流通环节进行追溯。The traceability module 610 is used to trace the circulation link of the item through the multi-layer code label.

根据本公开的基于区块链的物品流通环节追溯装置,通过物联网数据生成区块数据,并将所述区块数据上传至区块链系统;通过环节标识生成多层码标签;将所述区块数据、所述多层码标签和所述物品相关联;以及通过所述多层码标签对所述物品的流通环节进行追溯的方式,在物品的流通环节,用户既可以扫描查询在本环节之前的指定的区块的数据信息,还可以记录本环节的相应数据,便于未来的进一步追溯和可信查验。According to the blockchain-based article circulation link traceability device of the present disclosure, block data is generated through Internet of Things data, and the block data is uploaded to the blockchain system; multi-layer code labels are generated through link identifiers; and the The block data, the multi-layer code label and the item are associated; and the method of tracing the circulation link of the item through the multi-layer code label. During the circulation link of the item, the user can scan and query the item. The data information of the designated block before the link can also record the corresponding data of this link to facilitate further traceability and trustworthy inspection in the future.

图7是根据一示例性实施例示出的一种电子设备的框图。FIG. 7 is a block diagram of an electronic device according to an exemplary embodiment.

下面参照图7来描述根据本公开的这种实施方式的电子设备200。图7显示的电子设备200仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。An electronic device 200 according to this embodiment of the present disclosure is described below with reference to FIG. 7 . The electronic device 200 shown in FIG. 7 is only an example and should not bring any limitations to the functions and usage scope of the embodiments of the present disclosure.

如图7所示,电子设备200以通用计算设备的形式表现。电子设备200的组件可以包括但不限于:至少一个处理单元210、至少一个存储单元220、连接不同系统组件(包括存储单元220和处理单元210)的总线230、显示单元240等。As shown in Figure 7, electronic device 200 is embodied in the form of a general computing device. The components of the electronic device 200 may include, but are not limited to: at least one processing unit 210, at least one storage unit 220, a bus 230 connecting different system components (including the storage unit 220 and the processing unit 210), a display unit 240, and the like.

其中,所述存储单元存储有程序代码,所述程序代码可以被所述处理单元210执行,使得所述处理单元210执行本说明书上述电子处方流转处理方法部分中描述的根据本公开各种示例性实施方式的步骤。例如,所述处理单元210可以执行如图3,图4中所示的步骤。Wherein, the storage unit stores program code, and the program code can be executed by the processing unit 210, so that the processing unit 210 executes various exemplary methods according to the present disclosure described in the above-mentioned electronic prescription transfer processing method section of this specification. Implementation steps. For example, the processing unit 210 may perform the steps shown in FIG. 3 and FIG. 4 .

所述存储单元220可以包括易失性存储单元形式的可读介质,例如随机存取存储单元(RAM)2201和/或高速缓存存储单元2202,还可以进一步包括只读存储单元(ROM)2203。The storage unit 220 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 2201 and/or a cache storage unit 2202, and may further include a read-only storage unit (ROM) 2203.

所述存储单元220还可以包括具有一组(至少一个)程序模块2205的程序/实用工具2204,这样的程序模块2205包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。The storage unit 220 may also include a program/utility 2204 having a set of (at least one) program modules 2205 including, but not limited to: an operating system, one or more applications, other program modules, and programs. Data, each of these examples or some combination may include an implementation of a network environment.

总线230可以为表示几类总线结构中的一种或多种,包括存储单元总线或者存储单元控制器、外围总线、图形加速端口、处理单元或者使用多种总线结构中的任意总线结构的局域总线。Bus 230 may be a local area representing one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, a graphics acceleration port, a processing unit, or using any of a variety of bus structures. bus.

电子设备200也可以与一个或多个外部设备300(例如键盘、指向设备、蓝牙设备等)通信,还可与一个或者多个使得用户能与该电子设备200交互的设备通信,和/或与使得该电子设备200能与一个或多个其它计算设备进行通信的任何设备(例如路由器、调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口250进行。并且,电子设备200还可以通过网络适配器260与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。网络适配器260可以通过总线230与电子设备200的其它模块通信。应当明白,尽管图中未示出,可以结合电子设备200使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。Electronic device 200 may also communicate with one or more external devices 300 (e.g., keyboard, pointing device, Bluetooth device, etc.), may also communicate with one or more devices that enable a user to interact with electronic device 200, and/or with Any device that enables the electronic device 200 to communicate with one or more other computing devices (eg, router, modem, etc.). This communication may occur through input/output (I/O) interface 250. Furthermore, the electronic device 200 may also communicate with one or more networks (eg, a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet) through the network adapter 260. Network adapter 260 may communicate with other modules of electronic device 200 via bus 230. It should be understood that, although not shown in the figures, other hardware and/or software modules may be used in conjunction with electronic device 200, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives And data backup storage system, etc.

通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,如图8所示,根据本公开实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、或者网络设备等)执行根据本公开实施方式的上述方法。Through the above description of the embodiments, those skilled in the art can easily understand that the example embodiments described here can be implemented by software, or can be implemented by software combined with necessary hardware. Therefore, as shown in Figure 8, the technical solution according to the embodiment of the present disclosure can be embodied in the form of a software product, and the software product can be stored in a non-volatile storage medium (which can be a CD-ROM, U disk, mobile hard disk etc.) or on a network, including several instructions to cause a computing device (which may be a personal computer, a server, a network device, etc.) to execute the above method according to an embodiment of the present disclosure.

所述软件产品可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以为但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。The software product may take the form of any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: electrical connection with one or more conductors, portable disk, hard disk, random access memory (RAM), read only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.

所述计算机可读存储介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。可读存储介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。可读存储介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、有线、光缆、RF等等,或者上述的任意合适的组合。The computer-readable storage medium may include a data signal propagated in baseband or as part of a carrier wave carrying readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A readable storage medium may also be any readable medium other than a readable storage medium that can transmit, propagate, or transport the program for use by or in connection with an instruction execution system, apparatus, or device. Program code contained on a readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.

可以以一种或多种程序设计语言的任意组合来编写用于执行本公开操作的程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、C++等,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。Program code for performing operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., as well as conventional procedural Programming language—such as "C" or a similar programming language. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server execute on. In situations involving remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., provided by an Internet service). (business comes via Internet connection).

上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被一个该设备执行时,使得该计算机可读介质实现如下功能:获取物品的物联网数据和环节标识;通过所述物联网数据生成区块数据,并将所述区块数据上传至区块链系统;通过所述环节标识生成多层码标签;将所述区块数据、所述多层码标签和所述物品相关联;以及通过所述多层码标签对所述物品的流通环节进行追溯。The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by a device, the computer-readable medium enables the computer-readable medium to achieve the following functions: obtain the Internet of Things data and link identification of the item; through the The Internet of Things data generates block data, and uploads the block data to the block chain system; generates multi-layer code labels through the link identification; combines the block data, the multi-layer code labels and the items Correlation; and tracing the circulation links of the items through the multi-layer code labels.

本领域技术人员可以理解上述各模块可以按照实施例的描述分布于装置中,也可以进行相应变化唯一不同于本实施例的一个或多个装置中。上述实施例的模块可以合并为一个模块,也可以进一步拆分成多个子模块。Those skilled in the art can understand that the above-mentioned modules can be distributed in devices according to the description of the embodiments, or can be modified accordingly in one or more devices that are only different from this embodiment. The modules of the above embodiments can be combined into one module, or further divided into multiple sub-modules.

通过以上的实施例的描述,本领域的技术人员易于理解,这里描述的示例实施例可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本公开实施例的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、移动终端、或者网络设备等)执行根据本公开实施例的方法。Through the description of the above embodiments, those skilled in the art can easily understand that the example embodiments described here can be implemented by software, or can be implemented by software combined with necessary hardware. Therefore, the technical solution according to the embodiment of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, U disk, mobile hard disk, etc.) or on the network , including several instructions to cause a computing device (which may be a personal computer, a server, a mobile terminal, a network device, etc.) to execute a method according to an embodiment of the present disclosure.

以上具体地示出和描述了本公开的示例性实施例。应可理解的是,本公开不限于这里描述的详细结构、设置方式或实现方法;相反,本公开意图涵盖包含在所附权利要求的精神和范围内的各种修改和等效设置。The exemplary embodiments of the present disclosure have been specifically shown and described above. It is to be understood that the present disclosure is not limited to the details of construction, arrangements, or implementations described herein; rather, the present disclosure is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (9)

1. The method for tracing the circulation links of the articles based on the blockchain is characterized by comprising the following steps:
acquiring internet of things data and link identification of an article;
generating block data through the data of the Internet of things, and uploading the block data to a block chain system;
generating a multi-layer code label through the link identification;
associating the block data, the multi-layer code tag, and the item; and
tracing the circulation links of the articles through the multi-layer code labels;
generating the multi-layer code label through the link identifier comprises the following steps:
generating a single-layer code identifier through the link identifier; and
printing the single-layer code mark on a preset single-layer code label to generate the multi-layer code label; the corresponding points of the surface of the code are automatically formed and named as a code layer, and different code layers correspond to different data on the chain; the number of layers of a plurality of layers of code blocks is defined in advance, the printed dot patterns are set into a plurality of layers, layer serial numbers are defined, the serial numbers of the layers and data are all provided with block chains, each code block can store or point to different data blocks, the later layer must read the data of the previous layer and then read new data, and the data of the same layer cannot be input twice; each block has a time stamp information when stored;
The tracing of the circulation links of the articles through the multi-layer code label comprises the following steps:
receiving a data access application from a client, wherein the data access application comprises a current time and a single-layer code identifier;
judging whether the data access application accords with a preset rule or not based on the current time and the single-layer code mark; and
and when the preset rule is met, the block data corresponding to the single-layer code identification is sent to the client.
2. The method of claim 1, wherein associating the block data, the multi-layer code tag, and the article comprises:
associating the block data with the single layer code identification; and
the multi-layer code tag is associated with the article.
3. The method of claim 2, wherein associating the block data with the single layer code identification comprises:
associating the block data with the single layer code identification through a block identification table;
the block identification table comprises a header identification of the block data, the single-layer code identification and effective time.
4. The method of claim 1, wherein determining whether the data access application meets a preset rule based on the current time and a single layer code identification comprises:
Comparing the single-layer code mark with the single-layer code mark in the block mark table;
when the comparison is consistent, judging whether the current time exceeds the effective time range in the block identification table; and
and when the effective time range is not exceeded, determining that the data access application accords with a preset rule.
5. The method of claim 1, wherein prior to obtaining the internet of things data and link identification for the item further comprises:
acquiring a data uploading application of an article, wherein the uploading application comprises a current link identifier and a target link identifier;
judging whether the data uploading application is effective or not based on a preset hierarchical relationship, a current link identifier and a target link identifier;
and when the data uploading application is effective, acquiring the Internet of things data and the link identification of the object.
6. The method of claim 1, wherein obtaining internet of things data and link identification of an item comprises:
and acquiring the internet of things data of the article through an intelligent sensor.
7. The method of claim 6, wherein obtaining internet of things data for the item by an intelligent sensor comprises at least one of:
acquiring link data of an article through an intelligent sensor to generate the data of the Internet of things;
Acquiring state data of an article through an intelligent sensor to generate the data of the Internet of things; and
and acquiring position data of the object through an intelligent sensor to generate the data of the Internet of things.
8. Article circulation link traceability device based on block chain, its characterized in that includes:
the data module is used for acquiring the internet of things data and link identification of the article;
the uploading module is used for generating block data through the data of the Internet of things and uploading the block data to a block chain system;
the label module is used for generating a multi-layer code label through the link identification; and
an association module for associating the block data, the multi-layer code tag, and the item;
the tracing module traces the circulation links of the articles through the multi-layer code labels;
generating the multi-layer code label through the link identifier comprises the following steps:
generating a single-layer code identifier through the link identifier; and
printing the single-layer code mark on a preset single-layer code label to generate the multi-layer code label; the corresponding points of the surface of the code are automatically formed and named as a code layer, and different code layers correspond to different data on the chain; the number of layers of a plurality of layers of code blocks is defined in advance, the printed dot patterns are set into a plurality of layers, layer serial numbers are defined, the serial numbers of the layers and data are all provided with block chains, each code block can store or point to different data blocks, the later layer must read the data of the previous layer and then read new data, and the data of the same layer cannot be input twice; each block has a time stamp information when stored;
The tracing of the circulation links of the articles through the multi-layer code label comprises the following steps:
receiving a data access application from a client, wherein the data access application comprises a current time and a single-layer code identifier;
judging whether the data access application accords with a preset rule or not based on the current time and the single-layer code mark; and
and when the preset rule is met, the block data corresponding to the single-layer code identification is sent to the client.
9. An electronic device, comprising:
one or more processors;
a storage means for storing one or more programs;
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-7.
CN201910742764.0A 2019-08-13 2019-08-13 Article circulation link tracing method and device based on block chain and electronic equipment Expired - Fee Related CN110502922B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910742764.0A CN110502922B (en) 2019-08-13 2019-08-13 Article circulation link tracing method and device based on block chain and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910742764.0A CN110502922B (en) 2019-08-13 2019-08-13 Article circulation link tracing method and device based on block chain and electronic equipment

Publications (2)

Publication Number Publication Date
CN110502922A CN110502922A (en) 2019-11-26
CN110502922B true CN110502922B (en) 2024-01-16

Family

ID=68588081

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910742764.0A Expired - Fee Related CN110502922B (en) 2019-08-13 2019-08-13 Article circulation link tracing method and device based on block chain and electronic equipment

Country Status (1)

Country Link
CN (1) CN110502922B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113129027B (en) * 2019-12-31 2024-05-31 航天信息股份有限公司 Object management method, device, computing equipment and storage medium based on blockchain
CN111080213B (en) * 2020-01-02 2024-09-06 航天信息股份有限公司 Method and system for collecting coded block chain data of container grain sealing inspection
CN111429158B (en) * 2020-03-30 2024-04-23 广州中爆数字信息科技股份有限公司 Tracking method, device, equipment and medium based on electronic tracking identification chain
CN111445269A (en) * 2020-03-30 2020-07-24 深圳前海量子云码科技有限公司 Industrial hemp traceability supervision method, system, equipment and storage medium
CN111563753A (en) * 2020-04-29 2020-08-21 程烨 Query method and device for product tracing information, server and storage medium
CN113138588B (en) * 2020-06-30 2025-09-30 法国圣戈班安全玻璃公司 Method, device and computer-readable storage medium for product tracing
CN112435128B (en) * 2021-01-27 2021-10-22 江苏恒鸿供应链管理有限公司 Supply chain tracing system based on multi-level block chain technology
CN112948876A (en) * 2021-02-26 2021-06-11 中国联合网络通信集团有限公司 Tracing method and device
CN114298255A (en) * 2021-12-30 2022-04-08 李政晖 Multimedia cloud tag system and method
CN119722107B (en) * 2024-12-19 2025-08-22 深圳市好帮手农产品有限公司 A food safety traceability system and traceability method

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1802616A (en) * 2003-06-28 2006-07-12 国际商业机器公司 Identification system and method
JP2008027145A (en) * 2006-07-20 2008-02-07 Brother Ind Ltd Radio tag information communication apparatus, tag label producing apparatus, radio tag circuit element, and radio tag information reading apparatus
CN102622632A (en) * 2012-02-28 2012-08-01 刘杨志 Quality safety management identification forming method and quality safety management identification forming system based on internet of things
CN103473682A (en) * 2013-09-06 2013-12-25 浙江中烟工业有限责任公司 Method for tracing single cigarette packet
CN104992337A (en) * 2015-07-17 2015-10-21 上海溯云信息技术有限公司 Commodity anti-counterfeiting tracing online and offline identification system and method
CN105046509A (en) * 2015-08-10 2015-11-11 深圳市华验防伪科技有限公司 Multi-level two-dimension code anti-fake method and system and multi-level two-dimension code anti-fake label
CN106779737A (en) * 2016-11-30 2017-05-31 电子科技大学 Product based on block chain technology is traced to the source verification method
CN106934639A (en) * 2017-03-08 2017-07-07 章哲成 A kind of false proof retroactive method of paper diaper based on RFID and Quick Response Code
CN108009830A (en) * 2017-12-14 2018-05-08 上海密尔克卫化工储存有限公司 Products in circulation tracking and system based on block chain
CN108416599A (en) * 2018-02-27 2018-08-17 浪潮软件集团有限公司 Method for realizing product quality tracing by using block chain
CN207780821U (en) * 2017-12-06 2018-08-28 深圳天净喔溯源科技有限公司 Two-dimension code label
CN108710924A (en) * 2018-04-27 2018-10-26 林清华 Information query method based on block chain and system
CN108764695A (en) * 2018-05-23 2018-11-06 江苏涞哲信息科技有限公司 A kind of food security traceability system and method based on block chain technology
WO2019062530A1 (en) * 2017-09-30 2019-04-04 浙江鑫泊物流科技有限公司 Commodity tracing and anti-counterfeiting method and device
CN110110547A (en) * 2019-04-08 2019-08-09 智链万源(北京)数字科技有限公司 Data processing method of tracing to the source and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10606353B2 (en) * 2012-09-14 2020-03-31 Interaxon Inc. Systems and methods for collecting, analyzing, and sharing bio-signal and non-bio-signal data
CN105894948A (en) * 2014-09-09 2016-08-24 上海火并信息技术有限公司 Multifunctional multilayer adhesive label with surface front layer and surface back layer having personalized information
CN204833311U (en) * 2015-08-11 2015-12-02 明尼苏达矿业制造医用器材(上海)有限公司 Can trace back label and label group
CN109858920A (en) * 2017-11-29 2019-06-07 山西百伦信息科技有限公司 A kind of random multi-code certification is traced to the source anti-fake method
CN108665027A (en) * 2018-04-27 2018-10-16 林清华 Product labelling condition control method and system based on block chain
CN110040310B (en) * 2019-04-19 2020-12-22 中国农业科学院农业资源与农业区划研究所 Traceable product packaging method and device

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1802616A (en) * 2003-06-28 2006-07-12 国际商业机器公司 Identification system and method
JP2008027145A (en) * 2006-07-20 2008-02-07 Brother Ind Ltd Radio tag information communication apparatus, tag label producing apparatus, radio tag circuit element, and radio tag information reading apparatus
CN102622632A (en) * 2012-02-28 2012-08-01 刘杨志 Quality safety management identification forming method and quality safety management identification forming system based on internet of things
CN103473682A (en) * 2013-09-06 2013-12-25 浙江中烟工业有限责任公司 Method for tracing single cigarette packet
CN104992337A (en) * 2015-07-17 2015-10-21 上海溯云信息技术有限公司 Commodity anti-counterfeiting tracing online and offline identification system and method
CN105046509A (en) * 2015-08-10 2015-11-11 深圳市华验防伪科技有限公司 Multi-level two-dimension code anti-fake method and system and multi-level two-dimension code anti-fake label
CN106779737A (en) * 2016-11-30 2017-05-31 电子科技大学 Product based on block chain technology is traced to the source verification method
CN106934639A (en) * 2017-03-08 2017-07-07 章哲成 A kind of false proof retroactive method of paper diaper based on RFID and Quick Response Code
WO2019062530A1 (en) * 2017-09-30 2019-04-04 浙江鑫泊物流科技有限公司 Commodity tracing and anti-counterfeiting method and device
CN207780821U (en) * 2017-12-06 2018-08-28 深圳天净喔溯源科技有限公司 Two-dimension code label
CN108009830A (en) * 2017-12-14 2018-05-08 上海密尔克卫化工储存有限公司 Products in circulation tracking and system based on block chain
CN108416599A (en) * 2018-02-27 2018-08-17 浪潮软件集团有限公司 Method for realizing product quality tracing by using block chain
CN108710924A (en) * 2018-04-27 2018-10-26 林清华 Information query method based on block chain and system
CN108764695A (en) * 2018-05-23 2018-11-06 江苏涞哲信息科技有限公司 A kind of food security traceability system and method based on block chain technology
CN110110547A (en) * 2019-04-08 2019-08-09 智链万源(北京)数字科技有限公司 Data processing method of tracing to the source and device

Non-Patent Citations (9)

* Cited by examiner, † Cited by third party
Title
使用双区块链的防伪溯源系统;刘家稷;杨挺;汪文勇;;信息安全学报(03);第17-29页 *
刘家稷 ; 杨挺 ; 汪文勇 ; .使用双区块链的防伪溯源系统.信息安全学报.2018,(03),第17-29页. *
可追溯水产养殖质量安全管理系统设计;马莉;孙传恒;屈利华;赵丽;杨信廷;;农业网络信息(11);第49-51页 *
可追溯质量管理体系在区域性消毒供应中心的应用分析;王瑞芝;高玲;赵海青;;中国卫生产业(02);第125-126页 *
基于区块链的第三代中药追溯平台构建研究;温川飙;赵姝婷;陈菊;施明毅;高原;;中国现代中药(11);第1519-1522页 *
基于移动端的水产品防伪溯源系统的实现;周兴国;魏志强;李臻;高阳;;农业网络信息(09);第48-51页 *
物联网技术在亳州白酒质量追溯中的应用研究;张腾达;张博;;廊坊师范学院学报(自然科学版)(第01期);25-27 *
王瑞芝 ; 高玲 ; 赵海青 ; .可追溯质量管理体系在区域性消毒供应中心的应用分析.中国卫生产业.2017,(02),第125-126页. *
马莉 ; 孙传恒 ; 屈利华 ; 赵丽 ; 杨信廷 ; .可追溯水产养殖质量安全管理系统设计.农业网络信息.2011,(11),第49-51页. *

Also Published As

Publication number Publication date
CN110502922A (en) 2019-11-26

Similar Documents

Publication Publication Date Title
CN110502922B (en) Article circulation link tracing method and device based on block chain and electronic equipment
US12401717B2 (en) Tag operating system
US11769577B1 (en) Decentralized identity authentication framework for distributed data
CN110909073B (en) Method and system for sharing private data based on smart contracts
TWI701623B (en) Logistics information transmission method, system and device based on blockchain
US11139954B2 (en) Blockchain proof of custody, proof against tampering, proof of chain of custody
CN109255622B (en) Traceable anti-fake data storage system
CN109034833A (en) A kind of product back-tracing information management system and method based on block chain
AU2020203178A1 (en) A Machine Type Communication System or Device for Recording Supply Chain Information on a Distributed Ledger in a Peer to Peer Network
CN111464499A (en) Electronic warehouse receipt tracing method and device, computer equipment and storage medium
EP3227853A1 (en) Cryptographic verification of provenance in a supply chain
US20210326326A1 (en) Proof aggregating system for asset management traceability based on blockchain and method thereof
CN105096134A (en) Security scheme for authenticating digital entities and aggregate object origins
US20170193124A1 (en) Cloud-Based Universal Tagging System
WO2019157122A1 (en) Rf tag operating system with iot connector core
US12058269B2 (en) Systems and methods for providing secure internet of things data notifications using blockchain
US20220123939A1 (en) Relational Product Authentication System
Sharma et al. A multilevel authentication-based blockchain powered medicine anti-counterfeiting for reliable IoT supply chain management
Rahman et al. Blockchain for iot: A critical analysis concerning performance and scalability
CN114861200B (en) Data processing method, device, equipment and storage medium
WO2023028169A1 (en) Crowd-sourced automation of authentication
JP6755539B2 (en) Methods and equipment for publishing copyrighted works on networks
Kataev et al. Blockchain‐driven iot solutions in agriculture
CN117894437A (en) Integrated sharing method, device, equipment and storage medium for digital pathology data
US20240193618A1 (en) Product bio tag for improved supply chain trust

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20240116