CN104852951A - Grain depot safety monitoring system work flow - Google Patents
Grain depot safety monitoring system work flow Download PDFInfo
- Publication number
- CN104852951A CN104852951A CN201410563066.1A CN201410563066A CN104852951A CN 104852951 A CN104852951 A CN 104852951A CN 201410563066 A CN201410563066 A CN 201410563066A CN 104852951 A CN104852951 A CN 104852951A
- Authority
- CN
- China
- Prior art keywords
- client
- grain depot
- zigbee
- cloud server
- network
- 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
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The invention mainly discloses a grain depot safety monitoring system work flow, mainly comprising 1) initializing a Zigbee protocol stack system; 2) establishing a Zigbee network by a coordinator; 3) searching for the Zigbee network by a terminal node; 4) performing data communication between a gateway and a Zigbee coordinator; 5) establishing a Socket client by the gateway; 6) creating a Socket server through a cloud server; and 7) creating a Socket client by a handset. The grain depot safety monitoring system work flow comprehensively utilizes the internet of things technology such as the embedded network, Android, cloud server, etc., so that mobile users can synchronously perform wireless remote monitoring on grain depot environments and safe statuses ''anytime and anywhere'', thereby timely tracking grain depot equipment position information, and flexibly arming and disarming monitoring nodes in dependence on demands.
Description
Technical field
The invention belongs to grain depot safety-security area, essentially disclose a kind of workflow of grain depot safety defense monitoring system.
Background technology
Grain stock to withstanding natural calamities, crisis difficulty and the pressure of alleviating food shortage has important function, therefore the security protection of grain depot is most important.The environment of current grain depot and security monitoring, mostly adopt the mode of manpower inquiry, there is work much, the shortcoming such as not in time by force; Indivedual employing cable network monitor mode, also exists difficult wiring, complexity, dumb, the shortcomings such as maintenance cost is high.
Summary of the invention
(1) technical problem that will solve
The present invention utilizes ARM embedded gateway to realize the Internet data communication of grain depot Zigbee network, video monitoring and Cloud Server, and Android mobile phone utilizes mobile communications network and Cloud Server interconnected communication.
(2) technical scheme
The present invention essentially discloses a kind of workflow of grain depot safety defense monitoring system, and its key step is as follows:
1) Zigbee protocol stack system initialization: first by each layer initialization, then system enters low-power consumption mode; When an event occurs, wake each system up, start to enter button.onrelease, continue after terminating to enter low-power consumption mode; If there is multiple event to occur simultaneously, first judges task priority, more successively process event;
2) Zigbee network set up by telegon: first by system initialization, sets up Zigbee network, and after Zigbee network is successfully established, indicator light glimmers, and waits for adding of terminal node;
3) terminal node search add Zigbee network: each terminal node first carries out system initialization, search the Zigbee network that telegon is set up, Zigbee network is added immediately after searching out, indicator light glimmers, then send task and receive task (complete respectively receive from telegon data and send data to telegon), make system cloud gray model task and carry out task poll;
4) data communication between gateway and Zigbee telegon: be that Linux is used as equipment as file, first opens serial ports file, reads and writes serial ports file again, read and write serial ports closing of a file afterwards;
5) gateway creates Socket client: first create Socket client, then initiatively connect Cloud Server; After connection, create reading and writing thread and video acquisition thread, realize receiving from the data of Cloud Server and send data to Cloud Server;
6) Cloud Server creates Socket service device end: first Cloud Server creates a Socket service device end line journey for other client's side link (multi-user), then waits for client initiatively connection server; When client's side link, then first judge that whether client is full, if client is full, system will ceaselessly detect in scan round; If client is discontented with, just create the data that a thread is used for receiving this client, then by data retransmission to the client of specifying;
7) mobile phone terminal creates Socket client: after creating, cell-phone customer terminal initiatively connects Cloud Server request and logs in, and logs in and successfully can monitor grain depot afterwards; In order to reduce network congestion, after mobile phone backstage receives the information from Cloud Server, advanced row data analysis, is stored to data buffer zone by grain depot monitoring and warning message, reads for correlation function interface, mobile phone foreground.
Further, the terminal node in described step 3) is each wireless senser, alarm and GPS/GPRS module.
Further, comprise GPS/GPRS terminal node in described step 3), this node is kept in touch by transmission " heartbeat packet " mode and telegon, and when this node is in ZigBee-network, devices illustrated is not stolen; When equipment is stolen, this nodal test, to obtaining Current GPS locating information after having departed from ZigBee-network and starting GRPS SMS, sends geographical location information residing for note annunciator to cell-phone customer terminal.
Further, the Socket client created in described step 6, wherein video acquisition module hardware uses " plug and play " camera module, and this module is connected with gateway by USB interface, utilizes the V4L2 tool software in built-in Linux to carry out video acquisition, compression and transmission.
Further, the cell-phone customer terminal described in described step 7), need build Android development environment and comprise following step: a) install Java JDK and configure on PC; B) Android SDK be installed and configure; C) installation Eclipse also configures and makes it combine with Android SDK.
beneficial effect
The present invention fully utilizes the technology of Internet of things such as built-in network, Android, Cloud Server, realize mobile phone multi-user " whenever and wherever possible " and synchronously wireless remote security monitoring function is carried out to grain depot, the positional information of tracking in time equipment, and monitor node can be deployed troops on garrison duty and withdraw a garrison flexibly according to demand.
Accompanying drawing explanation
Fig. 1 is overall workflow schematic diagram of the present invention.
Fig. 2 is Zigbee protocol stack initial work schematic flow sheet of the present invention.
Fig. 3 is telegon workflow schematic diagram of the present invention.
Fig. 4 is terminal node workflow schematic diagram of the present invention.
Fig. 5 is GPS/GPRS module work schematic flow sheet of the present invention.
Fig. 6 is gateway serial ports workflow schematic diagram of the present invention.
Fig. 7 is Cloud Server Socket service device end workflow schematic diagram of the present invention.
Fig. 8 is gateway Socket client schematic flow sheet of the present invention.
Fig. 9 is mobile phone Socket client operation schematic flow sheet of the present invention.
Figure 10 is overall structure frame diagram of the present invention.
Embodiment
As shown in Figure 1, the present invention essentially discloses a kind of workflow of grain depot safety defense monitoring system, and its key step is as follows:
1) Zigbee protocol stack system initialization: first by each layer initialization, then system enters low-power consumption mode; When an event occurs, wake each system up, start to enter button.onrelease, continue after terminating to enter low-power consumption mode; If there is multiple event to occur simultaneously, first judges task priority, more successively process event;
2) Zigbee network set up by telegon: first by system initialization, sets up Zigbee network, and after Zigbee network is successfully established, indicator light glimmers, and waits for adding of terminal node;
3) terminal node search add Zigbee network: each terminal node first carries out system initialization, search the Zigbee network that telegon is set up, Zigbee network is added immediately after searching out, indicator light glimmers, then send task and receive task (complete respectively receive from telegon data and send data to telegon), make system cloud gray model task and carry out task poll;
4) data communication between gateway and Zigbee telegon: be that Linux is used as equipment as file, first opens serial ports file, reads and writes serial ports file again, read and write serial ports closing of a file afterwards;
5) gateway creates Socket client: first create Socket client, then initiatively connect Cloud Server; After connection, create reading and writing thread and video acquisition thread, realize receiving from the data of Cloud Server and send data to Cloud Server;
6) Cloud Server creates Socket service device end: first Cloud Server creates a Socket service device end line journey for other client's side link (multi-user), then waits for client initiatively connection server; When client's side link, then first judge that whether client is full, if client is full, system will ceaselessly detect in scan round; If client is discontented with, just create the data that a thread is used for receiving this client, then by data retransmission to the client of specifying;
7) mobile phone terminal creates Socket client: after creating, cell-phone customer terminal initiatively connects Cloud Server request and logs in, and logs in and successfully can monitor grain depot afterwards; In order to reduce network congestion, after mobile phone backstage receives the information from Cloud Server, advanced row data analysis, is stored to data buffer zone by grain depot monitoring and warning message, reads for correlation function interface, mobile phone foreground.
Wherein, the terminal node in described step 3) is each wireless senser, alarm and GPS/GPRS module.
Wherein, comprise GPS/GPRS terminal node in described step 3), this node is kept in touch by transmission " heartbeat packet " mode and telegon, and when this node is in ZigBee-network, devices illustrated is not stolen; When equipment is stolen, this nodal test, to obtaining Current GPS locating information after having departed from ZigBee-network and starting GRPS SMS, sends geographical location information residing for note annunciator to cell-phone customer terminal.
Wherein, the Socket client created in described step 6, wherein video acquisition module hardware uses " plug and play " camera module, and this module is connected with gateway by USB interface, utilizes the V4L2 tool software in built-in Linux to carry out video acquisition, compression and transmission.
Wherein, the cell-phone customer terminal described in described step 7), need build Android development environment and comprise following step: a) install Java JDK and configure on PC; B) Android SDK be installed and configure; C) installation Eclipse also configures and makes it combine with Android SDK.
Embodiment recited above is only be described the preferred embodiment of the present invention, not limits the spirit and scope of the present invention.Under the prerequisite not departing from design concept of the present invention; the various modification that this area ordinary person makes technical scheme of the present invention and improvement; all should drop into protection scope of the present invention, the technology contents of request protection of the present invention, all records in detail in the claims.
Claims (5)
1. the present invention essentially discloses a kind of workflow of grain depot safety defense monitoring system, and its key step is as follows:
Zigbee protocol stack system initialization: first by each layer initialization, then system enters low-power consumption mode; When an event occurs, wake each system up, start to enter button.onrelease, continue after terminating to enter low-power consumption mode; If there is multiple event to occur simultaneously, first judges task priority, more successively process event;
Zigbee network set up by telegon: first by system initialization, sets up Zigbee network, and after Zigbee network is successfully established, indicator light glimmers, and waits for adding of terminal node;
Terminal node search also adds Zigbee network: each terminal node first carries out system initialization, search the Zigbee network that telegon is set up, Zigbee network is added immediately after searching out, indicator light glimmers, then send task and receive task (complete respectively receive from telegon data and send data to telegon), make system cloud gray model task and carry out task poll;
Data communication between gateway and Zigbee telegon: be that Linux is used as equipment as file, first opens serial ports file, reads and writes serial ports file again, read and write serial ports closing of a file afterwards;
Gateway creates Socket client: first create Socket client, then initiatively connect Cloud Server; After connection, create reading and writing thread and video acquisition thread, realize receiving from the data of Cloud Server and send data to Cloud Server;
Cloud Server creates Socket service device end: first Cloud Server creates a Socket service device end line journey for other client's side link (multi-user), then waits for client initiatively connection server; When client's side link, then first judge that whether client is full, if client is full, system will ceaselessly detect in scan round; If client is discontented with, just create the data that a thread is used for receiving this client, then by data retransmission to the client of specifying;
Mobile phone terminal creates Socket client: after creating, cell-phone customer terminal initiatively connects Cloud Server request and logs in, and logs in and successfully can monitor grain depot afterwards; In order to reduce network congestion, after mobile phone backstage receives the information from Cloud Server, advanced row data analysis, is stored to data buffer zone by grain depot monitoring and warning message, reads for correlation function interface, mobile phone foreground.
2. the workflow of a kind of grain depot safety defense monitoring system according to claim 1, is characterized in that: the terminal node in described step 3) is each wireless senser, alarm and GPS/GPRS module.
3. the workflow of a kind of grain depot safety defense monitoring system according to claim 1 and 2, it is characterized in that: in described step 3), comprise GPS/GPRS terminal node, this node is kept in touch by transmission " heartbeat packet " mode and telegon, and when this node is in ZigBee-network, devices illustrated is not stolen; When equipment is stolen, this nodal test, to obtaining Current GPS locating information after having departed from ZigBee-network and starting GPRS SMS, sends geographical location information residing for note annunciator to cell-phone customer terminal.
4. the workflow of a kind of grain depot safety defense monitoring system according to claim 1, it is characterized in that: the Socket client created in described step 5, wherein video acquisition module hardware uses " plug and play " camera module, this module is connected with gateway by USB interface, utilizes the V4L2 tool software in built-in Linux to carry out video acquisition, compression and transmission.
5. the workflow of a kind of grain depot safety defense monitoring system according to claim 1, is characterized in that: the mobile phone terminal described in described step 7) is built Android development environment and comprised following step on PC: a) install Java JDK and configure; B) Android SDK be installed and configure; C) installation Eclipse also configures and makes it combine with Android SDK.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410563066.1A CN104852951A (en) | 2014-10-22 | 2014-10-22 | Grain depot safety monitoring system work flow |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410563066.1A CN104852951A (en) | 2014-10-22 | 2014-10-22 | Grain depot safety monitoring system work flow |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104852951A true CN104852951A (en) | 2015-08-19 |
Family
ID=53852305
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410563066.1A Pending CN104852951A (en) | 2014-10-22 | 2014-10-22 | Grain depot safety monitoring system work flow |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104852951A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105527569A (en) * | 2015-12-07 | 2016-04-27 | 苏州科技学院 | Embedded three-phase asynchronous motor fault diagnosis device with combination of wireless sensing network |
CN105611501A (en) * | 2016-02-25 | 2016-05-25 | 成都比善科技开发有限公司 | Wireless electronic fence system for remote monitoring |
CN105848252A (en) * | 2016-03-23 | 2016-08-10 | 深圳市国华光电研究院 | Node control network accessing method based on ZigBee network |
CN107896376A (en) * | 2017-10-30 | 2018-04-10 | 东莞理工学院 | A kind of internet of things equipment based on ZigBee quick method of network entry, control method and system |
CN109375596A (en) * | 2018-10-29 | 2019-02-22 | 中山微宇电器科技有限公司 | A kind of device data acquisition control system |
CN112594508A (en) * | 2020-11-20 | 2021-04-02 | 重庆电子工程职业学院 | Campus security monitoring system |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103412539A (en) * | 2013-08-07 | 2013-11-27 | 江苏丹玉集团有限公司 | Wireless remote movable intelligent green grain storage monitoring system |
-
2014
- 2014-10-22 CN CN201410563066.1A patent/CN104852951A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103412539A (en) * | 2013-08-07 | 2013-11-27 | 江苏丹玉集团有限公司 | Wireless remote movable intelligent green grain storage monitoring system |
Non-Patent Citations (2)
Title |
---|
漆丽: ""基于WSN的粮情监测系统平台的研究与开发"", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
王犇等: ""基于移动智能终端的粮情测控系统"", 《软件工程师》 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105527569A (en) * | 2015-12-07 | 2016-04-27 | 苏州科技学院 | Embedded three-phase asynchronous motor fault diagnosis device with combination of wireless sensing network |
CN105611501A (en) * | 2016-02-25 | 2016-05-25 | 成都比善科技开发有限公司 | Wireless electronic fence system for remote monitoring |
CN105611501B (en) * | 2016-02-25 | 2018-12-28 | 成都比善科技开发有限公司 | A kind of wireless electron fence system for remotely monitoring |
CN105848252A (en) * | 2016-03-23 | 2016-08-10 | 深圳市国华光电研究院 | Node control network accessing method based on ZigBee network |
CN107896376A (en) * | 2017-10-30 | 2018-04-10 | 东莞理工学院 | A kind of internet of things equipment based on ZigBee quick method of network entry, control method and system |
CN109375596A (en) * | 2018-10-29 | 2019-02-22 | 中山微宇电器科技有限公司 | A kind of device data acquisition control system |
CN112594508A (en) * | 2020-11-20 | 2021-04-02 | 重庆电子工程职业学院 | Campus security monitoring system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104852951A (en) | Grain depot safety monitoring system work flow | |
CN103200222B (en) | A kind of automobile intelligent monitoring system based on mobile communication wireless network | |
CN103916625A (en) | Video monitoring system and method based on cloud computing | |
CN105357283B (en) | Long connection establishing method of intelligent wearable equipment, server and terminal | |
CN103647938A (en) | A security and monitoring all-in-one machine and a remote monitoring system | |
CN105678666A (en) | Experimental building security and emergency contingency plan issuing system based on Internet of Things | |
CN106355873B (en) | Internet of things intelligent traffic gateway and system thereof | |
CN102891796A (en) | Mining intelligent transmission gateway | |
CN104155667A (en) | Vehicle-borne GPS terminal | |
CN207020789U (en) | A kind of monitoring position anti-theft alarm module | |
CN204415334U (en) | A kind of electric vehicle anti-theft control monitor unit based on Internet of Things | |
CN204347544U (en) | A kind of control system based on Z-Wave gateway | |
CN105201290A (en) | Logistics tracking and monitoring anti-theft device | |
CN205068547U (en) | Remote fingerprint recognition access control system | |
CN104168322A (en) | Vehicle-mounted terminal data transmission method, application server, client-side and user terminal | |
CN104038274A (en) | Optical fiber detection and maintenance management system | |
CN103871217B (en) | A kind of alarm method based on Wi-Fi wireless Internet | |
CN106585560A (en) | Method and equipment for prevention of car burglary | |
CN103612614A (en) | Anti-theft tracking device of automobile | |
CN202600766U (en) | Attendance information management monitoring system | |
CN204465579U (en) | A kind of Intelligent wireless router | |
CN202793606U (en) | Temperature alarm system of machine room | |
KR101585787B1 (en) | Remote Management System and Method of Applying the system to Remote Manage Bluetooth Beacon | |
CN102801903A (en) | Web camera with radio frequency gateway function | |
WO2018083710A2 (en) | An improved management and internetworking of devices to collect and exchange data without requiring interaction |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150819 |
|
RJ01 | Rejection of invention patent application after publication |