Summary of the invention
The object of the invention is to overcome the deficiencies in the prior art, a kind of Internet of Things Intelligent region location guide system based on Zigbee and WIFI is provided, and the location guidance method that is applicable to this system.
The present invention is achieved through the following technical solutions:
Internet of Things Intelligent region location guide system based on Zigbee and WIFI, comprises server terminal, is no less than mobile terminal and a plurality of position reference node of one; Described position reference node is laid to situation and is preferentially distributed in the exhibition item region of appointment according to venue dimensional orientation, exhibition item, and on server terminal, according to the distribution situation of position reference node, generate the plane space layout mesh parameter in exhibition item region.Wherein, exhibition item region can be the room areas such as museum, exhibition center, exhibition or library, also can be the outdoor area such as tourist attractions, behaviour area, simultaneously relative, exhibition item in exhibition item region also can have diversified performance according to the difference of environment, in the present invention and be not specifically limited.
Described server terminal comprises multimedia unit, configuration management element, network communication administrative unit and for determining in real time bit position arithmetic element.
Described mobile terminal comprises location node unit and display unit, and each mobile terminal is all equipped with exclusive ID.
Described configuration management element is connected with multimedia unit, network communication administrative unit, position arithmetic element respectively; Described mobile terminal is all connected with network communication administrative unit by WIFI wireless network; Meanwhile, the display unit of described mobile terminal is all connected with multimedia unit; The location node unit of described mobile terminal is all connected with each position reference node with position arithmetic element by Zigbee radio network gateway; In addition, described position arithmetic element is connected with each position reference node;
Described network communication administrative unit by arranging WIFI WAP (wireless access point) in exhibition item region, and DHCP dynamic IP addressing is set distributes, simultaneously in order to prevent the access of illegality equipment, MAC Address binding mechanism and WEP, WPA safety encipher authentication mechanism are synchronously set on mobile terminal, make wireless network in exhibition item region only allow the access of mobile terminal.
Described multimedia unit set up with exhibition item region in the equal multimedia document entry one to one of each exhibition item (as showpiece, exhibition booth or mark etc.), entry contents comprises word, picture, sound, animation.Picture supports that form is BMP, JPG, GIF.Sound supports that form is that WAV, PM3. animation support that form is AVI, MP4.Multimedia document entry can be revised by purview certification, be deleted to multimedia unit, also can support a greater variety of multimedia forms by subsequent upgrade simultaneously.
Described mobile terminal regularly reports the positional information of self to server terminal, the positional information that the mobile terminal simultaneously detecting in arithmetic element Real-time Collection exhibition item region, described position reports, and according to the plane space layout mesh parameter in exhibition item region, the physical location of calculating in real time, shining upon mobile terminal place.Wherein, can further improve by corresponding optimized algorithm the computational accuracy of mobile terminal locations.Through above-mentioned processing, the real-time dynamic position table of all mobile terminals in server terminal can generate an exhibition item region, like this, mobile terminal can pass through WIFI WLAN (wireless local area network), mode with TCP/IP, by the time interval of setting, to server terminal, send position enquiring request, the exhibition item numbering that server terminal feedback is mated with mobile terminal current location.Concrete, server terminal is verified the legitimacy of the inquiry request of this mobile terminal by network communication administrative unit, and according to mobile terminal No. ID, real-time dynamic position table according to all mobile terminals that generate, retrieve the plane coordinates that this mobile terminal is corresponding, calculate the local exhibition item region that this plane coordinates is corresponding, simultaneously by this part exhibition item region memory the numbering of exhibition item by network communication administrative unit, feed back to this mobile terminal.Now, this mobile terminal can be numbered by the exhibition item of feedback, reads the stored corresponding multimedia document of multimedia unit, and reports accordingly the displaying behaviors such as guide by display unit.
The multimedia document of the corresponding exhibition item that described display unit reads from multimedia unit according to mobile terminal, generates the corresponding user page of conducting a sightseeing tour.Concrete, display unit can be scheduled to the page framework of good several correspondences in advance, and in the page framework defined file embedding media label, then in the process generating, the corresponding multimedia document of display unit collection, replaces dynamically the corresponding content of media label and can show the final user page of conducting a sightseeing tour.Wherein, described media label can be categorized as title, brief introduction, picture, photo, Show Me animation, hyperlink network address etc.
In addition, at user's page of conducting a sightseeing tour, can take synchronous playing controller, forever solid in guide's page, according to default explanation order (being specified by page configuration file), at set time point, call different players respectively, the abundant explanation effects such as speech play, character rolling, picture replacement, video switch, to enrich displaying content.
Described configuration management element is for being responsible for the configuration management of whole system, and as data download, user management etc., its major function comprises:
1) user management
System user is increased newly, deleted; Username and password is modified; Set up user's group, user is set and organizes authority.Wherein, described user organize that authority includes but not limited to browse, content of multimedia management (newly-increased, delete, revise), data download, data acquisition, exhibition item tag control (newly-increased, delete, revise).
2) locating configuration management
For different exhibition item regions, the configuration parameter of position reference node, space coordinates mapping, running status etc. are managed, the spatial mappings model that the position reference node of take is Foundation locating, and revise deviation, to improve setting accuracy.
3) data are downloaded
Pass through USB interface, can by established form and requirement, be undertaken as operations such as packing, compression, transmitting multimedia contents and exhibition item label substances to mobile terminal, both support whole downloads, also supported independent downloads, also can empty in addition associated multimedia entry data (need pass through purview certification).
4) data acquisition
Routing information to all mobile terminals in exhibition item region is added up, and comprises checked exhibition item, checks the time, play content etc.
5) report form statistics
According to the routing information of added up all mobile terminals, according to exhibition item, exhibition item place regional area, visitor's type, time period (hour, day, week, the moon, season, year etc.) etc., form visitor's passenger flow situation statistical report form, to further carry out management and the research of diversification and expansion.
Internet of Things Intelligent region location guidance method based on Zigbee and WIFI, comprises the steps:
1) position reference node is distributed in exhibition item region, server terminal generates the plane space layout mesh parameter in exhibition item region according to the distribution situation of position reference node; Meanwhile, multimedia unit set up with exhibition item region in the equal multimedia document entry one to one of each exhibition item;
2) mobile terminal regularly reports current positional information to server terminal; The positional information that the mobile terminal detecting in the arithmetic element Real-time Collection exhibition item region, position of server terminal reports, and according to the plane space layout mesh parameter in exhibition item region, the physical location of calculating in real time, shining upon mobile terminal place, the real-time dynamic position table of all mobile terminals in server terminal generates exhibition item region;
3) mobile terminal sends position enquiring request to server terminal, the legitimacy of the network communication administrative unit checking mobile terminal enquiry request of server terminal, when inquiry request is legal, server terminal is according to mobile terminal No. ID, according to the real-time dynamic position table generating, retrieve the plane coordinates that this mobile terminal is corresponding, and calculate the local exhibition item region that this plane coordinates is corresponding, simultaneously by this part exhibition item region memory the numbering of exhibition item by network communication administrative unit, feed back to mobile terminal;
4) after the up-to-date exhibition item of each acquisition for mobile terminal is numbered, first verify exhibition item information, when exhibition item information does not change, continue step 2; When exhibition item information changes, mobile terminal can read the stored corresponding multimedia document of multimedia unit by the exhibition item numbering of feedback;
5) mobile terminal is according to read multimedia document, by display unit, generates user's page of conducting a sightseeing tour, and shows.
Wherein, because radio-ray path, signal strength signal intensity are in the situations such as different venues space, conditioned reflex, signal interference, can produce and exceed the signal saltus step under ideal conditions, and then produce unsettled coordinate result of calculation, therefore easily there is in actual applications the situations such as corresponding relation of false judgment position and exhibition item.And find by the analysis to mass data, there are the frequency, irrelevance of its coordinate producing of packet of saltus step etc., all can obviously surpass the amplitude range (the normal speed of travel of people is about 1 meter per second, approximately 60 centimetres of strides) that normal gait produce.
Therefore, the first default error number range of position arithmetic element, described error number range can be-3 meters ~+3 meters (normal walking can not be moved more than 3 meters distance in 500 milliseconds); Simultaneously in step 2, position arithmetic element, when gathering the periodic positional information that each mobile terminal uploads, all adds the exclusive data queue of a certain length, by second order difference approximate algorithm, calculates an approximate coordinate moving curve; Wherein, the mobile terminal coordinate information newly reading for each, all first by approximate coordinate moving curve, calculate ideal coordinates, and mobile terminal coordinate information and ideal coordinates are compared, if deviation is in default error number range, think that the mobile terminal coordinate information that this Xiang Xin reads can use; When deviation surpasses default error number range, think that the mobile terminal coordinate information that this Xiang Xin reads is the saltus step data that are disturbed, abandoned, and wait for and repeat according to this said process by next data collection cycle.By this historical data, recall mode, can effectively filter the unstable data of disturbing the local signal produces to drift about and produce due to hardware condition, further improve reliability of the present invention.
Wherein, before the periodic positional information that position arithmetic element is uploaded at each mobile terminal of collection, by the frequency of every 500ms once sampling, in advance the positional information of this mobile terminal is carried out to 20 samplings, form described exclusive data queue.
In said method, between described mobile terminal and server terminal, follow corresponding inquiry communications protocol, inquiry communications protocol is comprised of two parts:
1) inquiry request of mobile terminal
Transmission content comprises: query type numbering (1 byte), mobile terminal numbering (DeviceID, 4 bytes), mobile terminal hardware address (MACID, 16 bytes), user select language codes (2 bytes), user to select edition code (2 bytes);
Wherein, the positional information transmission frequency of mobile terminal is adjustable, wherein take 500ms as good;
Number of queries type: except exhibition item numbering corresponding to inquiry current location information, also can carry out as inquired about the functions such as current respective coordinates value, near the facility of inquiry in conjunction with actual needs;
2) server terminal is replied
Response content: acknowledgement type numbering (1 byte), respective user numbering (4 bytes), exhibition item numbering (4 bytes) corresponding to mobile terminal region;
Wherein, the number of queries type that acknowledgement type numbering sends with mobile terminal is corresponding.
Compared with prior art, the present invention has following beneficial effect:
The present invention utilizes Zigbee network to position, by WIFI network, to server terminal, transmit the information with using value relevant to position, to locate and show by hardware independent with mobile terminal application, the mode of system relationship has been carried out organic combination, can adopt the operational mode of separate modular, be applicable to the intelligent guide of multiple occasion, thereby the needs of the expensive hardware integration Zigbee positioning terminal system of independent customized development have been removed from, by simplicity is more provided, intelligentized system and application process, can extremely efficiently apply to various displayings place as exhibition center, tourist quarters etc., the exhibition method of richer flexibility is provided, be easy to management simultaneously, easily promote and carry out practical application, therefore to what promote industry technology development and advance social activities, abundantly there is a significant positive effect.
embodiment
Below in conjunction with embodiment and accompanying drawing, the present invention is described in further detail, but embodiments of the present invention are not limited to this.
The museum that the area of section of usining is 5000 square meters, as exhibition item region, processes each showpiece wherein as exhibition item; The position reference node that is no less than 20 is evenly distributed in exhibition item region.
Server terminal generates the plane space layout mesh parameter in exhibition item region according to the distribution situation of position reference node, and is equipped with corresponding coordinate parameter.
Multimedia unit set up with exhibition item region in the equal multimedia document entry one to one of each exhibition item; Multimedia document entry comprises exhibition item title, caption, explanatory note, can increase flash demo etc. if desired.
Every hand-held mobile terminal of visit personnel,
For above-mentioned each mobile terminal is all equipped with exclusive ID; WIFI WAP (wireless access point) is set in exhibition item region by network communication administrative unit simultaneously, and DHCP dynamic IP addressing is set distributes, simultaneously in order to prevent the access of illegality equipment, MAC Address binding mechanism and WEP, WPA safety encipher authentication mechanism are synchronously set on mobile terminal, make the wireless network in exhibition item region only allow the access of mobile terminal, in order to avoid affect the normal operation of system of the present invention.
In running order mobile terminal regularly reports current positional information to server terminal with the form of coordinate data, and its temporal frequency reporting is 500ms.
The positional information that the mobile terminal detecting in the arithmetic element Real-time Collection exhibition item region, position of server terminal reports, and according to the plane space layout mesh parameter in exhibition item region, the physical location of calculating in real time, shining upon mobile terminal place, the real-time dynamic position table of all mobile terminals in server terminal generates exhibition item region.
Mobile terminal sends position enquiring request with the frequency of 500ms to server terminal, the legitimacy of the network communication administrative unit checking mobile terminal enquiry request of server terminal, when inquiry request is legal, server terminal is according to mobile terminal No. ID, according to the real-time dynamic position table generating, retrieve the plane coordinates that this mobile terminal is corresponding, and calculate the local exhibition item region that this plane coordinates is corresponding, simultaneously by this part exhibition item region memory the numbering of exhibition item by network communication administrative unit, feed back to mobile terminal.
First the up-to-date exhibition item of acquisition for mobile terminal verifies exhibition item information after numbering, and while finding that exhibition item information changes, now mobile terminal can read the stored corresponding multimedia document of multimedia unit by the exhibition item numbering of feedback.
Mobile terminal is according to read multimedia document, by display unit, generate user's page of conducting a sightseeing tour, display unit presets the page framework that is applicable to museum's scene, and embed the media labels such as word, picture, animation in page framework defined file, then in the process generating, the corresponding multimedia document of display unit collection, replaces dynamically the corresponding content of media label and can show the final user page of conducting a sightseeing tour.Now the personnel of hand-held mobile terminal can show to visitor according to the user of the up-to-date demonstration page of conducting a sightseeing tour.
Wherein, follow corresponding inquiry communications protocol between mobile terminal and server terminal, inquiry communications protocol is comprised of two parts:
1) inquiry request of mobile terminal
Transmission content comprises: query type numbering (1 byte), mobile terminal numbering (DeviceID, 4 bytes), mobile terminal hardware address (MACID, 16 bytes), user select language codes (2 bytes), user to select edition code (2 bytes);
Wherein, mobile terminal numbering, when by system initialization, is generated and is write by host computer, and keeping records in server database, when mobile terminal is inquired about to server terminal, mainly by mobile terminal, numbers as query argument; In addition, the hardware address of mobile terminal, when by system initialization, is generated and is write by host computer, and keeping records in server database;
2) server terminal is replied
Response content: acknowledgement type numbering (1 byte), respective user numbering (4 bytes), exhibition item numbering (4 bytes) corresponding to mobile terminal region; Wherein, Customs Assigned Number is for distinguishing and indicate the user of different user groups; The number of queries type that acknowledgement type numbering sends with mobile terminal is corresponding.
In said process, by configuration management element, the routing information of all mobile terminals in exhibition item region is added up, comprise checked exhibition item, check the time, play content etc., and generate formal statistical report form for institute's statistical information, according to statistical report form, can carry out the activities such as further market survey, check that visitor to the interest level of exhibition item etc., contributes to increase work efficiency and carries out better popularization and show.