Method, device, server and storage medium for determining online terminal data

By obtaining and filtering the current reported data structure of the terminal, the online terminal data is determined in real time, and the problem of low accuracy in the existing technology is solved, and higher data accuracy and real-timeness are achieved.

CN113946716BActive Publication Date: 2025-02-25BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111188053.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-12
Publication Date
2025-02-25
Estimated Expiration
2041-10-12

AI Technical Summary

Technical Problem

In the prior art, the accuracy of determining online terminal data is low, mainly due to network delay, the time of reporting data is inaccurate, and it is necessary to wait for the window time to end before the online terminal data is calculated.

Method used

By obtaining the current reported data structure of the terminal to be detected, the target terminal is filtered out. The terminal contains the target data bits corresponding to the time to be detected in the current reported data structure, and determines the online terminal data corresponding to the time to be detected according to the target terminal.

Benefits of technology

Real-time determination of online terminal data based on the current reported data structure is realized, which avoids data delays and improves the determination accuracy of online terminal data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113946716B_ABST
    Figure CN113946716B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a method, device, server and storage medium for determining online terminal data, the method comprising: obtaining a current reporting data structure corresponding to a terminal to be detected; the current reporting data structure includes multiple data bits; the time corresponding to each data bit is within the time range associated with the terminal to be detected, and is used to represent the reporting data record of the terminal to be detected at the corresponding time, and the time range is used to represent a preset time range with a target time associated with the current reporting data structure as the deadline; according to the current reporting data structure and the time to be detected, a target terminal is screened out from the terminals to be detected; the target terminal is a terminal that includes a target data bit corresponding to the time to be detected in the corresponding current reporting data structure, and the target data bit represents a terminal with data reported; according to the target terminal, the online terminal data corresponding to the time to be detected is determined. The use of this method is conducive to the accuracy of determining online terminal data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of real-time computing technology, and in particular to a method, device, server and storage medium for determining online terminal data. Background Art

[0002] In the scenario of real-time computing of big data, various terminal devices such as mobile phones and vehicle-mounted terminals will report data at a certain frequency or after being triggered at a specific time. The data reporting situation can be used to confirm whether the terminal is online at a certain time.

[0003] In the related art, the current method for determining online terminal data is generally to obtain the online terminal data by setting a window time, such as 1 minute, and calculating the reported data falling within the window time when the window time ends; however, due to network delays, the time of most of the reported data falling within the window time does not belong to the window time, and it is necessary to wait for the window time to end before calculating the online terminal data, resulting in a low accuracy rate in determining the online terminal data. Summary of the invention

[0004] The present disclosure provides a method, device, server and storage medium for determining online terminal data, so as to at least solve the problem of low accuracy of determining online terminal data in related technologies. The technical solution of the present disclosure is as follows:

[0005] According to a first aspect of an embodiment of the present disclosure, a method for determining line end data is provided, comprising:

[0006] Obtain a current reporting data structure corresponding to the terminal to be detected; the current reporting data structure includes multiple data bits; the time corresponding to each data bit is within a time range associated with the terminal to be detected, and is used to represent the reporting data record of the terminal to be detected at the corresponding time, the time range is used to represent a preset time range with a target time associated with the current reporting data structure as a deadline, and the target time is used to represent the maximum value of the reporting time carried by all data reported by the terminal to be detected;

[0007] According to the current reporting data structure and the time to be detected, a target terminal is screened out from the terminals to be detected; the target terminal is a terminal that includes a target data bit corresponding to the time to be detected in the corresponding current reporting data structure, and the target data bit indicates that there is data to report;

[0008] According to the target terminal, online terminal data corresponding to the time to be detected is determined.

[0009] In an exemplary embodiment, the step of filtering out a target terminal from the terminals to be detected according to the current reporting data structure and the detection time includes:

[0010] From the terminals to be detected, a terminal whose corresponding currently reported data structure includes a target data bit corresponding to the time to be detected is selected as an initial terminal;

[0011] From the initial terminals, a terminal whose reported data identifier of the target data bit is a target data identifier is selected as the target terminal; the target data identifier is used to indicate that there is data reported at the corresponding time.

[0012] In an exemplary embodiment, the step of obtaining a current reporting data structure corresponding to the terminal to be detected includes:

[0013] Obtain the terminal identification of the terminal to be detected;

[0014] According to the terminal identifier, the corresponding relationship between the preset terminal identifier and the current reporting data structure is queried to obtain the current reporting data structure corresponding to the terminal to be detected.

[0015] In an exemplary embodiment, the correspondence between the preset terminal identifier and the current reporting data structure is obtained in the following manner:

[0016] Get the data reported by the terminal;

[0017] Constructing a current reporting data structure of the terminal according to the data reported by the terminal;

[0018] The terminal identifier of the terminal is obtained, and a corresponding relationship between the preset terminal identifier and the current reporting data structure is constructed according to the terminal identifier and the current reporting data structure.

[0019] In an exemplary embodiment, constructing a current reporting data structure of the terminal according to the data reported by the terminal includes:

[0020] Constructing an initial reporting data structure of the terminal according to the first data reported by the terminal;

[0021] The initial reporting data structure is updated according to other data reported by the terminal to obtain a current reporting data structure of the terminal.

[0022] In an exemplary embodiment, the data bits included in the initial reporting data structure are arranged in descending order of time;

[0023] The updating of the initial reporting data structure according to other data reported by the terminal to obtain the current reporting data structure of the terminal includes:

[0024] Obtaining the reporting time of other data reported by the terminal;

[0025] When the reporting time is greater than the target time associated with the initial reporting data structure, the target time associated with the initial reporting data structure is updated to the reporting time of the other data, and the initial reporting data structure is shifted right by N data bits as a whole, and the reporting data identifier of the first data bit is updated to the target data identifier, to obtain the current reporting data structure of the terminal; N is the absolute value of the difference between the reporting time of the other data and the target time;

[0026] When the reporting time is less than the target time associated with the initial reporting data structure, and the reporting data identifier of the Mth data bit of the initial reporting data structure is different from the target data identifier, the reporting data identifier of the Mth data bit is updated to the target data identifier to obtain the current reporting data structure of the terminal; M=N+1.

[0027] In an exemplary embodiment, determining, according to the target terminal, the online terminal data corresponding to the time to be detected includes:

[0028] The terminal quantity of the target terminal is obtained, and the terminal quantity is used as the online terminal data corresponding to the time to be detected.

[0029] According to a second aspect of an embodiment of the present disclosure, a device for determining online terminal data is provided, including:

[0030] A structure acquisition unit, configured to execute acquisition of a current reporting data structure corresponding to a terminal to be detected; the current reporting data structure includes a plurality of data bits; a time corresponding to each data bit is within a time range associated with the terminal to be detected, and is used to represent a reporting data record of the terminal to be detected at the corresponding time, the time range is used to represent a preset time range with a target time associated with the current reporting data structure as a deadline, and the target time is used to represent a maximum value of the reporting time carried by all data reported by the terminal to be detected;

[0031] A terminal screening unit is configured to screen a target terminal from the terminals to be detected according to the current reporting data structure and the time to be detected; the target terminal is a terminal that includes a target data bit corresponding to the time to be detected in the corresponding current reporting data structure, and the target data bit indicates that there is data to report;

[0032] The data determining unit is configured to determine the online terminal data corresponding to the to-be-detected time according to the target terminal.

[0033] In an exemplary embodiment, the terminal screening unit is further configured to perform screening out, from the terminals to be detected, a terminal whose corresponding current reporting data structure includes a target data bit corresponding to the time to be detected, as an initial terminal; and to screen out, from the initial terminal, a terminal whose reporting data identifier of the target data bit is a target data identifier, as the target terminal; the target data identifier is used to indicate that there is data reported at the corresponding time.

[0034] In an exemplary embodiment, the structure acquisition unit is further configured to execute acquisition of the terminal identification of the terminal to be detected; according to the terminal identification, query the correspondence between the preset terminal identification and the current reporting data structure to obtain the current reporting data structure corresponding to the terminal to be detected.

[0035] In an exemplary embodiment, the device also includes a relationship construction unit, which is configured to execute the acquisition of data reported by the terminal; construct a current reporting data structure of the terminal based on the data reported by the terminal; obtain the terminal identifier of the terminal, and construct a corresponding relationship between the preset terminal identifier and the current reporting data structure based on the terminal identifier and the current reporting data structure.

[0036] In an exemplary embodiment, the relationship building unit is further configured to build an initial reporting data structure of the terminal based on the first data reported by the terminal; and update the initial reporting data structure based on other data reported by the terminal to obtain a current reporting data structure of the terminal.

[0037] In an exemplary embodiment, the data bits included in the initial reporting data structure are arranged in descending order of time;

[0038] The relationship building unit is also configured to execute the acquisition of the reporting time of other data reported by the terminal; when the reporting time is greater than the target time associated with the initial reporting data structure, the target time associated with the initial reporting data structure is updated to the reporting time of the other data, and the initial reporting data structure is shifted to the right by N data bits as a whole, and the reporting data identifier of the first data bit is updated to the target data identifier to obtain the current reporting data structure of the terminal; N is the absolute value of the difference between the reporting time of the other data and the target time; when the reporting time is less than the target time associated with the initial reporting data structure, and the reporting data identifier of the Mth data bit of the initial reporting data structure is different from the target data identifier, the reporting data identifier of the Mth data bit is updated to the target data identifier to obtain the current reporting data structure of the terminal; M=N+1.

[0039] In an exemplary embodiment, the data determination unit is further configured to obtain the terminal quantity of the target terminal and use the terminal quantity as the online terminal data corresponding to the to-be-detected time.

[0040] According to a third aspect of an embodiment of the present disclosure, a server is provided, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the method for determining online terminal data as described in any one of the embodiments of the first aspect.

[0041] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of a server, the server can execute the method for determining online terminal data described in any one of the embodiments of the first aspect.

[0042] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, wherein the computer program product includes instructions, and when the instructions are executed by a processor of a server, the server can execute the method for determining online terminal data described in any one of the embodiments of the first aspect.

[0043] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:

[0044] By obtaining the current reporting data structure corresponding to the terminal to be detected; the current reporting data structure includes multiple data bits; the time corresponding to each data bit is within the time range associated with the terminal to be detected, and is used to represent the reporting data record of the terminal to be detected at the corresponding time, the time range is used to represent the preset time range with the target time associated with the current reporting data structure as the deadline, and the target time is used to represent the maximum value of the reporting time carried by all the data reported by the terminal to be detected; then according to the current reporting data structure and the time to be detected, the target terminal is screened out from the terminals to be detected; the target terminal is the target data bit corresponding to the time to be detected included in the corresponding current reporting data structure, and the target data bit represents the terminal with data reported; finally, according to the target terminal, the online terminal data corresponding to the time to be detected is determined. In this way, the purpose of determining the online terminal data corresponding to the time to be detected in real time according to the current reporting data structure corresponding to the terminal to be detected is achieved, because the data reporting record saved by the current reporting data structure is more accurate, and there is no need to wait for the window time to end before calculating the online terminal data, thereby avoiding data delay, thereby improving the accuracy of determining the online terminal data.

[0045] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0047] Figure 1 The present invention is a diagram showing an application environment of a method for determining online terminal data according to an exemplary embodiment.

[0048] Figure 2 The present invention is a flowchart of a method for determining online terminal data according to an exemplary embodiment.

[0049] Figure 3 It is a flowchart of steps for constructing a correspondence between a preset terminal identifier and a current reporting data structure according to an exemplary embodiment.

[0050] Figure 4 The figure is a flowchart of another method for determining online terminal data according to an exemplary embodiment.

[0051] Figure 5 The present invention is a flowchart of a method for updating a reporting data structure according to an exemplary embodiment.

[0052] Figure 6 The invention is a block diagram of a device for determining online terminal data according to an exemplary embodiment.

[0053] Figure 7 It is a block diagram of a server according to an exemplary embodiment. DETAILED DESCRIPTION

[0054] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0055] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0056] It should also be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.

[0057] The method for determining online terminal data provided by the present disclosure can be applied to Figure 1 In the application environment shown in the figure, the server 110 interacts with multiple terminals to be detected 120 (such as the terminal to be tested 120a, the terminal to be tested 120b, etc., the terminal to be tested 120n) through the network. Specifically, refer to Figure 1 , the server 110 obtains the current reporting data structure corresponding to the terminal to be detected 120; the current reporting data structure includes multiple data bits; the time corresponding to each data bit is within the time range associated with the terminal to be detected, and is used to represent the reporting data record of the terminal to be detected at the corresponding time, the time range is used to represent the preset time range with the target time associated with the current reporting data structure as the deadline, and the target time is used to represent the maximum value of the reporting time carried by all the data reported by the terminal to be detected; then the server 110 selects the target terminal from the terminal to be detected 120 according to the current reporting data structure and the time to be detected; the target terminal is the target data bit corresponding to the time to be detected in the corresponding current reporting data structure, and the target data bit represents the terminal with data reported; finally, the server 110 determines the online terminal data corresponding to the time to be detected according to the target terminal. Among them, the server 110 can be implemented by an independent server or a server cluster composed of multiple servers, and the terminal to be detected 120 can be, but not limited to, various personal computers, laptops, smart phones, tablet computers and portable wearable devices.

[0058] Figure 2 is a flow chart of a method for determining online terminal data according to an exemplary embodiment. Figure 2 As shown, the method for determining online terminal data is used as follows Figure 1 The server 110 shown includes the following steps.

[0059] In step S210, the current reporting data structure corresponding to the terminal to be detected is obtained.

[0060] Among them, the current reporting data structure includes multiple data bits; the time corresponding to each data bit is within the time range associated with the terminal to be detected, and is used to represent the reporting data record of the terminal to be detected at the corresponding time; specifically, the current reporting data structure includes the data bits corresponding to each time within the time range associated with the terminal to be detected, each data bit is used to represent the reporting data record of the terminal to be detected at the corresponding time, the time range is used to represent a preset time range with the target time associated with the current reporting data structure as the end time, and the target time is used to represent the maximum value of the reporting time carried by all data reported by the terminal to be detected.

[0061] Among them, the current reporting data structure is a data structure for storing the terminal's reporting data records, including multiple data bits corresponding to time, each data bit is used to indicate whether the terminal has reported data at the corresponding time; for example, if the value of the data bit corresponding to a certain time is 1, it means that the terminal has reported data at that time, that is, the terminal is online at that time, that is, the terminal account is online; for example, if the value of the data bit corresponding to a certain time is 0, it means that the terminal has not reported data at that time, that is, the terminal is offline at that time, that is, the terminal account is offline. For example, the current reporting data structure is (111000000000000000000000000000000), (101000000000000000000000000000000000), etc.

[0062] In actual scenarios, the current reported data structure can be an integer data structure, a long integer data structure, a short integer data structure, or a character data structure; the integer data structure includes 32 data bits, the long integer data structure includes 64 data bits, the short integer data structure includes 16 data bits, and the character data structure includes 8 data bits; assuming that the terminal reports one or more data every minute, the integer data structure can carry the data delay of the last 32 minutes, the long integer data structure can carry the data delay of the last 64 minutes, the short integer data structure can carry the data delay of the last 16 minutes, and the character data structure can carry the data delay of the last 8 minutes.

[0063] Among them, the target time refers to the maximum value of the reporting time carried by all the data reported by the terminal to be detected. The target time associated with the current reporting data structure of different terminals to be detected is different; for example, the maximum value of the reporting time carried by all the data reported by terminal A to be detected is 11:32 minutes, then the target time associated with the current reporting data structure of terminal A to be detected is 11:32 minutes.

[0064] Among them, the time range refers to a preset time range with the target time associated with the current reporting data structure of the terminal to be detected as the deadline; for example, if the current reporting data structure is an integer data structure and the target time is 11:32 minutes, then the time range is from 11:01 minutes to 11:32 minutes, and the first data bit in the current reporting data structure corresponds to 11:32 minutes, the second data bit corresponds to 11:31 minutes... The last data bit corresponds to 11:01 minutes. It should be noted that when the structure type of the current reporting data structure is the same, the time ranges associated with different terminals to be detected are different, which depends on the target time associated with the current reporting data structure of the terminal to be detected.

[0065] Specifically, the server queries a database storing current reporting data structures corresponding to a plurality of terminals according to the terminal to be detected, and obtains the current reporting data structure corresponding to the terminal to be detected.

[0066] In step S220, a target terminal is selected from the terminals to be detected according to the current reporting data structure and the detection time; the target terminal is a terminal that includes a target data bit corresponding to the detection time in the corresponding current reporting data structure and represents data reporting by the target data bit.

[0067] Among them, the time to be detected refers to the time point to be counted, which can be determined according to actual conditions; the target terminal refers to the terminal to be detected that is online at the time to be detected among the terminals to be detected, specifically refers to the terminal to be detected, in which the corresponding current reported data structure includes the target data bit corresponding to the time to be detected and indicating that there is data to be reported.

[0068] Specifically, the server identifies the current reporting data structure of the terminal to be detected and obtains an identification result; based on the identification result, from the terminals to be detected, the corresponding current reporting data structure includes terminals that correspond to the time to be detected and indicate target data bits with data reported, and these terminals are used as target terminals that are online at the time to be detected.

[0069] For example, the detection time is 11:32, and the current reporting data structure of the terminal A to be detected includes a data bit corresponding to 11:32, and the value corresponding to the data bit is 1, then the terminal A to be detected is identified as the target terminal.

[0070] In step S230, online terminal data corresponding to the time to be detected is determined according to the target terminal.

[0071] The online terminal data corresponding to the time to be detected refers to the number of terminals that are online at the same time during the time to be detected.

[0072] For example, the target terminals that are online at the time to be detected are terminal A to be detected, terminal B to be detected, and terminal C to be detected, indicating that the online terminal data corresponding to the time to be detected is a value of 3.

[0073] In the above-mentioned method for determining online terminal data, the current reporting data structure corresponding to the terminal to be detected is obtained; the current reporting data structure includes multiple data bits; the time corresponding to each data bit is within the time range associated with the terminal to be detected, and is used to represent the reporting data record of the terminal to be detected at the corresponding time, the time range is used to represent the preset time range with the target time associated with the current reporting data structure as the deadline, and the target time is used to represent the maximum value of the reporting time carried by all the data reported by the terminal to be detected; then according to the current reporting data structure and the time to be detected, the target terminal is screened out from the terminals to be detected; the target terminal is the target data bit corresponding to the time to be detected included in the corresponding current reporting data structure, and the target data bit represents the terminal with data reported; finally, according to the target terminal, the online terminal data corresponding to the time to be detected is determined. In this way, the purpose of determining the online terminal data corresponding to the time to be detected in real time according to the current reporting data structure corresponding to the terminal to be detected is achieved, because the data reporting record saved by the current reporting data structure is more accurate, and there is no need to wait for the window time to end before calculating the online terminal data, thereby avoiding data delay, thereby improving the accuracy of determining the online terminal data.

[0074] In an exemplary embodiment, the above step S220, based on the current reported data structure and the time to be detected, filters out the target terminal from the terminals to be detected, specifically including: from the terminals to be detected, filtering out the terminal whose corresponding current reported data structure includes the target data bit corresponding to the time to be detected, as the initial terminal; from the initial terminal, filtering out the terminal whose reported data identifier of the target data bit is the target data identifier, as the target terminal; the target data identifier is used to indicate that there is data reported at the corresponding time.

[0075] Among them, the reported data identifier is used to indicate whether the terminal has reported data at the corresponding time, and the target data identifier is used to indicate whether the terminal has reported data at the corresponding time; in actual scenarios, the target data identifier is represented by 1.

[0076] Specifically, the server identifies the time corresponding to the data bit of the current reported data structure of the terminal to be detected, and obtains a first identification result; based on the first identification result, the terminal whose corresponding current reported data structure includes the target data bit corresponding to the time to be detected is screened out from the terminals to be detected, and the terminal is used as the initial terminal; then, the server identifies the target data bit in the current reported data structure of the initial terminal, and obtains a second identification result; based on the second identification result, the terminal whose reported data identifier of the target data bit included in the corresponding current reported data structure is the target data identifier is screened out from the initial terminal, and the terminal is used as the target terminal.

[0077] For example, the current reporting data structure corresponding to the terminal A to be detected is (1110000000000000000000000000000000), the current reporting data structure corresponding to the terminal B to be detected is (1010000000000000000000000000000000), the current reporting data structure corresponding to the terminal C to be detected is (01100000000000000000000000000000000), and the current reporting data structure corresponding to the terminal D to be detected is (010000000 000000000000000000000000), and the associated target times are all 11:32. If the time to be detected is 11:32, after analysis, it can be known that the value of the data bit corresponding to 11:32 in the current reported data structure corresponding to terminal A to be detected is 1, and the value of the data bit corresponding to 11:32 in the current reported data structure corresponding to terminal B to be detected is also 1. Then the terminals online at 11:32 include terminal A to be detected and terminal B to be detected, that is, the target terminals are terminal A to be detected and terminal B to be detected.

[0078] The technical solution provided by the embodiment of the present disclosure, according to the current reporting data structure of the terminal to be detected, filters out from the terminal to be detected the corresponding current reporting data structure including the target data bit corresponding to the time to be detected, and the reporting data identifier of the target data bit is the target terminal identified by the target data, which is beneficial to improving the accuracy of determining the target terminal that is online at the time to be detected.

[0079] In an exemplary embodiment, in the above step S210, obtaining the current reporting data structure corresponding to the terminal to be detected includes: obtaining the terminal identifier of the terminal to be detected; according to the terminal identifier, querying the correspondence between the preset terminal identifier and the current reporting data structure to obtain the current reporting data structure corresponding to the terminal to be detected.

[0080] Among them, the terminal identification refers to the unique identification information of the terminal to be detected, such as the terminal name, terminal serial number, etc.; the corresponding relationship between the preset terminal identification and the current reported data structure means that there is a one-to-one corresponding relationship between the terminal identification and the current reported data structure.

[0081] Specifically, the server obtains the terminal identification of the terminal to be detected according to the preset terminal identification acquisition instruction; according to the terminal identification of the terminal to be detected, the server queries the correspondence between the preset terminal identification and the current reporting data structure, obtains the current reporting data structure corresponding to the terminal identification of the terminal to be detected, and uses it as the current reporting data structure corresponding to the terminal to be detected.

[0082] For example, the terminal identifier of the terminal to be detected is terminal identifier a, and in the correspondence between the preset terminal identifier and the current reporting data structure, the current reporting data structure corresponding to terminal identifier a is current reporting data structure A, indicating that the current reporting data structure corresponding to the terminal to be detected is current reporting data structure A.

[0083] The technical solution provided by the embodiment of the present disclosure can quickly obtain the current reported data structure corresponding to the terminal to be detected by querying the correspondence between the preset terminal identification and the current reported data structure according to the terminal identification of the terminal to be detected, thereby improving the efficiency of obtaining the current reported data structure corresponding to the terminal to be detected.

[0084] In an exemplary embodiment, if Figure 3 As shown, the method for determining online terminal data provided by the present disclosure further includes a step of constructing a correspondence between a preset terminal identifier and a currently reported data structure, which can be specifically implemented by the following steps:

[0085] In step S310, data reported by the terminal is obtained.

[0086] The data reported by the terminal may be various types of data, such as location information, operation behavior information, etc. In actual scenarios, the terminal reports data at a certain frequency or after being triggered at a specific time.

[0087] In step S320, a current reporting data structure of the terminal is constructed according to the data reported by the terminal.

[0088] Specifically, the server constructs the current reporting data structure of the terminal according to the preset reporting data structure construction instruction and based on the data reported by the terminal.

[0089] In step S330, the terminal identification of the terminal is obtained, and a correspondence between a preset terminal identification and the current reporting data structure is constructed according to the terminal identification and the current reporting data structure.

[0090] Specifically, the server constructs a correspondence between the terminal identifier and the current reporting data structure according to the terminal identifier of the terminal and the current reporting data structure as a preset correspondence between the terminal identifier and the current reporting data structure.

[0091] For example, assuming that the terminal identification of a terminal is a and the current reported data structure is A, it means that there is a corresponding relationship between the terminal identification a and the current reported data structure A, then the corresponding relationship between the terminal identification a and the current reported data structure A is constructed; referring to this method, the corresponding relationship between multiple groups of terminal identifications and the current reported data structure can be obtained; according to the corresponding relationship between multiple groups of terminal identifications and the current reported data structure, the corresponding relationship between the preset terminal identification and the current reported data structure is constructed.

[0092] The technical solution provided by the embodiment of the present disclosure, by constructing a correspondence between a preset terminal identifier and a currently reported data structure, is conducive to subsequently querying the correspondence between a preset terminal identifier and a currently reported data structure according to the terminal identifier of the terminal to be detected, and can quickly obtain the currently reported data structure corresponding to the terminal to be detected.

[0093] In an exemplary embodiment, in the above step S320, the current reporting data structure of the terminal is constructed according to the data reported by the terminal, specifically including: constructing the initial reporting data structure of the terminal according to the first data reported by the terminal; updating the initial reporting data structure according to other data reported by the terminal to obtain the current reporting data structure of the terminal.

[0094] For example, the server constructs instructions according to a preset reporting data structure, and constructs the terminal's reporting data structure based on the first data reported by the terminal as the terminal's initial reporting data structure; wherein the target time associated with the initial reporting data structure is the reporting time carried by the first data; based on the second data reported by the terminal, it is determined whether the initial reporting data structure of the terminal needs to be updated, and if so, the initial reporting data structure of the terminal is updated; if not, the initial reporting data structure of the terminal is retained; and so on, until the last data reported by the terminal, the current reporting data structure of the terminal is obtained.

[0095] The technical solution provided by the embodiment of the present disclosure, by constructing the current reporting data structure of the terminal, is conducive to subsequently constructing a corresponding relationship between a preset terminal identifier and the current reporting data structure according to the terminal identifier of the terminal and the current reporting data structure.

[0096] In an exemplary embodiment, the data bits included in the initial reporting data structure are arranged in order from large to small in time; the initial reporting data structure is updated according to other data reported by the terminal to obtain the current reporting data structure of the terminal, specifically including: obtaining the reporting time of other data reported by the terminal; when the reporting time is greater than the target time associated with the initial reporting data structure, the target time associated with the initial reporting data structure is updated to the reporting time of other data, and the initial reporting data structure is shifted to the right as a whole by N data bits, and the reporting data identifier of the first data bit is updated to the target data identifier to obtain the current reporting data structure of the terminal; N is the absolute value of the difference between the reporting time of other data and the target time; when the reporting time is less than the target time associated with the initial reporting data structure, and the reporting data identifier of the Mth data bit of the initial reporting data structure is different from the target data identifier, the reporting data identifier of the Mth data bit is updated to the target data identifier to obtain the current reporting data structure of the terminal; M=N+1.

[0097] The data bits included in the initial reporting data structure are arranged in descending order of time, for example, the target time is in the front, and the other times are arranged in sequence behind.

[0098] Specifically, the server obtains the reporting time of other data reported by the terminal; compares the reporting time of other data with the target time associated with the initial reporting data structure; when the reporting time of other data is greater than the target time associated with the initial reporting data structure, the target time associated with the initial reporting data structure is updated to the reporting time of other data, and the initial reporting data structure is shifted to the right by N data bits as a whole, and the reporting data identifier of the first data bit is updated to the target data identifier, and the reporting data identifier of the data bit between the first data bit and the Nth data bit is updated to the non-target data identifier, and the current reporting data structure of the terminal is obtained; N is the reporting time of other data and the target time the absolute value of the difference between the two; when the reporting time of other data is less than the target time associated with the initial reporting data structure, and the reporting data identifier of the Mth (i.e., N+1)th data bit of the initial reporting data structure is different from the target data identifier, the reporting data identifier of the Mth data bit in the initial reporting data structure is updated to the target data identifier to obtain the current reporting data structure of the terminal; when the reporting time of other data is less than the target time associated with the initial reporting data structure, and the reporting data identifier of the Mth data bit of the initial reporting data structure is the same as the target data identifier, there is no need to update the initial reporting data structure, and the initial reporting data structure is directly used as the current reporting data structure of the terminal.

[0099] For example, assuming that the data reported by the terminal are data A (corresponding to time 11:20), data B (corresponding to time 11:21), data C (corresponding to time 11:19), and data D (corresponding to time 11:20), the server constructs the initial reporting data structure (10000000000000000000000000000000000) according to data A, and the associated target time is 11:20; then, since the time corresponding to data B is greater than the time corresponding to data A, the initial reporting data structure (10 000000000000000000000000000000000) is shifted right by one bit as a whole, and the value of the first data bit is set to 1, and the reported data structure (11000000000000000000000000000000000) is obtained, and its associated target time is updated to 11:21; then, since the time corresponding to data C is less than the time corresponding to data B, there is no need to update the associated target time, and it is only necessary to judge the reported data structure (1100000000000000000000000 The first step is to check whether the value of the third data bit (3 is the difference between 11:21 and 11:19 + 1) in the reported data structure (00000000) is 1. If not, the value of the third data bit in the reported data structure (1100000000000000000000000000000000) is set to 1, and the reported data structure (11100000000000000000000000000000000) is obtained. Finally, since the time corresponding to data D is less than the time corresponding to data B, there is no need to update the associated target time. And it is only necessary to determine whether the value of the 2nd (2 is the difference between 11:21 and 11:20 + 1) data bit in the reported data structure (11100000000000000000000000000000000) is 1. If it is 1, there is no need to update the reported data structure (1110000000000000000000000000000000); therefore, the current reported data structure of the terminal is (111000000000000000000000000000000).

[0100] The technical solution provided by the embodiment of the present disclosure updates the initial reported data structure according to other data reported by the terminal, which is helpful to avoid the defect of increasing data and occupying more space, thereby saving data storage costs.

[0101] In an exemplary embodiment, the above step S330, determining the online terminal data corresponding to the time to be detected according to the target terminal, specifically includes: acquiring the terminal number of the target terminal, and using the terminal number as the online terminal data corresponding to the time to be detected.

[0102] For example, assuming that the number of target terminals is 3, the online terminal data corresponding to the time to be detected is also 3, indicating that the number of terminals that are simultaneously online during the time to be detected is 3.

[0103] The technical solution provided by the embodiment of the present disclosure determines the online terminal data corresponding to the time to be detected according to the accurately determined terminal number of the target terminal, which is conducive to improving the determination accuracy of the online terminal data.

[0104] Figure 4 is a flow chart showing another method for determining online terminal data according to an exemplary embodiment. Figure 4 As shown, the method for determining online terminal data is used as follows Figure 1 In the server shown, the following steps are included:

[0105] In step S410, data reported by the terminal is obtained.

[0106] In step S420, an initial reporting data structure of the terminal is constructed according to the first data reported by the terminal; and the initial reporting data structure is updated according to other data reported by the terminal to obtain a current reporting data structure of the terminal.

[0107] In step S430, the terminal identification of the terminal is obtained, and a correspondence between a preset terminal identification and the current reporting data structure is constructed according to the terminal identification and the current reporting data structure.

[0108] In step S440, the terminal identification of the terminal to be detected is obtained; according to the terminal identification, the correspondence between the preset terminal identification and the current reporting data structure is queried to obtain the current reporting data structure corresponding to the terminal to be detected.

[0109] In step S450, from the terminals to be detected, the terminals whose corresponding currently reported data structures include the target data bits corresponding to the time to be detected are screened out as initial terminals.

[0110] In step S460, a terminal whose reported data identifier of the target data bit is the target data identifier is selected from the initial terminals as the target terminal; the target data identifier is used to indicate that there is data reported at the corresponding time.

[0111] In step S470, the terminal quantity of the target terminal is obtained, and the terminal quantity is used as the online terminal data corresponding to the time to be detected.

[0112] In the above-mentioned method for determining online terminal data, the purpose of determining the online terminal data corresponding to the time to be detected in real time according to the current reported data structure corresponding to the terminal to be detected is achieved. Since the data reporting records saved by the current reported data structure are relatively accurate, and there is no need to wait for the window time to end to calculate the online terminal data, data delays are avoided, thereby improving the accuracy of determining online terminal data.

[0113] In order to more clearly illustrate the method for determining online terminal data provided by the embodiment of the present disclosure, the method for determining online terminal data is specifically described below with a specific embodiment. In one embodiment, the present disclosure also provides another method for determining online terminal data, which specifically includes the following contents:

[0114] Use an integer (Int), or a long integer (Long) or a similar data structure type. Different data types store different amounts of data. For example, the Long type has 64 bits and can store 64 bits of different status data at the same time. Of course, you can also choose according to the actual situation. For example, in the actual production process, the data disorder is very small (for example, one data report per minute). If it is 64 bits, then the entire system can bear a 64-minute data delay. Here, take Int as an example. An Int type has 32 bits, which can be used to represent 32 states. Each bit is only 0 or 1. When the calculation is online, if the bit is 0, it means that the data has not been received. If the bit represents 1, it means that the data has been received, and then the data moves to the right in a loop. At the same time, a cardinality variable is used to store the maximum value in the current Int type. The entire data structure is<key,(base,bit_value)> , key is used to represent a unique identifier, base represents the maximum value of the current device (for example, the same device sends one or more data every 1 minute, and base represents the maximum value received from the time the data is received to now), bit_value represents the historical record of past data, that is, the records stored are the records of the last few dozen minutes. For example, if the int type is used and one piece of data is reported every 1 minute, then bit_value stores the data content of the last 32 minutes; finally, based on the above reported data structure of multiple terminals, the number of terminals that are online at the same time during the detection time can be determined.

[0115] For example, if device Q reports a string of data, and the time carried by the data is A:11:20, B:11:21, C:11:19, D:11:20, then the corresponding data structure is<Q,(11:20,-2147483648)> , where bit_value represents hexadecimal 0x80000000, that is, the highest binary value is 1, indicating that there is data at A:10:20, and then the data corresponding to B:11:21 is processed, and the data structure obtained is<Q,(11:21,-1073741824)> , where bit_value represents hexadecimal, that is, the highest 2 bits of binary are both 1; after processing C's data, the data structure obtained is<Q,(11:21,-536870912)> , where bit_value represents hexadecimal, and the highest 3 bits of binary are all 1, and base is still 11:21, because the time of C is 11:19, which is less than 11:21, so there is no need to update base; and the upper 3 bits are all 1, indicating that 11:21, 11:20, and 11:19 have all been processed, so they are 1; then process the data corresponding to D: 11:20, because the second bit from the highest to the lowest is 1, it means that 11:20 has already been processed, so when processing D data, the data structure will not change, and it is still<Q,(11:21,-536870912)> .

[0116] by<Q,(11:20,-2147483648)> Take the example to illustrate, Base is the time 11:20, left to right is high to low, here take the data type Int as an example, one is 32 bits, which can represent the arrival of 32 minutes of data. If the 0th minute of base is 1, it means that base has received such data at this moment. The 3rd minute of base, converted to time is base-3 minutes, which is 11:17. If it is 0, it means that the data at 11:17 at this moment has not been received; if the bit is 1, it means that the data at 11:17 has been received.

[0117] Further, refer to Figure 5 The update process of the reported data structure is as follows: get the bit data structure B through the key, determine whether the base of B is greater than the current time, if not, calculate the diff between the current time and the base, update the base of B to the current time, move diff steps to the right without a sign, get and save the new value of B; if so, calculate the diff between the current time and the base, and find out whether the diff+1 bit in the result (reported data structure B) is 1, if not 1, set it to 1, get and save the new value of B.

[0118] The above-mentioned method for determining online terminal data uses the bit construction method to record and track whether the device data has been processed in the past. Due to the storage-saving advantage of bits, the storage space required will not increase as the device data increases, which greatly reduces the maintenance cost of the entire processing process and avoids the defect of long recovery time caused by task failure and restart in a distributed environment, thereby causing the service to be unavailable for a long time. At the same time, it also avoids the defect of directly storing data in the computer's memory due to the reduction of storage space, thereby reducing the time required for disk positioning, thereby improving the throughput efficiency of the entire task.

[0119] It should be understood that although Figure 2-Figure 4 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-Figure 4 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0120] It can be understood that the same / similar parts between the various embodiments of the above method in this specification can refer to each other, and each embodiment focuses on the differences from other embodiments. For related points, please refer to the description of other method embodiments.

[0121] Figure 6 is a block diagram of a device for determining online terminal data according to an exemplary embodiment. Figure 6 The device includes a structure acquisition unit 610, a terminal screening unit 620 and a data determination unit 630.

[0122] The structure acquisition unit 610 is configured to execute acquisition of the current reporting data structure corresponding to the terminal to be detected; the current reporting data structure includes multiple data bits; the time corresponding to each data bit is within the time range associated with the terminal to be detected, and is used to represent the reporting data record of the terminal to be detected at the corresponding time, and the time range is used to represent a preset time range with a target time associated with the current reporting data structure as the end time, and the target time is used to represent the maximum value of the reporting time carried by all data reported by the terminal to be detected.

[0123] The terminal screening unit 620 is configured to screen out a target terminal from the terminals to be detected according to the current reporting data structure and the time to be detected; the target terminal is a terminal that includes a target data bit corresponding to the time to be detected in the corresponding current reporting data structure, and the target data bit represents a terminal with data to report.

[0124] The data determining unit 630 is configured to determine the online terminal data corresponding to the time to be detected according to the target terminal.

[0125] In an exemplary embodiment, the terminal screening unit 620 is further configured to perform screening out, from the terminals to be detected, a terminal whose corresponding current reporting data structure includes a target data bit corresponding to the time to be detected, as an initial terminal; and to screen out, from the initial terminal, a terminal whose reporting data identifier of the target data bit is a target data identifier, as a target terminal; the target data identifier is used to indicate that there is data reported at the corresponding time.

[0126] In an exemplary embodiment, the structure acquisition unit 610 is further configured to acquire the terminal identification of the terminal to be detected; according to the terminal identification, query the correspondence between the preset terminal identification and the current reporting data structure to obtain the current reporting data structure corresponding to the terminal to be detected.

[0127] In an exemplary embodiment, the device for determining online terminal data also includes a relationship construction unit, which is configured to execute the acquisition of data reported by the terminal; construct a current reported data structure of the terminal based on the data reported by the terminal; obtain the terminal identifier of the terminal, and construct a corresponding relationship between a preset terminal identifier and the current reported data structure based on the terminal identifier and the current reported data structure.

[0128] In an exemplary embodiment, the relationship construction unit is further configured to construct an initial reporting data structure of the terminal according to the first data reported by the terminal; and update the initial reporting data structure according to other data reported by the terminal to obtain a current reporting data structure of the terminal.

[0129] In an exemplary embodiment, the data bits included in the initial reporting data structure are arranged in descending order of time;

[0130] The relationship construction unit is also configured to execute the acquisition of the reporting time of other data reported by the terminal; when the reporting time is greater than the target time associated with the initial reporting data structure, the target time associated with the initial reporting data structure is updated to the reporting time of other data, and the initial reporting data structure is moved N data bits to the right as a whole, and the reporting data identifier of the first data bit is updated to the target data identifier to obtain the current reporting data structure of the terminal; N is the absolute value of the difference between the reporting time of other data and the target time; when the reporting time is less than the target time associated with the initial reporting data structure, and the reporting data identifier of the Mth data bit of the initial reporting data structure is different from the target data identifier, the reporting data identifier of the Mth data bit is updated to the target data identifier to obtain the current reporting data structure of the terminal; M=N+1.

[0131] In an exemplary embodiment, the data determination unit 630 is further configured to obtain the terminal quantity of the target terminal, and use the terminal quantity as the online terminal data corresponding to the time to be detected.

[0132] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0133] Figure 7 is a block diagram of a device 700 for executing the above-mentioned online terminal data determination method according to an exemplary embodiment. For example, the device 700 may be a server. Figure 7 , the device 700 includes a processing component 720, which further includes one or more processors, and a memory resource represented by a memory 722 for storing instructions, such as applications, that can be executed by the processing component 720. The application stored in the memory 722 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 720 is configured to execute the instructions to perform the above method.

[0134] The device 700 may also include a power supply component 724 configured to perform power management of the device 700, a wired or wireless network interface 726 configured to connect the device 700 to a network, and an input / output (I / O) interface 728. The device 700 may operate based on an operating system stored in the memory 722, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, or the like.

[0135] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 722 including instructions, which can be executed by a processor of the device 700 to perform the above method. The storage medium can be a computer-readable storage medium, for example, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0136] In an exemplary embodiment, a computer program product is also provided. The computer program product includes instructions, and the instructions can be executed by the processor of the device 700 to implement the above method.

[0137] It should be noted that the above-mentioned devices, servers, computer-readable storage media, computer program products, etc. may also include other implementation methods according to the description of the method embodiments. The specific implementation methods can refer to the description of the relevant method embodiments and will not be described one by one here.

[0138] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.

[0139] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for determining online terminal data, characterized in that: include: Obtain a current reporting data structure corresponding to the terminal to be detected; the current reporting data structure includes multiple data bits; the time corresponding to each data bit is within a time range associated with the terminal to be detected, each data bit is used to indicate whether the terminal to be detected has reported data at the corresponding time, the time range is used to indicate a preset time range with a target time associated with the current reporting data structure as a deadline, and the target time is used to indicate the maximum value of the reporting time carried by all data reported by the terminal to be detected; According to the current reporting data structure and the time to be detected, a target terminal is screened out from the terminals to be detected; the target terminal is a terminal that includes a target data bit corresponding to the time to be detected in the corresponding current reporting data structure, and the target data bit indicates that there is data to report; According to the target terminal, the number of online terminals corresponding to the time to be detected is determined.

2. The method for determining online terminal data according to claim 1, characterized in that: The step of screening out a target terminal from the terminals to be detected according to the current reporting data structure and the time to be detected includes: From the terminals to be detected, a terminal whose corresponding currently reported data structure includes a target data bit corresponding to the time to be detected is selected as an initial terminal; From the initial terminals, a terminal whose reported data identifier of the target data bit is a target data identifier is selected as the target terminal; the target data identifier is used to indicate that there is data reported at the corresponding time.

3. The method for determining online terminal data according to claim 1, characterized in that: The obtaining of the current reporting data structure corresponding to the terminal to be detected includes: Obtain the terminal identification of the terminal to be detected; According to the terminal identifier, the corresponding relationship between the preset terminal identifier and the current reporting data structure is queried to obtain the current reporting data structure corresponding to the terminal to be detected.

4. The method for determining online terminal data according to claim 3, characterized in that: The correspondence between the preset terminal identifier and the current reported data structure is obtained in the following manner: Get the data reported by the terminal; Constructing a current reporting data structure of the terminal according to the data reported by the terminal; The terminal identifier of the terminal is obtained, and a corresponding relationship between the preset terminal identifier and the current reporting data structure is constructed according to the terminal identifier and the current reporting data structure.

5. The method for determining online terminal data according to claim 4, characterized in that: The step of constructing a current reporting data structure of the terminal according to the data reported by the terminal includes: Constructing an initial reporting data structure of the terminal according to the first data reported by the terminal; The initial reporting data structure is updated according to other data reported by the terminal to obtain a current reporting data structure of the terminal.

6. The method for determining online terminal data according to claim 5, characterized in that: The data bits included in the initial reporting data structure are arranged in descending order of time; The updating of the initial reporting data structure according to other data reported by the terminal to obtain the current reporting data structure of the terminal includes: Obtaining the reporting time of other data reported by the terminal; When the reporting time is greater than the target time associated with the initial reporting data structure, the target time associated with the initial reporting data structure is updated to the reporting time of the other data, and the initial reporting data structure is shifted right by N data bits as a whole, and the reporting data identifier of the first data bit is updated to the target data identifier, to obtain the current reporting data structure of the terminal; N is the absolute value of the difference between the reporting time of the other data and the target time; When the reporting time is less than the target time associated with the initial reporting data structure, and the reporting data identifier of the Mth data bit of the initial reporting data structure is different from the target data identifier, the reporting data identifier of the Mth data bit is updated to the target data identifier to obtain the current reporting data structure of the terminal; M=N+1.

7. The method for determining online terminal data according to any one of claims 1 to 6, characterized in that: The step of determining the number of online terminals corresponding to the time to be detected according to the target terminal includes: The terminal quantity of the target terminal is obtained, and the terminal quantity is used as the online terminal quantity corresponding to the to-be-detected time.

8. A device for determining online terminal data, characterized in that: include: A structure acquisition unit, configured to execute acquisition of a current reporting data structure corresponding to the terminal to be detected; The current reporting data structure includes multiple data bits; the time corresponding to each data bit is within the time range associated with the terminal to be detected, each data bit is used to indicate whether the terminal to be detected has reported data at the corresponding time, the time range is used to indicate a preset time range with a target time associated with the current reporting data structure as the end time, and the target time is used to indicate the maximum value of the reporting time carried by all data reported by the terminal to be detected; A terminal screening unit is configured to screen a target terminal from the terminals to be detected according to the current reporting data structure and the time to be detected; the target terminal is a terminal that includes a target data bit corresponding to the time to be detected in the corresponding current reporting data structure, and the target data bit indicates that there is data to report; The data determination unit is configured to determine the number of online terminals corresponding to the to-be-detected time according to the target terminal.

9. The device for determining online terminal data according to claim 8, characterized in that: The terminal screening unit is further configured to perform, from the terminals to be detected, screening out the terminals whose corresponding currently reported data structures include the target data bits corresponding to the time to be detected as the initial terminals; and to screen out, from the initial terminals, the terminals whose reported data identifiers of the target data bits are the target data identifiers as the target terminals; and the target data identifiers are used to indicate that there is data reported at the corresponding time.

10. The device for determining online terminal data according to claim 8, characterized in that: The structure acquisition unit is further configured to acquire a terminal identifier of the terminal to be detected; and query the correspondence between a preset terminal identifier and a current reporting data structure according to the terminal identifier to obtain the current reporting data structure corresponding to the terminal to be detected.

11. The device for determining online terminal data according to claim 10, characterized in that: The device also includes a relationship construction unit, which is configured to execute the acquisition of data reported by the terminal; construct a current reporting data structure of the terminal based on the data reported by the terminal; obtain the terminal identifier of the terminal, and construct a corresponding relationship between the preset terminal identifier and the current reporting data structure based on the terminal identifier and the current reporting data structure.

12. The device for determining online terminal data according to claim 11, characterized in that: The relationship building unit is further configured to build an initial reporting data structure of the terminal according to the first data reported by the terminal; and update the initial reporting data structure according to other data reported by the terminal to obtain a current reporting data structure of the terminal.

13. The device for determining online terminal data according to claim 12, characterized in that: The data bits included in the initial reporting data structure are arranged in descending order of time; The relationship building unit is also configured to execute the acquisition of the reporting time of other data reported by the terminal; when the reporting time is greater than the target time associated with the initial reporting data structure, the target time associated with the initial reporting data structure is updated to the reporting time of the other data, and the initial reporting data structure is shifted to the right by N data bits as a whole, and the reporting data identifier of the first data bit is updated to the target data identifier to obtain the current reporting data structure of the terminal; N is the absolute value of the difference between the reporting time of the other data and the target time; when the reporting time is less than the target time associated with the initial reporting data structure, and the reporting data identifier of the Mth data bit of the initial reporting data structure is different from the target data identifier, the reporting data identifier of the Mth data bit is updated to the target data identifier to obtain the current reporting data structure of the terminal; M=N+1.

14. The device for determining online terminal data according to any one of claims 8 to 13, characterized in that: The data determination unit is further configured to acquire the terminal quantity of the target terminal and use the terminal quantity as the online terminal quantity corresponding to the to-be-detected time.

15. A server, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the method for determining online terminal data according to any one of claims 1 to 7.

16. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of a server, the server is enabled to execute the method for determining online terminal data according to any one of claims 1 to 7.

17. A computer program product, comprising instructions, characterized in that: When the instruction is executed by a processor of the server, the server is enabled to execute the method for determining online terminal data according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Website user activity statistical method and system based on bitmap

    CN107508917A

  • Statistical method and device for online terminal equipment

    CN113472881A