CN103036987A - Data acquisition and chart drawing method for android platform sensor - Google Patents
Data acquisition and chart drawing method for android platform sensor Download PDFInfo
- Publication number
- CN103036987A CN103036987A CN2012105471083A CN201210547108A CN103036987A CN 103036987 A CN103036987 A CN 103036987A CN 2012105471083 A CN2012105471083 A CN 2012105471083A CN 201210547108 A CN201210547108 A CN 201210547108A CN 103036987 A CN103036987 A CN 103036987A
- Authority
- CN
- China
- Prior art keywords
- data
- chart
- data acquisition
- zigbee
- android
- 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
Images
Landscapes
- Telephone Function (AREA)
Abstract
The invention provides a data acquisition and chart drawing method for an android platform sensor. The method comprises the following steps that data is collected through the sensor in a zigbee terminal unit and transmitted to a zigbee gateway in an unvarnished mode through a zigbee network, the zigbee gateway transmits the data to a man-machine interaction device through a wireless fidelity (WIFI) network, and an android system in the man-machine interaction device starts using an android chart engine to generate a chart of home environment. According to the method, chart drawing of the home environment can be audio-visually shown at any time, people can conveniently monitor the home environment whether at home or going out, effective measures can be timely taken to guarantee comfortable and cozy home environment, good health is protected, and life quality is improved.
Description
Technical field
The present invention relates to household digital devices and use the field, particularly relate to the method for a kind of Android platform sensor data acquisition and graph making.
Background technology
The monitoring of domestic environment such as gas concentration lwevel, illumination, temperature, humidity etc. is the basis that ensures comfortable life; Along with the development of Smart Home and the raising of people's living standard, household electronic equipment such as mobile phone, panel computer, various environmental sensors etc. all can combine by wireless technology, sensing technology, with a kind of ZigBee-network low in energy consumption combination, be convenient to carry out unified management.How will have the integrated services such as chart displaying of ZigBee-network equipment, sensor data acquisition, domestic environment situation now, be the problem of people's special concern, to the comfortable family life important in inhibiting of health.
Summary of the invention
For solving the problems of the technologies described above, the present invention proposes a kind of method that is applicable to data acquisition and the parsing of ZigBee-network, and carry out graph making at the Android platform, environmental aspect is intuitively showed the user, to monitoring and the management of domestic environment.
The present invention adopts following technical scheme: the method for a kind of Android platform sensor data acquisition and graph making, and the method may further comprise the steps:
Step 1: system TCP connects initialization, connects gateway and prepares data acquisition;
Step 2: the transducer of terminal installation begins data acquisition, and the data to data parsing module that transmission collects is resolved;
Step 3: to the data data writing structure after being parsed, and be stored in the database by the time;
Step 4: the information in the reading database, and related data write Android chart engine;
Step 5: the Android system generates the chart of showing domestic environment.
In the technique scheme implementation process, at set intervals after, the data value in during this period of time is averaging, by month submeter write into Databasce, empty simultaneously the data storage that data structure is waited for lower a period of time.
In the technique scheme implementation process, described data storage moves in circles data acquisition work.
In the technique scheme implementation process, the chart of described production, displaying time are take the sky or hour be unit.
Can find out from architectural feature of the present invention, the invention has the advantages that: integrated sensor data acquisition and graph making function on the Android platform; Has multiple human-computer interaction device, such as mobile phone, panel computer etc.; The graph making of domestic environment can intuitively show at any time, is in or goes on a journey and all can monitor domestic environment no matter be convenient to people, and can in time adopt an effective measure ensures the domestic environment of comfortable, protects healthyly, improves the quality of living.
Description of drawings
The present invention will illustrate by embodiment and with reference to the mode of accompanying drawing, wherein:
Fig. 1 is that system of the present invention connects block diagram;
Fig. 2 is the sensor data acquisition workflow diagram;
Fig. 3 is domestic environment monitoring chart work flow chart drawing.
Embodiment
The present invention is described further below in conjunction with accompanying drawing.
As shown in Figure 1, the method for a kind of Android platform sensor data acquisition and graph making, described Android platform comprises ZigBee gateway, ZigBee terminal installation, human-computer interaction device; The ZigBee gateway links to each other with the ZigBee terminal installation by the ZigBee wireless network, and human-computer interaction device links to each other with the ZigBee gateway by the WiFi wireless network; The ZigBee gateway is used for the transparent translation of data between ZigBee-network and the WiFi network; The ZigBee terminal installation is used for domestic environment detection and equipment control; Human-computer interaction device provides human-computer interaction interface, and sensor data acquisition and graph making system are installed, and is used for collection, analysis, deal with data, and show surroundings situation directly perceived is controlled and arranged system simultaneously to people.
The ZigBee terminal installation comprises ZigBee Infrared Detectors, ZigBee humiture detector, ZigBee illumination detector, ZigBee carbon dioxide detector, ZigBee remote controller, ZigBee alarm, ZigBee supply socket etc.; The ZigBee terminal installation is delivered to the sensor data acquisition module by the ZigBee gateway with data message and is carried out respective handling.
Human-computer interaction device comprises mobile phone and panel computer, and they link to each other with the ZigBee gateway by WiFi.Mobile phone and panel computer adopt the Android system, realize the functions such as sensor data acquisition, parsing, storage and graph making by sensor installation data acquisition and the APK of graph making system file.System comprises that mainly WiFi connects ZigBee gateway module, data acquisition module, data resolution module, Data classification memory module, data read module, chart display module.But the data message that returns by the Real-time Obtaining ZigBee of this system terminal installation, classify according to gas concentration lwevel, illumination, temperature and humidity etc. and to store in the data structure, judge at set intervals, they are averaged in the write into Databasce, then continue to obtain sensing data by above flow process cycling.When the user need to check the domestic environment situation, can open the graph making function, from database, obtain recently environmental information by user's request, and intuitively show the user in the broken line graph mode, so that can in time process the domestic environment situation, guarantee the living environment of comfortable warmth.
As shown in Figure 2, after system starts, at first carry out TCP and connect initialization, then begin to connect the ZigBee gateway, if connection failure then other functional modules of operational system.After connecting the success of ZigBee gateway, the beginning sensor data acquisition, the data that gather are passed in real time the data resolution module classification and are stored in the data structure, then at set intervals, data value during this period of time is averaging by month submeter write into Databasce, empty simultaneously data structure, wait for the data storage of lower a period of time.Move in circles, finish the collecting work of sensing data.
As shown in Figure 3, after sensing data Real-time Collection, analysis and the storage, when the user wishes to check nearest domestic environment situation, can open transducer chart Presentation Function by mobile phone, panel computer etc., inquire about the sensing data of corresponding time period and average, then call Android chart engine and related data is write process processing generation chart, time can be take the sky, hour etc. as base unit, the domestic environment situation that shows the corresponding time directly perceived.
Disclosed all features in this specification except mutually exclusive feature, all can make up by any way.
Disclosed arbitrary feature in this specification (comprising any accessory claim, summary and accompanying drawing) is unless special narration all can be replaced by other equivalences or the alternative features with similar purpose.That is, unless special narration, each feature is an example in a series of equivalences or the similar characteristics.
The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.
Claims (4)
1. the method for an Android platform sensor data acquisition and graph making is characterized by the method and may further comprise the steps:
Step 1: system TCP connects initialization, connects gateway and prepares data acquisition;
Step 2: the transducer of terminal installation begins data acquisition, and the data to data parsing module that transmission collects is resolved;
Step 3: to the data data writing structure after being parsed, and be stored in the database by the time;
Step 4: the information in the reading database, and related data write Android chart engine;
Step 5: the Android system generates the chart of showing domestic environment.
2. a kind of method according to claim 1, it is characterized by at set intervals after, the data value during this period of time is averaging, by month submeter write into Databasce, empty simultaneously the data storage that data structure is waited for lower a period of time.
3. a kind of method according to claim 2 is characterized by described data storage and moves in circles data acquisition work.
4. a kind of method according to claim 3 is characterized by the chart of described production, and displaying time is take the sky or hour be unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012105471083A CN103036987A (en) | 2012-12-17 | 2012-12-17 | Data acquisition and chart drawing method for android platform sensor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012105471083A CN103036987A (en) | 2012-12-17 | 2012-12-17 | Data acquisition and chart drawing method for android platform sensor |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103036987A true CN103036987A (en) | 2013-04-10 |
Family
ID=48023459
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012105471083A Pending CN103036987A (en) | 2012-12-17 | 2012-12-17 | Data acquisition and chart drawing method for android platform sensor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103036987A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201364640Y (en) * | 2009-03-16 | 2009-12-16 | 北京国尚信科技有限公司 | Wireless temperature and humidity monitoring system based on Zigbee technique |
US20110161100A1 (en) * | 2009-12-31 | 2011-06-30 | Peak David F | Insurance processing systems and methods using mobile devices for medical monitoring |
US20110212700A1 (en) * | 2001-10-24 | 2011-09-01 | Sipco, Llc | Systems and methods for providing emergency messages to a mobile device |
CN102270272A (en) * | 2011-05-20 | 2011-12-07 | 哈尔滨工业大学 | Medical treatment sensing platform and patient state monitoring method based on ZigBee technology and Android mobile phone platform |
CN202477864U (en) * | 2012-03-02 | 2012-10-10 | 王东君 | Medical-use monitoring device |
-
2012
- 2012-12-17 CN CN2012105471083A patent/CN103036987A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110212700A1 (en) * | 2001-10-24 | 2011-09-01 | Sipco, Llc | Systems and methods for providing emergency messages to a mobile device |
CN201364640Y (en) * | 2009-03-16 | 2009-12-16 | 北京国尚信科技有限公司 | Wireless temperature and humidity monitoring system based on Zigbee technique |
US20110161100A1 (en) * | 2009-12-31 | 2011-06-30 | Peak David F | Insurance processing systems and methods using mobile devices for medical monitoring |
CN102270272A (en) * | 2011-05-20 | 2011-12-07 | 哈尔滨工业大学 | Medical treatment sensing platform and patient state monitoring method based on ZigBee technology and Android mobile phone platform |
CN202477864U (en) * | 2012-03-02 | 2012-10-10 | 王东君 | Medical-use monitoring device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN206178415U (en) | Intelligent endowment remote management system | |
US20200090424A1 (en) | Automatic inspection system and method for controlling automatic inspection system | |
CN103795797A (en) | Family information terminal based on cloud technologies | |
CN102395221A (en) | Museum environmental monitoring system based on wireless sensing network | |
CN101957618A (en) | Intelligent home control system | |
KR100938506B1 (en) | System for transmission of bio-information using wireless sensor network | |
CN111238574A (en) | Environmental monitoring system based on Internet of things | |
CN204422502U (en) | A kind of gas detector for workover treatment | |
US11436682B2 (en) | Property damage risk evaluation | |
CN206075496U (en) | A kind of intelligent home care system | |
CN108500981B (en) | Intelligent medicine delivery robot system based on Internet of things and medicine delivery method | |
CN207585659U (en) | A kind of house air monitoring device based on Zigbee networkings | |
US11136957B1 (en) | Rain gutter power generator | |
CN108170060A (en) | Danger source and environment monitoring warning system and method | |
Chen et al. | Smart Home Power Management Based on Internet of Things and Smart Sensor Networks. | |
CN103036987A (en) | Data acquisition and chart drawing method for android platform sensor | |
CN205725859U (en) | A kind of Intelligent Home management system | |
CN204925731U (en) | Old person's activity monitoring devices based on limit learning | |
US11624519B2 (en) | Carbon monoxide purge system for a property | |
CN202196487U (en) | Fire automatic alarm device | |
CN204155424U (en) | Pressure pad and medical monitoring systems | |
CN207780556U (en) | Danger source and environment monitoring warning system | |
CN202257886U (en) | Bus-based ward calling system | |
CN112929840A (en) | Intelligent Wen Bo environment monitoring and management system | |
CN206893050U (en) | Family fire automatic alarm system based on Internet of Things and Fusion |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20130410 |