A kind of merchandise news recognition methods and system based on bluetooth
Technical field
The present invention relates to merchandise news recognition technology field, be specifically related to a kind of merchandise news recognition methods and system based on bluetooth.
Background technology
Antifalsification label formal name used at school anti-counterfeiting mark has another name called anti-false trademark, is can paste, print, shift on subject matter surface, or on the subject matter packing, or the subject matter adjunct, lists, on business card and the antifake certificate card, has the sign of anti-fake effect such as commodity.
Antifalsification label is scheme and the effective means that the brand user protects own brand, has at present multiple anti-counterfeiting technology, such as two-dimension code, bar code and laser anti-counterfeit code etc., but these anti-counterfeiting technologies have reproducibility, and easily by counterfeit, security is still not high.
In addition, prior art also provides the radio frequency identification by RFID() label carries out false proofly, although have preferably anti-replicability, needs special-purpose card reader, inconvenient consumer's inquiry.If use the mobile phone of integrated card reader, although convenient inquiry, the recognition code of each RFID applying unit is different, uses at same mobile phone, causes easily leakage of data; And the mobile phone of integrated card reader can not be identified the label that copies of forgery, has to be solved.
Summary of the invention
For defects, the object of the invention has been to propose a kind of merchandise news recognition methods and system based on bluetooth, to improve the security of existing anti-counterfeiting technology.
For achieving the above object, the present invention is achieved through the following technical solutions:
A kind of merchandise news recognition methods based on bluetooth is applied to comprise in the system of bluetooth label, communication apparatus and cloud computing server, said method comprising the steps of:
Described communication apparatus sends query statement to described bluetooth label, comprises the merchandise classification of needs inquiry in the described instruction;
Described bluetooth label reads anti-counterfeiting information according to described merchandise classification, and described anti-counterfeiting information comprises merchandise news dynamic code, access times information code, UID number, central processing unit CPU operation part and random code;
Described bluetooth label sends to described cloud computing server by described communication apparatus after described anti-counterfeiting information is encrypted;
Described cloud computing server is decrypted the anti-counterfeiting information of described encryption, and the anti-counterfeiting information of the anti-counterfeiting information after the deciphering with local storage compared, and judges the true and false of described bluetooth label, and notifies described communication apparatus.
Preferably: described cloud computing server judges that described bluetooth label for after very, dynamically generates new anti-counterfeiting information, and sends to described bluetooth label by described communication apparatus;
Described bluetooth label is stored described new anti-counterfeiting information.
Preferably, the anti-counterfeiting information after described will the deciphering compares with the anti-counterfeiting information of this locality, judges the true and false of described bluetooth label, specifically comprises:
Judge whether CPU operation part structured data is tampered, if be not tampered, then the bluetooth label is true; Or
Judge whether the access times in the access times information code conform to the access times of cloud computing server record, if conform to, then the bluetooth label is true.
Preferably, the anti-counterfeiting information after described will the deciphering compares with local anti-counterfeiting information, judges that described bluetooth label for after very, also comprises:
When verifying first the bluetooth label for after very, if subsequent authentication sequence number occurs less than the sequence number of cloud computing server storage, judge that then this bluetooth label is vacation.
Preferably, the anti-counterfeiting information after described will the deciphering compares with local anti-counterfeiting information, judges that described bluetooth label for after very, also comprises:
After successfully inquiring about pre-determined number continuously, suspend schedule time access.
Preferably, the anti-counterfeiting information after described will the deciphering compares with local anti-counterfeiting information, judge that described bluetooth label is vacation after, also comprise:
Record the IP of all abuses.
A kind of merchandise news recognition system based on bluetooth comprises: cloud computing server, communication apparatus, bluetooth label;
Described communication apparatus be used for sending the request of a certain class merchandise query to described bluetooth label, and the anti-counterfeiting information that described bluetooth label is encrypted sends to described cloud computing server;
Described bluetooth label is used for reading anti-counterfeiting information according to described merchandise classification, and described anti-counterfeiting information comprises merchandise news dynamic code, access times information code, UID number, central processing unit CPU operation part and random code; And with after the described anti-counterfeiting information encryption, send to described cloud computing server by described communication apparatus;
Described cloud computing server after being used for anti-counterfeiting information to above-mentioned encryption and being decrypted, is judged the true and false of this bluetooth label, with final judged result notification communication equipment.
Preferably, described cloud computing server be used for to determine that also the bluetooth label is true time, after dynamically generating new anti-counterfeiting information and encrypting, returns to described bluetooth label;
Described bluetooth label also is used for deciphering and obtains described new anti-counterfeiting information, and storage.
Compared with prior art, the present invention has following beneficial effect:
Use the bluetooth label to substitute conventional labels in the present invention, communication apparatus obtains the anti-counterfeiting information of encrypting in the bluetooth label, and the anti-counterfeiting information that will encrypt is sent to cloud computing server and carries out truth identification, and cloud computing server is with recognition result notification communication equipment; And cloud computing server regenerates dynamic anti-fake information after each identification, send to the bluetooth label and store.Because anti-counterfeiting information is dynamically to generate, be difficult for copying, therefore, improved the security of anti-dummy check.
Description of drawings
The below is described in further detail the present invention according to embodiment and accompanying drawing.
Fig. 1 is a kind of merchandise news recognition system structural drawing based on bluetooth of the embodiment of the invention 1;
Fig. 2 is a kind of based on bluetooth label construction figure in the merchandise news recognition system of bluetooth of the embodiment of the invention 1;
Fig. 3 is a kind of merchandise news recognition methods process flow diagram based on bluetooth of the embodiment of the invention 2.
Description of drawings:
Wherein, 10, cloud computing server; 20, communication apparatus; 30, bluetooth label.
Embodiment
A kind of merchandise news recognition system based on bluetooth of the embodiment of the invention 1 as shown in Figure 1, comprises cloud computing server 10, communication apparatus 20 and bluetooth label 30.Communication apparatus 20 sends the request of a certain class merchandise query to described bluetooth label 30, and the anti-counterfeiting information that described bluetooth label 30 is encrypted sends to described cloud computing server 10; Described bluetooth label 30, be used for reading anti-counterfeiting information according to described merchandise classification, described anti-counterfeiting information comprises merchandise news dynamic code, access times information code, UID number, central processing unit CPU (Central Processing Unit, CPU (central processing unit)) operation part and random code; And with after the described anti-counterfeiting information encryption, send to described cloud computing server 10 by described communication apparatus 20; Described cloud computing server 10 after being used for anti-counterfeiting information to above-mentioned encryption and being decrypted, is judged the true and false of this bluetooth label, with final judged result notification communication equipment 20.Described cloud computing server 10 be used for to determine that also the bluetooth label is true time, after dynamically generating new anti-counterfeiting information and encrypting, returns to described bluetooth label 30; Described bluetooth label 30 also is used for deciphering and obtains described new anti-counterfeiting information, and storage.
Wherein, communication apparatus 20 is the mobile devices that can carry out radio communication, for example mobile phone or PDA(Personal Digital Assistant, personal digital assistant) etc.
Bluetooth label 30 as shown in Figure 2, comprise: antenna, bluetooth module, CPU(Central Processing Unit, CPU (central processing unit)), ROM(Read-Only Memory, ROM (read-only memory)), RAM(Random Access Memory, random access memory), EEPROM(Electrically Erasable Programmable Read-Only Memory, EEPROM (Electrically Erasable Programmable Read Only Memo)) etc.CPU is connected with ROM, RAM, EEPROM and bluetooth module, communicates control; Bluetooth module is communicated by letter with communication apparatus 20 by antenna.Wherein, the anti-counterfeiting information of storing among the EEPROM comprises: UID(User Identification, user identity proves) number, for read-only; The merchandise news dynamic code through generating after cloud computing server 10 encryptions, is provided new number by cloud computing server 10 after reading at every turn, again deposits in; The access times information code is the serial number that increases progressively behind each access cloud computing server, such as 1,2,3 ...., n, and with serial number through encrypting, generate the access times information code; The CPU operation part for part key code in the CPU operation program, is dynamically provided by cloud computing server at every turn; Random code is dynamically provided by cloud computing server at every turn.During each read operation, CPU carries out computing with above related data and encrypts according to the order of ROM Program, sends to cloud computing server 10 by communication apparatus 20.Bluetooth label 30 is installed on the open place of commodity usually, and when commodity are enabled, bluetooth label 30 will be destroyed.
A kind of merchandise news recognition methods based on bluetooth of the embodiment of the invention 2 as shown in Figure 1, may further comprise the steps:
Step 101, communication apparatus sends query statement to described bluetooth label, comprises the merchandise classification of needs inquiry in this instruction.
Step 102, described bluetooth label reads anti-counterfeiting information in the program information, EEPROM of ROM according to described merchandise classification, the anti-counterfeiting information that reads comprises: the UID of bluetooth label, merchandise news dynamic code, access times information code, CPU operation part and random code.Wherein, the access times information code is that every access once after this bluetooth label dispatched from the factory, access times record in the cloud computing server increases progressively, behind special cryptographic calculation, obtain access times information, and naturally 1,2,3 ..., n is corresponding one by one, but through cryptographic calculation; The CPU operation part is part key code in the CPU operation program, comprises specifying the code that reads some character among the bluetooth label UID, is regenerated by cloud computing server after reading at every turn.
Step 103, the CPU of bluetooth label sends to communication apparatus after the anti-counterfeiting information that reads is encrypted.
Step 104, the anti-counterfeiting information that communication apparatus will be encrypted sends to cloud computing server.
Step 105, cloud computing server is decrypted the anti-counterfeiting information of the encryption of reception, obtains merchandise news dynamic code, access times information code, CPU operation part and random code.Automatically record simultaneously the IP address of each access, according to the false pain product of differentiating, according to the IP address, can trace the fraud root.
Step 106, cloud computing server compares by the anti-counterfeiting information anti-counterfeiting information corresponding with this bluetooth label of storage that above-mentioned deciphering obtains, and judges the true and false of this bluetooth label, if be false, then notification communication equipment shows that at communication apparatus testing result is false; If access times are 2, then show that at communication apparatus testing result is true; If access times are 1, then turn 107.
Judge that the true and false specifically comprises: CPU operation part (COS that deposits among the ROM) structured data by communication apparatus transmits judges whether to be tampered, if be tampered then be false; In addition, can also judge according to the access times information code true and false of bluetooth label, because after the anti-counterfeiting information that at every turn reads the bluetooth label passes to cloud computing server, access times should add one, if the access times of the access times of bluetooth label and cloud computing server record are not inconsistent, it is false then differentiating the bluetooth label.In addition, certain lot number data connected reference n time all after the mistake, suspends the access of this bluetooth label, and replys to communication apparatus: " please contacting with producer ".In addition, judges the bluetooth label when first checking and as after very, if the sequence number that sequence number is stored less than cloud computing server appears in subsequent authentication, judge that then this bluetooth label is vacation.
Step 107, cloud computing server through different cryptographic algorithm, generates new following data according to the classified information that receives: the merchandise news dynamic code that re-encrypted generates; The access times information code (this information is the serial number that increases progressively behind each access server, such as 1,2,3 ...., n ..., and with serial number through encrypting, generate new access times information code; (part key code in the CPU operation program comprises and specifies the code that reads some character among the bluetooth label UID CPU operation part, is regenerated by cloud computing server after reading at every turn; Random code (is dynamically provided by cloud computing server at every turn, by cloud computing server is regenerated after reading at every turn.Cloud computing server storage anti-counterfeiting information is also encrypted the generated data bag, sends to communication apparatus;
Step 108, communication apparatus sends to the bluetooth label with encrypted packets;
Step 109, bluetooth label deciphering anti-counterfeiting information, store this anti-counterfeiting information after, encrypt generated data bag (comprising new anti-counterfeiting information), store among the EEPROM.
After an above-mentioned query script is finished, can proceed repeatedly to inquire about, if but after successfully inquiring about n time continuously, suspend a period of time access; If after inquiring about unsuccessfully n time continuously, prompt for vacation, stop the verification of data of this label, record the IP of all abuses, visit again later on, do not show the result, record IP.
The above has carried out exemplary description to the present invention by reference to the accompanying drawings; obvious realization of the present invention is not subjected to the restriction of aforesaid way; as long as the various improvement of having adopted method design of the present invention and technical scheme to carry out; or without improving design of the present invention and technical scheme are directly applied to other occasion, all in protection scope of the present invention.