Summary of the invention
For overcoming problem present in correlation technique, the embodiment of the present invention provides a kind of data reporting method and device.
In order to solve above-mentioned technical problem, the embodiment of the invention discloses following technical scheme:
First aspect according to embodiments of the present invention, it is provided that a kind of data reporting method, including:
After installing collection event monitoring module in input equipment, described input equipment receives object event and monitors module
Log-on message, wherein, described object event monitor module install in the client;
The object event installed in described client, according to described log-on message, is monitored module and is carried out by described input equipment
Registration;
Described input equipment, after producing operation data, is monitored module by described collection event and is gathered described operand
According to, and the described object event after described operation data transmission to registration is monitored module, in order to described client is to described behaviour
Make data classification, and according to default report cycle, sorted described operation data are reported to big data terminal.
Preferably, described input equipment receives object event and monitors the log-on message of module, including:
Described input equipment directly receives the log-on message of the object event monitoring module of described client transmissions;
Or,
If pre-setting the transfer communication equipment being connected respectively, described input equipment with described client and input equipment
The object event receiving described transfer communication device transmission monitors the log-on message of module, and wherein, described transfer communication equipment leads to
Cross described client and obtain the log-on message of described object event monitoring module.
Preferably, the described described object event described operation data transmitted to registration monitors module, including:
By described log-on message, determine that described object event monitors the receiving interface in module;
Set up described collection event and monitor the wireless connections between coffret and the described receiving interface comprised in module,
And transmit described operation data by described wireless connections.
Second aspect according to embodiments of the present invention, it is provided that a kind of data reporting method, including:
In the client after installation targets action listener module, described object event is monitored the note of module by described client
Volume information is transmitted to input equipment, in order to described object event, according to described log-on message, is monitored module by described input equipment
Register;
Described client is monitored module by object event and is received the operation data of described input equipment transmission, wherein, institute
State the collection event installed in input equipment to monitor module and gathering after described operation data, by the transmission of described operation data to note
Described object event after Ce monitors module;
Described operation data are classified by described client, and according to default report cycle by sorted described behaviour
Big data terminal is reported to as data.
Preferably, described object event is monitored the log-on message transmission of module to input equipment by described client, including:
Described object event is directly monitored the log-on message transmission of module to described input equipment by described client;
Or,
If pre-setting the transfer communication equipment being connected respectively with described client and input equipment, described client will
Described object event monitors the log-on message transmission of module to described transfer communication equipment, in order to described transfer communication equipment is by institute
State object event and monitor the log-on message transmission of module to described input equipment.
The third aspect according to embodiments of the present invention, it is provided that a kind of data reporting device, including:
Log-on message receiver module, after installing collection event monitoring module in input equipment, receives target thing
Part monitors the log-on message of module, and wherein, described object event is monitored module and installed in the client;
Registering modules, for according to described log-on message, monitoring module to the object event installed in described client and enter
Row registration;
Collection event monitors module, for, after producing operation data, gathering described operation data, and by described operand
Module is monitored, in order to described operation data are classified by described client according to the described object event after transmission to registration, and according to
Sorted described operation data are reported to big data terminal by the report cycle preset.
Preferably, described log-on message receiver module includes:
First receives unit, monitors the log-on message of module for directly receiving the object event of described client transmissions;
Or,
Second receives unit, sets if pre-setting the transfer communication being connected respectively with described client and input equipment
Standby, described second receives unit monitors the log-on message of module for the object event receiving described transfer communication device transmission,
Wherein, described transfer communication equipment obtains described object event by described client and monitors the log-on message of module.
Preferably, described collection event monitoring module includes:
Receiving interface determines unit, for by described log-on message, determines that described object event monitors connecing in module
Receive interface;
Operation data transmission unit, the coffret comprised in module for setting up described collection event to monitor connects with described
Receive the wireless connections between interface, and transmit described operation data by described wireless connections.
Fourth aspect according to embodiments of the present invention, it is provided that a kind of data reporting device, including:
Log-on message transport module, after installation targets action listener module in the client, by described object event
The log-on message monitoring module transmits to input equipment, in order to described input equipment is according to described log-on message, to described target
Action listener module is registered;
Object event monitors module, for receiving the operation data of described input equipment transmission, wherein, described input equipment
The collection event monitoring module of middle installation is after gathering described operation data, described in after described operation data transmission to registration
Object event monitors module;
Operation data reporting module, for classifying described operation data, and will divide according to default report cycle
Described operation data after class report to big data terminal.
Preferably, described log-on message transport module includes:
First transmission unit, sets to described input for described object event is directly monitored the log-on message transmission of module
Standby;
Or,
Second transmission unit, sets if pre-setting the transfer communication being connected respectively with described client and input equipment
Standby, described second transmission unit sets to described transfer communication for the log-on message transmission that described object event is monitored module
Standby, in order to described object event is monitored the log-on message transmission of module to described input equipment by described transfer communication equipment.
The technical scheme that embodiments of the invention provide can include following beneficial effect:
By data reporting method disclosed in the present application and device, it is possible to operation data to be reported to big data terminal, and
And in the method, being improved by of input equipment is provided with the reception module of log-on message, the module of registration and collection event
Monitoring module, for prior art, the improvement to the primary system of described input equipment is less, and input equipment will
Operation data, to client, are processed by operation data transmission by client, and input equipment needs data volume to be processed less,
Thus it is less to the performance impact of input equipment.Further, even if described collection event is monitored module and sent out in installation process
Raw mistake, is also not result in that the primary system of input equipment is collapsed.
It should be appreciated that it is only exemplary and explanatory, not that above general description and details hereinafter describe
The present invention can be limited.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Explained below relates to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the present invention.On the contrary, they are only with the most appended
The example of the apparatus and method that some aspects that described in detail in claims, the present invention are consistent.
Disclosure one data reporting method and device, to solve in prior art, report behaviour to big data terminal
When making data, need the primary system of input equipment is done bigger improvement, the problem affecting the performance of input equipment.
The open a kind of data reporting method of embodiments herein one.Workflow schematic diagram shown in Figure 1, described
The display content updating method being applied to TV comprises the following steps:
Step S11, installing collection event monitor after module in input equipment, described input equipment receives object event
Monitoring the log-on message of module, wherein, described object event is monitored module and is installed in the client.
When input equipment described in user's touch-control, described input equipment can produce corresponding operand according to the touch-control of user
According to.After installing collection event monitoring module in input equipment, described collection event monitors module can gather described operand
According to.
The object event installed in described client, according to described log-on message, is monitored by step S12, described input equipment
Module is registered.
Step S13, described input equipment, after producing operation data, are monitored module by described collection event and are gathered described
Operation data, and the described object event after described operation data transmission to registration is monitored module, in order to described client pair
Described operation data are classified, and according to default report cycle, sorted described operation data are reported to big data terminal.
Input equipment is after producing operation data, and the collection event installed in input equipment is monitored module and gathered described operation
Data, then monitor module by the described object event after described operation data transmission to registration.Described client is passing through
State object event and monitor after module receives described operation data, described operation data are classified, and obtain preset upper
In the report cycle, according to described default report cycle, sorted operation data are transmitted to big data terminal, it is achieved data upper
Report.It addition, described client can also carry out the process of other forms to operation data, such as, operation data are encrypted
Processing with compression etc., this is not construed as limiting by the application.
Step S11 of the application, to the open a kind of data reporting method of step S13, in the method, is pacified in input equipment
Module is monitored equipped with collection event, and, installation targets action listener module in the client, described input equipment can be according to institute
State log-on message, the object event installed is monitored module register in described client.Described input equipment is producing behaviour
After making data, monitor module by described collection event and gather described operation data, and by the transmission of described operation data to registration
After described object event monitor module.After obtaining described operation data by described object event audiomonitor, described client
Hold and described operation data are classified, and according to default report cycle, sorted described operation data are reported to big data eventually
End.
By data reporting method disclosed in the present application, it is possible to operation data to be reported to big data terminal, and the party
In method, being improved by of input equipment is provided for receiving the module of log-on message, the module of registration and collection event and monitors
Module, for prior art, the improvement to the primary system of described input equipment is less, and input equipment will operation
Operation data, to client, are processed by data transmission by client, and input equipment needs data volume to be processed less, thus
Less to the performance impact of input equipment.Further, even if described collection event is monitored module and mistake is occurred in installation process
By mistake, also it is not result in that the primary system of input equipment is collapsed.
Wherein, if in order to realize the improvement to television set, need to gather user's operation data to television set, this situation
Under, described input equipment is the remote controller of television set.Certainly, under other application scenarios, described input equipment can also be it
His form, this is not construed as limiting by the application.
Further, in data reporting method disclosed in the present application, according to the difference of client, input equipment receives target
The mode of the log-on message of action listener module is different.
In in one way in which, annexation schematic diagram shown in Figure 2, wherein, input equipment 100 and client
200 are joined directly together and connect.In this case, described input equipment receives object event and monitors the log-on message of module, including: described
Input equipment directly receives the log-on message of the object event monitoring module of described client transmissions.
Such as, described input equipment 100 is the remote controller of television set, and client 200 is computer, and described computer is direct
Described object event is monitored the log-on message transmission extremely described remote controller of module, so that described remote controller can directly accept
The object event of described computer transmission monitors the log-on message of module.
It addition, in a further mode of operation, annexation schematic diagram shown in Figure 3, wherein, it is provided with respectively with described
The transfer communication equipment 300 that client 200 is connected with input equipment 100.Set with client and input respectively if pre-setting
The standby transfer communication equipment being connected, described input equipment receives object event and monitors the log-on message of module, including: described defeated
Enter the log-on message that equipment receives the object event monitoring module of described transfer communication device transmission, wherein, described transfer communication
Equipment obtains described object event by described client and monitors the log-on message of module.
Such as, described input equipment 100 is the remote controller of television set, and client 200 is television set, and television set generally requires
By transfer communication equipment 300, described object event could be monitored the log-on message transmission of module to described remote controller.The most just
Being to say, described object event can be monitored the log-on message transmission of module to described transfer communication equipment 300, institute by client 200
State transfer communication equipment 300 and more described object event is monitored the log-on message transmission of module to described input equipment 100.Its
In, described transfer communication equipment 300 can be computer.
Further, described herein by the described object event monitoring mould after described operation data transmission to registration
Block, comprises the following steps:
First, by described log-on message, determine that described object event monitors the receiving interface in module;
Then, that sets up that described collection event monitors in module between coffret and the described receiving interface comprised is wireless
Connect, and transmit described operation data by described wireless connections.
In the application, monitor according to collection event between the coffret of module and the receiving interface of object event monitoring module
Wireless connections, it is achieved operation data transmission.Wherein, if described input equipment is Android system, then input equipment is in transmission
During described operation data, (Android Interface Definition Language, Android interface is fixed generally to use AIDL
Justice language) technology.
Accordingly, the open a kind of data reporting method of second embodiment of the application.Workflow shown in Figure 4 is shown
Being intended to, described data reporting method comprises the following steps:
After step S21, in the client installation targets action listener module, described object event is monitored by described client
The log-on message of module transmits to input equipment, in order to described input equipment is according to described log-on message, to described object event
Monitor module to register.
Step S22, described client are monitored module by object event and are received the operation data of described input equipment transmission,
Wherein, the collection event monitoring module installed in described input equipment is after gathering described operation data, by described operation data
Described object event after transmission extremely registration monitors module.
In the application, described input equipment is provided with collection event and monitors module, when described in user's touch-control, input sets
Time standby, described input equipment can produce according to the touch-control of user and operate data accordingly, and wherein, described collection event monitors module
Described operation data can be gathered, and the object event installed in described operation data transmission to described client is monitored module.
Described operation data are classified by step S23, described client, and according to default report cycle by after classification
Described operation data report to big data terminal.
Wherein, described operation data generally include: by key name, key value, the device name of input equipment and device type
Deng polytype.After described client monitors the module described operation data of acquisition by described object event, can be according to described behaviour
Described operation data are classified by the type making data.
It addition, in described client, pre-set report cycle, after described operation data are classified, according to
Sorted described operation data are reported to big data terminal by described report cycle, in order to described big data terminal is to described behaviour
Process as data.
Further, in this application, described client can also carry out other to operation data and process, as compressed and adding
Close etc., this is not construed as limiting by the application.
Step S21 of the application, to the open a kind of data reporting method of step S23, in the method, is pacified in input equipment
Module is monitored equipped with collection event, and, installation targets action listener module in the client.Described client is by described target
The log-on message of action listener module transmits to input equipment, and described input equipment can be according to described log-on message, to described visitor
The object event installed in the end of family is monitored module and is registered.Described input equipment, after producing operation data, is adopted by described
Collection action listener module gathers described operation data, and is monitored by the described object event after described operation data transmission to registration
Module.After described client monitors the module described operation data of acquisition by described object event, described operation data are classified,
And according to default report cycle, sorted described operation data are reported to big data terminal.
By data reporting method disclosed in the present application, it is possible to operation data to be reported to big data terminal, and the party
In method, being improved by of input equipment is provided with the reception module of log-on message, the module of registration and collection event and monitors mould
Block, for prior art, the improvement to the primary system of described input equipment is less, and input equipment is by operand
According to transmission to client, client processing operation data, input equipment needs data volume to be processed less, thus right
The performance impact of input equipment is less.Further, even if described collection event is monitored module and is made a mistake in installation process,
Also it is not result in that the primary system of input equipment is collapsed.
Further, in data reporting method disclosed in the present application, object event is monitored the registration of module and is disappeared by client
When breath transmission is to input equipment, can be in different ways.
In in one way in which, described object event is monitored the log-on message transmission of module to input by described client
Equipment, including: described object event is directly monitored the log-on message transmission of module to described input equipment by described client.
In this mode, annexation schematic diagram shown in Figure 2, wherein, input equipment 100 is straight with client 200
Connect and be connected.Such as, described input equipment 100 is the remote controller of television set, and client 200 is computer, and described computer is straight
Connect and described object event is monitored the log-on message transmission of module to described remote controller.
Or, in a further mode of operation, described object event is monitored the log-on message transmission of module extremely by described client
Input equipment, including: if pre-setting the transfer communication equipment being connected respectively, described visitor with described client and input equipment
Described object event is monitored the log-on message transmission of module to described transfer communication equipment by family end, in order to described transfer communication sets
The standby log-on message transmission extremely described input equipment that described object event is monitored module.
In this mode, annexation schematic diagram shown in Figure 3, wherein, pre-set respectively with described client
The 200 transfer communication equipment 300 being connected with input equipment 100.Such as, described input equipment 100 is the remote controller of television set,
Client 200 is television set, and television set generally requires by transfer communication equipment 300, described object event could be monitored mould
The log-on message transmission of block is to described remote controller.It is to say, described object event can be monitored the registration of module by client 200
Information transmission is to described transfer communication equipment 300, and described object event is monitored the note of module by described transfer communication equipment 300 again
Volume information transmission is to described input equipment 100.Wherein, described transfer communication equipment 300 can be computer.
Accordingly, the open a kind of data reporting device of the 3rd embodiment of the application, structural representation shown in Figure 5
Figure, described data reporting device includes: log-on message receiver module 110, Registering modules 120 and collection event monitor module 130.
Wherein, described log-on message receiver module 110, in input equipment install collection event monitor module it
After, receive object event and monitor the log-on message of module, wherein, described object event is monitored module and is installed in the client.
Described Registering modules 120, for according to described log-on message, monitoring the object event installed in described client
Module is registered.
Described collection event monitors module 130, for, after producing operation data, gathering described operation data, and by institute
State the described object event after operation data transmission extremely registration and monitor module, in order to described operation data are divided by described client
Class, and according to default report cycle, sorted described operation data are reported to big data terminal.
Input equipment can produce operate data accordingly according to the touch control operation of user.Input equipment is installed and adopts
After collection action listener module, described collection event monitors module can gather described operation data.
After client receives operation data by described object event monitoring module, described operation data can be patrolled
Volume process, such as, described operation data are classified, and obtain the report cycle preset, default report week according to described
Phase, sorted operation data are transmitted to big data terminal, it is achieved reporting of data.
By data reporting device disclosed in the present application, it is possible to operation data to be reported to big data terminal, and the party
In case, being improved by of input equipment arranges log-on message receiver module, Registering modules and collection event and monitors module, relatively
For prior art, the improvement to the primary system of described input equipment is less, and input equipment will operation data transmission
To client, client processing operation data, input equipment needs data volume to be processed less, thus sets input
Standby performance impact is less.Further, even if described collection event is monitored module and made a mistake in installation process, also will not
The primary system causing input equipment is collapsed.
Wherein, if in order to realize the improvement to television set, need to gather user's operation data to television set, this situation
Under, described input equipment is the remote controller of television set.Certainly, under other application scenarios, described input equipment can also be it
His form, this is not construed as limiting by the application.
Further, in data reporting device disclosed in the present application, according to the difference of client, input equipment receives described
The mode that object event monitors the log-on message of module is different, and accordingly, described log-on message receiver module 110 can be by different
Form is constituted.
Wherein in a kind of form, described log-on message receiver module 110 includes: first receives unit, and described first connects
Receive unit and monitor the log-on message of module for the object event directly receiving described client transmissions.
In this case, annexation schematic diagram shown in Figure 2, wherein, input equipment 100 is straight with client 200
Connect and be connected.
Or, described log-on message receiver module 110 includes: second receive unit, if pre-set respectively with described visitor
The transfer communication equipment that family end is connected with input equipment, described second receives unit is used for receiving described transfer communication equipment biography
Defeated object event monitors the log-on message of module, and wherein, described transfer communication equipment obtains described mesh by described client
The log-on message of mark action listener module.
In this case, annexation schematic diagram as shown in Figure 3, wherein, be provided with respectively with described client 200 and
The transfer communication equipment 300 that input equipment 100 is connected.
Such as, described input equipment 100 is the remote controller of television set, and client 200 is television set, and television set generally requires
By transfer communication equipment 300, described object event could be monitored the log-on message transmission of module to described remote controller.The most just
Being to say, described object event can be monitored the log-on message transmission of module to described transfer communication equipment 300, institute by client 200
State transfer communication equipment 300 and more described object event is monitored the log-on message transmission of module to described input equipment 100.Its
In, described transfer communication equipment 300 can be computer.
Further, in this application, described collection event monitoring module includes:
Receiving interface determines unit, for by described log-on message, determines that described object event monitors connecing in module
Receive interface;
Operation data transmission unit, the coffret comprised in module for setting up described collection event to monitor connects with described
Receive the wireless connections between interface, and transmit described operation data by described wireless connections.
In the application, monitor the biography of the interface realization operation data of module and object event monitoring module according to collection event
Defeated.Wherein, if described input equipment is Android system, then input equipment is when transmitting described operation data, generally uses AIDL
(Android Interface Definition Language, Android IDL) technology.
About the device in above-described embodiment, wherein modules performs the concrete mode of operation in relevant the method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
Accordingly, the open a kind of data reporting device of the 4th embodiment of the application, structural representation shown in Figure 6
Figure, described data reporting device includes: log-on message transport module 210, object event monitor module 220 and operation data report
Module 230.
Wherein, described log-on message transport module 210, after installation targets action listener module in the client, will
Described object event is monitored the log-on message of module and is transmitted to input equipment, in order to described input equipment is according to described registration letter
Breath, monitors module to described object event and registers;
Described object event monitors module 220, for receiving the operation data of described input equipment transmission, wherein, described
The collection event monitoring module installed in input equipment is after gathering described operation data, by the transmission of described operation data to registration
After described object event monitor module;
Described operation data reporting module 230, for classifying described operation data, and reports week according to default
Sorted described operation data are reported to big data terminal by the phase.
In the application, described input equipment is provided with collection event and monitors module, when described in user's touch-control, input sets
Time standby, described input equipment can produce according to the touch-control of user and operate data accordingly, and wherein, described collection event monitors module
Described operation data can be gathered, and the object event installed in described operation data transmission to described client is monitored module.
It addition, described operation data generally include: by key name, key value, the device name of input equipment and device type
Deng polytype.After described client monitors the module described operation data of acquisition by described object event, can be according to described behaviour
Described operation data are classified by the type making data.
Further, in described client, report cycle is pre-set, after described operation data are classified, according to
Sorted described operation data are reported to big data terminal by described report cycle, in order to described big data terminal is to described behaviour
Process as data.
Further, data reporting device disclosed in the present application can also carry out other process, such as compression to operation data
With encryption etc., this is not construed as limiting by the application.
By data reporting device disclosed in the present application, it is possible to operation data to be reported to big data terminal, and the party
In case, being improved by of input equipment arranges log-on message receiver module, Registering modules and collection event and monitors module, relatively
For prior art, the improvement to the primary system of described input equipment is less, and input equipment will operation data transmission
To client, client processing operation data, input equipment needs data volume to be processed less, thus sets input
Standby performance impact is less.Further, even if described collection event is monitored module and made a mistake in installation process, also will not
The primary system causing input equipment is collapsed.
Further, in data reporting device disclosed in the present application, can be in several ways to input equipment transmission registration
Information, accordingly, described log-on message transport module 210 can be made up of different forms.
Wherein in a kind of form, described log-on message transport module 210 includes: the first transmission unit, and described first passes
Defeated unit for directly monitoring the log-on message transmission of module to described input equipment by described object event.
In this case, annexation schematic diagram shown in Figure 2, wherein, input equipment 100 is straight with client 200
Connect and be connected.Such as, described input equipment 100 is the remote controller of television set, and client 200 is computer, and described computer is straight
Connect and described object event is monitored the log-on message transmission of module to described remote controller.
Or, described log-on message transport module 210 includes: the second transmission unit, if pre-set respectively with described visitor
The transfer communication equipment that family end is connected with input equipment, described second transmission unit is for monitoring module by described object event
Log-on message transmission to described transfer communication equipment, in order to described object event is monitored module by described transfer communication equipment
Log-on message transmission is to described input equipment.
In this case, annexation schematic diagram shown in Figure 3, wherein, pre-set respectively with described client
The 200 transfer communication equipment 300 being connected with input equipment 100.Such as, described input equipment 100 is the remote controller of television set,
Client 200 is television set, and television set generally requires by transfer communication equipment 300, described object event could be monitored mould
The log-on message transmission of block is to described remote controller.It is to say, described object event can be monitored the registration of module by client 200
Information transmission is to described transfer communication equipment 300, and described object event is monitored the note of module by described transfer communication equipment 300 again
Volume information transmission is to described input equipment 100.Wherein, described transfer communication equipment 300 can be computer.
About the device in above-described embodiment, wherein modules performs the concrete mode of operation in relevant the method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
Those skilled in the art, after considering description and putting into practice invention disclosed herein, will readily occur to its of the present invention
Its embodiment.The application is intended to any modification, purposes or the adaptations of the present invention, these modification, purposes or
Person's adaptations is followed the general principle of the present invention and includes the undocumented public affairs in the art of the embodiment of the present invention
Know general knowledge or conventional techniques means.Description and embodiments is considered only as exemplary, true scope and spirit of the invention by
Claim below is pointed out.
It should be appreciated that the invention is not limited in precision architecture described above and illustrated in the accompanying drawings, and
And various modifications and changes can carried out without departing from the scope.The scope of the present invention is only limited by appended claim.