CN105719144A - Food safety tracing method and food safety tracing system based on two-dimensional code - Google Patents

Food safety tracing method and food safety tracing system based on two-dimensional code Download PDF

Info

Publication number
CN105719144A
CN105719144A CN201410721334.8A CN201410721334A CN105719144A CN 105719144 A CN105719144 A CN 105719144A CN 201410721334 A CN201410721334 A CN 201410721334A CN 105719144 A CN105719144 A CN 105719144A
Authority
CN
China
Prior art keywords
quick response
response code
information
circulation
extension
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.)
Granted
Application number
CN201410721334.8A
Other languages
Chinese (zh)
Other versions
CN105719144B (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.)
Aisino Corp
Original Assignee
Aisino Corp
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 Aisino Corp filed Critical Aisino Corp
Priority to CN201410721334.8A priority Critical patent/CN105719144B/en
Publication of CN105719144A publication Critical patent/CN105719144A/en
Application granted granted Critical
Publication of CN105719144B publication Critical patent/CN105719144B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Storage Device Security (AREA)

Abstract

Embodiments of the invention provide a food safety tracing method and a food safety tracing system based on a two-dimensional code. The method mainly comprises the following steps: generating a two-dimensional code of a set format, and attaching the two-dimensional code to packaged food; recording the circulation information of the packaged food at each circulation node, combining the circulation information and the product information of the packaged food into the traceability information of the packaged food, and storing the traceability information and the information of the two-dimensional code in an associative manner; and scanning the two-dimensional code on the packaged food to get the information of the two-dimensional code, and querying the traceability information of the packaged food according to the scanned information of the two-dimensional code. According to the embodiments of the invention, the content of the private area in the two-dimensional code is hidden, so the public are unaware of the existence of the authentication code in the private area, the safety of the two-dimensional code is enhanced on the premise of not affecting the user experience, and the safety of the product attached with the two-dimensional code is improved. Identification of packaged food based on 'one object one code' is realized, and the anti-counterfeiting ability of products is enhanced. The circulation of each product at each circulation node is recorded, so faulty products can be located easily and recalled quickly when there is a food quality problem.

Description

Food safety trace back method and system based on Quick Response Code
Technical field
The present invention relates to food safety trace back field, particularly relate to a kind of food safety trace back method and system based on Quick Response Code.
Background technology
Food safety is to ensure the healthy important source with life security of the public.The food safety accident taken place frequently in recent years causes the extensive concern of various circles of society, and food safety trace back, as the means ensured food safety, is at home and abroad widely applied at present.
Quick Response Code has the features such as capacity is big, cost is low, error correcting capability is strong, adopts Quick Response Code that packaged food is identified, and then the safe tracing realizing food is not rarely seen.But, traceability system on the market is set up by enterprise oneself mostly at present, construction cost high, and tracing information lack objectivity and authority, be also unfavorable for that food production out circulates the collection of data of link afterwards;Ordinary two dimensional code book body safety is relatively low, identifies product with it and realizes reviewing bringing a lot of potential safety hazard;Each enterprise takes their own roads, and Quick Response Code mark and Quick Response Code content are multifarious, are difficult to interconnect, so that forming information island one by one between system.
A kind of retroactive method based on Quick Response Code of the prior art includes: generated encrypted authentication code and Quick Response Code by the production and processing business of upstream or retail trader, while giving next retail trader by product-feed, encrypted authentication code is also licensed in the lump this retail trader, with encrypted authentication code, this retail trader verifies that Quick Response Code passes through after, distribution information is added in 2 D code information, and it is encoded into new Quick Response Code together with newly-generated encrypted authentication code, new Quick Response Code is attached on product.This realization improves product safety in the process of circulation.
The shortcoming of the above-mentioned retroactive method based on Quick Response Code of the prior art is: owing to distribution is required for authorizing encrypted authentication code and generating new Quick Response Code every time, retail trader is proposed higher requirement by this, also makes distribution work become loaded down with trivial details;And, distribution information owing to distributing every time is required for being encoded in Quick Response Code, when distributing link and being more, information in Quick Response Code can become a lot, the size of Quick Response Code also can become very huge and not easily be attached on product, even if having enough spaces to print Quick Response Code, Quick Response Code also easily reduces recognition rate because of deformation, abrasion;Finally, this realizes same production or distribution batch in method and uses identical Quick Response Code, unrealized " thing one yard ", reduces the anti-counterfeit capability of Quick Response Code, is also not susceptible to follow the tracks of each product location, is unfavorable for recalling of product.
Summary of the invention
Embodiments provide a kind of food safety trace back method and system based on Quick Response Code, to improve the food tracing efficiency based on Quick Response Code.
Embodiments provide following technical scheme:
A kind of food safety trace back method based on Quick Response Code, including:
Generate the Quick Response Code setting form, described Quick Response Code is attached on packaged food;
Record the described packaged food circulation information at each circulation node, by the tracing information of described circulation information with the product information composition packaged food of described packaged food, the information of described tracing information Yu described Quick Response Code is associated storage;
Scan the Quick Response Code on described packaged food and obtain the information of Quick Response Code, inquire about the tracing information of described packaged food according to the information scanning the Quick Response Code obtained.
The described Quick Response Code setting form that generates includes:
The mode adopting compatible GB Quick Response Code carries out data encoding, obtain the bit stream of Quick Response Code, described bit stream includes GB inclusive segment and extension inclusive segment, described GB inclusive segment includes the mark of described Quick Response Code, after described extension inclusive segment is positioned at described GB inclusive segment, including mode of extension designator, extension segmented content, extension segmentation markers, described extension segmented content is the content between described mode of extension designator and described extension segmentation markers, the identifying code that described extension segmented content includes the mark of described Quick Response Code is encrypted and generates.
Described records the described packaged food circulation information at each circulation node, including:
At each circulation node, the Quick Response Code in packaging for foodstuff is verified, if being proved to be successful, then record packaged food is at the circulation information of each circulation node, described circulation information includes the mark of Quick Response Code, the circulation mark of node, inlet time, the delivery time that are attached on described packaging product, and described packaged food flows to next circulation node or consumer;If checking is not passed through, then terminate circulation.
Described is verified the Quick Response Code in packaging for foodstuff at each circulation node, including:
The bit stream of described Quick Response Code is obtained after, data recombination corrected according to GB decoding algorithm, it is decoded described bit stream processing, until being decoded to GB segmentation markers, if also having residue original bit information not decode after described GB segmentation markers, then read the Bit data consistent with described mode of extension designator length after described GB segmentation markers, judge that whether described Bit data is the mode of extension designator that native system specifies, if then continuing to decode described bit stream until extension segmentation markers;If it is not, then decoding terminates;
Extension segmented content between described mode of extension designator and described extension segmentation markers is decoded, when the extension segmented content that decoding obtains comprises described identifying code, then described identifying code is decrypted process, information after described identifying code is deciphered includes the mark of described Quick Response Code, it is determined that described Quick Response Code is proved to be successful;When the extension segmented content that decoding obtains does not comprise described identifying code, or, the information after the deciphering of described identifying code does not include the mark of described Quick Response Code, it is determined that the checking of described Quick Response Code is unsuccessful.
The described Quick Response Code scanned on described packaged food obtains the information of Quick Response Code, inquires about the tracing information of described packaged food according to the information scanning the Quick Response Code obtained, including:
The circulation information of the packaging product after renewal is sent to server by wireless or wireline communication network by each circulation node, the circulation information that all circulation nodes send over is carried out comprehensively by described server, product information composition tracing information by the circulation information after comprehensive and described product, described tracing information is stored in product back-tracing data base, described product information includes name of product and product identification, described comprehensive after circulation information include the mark of the Quick Response Code being attached on described packaging product, the mark of each circulation node, the inlet time of each circulation node and delivery time;
Scan the Quick Response Code on described packaged food, the bit stream of described Quick Response Code is obtained after, data recombination corrected according to GB decoding algorithm, it is decoded described bit stream processing, until being decoded to GB segmentation markers, obtain the GB inclusive segment in described Quick Response Code, obtain the mark of the Quick Response Code that described GB inclusive segment includes, inquire about described product back-tracing data base according to the mark of described Quick Response Code, obtain the tracing information of described product.
A kind of third party's food safety trace back device based on Quick Response Code, including:
Two-dimensional code generation module, for generating the Quick Response Code setting form, is attached to described Quick Response Code on packaged food;
Tracing information management module, for recording the described packaged food circulation information at each circulation node, by the tracing information of described circulation information with the product information composition packaged food of described packaged food, the information of described tracing information Yu described Quick Response Code is associated storage;
Tracing information enquiry module, obtains the information of Quick Response Code for scanning the Quick Response Code on described packaged food, inquires about the tracing information of described packaged food according to the information scanning the Quick Response Code obtained.
Described two-dimensional code generation module, for adopting the mode of compatible GB Quick Response Code to carry out data encoding, obtain the bit stream of Quick Response Code, described bit stream includes GB inclusive segment and extension inclusive segment, described GB inclusive segment is consistent with the Quick Response Code of GB and reads the standard content that equipment can read, mark including described Quick Response Code, after described extension inclusive segment is positioned at described GB inclusive segment, including mode of extension designator, extension segmented content, extension segmentation markers, described extension segmented content is the content between described mode of extension designator and described extension segmentation markers, the identifying code that described extension segmented content includes the mark of described Quick Response Code is encrypted and generates.
Described device also includes:
Quick Response Code authentication module, for the Quick Response Code in packaging for foodstuff being verified at each circulation node, corrected according to GB decoding algorithm, the bit stream of described Quick Response Code is obtained after data recombination, it is decoded described bit stream processing, until being decoded to GB segmentation markers, if also having residue original bit information not decode after described GB segmentation markers, then read the Bit data consistent with described mode of extension designator length after described GB segmentation markers, judge that whether described Bit data is the mode of extension designator that native system specifies, if then continuing to decode described bit stream until extending segmentation markers;If it is not, then decoding terminates;
Extension segmented content between described mode of extension designator and described extension segmentation markers is decoded, when the extension segmented content that decoding obtains comprises described identifying code, then described identifying code is decrypted process, information after described identifying code is deciphered includes the mark of described Quick Response Code, it is determined that described Quick Response Code is proved to be successful;When the extension segmented content that decoding obtains does not comprise described identifying code, or, the information after the deciphering of described identifying code does not include the mark of described Quick Response Code, it is determined that the checking of described Quick Response Code is unsuccessful.
Described tracing information management module includes:
Tracing information logging modle, for the Quick Response Code in packaging for foodstuff being verified after successfully at each circulation node when Quick Response Code authentication module, then record packaged food is at the circulation information of each circulation node, described circulation information includes the mark of Quick Response Code, the circulation mark of node, inlet time, the delivery time that are attached on described packaging product, and described packaged food flows to next circulation node or consumer;If checking is not passed through, then terminate circulation;
Tracing information memory module, for being arranged in server, receive the circulation information packing product after the renewal that each circulation node is sended over by wireless or wireline communication network, the circulation information that all circulation nodes send over is carried out comprehensively, product information composition tracing information by the circulation information after comprehensive and described product, described tracing information is stored in product back-tracing data base, described product information includes name of product and product identification, described comprehensive after circulation information include the mark of the Quick Response Code being attached on described packaging product, the mark of each circulation node, the inlet time of each circulation node and delivery time.
Described tracing information enquiry module, for scanning the Quick Response Code on described packaged food, the bit stream of described Quick Response Code is obtained after, data recombination corrected according to GB decoding algorithm, it is decoded described bit stream processing, until being decoded to GB segmentation markers, obtain the GB inclusive segment in described Quick Response Code, obtain the mark of the Quick Response Code that described GB inclusive segment includes, mark according to described Quick Response Code inquires about the product back-tracing data base in described tracing information memory module, obtains the tracing information of described product.
The technical scheme provided by the invention described above embodiment can be seen that, the embodiment of the present invention is by hiding the content of the home zone in Quick Response Code, the existence of the identifying code that makes to be unaware of in home zone during public use, under the premise not affecting experience, enhance the safety of Quick Response Code, and then improve the safety of products in circulation accompanying by Quick Response Code.Achieve " thing one yard " to packaged food to identify, enhance the anti-counterfeit capability of product, and at the current intelligence of each each product of circulation nodes records, when there is food quality problem, it is simple to the location to defective product, quick recall.
Accompanying drawing explanation
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below the accompanying drawing used required during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
The process chart of a kind of food safety trace back method based on Quick Response Code that Fig. 1 provides for the embodiment of the present invention one;
The structural representation of the Quick Response Code with home zone of a kind of compatible " GB/T18284-2000 quick response matrix code " that Fig. 2 provides for the embodiment of the present invention two;
The concrete structure schematic diagram of a kind of third party's food safety trace back device based on Quick Response Code that Fig. 3 provides for the embodiment of the present invention three, in figure, two-dimensional code generation module 31, tracing information management module 32, tracing information enquiry module 33, Quick Response Code authentication module 34, tracing information memory module 35 and user management module 36.
Detailed description of the invention
For ease of the understanding to the embodiment of the present invention, it is further explained explanation below in conjunction with accompanying drawing for several specific embodiments, and each embodiment is not intended that the restriction to the embodiment of the present invention.
Embodiment one
It is desirable to provide a kind of food safety trace back method and system based on Quick Response Code, identifying code is deposited by opening up one piece of home zone in Quick Response Code, realize the checking to Quick Response Code self legitimacy, improve the safety of Quick Response Code, and then improve the safety of products in circulation accompanying by Quick Response Code;Specification Quick Response Code mark and content is come by unified distribution Quick Response Code;Use the cost of system by providing third party's service to reduce enterprise, ensure objectivity and the authority of tracing information.
This embodiment offers the handling process of a kind of food safety trace back method based on Quick Response Code as it is shown in figure 1, include following process step:
Step S110, the unified Quick Response Code generated of application, be attached to Quick Response Code in packaging for foodstuff, then associated with the product information of packaged food by Quick Response Code.
Above-mentioned Quick Response Code adopts the mode of compatible GB Quick Response Code to carry out data encoding, obtains bit stream, and the bit stream that coding generates includes GB inclusive segment and extension inclusive segment.
First paragraph is GB inclusive segment, and the Quick Response Code being consistent with GB reads the standard content that can read of equipment, using the Quick Response Code full stop of national regulations or can as the symbol of full stop as GB segmentation markers.Generate unique mark for each Quick Response Code, uniquely mark is encoded in GB inclusive segment.
Second segment is extension inclusive segment, and after being positioned at GB segmentation markers, common Quick Response Code reads equipment can not read this partial content, and special equipment need to be used to read this partial content.Extension inclusive segment includes mode of extension designator, extension segmented content, extension segmentation markers three partial content.
The mode indicators of extension inclusive segment generally uses the indicator mark different from the mode indicators of national regulations, under will not causing the premise obscured, it is possible to use the indicator mark identical with GB mode indicators.
The extension segmented content of extension inclusive segment is the content between described mode of extension designator and described extension segmentation markers, the mark of Quick Response Code is encrypted generation identifying code, being encoded to by identifying code in extension inclusive segment, above-mentioned identifying code is for verifying the legitimacy of Quick Response Code.
The extension segmentation markers of extension inclusive segment can be the same with GB segmentation markers, it is possible to different from GB segmentation markers.
Product information includes the information such as name of product, production and processing business's title, raw material information, machining information, packaged information, quality information.
Step S120, each circulation node the Quick Response Code in packaging for foodstuff is verified, if being verified, then perform step S130, otherwise, terminate circulation.
Above-mentioned circulation node can be the enterprise of the process of circulation process of packaged food.
The bit stream of described Quick Response Code is obtained after, data recombination corrected according to GB decoding algorithm, it is decoded processing to the bit stream of described Quick Response Code, until being decoded to GB segmentation markers, if also having residue original bit information not decode after described GB segmentation markers, then read the Bit data consistent with described mode of extension designator length after described GB segmentation markers, judge that whether described Bit data is the mode of extension designator that native system specifies, if then continuing decoding until extension segmentation markers;If it is not, then decoding terminates.
Extension segmented content between described mode of extension designator and described extension segmentation markers is decoded, when the extension segmented content that decoding obtains comprises described identifying code, then described identifying code is decrypted process, information after identifying code is deciphered includes the mark of Quick Response Code, it is determined that described Quick Response Code is proved to be successful;When the extension segmented content that decoding obtains does not comprise described identifying code, or, the information after the deciphering of described identifying code does not include the mark of described Quick Response Code, it is determined that the checking of described Quick Response Code is unsuccessful.
Unique mark of above-mentioned Quick Response Code is proposed with international coding, such as GS1 and EPC etc..It addition, the GB inclusive segment of Quick Response Code may also include some simple product description information, such as name of product, date of manufacture etc..In packaging for foodstuff, also Quick Response Code uniquely can be identified and be printed on Quick Response Code periphery, carry out reviewing inquiry for consumer's this mark of craft typing.
Step S130, record packaged food are at the circulation information of each circulation node, and packaged food flows to next circulation node or consumer.Above-mentioned circulation information includes the inlet time on circulation business's title, the circulation mark of node, the product quantity of circulation, the mark of the Quick Response Code being attached on product, circulation node and delivery time etc..The number of reviewing being designated packaged food of the above-mentioned Quick Response Code being attached on product.
The circulation information of the packaging product after renewal is sent to server by wireless or wireline communication network by each circulation node, the circulation information that all circulation nodes send over is carried out comprehensively by described server, by the product information composition tracing information of the circulation information after comprehensive and described product, described tracing information is stored in product back-tracing data base.
Described comprehensive after circulation information includes the mark of Quick Response Code being attached on described packaging product, the mark of each circulation node, inlet time of each circulation node and delivery time, the number of reviewing according to packaged food record the warehouse-in information of packaged food, outbound information, logistics transportation information and sales information etc..Circulation information after this is comprehensive needs to be filled in by multiple circulation nodes in the process of circulation of packaged food, and is sent to server.
Above-mentioned production information includes the information such as enterprise name, enterprise's mark, the places of origin of raw materials, ingredient inspection, material storage, production line, processing technique, processing date, the course of processing inspection chemical examination, finished product quality inspection, packaging material, production batch.
The tracing information of packaged food is inquired about by the Quick Response Code on mobile scanning terminal packaged food by step S140, consumer, the bit stream of described Quick Response Code is obtained after, data recombination corrected according to GB decoding algorithm, it is decoded bit stream processing, until being decoded to GB segmentation markers, obtain the GB inclusive segment in described Quick Response Code, obtain the mark of the Quick Response Code that described GB inclusive segment includes, mark according to described Quick Response Code inquires about described product back-tracing data base, obtains the tracing information of described product.
Embodiment two
Quick Response Code has a variety of, wherein common with QR (QuickResponse, quick response matrix code), DataMatrix, PDF417, Chinese letter co, below for current most widely used QR code, illustrates how to realize present disclosure.
This embodiment offers a kind of food safety trace back method based on QR code, concrete processing procedure includes:
Step 1: the unified Quick Response Code generated of application, is attached to Quick Response Code in packaging for foodstuff, then is associated with the product information of packaged food by Quick Response Code.
Wherein, product information includes name of product, production and processing business's title, raw material information, machining information, packaged information, quality information etc..At least including Quick Response Code in Quick Response Code uniquely to identify and identifying code, wherein Quick Response Code uniquely identifies and is saved in GB inclusive segment, uses as traceability code.
The two-dimensional code generation module of compatible " GB/T18284-2000 quick response matrix code " generates the Quick Response Code with home zone as follows, and the two-dimension code structure of generation is as shown in Figure 2.
GB mode indicators in GB inclusive segment can have one or more, is followed by one section of GB segmented content after each GB mode indicators.Time such as actually used, the Quick Response Code of QR code uniquely identifies use pure digi-tal and represents, uses mode indicators " 0001 " (numeral) during coding;Product description information is Chinese character, uses mode indicators " 1101 " (Chinese character) during coding.QR code GB end of text is represented by 4 full stops " 0000 ", therefore, using " 0000 " GB segmentation markers as QR code, can be followed by extension inclusive segment.
(2) extension inclusive segment
Mode of extension designator in extension inclusive segment uses " 1110 " different from GB mode indicators to indicate follow-up extension segmented content to be identifying code.Certainly, in QR code, " 0000 " is strict GB end of text symbol, and mode of extension designator also can be identical without producing to obscure with GB mode indicators, such as can use the identifying code that " 0010 " indicates alpha-numerical to encode.Extension segmentation markers uses " 0000 " identical with GB segmentation markers to be identified.In actual applications, multiple mode of extension designator and multiple extension segmented content can be used according to actual needs to support more application scenarios.
The mark of Quick Response Code being encrypted generation identifying code, is encoded to by identifying code in extension inclusive segment, above-mentioned identifying code is for verifying the legitimacy of Quick Response Code.In order to improve encryption and decryption efficiency, using the domestic commercial cipher algorithm SM4 of symmetry that the mark of Quick Response Code is encrypted, be verified code, enciphering and deciphering algorithm is realized by hardware mode.In order to improve safety further, also can by the mark of Quick Response Code together with product description information after HASH (Hash) algorithm process, HASH value is encrypted and generates identifying code.
This Quick Response Code generating mode, it can be ensured that the ordinary two dimensional code decoding device meeting GB can only read the content of GB inclusive segment, and the content of extension inclusive segment is hidden, it is necessary to special decoding algorithm can read.
Cipher key storage block is responsible for the various keys that storage native system uses.It is mainly used for depositing ciphering two-dimension code uniquely identified key, it is possible to the corresponding key of a kind of product is managed, it is also possible to one key of a batch of correspondence is managed, and key length is preferred with 128bit.
Step 2: the Quick Response Code in packaging for foodstuff is verified at each circulation node, if being verified, then performing step 3, otherwise, terminating circulation.
In the proof procedure of Quick Response Code, it is first according to that GB decoding algorithm is corrected, obtains original binary code stream after data recombination, then digital content is solved, until being decoded to GB segmentation markers " 0000 ", if also having residue original bit information not decode below, then read and the Bit data of mode of extension designator equal length, it may be judged whether be the mode of extension designator " 1110 " that specifies of native system, if then continuing decoding until extension segmentation markers " 0000 ", terminate if not then decoding.
In Quick Response Code decoding process, if the mode of extension designator " 1110 " that mode of extension designator does not specify for native system, then the non-native system of Quick Response Code generates.
With online verification and special equipment, Quick Response Code authentication module verifies that two ways verifies the legitimacy of Quick Response Code, Quick Response Code is verified, and is the prerequisite that can be accepted and continue down to circulate of product accompanying by it.
Step 3: record packaged food is at the circulation information of each circulation node, and packaged food flows to next circulation node or consumer.
Wherein, circulation information include circulation business's title, the product quantity of circulation, circulation product Quick Response Code uniquely identify, inlet time, delivery time etc..
Step 4: the tracing information of packaged food is inquired about by mobile scanning terminal Quick Response Code by consumer.
During consumer query tracing information, also according to unique mark of Quick Response Code, can be inquired about by special query web of reviewing.
Embodiment three
This embodiment additionally provides a kind of third party's food safety trace back device based on Quick Response Code, its concrete structure is as it is shown on figure 3, include following module: two-dimensional code generation module 31, tracing information management module 32, tracing information enquiry module 33, Quick Response Code authentication module 34 and user management module 35.
Two-dimensional code generation module 31, for generating the Quick Response Code setting form, is attached to described Quick Response Code on packaged food;
Tracing information management module 32, for recording the described packaged food circulation information at each circulation node, by the tracing information of described circulation information with the product information composition packaged food of described packaged food, the information of described tracing information Yu described Quick Response Code is associated storage;
Tracing information enquiry module 33, obtains the information of Quick Response Code for scanning the Quick Response Code on described packaged food, inquires about the tracing information of described packaged food according to the information scanning the Quick Response Code obtained.
Further, described two-dimensional code generation module 31, for adopting the mode of compatible GB Quick Response Code to carry out data encoding, obtain the bit stream of Quick Response Code, described bit stream includes GB inclusive segment and extension inclusive segment, described GB inclusive segment is consistent with the Quick Response Code of GB and reads the standard content that equipment can read, mark including described Quick Response Code, after described extension inclusive segment is positioned at described GB inclusive segment, including mode of extension designator, extension segmented content, extension segmentation markers, described extension segmented content is the content between described mode of extension designator and described extension segmentation markers, the identifying code that described extension segmented content includes the mark of described Quick Response Code is encrypted and generates.
Further, Quick Response Code authentication module 34, for the Quick Response Code in packaging for foodstuff being verified at each circulation node, corrected according to GB decoding algorithm, the bit stream of described Quick Response Code is obtained after data recombination, it is decoded described bit stream processing, until being decoded to GB segmentation markers, if also having residue original bit information not decode after described GB segmentation markers, then read the Bit data consistent with described mode of extension designator length after described GB segmentation markers, judge that whether described Bit data is the mode of extension designator that native system specifies, if then continuing to decode described bit stream until extending segmentation markers;If it is not, then decoding terminates;
Extension segmented content between described mode of extension designator and described extension segmentation markers is decoded, when the extension segmented content that decoding obtains comprises described identifying code, then described identifying code is decrypted process, information after described identifying code is deciphered includes the mark of described Quick Response Code, it is determined that described Quick Response Code is proved to be successful;When the extension segmented content that decoding obtains does not comprise described identifying code, or, the information after the deciphering of described identifying code does not include the mark of described Quick Response Code, it is determined that the checking of described Quick Response Code is unsuccessful.
Further, described tracing information management module 32 includes:
Tracing information logging modle 321, for the Quick Response Code in packaging for foodstuff being verified after successfully at each circulation node when Quick Response Code authentication module, then record packaged food is at the circulation information of each circulation node, described circulation information includes the mark of Quick Response Code, the circulation mark of node, inlet time, the delivery time that are attached on described packaging product, and described packaged food flows to next circulation node or consumer;If checking is not passed through, then terminate circulation;
Tracing information memory module 322, for being arranged in server, receive the circulation information packing product after the renewal that each circulation node is sended over by wireless or wireline communication network, the circulation information that all circulation nodes send over is carried out comprehensively, product information composition tracing information by the circulation information after comprehensive and described product, described tracing information is stored in product back-tracing data base, described product information includes name of product and product identification, described comprehensive after circulation information include the mark of the Quick Response Code being attached on described packaging product, the mark of each circulation node, the inlet time of each circulation node and delivery time.
Further, described tracing information enquiry module 33, for scanning the Quick Response Code on described packaged food, the bit stream of described Quick Response Code is obtained after, data recombination corrected according to GB decoding algorithm, it is decoded described bit stream processing, until being decoded to GB segmentation markers, obtain the GB inclusive segment in described Quick Response Code, obtain the mark of the Quick Response Code that described GB inclusive segment includes, mark according to described Quick Response Code inquires about the product back-tracing data base in described tracing information memory module, obtains the tracing information of described product.
Further, user management module 35, it is used for providing the user system registry, registration user's audit function being provided for native system manager.By audit user the Quick Response Code of native system could be used to generate, Quick Response Code checking, Quick Response Code decoding, encryption and decryption, trace back data acquisition function.
In the specific implementation, the Quick Response Code packed mainly through mobile scanning terminal product realizes tracing information inquiry;Special review query web it addition, may also provide, input Quick Response Code for user and uniquely identify and carry out tracing information inquiry.
Module in the system of the present invention can be combined according to the situation of being embodied as and decompose and reach preferably implementation result.Such as, can Quick Response Code authentication module and tracing information enquiry module be integrated on mobile phone terminal, consumer can pass through the two-dimension code image in mobile phone shooting packaging for foodstuff and decode, then the particular content in GB inclusive segment in two-dimensional code display, and the mode Connection Service ends such as GPRS, 3G or WIFI can be passed through, the mark of Quick Response Code and identifying code being sent to service end be verified, after being verified, the tracing information relevant to this product is returned to mobile phone terminal and presents to user by service end.
Again such as, can Quick Response Code authentication module, trace back data acquisition module be integrated on the special purpose intelligent terminal with display screen and wireless communication module, after user uses the legal account by auditing to log in special purpose intelligent terminal, decruption key is obtained to service end by this terminal, legitimacy at local verification Quick Response Code, and upload trace back data to service end, improve convenience and the efficiency of Quick Response Code checking and trace back data collection.
The detailed process carrying out the food safety trace back based on Quick Response Code with the device of the embodiment of the present invention is similar with preceding method embodiment, repeats no more herein.
In sum, the embodiment of the present invention is by hiding the content of the home zone in Quick Response Code, the existence of the identifying code that makes to be unaware of in home zone during public use, under the premise not affecting experience, enhance the safety of Quick Response Code, and then improve the safety of products in circulation accompanying by Quick Response Code.
The embodiment of the present invention provides unified distribution and the service for checking credentials of Quick Response Code, specification Quick Response Code mark and content, improves the service efficiency of Quick Response Code, it is simple to and interconnecting between other system, it is easy to form scale effect.The distribution information every time distributed all need not be encoded in Quick Response Code, need not distribute every time all generate new Quick Response Code, make distribution work become simple.
The embodiment of the present invention achieves " thing one yard " to packaged food and identifies, enhance the anti-counterfeit capability of product, and at the current intelligence of each each product of circulation nodes records, when there is food quality problem, it is easy to the location to defective product, quick recall.
The embodiment of the present invention can provide the user service with third party cloud service mode, website mode, it is not necessary to user is construction system voluntarily, reduces enterprise and uses the cost of system, has also ensured objectivity and the authority of tracing information simultaneously.
One of ordinary skill in the art will appreciate that: accompanying drawing is the schematic diagram of an embodiment, module or flow process in accompanying drawing are not necessarily implemented necessary to the present invention.
As seen through the above description of the embodiments, those skilled in the art is it can be understood that can add the mode of required general hardware platform by software to the present invention and realize.Based on such understanding, the part that prior art is contributed by technical scheme substantially in other words can embody with the form of software product, this computer software product can be stored in storage medium, such as ROM/RAM, magnetic disc, CD etc., including some instructions with so that a computer equipment (can be personal computer, server, or the network equipment etc.) perform the method described in some part of each embodiment of the present invention or embodiment.
Each embodiment in this specification all adopts the mode gone forward one by one to describe, between each embodiment identical similar part mutually referring to, what each embodiment stressed is the difference with other embodiments.Especially for device or system embodiment, owing to it is substantially similar to embodiment of the method, so describing fairly simple, relevant part illustrates referring to the part of embodiment of the method.Apparatus and system embodiment described above is merely schematic, the wherein said unit illustrated as separating component can be or may not be physically separate, the parts shown as unit can be or may not be physical location, namely may be located at a place, or can also be distributed on multiple NE.Some or all of module therein can be selected according to the actual needs to realize the purpose of the present embodiment scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
The above; being only the present invention preferably detailed description of the invention, but protection scope of the present invention is not limited thereto, any those familiar with the art is in the technical scope that the invention discloses; the change that can readily occur in or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with scope of the claims.

Claims (10)

1. the food safety trace back method based on Quick Response Code, it is characterised in that including:
Generate the Quick Response Code setting form, described Quick Response Code is attached on packaged food;
Record the described packaged food circulation information at each circulation node, by the tracing information of described circulation information with the product information composition packaged food of described packaged food, the information of described tracing information Yu described Quick Response Code is associated storage;
Scan the Quick Response Code on described packaged food and obtain the information of Quick Response Code, inquire about the tracing information of described packaged food according to the information scanning the Quick Response Code obtained.
2. the food safety trace back method based on Quick Response Code according to claim 1, it is characterised in that the described Quick Response Code setting form that generates includes:
The mode adopting compatible GB Quick Response Code carries out data encoding, obtain the bit stream of Quick Response Code, described bit stream includes GB inclusive segment and extension inclusive segment, described GB inclusive segment includes the mark of described Quick Response Code, after described extension inclusive segment is positioned at described GB inclusive segment, including mode of extension designator, extension segmented content, extension segmentation markers, described extension segmented content is the content between described mode of extension designator and described extension segmentation markers, the identifying code that described extension segmented content includes the mark of described Quick Response Code is encrypted and generates.
3. the food safety trace back method based on Quick Response Code according to claim 2, it is characterised in that described records the described packaged food circulation information at each circulation node, including:
At each circulation node, the Quick Response Code in packaging for foodstuff is verified, if being proved to be successful, then record packaged food is at the circulation information of each circulation node, described circulation information includes the mark of Quick Response Code, the circulation mark of node, inlet time, the delivery time that are attached on described packaging product, and described packaged food flows to next circulation node or consumer;If checking is not passed through, then terminate circulation.
4. the food safety trace back method based on Quick Response Code according to claim 3, it is characterised in that described is verified the Quick Response Code in packaging for foodstuff at each circulation node, including:
The bit stream of described Quick Response Code is obtained after, data recombination corrected according to GB decoding algorithm, it is decoded described bit stream processing, until being decoded to GB segmentation markers, if also having residue original bit information not decode after described GB segmentation markers, then read the Bit data consistent with described mode of extension designator length after described GB segmentation markers, judge that whether described Bit data is the mode of extension designator that native system specifies, if then continuing to decode described bit stream until extension segmentation markers;If it is not, then decoding terminates;
Extension segmented content between described mode of extension designator and described extension segmentation markers is decoded, when the extension segmented content that decoding obtains comprises described identifying code, then described identifying code is decrypted process, information after described identifying code is deciphered includes the mark of described Quick Response Code, it is determined that described Quick Response Code is proved to be successful;When the extension segmented content that decoding obtains does not comprise described identifying code, or, the information after the deciphering of described identifying code does not include the mark of described Quick Response Code, it is determined that the checking of described Quick Response Code is unsuccessful.
5. the food safety trace back method based on Quick Response Code according to any one of Claims 1-4, it is characterized in that, the described Quick Response Code scanned on described packaged food obtains the information of Quick Response Code, the tracing information of described packaged food is inquired about according to the information scanning the Quick Response Code obtained, including:
The circulation information of the packaging product after renewal is sent to server by wireless or wireline communication network by each circulation node, the circulation information that all circulation nodes send over is carried out comprehensively by described server, product information composition tracing information by the circulation information after comprehensive and described product, described tracing information is stored in product back-tracing data base, described product information includes name of product and product identification, described comprehensive after circulation information include the mark of the Quick Response Code being attached on described packaging product, the mark of each circulation node, the inlet time of each circulation node and delivery time;
Scan the Quick Response Code on described packaged food, the bit stream of described Quick Response Code is obtained after, data recombination corrected according to GB decoding algorithm, it is decoded described bit stream processing, until being decoded to GB segmentation markers, obtain the GB inclusive segment in described Quick Response Code, obtain the mark of the Quick Response Code that described GB inclusive segment includes, inquire about described product back-tracing data base according to the mark of described Quick Response Code, obtain the tracing information of described product.
6. the third party's food safety trace back device based on Quick Response Code, it is characterised in that including:
Two-dimensional code generation module, for generating the Quick Response Code setting form, is attached to described Quick Response Code on packaged food;
Tracing information management module, for recording the described packaged food circulation information at each circulation node, by the tracing information of described circulation information with the product information composition packaged food of described packaged food, the information of described tracing information Yu described Quick Response Code is associated storage;
Tracing information enquiry module, obtains the information of Quick Response Code for scanning the Quick Response Code on described packaged food, inquires about the tracing information of described packaged food according to the information scanning the Quick Response Code obtained.
7. the third party's food safety trace back device based on Quick Response Code according to claim 6, it is characterised in that:
Described two-dimensional code generation module, for adopting the mode of compatible GB Quick Response Code to carry out data encoding, obtain the bit stream of Quick Response Code, described bit stream includes GB inclusive segment and extension inclusive segment, described GB inclusive segment is consistent with the Quick Response Code of GB and reads the standard content that equipment can read, mark including described Quick Response Code, after described extension inclusive segment is positioned at described GB inclusive segment, including mode of extension designator, extension segmented content, extension segmentation markers, described extension segmented content is the content between described mode of extension designator and described extension segmentation markers, the identifying code that described extension segmented content includes the mark of described Quick Response Code is encrypted and generates.
8. the third party's food safety trace back device based on Quick Response Code according to claim 6, it is characterised in that described device also includes:
Quick Response Code authentication module, for the Quick Response Code in packaging for foodstuff being verified at each circulation node, corrected according to GB decoding algorithm, the bit stream of described Quick Response Code is obtained after data recombination, it is decoded described bit stream processing, until being decoded to GB segmentation markers, if also having residue original bit information not decode after described GB segmentation markers, then read the Bit data consistent with described mode of extension designator length after described GB segmentation markers, judge that whether described Bit data is the mode of extension designator that native system specifies, if then continuing to decode described bit stream until extending segmentation markers;If it is not, then decoding terminates;
Extension segmented content between described mode of extension designator and described extension segmentation markers is decoded, when the extension segmented content that decoding obtains comprises described identifying code, then described identifying code is decrypted process, information after described identifying code is deciphered includes the mark of described Quick Response Code, it is determined that described Quick Response Code is proved to be successful;When the extension segmented content that decoding obtains does not comprise described identifying code, or, the information after the deciphering of described identifying code does not include the mark of described Quick Response Code, it is determined that the checking of described Quick Response Code is unsuccessful.
9. the third party's food safety trace back device based on Quick Response Code according to claim 8, it is characterised in that described tracing information management module includes:
Tracing information logging modle, for the Quick Response Code in packaging for foodstuff being verified after successfully at each circulation node when Quick Response Code authentication module, then record packaged food is at the circulation information of each circulation node, described circulation information includes the mark of Quick Response Code, the circulation mark of node, inlet time, the delivery time that are attached on described packaging product, and described packaged food flows to next circulation node or consumer;If checking is not passed through, then terminate circulation;
Tracing information memory module, for being arranged in server, receive the circulation information packing product after the renewal that each circulation node is sended over by wireless or wireline communication network, the circulation information that all circulation nodes send over is carried out comprehensively, product information composition tracing information by the circulation information after comprehensive and described product, described tracing information is stored in product back-tracing data base, described product information includes name of product and product identification, described comprehensive after circulation information include the mark of the Quick Response Code being attached on described packaging product, the mark of each circulation node, the inlet time of each circulation node and delivery time.
10. the third party's food safety trace back device based on Quick Response Code according to claim 9, it is characterised in that:
Described tracing information enquiry module, for scanning the Quick Response Code on described packaged food, the bit stream of described Quick Response Code is obtained after, data recombination corrected according to GB decoding algorithm, it is decoded described bit stream processing, until being decoded to GB segmentation markers, obtain the GB inclusive segment in described Quick Response Code, obtain the mark of the Quick Response Code that described GB inclusive segment includes, mark according to described Quick Response Code inquires about the product back-tracing data base in described tracing information memory module, obtains the tracing information of described product.
CN201410721334.8A 2014-12-02 2014-12-02 Food safety tracing method and system based on two-dimension code Active CN105719144B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410721334.8A CN105719144B (en) 2014-12-02 2014-12-02 Food safety tracing method and system based on two-dimension code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410721334.8A CN105719144B (en) 2014-12-02 2014-12-02 Food safety tracing method and system based on two-dimension code

Publications (2)

Publication Number Publication Date
CN105719144A true CN105719144A (en) 2016-06-29
CN105719144B CN105719144B (en) 2021-07-27

Family

ID=56146403

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410721334.8A Active CN105719144B (en) 2014-12-02 2014-12-02 Food safety tracing method and system based on two-dimension code

Country Status (1)

Country Link
CN (1) CN105719144B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106228377A (en) * 2016-07-27 2016-12-14 江苏商达水务有限公司 A kind of product complete period retroactive method based on Quick Response Code and device
CN106408324A (en) * 2016-08-29 2017-02-15 星空电讯科技(北京)股份有限公司 Intelligent cloud screen identification code matching method
CN106846012A (en) * 2017-01-10 2017-06-13 深圳市法兰智联股份有限公司 A kind of false proof retroactive method and system
CN107992917A (en) * 2017-12-13 2018-05-04 广东正业科技股份有限公司 A kind of quality retroactive method of efficient multi-layer PCB
CN108681910A (en) * 2018-06-27 2018-10-19 中南民族大学 Retroactive method, device, terminal device based on network structure and storage medium
CN109447663A (en) * 2018-10-26 2019-03-08 杨溢 A kind of food safety control method and system
CN110458585A (en) * 2019-08-12 2019-11-15 北京星汉特种印刷有限公司 Based on block chain technical label traceability system
CN111242527A (en) * 2019-12-30 2020-06-05 航天信息股份有限公司 Grain transportation management method and device
CN111507736A (en) * 2020-04-21 2020-08-07 贵州大学 Method for recording product packaging process by using nested digital twin
CN115131038A (en) * 2022-07-06 2022-09-30 青岛数普智能互联科技有限公司 Food safety tracing method and device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005111926A1 (en) * 2004-05-18 2005-11-24 Silverbrook Research Pty Ltd Method and apparatus for security document tracking
CN101236623A (en) * 2008-01-04 2008-08-06 中信二十一世纪(中国)科技有限公司 Electronic monitoring code system
CN102314644A (en) * 2011-08-25 2012-01-11 广州宽度信息技术有限公司 Application system and method for realizing food information tracing by two-dimensional codes
CN102609543A (en) * 2012-02-27 2012-07-25 华南农业大学 Multifunctional two-dimensional code product traceability system and traceability method
CN102609803A (en) * 2011-01-11 2012-07-25 华南农业大学 Two-dimension code based low-cost product safety tracking system and method thereof
CN103729707A (en) * 2012-10-16 2014-04-16 廖利平 Chinese herbal piece supply chain management system based on codes
CN103886469A (en) * 2014-03-31 2014-06-25 南京理工大学 Product two-dimension code generation and query system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005111926A1 (en) * 2004-05-18 2005-11-24 Silverbrook Research Pty Ltd Method and apparatus for security document tracking
CN101236623A (en) * 2008-01-04 2008-08-06 中信二十一世纪(中国)科技有限公司 Electronic monitoring code system
CN102609803A (en) * 2011-01-11 2012-07-25 华南农业大学 Two-dimension code based low-cost product safety tracking system and method thereof
CN102314644A (en) * 2011-08-25 2012-01-11 广州宽度信息技术有限公司 Application system and method for realizing food information tracing by two-dimensional codes
CN102609543A (en) * 2012-02-27 2012-07-25 华南农业大学 Multifunctional two-dimensional code product traceability system and traceability method
CN103729707A (en) * 2012-10-16 2014-04-16 廖利平 Chinese herbal piece supply chain management system based on codes
CN103886469A (en) * 2014-03-31 2014-06-25 南京理工大学 Product two-dimension code generation and query system

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106228377A (en) * 2016-07-27 2016-12-14 江苏商达水务有限公司 A kind of product complete period retroactive method based on Quick Response Code and device
CN106408324A (en) * 2016-08-29 2017-02-15 星空电讯科技(北京)股份有限公司 Intelligent cloud screen identification code matching method
CN106846012A (en) * 2017-01-10 2017-06-13 深圳市法兰智联股份有限公司 A kind of false proof retroactive method and system
CN107992917A (en) * 2017-12-13 2018-05-04 广东正业科技股份有限公司 A kind of quality retroactive method of efficient multi-layer PCB
CN107992917B (en) * 2017-12-13 2020-01-31 广东正业科技股份有限公司 Quality tracing method for multilayer PCBs
CN108681910A (en) * 2018-06-27 2018-10-19 中南民族大学 Retroactive method, device, terminal device based on network structure and storage medium
CN109447663A (en) * 2018-10-26 2019-03-08 杨溢 A kind of food safety control method and system
CN110458585A (en) * 2019-08-12 2019-11-15 北京星汉特种印刷有限公司 Based on block chain technical label traceability system
CN111242527A (en) * 2019-12-30 2020-06-05 航天信息股份有限公司 Grain transportation management method and device
CN111507736A (en) * 2020-04-21 2020-08-07 贵州大学 Method for recording product packaging process by using nested digital twin
CN115131038A (en) * 2022-07-06 2022-09-30 青岛数普智能互联科技有限公司 Food safety tracing method and device and storage medium

Also Published As

Publication number Publication date
CN105719144B (en) 2021-07-27

Similar Documents

Publication Publication Date Title
CN105719144A (en) Food safety tracing method and food safety tracing system based on two-dimensional code
US11042791B2 (en) Method and apparatus for generating and reading composite two-dimensional code
US9436923B1 (en) Tracking unitization occurring in a supply chain
CN109598540B (en) Advertisement accurate pushing method and advertisement accurate pushing system
JP2020074513A (en) Cryptographic verification of source in supply chain
CN104834999B (en) Commodity based on cloud, which are traced to the source and consumed, flows to statistical analysis technique and system
CN105678365B (en) Two-dimensional code electronic ticket generating method and system, verification method and verification terminal
US20070215685A1 (en) System and Method of Product Identification Using a URL
CN102930317B (en) Books Quick Response Code identification generation apparatus, Quick Response Code identification recognition device and system
US20220311599A1 (en) Digital Ledger For Unique Item IDs With Ownership
CN103020682B (en) Books Quick Response Code identification generation apparatus, Quick Response Code identification recognition device and system
CN105761090B (en) A kind of signaling of two dimensional code, Activiation method and system
CN104281866A (en) Two-dimensional code application method and device
CN103413227A (en) Product fake prevention tracing system and method for implementing fake prevention tracing checking thereof
CN108537314A (en) Product marketing system and method based on Quick Response Code
CN105373933A (en) Food circulation traceability method based on electronic inspection report
CN111292041A (en) Electronic contract generating method, device, equipment and storage medium
CN107992923A (en) A kind of QR Quick Response Codes generation and the method read
CN104766113A (en) Plain and secret code type anti-fake label and anti-fake method thereof
CN104424579A (en) Security traceability management system
CN103489086A (en) Authority control system and method of logistics information
CN103929411A (en) Information displaying method, terminal, safety server and system
CN104794626A (en) Anti-counterfeiting method and anti-counterfeiting device based on hardware information
CN104680392A (en) Identity-based product tracing system and method
CN104836817A (en) Architecture and method for ensuring network information safety

Legal Events

Date Code Title Description
C06 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