Set top box burying-point-free data acquisition method and device, terminal and medium

By deploying log collectors and broadcast monitoring tools on the set-top box, data collection without buried points is achieved, which solves the problems of cumbersome data collection and incomplete coverage in traditional methods, and improves the efficiency and accuracy of data collection.

CN118714383APending Publication Date: 2024-09-27INSPUR INTELLIGENT IOT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411000162.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

The traditional set-top box data collection method requires explicit tracking, which is cumbersome and difficult to fully cover all user behaviors and operational data, especially cross-component and cross-page interactive behaviors. Moreover, there are delays in data collection, processing and transmission, which affects efficiency and accuracy. sex.

Method used

By deploying log collectors and broadcast monitoring tools, data can be automatically collected and reported on the set-top box. There is no need to explicitly bury points in the application code. It covers a wide range of data and improves the efficiency and accuracy of data collection.

Benefits of technology

It realizes data collection without buried points, covers a wide range of data, improves the efficiency and accuracy of data collection, and is suitable for scenarios that require immediate feedback and optimization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118714383A
    Figure CN118714383A
Patent Text Reader

Abstract

The invention relates to the field of data acquisition, and particularly discloses a set top box burying-point-free data acquisition method and device, a terminal and a medium, and a log acquirer and a broadcast monitoring tool are deployed. Configuring working parameters of the log collector and the broadcast monitoring tool; executing the log collector to collect a target log, and executing the broadcast monitoring tool to monitor a target system event; and collecting target data from the target log, and reporting the target data and the target system event information to a server. According to the invention, automatic acquisition and reporting of the data are realized at the set top box end through the log collector and the broadcast monitoring tool, explicit point burying in application program codes is not needed, the coverage data range is wide, and the efficiency and accuracy of data acquisition are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data collection, and in particular to a method, device, terminal and medium for collecting data without embedding points of a set-top box. Background Art

[0002] Hard Probe is a traditional data collection method that usually requires explicit code addition to the application source code to collect specific user operation and behavior data. This method usually requires developers to insert data collection code at key locations in the application, such as recording click events when users click buttons, recording loading time when pages load, etc.

[0003] Traditional set-top box data collection methods usually require explicit tracking in the application code to collect data. This method not only has high development costs due to cumbersome operations, but is also prone to missing or misreporting data. At the same time, with the increasing complexity and diversification of set-top box applications, it is difficult to fully cover all user behaviors and operation data by simply relying on explicit tracking in the source code, especially those cross-component and cross-page interactive behaviors, as well as implicit factors that affect the user experience but are not directly triggered by users, such as page rendering performance, resource loading efficiency, etc. In addition, since data needs to be captured through specific code snippets when the application is running, this means that there is a certain delay in data collection, processing, and transmission, which may not be efficient enough for scenarios that require instant feedback and optimization. Summary of the invention

[0004] To solve the above problems, the present invention provides a set-top box non-embedded data collection method, device, terminal and medium, which realizes automatic data collection and reporting on the set-top box end through a log collector and a broadcast monitoring tool, without the need for explicit embedding in the application code, covers a wide range of data, and improves the efficiency and accuracy of data collection.

[0005] In a first aspect, the technical solution of the present invention provides a set-top box non-embedded data collection method, comprising the following steps: Deploy log collectors and broadcast monitoring tools; Configure the working parameters of the log collector and broadcast monitoring tool; Execute the log collector to collect target logs and execute the broadcast monitoring tool to monitor target system events; Collect target data from target logs and report target data and target system event information to the server.

[0006] In an optional implementation, the configuration of the working parameters of the log collector and the broadcast monitoring tool specifically includes: Log in to the data collection platform and enter the data collection management interface; In the data collection management interface, click the Log Collection tab to obtain the log collector working parameter configuration interface; Enter the log collector working parameters in the log collector working parameter configuration interface; Click the Broadcast Monitoring tab in the Data Collection Management interface to obtain the Broadcast Monitoring Tool working parameter configuration interface; Enter the broadcast monitoring tool working parameters in the broadcast monitoring tool working parameter configuration interface.

[0007] In an optional implementation, the log collector working parameters include the application identifier to be monitored, the log type and the regular expression; The working parameters of the broadcast monitoring tool include the system event identifier that needs to be monitored.

[0008] In an optional implementation, collecting target data from a target log specifically includes: Collect target data from target logs based on pre-configured regular expressions.

[0009] In an optional implementation, before reporting the target data and the target system event information to the server, the method further includes a step of pre-processing the target data and the target system event information.

[0010] In an optional implementation, the preprocessing step specifically includes: a character set conversion operation, a dictionary data parsing operation, and a data conversion operation into a JSON string format.

[0011] In an optional implementation, reporting the target data and target system event information to the server specifically includes: Configure data reporting rules and rule parameters; reporting rules include timed reporting and reporting when the data volume reaches a threshold; Report target data and target system event information to the server according to the configured reporting rules and rule parameters.

[0012] In a second aspect, the technical solution of the present invention provides a set-top box non-embedded data collection device, comprising: Tool deployment module: deploy log collector and broadcast monitoring tools; Parameter configuration module: configure the working parameters of the log collector and broadcast monitoring tool; Data collection execution module: executes the log collector to collect target logs and executes the broadcast monitoring tool to monitor target system events; Data processing and reporting module: collects target data from the target log and reports the target data and target system event information to the server.

[0013] In a third aspect, the technical solution of the present invention provides a terminal, including: A memory, used for storing a data collection program without embedding points in a set-top box; A processor is used to implement the steps of the set-top box non-embedded data collection method as described in any of the above items when executing the set-top box non-embedded data collection program.

[0014] In a fourth aspect, the technical solution of the present invention provides a computer-readable storage medium, on which a set-top box non-embedded data collection program is stored. When the set-top box non-embedded data collection program is executed by a processor, the steps of the set-top box non-embedded data collection method as described in any of the above items are implemented.

[0015] The present invention provides a set-top box non-embedded data collection method, device, terminal and medium, which have the following beneficial effects compared with the prior art: a log collector and a broadcast monitoring tool are deployed and configured on the set-top box, and data is collected by log collection and system event monitoring. The present invention realizes automatic data collection and reporting on the set-top box side through the log collector and the broadcast monitoring tool, without explicit embedding in the application code, covering a wide range of data, and improving the efficiency and accuracy of data collection. BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0016] Figure 1 It is a flow chart of a method for collecting data without embedding points in a set-top box provided by an embodiment of the present invention.

[0017] Figure 2 The present invention provides a block diagram showing the structure of a device for collecting data without embedding points in a set-top box.

[0018] Figure 3 It is a schematic diagram of the structure of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0019] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0020] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.

[0021] Figure 1 This is a flow chart of a method for collecting data from a set-top box without embedding points provided by an embodiment of the present invention. Figure 1 The execution subject may be a set-top box non-embedded data collection method device. The set-top box non-embedded data collection method provided by the embodiment of the present invention is executed by a computer device, and accordingly, the set-top box non-embedded data collection device runs in the computer device. According to different requirements, the order of the steps in the flowchart can be changed, and some can be omitted.

[0022] like Figure 1 As shown, the method includes the following steps.

[0023] S1, deploy the log collector and broadcast monitoring tool.

[0024] Deploying the log collector and broadcast monitoring tool to the set-top box generally includes environment construction and permission application. When setting up the environment, configure the Android development environment, including installing Android Studio and SDK. Permission application includes applying for necessary permissions in AndroidManifest.xml, such as READ_LOGS (requires root permission or system application), RECEIVE_BOOT_COMPLETED (used to monitor boot broadcasts), etc.

[0025] The broadcast monitoring tool is pre-registered, for example, registering a BroadcastReceiver in the application to monitor the broadcasts issued by the system or application. Static registration or dynamic registration is performed as needed. For example, static registration of BroadcastReceiver in AndroidManifest.xml so that broadcasts can be received even when the application is not running. Dynamic registration of BroadcastReceiver in Activity or Service to monitor specific broadcasts as needed.

[0026] S2, configure the working parameters of the log collector and broadcast monitoring tool.

[0027] This embodiment allows a user or administrator to configure the rules for data collection, improves the friendly interface and interaction mode, and specifically includes the following steps.

[0028] S2.1, log in to the data collection platform and enter the data collection management interface.

[0029] The user or administrator enters the user name and password to log in to the data collection platform, and then configures the data collection rules in the data collection management interface.

[0030] S2.2. Click the Log Collection tab in the Data Collection Management interface to obtain the Log Collector working parameter configuration interface.

[0031] S2.3, enter the log collector working parameters in the log collector working parameter configuration interface.

[0032] Data collection rule configuration includes the configuration of log collector working parameters, and provides a log collector working parameter configuration interface to facilitate configuration by users or administrators. Log collector working parameters include application identifiers, log types, and regular expressions that need to be monitored.

[0033] For example, the application to be monitored is identified as the application package name, and the application to be monitored is specified to obtain relevant data by capturing its log. Log types include Android system log types, Logcat logs, ANR logs, trace logs, etc. Regular expressions are used to match specific information in the logs in the future, thereby filtering out valuable data sets.

[0034] S2.4. Click the Broadcast Monitoring tab in the data collection management interface to obtain the broadcast monitoring tool working parameter configuration interface.

[0035] S2.5, input the broadcast monitoring tool working parameters in the broadcast monitoring tool working parameter configuration interface.

[0036] Data collection rule configuration includes the configuration of broadcast monitoring tool working parameters, and provides a broadcast monitoring tool working parameter configuration interface to facilitate configuration by users or administrators. Broadcast monitoring tool working parameters include system event identifiers that need to be monitored, monitoring system broadcast events, and capturing specific types of system activities.

[0037] In this embodiment, the collected data is reported to the server, and the reporting rules and rule parameters are pre-configured. The data collection platform is also logged in to enter the data collection management interface for configuration. Among them, the reporting rules include timed reporting and reporting when the data volume reaches a threshold. The parameters of the timed reporting include the reporting time, and the parameters of the data volume reaching the threshold reporting include the data volume threshold.

[0038] S3, execute the log collector to collect target logs, and execute the broadcast monitoring tool to monitor target system events.

[0039] After completing the above deployment and configuration, execute the log collector and broadcast monitoring tool to collect logs and monitor events according to the configuration parameters.

[0040] S4, collect target data from the target log, and report the target data and target system event information to the server.

[0041] After collecting the logs that need to be collected, regular matching is performed, and regular expressions are used to match specific information in the logs to filter out valuable data. Then the target data and target system event information are reported to the server.

[0042] Before reporting, the target data and target system event information are preprocessed, including character set conversion, dictionary data parsing, and data conversion to JSON string format. The preprocessing step not only improves the readability of the data, but also makes it easier to integrate with various data analysis tools, facilitating subsequent data mining and analysis.

[0043] The collected data is reported to the server. According to the preset rules, it can be reported regularly or automatically after a certain amount of data is reached, ensuring the timeliness and integrity of the data. At the same time, the data transmission process adopts encryption to ensure the security of the data.

[0044] An embodiment of a method for collecting data without embedding points for a set-top box is described in detail above. Based on the method for collecting data without embedding points for a set-top box described in the above embodiment, an embodiment of the present invention also provides a device for collecting data without embedding points for a set-top box corresponding to the method.

[0045] Figure 2 1 is a schematic block diagram of a set-top box non-embedded point data collection device according to an embodiment of the present invention. The set-top box non-embedded point data collection device 200 can be divided into multiple functional modules according to the functions it performs, such as Figure 2 The functional modules may include: tool deployment module 210, parameter configuration module 220, data acquisition execution module 230, and data processing reporting module 240. The module referred to in the present invention refers to a series of computer program segments that can be executed by at least one processor and can complete fixed functions, which are stored in a memory.

[0046] Tool deployment module 210: deploys log collectors and broadcast monitoring tools.

[0047] Parameter configuration module 220: configures the working parameters of the log collector and the broadcast monitoring tool.

[0048] The data collection execution module 230 executes the log collector to collect target logs and executes the broadcast monitoring tool to monitor target system events.

[0049] Data processing and reporting module 240: collects target data from the target log, and reports the target data and target system event information to the server.

[0050] The operation and maintenance device based on time series data trend prediction of this embodiment is used to implement the aforementioned operation and maintenance method based on time series data trend prediction. Therefore, the specific implementation method of the device can be seen in the embodiment part of the operation and maintenance method based on time series data trend prediction in the previous text. Therefore, its specific implementation method can refer to the description of the corresponding embodiments of each part, which will not be introduced in detail here.

[0051] In addition, since the operation and maintenance device based on time series data trend prediction of this embodiment is used to implement the aforementioned operation and maintenance method based on time series data trend prediction, its function corresponds to that of the aforementioned method and will not be repeated here.

[0052] Figure 3 A schematic diagram of the structure of a terminal 300 provided in an embodiment of the present invention includes: a processor 310, a memory 320 and a communication unit 330. The processor 310 is used to implement the following steps when implementing the set-top box non-embedded data collection program stored in the memory 320: Deploy log collectors and broadcast monitoring tools; Configure the working parameters of the log collector and broadcast monitoring tool; Execute the log collector to collect target logs and execute the broadcast monitoring tool to monitor target system events; Collect target data from target logs and report target data and target system event information to the server. The terminal 300 includes a processor 310, a memory 320 and a communication unit 330. These components communicate via one or more buses. It can be understood by those skilled in the art that the structure of the server shown in the figure does not constitute a limitation of the present invention, and it can be a bus structure or a star structure, and can also include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0053] The memory 320 can be used to store the execution instructions of the processor 310, and the memory 320 can be implemented by any type of volatile or non-volatile storage terminal or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. When the execution instructions in the memory 320 are executed by the processor 310, the terminal 300 can perform some or all of the steps in the following method embodiments.

[0054] The processor 310 is the control center of the storage terminal, and uses various interfaces and lines to connect various parts of the entire electronic terminal. It runs or executes software programs and / or modules stored in the memory 320, and calls data stored in the memory to perform various functions of the electronic terminal and / or process data. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of multiple packaged ICs with the same or different functions. For example, the processor 310 can only include a central processing unit (CPU). In the embodiment of the present invention, the CPU can be a single computing core or multiple computing cores.

[0055] The communication unit 330 is used to establish a communication channel so that the storage terminal can communicate with other terminals, receive user data sent by other terminals or send user data to other terminals.

[0056] The present invention also provides a computer storage medium, wherein the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).

[0057] The computer storage medium stores a set-top box non-embedded point data collection program, and when the set-top box non-embedded point data collection program is executed by the processor, the following steps are implemented: Deploy log collectors and broadcast monitoring tools; Configure the working parameters of the log collector and broadcast monitoring tool; Execute the log collector to collect target logs and execute the broadcast monitoring tool to monitor target system events; Collect target data from target logs and report target data and target system event information to the server. Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention, in essence or in other words, the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes, including several instructions for enabling a computer terminal (which can be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the methods described in each embodiment of the present invention.

[0058] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0059] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0060] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0061] The above disclosure is only a preferred embodiment of the present invention, but the present invention is not limited thereto. Any non-creative changes that can be thought of by a person skilled in the art, as well as several improvements and modifications made without departing from the principle of the present invention, should fall within the protection scope of the present invention.

Claims

1. A method for collecting data without embedding points of a set-top box, characterized in that: The following steps are involved: Deploy log collectors and broadcast monitoring tools; Configure the working parameters of the log collector and broadcast monitoring tool; Execute the log collector to collect target logs and execute the broadcast monitoring tool to monitor target system events; Collect target data from target logs and report target data and target system event information to the server.

2. The method for collecting data from a set-top box without embedding points according to claim 1, characterized in that: Configure the working parameters of the log collector and broadcast monitoring tool, including: Log in to the data collection platform and enter the data collection management interface; In the data collection management interface, click the Log Collection tab to obtain the log collector working parameter configuration interface; Enter the log collector working parameters in the log collector working parameter configuration interface; Click the Broadcast Monitoring tab in the Data Collection Management interface to obtain the Broadcast Monitoring Tool working parameter configuration interface; Enter the broadcast monitoring tool working parameters in the broadcast monitoring tool working parameter configuration interface.

3. The method for collecting data from a set-top box without embedding points according to claim 2, characterized in that: The log collector working parameters include the application ID, log type and regular expression to be monitored; The working parameters of the broadcast monitoring tool include the system event identifier that needs to be monitored.

4. The method for collecting data from a set-top box without embedding points according to claim 3, characterized in that: Collect target data from target logs, including: Collect target data from target logs based on pre-configured regular expressions.

5. The method for collecting data from a set-top box without embedding points according to any one of claims 1 to 4, characterized in that: Before reporting the target data and the target system event information to the server, the method also includes a step of pre-processing the target data and the target system event information.

6. The method for collecting data from a set-top box without embedding points according to claim 5, characterized in that: The preprocessing steps specifically include: character set conversion operation, dictionary data parsing operation and data conversion into JSON string format operation.

7. The method for collecting data from a set-top box without embedding points according to any one of claims 1 to 4, characterized in that: Report target data and target system event information to the server, including: Configure data reporting rules and rule parameters; reporting rules include timed reporting and reporting when the data volume reaches a threshold; Report target data and target system event information to the server according to the configured reporting rules and rule parameters.

8. A data collection device for a set-top box without embedding points, characterized in that: include, Tool deployment module: deploy log collector and broadcast monitoring tools; Parameter configuration module: configure the working parameters of the log collector and broadcast monitoring tool; Data collection execution module: executes the log collector to collect target logs and executes the broadcast monitoring tool to monitor target system events; Data processing and reporting module: collects target data from the target log and reports the target data and target system event information to the server.

9. A terminal, characterized in that: include: A memory, used for storing a data collection program without embedding points in a set-top box; A processor is used to implement the steps of the set-top box non-embedded data collection method as described in any one of claims 1-7 when executing the set-top box non-embedded data collection program.

10. A computer-readable storage medium, characterized in that: The readable storage medium stores a set-top box non-embedded data collection program, and when the set-top box non-embedded data collection program is executed by the processor, the steps of the set-top box non-embedded data collection method as described in any one of claims 1-7 are implemented.