Summary of the invention
In order to solve the problems of the technologies described above, the invention provides a kind of Product transport management method based on wireless radio-frequency and hash algorithm, by hash algorithm, identify fast the order of transporting cargo.
The technical scheme that the present invention takes is:
A Product transport management method based on wireless radio-frequency and hash algorithm, is characterized in that, comprises the steps:
(1) for each cargo unit distributes a RFID label, and deposit goods information and its corresponding RFID label in long-range freight detection center;
(2) by the entrucking in order of described cargo unit;
(3) by entrucking order, read the EPC code of each cargo unit RFID label and merge, by hash function, the EPC code merging being generated to Hash codes, and deposit the Hash codes of generation in long-range cargo survey center;
(4) cargo unit is transported to destination unloading;
(5) read successively EPC code the merging of the RFID label of cargo unit, by hash function, the EPC code merging is generated to Hash codes, and deposit the Hash codes of generation in long-range cargo survey center;
(6) Hash codes that the Hash codes that long-range cargo survey center generates (five) step and (three) step generate is verified, if the verification passes, enters transportation management process and finishes, if checking is not passed through, enters enquiry procedure.
Further, described cargo unit comprises some goods subelements, before described (one) step, comprises the steps:
(1) be that each goods subelement distributes a RFID label, and deposit goods subelement information and its corresponding RFID label in long-range freight detection center;
(2) one group of goods subelement is packaged into a cargo unit in order;
(3) by packing, sequentially read the EPC code of each goods subelement RFID label and merge, by hash function, the EPC code merging being generated to Hash codes, and deposit the Hash codes of generation in long-range cargo survey center,
In described (six) step, if the verification passes, enter following step:
(a) read successively EPC code the merging of the RFID label of goods subelement, by hash function, the EPC code merging is generated to Hash codes, and deposit the Hash codes of generation in long-range cargo survey center;
(b) Hash codes that the Hash codes that long-range cargo survey center generates (3) step and (a) step generate is verified, if the verification passes, enters transportation management process and finishes, if checking is not passed through, enters enquiry procedure.
Further, the read-write of described RFID label realizes by hand held mobile terminals, and described hand held mobile terminals carries out data communication by GPRS and described long-range cargo survey center.
The invention has the beneficial effects as follows:
(1) owing to having adopted hash algorithm, according to the characteristic of hash algorithm, the generation of Hash codes is unidirectional irreversible, be that identical input must produce identical Hash codes, can guarantee the checking of data, but cannot accurately calculate definite input value by Hash codes itself, even if this has just made to obtain Hash codes, also cannot instead release the order of each RFID label, the order that cannot reappear counterfeit goods, has guaranteed the security of proof procedure;
(2) Hash codes prestoring is kept at long-range cargo survey center, in the hand held mobile terminals of each use of examining goods, only there is hash function, and do not preserve the Hash code value that prestores for comparison result, all contrast verification processes are carried out long-range, and Hash codes result of calculation and Receipt Validation result are only uploaded in handheld terminal this locality.Adopt such separate mode, none knows original Hash codes field staff, thereby has stopped in the on-the-spot Hash codes of forging of examining goods to pass through the possibility of checking;
(3) hash function can make the data compression of random length be mapped as the data segment of a certain regular length, order proof procedure for each group only needs to upload this data segment (being Hash codes), without the EPC code to each RFID label, verify one by one, reduced like this data volume load of uploading, not only improve verification efficiency, also reduced taking and use cost wireless network resource;
(4) method that the present invention proposes is without special equipment, only need to increase tagged quantity and develop supporting software and can realize, owing to generally using hand held mobile terminals to carry out various forms of making an inventory to goods in freight industry at present, and there is the remote supervisory center of oneself in a lot of enterprises, therefore the present invention can realize to existing freight transportation inventory management system integratedly, and its cost is quite cheap;
(5) the present invention has generalization widely, and not only for use scenes in this paper, under much to the responsive scene of order, the method that adopts the present invention to propose, can verify efficiently to the order of detected object.
Embodiment
Below in conjunction with accompanying drawing, to the present invention is based on the embodiment of the Product transport management method of wireless radio-frequency and hash algorithm, elaborate.
In digital verification field, Hash (Hash) algorithm has been brought into play very large effect, simply, hash algorithm (being hash function) is a kind of one-way cipher system, be that it is an irreversible mapping from plaintext to ciphertext, only have ciphering process, there is no decrypting process.Meanwhile, hash function can be fixed the input of random length the output of length after changing.This characteristic of unidirectional of hash function and output data length fixing feature make it can generating messages or data.Therefore introduce hash algorithm, what just can effectively solve above-mentioned proposition carries out the problem of efficient verification to the order of cargo unit.
In the present invention, required freight is divided into cargo unit and goods subelement, and each cargo unit comprises several goods subelements, on each cargo unit and goods subelement all with corresponding RFID label.According to the stacking of goods, be sequentially arranged in order the EPC code value in the RFID label of each goods subelement, and use unified hash function that this segment encode value is mapped to Hash codes, this Hash codes is right with a group of EPC code formation of the cargo unit of concentrated this group goods subelement of binding, be saved in the lump long-range cargo survey center, simultaneously, all cargo units also generate the Hash codes of a cargo unit according to the method described above, in order to verify the order of putting of all cargo units, this code also deposits long-range cargo survey center in.
When goods is sent to destination and examined goods, the label substance that inspection officer uses the program of hand held mobile terminals (embedded RFID tag read-write equipment) operation customization to read cargo unit/subelement is verified goods.Because the process of examining goods of mentioning is here sequentially responsive to putting of goods, whether the order that need to detect kinds of goods in kinds of goods transportation there is change, therefore need take special operating process.
First in order read successively the EPC code of cargo unit, all running through rear hand held mobile terminals will merge whole EPC codes in order, and calculate Hash codes according to built-in hash function (adopting same hash function while delivering before same), this hand held mobile terminals has been equipped with GPRS module, result of calculation can be uploaded to long-range cargo survey center, center is by this code value of comparison and this time cargo unit Hash code value of shipment process prestoring, if consistent, the order of cargo unit is verified, the result is back to Mobile hand-held terminal by GPRS again, inspection officer can know this result then and there, thus, preliminary test completes.
After completing preliminary check, to the goods subelement in each cargo unit, can carry out further checking in detail.Method is the same, read in order after the EPC code of each goods subelement, hand held mobile terminals will calculate corresponding Hash codes, read again the EPC code of this cargo unit, handheld terminal program can be uploaded to long-range cargo survey center in the lump by Hash codes and cargo unit EPC code subsequently, the data that comparison is uploaded at center and the data that prestore, if all unanimously, by checking, represent that the order of the goods subelement in this cargo unit is without change, after the checking of center, the result can be returned to handheld terminal at once, thereby complete Detailed Inspection.
Thinking based on above-mentioned, will propose a kind of combination RFID of high efficient and reliable and the Product transport management method of hash algorithm in the present invention, and the method can identify the situation whether kinds of goods have order change fast.
The step of the Product transport management method based on wireless radio-frequency and hash algorithm is as follows:
(1) be that each goods subelement distributes a RFID label, and deposit goods subelement information and its corresponding RFID label in long-range freight detection center;
(2) one group of goods subelement is packaged into a cargo unit in order;
(3) by packing, sequentially read the EPC code of each goods subelement RFID label and merge, by hash function, the EPC code merging being generated to Hash codes, and deposit the Hash codes of generation in long-range cargo survey center;
(4) for each cargo unit distributes a RFID label, and deposit goods information and its corresponding RFID label in long-range freight detection center;
(5) by the entrucking in order of described cargo unit;
(6) by entrucking order, read the EPC code of each cargo unit RFID label and merge, by hash function, the EPC code merging being generated to Hash codes, and deposit the Hash codes of generation in long-range cargo survey center;
(7) cargo unit is transported to destination unloading;
(8) read successively EPC code the merging of the RFID label of cargo unit, by hash function, the EPC code merging is generated to Hash codes, and deposit the Hash codes of generation in long-range cargo survey center;
(9) Hash codes that the Hash codes that long-range cargo survey center generates (6) step and (8) step generate is verified, if the verification passes, enters (10) step, if checking is not passed through, enters enquiry procedure;
(10) read successively EPC code the merging of the RFID label of goods subelement, by hash function, the EPC code merging is generated to Hash codes, and deposit the Hash codes of generation in long-range cargo survey center;
(11) Hash codes that the Hash codes that long-range cargo survey center generates (3) step and (10) step generate is verified, if the verification passes, enters transportation management process and finishes, if checking is not passed through, enters enquiry procedure.
Said method is also can split into single cargo unit to carry out transportation management, also can realize the products-tree of more multi-layered time realizes, be that each goods subelement also comprises a plurality of subdivisions, a plurality of subdivisions are also realized the transportation management of sequence detection by RFID and HASH algorithm, and can tire out and push away according to this.
Below by an embodiment, elaborate the present invention.Referring to accompanying drawing 1, this figure is the Product transport management method system architecture diagram based on RFID.This system is by cargo unit set of tags, and hand held mobile terminals and long-range cargo survey center form.As shown in the figure, be mounted with several (n) required freight unit in the container of lorry, each cargo unit includes again several (m) goods subelements.Be that cargo unit or subelement are all accompanied with an independently RFID label, each label has its unique EPC code, and the situation of the goods relevant with this label is entered in long-range cargo survey central database when issue of bidding documents label.And in goods subelement vanning in cargo unit process, according to vanning order, by the EPC code of each subelement, be input, the Hash codes generating by hash function is as output, this Hash codes also deposits long-range cargo survey central database in.In addition, in the process of cargo unit entrucking, according to entrucking order, by the EPC code of unit, be input, the Hash codes generating by hash function is as output, and this Hash codes can be deposited into long-range cargo survey central database equally.Hand held mobile terminals is responsible for the process of examining goods, and its inside is with RFID module for reading and writing and GPRS module.Operate the program of examining goods of customization, read successively in order the EPC code of the subsidiary RFID label of cargo unit/subelement, program is by Automatic Combined code value and calculate corresponding Hash codes, by GPRS, uploads this Hash codes, usings as the foundation of verifying.Once long-range cargo survey center receives the data of uploading, data during delivery that Ji Tong data center prestores contrast, and whether check code value is consistent, if the order that unanimously represents goods is without change, with this, verify.The result will be returned hand held mobile terminals again by GPRS, and examining officer will obtain the result of examining goods in time, to carry out subsequent treatment.
Referring to accompanying drawing 2 and accompanying drawing 3, be respectively Product transport management process schematic diagram based on RFID and the Product transport management process process flow diagram based on RFID, in conjunction with two width figure, shown the overall process of Product transport management.The beginning of transportation management process, need to stick RFID label for each cargo unit and goods subelement, and this label can be used as the authentication foundation of each unit.In the time of labeling, the details of the cargo unit/subelement corresponding with label are entered into long-range cargo survey center.In order further to verify the placement order of goods also realization, just one group of goods subelement need to be packaged as in the process of a cargo unit, order according to packing is got up EPC code combination corresponding to each goods subelement, and generates corresponding Hash codes by hash function.Same, in the entrucking process of cargo unit, also to the EPC code of cargo unit be generated to corresponding Hash codes according to entrucking order.The Hash codes of all generations all will be deposited into long-range cargo survey center as the original comparison foundation that goods order is verified, above-mentioned Hash codes generative process can complete and be uploaded to long-range cargo survey center by hand held mobile terminals and preserve.Goods handling, to destination, can carry out the process of examining goods of same said process contrary.The process of examining goods is carried out with hand held mobile terminals equally.According to the order of unloading, read the EPC code of cargo unit, be uploaded to long-range cargo survey center after generating corresponding Hash codes, consistent with original code value if center contrasts this code value,, by preliminary identification, the result feeds back to handheld terminal.After unloading, to each cargo unit process of can further examining goods in detail, each goods subelement is wherein gathered to its EPC code successively, generate corresponding Hash codes, and the EPC code of this Hash codes and this cargo unit is together uploaded to the checking of comparing of long-range cargo survey center, the result also will be back to handheld terminal, if the verification passes, this time transportation is legal, if checking is not passed through, enter follow-up enquiry procedure, until finish.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.