A kind of mobile terminal monitored method based on Android platform
Technical field
The present invention relates to communication of mobile terminal field, be specifically related to a kind of mobile terminal monitored method based on Android platform.
Background technology
Mobile terminal monitored is one of multimedia application technology based on 3G wireless network.Mobile terminal monitored business meets the requirement that the place such as enterprise, family is monitored under mobile context, emergency scene or interim application scenarios and manages by user.The present invention mainly studies the contents such as mobile monitoring system key technology, Android intelligent platform, 3G wireless transmission protocol, RTP, and emphasis is the system customization of service end and software design and the realization of client software.The present invention is to use C/S to design pattern, and system architecture is divided into two i.e. service ends of level and client.Wherein service end is various acquisition systems, and client is to run intelligent terminal's application of Android operation system.Existing monitoring major part is the most all B/S structure, can only be monitored monitoring objective in fixing place.Limit the freedom of motility and monitor.Monitor abnormal conditions to be typically all to send out mail, or the mode sending short message carries out notifying manager.
The immovability of monitoring, due to network and the restriction of monitoring device, monitor terminal is not appropriate for long mobile monitor, and existing system uses B/S technology and realizes, and browser cannot meet many-sided demand that monitoring represents and alerts.Mail alarm has the problem of promptness, and short message alarm exists the problem on cost.
Summary of the invention
The present invention provides a kind of mobile terminal monitored method based on Android platform, described mobile terminal communicates with intranet data acquisition system, described mobile terminal includes that monitoring module, HTTP request interface, manager's self defined interface, parsing module and alarm prompt module, described intranet data acquisition system include communication interface;
Described monitoring method includes:
Step S1, described monitoring module gathers, to the request of described intranet data acquisition system, achievement data and the alarm data that described intranet data acquisition system collects by mobile communication 3G wireless network by described HTTP request interface;
Step S2, described intranet data acquisition system gives described mobile terminal by described communication interface according to described achievement data and the alarm data of HTTP Internet protocol return JSON form;
Step S3, the data that the described parsing module of described mobile terminal returns, to described intranet data acquisition system, the described JSON form come resolve;
Step S4, described monitoring module represents alarm by described manager's self defined interface to user in described mobile terminal application generation index according to the data after described parsing and makes setting options by oneself, and described User Defined selects to arrange rule and the rank of alarm.
Step S5, described alarm prompt module when described mobile terminal reaches the rule of alarm and the rank that arrange to described user's prompt alarm.
In the first preferred embodiment that the present invention provides: in described step S1, the frequency that to described intranet data acquisition system, described mobile terminal is sent request is set, and described achievement data and alarm data are the monitor control index of GridView monitoring system definition.
In the second preferred embodiment that the present invention provides: described mobile terminal includes supervising data storage module, described step S3 is stored in described supervising data storage module carries out persistence to the described achievement data after parsing and alarm data.
In the third preferred embodiment that the present invention provides: in described step S4, if described user selects to be not provided with, rule and the rank of the alarm that the rule of the most described alarm and rank are transmitted by described intranet data acquisition system alert.
In the 4th preferred embodiment that the present invention provides: described mobile terminal includes monitoring data disaply moudle, described monitoring data disaply moudle includes chart formation component and represents assembly, user described in described step S4 selects to show the chart style of described warning information, described icon generates the chart setting up the described icon style described warning information of generation selected according to described user, the chart of described warning information is presented to described user by the described assembly that represents, described in represent the refreshing frequency of assembly identical with the frequency that described acquisition system sends request.
In the 5th preferred embodiment that the present invention provides: to described user's prompt alarm by the way of calling alarm clock or playing music tip in described step S5.
In the 6th preferred embodiment that the present invention provides: the application of described described mobile terminal based on Android platform is issued in the form of services, monitor in real time at running background, described user closes the display page of monitoring data disaply moudle, does not interferes with monitoring data syn-chronization.
The beneficial effect of a kind of based on Android platform the mobile terminal monitored method that the present invention provides includes:
1, a kind of based on Android platform the mobile terminal monitored method that the present invention provides, mobile terminal communicates by 3G wireless communication with intranet data acquisition system, can change conventional big screen or the fixing monitoring of control and monitor console with mobile monitor.
2, monitoring data disaply moudle graphically represents warning information to user, can also be to described user's prompt alarm by the way of calling alarm clock or playing music tip, the prompting mode that monitoring alarm is new is achieved, the reduction of the alarm prompt communications cost accomplished to described user.And running background monitors in real time, user closes the display page of monitoring data disaply moudle, does not interferes with monitoring data syn-chronization.
3, each user can be in the self-defined warning strategies of Android terminal, if user selects to be not provided with, then rule and the rank of the alarm that the rule alerted and rank are transmitted by intranet data acquisition system alert.
4, persistence is carried out during achievement data and alarm data are stored in supervising data storage module.
5, the frequency that mobile terminal sends request to intranet data acquisition system carries out setting self-timing refreshing.
Accompanying drawing explanation
It is illustrated in figure 1 the method flow diagram of a kind of based on Android platform the mobile terminal monitored method that the present invention provides;
It is illustrated in figure 2 the method flow diagram of the embodiment of a kind of based on Android platform the mobile terminal monitored method that the present invention provides.
Detailed description of the invention
The present invention provides a kind of mobile terminal monitored method based on Android platform, this system includes mobile terminal and intranet data acquisition system, mobile terminal includes monitoring module, HTTP request interface, manager's self defined interface, parsing module and alarm prompt module, intranet data acquisition system includes communication interface, monitoring method flow is as it is shown in figure 1, include:
Step S1, monitoring module gathers, to the request of intranet data acquisition system, achievement data and the alarm data that intranet data acquisition system collects by mobile communication 3G wireless network by HTTP request interface.
Step S2, intranet data acquisition system returns JSON(JavaScriptObjectNotation, the data interchange format of lightweight based on JavaScript language by communication interface according to HTTP Internet protocol) achievement data of form and alarm data be to mobile terminal.
Step S3, the data that the parsing module of mobile terminal returns, to intranet data acquisition system, the JSON form come resolve.
Step S4, monitoring module represents alarm by manager's self defined interface to user in mobile terminal application generation index according to the data after resolving and makes setting options by oneself, and User Defined selects to arrange rule and the rank of alarm.
Step S5, alarm prompt module prompts the user with alarm when mobile terminal reaches the rule of alarm and the rank that arrange.
Preferably, the method flow diagram of the embodiment of a kind of based on Android platform the mobile terminal monitored method that Fig. 2 provides for the present invention.
In step S1, the frequency that mobile terminal sends request to intranet data acquisition system can be set, and achievement data and alarm data are the monitor control index of GridView monitoring system definition.
Mobile terminal can include supervising data storage module, achievement data resolve after and alarm data can also be stored in supervising data storage module carries out persistence after resolving data in step S3.
In step S4, if user selects to be not provided with, then the rule alerted and rank are the rule of the alarm transmitted by intranet data acquisition system and rank alerts.
Mobile terminal can also include monitoring data disaply moudle, this monitoring data disaply moudle includes chart formation component and represents assembly, in step S4, user can select the chart style of display alarm information, icon generates the chart setting up the icon style generation warning information selected according to user, representing assembly and the chart of this warning information is presented to user, this refreshing frequency representing assembly is identical with the frequency that acquisition system sends request.As being arranged to request in 5 seconds once, that refreshing frequency representing assembly refreshes once for namely 5 seconds.
Step S5 can prompt the user with alarm by the way of calling alarm clock or playing music tip.
Mobile terminal based on Android platform application should issue in the form of services, can accomplish at running background, accomplish to monitor in real time.User closes the display page of monitoring data disaply moudle, does not interferes with monitoring data syn-chronization.
Although being described in detail embodiments of the invention the most with reference to the accompanying drawings, but being not limited only to this detailed description of the invention, various equivalents that those skilled in the art is carried out according to this concrete technical scheme, deformation process, also within protection scope of the present invention.