Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be an intelligent television, and can also be a mobile terminal device with a display function, such as a smart phone, a tablet computer, an electronic book reader, a portable computer and the like.
As shown in fig. 1, the terminal may include: aprocessor 1001, such as a CPU, anetwork interface 1004, auser interface 1003, amemory 1005, acommunication bus 1002. Wherein acommunication bus 1002 is used to enable connective communication between these components. Theuser interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and theoptional user interface 1003 may also include a standard wired interface, a wireless interface. Thenetwork interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). Thememory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). Thememory 1005 may alternatively be a storage device separate from theprocessor 1001.
Optionally, the terminal may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like. Of course, the terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
As shown in fig. 1, theprocessor 1001 may include a window information processing module, a preset auxiliary application information processing module, a player status information processing module, and a key information processing module, and when processing different types of information, the processor may call a corresponding message processing module to perform processing.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, amemory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a habit data collecting program.
In the terminal shown in fig. 1, thenetwork interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; theuser interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and theprocessor 1001 may be configured to invoke the habit data gathering program stored in thememory 1005 and perform operations including:
starting a monitoring module, and acquiring change event information changed due to the triggering of a user operation instruction through the monitoring module;
analyzing the change event information according to the information type of the change event information to obtain habit data corresponding to the information type;
and packaging the habit data of the corresponding information type obtained by analysis, and sending the habit data to a preset server.
Further, theprocessor 1001 may call the habit data gathering program stored in thememory 1005, and also perform the following operations:
detecting the data type of the change event information, and obtaining the information type of the change event information according to the data type;
and analyzing the change event information by an analysis method corresponding to the information type according to the information type of the change event information to obtain habit data corresponding to the information type.
The step of analyzing the change event information by an analysis method corresponding to the information type according to the information type of the change event information comprises the following steps:
and if the information type of the change event information is key information, analyzing the key information to acquire triggered key coding information.
The step of analyzing the change event information by an analysis method corresponding to the information type according to the information type of the change event information further includes:
and if the information type of the change event information is window content information, analyzing the parameter information of the window interface to acquire the changed text information in the window interface.
The step of analyzing the change event information by an analysis method corresponding to the information type according to the information type of the change event information further includes:
and if the information type of the change event information is window state information, analyzing the parameter information of the window interface to obtain the setting parameters of the window state.
The step of analyzing the change event information by an analysis method corresponding to the information type according to the information type of the change event information further includes:
and if the information type of the change event information is the player state information, analyzing the player operation parameters to acquire the state data of the player.
The step of analyzing the change event information by an analysis method corresponding to the information type according to the information type of the change event information further includes:
and if the information type of the change event information is the preset auxiliary application state change event information, analyzing the preset auxiliary application operation parameters to acquire the state change data of the preset auxiliary application.
Further, theprocessor 1001 may call the habit data gathering program stored in thememory 1005, and also perform the following operations:
the step of encapsulating the habit data of the corresponding information type obtained by analysis and sending the habit data to the preset server comprises the following steps:
and packaging the acquired habit data according to a pre-form to obtain packaged data with a uniform format, and sending the packaged data to a remote server.
Referring to fig. 2, a first embodiment of the present invention provides a habit data collecting method, including:
step S10, starting a monitoring module, and acquiring the change event information changed due to the triggering of the user operation instruction through the monitoring module;
specifically, the monitoring module is automatically run in the background when the smart television is started, and monitors information which changes due to the triggering of an operation instruction of a user, so as to obtain information of change time which changes due to the operation of the user.
Step S20, analyzing the change event information according to the information type of the change event information to obtain habit data corresponding to the information type;
specifically, the information of the change time is classified according to different data types, and the classified information is analyzed, so that the composition of the change event information is further optimized.
And step S30, encapsulating the habit data of the corresponding information type obtained by analysis, and sending the habit data to a preset server.
Specifically, the habit data of each type of the analyzed data are packaged, the packaged habit data can be conveniently sent to a remote server, and technicians can obtain the habit data of the user from the server, so that corresponding technology research and development are performed according to the habit data of the user.
With the development of the intelligent television, the number of applications and functions in the intelligent television is greatly increased, and the television can run various applications of audio, video and games from the initial watching of television station programs to the current intelligent television. Although the application range of the smart television is increased due to the increase of the functions, the too large application range prevents technicians from performing targeted research and development, so that users cannot generate sufficient loyalty for products. And too much function makes the probability that the smart TV appears the mistake and the trouble also increase, in order to ensure product quality, the producer often need spend a large amount of manpower and materials to maintain and upgrade, and the condition of appeal all can cause the condition that user experience reduces, and the cost of producer increases by a wide margin simultaneously.
In the actual use process of a general user, most functions of the intelligent television can not be used or the use frequency is very low, so that the functions with high use frequency of the user can be researched, developed and maintained pertinently according to the use habits of the user, the use experience of the user can be effectively improved, the customer loyalty is increased, the problem of increase of the failure rate caused by excessively complex systems and hardware structures is also solved, and the cost of manpower and material resources for maintaining the intelligent television by a manufacturer is reduced. In order to obtain the used habit, the habit data of the user when using the intelligent television must be counted, at present, the habit data of the user is mainly manually collected, the manual counting mode is often that the sample data amount is small, the sample data is too small, the representativeness of the data is low, the actual needs of the users cannot be really obtained, extra labor cost is needed for counting, and therefore the overall effect is poor.
According to the habit data collection method, the plurality of modules for collecting data are added into the system of the intelligent television, so that the collection statistics of the daily used functions of the user on the application can be effectively carried out. The monitoring module is started when the user starts the intelligent television and runs in the background, and the monitoring module is used for monitoring the operation of the user when the user uses the intelligent television, namely acquiring the changed information. After the monitoring module acquires the change event information, the acquired change event information needs to be analyzed, namely, optimization processing is carried out, the acquired data is analyzed to obtain different related information according to types, and if the information type is key information, the key information is analyzed to obtain key values of keys; if the information type is window state change event information, analyzing the window state information, and acquiring an application package name and an Activity name (one of components of the android system is an interactive interface which is distributed in the whole window or suspended on other windows); if the information type is window content change event information, analyzing the window content information and acquiring all character information on the interface; if the information type is the video player state change event information, analyzing the video player state information, and acquiring the state information of the video player, such as starting playing, pausing, playing after pausing, fast forwarding, fast rewinding, next video, previous video, stopping playing and the like.
After the information is analyzed, the obtained information is packaged, the packaged data are sent to a remote server through an interface, and technicians receive habit data sent by the smart television through the server, so that the using habits of users are obtained. Unified encapsulation can make data more clear, makes things convenient for the staff to carry out statistics and investigation.
The habit data of each intelligent television user can be counted through the user habit data collected by the method, so that the number of samples is greatly increased, the data is more convincing, and the using habits, including habitual functions and the like, of the user can be more accurately known. And the manufacturer can perform corresponding research and development and maintenance according to the obtained user use data, and give processing such as cancellation or weakening to the user using fewer functions, so that unnecessary expenditure is effectively reduced, and the cost is reduced. Meanwhile, the functions used by the user are perfected and upgraded, so that the user can use the system more conveniently, the use experience and the satisfaction of the user are improved, and the loyalty of the user is improved. By the method and the system, the habit data of the user using the intelligent television can be efficiently collected without influencing the use of the user, and extra manpower and material resources are not needed, so that a manufacturer can save a large amount of cost.
Further, in another embodiment, referring to fig. 3, the step S20 of analyzing the change event information according to the information type of the change event information to obtain the habit data corresponding to the information type includes:
step S21, detecting the data type of the change event information, and obtaining the information type of the change event information according to the data type;
step S22, according to the information type of the change event information, analyzing the change event information by the analysis method corresponding to the information type to obtain the habit data corresponding to the information type
Specifically, after the change event information is acquired by the monitoring module, the change event information is classified according to the data type of the change information, and then the classified change event information is analyzed, so that the data structure of the change event information is further optimized.
The monitoring module monitors the acquired change event information, so that the data volume is large, the key points are not obvious, if the change event information is directly used, the efficiency is low, the change event information needs to be analyzed, the change event information can be simply optimized through analysis, the redundancy in the data is reduced, the different types are classified, and therefore, the working efficiency can be effectively improved when technicians analyze the data.
Further, the step S22 of parsing the change event information by a parsing method corresponding to the information type according to the information type of the change event information includes:
step S221, if the information type of the change event information is the key information, analyzing the key information to obtain the triggered key code information.
Specifically, when the change event information is the key information, the triggered key code information in the key information, that is, the key value of the key operated by the user, is obtained through analysis.
The key information records the operation of the user on the key, including the operation times, time, key value of the key and other information, and after analysis, the key value information of the key is reserved. The key value of the key is the function of the key, the key value is a number, the key corresponding to the number can be found by comparing the key value table through a digital system, for example, the key value of the enter key on the keyboard is 13, when the enter key is pressed, the information received by the system is that the key with the key value of 13 is triggered, and the system obtains that 13 is the enter through the comparison table, and then the function of the enter is executed. The form of the key information is: { "type": KeyEvent "," keyCode ":23}, type: KeyEvent, keyCode: key values of the keys. By acquiring the key values, the case application condition of the user to the smart television can be quickly known, so that the key values of the keys are obtained after analysis, and the information amount can be reduced on the premise of accurately knowing the habit of the user.
Further, the step S22 of parsing the change event information by a parsing method corresponding to the information type according to the information type of the change event information further includes:
in step S222, if the information type of the change event information is window content information, analyzing the parameter information of the window interface to obtain the changed text information in the window interface.
Specifically, when the information type of the change event information is window content information, analyzing the text information changed in the window content to obtain the changed text content in the window interface.
Through the window interface, a user can obtain corresponding display content of the smart television, and the text information displayed on the window interface is one of the content watched by the user. The general content in the current window of the user can be judged through the character information displayed on the window interface, compared with the image information and the film and television information, the character information occupies a smaller storage space, under the condition of limited storage space, the character information can be stored more, and the watching information such as the watching content of the user and the like can be analyzed and obtained according to a large amount of character information. Although the image information and the video information can intuitively display the content of the display interface, too much text information cannot be collected due to large occupied storage space, so that the number of samples is reduced, and the use habits of the user cannot be accurately analyzed due to too small number of samples. And the image information and the movie information with overlarge data volume are inconvenient to package and send.
Further, the step S22 of parsing the change event information by a parsing method corresponding to the information type according to the information type of the change event information further includes:
in step S223, if the information type of the change event information is window state information, the parameter information of the window interface is analyzed to obtain the setting parameter of the window state.
Specifically, when the information type of the change event information is window state information, the state information in the window state is analyzed, and the setting parameters of the window state, including the application package name and the activity name (interactive interface on the window), are obtained.
The change of the window information is that the window state information changes in addition to the content information, and the window state changes due to actions such as switching applications by a user or changing a currently displayed window. The smart television has the main effects that the content which the user wants to watch is displayed through the window, so that the window state information is one of key data of the habit of the user, the current application package of the window and the name of an interactive interface (activity) of the window can be obtained through the setting parameters of the window state, the video application and the watched program used by the user can be accurately obtained through the application package and the interactive interface, and the optimized development can be carried out on the application favored by the user through the obtaining of the window state, so that the use experience of the user is improved. The window information obtained may be in the form of { "type": Windows "," app ": com.tcl.tv", "Windows": com.tcl.tv.tvactivity "," text ": info", "test" ] } type: windows; app: the package name of the current application; windows: if the current Activity is not acquired, null is obtained; text: and the character information can be acquired on the interface. According to the obtained changed window information, the applications used by the user and the favorite video programs can be quickly analyzed, and the client can be conveniently maintained in a targeted manner.
Further, the step S22 of parsing the change event information by a parsing method corresponding to the information type according to the information type of the change event information further includes:
in step S224, if the information type of the change event information is player status information, analyzing the player operation parameters to obtain the status data of the player.
Specifically, when the information type of the change event information is the state information of the play, the player state data is obtained through analysis, and the player state data comprises states of play starting, pause, play after pause, fast forward, fast backward, play stopping, screen ratio and the like.
The state change of the player can grasp the preference and habit of the user for using the player, and the user is used to play quickly for rough browsing or to enjoy slowly from beginning to end. For example, if the occurrence frequency of fast forward and fast backward states is detected to be more, it indicates that the user likes to repeatedly watch and enjoy a favorite clip, and important data such as the watching habit of the user can be acquired by combining window information (application package and window interface information), so that the user can be maintained more conveniently and accurately.
Further, the step S22, according to the information type of the change event information, of parsing the change event information by the parsing method corresponding to the information type, further includes:
step S225, if the information type of the change event information is the preset auxiliary application state change event information, analyzing the preset auxiliary application operating parameter to obtain the state change data of the preset auxiliary application.
Specifically, if the change event information is the change event information of the preset auxiliary application state such as a music player and a picture player, the related state change data is obtained by the auxiliary application operation parameters.
The main application of the smart television is video playing application, and besides video playing, the smart television can also run auxiliary applications to realize corresponding functions, including playing audio through a music player, playing pictures through a picture player, and the like. By presetting the auxiliary application state change event information, the use habit of the preset auxiliary application used by the user can be obtained, and a manufacturer can perform corresponding optimization development according to the use habit of the user, for example, if the majority of users using the audio player and the picture player are in use, the related applications and functions of audio playing and picture playing are developed in a key manner. Through analyzing the acquired habit data, a manufacturer can acquire user habit data with a better data structure and learn more complete user use habits. The user habits have decisive effects on convenient strategies such as production research and development, after-sale service and the like of manufacturers, the user use habits can be accurately obtained, and the manufacturers can save cost effectively. And the information monitored by the monitoring module is analyzed, so that the data structure of the information can be optimized, and the information is more convenient to use.
Further, the step S30 of encapsulating the habit data of the corresponding information type obtained by parsing and sending the habit data to the preset server includes:
and step S31, packaging the acquired habit data according to a pre-form to obtain packaged data with a uniform format, and sending the packaged data to a remote server.
Specifically, after the habit data is obtained through analysis, the habit data is packaged and encapsulated according to a corresponding format, and then an interface is called to send the encapsulated data to a remote server.
According to different information types, data encapsulation and key information can be carried out according to the following modes: KeyEventBean ═ new KeyEventBean ("KeyEvent", event.getkeycode ()); gson ═ new Gson (); tojson (keyEventBean);
after encapsulation, the interface is called to send: util. sendmsg (msg);
video player information: video player bean ═ new video player bean ("video player", textjsonobject. opt ("fileplay"). toString ()), textjsonobject. opt ("status"). toString ()); gson ═ new Gson (); tojson (videoPlayerBean);
after encapsulation, the interface is called to send: util. sendmsg (msg);
window information: windows bean ═ new Windows bean ("Windows", event.
Gson gson=new Gson();String msg=gson.toJson(windowsBean);
After encapsulation, the interface is called to send: util. sendmsg (msg); because the attribute and the data structure of the acquired habitual data of each type are different, the habitual data are only sent and received by the server through the external open interface by encapsulating and hiding the attributes of the habitual data, and the habitual data can be acquired by automatically unsealing the habitual data after being received by the server by manufacturer technicians, so that the habitual data can be sent and received more conveniently and quickly through encapsulation.
The invention also provides an intelligent terminal with the habit data collecting method.
The intelligent terminal based on the habit data collecting method comprises the following steps: a memory, a processor and a habit data collection procedure stored on said memory and executable on said processor, said habit data collection procedure when executed by said processor implementing the habit data collection method steps as described above.
The habit data collecting method may refer to various embodiments of the habit data collecting method of the present invention, and will not be described herein again.
In addition, the embodiment of the invention also provides a computer readable storage medium.
The computer readable storage medium of the present invention has stored thereon a habit data collection procedure, which when executed by a processor implements the steps of the habit data collection method as described above.
The habit data collecting method may refer to various embodiments of the habit data collecting method of the present invention, and will not be described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.