Label information identification methodTechnical Field
The invention relates to a tag information identification method, in particular to a method for generating a communication encryption key by using application ID information capable of uniquely identifying the identity of a user at a wechat applet client, and encrypting and decrypting communication between the wechat applet client and tag equipment, so that the tag identification safety and the user use convenience are improved.
Background
With the development of information technology and the popularization of mobile internet, various intelligent terminal devices, particularly smart phones, are more and more widely applied, and great convenience is brought to the daily life of people.
The object searching is a thing which people often encounter in daily life. People may forget the last place of the article for their own use when needed due to various reasons, so that it takes a lot of time to search for the article, and even the article cannot be found at any time, which may cause some influence on work or life.
The electronic tag capable of being identified by the smart phone is installed on the article, the electronic tag sends information representing the characteristics of the article to the outside through wireless signals, when a person forgets the last placement position of the article, the wireless signals sent by the peripheral tags can be received only by opening the mobile phone, and therefore the tags are judged to be in a certain peripheral range. Furthermore, through the sound/light/electric module arranged in the tag, when the mobile phone finds that the tag is located at the peripheral position, the mobile phone can control the tag to send out sound/light/electric signals through wireless signals, and a user is helped to quickly find an article bound with the tag.
The low-power consumption Bluetooth technology is a wireless communication technology which is very popular in the current smart phones and has the characteristics of low power consumption and low cost. WeChat is one of the most popular application software on smart phones in China, and the number of users in China exceeds 10 hundred million. Therefore, a set of tag information identification system is realized based on the WeChat small program and the low-power-consumption Bluetooth technology, is used for finding and positioning articles in daily life of people, and has an extremely low user use threshold and a wide use scene. However, in the specific implementation process of the above technical solution, the following engineering problems need to be solved to achieve better user experience:
1. due to the popularization of Bluetooth equipment, when a small program client scans peripheral Bluetooth equipment, a plurality of Bluetooth equipment signals irrelevant to a wechat user can be searched, and the user needs to manually distinguish the signals, so that the user experience is poor;
2. many times, personal articles belong to the personal privacy category, and users do not want others to search personal articles;
therefore, how to quickly and safely help users find personal articles which only belong to the users is a problem which needs to be solved. Wechat is used as a mobile application program for real-name authentication, and has user identity uniqueness. The WeChat applet client user application ID generated based on the unique user identity is also unique, and when the WeChat applet client user application ID is used for configuration of a tag and encryption of communication data, association of the tag equipment and the WeChat personal identity can be achieved simply, conveniently and safely, and therefore convenience and safety in the identification process of the personal tag equipment are improved.
Disclosure of Invention
A label information identification method is applied to a label identification system consisting of label equipment and a WeChat applet client, and is characterized in that:
the tag device is an electronic device with a built-in memory, a controller and a low-power Bluetooth interface;
the WeChat applet client communicates with the tag device wirelessly through a Bluetooth interface of the intelligent mobile terminal;
the communication encryption key is generated between the tag equipment and the WeChat small program client by adopting application ID information capable of uniquely identifying the user identity of the WeChat small program client, and is used for encrypting the Bluetooth wireless communication content, so that the security and convenience of tag information identification are improved;
further, the labeling equipment is characterized in that label initial characteristic information which can be recognized by naked eyes is fixedly marked on the appearance of the equipment in a form of direct silk-screen printing, character pasting or two-dimensional codes;
further, the tag initial characteristic information is characterized in that the information content includes a tag bluetooth interface physical address, a bluetooth broadcast name, and a tag initial configuration password;
further, the tag device is characterized in that the tag device further comprises an acoustic/optical/electrical module, and after the tag device receives external control information through the low-power bluetooth interface, the tag device can be controlled by the controller to send out corresponding acoustic/optical/electrical signals;
furthermore, the wechat applet client is characterized in that initial characteristic information of a label marked on the appearance of the label device can be acquired through user input or a mode of directly scanning a two-dimensional code, so that a Bluetooth connection is established with the designated label device;
further, the wechat applet client is characterized in that after establishing bluetooth connection with the tag device, the obtained tag initial configuration password is used to generate a communication encryption key, and after encrypting the application ID information including the user identity of the wechat applet client, the tag user configuration information is sent to the tag device;
furthermore, the application ID information capable of uniquely identifying the identity of the applet client is the application ID of the applet client itself, or is ID information capable of uniquely identifying the identity of the applet user established or generated according to the application ID of the applet client itself;
further, the tag device is characterized in that after receiving tag user configuration information sent by the wechat applet client, a tag initial configuration password is used for generating a communication encryption key for validity check and decryption of the information, and the information is stored after the validity of the information is confirmed, so that the tag initial configuration process is completed;
further, the tag device is characterized in that after initial configuration of the tag is completed, a new communication encryption key is generated by using application ID information which is stored in a tag memory and can uniquely identify the identity of a user at a client of the wechat applet, and the new communication encryption key is used for subsequently encrypting information sent by the tag;
further, the wechat applet client is characterized in that after receiving information sent by the tag device with the tag initial configuration completed, an encryption key is generated by using application ID information capable of uniquely identifying the identity of the wechat applet client user, and the information is subjected to validity check and decryption.
Drawings
FIG. 1 is a schematic view of a labeling apparatus
FIG. 2 is a schematic diagram of a tag identification system
FIG. 3 is a schematic diagram of a tag information identification method A
FIG. 4 is a schematic diagram B of a tag information identification method
Detailed Description
The invention has the main idea that an encryption key is generated by using the application ID information capable of uniquely identifying the identity of the user of the wechat applet client, and the communication between the label equipment and the wechat applet client is encrypted, so that the safety and convenience of label information identification based on the wechat applet client are improved.
The principles and features of this invention are described below in conjunction with the following drawings, which are set forth by way of illustration only and are not intended to limit the scope of the invention.
Fig. 1 shows atag device 101 according to an embodiment of the present invention, which includes amemory 102, acontroller 103, a bluetoothlow energy interface 104, an audio/optical/electrical module 105, and apower supply 106. Thememory 102 is configured to store tag initial configuration information and tag user configuration information, including a tag initial broadcast name, a low power consumption bluetooth interface physical address, a tag initial configuration key, a tag user configuration name, a tag-associated wechat applet user application ID, and the like. Thecontroller 103 is configured to control thememory 102 to read and write data, control the bluetoothlow energy interface 104 to perform wireless communication, control the sound/light/electric module 105 to emit sound/light/electric signals, and perform encryption and decryption operations on data received and transmitted by thetag device 101 from the bluetooth low energy interface. The bluetoothlow energy interface 104 is used for data communication with an external bluetooth host device under the control of thecontroller 103. The sound/light/electrical module 105 is used to emit sound/light/electrical signals under the control of thecontroller 103. Thepower supply 106 is used for supplying power to thememory 102, thecontroller 103, the bluetoothlow energy interface 104 and the sound/light/electric module 105.
Fig. 2 shows a tag identification system according to an embodiment of the present invention, which includes atag device 201 and awechat applet client 206. Thelabel device 201 is printed with a label deviceinitial name 203, a label device bluetooth low energy interfacephysical address 204, a label deviceinitial configuration password 205, and a label device two-dimensional code 202 representing the above information on its external surface. The wechatapplet client 206 communicates with thetag device 201 via a bluetooth low energy interface and encrypts and decrypts communication data using thecommunication encryption key 207. Wherein, in the initial configuration stage of thetag device 201, thecommunication encryption key 207 is generated by theinitial configuration password 205 of the tag device; in the application phase after the initial configuration of thetag device 201 is completed, the communication encryption key is generated by the user application ID of thewechat applet client 206.
Fig. 3 is a flowchart of a method for initially configuring a tag device based on a wechat applet client in an embodiment of the present invention, which is specifically as follows:
a) thetag device 301 broadcasts tag initialcharacteristic information 304 through a bluetooth interface, wherein theinitial characteristic information 304 comprises an initial name of the tag device and a physical address of a low-power bluetooth interface of the tag device;
b) the wechatapplet client 302 scans thetag device 303 using a mobile phone low power bluetooth interface;
c) the method comprises the steps that initialcharacteristic information 305 of the label equipment is obtained through user input or two-dimensional code scanning at a WeChatapplet client 302, the content comprises an initial name of the label equipment, a physical address of a low-power-consumption Bluetooth interface of the label equipment and an initial configuration password of the label equipment;
d) thewechat applet client 302 establishes a bluetooth connection 306 with the tag device specified by the user according to the tag initial name, the tag device low power consumption bluetooth interface physical address;
e) thewechat applet client 302 generates a tag configuration key according to the tag initial configuration password and encrypts 307 user configuration information, wherein the tag user configuration information comprises the tag name set by the user, the user application ID of the wechat applet client and the like;
f) the wechat applet client sends the encrypteduser configuration information 308 to the designatedtag device 301;
g) thetag device 301 generates a tag configuration key according to the tag initial configuration password and performs validity check anddecryption 309 on the user configuration information;
h) thetag device 301 stores theuser configuration information 310 and sendsconfiguration completion information 311 to the wechatapplet client 302;
i) thewechat applet client 302prompts 312 the user for tag configuration completion.
Fig. 4 is a flowchart illustrating a method for generating an encryption key by using application ID information capable of uniquely identifying a user identity of a wechat applet client, so as to enable a tag device to communicate with the wechat applet client, thereby implementing secure and convenient identification of tag information in this embodiment.
a) Thetag device 401 generates atag application key 403 according to the stored user application ID information of the wechat applet client;
b)tag device 401 broadcasts encrypteduser profile 405;
c) thewechat applet client 402 scans thetag device 404;
d) thewechat applet client 402 generates a tag application key 406 from the user application ID information;
e) thewechat applet client 402 checks the validity of the received tag data based on the application key and decrypts the received tag data to obtain taguser configuration information 407;
f) thewechat applet client 402 prompts the user whether the tag device to be sought is in a peripheral state 408;
g) thewechat applet client 402 establishes a bluetooth connection with a tag device to be found by a user according to user operation;
h) thewechat applet client 402 sends the encrypted tag device sound/light/electric control information 410 to thetag device 401 to be searched according to the user operation, and the encryption process is performed by using the generated application key;
i) thetag device 401 verifies the validity of the received tag data based on the application key, and decrypts the received tag data to obtain the tag device sound/light/electric control information 411;
j) the tag device emits an audible/visual/electrical alert.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.