Intelligent positioning system and information coding method
Technical field
The present invention relates to a kind of intelligent positioning system and information coding method, belong to electronic information technical field.
Background technology
At present, wearable intelligent electronic product is progressively risen, numerous, multifarious, is walked from original illusion
Into reality, such as intelligent watch, intelligent glasses, Intelligent bracelet.Some combine newest NFC (Near Field
Communication, near-field communication) technology provide to the user it is brand-new possess the routine monitoring character function such as movement, sleep, also
Add the "smart" products of bluetooth headset function.More importantly mobile phone using NFC can also transmit file, switch mobile phone,
Read information, substitute public transport access card etc..It is not only more convenient to carry with, the function of becoming increasingly abundant also is provided for people,
Their appearance will greatly change modern lifestyle.As can help tracing and positioning, the wearable electronic of identity validation
Product will receive an acclaim.
NFC standard shares four class chips at present, wherein the overwhelming majority is ISO/IEC 14443-A classes.By NXP
The Mifare Classic of Semiconductors exploitations are in 13.56MHz frequency ranges of operation, have read/write ability
Non-contact smart card IC in pioneer and leader, cost performance is higher.In the existing use scope in market, Mifare
Classic occupies the share more than 80%.But also have between the standard agreement of Mifare Classic and stringent NFC
Difference, the mobile phone that in the market has substantial portion of configuration NFC function do not support such NFC chip, bring its scope of application
Limitation.In NFC mobile phone application, standard is followed strictly, the chip of good compatibility gradually dominates the market, consumer product manufacturer is
Allow all NFC mobile phone users can to read data, also as far as possible using the complete compatible NFC chip of standard.
But compatible NFC chip capacity usually only has 100 multibytes, far smaller than Mifare Classic cards to standard entirely
1K or 4K bytes.This is just needed when using full compatible chip using more efficient coding mode.Stored using NFC chip
Information, realizes the tracking to people and article, be related to inquiry mode, inquiry, the identity for being queried object or kind, classification,
Numerous information such as time, place, with greater need for use efficient code storage mode, realize NFC chip capacity resource it is most effective,
The function to people or item tracing positioning could be realized on the basis of rationally utilizing.
The content of the invention
It is an object of the invention to provide a kind of intelligent positioning system and information coding method, with NFC technique, passes through intelligence
Energy terminal induction, reaches the people of movement to wearing information device or the fast track positioning of thing etc..Wherein information coding method
A kind of data-encoding scheme is provided for complete compatible NFC chip, can meet grid while chip memory space is saved
The requirement of information transmission.
The purpose of the present invention is achieved by the following technical programs:
A kind of intelligent positioning system, including intelligent terminal, cloud server, massaging device, described information device include NFC
Chip, device case, the model of the NFC chip are the Ntag203 of NXP semiconductor companies, and the NFC chip insertion is installed on
In device case, the NFC chip of described information device cures holder's identity identification information according to transfer storage coding mode
Preserve, the intelligent terminal supports NFC inducing functions, passes through near field wireless telecommunications, intelligence between intelligent terminal and massaging device
Terminal is sensing apparatus, and massaging device is passive equipment, is carried out between intelligent terminal and cloud server by 4G wireless networks
Data double-way transmits.
A kind of intelligent positioning system information coding method, the identity identification information of massaging device holder is deposited according to transfer
Storage coding mode coding solidify afterwards are stored in the NFC chip of massaging device, by intelligent terminal induction information device, obtain information
Coding information in device, intelligent terminal send coding information to cloud server, and cloud server is receiving coding information
After decode it, and the identity information of return information device holder, while cloud server sends geographical position to intelligent terminal
Solicited message is put, after intelligent terminal receives the Geoposition Request information from cloud server, is sent to cloud server
Present apparatus geographical location information.
The purpose of the present invention can also further be realized by following technical measures:
Aforementioned intelligent alignment system, wherein intelligent terminal are to support the mobile phone of NFC function.
Aforementioned intelligent positioning system information coding method, wherein transfer storage coding method includes:Information is encoded
When, by the data of n byte, the buffering area of a 8n bit is successively put into, that be introduced into is high-order, data deficiencies n byte,
Remaining bit is supplied with 0 in buffer, takes out 6 bit every time, is selected according to its value
Character code in ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123 456789 is made
For the output after coding, constantly carry out, completed until fully entering data conversion;
The first step:First character obtains first character, is got according to this numerical value corresponding on table by moving to right 2
Character, is exactly first aim character;
Second step:First character and 0x03 operated with (&) and move to left 4, then second character moves to right 4
With the former mutually or (|), obtain second target character;
3rd step:Walk to gather more than and finally obtain (n+1)th target character;
When former data are not the integral multiples of n, if finally remaining next input data, 1 is added after coding result
"=";If being finally left two input datas, add 2 "=" after coding result;If being finally left n data, coding knot
Just add n-1 "=" after fruit, if not being left any data, without addition.
Aforementioned intelligent positioning system information coding method, wherein cloud server decode it after coding information is received
Method for carry out inverse operation obtain true form.
Compared with prior art, the beneficial effects of the invention are as follows:Intelligent positioning system intelligent terminal embeds massaging device
NFC label carry out induction mode and read data, massaging device is avoided because charging or replacing battery without separately powering up power supply
That brings is inconvenient for use;Intelligent terminal need not install any App, as long as supporting NFC function, by sensing NFC chip, will obtain
To relevant information, suitable for the fast track to motive objects etc., positioning.The information coding method of the alignment system of the present invention is complete
Compatible NFC chip provides a kind of data-encoding scheme, can meet grid information while chip memory space is saved
The requirement of transmission, solve NFC chip memory is smaller, traditional approach positioning slowly and part NFC chip compatibility issue.
Brief description of the drawings
Fig. 1 is intelligent positioning system structure chart of the present invention;
Fig. 2 is information coding method exemplary plot of the present invention;
Fig. 3 is present system flow chart.
Embodiment
The invention will be further described with specific embodiment below in conjunction with the accompanying drawings.
As shown in Figure 1, intelligent positioning system, including intelligent terminal, cloud server, massaging device, described information device
Including NFC chip, device case.The model of the NFC chip is the Ntag203 of NXP semiconductor companies, and the NFC chip is embedding
Enter to be installed in device case, the NFC chip of described information device encodes holder's identity identification information according to transfer storage
Mode cures preservation, the intelligent terminal to support the mobile phone of NFC function, between intelligent terminal and massaging device by near field without
Line communicate, intelligent terminal is sensing apparatus, and massaging device is passive equipment, between intelligent terminal and cloud server by 4G without
Gauze network carries out data double-way transmission.
The massaging device of embedded NFC chip, it would be desirable to which the content of coding, that is, holder's identity identification information are turned
After moving storage coding, which is written to by special equipment.Holder's identity identification information includes device identification code, steps on
Between clocking, provide the information such as place.These information are existed in a manner of plain code, are specifically a string of character strings, by alphabetical sum number
Word forms.Transfer storage coding is completed in PC machine, and upper computer software is housed in PC machine, and upper computer software is stored according to transfer
Target data is changed into character string by coding method, and character string is the data after encoding.
Present invention coding realizes that process is:Transfer storage coding is carried out in PC machine first by target data, the step for
It is to be realized using the upper computer software in PC machine, then by the data encoded with NDEF's (NFC data exchange format)
Form is write in massaging device NFC chip by NFC read-write equipments.Wherein upper computer software is the calculation according to transfer storage coding
Method and programming tool realize that specific programming tool can use C language, C++, Java or other.
During use of the present invention, to the motive objects of wearing information device, with intelligent terminal induction information device, obtain
Coding information in massaging device, intelligent terminal send coding information to cloud server, and cloud server is receiving coding
Decoded it after information, and the more detailed related identification information of return information device holder, such as people or pet, can be with
Return to its name, age, medical history, or guardian's name, address, contact method etc.;For other mobile articles, such as car
, cargo in instrument, the large-scale workpiece of manufacturing enterprise, logistics transportation chain etc., its model, owner, source, purpose can be fed back
Ground etc. useful information.Meanwhile cloud server sends Geoposition Request information to intelligent terminal, intelligent terminal, which receives, to be come
From after the Geoposition Request information of cloud server, current geographic position information is sent to cloud server.Such a mode is only
After the information that, have read massaging device is sensed to massaging device intelligent terminal, the work of tracing and positioning can be automatically performed,
The flow of present system work is as shown in Figure 3.
Since the present invention uses full compatible chip, the Ntag203 of NXP semiconductor companies, still, standard compatibility NFC cores entirely
Piece capacity usually only 100 multibytes, are far smaller than 1K the or 4K bytes of Mifare Classic cards.This is just needed using complete
Using more efficient coding mode during compatible chip.As shown in Fig. 2, shifted in intelligent positioning system information coding method of the present invention
Storage coding method includes:
When being encoded to information, by the data of n byte, the buffering area of a 8n bit is successively put into, is introduced into
It is high-order, data deficiencies n byte, remaining bit is supplied with 0 in buffer, 6 bit is taken out every time, according to the selection of its value
Character code in ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123 456789 is made
For the output after coding, constantly carry out, completed until fully entering data conversion;
The first step:First character obtains first character, is got according to this numerical value corresponding on table by moving to right 2
Character, is exactly first aim character.
Second step:First character and 0x03 are carried out (&) to operate and move to left 4, then second character move to right 4 with
The former mutually or (|), obtain second target character.
3rd step:Walk to gather more than and finally obtain (n+1)th target character.
When former data are not the integral multiples of n, if finally remaining next input data, 1 is added after coding result
"=";If being finally left two input datas, add 2 "=" after coding result;If being finally left n data, coding knot
Just add n-1 "=" after fruit, if not being left any data, without addition.
Aforementioned intelligent positioning system information coding method, wherein cloud server decode it after coding information is received
Method for carry out inverse operation obtain true form.
In addition to the implementation, the present invention can also have other embodiment, all to use equivalent substitution or equivalent transformation shape
Into technical solution, all fall within the protection domain of application claims.