CN109040018B - Data matching method and device, display terminal and readable storage medium - Google Patents

Data matching method and device, display terminal and readable storage medium Download PDF

Info

Publication number
CN109040018B
CN109040018B CN201810665154.0A CN201810665154A CN109040018B CN 109040018 B CN109040018 B CN 109040018B CN 201810665154 A CN201810665154 A CN 201810665154A CN 109040018 B CN109040018 B CN 109040018B
Authority
CN
China
Prior art keywords
data
matching
display terminal
preset
target application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810665154.0A
Other languages
Chinese (zh)
Other versions
CN109040018A (en
Inventor
李宏强
吕涧池
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL Digital Technology Co Ltd
Original Assignee
Shenzhen TCL Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL Digital Technology Co Ltd filed Critical Shenzhen TCL Digital Technology Co Ltd
Priority to CN201810665154.0A priority Critical patent/CN109040018B/en
Publication of CN109040018A publication Critical patent/CN109040018A/en
Application granted granted Critical
Publication of CN109040018B publication Critical patent/CN109040018B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • H04L65/765Media network packet handling intermediate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • H04L67/5682Policies or rules for updating, deleting or replacing the stored data

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a data matching method, a data matching device, a display terminal and a readable storage medium, wherein the data matching method comprises the following steps: caching code stream data received within a preset time length before the current time of a display terminal to generate cache data, and marking a timestamp corresponding to the code stream data time for each application data in the cache data; when a data matching request is detected, matching the data from the cached data, and matching target application data corresponding to the request; and if the target application data are matched, obtaining effective target application data with the timestamp in a preset effective time interval. The invention shortens the interval time of the application of the display terminal and the matching of the code stream data, thereby improving the efficiency of the data matching.

Description

Data matching method and device, display terminal and readable storage medium
Technical Field
The present invention relates to the field of network technologies, and in particular, to a data matching method and apparatus, a display terminal, and a readable storage medium.
Background
With the rapid development of internet technology, machines (such as televisions and mobile phones) with display terminals are used more and more widely, and the requirements on the operation speed, the smoothness and the like of the use of the machines are higher and higher, so that it is important that the display terminal application is quickly matched with required application data from code stream data, and otherwise, the operation smoothness of the display terminal is greatly influenced. For example, in The Digital television standard ISO13818-6, stream data of DSMCC (The Digital Storage Media Command and Control, Digital Storage Media Command and Control extension protocol) adopts a carousel mechanism, application data is uniformly inserted into a stream, and in a conventional application data matching process, sometimes, matching of specified target application data requires waiting for a complete stream data period, and in this case, an HBBTV (Hybrid Broadcast/Broadcast TV, DVB-compatible content distribution platform) application using DSMCC data always waits until data matching, and an application cannot be opened. Therefore, the conventional data matching method is easy to wait for a long time when data matching is performed, so that the application data matching speed is too slow.
Disclosure of Invention
The embodiment of the invention provides a data matching method, a data matching device, a display terminal and a readable storage medium, and aims to solve the technical problem that the application data matching speed is too low due to the fact that long-time waiting is easy to occur when a conventional data matching method is used for data matching.
To achieve the above object, a data matching method provided in an embodiment of the present invention includes:
caching code stream data received within a preset time length before the current time of a display terminal to generate cache data, and marking a timestamp corresponding to the code stream data time for each application data in the cache data;
when a data matching request is detected, matching target application data corresponding to the data matching request from the cache data;
and if the target application data is matched in the cache data, obtaining effective target application data with the timestamp in a preset effective time interval.
Optionally, when a data matching request is detected, the step of matching, from the cached data, the target application data corresponding to the data matching request includes:
when a data matching request is detected, sequencing each application data to generate an application data sequence based on the time sequence order of the timestamps of each application data in the cache data;
and matching the data identification corresponding to the data matching request with each application data in the application data sequence one by one, and taking the application data matched with the data identification as target application data.
Optionally, the step of sorting the application data to generate the application data sequence includes:
in the process that a display terminal continuously receives new code stream data, dynamically discarding the code stream data of which the time interval between a timestamp and the current time exceeds a preset duration in the cache data;
and continuing caching new code stream data to update the cached data.
Optionally, when the data matching request is detected, the step of matching, from the cached data, the target application data corresponding to the data matching request includes:
and if the target application data is not matched in the cache data, matching the target application data in new code stream data continuously received by the display terminal until the target application data is matched.
Optionally, the data matching method includes:
judging whether the residual memory space of the display terminal is smaller than a preset space value or not, and if the residual memory space is smaller than the preset space value, outputting an adjustment prompt of the preset time length;
and adjusting the preset duration according to an adjustment instruction input by a user based on the adjustment prompt.
Optionally, if the remaining memory space is smaller than the preset space value, the step of outputting the adjustment prompt for the preset duration includes:
if the residual memory space is smaller than the preset space value, judging whether the matching success rate of the current target application data of the display terminal is larger than the preset matching value;
and if the matching success rate of the target application data is greater than a preset matching value, outputting a first adjustment prompt for shortening the preset time.
Optionally, the step of determining whether the current target application data matching success rate of the display terminal is greater than a preset matching value includes:
and if the success rate of the target application data matching is smaller than or equal to a preset matching value, outputting a second adjustment prompt for increasing the preset duration, and releasing the memory space occupied by the preset non-key application of the display terminal.
In addition, to achieve the above object, the present invention also provides a data matching apparatus, including:
the cache module is used for caching the code stream data received within a preset time length before the current time of the display terminal to generate cache data, and marking a timestamp corresponding to the code stream data time for each application data in the cache data;
the matching module is used for matching target application data corresponding to the data matching request from the cache data when the data matching request is detected;
and the obtaining module is used for obtaining the effective target application data with the timestamp in the preset effective time interval if the target application data is matched in the cache data.
The present invention also provides a display terminal, including: the data matching system comprises a memory, a processor and a data matching program stored on the memory and capable of running on the processor, wherein the data matching program realizes the steps of the data matching method when being executed by the processor.
The invention also provides a storage medium readable by a display terminal, wherein a data matching program is stored on the storage medium readable by the display terminal, and the data matching program realizes the steps of the data matching method when being executed by a processor.
According to the data matching method, the data matching device, the display terminal and the readable storage medium, the code stream data received within the preset time length before the current time of the display terminal are cached, so that the cache data are generated, and the timestamp corresponding to the code stream data time is marked for each application data in the cache data; if data matching request information sent by a display terminal is detected, the display terminal application matches target application data corresponding to the data matching request with application data already arranged in the buffered data, and if the target application data is matched from the buffered data, effective target application data with a timestamp in an effective time interval needs to be acquired; and if the target application data is not matched with the cache data, the target application data needs to be matched with new code stream data continuously received by the display terminal until the target application data is matched. In the data matching process, the phenomenon that the matching is unsuccessful, the next code stream data is matched after waiting for a period of time is avoided, the data without delay is matched after the data is matched successfully, the matched time point is fed back after the matching is successful, namely the timestamp is obtained, the stability of the data sequence is ensured, the expired data is not provided for the display terminal application for matching any more, the frequency of waiting for a complete period is reduced when the display terminal application is matched with the data, the user waiting time is reduced, the data matching speed is accelerated, and the technical problem that the application data matching speed is too slow due to the fact that the long-time waiting is easy to occur when the conventional data matching method is used for data matching is solved.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a data matching method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of a data matching method according to the present invention;
FIG. 4 is a schematic diagram illustrating a segment of code stream cache data sequence received by a display terminal in the data matching method according to the present invention;
FIG. 5 is a flowchart illustrating a data matching method according to a fourth embodiment of the present invention;
fig. 6 is a functional block diagram of an embodiment of a data matching apparatus according to the present invention.
In order to make the technical solution of the present invention clearer and clearer, the following detailed description is made with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
As shown in fig. 1, the data matching method of the present invention is applied to a display terminal, and fig. 1 is a schematic structural diagram of the display terminal in a hardware operating environment according to an embodiment of the present invention.
The display terminal of the embodiment of the invention can comprise a plurality of devices supporting remote control functions, such as a smart phone, a television and the like.
As shown in fig. 1, the display terminal may include a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the display terminal configuration shown in fig. 1 does not constitute a limitation of the display terminal, and that the display terminal may include more or less components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer-readable storage medium, may include therein an operating system, a network communication module, a user interface module, a data matching program.
In the display terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server, and performing data communication with the background server, so that data in a code stream can be transmitted; the user interface 1003 is mainly used for connecting other mobile terminals or servers and performing data communication with the other mobile terminals or servers; and the processor 1001 may be used to invoke a data matching program stored in the memory 1005.
Based on the system architecture, the mobile terminal hardware structure and the communication system, the data matching method provided by the invention has various embodiments.
The invention provides a data matching method, in a first embodiment of the data matching method, referring to fig. 2, the method comprises:
step S10, caching the code stream data received within a preset time before the current time of the display terminal to generate cache data, and marking a timestamp corresponding to the code stream data time for each application data in the cache data;
the Cache is a buffer area (called Cache) for data exchange, when data is to be read by a certain hardware, the required data is firstly searched from the Cache, if the required data is found, the data is directly executed, and if the required data is not found, the required data is found from a memory. Since caches run much faster than memory, the role of caches is to help the hardware run faster.
The preset duration is a fixed duration set in advance by a display terminal system or set by a user, and the code stream refers to the data flow used by the video file in unit time and is also called code rate, and is the most important part in picture quality control in video coding; a time stamp is a mark, usually a sequence of characters, that represents a complete, verifiable piece of data that exists before a particular time, uniquely identifying the time of a moment. In the process of sending data to the display terminal by the code stream data, the display terminal caches only the code stream data received within a preset time period before the current time so as to generate cache data, the display terminal caches only the code stream data received within a fixed time period preset by a display terminal system or set by a user, and does not cache other data, and time stamps corresponding to the code stream data time are marked on each application data in the cache data, namely, the code stream data received within the preset time period is cached at the display terminal so as to generate the cache data, and simultaneously, time stamps corresponding to the code stream data time need to be marked on each application data in the cache data so as to feed back a time point when the display terminal matches corresponding target application data in the cache data.
For example, taking a segment of 60 seconds of data in the code stream as an example, at the current time, the code stream already transmits data of-1 to-19 seconds to the display terminal, then the data of-1 to-19 seconds are cached, and the cached data all mark a timestamp corresponding to the time of the code stream data.
Further, the display terminal acquires required demand information according to the requirements of the user, and sends matching request information to the code stream, for example, when the display terminal is a television, a channel of the television is changed, when the user changes the channel as required, the user sends information of a channel changing instruction to the television through key operation or sliding operation, and when the television receives the information of the channel changing instruction, the matching request information is sent to the code stream through an interface based on a certain preset logical relationship.
Step S20, when a data matching request is detected, matching target application data corresponding to the data matching request from the buffer data;
when data matching request information sent by a display terminal to code stream data based on an interface is received, code stream cache data received within a preset time length before the current time of the display terminal is matched with display terminal application, target application data required by the display terminal application is matched, namely the display terminal application only matches with the code stream cache data received within the preset time length and does not match with other data, waiting is not needed in the data matching process, the display terminal application can be directly matched with the next cache data without delay until the target application data corresponding to the data matching request in the display terminal application and the cache data are successfully matched, and time is saved when the display terminal application matches the data.
For example, when the display terminal is a computer, taking a text folder in the computer as an example, if there are 3 data points 10, 11, and 12 in a section of code stream, the current text folder needs data 12, and the text folder is firstly matched with the data 10 based on a preset logical relationship, and if the matching is unsuccessful; then the match is made with data 11 immediately without delay and the match is unsuccessful; the match with the data 12 is made immediately without delay and the match is successful.
Step S30, if the target application data are matched in the cache data, obtaining effective target application data with a timestamp in a preset effective time interval;
if the display terminal application is matched with the target application data, the timestamp of the effective target application data in the preset effective time interval is required to be acquired, namely the time point when the display terminal application is matched with the target application data is required to be fed back, so that the data sequence in the code stream data is ensured to be normally sequenced, the overdue data is not provided for the display terminal application for matching, wherein the overdue data refers to cache data which is matched by the display terminal application but is not successfully matched, and the phenomena of data confusion and damage to a data stream system of the ISO13818-6 standard are avoided. The stability of the code stream data of the display terminal is ensured when the display terminal is matched with the target application data in the cache data.
For example, in the display terminal, taking a piece of cache data with a preset duration of 60 seconds as an example, if the target application data is exactly located at the data position of the-19 second in the piece of cache data, when the display terminal applies the target application data exactly matched with the data position of the-19 second, the currently matched time point, that is, the timestamp corresponding to the target application data, that is, the-19 second is immediately fed back.
In this embodiment, the display terminal application caches, according to the user's demand information, code stream data received within a preset time before the current time of the display terminal, so as to generate cache data, and marks a timestamp corresponding to the code stream data time for each application data in the cache data; when detecting that the data sent by the display terminal matches the request information, the display terminal application matches the target application data corresponding to the data matching request from the buffer data, and if the target application data is matched from the buffer data, the effective target application data with the timestamp in the effective time interval needs to be obtained. Therefore, the stability of the data sequence in the code stream is ensured, the expired data is not provided for the display terminal to be matched any more, and meanwhile, the technical problem that the application data matching speed is too low due to the fact that long-time waiting is easy to occur in the conventional data matching method when data matching is carried out is solved, so that the data matching speed is higher, the efficiency is higher, the waiting time is shortened for a user, and the experience effect is improved.
A second embodiment of the data matching method according to the present invention is further proposed on the basis of the first embodiment of the present invention, which is a refinement of step S20 of the first embodiment of the present invention, and referring to fig. 3, step S20 includes:
step S21, when a data matching request is detected, sequencing each application data based on the time sequence order of the time stamps of each application data in the cache data to generate an application data sequence;
and step S22, matching the data identification corresponding to the data matching request with each application data in the application data sequence one by one, and taking the application data matched with the data identification as target application data.
The data identification can be used for determining target application data required by the display terminal application, and sequencing data in the cache data by introducing a time axis concept (by means of an internet technology, events on one side or multiple sides are connected in series according to a time sequence to form a relatively complete recording system and then displayed to a user in a picture and text mode). The data are sequenced according to the time sequence of the time stamps of the application data in sequence, namely, in the cache data with the time stamps received by the display terminal, the data are sequenced according to the sequence in the process of sending the data to the display terminal in sequence, so that an application data sequence is generated in the display terminal for the display terminal to use for matching, and the display terminal uses the data identification corresponding to the data matching request to match with the application data in the cache data one by one in the sequencing mode, so that certain data are prevented from being missed in the process of matching the cache data with the application data of the display terminal, and the accuracy of data matching is improved. Referring to fig. 4, the cache data is sequentially sorted from the-60 th data to the-1 st data according to the time sequence of the timestamps of the application data in the cache data, so as to be matched by the display terminal application.
Specifically, the step of sorting the application data in the cache data to generate the application data sequence includes:
step S23, dynamically discarding code stream data in which the time interval between the timestamp and the current time exceeds the preset time length in the cache data in the process that the display terminal continuously receives new code stream data;
the dynamic discarding may be code stream data that is determined whether a time interval between a timestamp in the cache data and the current time exceeds a preset duration, if so, discarding outdated data, and if not, not discarding; in the process that a display terminal continuously receives new code stream data, if the length of the new code stream data received by the display terminal does not exceed the length of the code stream data with preset duration, the new code stream data is not discarded, if the length of the new code stream data received by the display terminal exceeds the length of the code stream data with preset duration, the code stream data with the timestamp exceeding the preset duration from the current time interval in the cache data is discarded, only the data with the preset duration is discarded, namely the cache data exceeds the preset duration, the cache data is discarded regardless of whether the display terminal is matched or not, the display terminal application and the cache data are not matched, but the cache is not discarded within the preset duration, and only when the cache data exceeds the preset duration, the cache data is discarded. For example, taking 60 seconds of buffered data as an example, if the current time passes 10 seconds, the data of-60 seconds is discarded, and only the data within-50 seconds is retained, and the preset duration is 60 seconds. Therefore, the phenomena that the system runs unsmoothly, non-key applications are closed and deleted by the system, the system is restarted and the like due to the fact that a large amount of memory of the display terminal is occupied by data are avoided.
Step S24 continues to cache the new code stream data to update the cache data.
Furthermore, when a data matching request is detected, the data in the code stream continuously sends application data to the display terminal for caching, so that cached data is formed, the cached data in the display terminal is updated in real time, the cached data in a preset time length is ensured not to be interrupted when the cached data is matched with the display terminal application, and the time of the success rate of data matching is prolonged. For example, when the time length set by the display terminal is 60 seconds at the current time, the data in the code stream has sent 60 seconds of application data to the display terminal, the display terminal also buffers the application data and stamps a time stamp to form buffer data, and after 10 seconds of time elapses, the code stream has sent 70 seconds of data to the display terminal, that is, the sending has never been stopped.
In the embodiment, in the preset duration, the display terminal sorts the cache application data with the timestamp transmitted in the code stream, and matches the cache application data with the display terminal application according to the sorting mode, thereby avoiding missing some data when the display terminal application matches the cache data, and in the matching process, constantly updating the cache data in the preset duration, discarding old cache data, so that the data matching time is uninterrupted, the user waiting time is reduced, and the technical problem that the application data matching speed is too slow due to long-time waiting easily occurring when the conventional data matching method matches data is solved.
Based on the first embodiment, a third embodiment of the data matching method for a display terminal application according to the present invention is provided, where in this embodiment, after step S20, the method further includes:
step S40, if the target application data is not matched in the cache data, matching the target application data in new code stream data continuously received by the display terminal until the target application data is matched;
if the display terminal application is not matched with the target application data, the code stream continuously sends data to the display terminal for caching to generate cached data, so that the display terminal can be continuously matched until the matching is successful, and the target application data does not need to be subjected to timestamp validity detection after being matched, and can be directly used as valid target application data for matching of the display terminal application.
In this embodiment, when the display terminal application is matched with the data in the code stream, and the data in the display terminal application and the code stream is matched with the first data, the display terminal application and the data in the code stream are not matched, and do not need to wait for a period of time to match the next code stream data. The method has the advantages that the interval time between the display terminal application and the code stream data matching is shortened when a user uses the display terminal application, the data matching efficiency is further improved, and the technical problem that the application data matching speed is too slow due to the fact that long-time waiting is easy to occur when the conventional data matching method is used for data matching is solved.
Based on the first embodiment, a fourth embodiment of the data matching method for a display terminal application according to the present invention is provided, and referring to fig. 5, in the embodiment, the data matching method includes:
step S50, judging whether the residual memory space of the display terminal is smaller than a preset space value, and if the residual memory space is smaller than the preset space value, outputting an adjustment prompt of the preset time length;
the preset space value may be a memory space value occupied by the code stream data received by the display terminal in a system memory space within a preset duration; whether the residual memory space of the display terminal is smaller than a preset space value or not can be determined according to whether the display terminal system runs smoothly or whether non-key applications are deleted by the system or not, and the like. For example, when the display terminal is a television, a user can feel an obvious pause phenomenon and find that some non-critical application software cannot be opened when operating the television, and the television reminds people that the current memory space is insufficient and the available memory space is very small, and at the moment, the user needs to adjust the internal memory space of the mobile phone.
Step S60, adjusting the preset duration according to an adjustment instruction input by a user based on an adjustment prompt;
if an adjusting instruction sent by a user is obtained, the cached code stream data received by the display terminal in the preset time before the current time can be adjusted according to the adjusting instruction sent by the user, if the remaining memory space of the display terminal is found to be insufficient and the available remaining memory space of the display terminal is very small, the preset time can be reduced, namely the adjusting time corresponding to the adjusting instruction is reduced, the reduced adjusting time is set as the preset time, and the cached code stream data received by the system memory in the same time period is reduced; the normal operation of the display terminal is prevented from being influenced. However, if the remaining memory space of the display terminal is very sufficient and the user wants to accelerate the data matching response time, the user can also adjust the preset time length to achieve the purpose of the user, and the length of the preset time length is increased, that is, the adjustment time length corresponding to the adjustment instruction is increased, and the increased adjustment time length is set as the preset time length, so that the buffer code stream data received by the memory space of the system in the same time period is more, the application of the display terminal can be faster and more effectively matched with the buffer data, and the data matching time of the application of the display terminal is accelerated. Meanwhile, the phenomena that the system runs unsmoothly, non-key applications are closed and deleted by the system, the system is restarted and the like due to the fact that a large amount of system memory is occupied are avoided.
In this embodiment, in the technical solution of the step of determining whether the remaining memory space of the display terminal is smaller than the preset space, specifically, the method includes the following steps:
step S51, if the residual memory space is smaller than the preset space value, judging whether the matching success rate of the current target application data of the display terminal is larger than the preset matching value;
the preset matching value can be a preset power value of target application data corresponding to the matching request from the buffer data by the statistically counted display terminal; if the residual memory space of the display terminal is smaller than the preset space value, that is, the memory space occupied by the past application data sent to the display terminal by the code stream is larger in a fixed time period, and when the residual memory space of the display terminal is insufficient, it is required to judge that the current target application data matching success rate of the display terminal cannot meet our requirements, that is, to see whether the time for the display terminal to match the target application data is fast or not.
Step S52, if the success rate of the target application data matching is larger than a preset matching value, outputting a first adjustment prompt for reducing the preset duration;
when the remaining memory space of the display terminal is smaller than the preset space value, if the matching success rate of the target application data is larger than the preset matching value, namely the time that the display terminal application can successfully match the target application data in the cache data is faster than the expected matching success time, the preset time length in the display terminal can be adjusted according to the first adjustment instruction, the preset time length is adjusted to be smaller according to the first adjustment instruction, correspondingly, the memory space of the system occupied by the cache data is reduced until the remaining memory space of the display terminal is not smaller than the preset space value, and therefore the normal operation of the display terminal can be prevented from being influenced.
And step S53, if the success rate of the target application data matching is less than or equal to a preset matching value, outputting a second adjustment prompt for increasing the preset duration, and releasing the memory space occupied by the non-critical application preset by the display terminal.
When the remaining memory space of the display terminal is smaller than the preset space value, if the matching success rate of the target application data is found to be smaller than or equal to the preset matching value, that is, the time that the display terminal application can successfully match the target application data in the cache data is slower than the expected matching success time, the preset duration in the display terminal can be adjusted according to the second adjustment instruction, the preset duration is increased according to the second adjustment instruction, and the memory space occupied by the non-critical application in the display terminal is released, so that the time that the display terminal application matches the target application data corresponding to the data matching request from the cache data is prolonged under the condition that the normal operation of a display terminal system is not affected.
In the embodiment, the preset duration is dynamically adjusted by judging whether the remaining memory space of the display terminal meets the preset spatial value, so that the technical problem that the application data matching speed is too low due to the fact that long-time waiting is easy to occur when a conventional data matching method is used for data matching is solved, meanwhile, the adverse conditions that the display terminal system runs unsmoothly and the like are avoided, and the stability of the system memory space running is ensured.
In addition, referring to fig. 6, an embodiment of the present invention further provides a data matching apparatus, where the data matching apparatus includes:
the cache module is used for caching the code stream data received within a preset time length before the current time of the display terminal to generate cache data, and marking a timestamp corresponding to the code stream data time for each application data in the cache data;
the matching module is used for matching target application data corresponding to the data matching request from the cache data when the data matching request is detected;
and the obtaining module is used for obtaining the effective target application data with the timestamp in the preset effective time interval if the target application data is matched in the cache data.
Optionally, the matching module includes:
the sequencing unit is used for sequencing the application data to generate an application data sequence based on the time sequence of the timestamps of the application data in the cache data when the data matching request is detected;
the determining unit is used for matching the data identifier corresponding to the data matching request with each application data in the application data sequence one by one and taking the application data matched with the data identifier as target application data;
optionally, the sorting unit further includes:
the dynamic discarding unit is used for dynamically discarding the code stream data of which the time interval between the timestamp and the current moment exceeds the preset time length in the cache data in the process that the display terminal continuously receives new code stream data;
the data updating unit is used for continuously caching new code stream data to update the cached data;
optionally, the obtaining module includes:
and the inquiry matching unit is used for matching the target application data in new code stream data continuously received by the display terminal until the target application data is matched if the target application data is not matched in the cache data.
Optionally, the data matching apparatus further includes:
the instruction generation module is used for judging whether the residual memory space of the display terminal is smaller than a preset space value or not, and outputting an adjustment prompt of the preset time length if the residual memory space is smaller than the preset space value;
the instruction output module is used for adjusting the preset duration according to an adjustment instruction input by a user based on an adjustment prompt;
optionally, the instruction generating module further includes:
the pre-judging unit is used for judging whether the matching success rate of the current target application data of the display terminal is greater than a preset matching value or not if the residual memory space is smaller than the preset space value;
the first obtaining unit is used for outputting a first adjusting prompt for shortening the preset time length if the matching success rate of the target application data is greater than a preset matching value;
and the second acquisition unit is used for outputting a second adjustment prompt for increasing the preset duration and releasing the memory space occupied by the non-key application preset by the display terminal if the target application data matching success rate is less than or equal to the preset matching value.
The steps implemented by each functional module of the data matching apparatus may refer to each embodiment of the event processing method of the present invention, and are not described herein again.
The present invention also provides a display terminal, including: the data matching system comprises a memory, a processor and a data matching program stored on the memory and capable of running on the processor, wherein the data matching program realizes the steps of the data matching method embodiments when being executed by the processor.
The invention also provides a storage medium readable by a display terminal, wherein a data matching program is stored on the storage medium readable by the display terminal, and when being executed by a processor, the data matching program realizes the steps of the embodiments of the data matching method.
In the embodiments of the image processing apparatus, the mobile terminal, and the computer-readable storage medium of the present invention, all technical features of the embodiments of the image processing method described above are included, and the contents of the expansion and the explanation of the specification are substantially the same as those of the embodiments of the image processing method described above, and will not be described in detail herein.
It should also be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only for the preferred embodiment of the present invention and is not intended to limit the scope of the present invention, and all equivalent structures or flow transformations made by the present specification and drawings, or applied directly or indirectly to other related arts, are included in the scope of the present invention.

Claims (10)

1. A method of data matching, the method comprising:
caching code stream data received within a preset time length before the current time of a display terminal to generate cache data, and marking a timestamp corresponding to the code stream data time for each application data in the cache data;
discarding code stream data of which the time interval between the timestamp and the current time exceeds a preset time length in the cache data;
when a data matching request is detected, matching target application data corresponding to the data matching request from the cache data;
and if the target application data is matched in the cache data, obtaining effective target application data with the timestamp in a preset effective time interval.
2. The data matching method of claim 1, wherein when a data matching request is detected, the step of matching target application data corresponding to the data matching request from the cache data comprises:
when a data matching request is detected, sequencing each application data to generate an application data sequence based on the time sequence order of the timestamps of each application data in the cache data;
and matching the data identification corresponding to the data matching request with each application data in the application data sequence one by one, and taking the application data matched with the data identification as target application data.
3. The data matching method of claim 2, wherein the step of sorting the application data to generate the sequence of application data is followed by:
in the process that a display terminal continuously receives new code stream data, dynamically discarding the code stream data of which the time interval between a timestamp and the current time exceeds a preset duration in the cache data;
and continuing caching new code stream data to update the cached data.
4. The data matching method of claim 1, wherein when a data matching request is detected, the step of matching target application data corresponding to the data matching request from the cached data is followed by:
and if the target application data is not matched in the cache data, matching the target application data in new code stream data continuously received by the display terminal until the target application data is matched.
5. The data matching method of claim 1, wherein the data matching method comprises:
judging whether the residual memory space of the display terminal is smaller than a preset space value or not, and if the residual memory space is smaller than the preset space value, outputting an adjustment prompt of the preset time length;
and adjusting the preset duration according to an adjustment instruction input by a user based on the adjustment prompt.
6. The data matching method according to claim 5, wherein the step of outputting the adjustment prompt for the preset duration if the remaining memory space is smaller than the preset space value comprises:
if the residual memory space is smaller than the preset space value, judging whether the matching success rate of the current target application data of the display terminal is larger than the preset matching value;
and if the matching success rate of the target application data is greater than a preset matching value, outputting a first adjustment prompt for shortening the preset time.
7. The data matching method of claim 6, wherein the step of judging whether the current target application data matching success rate of the display terminal is greater than a preset matching value comprises the following steps:
and if the success rate of the target application data matching is smaller than or equal to a preset matching value, outputting a second adjustment prompt for increasing the preset duration, and releasing the memory space occupied by the preset non-key application of the display terminal.
8. A data matching apparatus, characterized in that the data matching apparatus comprises:
the cache module is used for caching the code stream data received within a preset time length before the current time of the display terminal to generate cache data, and marking a timestamp corresponding to the code stream data time for each application data in the cache data;
the matching module is used for matching target application data corresponding to the data matching request from the cache data when the data matching request is detected;
and the obtaining module is used for obtaining the effective target application data with the timestamp in the preset effective time interval if the target application data is matched in the cache data.
9. A display terminal, characterized in that the display terminal comprises: a memory, a processor, and a data matching program stored on the memory and executable on the processor, the data matching program when executed by the processor implementing the steps of the data matching method of any of claims 1 to 7.
10. A display terminal readable storage medium, characterized in that the display terminal readable storage medium has stored thereon a data matching program which, when executed by a processor, implements the steps of the data matching method according to any one of claims 1 to 7.
CN201810665154.0A 2018-06-22 2018-06-22 Data matching method and device, display terminal and readable storage medium Active CN109040018B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810665154.0A CN109040018B (en) 2018-06-22 2018-06-22 Data matching method and device, display terminal and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810665154.0A CN109040018B (en) 2018-06-22 2018-06-22 Data matching method and device, display terminal and readable storage medium

Publications (2)

Publication Number Publication Date
CN109040018A CN109040018A (en) 2018-12-18
CN109040018B true CN109040018B (en) 2021-02-23

Family

ID=64610440

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810665154.0A Active CN109040018B (en) 2018-06-22 2018-06-22 Data matching method and device, display terminal and readable storage medium

Country Status (1)

Country Link
CN (1) CN109040018B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113395302B (en) * 2020-03-11 2022-04-26 杭州中天微系统有限公司 Asynchronous data distributor, related apparatus and method
CN112631733B (en) * 2020-12-31 2024-01-02 中电长城网际安全技术研究院(北京)有限公司 Data acquisition method and device
CN113792616A (en) * 2021-08-26 2021-12-14 南方电网深圳数字电网研究院有限公司 Remote meter reading system based on edge calculation and working method thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7177853B1 (en) * 2002-02-21 2007-02-13 Emc Corporation Cache management via statistically adjusted time stamp queue
US7587467B2 (en) * 1999-12-02 2009-09-08 Western Digital Technologies, Inc. Managed peer-to-peer applications, systems and methods for distributed data access and storage
CN102333089A (en) * 2011-09-26 2012-01-25 南京邮电大学 Adaptive control method of multi-rate media stream based on hypertext transfer protocol (HTTP) streaming
CN106484633A (en) * 2016-10-08 2017-03-08 广州华多网络科技有限公司 A kind of data cached method and device
CN107704526A (en) * 2017-09-15 2018-02-16 平安科技(深圳)有限公司 Storage method, device, computer equipment and the storage medium of data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7587467B2 (en) * 1999-12-02 2009-09-08 Western Digital Technologies, Inc. Managed peer-to-peer applications, systems and methods for distributed data access and storage
US7177853B1 (en) * 2002-02-21 2007-02-13 Emc Corporation Cache management via statistically adjusted time stamp queue
CN102333089A (en) * 2011-09-26 2012-01-25 南京邮电大学 Adaptive control method of multi-rate media stream based on hypertext transfer protocol (HTTP) streaming
CN106484633A (en) * 2016-10-08 2017-03-08 广州华多网络科技有限公司 A kind of data cached method and device
CN107704526A (en) * 2017-09-15 2018-02-16 平安科技(深圳)有限公司 Storage method, device, computer equipment and the storage medium of data

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Dynamic asynchronous buffer management to improve data continuity in P2P live streaming;ShanZhen Lan;《2011 3rd International Conference on Computer Research and Development》;20110505;全文 *
Efficient Buffer Output Control for Multimedia Stream Playback;Yi-Yu Su;《2013 IEEE International Symposium on Multimedia》;20140224;全文 *
移动数据库客户端缓存管理研究及应用;吴娓娓;《中国优秀硕士学位论文全文数据库》;20061215;全文 *

Also Published As

Publication number Publication date
CN109040018A (en) 2018-12-18

Similar Documents

Publication Publication Date Title
CN109040018B (en) Data matching method and device, display terminal and readable storage medium
CN111316659B (en) Dynamically reducing playout of alternate content to help align the end of alternate content with the end of replaced content
KR102057107B1 (en) Receiving device, receiving method, program, and information processing system
US9628531B2 (en) Systems and methods for controlling client behavior in adaptive streaming
US11540020B2 (en) Method for realizing video information preview, client and storage medium
CN110933517B (en) Code rate switching method, client and computer readable storage medium
CN106998485B (en) Video live broadcasting method and device
CN104539977A (en) Live broadcast previewing method and device
TWI802797B (en) Method for detecting and responding to a fingerprint mismatch detected after a previously detected fingerprint match, non-transitory computer-readable storage medium, and computing system
CN108174267B (en) Device and method for sending interactive information in live broadcast and computer readable storage medium
CN111369990B (en) Audio playing method, device, terminal, server and storage medium
CN107690093B (en) Video playing method and device
CN114631327B (en) Content modification method, storage medium, and computing system
CN113796093B (en) Content modification system with determination of input buffer switch delay characteristics
TWI795642B (en) Method, non-transitory computer-readable storage medium and computing system for use in connection with a content-modification system that includes a content-distribution system and a content-presentation device
CN113966618B (en) Content modification system with system resource request features
CN104244069A (en) Network video playing method, storing method, playing equipment, server side and system
CN113796087B (en) Content modification system using multiple fingerprint data type features
CN113796089A (en) Content modification system with problem detection and response action features
CN111436009B (en) Real-time video stream transmission and display method and transmission and play system
CN102209116A (en) Method and device for acquiring Internet protocol television program information, and television
US20210185401A1 (en) Preload hinting for low latency http live streaming system
CN107707938B (en) Method and device for reducing live video playing delay
CN113891168A (en) Subtitle processing method, subtitle processing device, electronic equipment and storage medium
TWI752517B (en) Method, computing system and non-transitory computer-readable storage medium for facilitating content-presentation device performing content-modification operation related to upcoming content-modification opportunity on channel

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant