CN106357720A - System and method for displaying data on basis of internet of things - Google Patents
System and method for displaying data on basis of internet of things Download PDFInfo
- Publication number
- CN106357720A CN106357720A CN201610645014.8A CN201610645014A CN106357720A CN 106357720 A CN106357720 A CN 106357720A CN 201610645014 A CN201610645014 A CN 201610645014A CN 106357720 A CN106357720 A CN 106357720A
- Authority
- CN
- China
- Prior art keywords
- module
- data
- signal
- layer
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
Landscapes
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a system and a method for displaying data on the basis of an internet of things. The system comprises an Android module, a Zigbee sensor network module, a backstage system and a server. The server is connected with the backstage system by a wireless network, the backstage system is connected with the Zigbee sensor network module by the wireless network, and the Android module is connected with the server by the wireless network; a Linux kernel layer, a system operation layer, an application framework layer and an application layer are sequentially arranged from a base layer to a top layer of the Android module. The system and the method have the advantages that environment parameter information acquired in wireless sensor network systems can be displayed on mobile equipment of users in real time by the aid of Android development technologies, far-distance parameters can be acquired by the users under mobile conditions in any places at any time, the system and the method are excellent in man-machine interaction, and requirements of clients in the aspects of accuracy and time delay properties can be met.
Description
Technical field
The invention belongs to Internet of Things field, more particularly, to a kind of data presentation system based on Internet of Things and method.
Background technology
With the development of the technology such as computer, telecommunications, control, information, can make a living with computer technology of Internet of things
State agriculture, animal husbandry construction and scientific management provide comprehensive, perfect monitoring technology means.Set up ecological Internet of Things can to agricultural,
Pastoral Areas soil and environment parament carry out real-time, efficient, quick detection, and ecological yield and quality are forecast,
And early warning is made to great agriculture, animal husbandry ecology environmental pollution accident, it is effectively to reverse China's ecological agriculture and animal husbandry current situation at present
One of technical method, this will produce good Social and economic benef@, promotes social development.
The product of wireless sensor network enjoys consumers, more yet with gathered data, and user's real-time will
Ask higher, the heavy not portable shortcoming of pc machine increasingly highlights.
Content of the invention
The purpose of the embodiment of the present invention is to provide a kind of data presentation system based on Internet of Things and method it is intended to solve
Existing Internet of Things wireless sensor network adopts pc machine, the problem that heaviness is easy to carry and operates.
The present invention is achieved in that a kind of data presentation system based on Internet of Things, the described data based on Internet of Things
Display system includes android module, zigbee sensor network module, background system, server;
Described server is connected by wireless network with described background system, and described background system is sensed with described zigbee
Device mixed-media network modules mixed-media is connected by wireless network, and described android module is connected by wireless network with described server;
Described android module by bottom to top layer be respectively linux kernel layer, system operation layer, application framework layer and
Application layer;
Described zigbee sensor network module includes sensor, data acquisition unit, router, coordinator, zigbee biography
Sensor terminal;
Described sensor is electrically connected with described data acquisition unit, and described data acquisition unit and described router pass through wireless
Network connection, described router is connected by wireless network with described coordinator, described zigbee sensor terminal and described association
Device is adjusted to connect by wireless network;
Described sensor includes ti cc2530 chip and the sensor interface being connected, power supply connect with this ti cc2530 chip
Mouth, antennal interface;
It is provided with camera drive module, usb drive module in linux kernel layer, in the last layer of linux kernel layer be
System operation layer, when this system operation layer is run by interior storehouse layer and ARIXTRA, module forms;
Described interior storehouse layer includes 2d picture library engine modules, 3d picture library engine modules, sqlite module, c language core storehouse mould
Block;
When described ARIXTRA is run, module includes dvm module and java language core library module;
Described application framework layer, including view system, notification manager;
Application layer, including desktop application module, mobile phone contact application module, phone application module;
The information processing method of background system includes:
Message mechanism, for networking request asynchronous message in android, is divided into three steps: main thread display reminding view;Point
Thread carries out networking request, and the data that meets with a response;Video data in main thread.With message in android development process
Processing related api mainly has message and handler;
When the networking of separated time journey obtains the data of server return, need to execute in main thread, separated time journey sends out a message
To main thread, in main thread, then carry out interface update associative operation, the effect of handler is defined as disappearing in cross-thread distribution
Breath, handler is the processor of message, processes the transmission of message and removes work.The static state by their own for the message
Method message.obtain () creates an object, then by obj or argl object, different types of message is sealed
Dress, finally by what object to message identifier, handler pass through handler.sendmessage or
Handler.sendmessage sends message, in main thread, by calling handlemessage to process message;
Json data, json is divided into two kinds of form json arrays and json object.The structure of json array be [value1,
Value2, value3 ...], and the structure of json object be [keyl:value1, key2:value2, key3:
value3……];Wherein the value of key is character string, and the data type numerical value of value or character string, null, json object or
Json array.In server, the character string that java object is converted to json form to return to client;In client, lead to
Otherwise often operated;Using gson framework.After importing gson frame bag, by calling after then creating gson object
Incoming object is converted to the json character string of corresponding form by string tojson method;Equally in server, by calling
T fromjson parses json character string, obtains object;
The information processing method of server includes:
(1) obtain up-to-date ambient parameter from data source
After server obtains the up-to-date inquiry request of client transmission, need to return to that this sensor of client is up-to-date to be deposited
Store up the data in data base, first pass through the up-to-date query time that select sentence obtains this node.And then it is up-to-date by this
Query time locks the ambient parameter obtaining in this query time;
(2) dao layer
Dao layer is the class of a newly-built access data, contains the crud operation to data base, the data access of bottom
The logic on logical sum upper strata is peeled away so that dao layer realizes the function of data access portion;
The data display method of the described data presentation system based on Internet of Things includes:
Android module sends the order of gathered data, then will order and be passed on by wireless network by coordinator node
To sensor node, after sensor receives acquisition, carry out the collecting work of data in accordance with frequency acquisition, collect ginseng
After number, terminal node by the data collecting together with parameter acquisition time, area identify, node identification parameter value is transmitted along arrive after
Platform system concurrency gives server, and server by the data processing collected and stores, and android module sends and reads data
Order to server, server is by the data is activation storing to android module.
Further, described server is provided with receipt signal module, and receipt signal s (t) of described receipt signal module is wide
Adopted second-order cyclic cumulantCarry out as follows:
The characteristic parameter m of receipt signal s (t)2Theoretical valueSpecific formula for calculation is:
Understand through calculating, bpsk signal and msk signalIt is 1, qpsk, 8psk, 16qam and 64qam signal
'sBe 0, thus can with least mean-square error grader by bpsk, msk signal and qpsk, 8psk, 16qam,
64qam signal is separately;For bpsk signal, in Generalized Cyclic cumulant amplitude spectrumOn only in carrier frequency position
There is an obvious spectral peak, and msk signal respectively has an obvious spectral peak at two frequencies, thus can pass through characteristic parameter m2With
Detection Generalized Cyclic cumulant amplitude spectrumSpectral peak number by bpsk signal and msk signal identification out;
Detection Generalized Cyclic cumulant amplitude spectrumSpectral peak number concrete grammar as follows:
Search for Generalized Cyclic cumulant amplitude spectrum firstMaximum max and its position corresponding circulation frequency
Rate α0, by its small neighbourhood [α0-δ0, α0+δ0] interior zero setting, wherein δ0For a positive number, if | α0-fc|/fc< σ0, wherein δ0For one
Close to 0 positive number, fcFor the carrier frequency of signal, then judge that this signal type, for bpsk signal, otherwise continues search for second largest value
Max1 and its position corresponding cycle frequency α1;If | max-max1 |/max < σ0, and | (α0+α1)/2-fc|/fc< σ0, then
Judge this signal type for msk signal.
Further, described router is provided with acceptance criteria module, the signal processing method bag of described acceptance criteria module
Include: obtain x1And x2Reception jamming-to-signal ratio, i.e. power ratio k of interference signal and desired signali(i=1,2), signal to noise ratioAnd spatial correlation cos of interference and desired signal2θ, and calculate xiAcceptance criteria
Wherein, i=1,2,For signal to noise ratio,For i=1,For i=2, f2=h2p2,
Further, described zigbee sensor network module is provided with positioning node coordinate calculation module, described positioning section
The computational methods of point coordinates receiver module include:
The first step, selected differential corrections point, determine positioning intersecting point coordinate and plural number positioning intersection point, calculate positioning intersection point spacing
From;
FromThe minimum anchor node a of middle chosen distance value0For differential corrections point, then from remaining away from
Take out 3 minimum distance values in value, this 3 for distance value respectivelyWithCorresponding anchor node coordinate is respectively
a1(x1, y1)、a2(x2, y2) and a3(x3, y3), respectively with anchor node ai(xi, yi) it is the center of circle,Make three setting circle i for radius,
The intersecting situation of wherein i=1,2,3, three setting circles has 6 kinds, there are two intersection points between two circles, and this two intersection points are
Two equal real number intersection points, or two unequal real number intersection points, or two plural intersection points;Two intersection points of two setting circles
In, select with distance that intersection point less of the 3rd setting circle central coordinate of circle as positioning intersection point, to participate in node to be positioned
Positioning;Determine three positioning intersection points and number m of plural number positioning intersection point by 3 setting circles, true by setting circle 2 and setting circle 3
Fixed positioning intersecting point coordinate isBy the coordinate positioning intersection point that setting circle 1 and setting circle 3 determine it is
By the coordinate positioning intersection point that setting circle 1 and setting circle 2 determine it isPositioning intersection pointWithWithWithDistance be respectively d12、d23、d13:
Second step, arranges threshold value t, individual variation coefficient correction factor w, parameter l (l > 0), arranges t=0.5, w=1500
And l=0.001, the distance between three positioning intersection points d12< t, d23< t, d13During < t, execute the 4th step;
3rd step, according to following self adaptation distance correction formula correctionObtaining corrected range is d1、d2、d3:
Wherein, diRepresent node to be positioned and anchor node aiBetween corrected range, d0iRepresent differential corrections point a0With anchor section
Point aiBetween actual range,Represent differential corrections point a0With anchor node aiBetween measurement distance, w represents individual variation system
Number correction factor, liThe expression adjustment in direction factor, exp (×) represent exponential function;
According to revised apart from d1、d2、d3, again solve revised three positioning intersection points between apart from d12、d23、
d13, return second step;
4th step, according to equation below, calculates the elements of a fix o (x of node to be positioned0, y0):
Wherein, a1、a2、a3Represent respectivelyWeight, b1、b2、b3Represent respectively Power
Weight,
The present invention utilizes android development technique, the ambient parameter information that will obtain in wireless sensor and actor networks system, real
When be shown on user's mobile device, this application will promote wireless senser to carry out technology for detection to crop growth environment
Development, user can obtain remote parameter in the case of movement whenever and wherever possible.And then according to parameter, adjust in real time
The strategy tilling the land and safeguarding, improves grain yield, is also applied under the environmental conditions such as Pastoral Areas and Lin Tian, app is man-machine
Interactivity is good, accuracy rate and when ductility in terms of all disclosure satisfy that the demand of client.
Brief description
Fig. 1 is the structural representation of the data presentation system based on Internet of Things provided in an embodiment of the present invention and method;
Fig. 2 is the structural representation of zigbee sensor network module provided in an embodiment of the present invention;
In figure: 1, android module;2nd, zigbee sensor network module;2-1, sensor;2-2, data acquisition unit;
2-3, router;2-4, coordinator;2-5, zigbee sensor terminal;3rd, background system;4th, server.
Specific embodiment
In order that the objects, technical solutions and advantages of the present invention become more apparent, with reference to embodiments, book is sent out
Bright it is further elaborated.It should be appreciated that specific embodiment described herein is only in order to explain this present invention, not
For limiting the present invention.
Below in conjunction with the accompanying drawings the application principle of the present invention is explained in detail.
Refer to Fig. 1-Fig. 2, the embodiment of the present invention based on the data presentation system of Internet of Things include android module 1,
Zigbee sensor network module 2, background system 3, server 4.
Described server 4 is connected by wireless network with described background system 3, described background system 3 and described zigbee
Sensor network module 2 is connected by wireless network, and described android module 1 is with described server 4 by wireless network even
Connect.
Described android module 1 by bottom to top layer be respectively linux kernel layer, system operation layer, application framework layer and
Application layer.
Further, described zigbee sensor network module 2 includes sensor 2-1, data acquisition unit 2-2, router 2-
3rd, coordinator 2-4, zigbee sensor terminal 2-5.
Described sensor 2-1 and described data acquisition unit 2-2 electric connection, described data acquisition unit 2-2 and described route
Device 2-3 is connected by wireless network, and described router 2-3 is connected by wireless network with described coordinator 2-4, described zigbee
Sensor terminal 2-5 is connected by wireless network with described coordinator 2-4.
Further, linux kernel layer is provided with camera drive module, usb drive module, in linux kernel layer
Last layer is system operation layer, and when this system operation layer is run by interior storehouse layer and ARIXTRA, module forms;
Described interior storehouse layer includes 2d picture library engine modules, 3d picture library engine modules, sqlite module, c language core storehouse mould
Block.
When described ARIXTRA is run, module includes dvm module and java language core library module.
Described application framework layer, including view system, notification manager.
Application layer, including desktop application module, mobile phone contact application module, phone application module.
Further, included based on the data display method of Internet of Things:
Android module sends the order of gathered data, then will order and be passed on by wireless network by coordinator node
To sensor node, after sensor receives acquisition, carry out the collecting work of data in accordance with frequency acquisition, collect ginseng
After number, terminal node by the data collecting together with parameter acquisition time, area identify, node identification parameter value is transmitted along arrive after
Platform system concurrency gives server, and server by the data processing collected and stores, and android module sends and reads data
Order to server, server is by the data is activation storing to android module.
In the app of the present embodiment develops, parse json data using gson, gson is that google company provides
The individual java class libraries for being mapped between java object and json data.Using gson, can be very succinct by one
String json data is converted to a java object, or a java object is converted to corresponding json data, and this compares
The primary api of android substantially increases efficiency.
The Fructus Fragariae Ananssae growth parameter(s) information in collection Ordos City, Inner Mongolia Autonomous Region five Jia Yao village experimental plot includes: titanium dioxide
Carbon content, air themperature, soil moisture, the soil moisture, intensity of illumination, air humidity;
Wherein area's numbering typicallys represent which the block region in farmland, and terminal node numbering then represents which sensor of this region
The data collecting.
Backstage structure design:
(1) message mechanism
For networking request asynchronous message in android, three steps: 1, main thread display reminding view probably can be divided into;
2nd, separated time journey carries out networking request, and the data that meets with a response;3rd, video data in main thread.In android development process
The api related to Message Processing mainly has message and handler.
When the networking of separated time journey obtains the data of server return, need to execute in main thread.Separated time journey sends out a message
To main thread, this message carries data, then carries out the associative operations such as interface renewal in main thread.The effect of handler
It is defined as in cross-thread dispatch messages.That is handler is the processor of message, processes the transmission of message and removes
Work.Message creates an object by static method message.obtain () of their own.Then by obj or
Argl object is packaged to different types of message.Finally by what object to message identifier.Handler passes through
Handler.sendmessage (message msg) or handler.sendmessage (message msg, lang time)
To send message, both approaches are except that the message sending is the need of time delay.In main thread, by calling
Handlemessage (message msg) is processing message.
(2) json data
Json is divided into two kinds of form json arrays and json object.The structure of json array be [value1, value2,
Value3 ...], and the structure of json object is [key1:value1, key2:value2, key3:value3 ...].
Wherein the value of key must be character string, and the data type of value can be numerical value, character string, null or even go back
Can be json object or json array.In server, the character string that java object is converted to json form is needed to return
To client;In client, otherwise generally operated.
Parsing for json data can be with the primary api of android but comparatively comparatively laborious.And use gson
Framework will make comparison of item succinct, is gson framework used in this exploitation.After importing gson frame bag, Ran Houchuan
Just incoming object can be converted to correspondence by calling string tojson (object src) method after building gson object
The json character string of form;Equally in server, by calling t fromjson (string json, type typeoft)
Json character string can be parsed, obtain object.
Server architecture design:
(1) obtain up-to-date ambient parameter from data source
After server obtains the up-to-date inquiry request (including area's numbering and node serial number) of client transmission, need to return
Back to the up-to-date data storing in data base of this sensor of client.First pass through select sentence and obtain the up-to-date of this node
Query time.And then the ambient parameter obtaining in this query time is locked by this up-to-date query time.
(2) dao layer
Dao (data access object) layer is the class of a newly-built access data, contains the crud to data base
(creat, read, update, delete) operates, and does not include the related information of any business.Thus can be the number of bottom
Peel away according to the logic accessing logical sum upper strata.Dao layer is enable to focus more on the function of realizing data access portion.This
The advantage that sample does is exactly the modularity achieving function, is more beneficial for the maintenance of code and upgrading.
Further, described server is provided with receipt signal module, and receipt signal s (t) of described receipt signal module is wide
Adopted second-order cyclic cumulantCarry out as follows:
The characteristic parameter m of receipt signal s (t)2Theoretical valueSpecific formula for calculation is:
Understand through calculating, bpsk signal and msk signalIt is 1, qpsk, 8psk, 16qam and 64qam signal
'sBe 0, thus can with least mean-square error grader by bpsk, msk signal and qpsk, 8psk, 16qam,
64qam signal is separately;For bpsk signal, in Generalized Cyclic cumulant amplitude spectrumOn only in carrier frequency position
There is an obvious spectral peak, and msk signal respectively has an obvious spectral peak at two frequencies, thus can pass through characteristic parameter m2With
Detection Generalized Cyclic cumulant amplitude spectrumSpectral peak number by bpsk signal and msk signal identification out;
Detection Generalized Cyclic cumulant amplitude spectrumSpectral peak number concrete grammar as follows:
Search for Generalized Cyclic cumulant amplitude spectrum firstMaximum max and its position corresponding circulation frequency
Rate α0, by its small neighbourhood [α0-δ0, α0+δ0] interior zero setting, wherein δ0For a positive number, if | α0-fc|/fc< σ0, wherein δ0For one
Close to 0 positive number, fcFor the carrier frequency of signal, then judge that this signal type, for bpsk signal, otherwise continues search for second largest value
Max1 and its position corresponding cycle frequency α1;If | max-max1 |/max < σ0, and | (α0+α1)/2-fc|/fc< σ0, then
Judge this signal type for msk signal.
Further, described router is provided with acceptance criteria module, the signal processing method bag of described acceptance criteria module
Include: obtain x1And x2Reception jamming-to-signal ratio, i.e. power ratio k of interference signal and desired signali(i=1,2), signal to noise ratioAnd spatial correlation cos of interference and desired signal2θ, and calculate xiAcceptance criteria
Wherein, i=1,2,For signal to noise ratio,For i=1, e1
=h1p1,For i=2, f2=h2p2,
Further, described zigbee sensor network module is provided with positioning node coordinate calculation module, described positioning section
The computational methods of point coordinates receiver module include:
The first step, selected differential corrections point, determine positioning intersecting point coordinate and plural number positioning intersection point, calculate positioning intersection point spacing
From;
FromThe minimum anchor node a of middle chosen distance value0For differential corrections point, then from remaining distance
3 minimum distance values are taken out, this 3 for distance value respectively in valueWithCorresponding anchor node coordinate is respectively a1
(x1, y1)、a2(x2, y2) and a3(x3, y3), respectively with anchor node ai(xi, yi) it is the center of circle,Make three setting circle i for radius,
The intersecting situation of wherein i=1,2,3, three setting circles has 6 kinds, there are two intersection points between two circles, and this two intersection points are
Two equal real number intersection points, or two unequal real number intersection points, or two plural intersection points;Two intersection points of two setting circles
In, select with distance that intersection point less of the 3rd setting circle central coordinate of circle as positioning intersection point, to participate in node to be positioned
Positioning;Determine three positioning intersection points and number m of plural number positioning intersection point by 3 setting circles, true by setting circle 2 and setting circle 3
Fixed positioning intersecting point coordinate isBy the coordinate positioning intersection point that setting circle 1 and setting circle 3 determine it is
By the coordinate positioning intersection point that setting circle 1 and setting circle 2 determine it isPositioning intersection pointWithWithWithDistance be respectively d12、d23、d13:
Second step, arranges threshold value t, individual variation coefficient correction factor w, parameter l (l > 0), arranges t=0.5, w=1500
And l=0.001, the distance between three positioning intersection points d12< t, d23< t, d13During < t, execute the 4th step;
3rd step, according to following self adaptation distance correction formula correctionObtaining corrected range is d1、d2、
d3:
Wherein, diRepresent node to be positioned and anchor node aiBetween corrected range, d0iRepresent differential corrections point a0With anchor section
Point aiBetween actual range,Represent differential corrections point a0With anchor node aiBetween measurement distance, w represents individual variation system
Number correction factor, liThe expression adjustment in direction factor, exp (×) represent exponential function;
According to revised apart from d1、d2、d3, again solve revised three positioning intersection points between apart from d12、d23、
d13, return second step;
4th step, according to equation below, calculates the elements of a fix o (x of node to be positioned0, y0):
Wherein, a1、a2、a3Represent respectivelyWeight, b1、b2、b3Represent respectively Power
Weight,
The major function of android module app is to be numbered according to the zone number of user input, terminal node, and display should
Up-to-date this kind of supplemental characteristic that terminal node collects.Test case is as shown in table 1.(co2Unit containing numerical quantity: co2Ppm=
10000*(co2/(16383×2)×3.3-0.4)/1.6;Soil moisture numerical value unit: 100*sw/ (16383 × 2) × 3.3;
Soil moisture numerical value unit: lt*1.0 (self-defined compensation backscatter extinction logarithmic ratio);Intensity of illumination numerical value unit: tem*0.01-39.6;Air
Humidity unit: hum*0.0367-2.0468-1.5955e-6*hum*hum;Air themperature numerical value unit: tem*0.01-
39.6 acquisition time forms are date Hour Minute Second (yyyymmddhhmmss));
Table 1
Because this app main purpose is for the growing environment parameter in the reflection farmland accurately and timely to user.So
The characteristics such as the accuracy of transmission data of this app, promptness, long-distance transmissions should be investigated.Again because this app is based on interconnection
Net transmission data, thus test main investigate app accuracy and promptness.
This test is to complete under the ambient conditions of laboratory, gathers six kinds of environmental informations simultaneously, and acquisition interval is
10s.Then different ambient parameters are asked respectively, wherein request co2 parameter 8 times, soil moisture parameter 8 times, intensity of illumination is joined
Number 8 times, soil moisture parameter 8 times, air themperature parameter 8 times, air humidity parameter 8 times, totally 48 groups of data;App is shown
Data is compared with the data in data base respectively.A might as well be assumediFor actual value in data base for the type data (at this
0≤i≤5 in experiment);biFor the type data mobile phone terminal show value (0≤i≤5).The definition of error rate μ be given below:
μ=| ai-bi|/ai(0≤i≤5)
This test, in strict accordance with test plan and test case execution, is mainly tested, test in terms of accuracy
The error rate of data is 0.Due to taking manual test mode, fail completely to realize mass data is grasped in farm environment
Make test, but do not affect actually used in the case of the demand to this application accuracy for the user.
Delay testing
Assume siFor certain class data server transmission time (0≤i≤5 in this experiment, siUnit: millisecond);riFor
Client shows the time (r of this dataiUnit: millisecond).Being given below mistakes prolongs the definition of t:
T=ri-si(0≤i≤5)
This test mainly from when ductility in terms of tested.After tested, there is certain time delay in client request data,
But time delay is typically maintained in o.1s left and right.Due to only arranging a terminal node for each type sensor, take partial data
Test, but result disclosure satisfy that the demand to the waiting time for the user.
Through interface detection, the INTERFACE DESIGN of this app meets the use habit of people, and is selecting the process of query node
In have display.Find, the designed application of this experiment can be accurate by the accuracy test and delay testing of data
Obtain the data of data source, the real conditions in reflection farmland.Inquiry related data finds: shows feedback within this time within 0.1 second
Result user is acceptable.It is within 1.0 seconds the limiting time that user keeps continual stream of thought, user is it will be noted that so
Delay.What app transmission data showed time probably at 0.1 second about, in the range of user is to time requirement.
The present invention utilizes android development technique, the ambient parameter information that will obtain in wireless sensor and actor networks system, real
When be shown on user's mobile device, this application will promote wireless senser to carry out technology for detection to crop growth environment
Development, user can obtain remote parameter in the case of movement whenever and wherever possible.And then according to parameter, adjust in real time
The strategy tilling the land and safeguarding, improves grain yield, is also applied under the environmental conditions such as Pastoral Areas and Lin Tian, app is man-machine
Interactivity is good, accuracy rate and when ductility in terms of all disclosure satisfy that the demand of client.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all essences in the present invention
Any modification, equivalent and improvement made within god and principle etc., should be included within the scope of the present invention.
Claims (4)
1. a kind of data presentation system based on Internet of Things is it is characterised in that the described data presentation system bag based on Internet of Things
Include android module, zigbee sensor network module, background system, server;
Described server is connected by wireless network with described background system, described background system and described zigbee sensor network
Network module is connected by wireless network, and described android module is connected by wireless network with described server;
Described android module is respectively linux kernel layer, system operation layer, application framework layer and application by bottom to top layer
Layer;
Described zigbee sensor network module includes sensor, data acquisition unit, router, coordinator, zigbee sensor
Terminal;
Described sensor is electrically connected with described data acquisition unit, and described data acquisition unit passes through wireless network with described router
Connect, described router is connected by wireless network with described coordinator, described zigbee sensor terminal and described coordinator
Connected by wireless network;
Described sensor include ti cc2530 chip and the sensor interface being connected with this ti cc2530 chip, power interface,
Antennal interface;
It is provided with camera drive module, usb drive module in linux kernel layer, be system in the last layer of linux kernel layer
Firing floor, when this system operation layer is run by interior storehouse layer and ARIXTRA, module forms;
Described interior storehouse layer includes 2d picture library engine modules, 3d picture library engine modules, sqlite module, c language core library module;
When described ARIXTRA is run, module includes dvm module and java language core library module;
Described application framework layer, including view system, notification manager;
Application layer, including desktop application module, mobile phone contact application module, phone application module;
The information processing method of background system includes:
Message mechanism, for networking request asynchronous message in android, is divided into three steps: main thread display reminding view;Separated time journey
Carry out networking request, and the data that meets with a response;Video data in main thread, with Message Processing in android development process
Related api mainly has message and handler;
When the networking of separated time journey obtains the data of server return, need to execute in main thread, separated time journey sends out a message to master
Thread, then carries out interface in main thread and updates associative operation, the effect of handler is defined as in cross-thread dispatch messages,
Handler is the processor of message, processes the transmission of message and removes work, the static method by their own for the message
Message.obtain () creates an object, then by obj or arg1 object, different types of message is packaged,
Afterwards by what object to message identifier, handler is sent out by handler.sendmessage or handler.sendmessage
Send message, in main thread, by calling handlemessage to process message;
Json data, json is divided into two kinds of form json arrays and json object, the structure of json array be [value1,
Value2, value3 ...], and the structure of json object be [key1:value1, key2:value2, key3:
value3……];Wherein the value of key is character string, and the data type numerical value of value or character string, null, json object or
Json array, in server, the character string that java object is converted to json form to return to client;In client, lead to
Otherwise often operated;Using gson framework, after importing gson frame bag, by calling after then creating gson object
Incoming object is converted to the json character string of corresponding form by string tojson method;Equally in server, by calling
T fromjson parses json character string, obtains object;
The information processing method of server includes:
(1) obtain up-to-date ambient parameter from data source
After server obtains the up-to-date inquiry request of client transmission, need to return to that this sensor of client is up-to-date to be stored
Data in data base, first passes through the up-to-date query time that select sentence obtains this node, and then passes through this up-to-date inquiry
The ambient parameter obtaining in this query time of time lock;
(2) dao layer
Dao layer is the class of a newly-built access data, contains the crud operation to data base, the data access logic of bottom
Peel away with the logic on upper strata so that dao layer realizes the function of data access portion;
The data display method of the described data presentation system based on Internet of Things includes:
Android module sends the order of gathered data, then by wireless network, order is conveyed to biography by coordinator node
Sensor node, after sensor receives acquisition, carries out the collecting work of data, collects parameter in accordance with frequency acquisition
Afterwards, terminal node by the data collecting together with parameter acquisition time, area identify, node identification parameter value transmitted along to backstage
System concurrency gives server, and server by the data processing collected and stores, and android module sends the life reading data
Make to server, server is by the data is activation storing to android module.
2. the data presentation system based on Internet of Things as claimed in claim 1 is it is characterised in that described server is provided with and connects
Receive signaling module, receipt signal s (t) the broad sense second-order cyclic cumulant of described receipt signal moduleEnter as follows
OK:
The characteristic parameter m of receipt signal s (t)2Theoretical valueSpecific formula for calculation is:
Understand through calculating, bpsk signal and msk signalIt is 1, qpsk, 8psk, 16qam and 64qam signalIt is 0, thus can be with least mean-square error grader by bpsk, msk signal and qpsk, 8psk, 16qam, 64qam
Signal is separately;For bpsk signal, in Generalized Cyclic cumulant amplitude spectrumOn only carrier frequency position exist one
Individual obvious spectral peak, and msk signal respectively has an obvious spectral peak at two frequencies, thus can pass through characteristic parameter m2Wide with detection
Adopted cyclic cumulants amplitude spectrumSpectral peak number by bpsk signal and msk signal identification out;
Detection Generalized Cyclic cumulant amplitude spectrumSpectral peak number concrete grammar as follows:
Search for Generalized Cyclic cumulant amplitude spectrum firstMaximum max and its position corresponding cycle frequency α0,
By its small neighbourhood [α0-δ0,α0+δ0] interior zero setting, wherein δ0For a positive number, if | α0-fc|/fc<σ0, wherein δ0For one close to 0
Positive number, fcFor the carrier frequency of signal, then judge this signal type for bpsk signal, otherwise continue search for second largest value max1 and
Its position corresponding cycle frequency α1;If | max-max1 |/max < σ0, and | (α0+α1)/2-fc|/fc<σ0, then judge this letter
Number type is msk signal.
3. the data presentation system based on Internet of Things as claimed in claim 1 is it is characterised in that described router is provided with and connects
Receive criterion module, the signal processing method of described acceptance criteria module includes: obtain x1And x2Reception jamming-to-signal ratio, that is, interference letter
Power ratio k number with desired signali(i=1,2), signal to noise ratio(i=1,2), and the space of interference and desired signal
Degree of association cos2θ, and calculate xiAcceptance criteria
Wherein, i=1,2,For signal to noise ratio,For i=1,For i=2, e2=h2p2,
4. the data presentation system based on Internet of Things as claimed in claim 1 is it is characterised in that described zigbee sensor network
Network module is provided with positioning node coordinate calculation module, and the computational methods of described positioning node coordinate receiver module include:
The first step, selected differential corrections point, determine positioning intersecting point coordinate and plural number positioning intersection point, calculate distance between positioning intersection point;:
FromThe minimum anchor node a of middle chosen distance value0For differential corrections point, then from remaining distance value
Take out 3 minimum distance values, this 3 for distance value respectivelyWithCorresponding anchor node coordinate is respectively a1(x1,
y1)、a2(x2,y2) and a3(x3,y3), respectively with anchor node ai(xi,yi) it is the center of circle,Make three setting circle i, wherein i for radius
=1,2,3, the intersecting situation of three setting circles has 6 kinds, there are two intersection points between two circles, and this two intersection points are two phases
Deng real number intersection point, or two unequal real number intersection points, or two plural intersection points;In two intersection points of two setting circles, choosing
Select with the distance of the 3rd setting circle central coordinate of circle that intersection point less as positioning intersection point, to participate in determining of node to be positioned
Position;Determine three positioning intersection points and number m of plural number positioning intersection point by 3 setting circles, determined by setting circle 2 and setting circle 3
Positioning intersecting point coordinate isBy the coordinate positioning intersection point that setting circle 1 and setting circle 3 determine it isBy fixed
The coordinate of the positioning intersection point that circle of position 1 and setting circle 2 determine isPositioning intersection point a ¢ and b ¢, b ¢ and c ¢, a ¢ and c
The distance of ¢ is respectively d12、d23、d13:
Second step, arranges threshold value t, individual variation coefficient correction factor w, parameter l (l > 0), arranges t=0.5, w=1500 and l
=0.001, the distance between three positioning intersection points d12<t、d23<t、d13< during t, execute the 4th step;
3rd step, according to following self adaptation distance correction formula correction d1¢, d2¢, d3¢, obtaining corrected range is d1、d2、d3:
Wherein, diRepresent node to be positioned and anchor node aiBetween corrected range, d0iRepresent differential corrections point a0With anchor node ai
Between actual range,Represent differential corrections point a0With anchor node aiBetween measurement distance, w represents that individual variation coefficient is repaiied
Positive coefficient, liThe expression adjustment in direction factor, exp (×) represent exponential function;
According to revised apart from d1、d2、d3, again solve revised three positioning intersection points between apart from d12、d23、d13, return
Return second step;
4th step, according to equation below, calculates the elements of a fix o (x of node to be positioned0,y0):
Wherein, a1、a2、a3Represent respectivelyWeight, b1、b2、b3Represent respectively Weight,
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610645014.8A CN106357720A (en) | 2016-08-06 | 2016-08-06 | System and method for displaying data on basis of internet of things |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610645014.8A CN106357720A (en) | 2016-08-06 | 2016-08-06 | System and method for displaying data on basis of internet of things |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106357720A true CN106357720A (en) | 2017-01-25 |
Family
ID=57843637
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610645014.8A Pending CN106357720A (en) | 2016-08-06 | 2016-08-06 | System and method for displaying data on basis of internet of things |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106357720A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106901951A (en) * | 2017-02-27 | 2017-06-30 | 秦艳玲 | A kind of Multifunctional bone surgical postoperative care stand |
CN106959374A (en) * | 2017-03-17 | 2017-07-18 | 贵州省煤炭产品质量监督检验院 | A kind of censorship coal based on Internet of Things asks for detecting and controlling system |
CN106992588A (en) * | 2017-05-02 | 2017-07-28 | 湖南工程学院 | A kind of integrated high intelligence control system of solar wind-energy based on Internet of Things |
CN107155577A (en) * | 2017-05-24 | 2017-09-15 | 东台市蚕种场 | A kind of greenhouse fruit mulberry high-efficient solid growing and cultivation method |
CN107271767A (en) * | 2017-05-23 | 2017-10-20 | 广州瓦良格机器人科技有限公司 | Intelligent electric meter and querying method with WIFI networkings is communicated based on MQTT |
CN107300428A (en) * | 2017-06-28 | 2017-10-27 | 武汉万千无限科技有限公司 | A kind of automatic continuous measuring system of rotary spherical digester temperature based on internet-based control |
CN107357788A (en) * | 2017-07-13 | 2017-11-17 | 吉林农业科技学院 | A kind of English meeting translation system |
CN111007932A (en) * | 2019-12-09 | 2020-04-14 | Oppo广东移动通信有限公司 | Temperature control system, temperature control method based on temperature control system and electronic equipment |
CN111078741A (en) * | 2019-11-07 | 2020-04-28 | 广东电网有限责任公司 | Internet of things searching system based on artificial intelligent control and searching method thereof |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102917477A (en) * | 2012-10-31 | 2013-02-06 | 山东大学 | Method for operating intelligent home gateway on basis of embedded terminal |
CN103309378A (en) * | 2013-05-10 | 2013-09-18 | 江苏大学 | Multifunctional wireless device for remotely monitoring greenhouse environmental factors in real time by mobile phone |
CN103399556A (en) * | 2013-08-09 | 2013-11-20 | 天津市农业信息中心 | Intelligent greenhouse monitoring system architecture based on mobile terminal |
CN103457890A (en) * | 2013-09-03 | 2013-12-18 | 西安电子科技大学 | Method for effectively recognizing digital modulating signals in non-Gaussian noise |
CN104104425A (en) * | 2014-08-04 | 2014-10-15 | 西安电子科技大学 | Multi-user MIMO (multiple input multiple output) adaptive receiving method based on expectation and interference signal relations |
CN104469941A (en) * | 2014-12-23 | 2015-03-25 | 西安电子科技大学 | Indoor wireless locating method based on wireless local area network WLAN OFDM signal cyclic prefix |
-
2016
- 2016-08-06 CN CN201610645014.8A patent/CN106357720A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102917477A (en) * | 2012-10-31 | 2013-02-06 | 山东大学 | Method for operating intelligent home gateway on basis of embedded terminal |
CN103309378A (en) * | 2013-05-10 | 2013-09-18 | 江苏大学 | Multifunctional wireless device for remotely monitoring greenhouse environmental factors in real time by mobile phone |
CN103399556A (en) * | 2013-08-09 | 2013-11-20 | 天津市农业信息中心 | Intelligent greenhouse monitoring system architecture based on mobile terminal |
CN103457890A (en) * | 2013-09-03 | 2013-12-18 | 西安电子科技大学 | Method for effectively recognizing digital modulating signals in non-Gaussian noise |
CN104104425A (en) * | 2014-08-04 | 2014-10-15 | 西安电子科技大学 | Multi-user MIMO (multiple input multiple output) adaptive receiving method based on expectation and interference signal relations |
CN104469941A (en) * | 2014-12-23 | 2015-03-25 | 西安电子科技大学 | Indoor wireless locating method based on wireless local area network WLAN OFDM signal cyclic prefix |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106901951A (en) * | 2017-02-27 | 2017-06-30 | 秦艳玲 | A kind of Multifunctional bone surgical postoperative care stand |
CN106959374A (en) * | 2017-03-17 | 2017-07-18 | 贵州省煤炭产品质量监督检验院 | A kind of censorship coal based on Internet of Things asks for detecting and controlling system |
CN106992588A (en) * | 2017-05-02 | 2017-07-28 | 湖南工程学院 | A kind of integrated high intelligence control system of solar wind-energy based on Internet of Things |
CN107271767A (en) * | 2017-05-23 | 2017-10-20 | 广州瓦良格机器人科技有限公司 | Intelligent electric meter and querying method with WIFI networkings is communicated based on MQTT |
CN107155577A (en) * | 2017-05-24 | 2017-09-15 | 东台市蚕种场 | A kind of greenhouse fruit mulberry high-efficient solid growing and cultivation method |
CN107300428A (en) * | 2017-06-28 | 2017-10-27 | 武汉万千无限科技有限公司 | A kind of automatic continuous measuring system of rotary spherical digester temperature based on internet-based control |
CN107357788A (en) * | 2017-07-13 | 2017-11-17 | 吉林农业科技学院 | A kind of English meeting translation system |
CN111078741A (en) * | 2019-11-07 | 2020-04-28 | 广东电网有限责任公司 | Internet of things searching system based on artificial intelligent control and searching method thereof |
CN111007932A (en) * | 2019-12-09 | 2020-04-14 | Oppo广东移动通信有限公司 | Temperature control system, temperature control method based on temperature control system and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106357720A (en) | System and method for displaying data on basis of internet of things | |
Abd El-kader et al. | Precision farming solution in Egypt using the wireless sensor network technology | |
Gottwald et al. | Introduction of an automatic and open‐source radio‐tracking system for small animals | |
CN109919251A (en) | A kind of method and device of object detection method based on image, model training | |
JP2021524111A (en) | Training data for motion detection systems using data from sensor devices | |
CN105761150B (en) | Crop information and sample acquisition method and system | |
CN107330581A (en) | Agricultural product quality information system based on block chain | |
Biradar et al. | Review on IOT based multidisciplinary models for smart farming | |
CN111210483A (en) | Simulated satellite cloud picture generation method based on generation of countermeasure network and numerical mode product | |
CN105334224B (en) | Automate quality testing cloud platform | |
Jia | [Retracted] Intelligent Garden Planning and Design Based on Agricultural Internet of Things | |
Bogena et al. | Recent developments in wireless soil moisture sensing to support scientific research and agricultural management | |
Rehena | Internet of things | |
CN116257792B (en) | Smart city carbon neutralization data analysis system | |
CN111698695A (en) | LTE fingerprint type positioning method based on neural network | |
CN109982287A (en) | Forestry multisensor fire alarm warning system based on zigbee wireless sensor network | |
Yin | Practice of air environment quality monitoring data visualization technology based on adaptive wireless sensor networks | |
Bochtis et al. | Information and Communication Technologies for Agriculture-Theme I: Sensors | |
Zhou et al. | A Data‐Secured Intelligent IoT System for Agricultural Environment Monitoring | |
CN114547979A (en) | Space-time carbon emission monitoring system based on Beidou satellite short message service | |
CN104407860B (en) | A kind of decision system and decision-making technique based on humanware service model | |
Mohammad EL-Basioni et al. | A case study of a real-time internet of things system for site-specific potato crop management in El-Salhia Area-Egypt | |
Putra et al. | Design of IoT Monitoring System Based on LoRaWAN Architecture for Smart Green House | |
Wang et al. | Image detection system based on smart sensor network and ecological economy in the context of fine agriculture | |
CN106897705A (en) | A kind of oceanographic observation big data location mode based on incremental learning |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170125 |
|
RJ01 | Rejection of invention patent application after publication |