Content of the invention
It is an object of the invention to overcoming the deficiencies in the prior art, provide a kind of Internet of Things intelligence based on zigbee and wifi
Energy zone location guide system, and the positioning guidance method being applied to this system.
The present invention is achieved through the following technical solutions:
Internet of Things Intelligent region based on zigbee and wifi positions guide system, including server terminal, is no less than one
Individual mobile terminal and multiple positioning reference mode;Described positioning reference mode is laid feelings according to venue dimensional orientation, exhibition item
Condition is preferentially distributed in the exhibition item region specified, and generates exhibition according to the distribution situation of positioning reference mode on server terminal
The plane space lay out grid parameter in item region.Wherein, exhibition item region can be museum, exhibition center, exhibition or library etc.
The outdoor area such as room area or tourist attractions, behaviour area, simultaneously relative to, the exhibition item in exhibition item region can also
There is diversified performance according to the difference of environment, in the present invention and be not specifically limited.
Described server terminal includes multimedia unit, configuration management element, network communication administrative unit and is used in real time
The position arithmetic element of positioning.
Described mobile terminal includes positioning node unit and display unit, and each mobile terminal is equipped with exclusive id.
Described configuration management element is connected with multimedia unit, network communication administrative unit, position arithmetic element respectively;Institute
State mobile terminal to be all connected with network communication administrative unit by wifi wireless network;Meanwhile, the display list of described mobile terminal
Unit is all connected with multimedia unit;The positioning node unit of described mobile terminal is all by zigbee radio network gateway and position computing
Unit is connected with each positioning reference mode;In addition, described position arithmetic element is connected with each positioning reference mode;
Described network communication administrative unit is passed through to arrange wifi WAP in exhibition item region, and it is dynamic to arrange dhcp
Ip address is distributed, simultaneously in order to prevent the access of illegality equipment, synchronous setting mac address binding mechanism and wep on mobile terminal,
The safe authentication mechanism for encrypting of wpa is so that the wireless network in exhibition item region only allows the access of mobile terminal.
Described multimedia unit is set up with each exhibition item (as showpiece, exhibition booth or mark etc.) in exhibition item region all one by one
Corresponding multimedia document entry, entry contents include word, picture, sound, animation.Picture support form be bmp, jpg,
gif.Sound supports that form is that wav, pm3. animation supports that form is avi, mp4.Multimedia unit can by purview certification change,
Delete multimedia document entry, also a greater variety of multimedia forms can be supported by subsequent upgrade simultaneously.
Described mobile terminal timing reports the positional information of itself to server terminal, and described position arithmetic element is real simultaneously
When collection exhibition item region in the positional information that reported of the mobile terminal that detects, and the plane space layout according to exhibition item region
Mesh parameter, calculates in real time, maps the physical location that mobile terminal is located.Wherein it is possible to enter one by corresponding optimized algorithm
Step improves the computational accuracy of mobile terminal locations.Through above-mentioned process, can generate in an exhibition item region in server terminal
The real time dynamic location table of all mobile terminals, so, mobile terminal can pass through wifi WLAN, with the side of tcp/ip
Formula, is spaced according to set time, sends position enquiring request to server terminal, and server terminal feedback is current with mobile terminal
The exhibition item numbering of location matches.Specifically, server terminal verifies the inquiry of this mobile terminal by network communication administrative unit
The legitimacy of request, and No. id according to mobile terminal, according to the real time dynamic location table of all mobile terminals being generated, inspection
The corresponding plane coordinates of this mobile terminal of rope, calculates this plane coordinates corresponding local exhibition item region, simultaneously by this local exhibition item
The numbering of the exhibition item existing in region feeds back to this mobile terminal by network communication administrative unit.Now, this mobile terminal is
The corresponding multimedia document stored by multimedia unit can be read, and carried out by display unit by the exhibition item numbering of feedback
Corresponding report guide etc. shows behavior.
The multimedia document of the corresponding exhibition item that described display unit reads from multimedia unit according to mobile terminal, generates
Corresponding user's guide's page.Specifically, display unit can make a reservation for good several corresponding page framework in advance, and in page framework
Define embedding media label in file, then during generating, display unit gathers corresponding multimedia document, dynamically
Replace the content corresponding to media label and can show final user's guide's page.Wherein, described media label can divide
Class is title, brief introduction, picture, photo, Show Me animation, hyperlink network address etc..
In addition, in user's guide's page, synchronous playing controller can be taken, forever admittedly in guide's page, according to
Default explanation order (being specified by page configuration file), calls different players in set time point, voice is broadcast respectively
Put, the abundant explanation effect such as character rolling, picture are replaced, video switching, show content with abundant.
Described configuration management element is used for being responsible for the configuration management of whole system, such as data download, user management etc., its master
Function is wanted to include:
1) user management
System user is carried out increasing newly, deletes;Username and password is modified;Set up user's group, user's group is set
Authority.Wherein, described user's group authority including but not limited to browses, content of multimedia manages (increase newly, delete, changing), data
Download, data acquisition, exhibition item tag control (increase newly, delete, changing).
2) positioning grid configuration management
For different exhibition item regions, the configuration parameter of positioning reference mode, space coordinates mapping, running status etc. are entered
Line pipe is managed, and sets up the space reflection model of positioning grid, and revise deviation, to improve positioning accurate based on positioning reference mode
Exactness.
3) data is downloaded
By usb interface, can carry out as in packing, compression, transmission multimedia to mobile terminal by established form and requirement
Hold and the operations such as exhibition item label substance, both support all to download, also support independent downloads, correlation can also be emptied in addition many
Media items data (need to pass through purview certification).
4) data acquisition
The routing information of all mobile terminals in exhibition item region is counted, including the exhibition item checked, check the time,
Play content etc..
5) report form statistics
According to the routing information of all mobile terminals being counted, according to exhibition item, exhibition item place regional area, visitor's class
Type, time period (hour, day, week, the moon, season, year etc.) etc. form visitor's passenger flow situation statistical report form, to carry out polynary further
The management of change and expansion and research.
Internet of Things Intelligent region based on zigbee and wifi positions guidance method, comprises the steps:
1) positioning reference mode is distributed in exhibition item region, server terminal is according to the distribution situation of positioning reference mode
Generate the plane space lay out grid parameter in exhibition item region;Meanwhile, multimedia unit is set up and each exhibition item in exhibition item region
All one-to-one multimedia document entry;
2) mobile terminal timing reports current positional information to server terminal;The position arithmetic element of server terminal
The positional information that the mobile terminal detecting in Real-time Collection exhibition item region is reported, and the plane space cloth according to exhibition item region
Office's mesh parameter, calculates in real time, maps the physical location that mobile terminal is located, and generates all in exhibition item region in server terminal
The real time dynamic location table of mobile terminal;
3) mobile terminal sends position enquiring request to server terminal, and the network communication administrative unit of server terminal is tested
Card mobile terminal enquiry request legitimacy, when inquiry request is legal, server terminal according to No. id of mobile terminal, foundation
The real time dynamic location table being generated, retrieves the corresponding plane coordinates of this mobile terminal, and calculates the corresponding office of this plane coordinates
The numbering of the exhibition item existing in this local exhibition item region is fed back to shifting by network communication administrative unit by portion exhibition item region simultaneously
Dynamic terminal;
4), after the up-to-date exhibition item numbering of each acquisition for mobile terminal, first verify that exhibition item information, do not produce when exhibition item information
Continue step 2 during change;When exhibition item information produces change, mobile terminal can read multimedia by the exhibition item numbering of feedback
Corresponding multimedia document stored by unit;
5) mobile terminal, according to the multimedia document being read, generates user's guide's page by display unit, is opened up
Show.
Wherein, because radio-ray path, signal strength signal intensity are in different venue spaces, conditioned reflex, signal interference etc.
In the case of, can produce beyond the signal saltus step under ideal conditions, and then produce unstable coordinate result of calculation, therefore in reality
Easily occur in application false judgment position and exhibition item corresponding relation situations such as.And by finding to the analysis of mass data,
The frequency of packet coordinate produced by it, irrelevance of saltus step etc. occur, all can be significantly more than width produced by normal gait
Degree scope (the normal speed of travel of people is about 1 meter per second, about 60 centimetres of stride).
Therefore, position arithmetic element first preset an error value scope, described error value may range from -3 meters ~
+ 3 meters (normal walking can not possibly move more than 3 meters distances in 500 milliseconds);In step 2, position arithmetic element is being adopted simultaneously
When collecting the periodic positional information that each mobile terminal is uploaded, all add the exclusive data queue of a certain length, lead to
Cross second order difference approximate algorithm and calculate an approximate coordinate moving curve;Wherein, the new mobile terminal reading for each item
Coordinate information, all first passes through approximate coordinate moving curve and calculates ideal coordinates, and mobile terminal coordinate information is sat with preferable
Mark is compared, such as deviation in the range of default error value then it is assumed that this new mobile terminal coordinate information reading can
With;When deviation exceedes default error value scope then it is assumed that this new mobile terminal coordinate information reading is disturbed
Saltus step data, is discarded, and waits next data collection cycle, repeats said process according to this.Returned by this historical data
Trace back mode, the unstable data that can effectively filter the local signal drift producing due to hardware condition interference and produce, enter
One step improves the reliability of the present invention.
Wherein, position arithmetic element is before gathering the periodic positional information that uploaded of each mobile terminal, by every
500ms sampling frequency once carries out 20 samplings in advance to the positional information of this mobile terminal, that is, form described exclusive data
Queue.
In the above-mentioned methods, corresponding inquiry communications protocol, inquiry are followed between described mobile terminal server terminal
Communications protocol is made up of two parts:
1) inquiry request of mobile terminal
Transmission content includes: query type numbering (1 byte), mobile terminal numbering (deviceid, 4 bytes), shifting
Dynamic terminal hardware address (macid, 16 bytes), user select language codes (2 bytes), user to select edition code (2 words
Section);
Wherein, the positional information transmission frequency of mobile terminal is adjustable, is wherein preferred with 500ms;
Number of queries type: in addition to inquiry current location information corresponding exhibition item numbering, may also be combined with and be actually needed
Carry out as inquired about current respective coordinates value, the inquiry function such as facility nearby;
2) server terminal response
Response content: acknowledgement type numbering (1 byte), corresponding Customs Assigned Number (4 bytes), mobile terminal region
Corresponding exhibition item numbers (4 bytes);
Wherein, acknowledgement type numbering is corresponding with the number of queries type that mobile terminal is sent.
Compared with prior art, the method have the advantages that
The present invention is positioned using zigbee network, is transmitted related to position to server terminal by wifi network
There is the information of using value, positioning and mobile terminal application are shown by hardware is independent, carries out by way of system relationship
Organically combining, the method for operation of separate modular being adopted it is adaptable to the intelligent guide of multiple occasion, thus eliminating list
The solely needs of the hardware integration zigbee positioning terminal system of customized development high cost, by providing more simplicity, intellectuality
System and application process, be capable of very effective rate applies to various displaying places such as exhibition center, tourist quarters etc., there is provided
The exhibition method of richer flexibility, is easily managed simultaneously, easily promotes and carries out practical application, therefore to promotion industry technology development
And propulsion the abundant of social activities has significant positive effect.
Specific embodiment
With reference to embodiment and accompanying drawing, the present invention is described in further detail, but embodiments of the present invention are not
It is limited to this.
Using area of section be 5000 square meters museum as exhibition item region, using each showpiece therein as at exhibition item
Reason;Positioning reference mode no less than 20 is evenly distributed in exhibition item region.
Server terminal generates the plane space lay out grid ginseng in exhibition item region according to the distribution situation of positioning reference mode
Number, and it is equipped with corresponding coordinate parameter.
Multimedia unit sets up all one-to-one multimedia document entry with each exhibition item in exhibition item region;Multimedia
Data entry includes exhibition item title, caption, explanatory note it may be necessary to increase flash demo etc..
Every visit hand-held mobile terminal of personnel,
It is equipped with exclusive id for each mobile terminal above-mentioned;Set in exhibition item region by network communication administrative unit simultaneously
Put wifi WAP, and the distribution of dhcp dynamic ip address is set, simultaneously in order to prevent the access of illegality equipment, mobile terminal
Upper synchronous setting mac address binding mechanism with the safe authentication mechanism for encrypting of wep, wpa so that the wireless network in exhibition item region only
Allow the access of mobile terminal, in order to avoid the normal operation of impact present system.
The timing in the form of coordinate data of in running order mobile terminal reports current position to server terminal
Information, the temporal frequency that it reports is 500ms.
The position that the mobile terminal detecting in the position arithmetic element Real-time Collection exhibition item region of server terminal is reported
Confidence ceases, and the plane space lay out grid parameter according to exhibition item region, calculates in real time, maps the actual bit that mobile terminal is located
Put, generate the real time dynamic location table of all mobile terminals in exhibition item region in server terminal.
Mobile terminal sends position enquiring request with the frequency of 500ms to server terminal, and the network of server terminal leads to
News administrative unit verifies the legitimacy of mobile terminal enquiry request, and when inquiry request is legal, server terminal is according to mobile whole
No. id of end, according to the real time dynamic location table being generated, retrieves the corresponding plane coordinates of this mobile terminal, and calculates this plane
The numbering of the exhibition item existing in this local exhibition item region is managed by network communication by coordinate corresponding local exhibition item region simultaneously
Unit feeds back to mobile terminal.
After the up-to-date exhibition item numbering of acquisition for mobile terminal, first verify that exhibition item information, when finding that exhibition item information produces change,
Now mobile terminal can read the corresponding multimedia document stored by multimedia unit by the exhibition item numbering of feedback.
Mobile terminal, according to the multimedia document being read, generates user's guide's page, display unit by display unit
It is preset with the page framework being applied to museum's scene, and define embedded word, picture, animation in file in page framework
Deng media label, then during generating, display unit gathers corresponding multimedia document, dynamically replaces media label
Corresponding content can show final user's guide's page.Now the personnel of hand-held mobile terminal can be according to up-to-date aobvious
The user's guide's page showing is shown to visitor.
Wherein, follow corresponding inquiry communications protocol between mobile terminal server terminal, inquiry communications protocol is by two
Part forms:
1) inquiry request of mobile terminal
Transmission content includes: query type numbering (1 byte), mobile terminal numbering (deviceid, 4 bytes), shifting
Dynamic terminal hardware address (macid, 16 bytes), user select language codes (2 bytes), user to select edition code (2 words
Section);
Wherein, mobile terminal is numbered when by system initialization, is generated and write by host computer, and in server data
Keeping records in storehouse, mobile terminal to server terminal inquire about when, mainly pass through mobile terminal and number to be used as query argument;This
Outward, the hardware address of mobile terminal, when by system initialization, is generated and write by host computer, and in server database
Keeping records;
2) server terminal response
Response content: acknowledgement type numbering (1 byte), corresponding Customs Assigned Number (4 bytes), mobile terminal region
Corresponding exhibition item numbers (4 bytes);Wherein, Customs Assigned Number is used for distinguishing and indicate the user of different user groups;Acknowledgement type
Numbering is corresponding with the number of queries type that mobile terminal is sent.
In above process, by configuration management element, the routing information of all mobile terminals in exhibition item region is united
Meter, including the exhibition item checked, checks the time, plays content etc., and generating formal statistical report form, root for institute's statistical information
Form can carry out the activities such as further market survey according to statistics, checks that visitor, to interest level of exhibition item etc., contributes to
Improve operating efficiency and carry out better popularization displaying.