A data display method and device
By synchronizing the time between the server and the data terminal, it is determined whether the data terminal has completed data statistics, and the display content is generated after the second display time. This solves the problem of errors between real-time statistical data display and actual data, and achieves more accurate data display.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-25
- Publication Date
- 2026-03-24
AI Technical Summary
In existing technologies, due to time and statistical errors during data transmission, there are discrepancies between the displayed real-time statistical data and the actual data at the time the statistics stop.
By synchronizing the time between the server and the data end, it is determined whether the data end has completed data statistics. After the second display time, real-time statistical data is used to generate display content to ensure that the data end completes data statistics as much as possible. The second display time is set later than the stop statistics time to reduce time errors.
It achieves time synchronization between the server and the data source, reducing data errors caused by time discrepancies, making the final displayed statistical data closer to the actual data, and reducing the error in the displayed content.
Smart Images

Figure CN115391415B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and in particular to a data display method and a data display device. Background Technology
[0002] In existing technologies, there are situations where real-time statistical data needs to be displayed. Examples include displaying the number of product orders, the number of people purchasing products, the number of people entering a train station, and the number of people waiting in hospital departments. Furthermore, the real-time statistical data can typically be stopped at a certain time. For example, when calculating the number of daily product orders, the calculation can be stopped at midnight, at which point the displayed order number stops at a certain value. Similarly, when calculating the number of people entering a train station, the calculation can be stopped when the station closes for the day, at which point the displayed number of vehicles entering the station also stops at a certain value. In these cases, people can generally assume that the real-time statistical data displayed at the time the calculation stops is the actual real-time statistical data at that point in time. However, due to potential time errors in data transmission and errors in data statistics, the real-time statistical data displayed at the time the calculation stops often differs from the actual real-time statistical data at that point in time. Summary of the Invention
[0003] In view of the above problems, embodiments of this application are proposed to provide a data display method and a data display device that overcome or at least partially solve the above problems.
[0004] To address the aforementioned problems, this application discloses a data display method, including:
[0005] Obtain real-time statistical data from the data source;
[0006] If the first display time is reached, synchronize the time with the data terminal and determine whether the data terminal has completed data statistics;
[0007] If the second display time is reached or the data terminal is determined to have completed data statistics, the real-time statistical data is used to generate statistical data display content; the second display time is later than the stop statistics time.
[0008] The statistical data display content is sent to the display terminal; the display terminal is used to display the statistical data display content.
[0009] Optionally, the step of obtaining real-time statistical data from the data source includes:
[0010] Obtain real-time statistical data from the data source and record the corresponding timestamp of the real-time statistical data.
[0011] Optionally, the method further includes:
[0012] If the data terminal has not completed data statistics by the second display time, the display data error will be determined by using the real-time statistical data obtained after the data terminal completes its statistics and the real-time statistical data obtained during the second display time.
[0013] Optionally, the method further includes:
[0014] If the first display time is reached, receive the data statistics confirmation request sent by the display terminal;
[0015] Based on whether the data terminal has completed data statistics, a response message is returned to the display terminal.
[0016] Optionally, the response information includes a synchronization timestamp, which is used to synchronize the time between the display terminal and the server.
[0017] Optionally, the step of sending the statistical data display content to the display terminal includes:
[0018] The display terminal receives a request to obtain display content, which is sent when the second display time is reached or when the display terminal receives the response information from the data terminal indicating that the data statistics have been completed.
[0019] In response to the request to obtain the display content, the statistical data display content is sent to the display terminal.
[0020] Optionally, the method further includes:
[0021] If the estimated time for the data terminal to complete data statistics is later than the second display time, the second display time will be adjusted.
[0022] This application also provides a data display method, which is applied to a data display system, the data display system including a data terminal, a server terminal, and a display terminal, the method including:
[0023] The server obtains real-time statistical data from the data source.
[0024] If the first display time is reached, the server determines whether the data terminal has completed data statistics, and the display terminal displays the first display content.
[0025] If the stop statistics time is reached, the display terminal will display the second display content;
[0026] If the second display time is reached, or the server determines that the data terminal has completed data statistics, the server uses the real-time statistical data to generate statistical data display content;
[0027] The server sends the statistical data display content to the display terminal;
[0028] The display terminal shows the statistical data.
[0029] This application embodiment also provides a data display device applied to a server, the device comprising:
[0030] The acquisition module is used to obtain real-time statistical data from the data source.
[0031] The synchronization module is used to synchronize the time with the data terminal when the first display time is reached, and to determine whether the data terminal has completed data statistics.
[0032] The generation module is used to generate statistical data display content using the real-time statistical data if the second display time is reached or the data terminal is determined to have completed data statistics; the second display time is later than the stop statistics time.
[0033] The sending module is used to send the statistical data display content to the display terminal; the display terminal is used to display the statistical data display content.
[0034] Optionally, the acquisition module includes:
[0035] The acquisition submodule is used to obtain real-time statistical data from the data source and record the statistical timestamps corresponding to the real-time statistical data.
[0036] Optionally, the device further includes:
[0037] The error determination module is used to determine the display data error if the data terminal has not completed data statistics by the second display time, after the data terminal completes the statistics, by using the real-time statistical data obtained after the data terminal completes the statistics and the real-time statistical data obtained at the second display time.
[0038] Optionally, the device further includes:
[0039] The receiving module is used to receive a data statistics confirmation request sent by the display terminal if the first display time is reached;
[0040] The return module is used to return response information to the display terminal based on whether the data terminal has completed data statistics.
[0041] Optionally, the response information includes a synchronization timestamp, which is used to synchronize the time between the display terminal and the server.
[0042] Optionally, the sending module includes:
[0043] The receiving submodule is used to receive the display content acquisition request sent by the display terminal. The display content acquisition request is sent when the second display time is reached or when the display terminal receives the response information from the data terminal indicating that the data statistics have been completed.
[0044] The return submodule is used to send the statistical data display content to the display terminal in response to the request for the display content.
[0045] Optionally, the device further includes:
[0046] The time adjustment module is used to adjust the second display time if the estimated time for the data terminal to complete data statistics is later than the second display time.
[0047] This application provides a data display device applied to a data display system. The data display system includes a data terminal, a server terminal, and a display terminal. The server terminal includes a data acquisition module, a time synchronization module, a content generation module, and a content sending module. The display terminal includes a first display module, a second display module, and a third display module.
[0048] The data acquisition module is used to acquire real-time statistical data from the data source.
[0049] The time synchronization module is used to synchronize the time with the data terminal when the first display time is reached, to determine whether the data terminal has completed data statistics, and the first display module is used to display the first display content.
[0050] The second display module is used to display the second display content if the stop statistics time is reached;
[0051] The content generation module is used to generate statistical data display content using the real-time statistical data if the second display time is reached or if the data terminal is determined to have completed data statistics.
[0052] The content sending module is used to send the statistical data display content to the display terminal;
[0053] The third display module is used to display the statistical data.
[0054] This application also discloses an apparatus, including:
[0055] One or more processors; and
[0056] One or more machine-readable media having instructions stored thereon, which, when executed by the one or more processors, cause the apparatus to perform one or more methods as described in the embodiments of this application.
[0057] This application also discloses one or more machine-readable media storing instructions that, when executed by one or more processors, cause the processors to perform one or more methods as described in this application.
[0058] The embodiments of this application have the following advantages:
[0059] The data display method of this application embodiment obtains real-time statistical data from a data terminal; if a first display time is reached, the time is synchronized with the data terminal, and it is determined whether the data terminal has completed data statistics; if a second display time is reached, or it is determined that the data terminal has completed data statistics, the real-time statistical data is used to generate statistical data display content; the statistical data display content is sent to a display terminal; the display terminal is used to display the statistical data display content. This allows for maximum synchronization between the server and the data terminal, reducing data errors caused by time discrepancies. Simultaneously, setting the second display time later than the stop statistics time ensures that the data terminal can complete data statistics as much as possible, making the final displayed statistical data content close to the data at the actual stop statistics time, further reducing the error between the displayed statistical data content and the actual data. Attached Figure Description
[0060] Figure 1 This is a flowchart illustrating the steps of an embodiment of a data display method according to this application;
[0061] Figure 2 This is a flowchart illustrating the steps of another embodiment of the data display method of this application;
[0062] Figure 3 This is a flowchart illustrating the steps of another embodiment of the data display method of this application;
[0063] Figure 4 This is a communication timing diagram according to this application;
[0064] Figure 5 This is a structural block diagram of an embodiment of a data display device according to this application;
[0065] Figure 6 This is a structural block diagram of another embodiment of the data display device of this application. Detailed Implementation
[0066] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0067] Reference Figure 1 The diagram illustrates a flowchart of an embodiment of a data display method according to this application, which is applied to a server and may specifically include the following steps:
[0068] Step 101: Obtain real-time statistical data from the data source;
[0069] In this embodiment of the application, the server can communicate with at least one data terminal. The data terminal can be used to collect data in real time and perform statistics on the data to obtain real-time statistical data, such as real-time statistics on the number of product orders or real-time statistics on the number of people entering a station.
[0070] Specifically, the data terminal can perform statistics on the collected data based on real-time stream computing to obtain real-time statistical data.
[0071] In this embodiment, the server can also communicate with at least one display terminal, which can be used to display the real-time statistical data in real time, and can also be used to display other real-time data obtained by processing the real-time statistical data in real time. The display terminal can be a display screen, projector, etc., and this application does not limit it.
[0072] In this embodiment of the application, in order to provide real-time statistical data to the display terminal, the server can obtain real-time statistical data from the data terminal. The server can also process the real-time statistical data as needed to obtain other real-time data; for example, it can summarize the real-time statistical data or perform data analysis on the real-time statistical data, etc.
[0073] Step 102: If the first display time is reached, synchronize the time with the data terminal and determine whether the data terminal has completed data statistics;
[0074] In this embodiment, the real-time statistical data typically needs to cease at a certain time, and the first display time can be a point in time earlier than and close to the time when statistics cease. If the first display time is reached, the server needs to prepare accordingly to display the real-time statistical data as accurately as possible after statistics cease. This allows the server to synchronize its time with the data source, ensuring that they remain as synchronized as possible and avoiding errors in the displayed content after statistics cease due to time asynchrony.
[0075] Meanwhile, the data terminal can determine whether it has completed data statistics, so as to determine whether the real-time statistical data provided by the data terminal is a relatively complete real-time statistical data after the statistics have stopped, and whether the server can use the real-time statistical data currently provided by the data terminal as the data to be displayed after the statistics have stopped.
[0076] In a specific implementation, the server can send a statistics completion confirmation request to the data terminal to determine whether the data terminal has completed data statistics. Simultaneously, the statistics completion confirmation request may also include a timestamp, allowing for time synchronization between the server and the data terminal while confirming whether the data terminal has completed data statistics.
[0077] Step 103: If the second display time is reached, or if it is determined that the data terminal has completed data statistics, the real-time statistical data is used to generate statistical data display content; the second display time is later than the stop statistics time.
[0078] In this embodiment, the second display time can be later than the stop statistics time. In this case, the real-time statistical data content can be displayed some time after the statistics stop. Since the display terminal is usually displaying the real-time statistical data content in real-time before the statistics stop, to avoid the absence of content between the stop statistics time and the second display time, preset second display content, such as special effects animation, can be played during this period. Simultaneously, to avoid the impression of non-real-time performance when playing preset second display content between the stop statistics time and the second display time, preset first display content, such as a countdown animation, can also be played between the first display time and the stop statistics time. This allows the first display content to connect with the second display content, reducing the non-real-time feel of the second display content.
[0079] In this embodiment, if it is determined that the data terminal has completed data statistics, the server can provide the display terminal with relatively complete real-time statistical data after the statistics have stopped. The server does not need to wait for the second display time to be reached, but can directly use the real-time statistical data to generate the statistical data display content. If the second display time is reached, in order to avoid the display terminal having no content to display, regardless of whether the data terminal has completed data statistics, the last real-time statistical data provided by the data terminal must be used to generate the statistical data display content.
[0080] The statistical data displayed may include the real-time statistical data, other real-time data obtained by the server after summarizing and analyzing the real-time statistical data, and multimedia, text, controls, and other data required for the interface to display the real-time statistical data.
[0081] Step 104: Send the statistical data display content to the display terminal; the display terminal is used to display the statistical data display content.
[0082] In this embodiment, the server can send the statistical data display content to the display terminal immediately after generating it. The display terminal can then display the statistical data display content in real time, thereby achieving real-time display of the relevant content of the real-time statistical data after the statistics have stopped and reducing the error between the displayed real-time statistical data and the actual real-time statistical data after the statistics have stopped.
[0083] The data display method of this application embodiment obtains real-time statistical data from a data terminal; if a first display time is reached, the time is synchronized with the data terminal, and it is determined whether the data terminal has completed data statistics; if a second display time is reached, or it is determined that the data terminal has completed data statistics, the real-time statistical data is used to generate statistical data display content; the statistical data display content is sent to a display terminal; the display terminal is used to display the statistical data display content. This allows for maximum synchronization between the server and the data terminal, reducing data errors caused by time discrepancies. Simultaneously, setting the second display time later than the stop statistics time ensures that the data terminal can complete data statistics as much as possible, making the final displayed statistical data content close to the data at the actual stop statistics time, further reducing the error between the displayed statistical data content and the actual data.
[0084] Reference Figure 2 The diagram illustrates a flowchart of another embodiment of the data display method of this application, which is applied to the server and may specifically include the following steps:
[0085] Step 201: Obtain real-time statistical data from the data source and record the statistical timestamp corresponding to the real-time statistical data;
[0086] In this embodiment, the server can communicate with at least one data terminal. The data terminal can be used to collect data in real time and perform statistics on the data to obtain real-time statistical data. The server can also communicate with at least one display terminal, which can be used to display the real-time statistical data in real time, and can also be used to display other real-time data obtained based on the real-time statistical data.
[0087] In this embodiment of the application, in order to provide real-time statistical data to the display terminal, the server can obtain real-time statistical data from the data terminal. The server can also process the real-time statistical data as needed to obtain other real-time data; for example, it can summarize the real-time statistical data or perform data analysis on the real-time statistical data, etc.
[0088] In this embodiment, the real-time statistical data may have a corresponding statistical timestamp. When the server acquires the real-time statistical data, it records the corresponding statistical timestamp to determine the time the server acquired the data. This facilitates rapid identification of potential data errors and further data analysis.
[0089] Step 202: If the first display time is reached, synchronize the time with the data terminal and determine whether the data terminal has completed data statistics;
[0090] In this embodiment, the real-time statistical data typically needs to cease at a certain time, and the first display time can be a point in time earlier than and close to the time when statistics cease. If the first display time is reached, the server needs to prepare accordingly to display the real-time statistical data as accurately as possible after statistics cease. This allows the server to synchronize its time with the data source, ensuring that they remain as synchronized as possible and avoiding errors in the displayed content after statistics cease due to time asynchrony.
[0091] Meanwhile, the data terminal can determine whether it has completed data statistics, so as to determine whether the real-time statistical data provided by the data terminal is a relatively complete real-time statistical data after the statistics have stopped, and whether the server can use the real-time statistical data currently provided by the data terminal as the data to be displayed after the statistics have stopped.
[0092] In one embodiment of this application, the method further includes:
[0093] S11, if the first display time is reached, receive the data statistics confirmation request sent by the display terminal;
[0094] In this embodiment, if the first display time is reached, in order to promptly display the real-time statistical data after the statistics have stopped, the display terminal may send a data statistics confirmation request to the server to confirm whether the server has received the real-time statistical data after the statistics have stopped from the data terminal and can then provide the statistical data display content to the display terminal. Thus, the server can receive the data statistics confirmation request sent by the display terminal.
[0095] S12, depending on whether the data terminal has completed data statistics, return response information to the display terminal.
[0096] In this embodiment of the application, the server can return response information to the display terminal based on whether the data terminal has completed data statistics, so that the display terminal can know whether the server can generate statistical data display content.
[0097] In a specific implementation, the display terminal can send a data statistics confirmation request to the server. Upon receiving the data statistics confirmation request, the server sends a statistics completion confirmation request to the data terminal. If the data terminal has completed data statistics, it can return a data statistics completion response to the server in response to the confirmation request. Upon receiving the response, the server returns a data statistics completion response to the display terminal, indicating that data statistics can be generated for display. If the data terminal has not completed data statistics, it can return a data statistics incomplete response to the confirmation request. Upon receiving this response, the server returns a response to the display terminal indicating that data statistics are incomplete and data statistics cannot be generated for display. Thus, the display terminal can determine whether the server can generate statistical data for display.
[0098] In one embodiment of this application, the response information includes a synchronization timestamp, which is used to synchronize the time between the display terminal and the server.
[0099] In this embodiment, the response information returned by the server to the display terminal may include a synchronization timestamp. This timestamp can be used to synchronize the time between the display terminal and the server. After receiving the response information, the display terminal can adjust its time based on the synchronization timestamp, taking into account factors such as network latency, to ensure that the time between the display terminal and the server is as synchronized as possible. Therefore, the server synchronizes its time with both the data terminal and the display terminal, ensuring that the time across all three terminals is as synchronized as possible, reducing time errors, and further improving the accuracy of the final displayed statistical data.
[0100] Step 203: If the second display time is reached, or if it is determined that the data terminal has completed data statistics, the real-time statistical data is used to generate statistical data display content; the second display time is later than the stop statistics time.
[0101] In this embodiment of the application, the second display time may be later than the stop statistics time. In this case, the relevant content of the real-time statistical data after the stop statistics can be displayed after a period of time.
[0102] In this embodiment, if it is determined that the data terminal has completed data statistics, the server can provide the display terminal with relatively complete real-time statistical data after the statistics have stopped. The server does not need to wait for the second display time to be reached, but can directly use the real-time statistical data to generate the statistical data display content. If the second display time is reached, in order to avoid the display terminal having no content to display, regardless of whether the data terminal has completed data statistics, the last real-time statistical data provided by the data terminal must be used to generate the statistical data display content.
[0103] The statistical data displayed may include the real-time statistical data, other real-time data obtained by the server after summarizing and analyzing the real-time statistical data, and multimedia, text, controls, and other data required for the interface to display the real-time statistical data.
[0104] In one embodiment of this application, the method further includes:
[0105] S21, if the data terminal has not completed data statistics by the second display time, wait for the data terminal to complete the statistics, and then use the real-time statistical data obtained after the data terminal has completed the statistics and the real-time statistical data obtained during the second display time to determine the display data error.
[0106] In this embodiment, if the data terminal has not completed data statistics by the second display time, to avoid the display terminal having no content to display and to prevent the statistical data from being displayed too late, resulting in a noticeable lack of real-time feedback, the server can use the real-time statistical data obtained at the second display time to generate the statistical data display content. Simultaneously, to ensure that the real-time statistical data related to the actual stop time of statistics can be published as soon as possible, the real-time statistical data obtained at the second display time can be recorded. Afterwards, the server can continue to wait for the data terminal to complete the statistics. After the data terminal completes the statistics, the server can obtain the real-time statistical data obtained after the data terminal completes its statistics and the real-time statistical data obtained at the second display time, determine the error between the two, and obtain the display data error.
[0107] In its implementation, the server can record the time of acquisition of the real-time statistical data and generate a statistical timestamp corresponding to the real-time statistical data. The server can then use the statistical timestamp to find the real-time statistical data acquired at the second display time and compare it with the real-time statistical data acquired after the data terminal completed its statistics to determine the display data error. Simultaneously, the server can also use the statistical timestamp to determine the time difference between the second display time and the time when the data terminal completed its statistics, thus allowing it to publish the relevant real-time statistical data at the actual time when statistics ceased as soon as possible after the data terminal completes its statistics.
[0108] In one embodiment of this application, the method further includes:
[0109] S31, Based on the real-time requirements of data display, adjust the second display time.
[0110] Different situations may require different levels of real-time performance in data display. For example, when displaying real-time attendance in a shopping mall, because the real-time attendance is continuously updated, even if the actual display time is significantly later than the time when the real-time attendance statistics stop, it won't create a noticeable sense of lag. On the other hand, during an event, the number of participants is displayed in real-time, and an update showing the final attendance is displayed at the event's end. In this case, if the real-time attendance is displayed significantly later than the time when the statistics stop, it will easily create a noticeable sense of lag.
[0111] Therefore, the time difference between the second display time and the stop statistics time can be dynamically adjusted according to actual needs. When there are high real-time requirements for data display, the second display time can be adjusted to have a shorter time difference with the stop statistics time to avoid a noticeable sense of non-real-time performance. When there are lower real-time requirements for data display, the second display time can be adjusted to have a longer time difference with the stop statistics time, allowing the data processing end to complete data statistics as much as possible.
[0112] Optionally, the time required for the data terminal to process data statistics can be estimated, and the time required for the data terminal to complete data statistics can be predicted.
[0113] If the estimated time for the data terminal to complete data statistics is later than the second display time, it can be assumed that the data terminal may not be able to complete data statistics by the second display time. In this case, the second display time can be adjusted appropriately according to actual needs, without causing a noticeable sense of non-real-time performance due to a significant difference between the second display time and the data completion time. The second display time can be delayed so that the data terminal can complete data statistics as much as possible, avoiding excessive errors.
[0114] If the estimated time for the data terminal to complete data statistics is earlier than the second display time, then it can be assumed that the data terminal can complete the data collection before the second display time. In this case, the second display time can be appropriately advanced according to actual needs to ensure the real-time nature of the data display. After advancing the second display time, the data terminal may or may not be able to complete the data statistics before the second display time; this application does not impose any restrictions on this.
[0115] Step 204: Send the statistical data display content to the display terminal; the display terminal is used to display the statistical data display content.
[0116] In this embodiment, the server can send the statistical data display content to the display terminal immediately after generating it. The display terminal can then display the statistical data display content in real time, thereby achieving real-time display of the relevant content of the real-time statistical data after the statistics have stopped and reducing the error between the displayed real-time statistical data and the actual real-time statistical data after the statistics have stopped.
[0117] In one embodiment of this application, the step of sending the statistical data display content to the display terminal includes:
[0118] S41, receive a display content acquisition request sent by the display terminal, the display content acquisition request is sent when the second display time is reached or when the display terminal receives the response information that the data terminal has completed data statistics;
[0119] In this embodiment, when the second display time is reached, the display terminal needs to display the statistical data content, and the display terminal can send a display content retrieval request to the server. Alternatively, when the display terminal receives the response information from the data terminal confirming that the data statistics have been completed, and the display terminal confirms that the server can provide the statistical data content, the display terminal can send a display content retrieval request to the server. Thus, the server can receive the display content retrieval request sent by the display terminal.
[0120] S42, in response to the request to obtain the display content, send the statistical data display content to the display terminal.
[0121] In this embodiment of the application, in response to the request to obtain the display content, the server can send the statistical data display content to the display terminal. Thus, the display terminal can display the statistical data display content in real time, thereby achieving real-time display of the relevant content of the real-time statistical data after the statistics have been completed and stopped.
[0122] As a specific example of this application, in a retail promotion scenario, a display terminal can be set up to show real-time retail statistics. For example, when a shopping website holds a limited-time promotion, a screen can be set up as the display terminal to show the real-time status of the promotion, such as total sales amount, number of products sold, and number of participants. Furthermore, when the limited-time promotion ends, the real-time update of the event status can be stopped, and the content displayed on the screen can be frozen to show the final statistical results of the promotion. However, the final statistical results of the event status are usually not completed immediately after the limited-time promotion ends, but rather there is a certain delay. If the real-time update of the event status is stopped as soon as the end of the promotion is displayed, it is easy to cause a certain error between the displayed event status and the actual final statistical results.
[0123] Therefore, the following methods can be used to display promotional activity data:
[0124] S51 obtains real-time statistics from retail data sources;
[0125] In this embodiment, the retail data terminal can collect retail data from shopping websites in real time and perform statistical analysis on the retail data to obtain real-time statistical data. The server can obtain the real-time statistical data from the retail data terminal.
[0126] S52, if the first display time is reached, synchronize the time with the data terminal and determine whether the retail data terminal has completed data statistics;
[0127] In this embodiment, if the first display time is reached, it can be considered that the time to stop statistics is about to be reached. At this time, in order to display the real-time statistical data as accurately as possible, the server can synchronize its time with the retail data terminal to avoid errors in the content displayed after the statistics stop due to time asynchrony. Simultaneously, a preset period can be used to determine whether the retail data terminal has completed data statistics, in order to obtain the real-time statistical data as quickly as possible.
[0128] S53, if the second display time is reached or the data terminal is determined to have completed data statistics, the real-time statistical data is used to generate promotional statistics display content; the second display time is later than the stop statistics time;
[0129] In this embodiment, the second display time can be later than the stop statistics time. In this case, the real-time statistical data after the stop statistics time can be displayed after a period of time. Between the stop statistics time and the second display time, the screen of the display terminal can play special effects animations such as fireworks explosions and flashing numbers to fill the blank time between the stop statistics time and the second display time, while reducing the sense of non-real-time caused by the inconsistency between the stop statistics time and the second display time.
[0130] Subsequently, if it is determined that the data terminal has completed data statistics, then there is no need to continue waiting for the second display time to be reached. Instead, the real-time statistical data can be used directly to generate promotional statistical display content.
[0131] If the second display time is reached but the data terminal has not yet completed the statistics, in order to avoid the display terminal having no content to display, regardless of whether the data terminal has completed the data statistics, the last real-time statistical data provided by the data terminal should be used to generate promotional statistics display content.
[0132] S54, send the promotion statistics display content to the display terminal; the display terminal is used to display the promotion statistics display content.
[0133] In this embodiment, promotional statistics are generated on the server side and sent to the display end. The display end can then show the promotional statistics to the audience to demonstrate the final status of the promotional activity and promote the activity.
[0134] At this point, if the second display time has arrived but the data collection has not yet been completed, we can continue to wait for the data collection to finish and generate accurate promotional activity statistics. Subsequently, as needed, other channels such as online media and print media can be used to publish the accurate promotional activity statistics. In this case, compared to the original real-time updates that stopped when the limited-time promotion ended (i.e., the statistics stopped), freezing the screen display to show the final promotional activity status allows the promotional statistics displayed during the second display time to be closer to the accurate statistics, effectively reducing data discrepancies between the real-time statistics and the subsequently published statistics.
[0135] The data display method of this application embodiment obtains real-time statistical data from a data terminal and records the corresponding statistical timestamps. If a first display time is reached, the time is synchronized with the data terminal, and it is determined whether the data terminal has completed data statistics. If a second display time is reached, or it is determined that the data terminal has completed data statistics, the real-time statistical data is used to generate statistical data display content. The statistical data display content is then sent to a display terminal, which displays the statistical data display content. This allows the time between the server and the data terminal to be synchronized as much as possible, reducing data errors caused by time errors. Furthermore, setting the second display time later than the stop statistics time ensures that the data terminal can complete data statistics as much as possible, making the final displayed statistical data content close to the data at the actual stop statistics time, further reducing the error between the displayed statistical data content and the actual data.
[0136] Reference Figure 3 The diagram illustrates a flowchart of another embodiment of the data display method of this application, which is applied to a data display system. The data display system includes a data terminal, a server terminal, and a display terminal, and may specifically include the following steps:
[0137] Step 301: The server obtains real-time statistical data from the data source.
[0138] In this embodiment, the server can communicate with at least one data terminal. The data terminal can be used to collect data in real time and perform statistics on the data to obtain real-time statistical data. The server can also communicate with at least one display terminal, which can be used to display the real-time statistical data in real time, and can also be used to display other real-time data obtained based on the real-time statistical data.
[0139] In this embodiment of the application, in order to provide real-time statistical data to the display terminal, the server can obtain real-time statistical data from the data terminal. The server can also process the real-time statistical data as needed to obtain other real-time data; for example, it can summarize the real-time statistical data or perform data analysis on the real-time statistical data, etc.
[0140] Step 302: If the first display time is reached, the server synchronizes the time with the data terminal, determines whether the data terminal has completed data statistics, and the display terminal displays the first display content.
[0141] In this embodiment, the real-time statistical data typically needs to cease at a certain time, and the first display time can be a point in time earlier than and close to the time when statistics cease. If the first display time is reached, the server needs to prepare accordingly to display the real-time statistical data as accurately as possible after statistics cease. This allows the server to synchronize its time with the data source, ensuring that they remain as synchronized as possible and avoiding errors in the displayed content after statistics cease due to time asynchrony.
[0142] Meanwhile, the data terminal can determine whether it has completed data statistics, so as to determine whether the real-time statistical data provided by the data terminal is a relatively complete real-time statistical data after the statistics have stopped, and whether the server can use the real-time statistical data currently provided by the data terminal as the data to be displayed after the statistics have stopped.
[0143] In this embodiment, after the server determines whether the data terminal has completed data statistics, the display terminal can prepare to display the statistical data and show the first display content. The first display content can be a countdown animation, special effects animation, real-time shooting content, etc., and this application does not limit it.
[0144] Step 303: If the stop statistics time is reached, the display terminal displays the second display content;
[0145] In this embodiment, if the stop statistics time is reached, the data terminal typically has not yet completed data collection. If the real-time statistical data obtained at the stop statistics time is directly displayed, it will have a significant error compared to the actual real-time statistical data at the stop statistics time. To avoid excessive error leading to low data reliability, the display terminal can display second display content, thereby extending the display time of the real-time statistical data at the stop statistics time to a certain extent, allowing the data terminal to provide real-time statistical data with completed data collection as much as possible. The second display content can be a countdown animation, special effects animation, real-time captured content, etc., and this application does not impose any restrictions on this.
[0146] In practical implementation, since the display terminal is already playing the first display content before stopping the time statistics, the second display content can be related to the first display content to a certain extent, thereby reducing the non-real-time feeling of the second display content. For example, the first display content can be a countdown animation, and the second display content can be a countdown end effect animation, thus associating the second display content with the first display content and reducing the non-real-time feeling of the second display content.
[0147] Step 304: If the second display time is reached, or the server determines that the data terminal has completed data statistics, the server uses the real-time statistical data to generate statistical data display content.
[0148] In this embodiment, if the second display time is reached, the second display content on the display terminal can be played out. To avoid the display terminal having no content to display, regardless of whether the data terminal has completed data statistics, the last real-time statistical data provided by the data terminal is used to generate the statistical data display content. If it is determined that the data terminal has completed data statistics, the server can provide the display terminal with more complete real-time statistical data after the statistics have stopped. The server does not need to wait for the data terminal to complete data statistics and can directly use the real-time statistical data to generate the statistical data display content.
[0149] The statistical data displayed may include the real-time statistical data, other real-time data obtained by the server after summarizing and analyzing the real-time statistical data, and multimedia, text, controls, and other data required for the interface to display the real-time statistical data.
[0150] Step 305: The server sends the statistical data display content to the display terminal;
[0151] In this embodiment of the application, the server can send the statistical data display content to the display terminal immediately after generating the statistical data display content, so that the display terminal can obtain the statistical data display content as soon as possible.
[0152] Step 306: The display terminal displays the statistical data.
[0153] In this embodiment of the application, the display terminal can display the statistical data content in real time, thereby realizing the real-time display of the relevant content of the real-time statistical data after the statistics have stopped, and reducing the error between the displayed relevant content of the real-time statistical data and the actual relevant content of the real-time statistical data after the statistics have stopped.
[0154] As an example of the present invention, in a retail promotion scenario, a display terminal can be set up to display real-time retail statistics. Therefore, promotional activity data can be displayed in the following manner:
[0155] S61, the server obtains real-time statistical data from the retail data terminal;
[0156] In this embodiment, the retail data terminal can collect retail data from shopping websites in real time and perform statistical analysis on the retail data to obtain real-time statistical data. The server can obtain the real-time statistical data from the retail data terminal.
[0157] S62, if the first display time is reached, the server synchronizes the time with the data terminal and determines whether the retail data terminal has completed data statistics; the display terminal displays the first display content.
[0158] In this embodiment, if the first display time is reached, it can be considered that the time to stop statistics is about to be reached. At this time, in order to display the real-time statistical data as accurately as possible, the server can synchronize its time with the retail data terminal to avoid errors in the content displayed after the statistics stop due to time asynchrony. Simultaneously, a preset period can be used to determine whether the retail data terminal has completed data statistics, in order to obtain the real-time statistical data as quickly as possible.
[0159] Simultaneously, the display terminal can also prepare to showcase the final status of the promotional activity. At this point, the display terminal can pause the real-time display of the promotional activity or reduce the proportion of the real-time promotional activity displayed on the screen. Furthermore, the display terminal can begin playing the first display content, indicating to viewers that the promotional activity is about to end. The first display content can be a countdown animation, fireworks animation, etc.
[0160] S63, if the stop statistics time is reached, the display terminal displays the second display content.
[0161] In this embodiment, if the promotional activity's end time is reached, i.e., the statistics stop, the display terminal can begin displaying the second display content since the retail data terminal has not yet completed data statistics. This extends the time for displaying the final status of the promotional activity to a certain extent, allowing the data terminal to complete data statistics as much as possible.
[0162] Meanwhile, to reduce the sense of immediacy in the second display content appearing later than the end of the statistics period, the second display content can be related to the first display content. For example, if the first display content is a countdown animation, then the second display content can be a countdown ending effect animation. If the first display content is a fireworks launch animation, then the second display content can be a fireworks explosion animation. Thus, viewers of the displayed content can, to some extent, perceive that the time for announcing the final details of the promotional activity has not yet arrived.
[0163] S64, if the second display time is reached or the data terminal is determined to have completed data statistics, the real-time statistical data is used to generate promotional statistics display content; the second display time is later than the stop statistics time;
[0164] In this embodiment of the application, if it is determined that the data terminal has completed data statistics, then there is no need to wait for the second display time to be reached. Instead, the real-time statistical data can be used directly to generate promotional statistical display content.
[0165] If the second display time is reached but the data terminal has not yet completed the statistics, in order to avoid the display terminal having no content to display, regardless of whether the data terminal has completed the data statistics, the last real-time statistical data provided by the data terminal should be used to generate promotional statistics display content.
[0166] S65, send the promotion statistics display content to the display terminal;
[0167] In this embodiment of the application, promotional statistics display content is generated on the server side and can be sent to the display terminal.
[0168] S66, the display terminal is used to display the promotion statistics display content.
[0169] In this embodiment of the application, the display terminal can show the audience promotional statistics to demonstrate the final status of the promotional activity and promote the promotional activity.
[0170] As an example of this application, Figure 4As shown in the communication timing diagram of this application, after the first display time is reached, the display terminal 401 can display the first display content and send a data statistics confirmation request to the server terminal 402. After receiving the data statistics confirmation request, the server terminal 402 sends a statistics completion confirmation request to the data terminal 403. If the data terminal 403 has not completed the data statistics, it can return a response message indicating that the data statistics are not completed to the server terminal 402 in response to the data statistics completion confirmation request. After receiving the response message from the data terminal 403, the server terminal 402 returns a response message to the display terminal 401 indicating that the data statistics are not completed and the statistical data display content cannot be generated. The display terminal 401 can continuously send data statistics confirmation requests to the server terminal 402 at a preset period to determine whether the statistical data display content can be generated. Simultaneously, after the first display content has finished playing, the second display content can begin playing. During the playback of the second display content, the display terminal 401 can also determine whether the second display content has finished playing. After the second display content finishes playing, i.e., the second display time is reached, or after the server 402 determines that data statistics are complete based on the response message from the data terminal 403, generates statistical data display content, and returns a message to the display terminal 401 indicating that data statistics are complete and statistical data display content can be generated, the display terminal 401 can send a display content retrieval request to the server 402. The server 402 returns the statistical data display content in response to the display content retrieval request. The display terminal 401 then displays the statistical data display content.
[0171] The data display method of this application involves the server obtaining real-time statistical data from the data source. If a first display time is reached, the server synchronizes its time with the data source and determines whether the data source has completed data statistics, and the display terminal displays the first display content. If a stop-statistics time is reached, the display terminal displays the second display content. If the second display time is reached, or the server determines that the data source has completed data statistics, the server uses the real-time statistical data to generate statistical data display content. The server sends the statistical data display content to the display terminal, and the display terminal displays the statistical data display content. This ensures that the time between the server and the data source is synchronized as much as possible, reducing data errors caused by time discrepancies. The display terminal displays the first display content at the first display time and the second display content at the stop-statistics time, allowing the second display time to be later than the stop-statistics time to ensure that the data source can complete data statistics as much as possible, making the final displayed statistical data content close to the data at the actual stop-statistics time, further reducing the error between the displayed statistical data content and the actual data.
[0172] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of this application are not limited to the described order of actions, because according to the embodiments of this application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of this application.
[0173] Reference Figure 5 The diagram illustrates a structural block diagram of an embodiment of a data display device according to this application, which may specifically include the following modules:
[0174] This application embodiment also provides a data display device applied to a server, the device comprising:
[0175] The acquisition module 501 is used to acquire real-time statistical data from the data source.
[0176] The synchronization module 502 is used to synchronize the time with the data terminal if the first display time is reached, and to determine whether the data terminal has completed data statistics.
[0177] The generation module 503 is used to generate statistical data display content using the real-time statistical data if the second display time is reached or the data terminal is determined to have completed data statistics; the second display time is later than the stop statistics time.
[0178] The sending module 504 is used to send the statistical data display content to the display terminal; the display terminal is used to display the statistical data display content.
[0179] In one embodiment of this application, the acquisition module includes:
[0180] The acquisition submodule is used to obtain real-time statistical data from the data source and record the statistical timestamps corresponding to the real-time statistical data.
[0181] In one embodiment of this application, the apparatus further includes:
[0182] The error determination module is used to determine the display data error if the data terminal has not completed data statistics by the second display time, after the data terminal completes the statistics, by using the real-time statistical data obtained after the data terminal completes the statistics and the real-time statistical data obtained at the second display time.
[0183] In one embodiment of this application, the apparatus further includes:
[0184] The receiving module is used to receive a data statistics confirmation request sent by the display terminal if the first display time is reached;
[0185] The return module is used to return response information to the display terminal based on whether the data terminal has completed data statistics.
[0186] In one embodiment of this application, the response information includes a synchronization timestamp, which is used to synchronize the time between the display terminal and the server.
[0187] In one embodiment of this application, the sending module includes:
[0188] The receiving submodule is used to receive the display content acquisition request sent by the display terminal. The display content acquisition request is sent when the second display time is reached or when the display terminal receives the response information from the data terminal indicating that the data statistics have been completed.
[0189] The return submodule is used to send the statistical data display content to the display terminal in response to the request for the display content.
[0190] Reference Figure 6 The diagram illustrates a structural block diagram of an embodiment of a data display device according to this application. This device is applied to a data display system, which includes a data terminal, a server terminal, and a display terminal. The server terminal includes a data acquisition module 601, a time synchronization module 602, a content generation module 605, and a content sending module 606. The display terminal includes a first display module 603, a second display module 604, and a third display module 607.
[0191] The data acquisition module 601 is used to acquire real-time statistical data from the data terminal;
[0192] The time synchronization module 602 is used to synchronize the time with the data terminal if the first display time is reached, to determine whether the data terminal has completed data statistics, and the first display module 603 is used to display the first display content;
[0193] The second display module 604 is used to display the second display content if the stop statistics time is reached;
[0194] The content generation module 605 is used to generate statistical data display content using the real-time statistical data if the second display time is reached or if the data terminal is determined to have completed data statistics.
[0195] The content sending module 606 is used to send the statistical data display content to the display terminal;
[0196] The third display module 607 is used to display the statistical data content.
[0197] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.
[0198] This application also provides an apparatus, including:
[0199] One or more processors; and
[0200] One or more machine-readable media having instructions stored thereon, which, when executed by the one or more processors, cause the device to perform the methods described in the embodiments of this application.
[0201] This application also provides one or more machine-readable media storing instructions that, when executed by one or more processors, cause the processors to perform the methods described in this application.
[0202] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0203] Those skilled in the art will understand that embodiments of this application can be provided as methods, apparatus, or computer program products. Therefore, embodiments of this application can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of this application can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0204] This application describes embodiments with reference to flowchart illustrations and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0205] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0206] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0207] Although preferred embodiments of the present application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present application.
[0208] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.
[0209] The above provides a detailed description of a data display method and a data display device provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A data display method, characterized in that, It is applied to the server side, and the method includes: Obtain real-time statistical data from the data source; If the first display time is reached, the time is synchronized with the data terminal, and it is determined whether the data terminal has completed data statistics; the first display time is earlier than and close to the stop statistics time. If the second display time is reached or the data terminal is determined to have completed data statistics, the real-time statistical data is used to generate statistical data display content; the second display time is later than the stop statistics time. The statistical data display content is sent to the display terminal; the display terminal is used to display the statistical data display content. If the data terminal has not completed data statistics by the second display time, the display data error will be determined by using the real-time statistical data obtained after the data terminal completes its statistics and the real-time statistical data obtained during the second display time.
2. The method according to claim 1, characterized in that, The step of obtaining real-time statistical data from the data source includes: Obtain real-time statistical data from the data source and record the corresponding timestamp of the real-time statistical data.
3. The method according to claim 1, characterized in that, The method further includes: If the first display time is reached, receive the data statistics confirmation request sent by the display terminal; Based on whether the data terminal has completed data statistics, a response message is returned to the display terminal.
4. The method according to claim 3, characterized in that, The response information includes a synchronization timestamp, which is used to synchronize the time between the display terminal and the server.
5. The method according to claim 3, characterized in that, The step of sending the statistical data display content to the display terminal includes: The display terminal receives a request to obtain display content, which is sent when the second display time is reached or when the display terminal receives the response information from the data terminal indicating that the data statistics have been completed. In response to the request to obtain the display content, the statistical data display content is sent to the display terminal.
6. The method according to claim 1, characterized in that, The method further includes: Based on the real-time requirements of data display, the second display time is adjusted.
7. A data display method, characterized in that, It is applied to a data visualization system, which includes a data terminal, a server terminal, and a display terminal. The method includes: The server obtains real-time statistical data from the data source. If the first display time is reached, the server determines whether the data terminal has completed data statistics, and the display terminal displays the first display content; the first display time is earlier than and close to the stop statistics time; If the stop statistics time is reached, the display terminal will display the second display content; If the second display time is reached, or the server determines that the data terminal has completed data statistics, the server uses the real-time statistical data to generate statistical data display content; The server sends the statistical data display content to the display terminal; The display terminal shows the statistical data. If the data terminal has not completed data statistics by the second display time, the server waits for the data terminal to complete the statistics and then uses the real-time statistical data obtained after the data terminal completes the statistics and the real-time statistical data obtained during the second display time to determine the display data error.
8. A data display device, characterized in that, It is applied to the server side, and the device includes: The acquisition module is used to obtain real-time statistical data from the data source. The synchronization module is used to synchronize the time with the data terminal when the first display time is reached, and to determine whether the data terminal has completed data statistics; the first display time is earlier than and close to the stop statistics time. The generation module is used to generate statistical data display content using the real-time statistical data if the second display time is reached or the data terminal is determined to have completed data statistics; the second display time is later than the stop statistics time. The sending module is used to send the statistical data display content to the display terminal; the display terminal is used to display the statistical data display content. The error determination module is used to determine the display data error if the data terminal has not completed data statistics by the second display time, after the data terminal completes the statistics, by using the real-time statistical data obtained after the data terminal completes the statistics and the real-time statistical data obtained at the second display time.
9. A data display device, characterized in that, It is applied to a data display system, which includes a data terminal, a server terminal, and a display terminal. The server terminal includes a data acquisition module, a time synchronization module, a content generation module, and a content sending module. The display terminal includes a first display module, a second display module, and a third display module. The data acquisition module is used to acquire real-time statistical data from the data source. The time synchronization module is used to synchronize the time with the data terminal when the first display time is reached, to determine whether the data terminal has completed data statistics, and the first display module is used to display the first display content; the first display time is earlier than and close to the stop statistics time; The second display module is used to display the second display content if the stop statistics time is reached; The content generation module is used to generate statistical data display content using the real-time statistical data if the second display time is reached or if the data terminal is determined to have completed data statistics. If the data terminal has not completed data statistics by the second display time, the server waits for the data terminal to complete the statistics and then uses the real-time statistical data obtained after the data terminal completes the statistics and the real-time statistical data obtained at the second display time to determine the display data error. The content sending module is used to send the statistical data display content to the display terminal; The third display module is used to display the statistical data.
10. An electronic device, characterized in that, include: One or more processors; and One or more machine-readable media having instructions stored thereon, which, when executed by the one or more processors, cause the device to perform the method as described in any one of claims 1-6 or 7.
11. One or more machine-readable media having instructions stored thereon that, when executed by one or more processors, cause the processors to perform the method as described in any one of claims 1-6 or 7.
Citation Information
Patent Citations
Server side and client processing methods and server for optimizing data display error of client and client capable of carrying out data display
CN109361767A