Information collection method, device, equipment and storage medium
By acquiring pending tasks and idle devices, sending configuration instructions and collecting information based on configuration information, the template configuration method is used to improve information collection efficiency, and solve the problem of low information collection efficiency in group control mobile phone collection technology.
Patent Information
- Application Number
- CN202210720252.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-23
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2042-06-23
AI Technical Summary
The lack of a unified solution in group control mobile phone collection technology solves the problem of low information collection efficiency in all apps.
By acquiring pending tasks and idle devices, sending configuration instructions to make the device execute configuration content, and collecting information based on the feedback configuration information, and improving information collection efficiency using template configuration methods.
It has achieved the improvement of information collection efficiency, solved the problem of general configuration operation group control mobile phones, and improved development efficiency.
Smart Images

Figure CN115118598B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information processing technology, and in particular to an information collection method, device, equipment and storage medium. Background Art
[0002] The group control mobile phone data collection technology is now relatively mature, but there is still no unified solution to solve the information collection problem of all apps, and there is a problem of low information collection efficiency. Summary of the invention
[0003] The main purpose of the present invention is to propose an information collection method, device, equipment and storage medium, aiming to solve the technical problem of how to improve the efficiency of information collection.
[0004] To achieve the above object, an embodiment of the present invention provides an information collection method, the information collection method comprising:
[0005] Get pending tasks and idle devices;
[0006] Sending a configuration instruction to the idle device according to the task to be processed, so that the idle device executes the configuration content according to the configuration instruction and feeds back the configuration information;
[0007] Information collection is performed according to the configuration information.
[0008] Optionally, collecting information according to the configuration information includes:
[0009] Generate a collection operation instruction according to the configuration information and the preset operation mapping;
[0010] Information collection is performed based on the collection operation instruction and the target terminal device.
[0011] Optionally, generating a collection operation instruction according to the configuration information and a preset operation mapping includes:
[0012] Determine the control strategy and cycle parameter information according to the configuration information;
[0013] Determining an operation logic according to the control strategy, the cycle parameter information, and a preset operation mapping;
[0014] Generate a collection operation instruction according to the operation logic.
[0015] Optionally, determining the operation logic according to the control strategy, the cycle parameter information and a preset operation mapping includes:
[0016] Determine a target operation action according to the control strategy and a preset operation mapping;
[0017] An operation logic is determined according to the target operation action and the cycle parameter information.
[0018] Optionally, the preset operation mapping includes a correspondence between the to-be-selected control strategies and the to-be-selected operation actions;
[0019] The determining of the target operation action according to the control strategy and the preset operation mapping includes:
[0020] Matching the control strategy with a candidate control strategy in the preset operation map;
[0021] According to the matching result, the candidate operation action corresponding to the candidate control strategy matching the control strategy is used as the target operation action.
[0022] Optionally, the collecting information based on the collection operation instruction and the target terminal device includes:
[0023] Sending the acquisition operation instruction to the target terminal device so that the target terminal device executes the operation logic according to the acquisition operation instruction;
[0024] Collect target information generated by the target terminal device executing the operation logic.
[0025] Optionally, before collecting information based on the collection operation instruction and the target terminal device, the method further includes:
[0026] Get the candidate terminal devices that are currently online;
[0027] Performing an activity detection operation on the candidate terminal device;
[0028] The candidate terminal devices that failed to be detected are taken offline, and the candidate terminal devices that successfully detected are brought online;
[0029] The candidate terminal devices in the online state are taken as the target terminal devices.
[0030] Optionally, the activity detection operation includes an unlocking activity detection operation and a waking up activity detection operation;
[0031] The performing an activity detection operation on the candidate terminal device includes:
[0032] An unlocking and activation detection operation is performed on the screen of the candidate terminal device, and an waking and activation detection operation is performed on the candidate terminal device.
[0033] Optionally, after performing an unlocking and activation detection operation on the screen of the candidate terminal device and performing an waking and activation detection operation on the candidate terminal device, the method further includes:
[0034] If the candidate terminal device can complete the unlocking and waking up operations, it is determined that the detection of the candidate terminal device is successful.
[0035] If the candidate terminal device cannot complete the unlocking detection operation and the waking detection operation, it is determined that the detection of the candidate terminal device has failed.
[0036] Optionally, obtaining the candidate terminal device currently in an online state includes:
[0037] Obtain a candidate terminal device connected to the target host;
[0038] Performing connection verification on the selected terminal device;
[0039] The candidate terminal device that has passed the connection verification is used as the candidate terminal device that is currently online.
[0040] Optionally, sending a configuration instruction to the idle device according to the task to be processed, so that the idle device executes configuration content according to the configuration instruction and feeds back configuration information, includes:
[0041] Determine configuration requirements according to the tasks to be processed;
[0042] Generate configuration instructions according to the configuration requirements;
[0043] The configuration instruction is sent to the idle device, so that the idle device executes the configuration content in the preset configuration template according to the configuration instruction and feeds back the configuration information.
[0044] In addition, to achieve the above purpose, an embodiment of the present invention further provides an information collection device, the information collection device comprising:
[0045] An information acquisition module is used to obtain pending tasks and idle devices;
[0046] An information configuration module, used to send a configuration instruction to the idle device according to the task to be processed, so that the idle device executes the configuration content according to the configuration instruction and feeds back the configuration information;
[0047] An information collection module is used to collect information according to the configuration information.
[0048] Optionally, the information collection module is further used to generate a collection operation instruction according to the configuration information and a preset operation mapping; and perform information collection based on the collection operation instruction and the target terminal device.
[0049] Optionally, the information acquisition module is further used to determine the control strategy and cycle parameter information according to the configuration information; determine the operation logic according to the control strategy, the cycle parameter information and a preset operation mapping; and generate an acquisition operation instruction according to the operation logic.
[0050] Optionally, the information acquisition module is further used to determine a target operation action according to the control strategy and a preset operation mapping; and determine an operation logic according to the target operation action and the cycle parameter information.
[0051] Optionally, the preset operation mapping includes a correspondence between a candidate control strategy and a candidate operation action; the information acquisition module is further used to match the control strategy with the candidate control strategy in the preset operation mapping; and according to the matching result, the candidate operation action corresponding to the candidate control strategy that matches the control strategy is used as the target operation action.
[0052] Optionally, the information collection module is further used to send the collection operation instruction to the target terminal device, so that the target terminal device executes the operation logic according to the collection operation instruction; and collect the target information generated by the target terminal device executing the operation logic.
[0053] Optionally, the information collection device further includes:
[0054] The device activity detection module is used to obtain candidate terminal devices that are currently online; perform activity detection operations on the candidate terminal devices; offline operations are performed on candidate terminal devices that fail to detect activity, and online operations are performed on candidate terminal devices that succeed in detecting activity; and candidate terminal devices that are online are used as target terminal devices.
[0055] In addition, to achieve the above-mentioned purpose, an embodiment of the present invention also proposes an information collection device, which includes: a memory, a processor, and an information collection program stored in the memory and executable on the processor, and when the information collection program is executed by the processor, the information collection method described above is implemented.
[0056] In addition, to achieve the above purpose, an embodiment of the present invention further proposes a storage medium, on which an information collection program is stored, and when the information collection program is executed by a processor, the above-mentioned information collection method is implemented.
[0057] In the information collection method proposed in the embodiment of the present invention, the tasks to be processed and the idle devices are obtained; configuration instructions are sent to the idle devices according to the tasks to be processed, so that the idle devices execute the configuration content according to the configuration instructions and feedback the configuration information; and information collection is performed according to the configuration information. Thus, the information collection function can be realized by using the template configuration method, which improves the efficiency of information collection. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 It is a schematic diagram of the structure of an information collection device in a hardware operating environment involved in an embodiment of the present invention;
[0059] Figure 2 This is a flow chart of the first embodiment of the information collection method of the present invention;
[0060] Figure 3 This is a schematic diagram of the architecture of an information collection system according to an embodiment of the information collection method of the present invention;
[0061] Figure 4 This is a flow chart of a second embodiment of the information collection method of the present invention;
[0062] Figure 5 A schematic diagram of template configuration of an embodiment of an information collection method of the present invention;
[0063] Figure 6 This is a flow chart of a third embodiment of the information collection method of the present invention;
[0064] Figure 7 This is a schematic diagram of the functional modules of the first embodiment of the information collection device of the present invention.
[0065] The realization of the purpose, functional features and advantages of the embodiments of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0066] It should be understood that the specific embodiments described herein are only used to explain the embodiments of the present invention, and are not used to limit the embodiments of the present invention.
[0067] Reference Figure 1 , Figure 1 The present invention is a schematic diagram of the structure of an information collection device for a hardware operating environment according to an embodiment of the present invention.
[0068] like Figure 1As shown, the information collection device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a button, and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a Wi-Fi interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM), or a stable memory (non-volatile memory), such as a disk storage. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0069] Those skilled in the art will understand that Figure 1 The device structure shown in the figure does not constitute a limitation on the information collection device, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.
[0070] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module and an information collection program.
[0071] exist Figure 1 In the information collection device shown, the network interface 1004 is mainly used to connect to the external network and communicate data with other network devices; the user interface 1003 is mainly used to connect to the user device and communicate data with the user device; the device of the embodiment of the present invention calls the information collection program stored in the memory 1005 through the processor 1001, and executes the information collection method provided by the embodiment of the present invention.
[0072] Based on the above hardware structure, an embodiment of the information collection method of the present invention is proposed.
[0073] Reference Figure 2 , Figure 2 It is a flowchart of the first embodiment of the information collection method of the present invention.
[0074] In a first embodiment, the information collection method includes:
[0075] Step S10, obtaining tasks to be processed and idle devices.
[0076] It should be noted that the executor of this embodiment may be an information collection device, which may be a computer device with data processing functions, or other devices that can achieve the same or similar functions. This embodiment does not limit this. In this embodiment, the information collection device is taken as a computer device for example.
[0077] It should be noted that the idle devices and target terminal devices in this embodiment may include but are not limited to mobile phones, tablets, computers, smart wearable devices and other types of devices, and this embodiment does not limit this. Among them, the idle device can be a device used for template configuration, and the target terminal device can be a device connected to the host and needs to collect information. In this embodiment, the target terminal device is taken as an example of a mobile phone.
[0078] It should be understood that the group control mobile phone collection technology is relatively mature, but there is still no unified solution to solve the information collection problem of all apps, and there is a problem of low information collection efficiency. Therefore, in order to improve the efficiency of information collection and thus improve the development efficiency, this solution and the corresponding information collection system are proposed to solve the problem of general configuration operation of group control mobile phones.
[0079] It is understandable that Figure 3 As shown, Figure 3 This is a schematic diagram of the architecture of the information collection system. The information collection system may include but is not limited to a scheduling module, a mobile phone group control module, a general configuration module, and a master-slave distribution architecture, etc. It contains a variety of currently leading general technologies and collection technologies, which are not limited in this embodiment.
[0080] It should be noted that the scheduling module in the system may include multiple schedulers; the general configuration module may include a general configuration platform, based on which the scheduler configuration (scheduler config) and the mobile phone configuration (phone config) may be performed; and in the system, a master may be set up to connect to the scheduling module, and the master may also be connected to multiple followers, each of which may also be connected to a corresponding mobile phone, thereby performing mobile phone group control through the above-mentioned master-slave distribution architecture.
[0081] It is understandable that before collecting information, the scheduling program and mobile phone configuration can be performed through the general configuration platform. After the configuration is completed, the scheduling module sends the configuration information to the host, which is then forwarded by the host to the slave, and finally sent to the mobile phones that are online to collect information from these mobile phones.
[0082] It should be noted that since different tasks require different information to be collected, in order to improve the efficiency of information collection while ensuring the accuracy of information collection, idle devices can also be configured according to the tasks to be processed to obtain configuration information, and then information collection is performed based on the configuration information.
[0083] It should be understood that multiple devices with template configuration functions can be connected to the general configuration platform. However, since some devices may be in the process of template configuration or other operations, if these devices are selected for this template configuration, the processing efficiency of the devices may be affected and processing failures may occur. Therefore, in order to achieve a better template configuration effect, space devices can be screened out and template configuration can be performed through idle devices.
[0084] In a specific implementation, multiple devices with template configuration functions connected to a general configuration platform may be detected first, and then status detection instructions may be sent to these devices respectively, so that these devices can feedback current status information according to the status detection instructions, and then the current status information fed back by the devices may be used to determine whether the devices are in an idle state, and the devices in an idle state may be regarded as idle devices. In addition to this, idle devices may also be determined by other methods, which are not limited in this embodiment.
[0085] Step S20: sending a configuration instruction to the idle device according to the task to be processed, so that the idle device executes the configuration content according to the configuration instruction and feeds back the configuration information.
[0086] It can be understood that after determining the pending tasks and idle devices, the configuration requirements can be determined based on the pending tasks, and then configuration instructions can be generated based on the configuration requirements. The configuration instructions can be sent to the idle devices, and the idle devices can execute the configuration content in the preset configuration template according to the configuration instructions, and feedback the configuration information after the configuration is completed.
[0087] It should be understood that this solution proposes a complete interpretation system for custom protocols. Through this system, you can completely break away from the code level and complete the information collection work of complex scenarios by implementing page operations. Through the above method, you can use the template configuration method to implement the collection function, implement a general system for interpreting the configuration template at the bottom layer, and the system is built in a distributed task system, providing integrated modules such as task management, monitoring, and alarm.
[0088] Step S30: collecting information according to the configuration information.
[0089] It should be understood that after obtaining the configuration information, a collection operation instruction may be generated according to the configuration information and a preset operation mapping, and then information collection may be performed based on the collection operation instruction and the target terminal device.
[0090] It is understandable that the control strategy and loop parameter information can be determined based on the configuration information, the target operation action can be determined based on the control strategy and the preset operation mapping, and then the operation logic can be determined based on the target operation action and the loop parameter information, and then the acquisition operation instructions can be generated based on the operation logic. This embodiment does not limit this.
[0091] In a specific implementation, the program can first discover tasks and idle devices at a scheduled time, and send instructions to the idle devices to execute configuration content. The server reads the configuration information and interprets it, and generates collection operation instructions based on the preset operation mapping and the interpreted configuration information, so that the mobile phone executes the operation logic according to the collection operation instructions and the configuration information interpreted by the program, and feeds back the target information, thereby achieving the effect of information collection.
[0092] Furthermore, since multiple mobile phones may be connected in the master-slave distribution architecture of this solution, but these mobile phones may not all be online, that is, some mobile phones may have been disconnected or turned off due to some special circumstances, and sending collection operation instructions to the above-mentioned mobile phones that are not online obviously cannot achieve information collection, which not only wastes processing resources, but also delays processing time and reduces the efficiency of information collection. Therefore, in response to the above problems, this solution can also first perform connection detection and liveness detection on the mobile phone, and then automatically log the mobile phone online and offline, and use the mobile phone in the online state as the target terminal device, and then send collection operation instructions to the target terminal device to collect information, which can further improve the efficiency of information collection.
[0093] In the specific implementation, advertising app media supervision can be applied to the framework and system of this solution, and a unified template-based process is provided for various current app development configuration operations. Therefore, this solution can add a unified template to increase information collection efficiency and development efficiency, and through a platform-based approach, it can also flexibly perform horizontal expansion and dynamic scaling.
[0094] In this embodiment, the tasks to be processed and the idle devices are obtained; configuration instructions are sent to the idle devices according to the tasks to be processed, so that the idle devices execute the configuration content according to the configuration instructions and feedback the configuration information; information collection is performed according to the configuration information. Thus, the information collection function can be realized by using the template configuration method, which improves the efficiency of information collection.
[0095] In one embodiment, if Figure 4 As shown, a second embodiment of the information collection method of the present invention is proposed based on the first embodiment, and the step S20 includes:
[0096] Step S201, determining configuration requirements according to the task to be processed.
[0097] It should be noted that, since different tasks require different information to be collected, it is necessary to determine the corresponding configuration requirements based on the task information of different tasks, so as to achieve a better template configuration effect. Therefore, after determining the current pending tasks, the pending tasks can be analyzed to determine the configuration requirements corresponding to the pending tasks.
[0098] It should be understood that the configuration requirements in this embodiment may include, but are not limited to, control strategies and number of cycles, and may also include other requirements, which are not limited in this embodiment.
[0099] Step S202: Generate configuration instructions according to the configuration requirements.
[0100] It should be understood that after determining the configuration requirements corresponding to the tasks to be processed, configuration instructions may be generated according to the configuration requirements, and the template configuration may be performed by sending the configuration instructions to the idle devices so that the idle devices execute the configuration contents.
[0101] Step S203: Send the configuration instruction to the idle device, so that the idle device executes the configuration content in the preset configuration template according to the configuration instruction and feeds back the configuration information.
[0102] It can be understood that a configuration template can be pre-set to facilitate users to fill in information or select information. After the configuration instruction is sent to the idle device, the idle device can execute the configuration content corresponding to the configuration instruction in the preset configuration template according to the configuration instruction and display the corresponding configuration page. The configuration personnel then perform template configuration based on the configuration page and configuration content displayed on the idle device. After the configuration is completed, the configuration information is obtained and fed back to the platform server.
[0103] It should be noted that Figure 5 As shown, Figure 5 This is a schematic diagram of the template configuration. This solution proposes a complete interpretation system for custom protocols. Through this system, we can completely break away from the code level and implement page operations to complete information collection work in complex scenarios.
[0104] You can refer to Figure 5 The template configuration diagram shown in the figure is Figure 5 In the page configuration, you can form the custom configuration in json format, as follows:
[0105]
[0106]
[0107]
[0108]
[0109] In the above structure, different identifiers can represent different meanings, and judgment logic, loop logic and mobile phone operation logic can be implemented. These logics can be combined to achieve efficient group control mobile phone information collection. Using this method, we use the template configuration method to implement the collection function. The bottom layer implements a general system for interpreting configuration templates, and the system is built in a distributed task system, providing integrated modules such as task management, monitoring, and alarm.
[0110] In this embodiment, the configuration requirement is determined according to the task to be processed; the configuration instruction is generated according to the configuration requirement; the configuration instruction is sent to the idle device, so that the idle device executes the configuration content in the preset configuration template according to the configuration instruction and feeds back the configuration information. Thus, after the configuration instruction is generated according to the configuration requirement, the configuration instruction is sent to the idle device for template configuration, which improves the efficiency of template configuration and further improves the efficiency of information collection.
[0111] In one embodiment, if Figure 6 As shown, a third embodiment of the information collection method of the present invention is proposed based on the first embodiment or the second embodiment. In this embodiment, the first embodiment is used for description. Step S30 includes:
[0112] Step S301: Generate a collection operation instruction according to the configuration information and a preset operation mapping.
[0113] It should be noted that some candidate control strategies and candidate operation actions can be configured in advance according to the needs of information collection, and each candidate control strategy and candidate operation action can have a corresponding relationship. For example, the candidate control strategy and the candidate operation action can be made to correspond one to one. This embodiment does not limit this.
[0114] It is understandable that, in order to facilitate data search and data call, a preset operation mapping can be constructed according to the selected control strategy, the selected operation action and the corresponding relationship between them, wherein the preset operation mapping can be saved in the form of a table or other forms, which is not limited in this embodiment. In a specific implementation, the preset operation mapping table is taken as an example for explanation, for example, the preset operation mapping table can be shown in Table 1:
[0115] Table 1 Preset operation mapping table
[0116] Candidate control strategy Actions to be selected swipe slide screen_shot screenshot click Click scroll_screen_shot Scrolling screenshot next_operate Next operation (back)
[0117] It is understandable that each of the above operation mappings can be encapsulated by a program. In this way, you do not need to pay attention to the underlying program, but only need to understand its meaning to complete the configuration collection operation, which reduces the difficulty of the configuration collection operation and makes it more convenient to perform the configuration collection operation.
[0118] It should be understood that the control strategy and loop parameter information and other information can be determined according to the configuration information, and then the target operation action matching the control strategy can be determined according to the control strategy and the preset operation mapping, and then the operation logic can be determined according to the target operation action and the loop parameter information, and then the acquisition operation instruction can be generated according to the operation logic. Among them, the loop parameter information in this embodiment can include but is not limited to the number of cycles, and this embodiment does not limit this.
[0119] It is understandable that in order to more accurately determine the target operation action, the control strategy can be matched with the candidate control strategy in the preset operation mapping, and the candidate control strategy that matches the control strategy is used as the target control strategy according to the matching result, and the candidate operation action corresponding to the target control strategy is used as the target operation action. In a specific implementation, for example, assuming that the control strategy is click, the corresponding target operation action can be matched as single click.
[0120] Step S302: collect information based on the collection operation instruction and the target terminal device.
[0121] It should be understood that after obtaining the collection operation instruction in the above manner, the collection operation instruction can be sent to the target terminal device so that the target terminal device executes the corresponding operation logic according to the collection operation instruction, and then the target information generated by the target terminal device executing the operation logic can be collected, thereby realizing information collection.
[0122] It can be understood that since the present solution can be used in mobile phone group control scenarios, there can be multiple target terminal devices. Therefore, when there are multiple target terminal devices, collection operation instructions can be sent to these target terminal devices at the same time, so that these target terminal devices can execute the corresponding operation logic according to the collection operation instructions at the same time, thereby simultaneously collecting the target information generated by the execution of the operation logic by these target terminal devices. This embodiment does not impose any restrictions on this.
[0123] In a specific implementation, the task execution process of this embodiment can be described as follows: First, the program discovers tasks and idle devices at regular intervals, sends instructions to idle devices to execute configuration content according to the tasks, and the server reads the configuration information of the configuration data structure as described above, interprets the configuration information, determines the operation logic according to the operation mapping and the interpreted configuration information, and generates corresponding acquisition operation instructions, so that the mobile phone executes the operation logic according to the configuration information interpreted by the program according to the acquisition operation instructions. Among them, the configuration information in this embodiment may include but is not limited to control strategies and loop parameter information. According to the definition, the array in the configuration represents loop execution, and json represents single execution content. This embodiment does not limit this.
[0124] Furthermore, in order to avoid wasting processing resources and prolonging processing time, the candidate terminal devices connected to the target host can also be obtained, and connection verification can be performed on these candidate terminal devices, and the candidate terminal devices that pass the connection verification can be used as candidate terminal devices that are currently online. The connection verification can be performed by using the use connect connection method, or by other methods, which is not limited in this embodiment. The target host in this embodiment can include but is not limited to a computer terminal, which is not limited in this embodiment.
[0125] It can be understood that the candidate terminal devices that are currently online can be obtained, and activation operations can be performed on the candidate terminal devices, the candidate terminal devices that failed to be activated can be taken offline, and the candidate terminal devices that successfully were activated can be brought online, and then the candidate terminal devices that are online can be used as target terminal devices, and information collection operations can be performed based on the target terminal devices.
[0126] It should be understood that in order to improve the accuracy of live detection, two live detection operations are used in this embodiment, and the live detection operation in this embodiment may include an unlock live detection operation and a wake-up live detection operation. In a specific implementation, the screen of the candidate terminal device may be unlocked and the live detection operation may be performed first, and then the candidate terminal device may be woken up and operated, and this embodiment does not limit this.
[0127] It is understandable that if the candidate terminal device can complete the above two detection operations at the same time, the detection can be determined to be successful, otherwise the detection fails. That is, if the candidate terminal device can complete the unlock detection operation and the wake-up detection operation, the detection of the candidate terminal device is determined to be successful; if the candidate terminal device cannot complete the unlock detection operation and the wake-up detection operation, the detection of the candidate terminal device is determined to be unsuccessful.
[0128] It should be understood that this solution, through the self-developed master-slave architecture, completes mobile phone operations through uiautomator2, realizes functions such as group control of mobile phones, and includes mobile phone detection, automatic online and offline of mobile phones, program installation and uninstallation of apps, etc. This embodiment does not limit this.
[0129] It is understandable that the specific operation methods of the activity detection function and the automatic online and offline function of the mobile phone in this embodiment can be as follows:
[0130] Activity detection function: The program will periodically pull the mobile devices connected to the computer. Each time it is executed, it will first perform the useconnect connection, and then perform the activity detection operation on the online devices. There are two operations in total for activity detection. First, unlock the phone screen, and then perform the wakeup operation. The above two steps complete the activity detection behavior. Mobile devices that cannot complete the above two operations are considered abnormal devices and are offline.
[0131] The mobile phone automatically goes online and offline: When online, the mobile phone is plugged into the computer, adb devices will detect the access of a new device. When the detection function is operated regularly, it is found that this device is not in the online devices, and then the detection process is performed, and finally the mobile phone is online; when offline, the detection function is operated regularly, and it is found that the online mobile phone is no longer in adb devices, the device is identified as a lost device, and the offline operation is performed to delete it from the cache.
[0132] In this embodiment, a collection operation instruction is generated according to the configuration information and the preset operation mapping, and information collection is performed based on the collection operation instruction and the target terminal device. Thus, the template configuration can be performed first, and then the collection operation instruction is generated according to the configuration information combined with the preset operation mapping to collect information from the target terminal device, thereby improving development efficiency.
[0133] In addition, an embodiment of the present invention further provides a storage medium, on which an information collection program is stored. When the information collection program is executed by a processor, the steps of the information collection method described above are implemented.
[0134] Since the storage medium adopts all the technical solutions of all the above embodiments, it has at least all the beneficial effects brought by the technical solutions of the above embodiments, which will not be described one by one here.
[0135] In addition, refer to Figure 7 The embodiment of the present invention further provides an information collection device, the information collection device comprising:
[0136] The information acquisition module 10 is used to acquire tasks to be processed and idle devices.
[0137] It should be noted that the idle devices and target terminal devices in this embodiment may include but are not limited to mobile phones, tablets, computers, smart wearable devices and other types of devices, and this embodiment does not limit this. Among them, the idle device can be a device used for template configuration, and the target terminal device can be a device connected to the host and needs to collect information. In this embodiment, the target terminal device is taken as an example of a mobile phone.
[0138] It should be understood that the group control mobile phone collection technology is relatively mature, but there is still no unified solution to solve the information collection problem of all apps, and there is a problem of low information collection efficiency. Therefore, in order to improve the efficiency of information collection and thus improve the development efficiency, this solution and the corresponding information collection system are proposed to solve the problem of general configuration operation of group control mobile phones.
[0139] It is understandable that Figure 3 As shown, Figure 3 This is a schematic diagram of the architecture of the information collection system. The information collection system may include but is not limited to a scheduling module, a mobile phone group control module, a general configuration module, and a master-slave distribution architecture, etc. It contains a variety of currently leading general technologies and collection technologies, which are not limited in this embodiment.
[0140] It should be noted that the scheduling module in the system may include multiple schedulers; the general configuration module may include a general configuration platform, based on which the scheduler configuration (scheduler config) and the mobile phone configuration (phone config) may be performed; and in the system, a master may be set up to connect to the scheduling module, and the master may also be connected to multiple followers, each of which may also be connected to a corresponding mobile phone, thereby performing mobile phone group control through the above-mentioned master-slave distribution architecture.
[0141] It is understandable that before collecting information, the scheduling program and mobile phone configuration can be performed through the general configuration platform. After the configuration is completed, the scheduling module sends the configuration information to the host, which is then forwarded by the host to the slave, and finally sent to the mobile phones that are online to collect information from these mobile phones.
[0142] It should be noted that since different tasks require different information to be collected, in order to improve the efficiency of information collection while ensuring the accuracy of information collection, idle devices can also be configured according to the tasks to be processed to obtain configuration information, and then information collection is performed based on the configuration information.
[0143] It should be understood that multiple devices with template configuration functions can be connected to the general configuration platform. However, since some devices may be in the process of template configuration or other operations, if these devices are selected for this template configuration, the processing efficiency of the devices may be affected and processing failures may occur. Therefore, in order to achieve a better template configuration effect, space devices can be screened out and template configuration can be performed through idle devices.
[0144] In a specific implementation, multiple devices with template configuration functions connected to a general configuration platform may be detected first, and then status detection instructions may be sent to these devices respectively, so that these devices can feedback current status information according to the status detection instructions, and then the current status information fed back by the devices may be used to determine whether the devices are in an idle state, and the devices in an idle state may be regarded as idle devices. In addition to this, idle devices may also be determined by other methods, which are not limited in this embodiment.
[0145] The information configuration module 20 is used to send a configuration instruction to the idle device according to the task to be processed, so that the idle device executes the configuration content according to the configuration instruction and feeds back the configuration information.
[0146] It can be understood that after determining the pending tasks and idle devices, the configuration requirements can be determined based on the pending tasks, and then configuration instructions can be generated based on the configuration requirements. The configuration instructions can be sent to the idle devices, and the idle devices can execute the configuration content in the preset configuration template according to the configuration instructions, and feedback the configuration information after the configuration is completed.
[0147] It should be understood that this solution proposes a complete interpretation system for custom protocols. Through this system, you can completely break away from the code level and complete the information collection work of complex scenarios by implementing page operations. Through the above method, you can use the template configuration method to implement the collection function, implement a general system for interpreting the configuration template at the bottom layer, and the system is built in a distributed task system, providing integrated modules such as task management, monitoring, and alarm.
[0148] The information collection module 30 is used to collect information according to the configuration information.
[0149] It should be understood that after obtaining the configuration information, a collection operation instruction may be generated according to the configuration information and a preset operation mapping, and then information collection may be performed based on the collection operation instruction and the target terminal device.
[0150] It is understandable that the control strategy and loop parameter information can be determined based on the configuration information, the target operation action can be determined based on the control strategy and the preset operation mapping, and then the operation logic can be determined based on the target operation action and the loop parameter information, and then the acquisition operation instructions can be generated based on the operation logic. This embodiment does not limit this.
[0151] In a specific implementation, the program can first discover tasks and idle devices at a scheduled time, and send instructions to the idle devices to execute configuration content. The server reads the configuration information and interprets it, and generates collection operation instructions based on the preset operation mapping and the interpreted configuration information, so that the mobile phone executes the operation logic according to the collection operation instructions and the configuration information interpreted by the program, and feeds back the target information, thereby achieving the effect of information collection.
[0152] Furthermore, since multiple mobile phones may be connected in the master-slave distribution architecture of this solution, but these mobile phones may not all be online, that is, some mobile phones may have been disconnected or turned off due to some special circumstances, and sending collection operation instructions to the above-mentioned mobile phones that are not online obviously cannot achieve information collection, which not only wastes processing resources, but also delays processing time and reduces the efficiency of information collection. Therefore, in response to the above problems, this solution can also first perform connection detection and liveness detection on the mobile phone, and then automatically log the mobile phone online and offline, and use the mobile phone in the online state as the target terminal device, and then send collection operation instructions to the target terminal device to collect information, which can further improve the efficiency of information collection.
[0153] In the specific implementation, advertising app media supervision can be applied to the framework and system of this solution, and a unified template-based process is provided for various current app development configuration operations. Therefore, this solution can add a unified template to increase information collection efficiency and development efficiency, and through a platform-based approach, it can also flexibly perform horizontal expansion and dynamic scaling.
[0154] In this embodiment, the tasks to be processed and the idle devices are obtained; configuration instructions are sent to the idle devices according to the tasks to be processed, so that the idle devices execute the configuration content according to the configuration instructions and feedback the configuration information; information collection is performed according to the configuration information. Thus, the information collection function can be realized by using the template configuration method, which improves the efficiency of information collection.
[0155] In one embodiment, the activity detection operation includes an unlocking activity detection operation and a waking up activity detection operation; the device activity detection module is further used to unlock the screen of the candidate terminal device and perform a waking up activity detection operation on the candidate terminal device.
[0156] In one embodiment, the device activity detection module is also used to determine that the activity detection for the candidate terminal device is successful if the candidate terminal device can complete the unlocking activity detection operation and the wake-up activity detection operation; if the candidate terminal device cannot complete the unlocking activity detection operation and the wake-up activity detection operation, then determine that the activity detection for the candidate terminal device has failed.
[0157] In one embodiment, the device activity detection module is further used to obtain a candidate terminal device connected to the target host; perform connection verification on the candidate terminal device; and use the candidate terminal device that passes the connection verification as a candidate terminal device that is currently online.
[0158] In one embodiment, the information configuration module 20 is also used to determine configuration requirements based on the task to be processed; generate configuration instructions based on the configuration requirements; send the configuration instructions to the idle device, so that the idle device executes the configuration content in the preset configuration template according to the configuration instructions, and feeds back the configuration information.
[0159] Other embodiments or specific implementation methods of the information collection device described in the embodiments of the present invention can refer to the above-mentioned method embodiments and will not be described in detail here.
[0160] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0161] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0162] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the embodiment of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a computer-readable storage medium (such as ROM / RAM, disk, CD) as described above, including a number of instructions for enabling an intelligent device (which can be a mobile phone, computer, information collection device, or network information collection device, etc.) to execute the methods described in each embodiment of the present invention.
[0163] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. An information collection method, characterized in that: The information collection method comprises: Get pending tasks and idle devices; Sending a configuration instruction to the idle device according to the task to be processed, so that the idle device executes the configuration content according to the configuration instruction and feeds back the configuration information; Collecting information according to the configuration information; The collecting information according to the configuration information includes: Generate a collection operation instruction according to the configuration information and the preset operation mapping; Information collection is performed based on the collection operation instruction and the target terminal device.
2. The information collection method according to claim 1, characterized in that: The generating of the acquisition operation instruction according to the configuration information and the preset operation mapping includes: Determine the control strategy and cycle parameter information according to the configuration information; Determining an operation logic according to the control strategy, the cycle parameter information, and a preset operation mapping; Generate a collection operation instruction according to the operation logic.
3. The information collection method according to claim 2, characterized in that: The determining of the operation logic according to the control strategy, the cycle parameter information and the preset operation mapping includes: Determine a target operation action according to the control strategy and a preset operation mapping; An operation logic is determined according to the target operation action and the cycle parameter information.
4. The information collection method according to claim 3, characterized in that: The preset operation mapping includes the correspondence between the control strategies to be selected and the operation actions to be selected; The determining of the target operation action according to the control strategy and the preset operation mapping includes: Matching the control strategy with a candidate control strategy in the preset operation map; According to the matching result, the candidate operation action corresponding to the candidate control strategy matching the control strategy is used as the target operation action.
5. The information collection method according to claim 1, characterized in that: The collecting information based on the collection operation instruction and the target terminal device includes: Sending the acquisition operation instruction to the target terminal device so that the target terminal device executes the operation logic according to the acquisition operation instruction; Collect target information generated by the target terminal device executing the operation logic.
6. The information collection method according to claim 1, characterized in that: Before the information collection based on the collection operation instruction and the target terminal device is performed, the method further includes: Get the candidate terminal devices that are currently online; Performing an activity detection operation on the candidate terminal device; The candidate terminal devices that failed to be detected are taken offline, and the candidate terminal devices that successfully detected are brought online; The candidate terminal devices in the online state are taken as the target terminal devices.
7. The information collection method according to claim 6, wherein the activity detection operation includes an unlocking activity detection operation and a waking up activity detection operation; The performing an activity detection operation on the candidate terminal device includes: An unlocking and activation detection operation is performed on the screen of the candidate terminal device, and an waking and activation detection operation is performed on the candidate terminal device.
8. The information collection method according to claim 7, after performing an unlocking and activation detection operation on the screen of the candidate terminal device and performing an waking and activation detection operation on the candidate terminal device, further comprising: If the candidate terminal device can complete the unlocking and waking up operations, it is determined that the detection of the candidate terminal device is successful. If the candidate terminal device cannot complete the unlocking detection operation and the waking detection operation, it is determined that the detection of the candidate terminal device has failed.
9. The information collection method according to claim 6, wherein the step of obtaining the candidate terminal devices currently in an online state comprises: Obtain a candidate terminal device connected to the target host; Performing connection verification on the selected terminal device; The candidate terminal device that has passed the connection verification is used as the candidate terminal device that is currently online.
10. The information collection method according to any one of claims 1 to 9, wherein the sending of configuration instructions to the idle device according to the task to be processed, so that the idle device executes configuration content according to the configuration instructions and feeds back configuration information, comprises: Determine configuration requirements according to the tasks to be processed; Generate configuration instructions according to the configuration requirements; The configuration instruction is sent to the idle device, so that the idle device executes the configuration content in the preset configuration template according to the configuration instruction and feeds back the configuration information.
11. An information collection device, characterized in that: The information collection device comprises: An information acquisition module is used to obtain pending tasks and idle devices; An information configuration module, used to send a configuration instruction to the idle device according to the task to be processed, so that the idle device executes the configuration content according to the configuration instruction and feeds back the configuration information; An information collection module, used for collecting information according to the configuration information; The information collection module is further used to generate a collection operation instruction according to the configuration information and the preset operation mapping; and to perform information collection based on the collection operation instruction and the target terminal device.
12. The information collection device as described in claim 11, wherein the information collection module is further used to determine the control strategy and cycle parameter information based on the configuration information; determine the operation logic based on the control strategy, the cycle parameter information and the preset operation mapping; and generate a collection operation instruction based on the operation logic.
13. The information collection device according to claim 12, wherein the information collection module is further used to determine a target operation action according to the control strategy and a preset operation mapping; and determine an operation logic according to the target operation action and the cycle parameter information.
14. The information collection device as described in claim 13, wherein the preset operation mapping includes the correspondence between the selected control strategy and the selected operation action; the information collection module is also used to match the control strategy with the selected control strategy in the preset operation mapping; and according to the matching result, the selected operation action corresponding to the selected control strategy matching the control strategy is used as the target operation action.
15. The information collection device as described in claim 14, wherein the information collection module is further used to send the collection operation instruction to the target terminal device so that the target terminal device executes the operation logic according to the collection operation instruction; and collect the target information generated by the target terminal device executing the operation logic.
16. The information collection device according to claim 11, further comprising: The device activity detection module is used to obtain the candidate terminal devices that are currently online; Performing an activity detection operation on the candidate terminal device; The candidate terminal devices that failed to be detected are taken offline, and the candidate terminal devices that successfully were detected are taken online; the candidate terminal devices that are in the online state are taken as the target terminal devices.
17. An information collection device, characterized in that: The information collection device comprises: a memory, a processor, and an information collection program stored in the memory and executable on the processor, wherein the information collection program implements the information collection method according to any one of claims 1 to 10 when executed by the processor.
18. A storage medium, characterized in that: The storage medium stores an information collection program, and when the information collection program is executed by the processor, the information collection method according to any one of claims 1 to 10 is implemented.
