Disclosure of Invention
In order to overcome the problems in the related art, embodiments of the present invention provide a data reporting method and apparatus.
In order to solve the technical problem, the embodiment of the invention discloses the following technical scheme:
according to a first aspect of the embodiments of the present invention, a data reporting method is provided, including:
after an acquisition event monitoring module is installed in input equipment, the input equipment receives registration information of a target event monitoring module, wherein the target event monitoring module is installed in a client;
the input equipment registers a target event monitoring module installed in the client according to the registration information;
after the input device generates operation data, the operation data is collected through the collected event monitoring module and is transmitted to the registered target event monitoring module, so that the client can classify the operation data and report the classified operation data to a big data terminal according to a preset reporting period.
Preferably, the receiving, by the input device, the registration information of the target event monitoring module includes:
the input equipment directly receives the registration information of the target event monitoring module transmitted by the client;
or,
if transit communication equipment respectively connected with the client and input equipment is preset, the input equipment receives registration information of a target event monitoring module transmitted by the transit communication equipment, wherein the transit communication equipment acquires the registration information of the target event monitoring module through the client.
Preferably, the transmitting the operation data to the registered target event monitoring module includes:
determining a receiving interface in the target event monitoring module according to the registration information;
and establishing wireless connection between a transmission interface contained in the acquisition event monitoring module and the receiving interface, and transmitting the operation data through the wireless connection.
According to a second aspect of the embodiments of the present invention, a data reporting method is provided, including:
after a target event monitoring module is installed in a client, the client transmits registration information of the target event monitoring module to input equipment, so that the input equipment can register the target event monitoring module according to the registration information;
the client receives the operation data transmitted by the input device through a target event monitoring module, wherein a collection event monitoring module installed in the input device transmits the operation data to the registered target event monitoring module after collecting the operation data;
and the client classifies the operation data and reports the classified operation data to a big data terminal according to a preset reporting period.
Preferably, the client transmits the registration information of the target event monitoring module to an input device, including:
the client directly transmits the registration information of the target event monitoring module to the input equipment;
or,
if transit communication equipment respectively connected with the client and the input equipment is preset, the client transmits the registration information of the target event monitoring module to the transit communication equipment, so that the transit communication equipment transmits the registration information of the target event monitoring module to the input equipment.
According to a third aspect of the embodiments of the present invention, there is provided a data reporting apparatus, including:
the system comprises a registration information receiving module, a registration information processing module and a target event monitoring module, wherein the registration information receiving module is used for receiving the registration information of the target event monitoring module after the acquisition event monitoring module is installed in input equipment, and the target event monitoring module is installed in a client;
the registration module is used for registering a target event monitoring module installed in the client according to the registration information;
and the acquisition event monitoring module is used for acquiring the operation data after the operation data is generated, transmitting the operation data to the registered target event monitoring module so that the client classifies the operation data and reports the classified operation data to the big data terminal according to a preset reporting period.
Preferably, the registration information receiving module includes:
the first receiving unit is used for directly receiving the registration information of the target event monitoring module transmitted by the client;
or,
and the second receiving unit is used for receiving the registration information of the target event monitoring module transmitted by the transit communication equipment if the transit communication equipment respectively connected with the client and the input equipment is preset, wherein the transit communication equipment acquires the registration information of the target event monitoring module through the client.
Preferably, the collection event monitoring module includes:
a receiving interface determining unit, configured to determine a receiving interface in the target event monitoring module according to the registration information;
and the operation data transmission unit is used for establishing wireless connection between a transmission interface contained in the acquisition event monitoring module and the receiving interface and transmitting the operation data through the wireless connection.
According to a fourth aspect of the embodiments of the present invention, there is provided a data reporting apparatus, including:
the system comprises a registration information transmission module, a target event monitoring module and an input device, wherein the registration information transmission module is used for transmitting the registration information of the target event monitoring module to the input device after the target event monitoring module is installed in a client, so that the input device can register the target event monitoring module according to the registration information;
the target event monitoring module is used for receiving the operation data transmitted by the input equipment, wherein the acquisition event monitoring module installed in the input equipment transmits the operation data to the registered target event monitoring module after acquiring the operation data;
and the operation data reporting module is used for classifying the operation data and reporting the classified operation data to the big data terminal according to a preset reporting period.
Preferably, the registration information transmission module includes:
the first transmission unit is used for directly transmitting the registration information of the target event monitoring module to the input equipment;
or,
and if transit communication equipment respectively connected with the client and the input equipment is preset, the second transmission unit is used for transmitting the registration information of the target event monitoring module to the transit communication equipment so that the transit communication equipment can transmit the registration information of the target event monitoring module to the input equipment.
The technical scheme provided by the embodiment of the invention can have the following beneficial effects:
according to the data reporting method and device, the operation data can be reported to the big data terminal, and in the method, the input device is improved to be provided with a module for receiving registration information, a registered module and a collecting event monitoring module. Furthermore, even if the collection event monitoring module makes an error in the installation process, the original system of the input device cannot be crashed.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
The application discloses a data reporting method and device, which are used for solving the problem that the performance of input equipment is influenced because a native system of the input equipment needs to be greatly improved when operation data are reported to a big data terminal in the prior art.
The embodiment of the application discloses a data reporting method. Referring to the workflow diagram shown in fig. 1, the method for updating display content applied to a television includes the following steps:
step S11, after installing the collection event monitoring module in the input device, the input device receives registration information of the target event monitoring module, where the target event monitoring module is installed in the client.
When the user touches the input device, the input device generates corresponding operation data according to the touch of the user. After the collection event monitoring module is installed in the input device, the collection event monitoring module collects the operation data.
And step S12, the input device registers the target event monitoring module installed in the client according to the registration information.
Step S13, after the input device generates operation data, the operation data is collected by the collected event monitoring module, and the operation data is transmitted to the registered target event monitoring module, so that the client classifies the operation data, and reports the classified operation data to the big data terminal according to a preset reporting period.
After the input equipment generates the operation data, an acquisition event monitoring module installed in the input equipment acquires the operation data, and then transmits the operation data to the registered target event monitoring module. And after receiving the operation data through the target event monitoring module, the client classifies the operation data, acquires a preset reporting period, and transmits the classified operation data to a big data terminal according to the preset reporting period to realize data reporting. In addition, the client may also perform other forms of processing on the operation data, for example, performing processing such as encryption and compression on the operation data, which is not limited in this application.
Steps S11 to S13 of the present application disclose a data reporting method, in which a collection event monitoring module is installed in an input device, and a target event monitoring module is installed in a client, and the input device registers the target event monitoring module installed in the client according to the registration information. After the input equipment generates operation data, the operation data is collected through the collected event monitoring module, and the operation data is transmitted to the registered target event monitoring module. After the operation data is obtained through the target event monitor, the client classifies the operation data and reports the classified operation data to a big data terminal according to a preset reporting period.
According to the data reporting method, the operation data can be reported to the big data terminal, and in the method, the improvement of the input device is that a module for receiving registration information, a registered module and a collection event monitoring module are arranged. Furthermore, even if the collection event monitoring module makes an error in the installation process, the original system of the input device cannot be crashed.
If the operation data of the user on the television needs to be collected in order to improve the television, in this case, the input device is a remote controller of the television. Of course, in other application scenarios, the input device may also be in other forms, which is not limited in this application.
Further, in the data reporting method disclosed in the present application, according to the difference between clients, the input device has different ways of receiving the registration information of the target event monitoring module.
In one way, see the schematic connection diagram shown in fig. 2, in which the input device 100 is directly connected to the client 200. In this case, the input device receives registration information of the target event monitoring module, and includes: and the input equipment directly receives the registration information of the target event monitoring module transmitted by the client.
For example, the input device 100 is a remote controller of a television, and the client 200 is a computer, and the computer directly transmits the registration information of the target event monitoring module to the remote controller, so that the remote controller can directly accept the registration information of the target event monitoring module transmitted by the computer.
In addition, in another mode, refer to a schematic connection relationship diagram shown in fig. 3, wherein a relay communication device 300 is provided, which is connected to the client 200 and the input device 100, respectively. If a transfer communication device respectively connected with the client and the input device is preset, the input device receives registration information of the target event monitoring module, and the method comprises the following steps: the input device receives registration information of a target event monitoring module transmitted by the relay communication device, wherein the relay communication device acquires the registration information of the target event monitoring module through the client.
For example, the input device 100 is a remote controller of a television, the client 200 is a television, and the television usually needs to transmit the registration information of the target event monitoring module to the remote controller through the relay communication device 300. That is, the client 200 transmits the registration information of the target event monitoring module to the relay communication device 300, and the relay communication device 300 transmits the registration information of the target event monitoring module to the input device 100. The relay communication device 300 may be a computer.
Further, in the present application, the transmitting the operation data to the registered target event monitoring module includes the following steps:
firstly, determining a receiving interface in the target event monitoring module through the registration information;
then, a wireless connection between a transmission interface included in the acquisition event monitoring module and the receiving interface is established, and the operation data is transmitted through the wireless connection.
According to the method and the device, the transmission of the operation data is realized according to the wireless connection between the transmission interface of the acquisition event monitoring module and the receiving interface of the target event monitoring module. If the input device is an Android system, the input device generally adopts an aid id (Android Interface Definition Language) technology when transmitting the operation data.
Correspondingly, a second embodiment of the present application discloses a data reporting method. Referring to a work flow diagram shown in fig. 4, the data reporting method includes the following steps:
step S21, after installing the target event monitoring module in the client, the client transmits the registration information of the target event monitoring module to the input device, so that the input device registers the target event monitoring module according to the registration information.
Step S22, the client receives the operation data transmitted by the input device through a target event monitoring module, where after the acquisition event monitoring module installed in the input device acquires the operation data, the operation data is transmitted to the registered target event monitoring module.
In this application, install collection incident monitoring module in the input device, when the user touch-control during input device, input device can produce corresponding operating data according to user's touch-control, wherein, it can gather to gather incident monitoring module operating data, and will operating data transmits extremely the target incident monitoring module of installation in the customer end.
And step S23, the client classifies the operation data and reports the classified operation data to a big data terminal according to a preset reporting period.
Wherein the operational data generally includes: a key name, a key value, a device name of an input device, a device type, and the like. And after the client side obtains the operation data through the target event monitoring module, classifying the operation data according to the type of the operation data.
In addition, a reporting period is preset in the client, and after the operation data are classified, the classified operation data are reported to a big data terminal according to the reporting period, so that the big data terminal can process the operation data.
Further, in this application, the client may also perform other processing on the operation data, such as compression, encryption, and the like, which is not limited in this application.
Steps S21 to S23 of the present application disclose a data reporting method, in which a collection event monitoring module is installed in an input device, and a target event monitoring module is installed in a client. And the client transmits the registration information of the target event monitoring module to an input device, and the input device registers the target event monitoring module installed in the client according to the registration information. After the input equipment generates operation data, the operation data is collected through the collected event monitoring module, and the operation data is transmitted to the registered target event monitoring module. And after the client acquires the operation data through the target event monitoring module, classifying the operation data, and reporting the classified operation data to a big data terminal according to a preset reporting period.
According to the data reporting method, the operation data can be reported to the big data terminal, and in the method, the improvement of the input device is that a module for receiving registration information, a registered module and a collecting event monitoring module are arranged. Furthermore, even if the collection event monitoring module makes an error in the installation process, the original system of the input device cannot be crashed.
Further, in the data reporting method disclosed in the present application, when the client transmits the registration message of the target event monitoring module to the input device, different manners may be adopted.
In one mode, the client transmits registration information of the target event monitoring module to an input device, including: and the client directly transmits the registration information of the target event monitoring module to the input equipment.
In this way, see the schematic connection diagram shown in fig. 2, in which the input device 100 is directly connected to the client 200. For example, the input device 100 is a remote controller of a television, and the client 200 is a computer, and the computer directly transmits the registration information of the target event monitoring module to the remote controller.
Or, in another mode, the transmitting, by the client, the registration information of the target event monitoring module to an input device includes: if transit communication equipment respectively connected with the client and the input equipment is preset, the client transmits the registration information of the target event monitoring module to the transit communication equipment, so that the transit communication equipment transmits the registration information of the target event monitoring module to the input equipment.
In this manner, referring to the schematic connection relationship diagram shown in fig. 3, the relay communication device 300 connected to the client 200 and the input device 100, respectively, is preset. For example, the input device 100 is a remote controller of a television, the client 200 is a television, and the television usually needs to transmit the registration information of the target event monitoring module to the remote controller through the relay communication device 300. That is, the client 200 transmits the registration information of the target event monitoring module to the relay communication device 300, and the relay communication device 300 transmits the registration information of the target event monitoring module to the input device 100. The relay communication device 300 may be a computer.
Accordingly, a third embodiment of the present application discloses a data reporting apparatus, referring to a schematic structural diagram shown in fig. 5, the data reporting apparatus includes: a registration information receiving module 110, a registration module 120 and a collection event listening module 130.
The registration information receiving module 110 is configured to receive registration information of a target event monitoring module after a collection event monitoring module is installed in an input device, where the target event monitoring module is installed in a client.
The registration module 120 is configured to register a target event monitoring module installed in the client according to the registration information.
The collected event monitoring module 130 is configured to collect the operation data after the operation data is generated, and transmit the operation data to the registered target event monitoring module, so that the client classifies the operation data, and reports the classified operation data to the big data terminal according to a preset reporting period.
The input device can generate corresponding operation data according to the touch operation of a user. After the acquisition event monitoring module is installed in the input device, the acquisition event monitoring module acquires the operation data.
After receiving the operation data through the target event monitoring module, the client performs logic processing on the operation data, for example, classifies the operation data, acquires a preset reporting period, and transmits the classified operation data to the big data terminal according to the preset reporting period, thereby realizing data reporting.
According to the data reporting device, the operation data can be reported to the big data terminal, in the scheme, the input device is improved by arranging the registration information receiving module, the registration module and the collection event monitoring module, compared with the prior art, the native system of the input device is improved slightly, the input device transmits the operation data to the client, the client processes the operation data, the data quantity required to be processed by the input device is small, and therefore the influence on the performance of the input device is small. Furthermore, even if the collection event monitoring module makes an error in the installation process, the original system of the input device cannot be crashed.
If the operation data of the user on the television needs to be collected in order to improve the television, in this case, the input device is a remote controller of the television. Of course, in other application scenarios, the input device may also be in other forms, which is not limited in this application.
Further, in the data reporting apparatus disclosed in the present application, according to the difference of the clients, the input device has different ways of receiving the registration information of the target event monitoring module, and correspondingly, the registration information receiving module 110 may be formed in different forms.
In one form, the registration information receiving module 110 includes: and the first receiving unit is used for directly receiving the registration information of the target event monitoring module transmitted by the client.
In this case, see the schematic connection relationship diagram shown in fig. 2, in which the input device 100 is directly connected to the client 200.
Alternatively, the registration information receiving module 110 includes: and the second receiving unit is used for receiving the registration information of the target event monitoring module transmitted by the transit communication equipment if the transit communication equipment respectively connected with the client and the input equipment is preset, wherein the transit communication equipment acquires the registration information of the target event monitoring module through the client.
In this case, see a schematic connection relationship diagram shown in fig. 3, in which a relay communication device 300 is provided, which is connected to the client 200 and the input device 100, respectively.
For example, the input device 100 is a remote controller of a television, the client 200 is a television, and the television usually needs to transmit the registration information of the target event monitoring module to the remote controller through the relay communication device 300. That is, the client 200 transmits the registration information of the target event monitoring module to the relay communication device 300, and the relay communication device 300 transmits the registration information of the target event monitoring module to the input device 100. The relay communication device 300 may be a computer.
Further, in this application, the collection event monitoring module includes:
a receiving interface determining unit, configured to determine a receiving interface in the target event monitoring module according to the registration information;
and the operation data transmission unit is used for establishing wireless connection between a transmission interface contained in the acquisition event monitoring module and the receiving interface and transmitting the operation data through the wireless connection.
According to the method and the device, the transmission of the operation data is realized according to the interfaces of the acquisition event monitoring module and the target event monitoring module. If the input device is an Android system, the input device generally adopts an aid id (Android Interface Definition Language) technology when transmitting the operation data.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Accordingly, a fourth embodiment of the present application discloses a data reporting apparatus, referring to a schematic structural diagram shown in fig. 6, where the data reporting apparatus includes: a registration information transmission module 210, a target event monitoring module 220 and an operation data reporting module 230.
The registration information transmission module 210 is configured to transmit registration information of a target event monitoring module to an input device after the target event monitoring module is installed in a client, so that the input device registers the target event monitoring module according to the registration information;
the target event monitoring module 220 is configured to receive operation data transmitted by the input device, where after the acquisition event monitoring module installed in the input device acquires the operation data, the acquisition event monitoring module transmits the operation data to the registered target event monitoring module;
the operation data reporting module 230 is configured to classify the operation data, and report the classified operation data to a big data terminal according to a preset reporting period.
In this application, install collection incident monitoring module in the input device, when the user touch-control during input device, input device can produce corresponding operating data according to user's touch-control, wherein, it can gather to gather incident monitoring module operating data, and will operating data transmits extremely the target incident monitoring module of installation in the customer end.
Additionally, the operational data typically includes: a key name, a key value, a device name of an input device, a device type, and the like. And after the client side obtains the operation data through the target event monitoring module, classifying the operation data according to the type of the operation data.
And a reporting period is preset in the client, and after the operation data are classified, the classified operation data are reported to a big data terminal according to the reporting period, so that the big data terminal can process the operation data.
Further, the data reporting apparatus disclosed in the present application may further perform other processing on the operation data, such as compression and encryption, which is not limited in this application.
According to the data reporting device, the operation data can be reported to the big data terminal, in the scheme, the input device is improved by arranging the registration information receiving module, the registration module and the collection event monitoring module, compared with the prior art, the native system of the input device is improved slightly, the input device transmits the operation data to the client, the client processes the operation data, the data quantity required to be processed by the input device is small, and therefore the influence on the performance of the input device is small. Furthermore, even if the collection event monitoring module makes an error in the installation process, the original system of the input device cannot be crashed.
Further, in the data reporting apparatus disclosed in the present application, the registration information may be transmitted to the input device in various manners, and accordingly, the registration information transmission module 210 may be formed in different forms.
In one form, the registration information transmission module 210 includes: the first transmission unit is used for directly transmitting the registration information of the target event monitoring module to the input device.
In this case, see the schematic connection relationship diagram shown in fig. 2, in which the input device 100 is directly connected to the client 200. For example, the input device 100 is a remote controller of a television, and the client 200 is a computer, and the computer directly transmits the registration information of the target event monitoring module to the remote controller.
Alternatively, the registration information transmission module 210 includes: and if transit communication equipment respectively connected with the client and the input equipment is preset, the second transmission unit is used for transmitting the registration information of the target event monitoring module to the transit communication equipment so that the transit communication equipment can transmit the registration information of the target event monitoring module to the input equipment.
In this case, referring to the schematic diagram of the connection relationship shown in fig. 3, the relay communication device 300 connected to the client 200 and the input device 100, respectively, is preset. For example, the input device 100 is a remote controller of a television, the client 200 is a television, and the television usually needs to transmit the registration information of the target event monitoring module to the remote controller through the relay communication device 300. That is, the client 200 transmits the registration information of the target event monitoring module to the relay communication device 300, and the relay communication device 300 transmits the registration information of the target event monitoring module to the input device 100. The relay communication device 300 may be a computer.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.