CN113824852A - Sampling time determination method and device, receiving end and storage medium - Google Patents

Sampling time determination method and device, receiving end and storage medium Download PDF

Info

Publication number
CN113824852A
CN113824852A CN202111155006.2A CN202111155006A CN113824852A CN 113824852 A CN113824852 A CN 113824852A CN 202111155006 A CN202111155006 A CN 202111155006A CN 113824852 A CN113824852 A CN 113824852A
Authority
CN
China
Prior art keywords
time
determining
acquisition period
period
basic
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.)
Granted
Application number
CN202111155006.2A
Other languages
Chinese (zh)
Other versions
CN113824852B (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.)
Beijing Knownsec Information Technology Co Ltd
Original Assignee
Beijing Knownsec Information 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 Beijing Knownsec Information Technology Co Ltd filed Critical Beijing Knownsec Information Technology Co Ltd
Priority to CN202111155006.2A priority Critical patent/CN113824852B/en
Publication of CN113824852A publication Critical patent/CN113824852A/en
Application granted granted Critical
Publication of CN113824852B publication Critical patent/CN113824852B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/04Synchronising
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/04Synchronising
    • H04N5/06Generation of synchronising signals
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The application provides a method and a device for determining sampling time, a receiving end and a storage medium, and relates to the technical field of communication. The sampling time determining method is applied to a receiving end of a communication system, the communication system also comprises a sending end, the sending end is in communication connection with the receiving end, and firstly, a synchronous frame sent by the sending end is received according to a first basic moment and an acquisition period, wherein the acquisition period is smaller than the sending period of the sending end; and then when two adjacent and same synchronous frames are received, determining a first time and a second time for receiving the same synchronous frames, determining an adjustment value according to the first time, the second time, a first basic time and an acquisition period, and finally determining sampling time according to the first basic time, the adjustment value and a sending period. The sampling time determining method, the sampling time determining device, the receiving end and the storage medium have the advantage of saving the calculation power of the receiving end.

Description

Sampling time determination method and device, receiving end and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for determining a sampling time, a receiving end, and a storage medium.
Background
With the continuous expansion of network application range and the continuous deepening of network application technology, network users are more aware of the importance of network security, and products mainly based on technologies such as fire wall, virus prevention, vulnerability scanning, intrusion detection and the like provide security protection to a certain extent, but the security protection means are not enough to guarantee the security of a confidential network system and information resources. At present, some security units contain a large amount of sensitive information and security-related data, and a plurality of networks or network security domains which have different security levels and operate independently are built according to different load-bearing services and different work division. These networks are physically or logically isolated from each other, but have tight information exchange requirements in actual operation.
The main modes of unidirectional data transmission include optical disk recording, unidirectional network gate, unidirectional image data transmission (two-dimensional code ferry) and the like. The optical disc recording mainly needs manual intervention, is inconvenient to use, the unidirectional network gate is electric appliance isolation, the requirement cannot be met for a scene of physical isolation, and unidirectional image data transmission is a new technical application and can meet the requirement of physical isolation.
However, in the prior art, when using unidirectional video data transmission, the receiving end needs to receive and process more data in order to ensure the integrity of the received data, for example, when the transmitting end transmits n frames of data, the receiving end needs to receive and process 2n frames of data, which greatly consumes the performance of the receiving end.
In summary, the problem of large performance consumption of the receiving end exists in the prior art.
Disclosure of Invention
The present application aims to provide a method and an apparatus for determining a sampling time, a receiving end and a storage medium, so as to solve the problem of large performance consumption of the receiving end in the prior art.
In order to achieve the above purpose, the embodiments of the present application employ the following technical solutions:
in a first aspect, an embodiment of the present application provides a method for determining a sampling time, which is applied to a receiving end of a communication system, where the communication system further includes a sending end, and the sending end is in communication connection with the receiving end, and the method includes:
receiving a synchronous frame sent by the sending end according to a first basic time and an acquisition period, wherein the acquisition period is less than the sending period of the sending end;
when two adjacent and same synchronous frames are received, determining a first time and a second time for receiving the same synchronous frames;
determining an adjustment value according to the first time, the second time, the first basic time and the acquisition period;
and determining sampling time according to the first basic time, the adjustment value and the sending period.
Optionally, the step of determining an adjustment value according to the first time, the second time, the first base time, and the acquisition period includes:
determining an average of the first time and the second time;
determining a difference between the average and the first base time;
and dividing the remainder of the difference value by the acquisition period to be used as the adjusting value.
Optionally, the sampling time satisfies the formula:
A=B+X+nY;
wherein a represents a sampling time, B represents a first base time, X represents an adjustment value, Y represents an acquisition period, and n represents an integer greater than or equal to 0.
Optionally, after the step of receiving the synchronization frame sent by the sending end according to the first basic time and the acquisition period, the method further includes:
when two adjacent and same synchronous frames are not received within a preset time, changing the first basic time to generate a second basic time;
receiving the synchronous frames sent by the sending end according to a second basic time and an acquisition period until two adjacent and same synchronous frames are received;
the step of determining an adjustment value according to the first time, the second time, the first base time and the acquisition period comprises:
determining an adjustment value according to the first time, the second basic time and the acquisition period;
the step of determining a sampling time in dependence on the first base time, the adjustment value and the transmission period comprises:
and determining sampling time according to the second basic time, the adjusting value and the sending period.
Optionally, the sending period includes a rising response time and a falling response time, and a sum of the rising response time, the falling response time, and the collecting period is equal to the sending period;
the step of changing the first basic time to generate a second basic time when two adjacent and same synchronization frames are not received within a preset time includes:
and when two adjacent and same synchronous frames are not received within a preset time, changing the first basic time according to the rising response time and the falling response time to generate a second basic time.
Optionally, when the adjacent and same synchronization frames include multiple groups, the step of determining an adjustment value according to the first time, the second time, the first base time, and the acquisition period includes:
determining an adjustment value of each group according to the first time, the second time, the first basic time and the acquisition period;
the method further comprises the following steps:
and taking the average value of the adjusting values of each group as a final adjusting value.
In a second aspect, an embodiment of the present application further provides a sampling time determining apparatus, which is applied to a receiving end of a communication system, where the communication system further includes a sending end, and the sending end is in communication connection with the receiving end, and the apparatus includes:
the receiving unit is used for receiving the synchronous frame sent by the sending end according to a first basic time and an acquisition period, wherein the acquisition period is smaller than the sending period sent by the sending end;
the processing unit is used for determining a first time and a second time for receiving two adjacent and same synchronous frames when the two adjacent and same synchronous frames are received;
the processing unit is further used for determining an adjustment value according to the first time, the second time, the first basic time and the acquisition period;
and the processing unit is further used for determining sampling time according to the first basic time, the adjustment value and the sending period.
Optionally, the processing unit is further configured to:
determining an average of the first time and the second time;
determining a difference between the average and the first base time;
and dividing the remainder of the difference value by the acquisition period to be used as the adjusting value.
In a third aspect, an embodiment of the present application further provides a receiving end, including: a memory for storing one or more programs; a processor; the one or more programs, when executed by the processor, implement the sample time determination method described above.
In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the sampling time determination method described above.
Compared with the prior art, the method has the following beneficial effects:
the application provides a sampling time determination method, a device, a receiving end and a storage medium, wherein the sampling time determination method is applied to the receiving end of a communication system, the communication system also comprises a sending end, the sending end is in communication connection with the receiving end, firstly, a synchronization frame sent by the sending end is received according to a first basic time and an acquisition period, and the acquisition period is smaller than the sending period of the sending end; and then when two adjacent and same synchronous frames are received, determining a first time and a second time for receiving the same synchronous frames, determining an adjustment value according to the first time, the second time, a first basic time and an acquisition period, and finally determining sampling time according to the first basic time, the adjustment value and a sending period. According to the method and the device, when two adjacent and same synchronous frames are received, the corresponding adjusting values are determined, and the sampling accuracy of the sampling time can be guaranteed through adjustment of the adjusting values, so that the receiving end does not need to acquire a plurality of data, and the calculation power of the receiving end is saved.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and it will be apparent to those skilled in the art that other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic block diagram of a receiving end according to an embodiment of the present disclosure.
Fig. 2 is a block diagram of a communication system according to an embodiment of the present disclosure.
Fig. 3 is a schematic flowchart of a sampling time determination method according to an embodiment of the present application.
Fig. 4 is a block diagram of a sampling time determination apparatus according to an embodiment of the present application.
In the figure: 100-a receiving end; 101-a processor; 102-a memory; 103-a communication interface; 200-a sample time determination device; 210-a receiving unit; 220-processing unit.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 identical elements in a process, method, article, or apparatus that comprises the element.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
As described in the background, during unidirectional video data transmission, the receiving end in the prior art needs to receive a large amount of data for processing, for example, when the transmitting end displays 100 frames of data, in order to ensure that the receiving end does not miss data, the receiving end may need to receive 150 frames of data, or even receive 200 frames of data for parsing, which greatly wastes the computation of the receiving end.
In view of this, the present application provides a method for determining sampling time, which determines an adjustment value by using a synchronization frame test, and then determines a final sampling time by using the adjustment value, and the final sampling time is synchronized with a transmission period, so that a receiving end is prevented from receiving a large amount of data, and the computational power of the receiving end is saved.
It should be noted that the sampling time determination method provided in the present application may be applied to a receiving end of a communication system, fig. 1 shows a schematic structural block diagram of the receiving end, and the receiving end 100 includes a memory 102, a processor 101, and a communication interface 103, where the memory 102, the processor 101, and the communication interface 103 are electrically connected to each other directly or indirectly to implement data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines.
The memory 102 may be used to store software programs and modules, such as program instructions or modules corresponding to the power combining apparatus provided in the embodiment of the present application, and the processor 101 executes the software programs and modules stored in the memory 102 to execute various functional applications and data processing, thereby executing the steps of the power combining method provided in the embodiment of the present application. The communication interface 103 may be used for communicating signaling or data with other node devices.
The Memory 102 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Programmable Read-Only Memory (EEPROM), and the like.
The processor 101 may be an integrated circuit chip having signal processing capabilities. The Processor 101 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
It is understood that the structure shown in fig. 1 is merely illustrative, and the receiving end 100 may include more or less components than those shown in fig. 1, or have a different configuration than that shown in fig. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
The following describes an exemplary sampling time determination method provided in the embodiment of the present application, with a receiving end as an exemplary execution main body. As shown in fig. 2, in the communication system, the sending end includes a network receiving unit, a coding unit, a sending controller, and a real screen, and the modules are connected in sequence. When the sending end needs to send data, the sending end codes the data information into a two-dimensional code through a coding unit and displays the two-dimensional code on a display screen at a fixed period T. For example, when T equals 1S, then in the first second the display screen displays the data of the first frame, in the second the display screen displays the data of the second frame, and so on.
The receiving end also comprises a collector, a decoding unit, a network interface unit and the like, when the receiving end receives data, the time is to collect the two-dimensional code displayed by the sending end by using the collector, and the collected two-dimensional code is decoded and restored into the data.
In order to improve the stability of receiving data by a receiving end and reduce the data which needs to be received by the receiving end, before data transmission, the method and the device send some synchronous frame data through the sending end, so that the sending end sends frames and the receiving end collects the frames for synchronization.
The following is an exemplary description of the sampling time determination method provided in the present application:
as an implementation, please refer to fig. 3, the method includes:
s102, receiving a synchronous frame sent by a sending end according to a first basic moment and an acquisition period, wherein the acquisition period is less than the sending period of the sending end;
s104, judging whether two adjacent and same synchronous frames are received, if so, executing S106.
S106, determining a first time and a second time when the same synchronous frame is received.
And S108, determining an adjusting value according to the first time, the second time, the first basic time and the acquisition period.
And S110, determining sampling time according to the first basic time, the adjustment value and the sending period.
As an implementation manner, when the sending end sends a synchronization frame, it is required to obtain a display screen response time, that is, when each frame of data is displayed on the display screen, three processes of changing from dark to bright, continuing and changing from bright to dark are all passed, where the times of changing from dark to bright and changing from bright to dark are both display screen response times, and are respectively used as a rising response time tr and a falling response time td.
On this basis, when the acquisition end acquires the synchronization frame, the synchronization frame information cannot be acquired within the rise response time tr and the fall response time td, so the acquisition period must be shorter than the transmission period of the transmission end to avoid the occurrence of the condition that the synchronization frame cannot be acquired.
As one implementation, a sender-side display period T (T > tr + td is guaranteed) and a receiver-side acquisition period mT are determined, where 0.5< m <1, tr ═ rT, td ═ dT, r + d + m ═ 1, and m >2(r + d). For example, T is 1S, the rise response time T is 0.1S, the fall response time td is 0.1S, and the acquisition period is 0.8S. Through the setting mode, the acquisition period is ensured not to be too short, effective data can be acquired, and meanwhile, the mode that m is greater than 2(r + d) is set, so that the acquisition period is at least two thirds of the sending period.
When data needs to be transmitted, the transmitting end encodes time information T of a display frame and a display period T (T is T0+ nT, n is 0,1, 2.) into the synchronous frame and displays the synchronous frame in a fixed period T, time information T0 is encoded in the frame displayed at the time T0, time information T0+ T is encoded in the frame displayed at the time T0+ T, and time information T0+ nT is encoded in the frame displayed at the time T0+ nT.
For example, if T0 is 0 and T is equal to 1S, the sender displays the first frame data at time 0S and displays the second frame data at time 1S, it should be noted that, in the display, it is actually a process, and as described above, when the first frame data is displayed, the time period of 0 to 0.1S is the rising response time, and the sync frame is not formally displayed at this time; when the time is 0.1S-0.9S, the display screen displays the synchronous frame; 0.9-1S is the response time of falling, and the synchronous frame is not displayed formally at this time.
When a sending end displays a synchronous frame, a receiving end carries out data acquisition according to a period of mT, the acquisition time is t ' (t ' ═ t0 ' + mnT, n is 0,1, 2.), and simultaneously the acquisition time is stored, and the corresponding acquisition time t ' is recorded, wherein t0 ' represents a first basic time, and mT represents the acquisition period.
For example, when t 0' is 0 and mT is 0.8S, the receiving end acquires the sync frame at 0.8S, 1.6S, and 2.4S.
Since the acquisition period is less than the transmission period, a situation that the receiving end acquires two identical sync frames may occur, and still taking T as 1S and mT as 0.8S as examples, the transmitting end may transmit 4 sync frames within 4S, and the receiving end needs to receive 5 data, and thus, there may be a situation that two data are the same sync frame.
And after the first moment and the second moment of the same synchronous frame are received in the confirmed receiving, the identification is between the first moment and the second moment, and the synchronous frame can be collected more accurately.
As one implementation, S108 includes:
s1081, an average of the first time and the second time is determined.
S1082, determining a difference between the average and the first base time.
And S1083, dividing the difference value by the remainder after the acquisition period to be used as an adjustment value.
On the basis, the sampling time satisfies the formula:
A=B+X+nY;
wherein a represents a sampling time, B represents a first base time, X represents an adjustment value, Y represents an acquisition period, and n represents an integer greater than or equal to 0.
The description is given by way of practical example:
assuming that the period shown by the transmitting end is 1S, tr is 0.1S, td is 0.1S, and mT is 0.8S, the information collected by the receiving end in the time period T-td, T + tr cannot be analyzed correctly. And 4 identified data are not repeated at the 5 sample points acquired for the first time, adjustment is performed, the data sent by the sending end at the 4 th second are identified at 4.1 seconds and 4.9 seconds in the data identified for the second time, the average value of the first time and the second time is determined to be 4.5S, the difference is made between the average value and the first basic time (0.1S), the average value is at the value of mT, and the remainder is 0.4, which indicates that the adjustment value is 0.4.
And then, the sampling time is determined according to the formula, so that the data acquired by the acquisition end can be guaranteed to be effective when the subsequent sending end sends the data.
As an implementation manner, when two adjacent and same synchronization frames are not received within a preset time, changing a first basic time to generate a second basic time; and receiving the synchronous frame sent by the sending end according to the second basic time and the acquisition period until two adjacent and same synchronous frames are received.
It should be noted that, after the first basic time is changed to the second basic time, when the adjustment value and the sampling time are calculated, both the adjustment value and the sampling time are determined according to the changed second basic time.
Optionally, when two adjacent and same synchronization frames are not received within a preset time, the first base time is changed according to the rising response time and the falling response time to generate a second base time. For example, the first base time of the receiving end is changed by 0.1 (rising response time and falling response time).
In addition, in order to ensure the accuracy of the system, when adjacent and identical synchronization frames comprise a plurality of groups, the adjustment value of each group is determined according to the first time, the second time, the first basic time and the acquisition period, and then the average value of the adjustment values of each group is used as the final adjustment value.
For example, the same sync frame is received at 2.1S and 2.9S, and the same sync frame is received at 4.1S and 4.9S, on the basis, the adjustment values of each group are determined by two groups of data, and the average of the adjustment values is obtained.
Based on the foregoing implementation manner, please refer to fig. 4, the present application further provides a sampling time determining apparatus 200, which is applied to a receiving end of a communication system, where the communication system further includes a transmitting end, and the transmitting end is in communication connection with the receiving end, and the apparatus includes:
a receiving unit 210, configured to receive a synchronization frame sent by a sending end according to a first basic time and an acquisition period, where the acquisition period is smaller than a sending period sent by the sending end;
a processing unit 220, configured to determine a first time and a second time when two adjacent and same synchronization frames are received;
the processing unit 220 is further configured to determine an adjustment value according to the first time, the second time, the first basic time, and the acquisition period;
the processing unit 220 is further configured to determine a sampling time according to the first base time, the adjustment value, and the transmission period.
Optionally, the processing unit is further configured to:
determining an average value of the first time and the second time;
determining a difference between the average and the first base time;
and dividing the difference value by the remainder after the acquisition period to be used as an adjusting value.
To sum up, the present application provides a method, an apparatus, a receiving end and a storage medium for determining a sampling time, where the method is applied to the receiving end of a communication system, the communication system further includes a transmitting end, the transmitting end is in communication connection with the receiving end, and first receives a synchronization frame sent by the transmitting end according to a first basic time and an acquisition period, where the acquisition period is less than a transmission period of the transmitting end; and then when two adjacent and same synchronous frames are received, determining a first time and a second time for receiving the same synchronous frames, determining an adjustment value according to the first time, the second time, a first basic time and an acquisition period, and finally determining sampling time according to the first basic time, the adjustment value and a sending period. According to the method and the device, when two adjacent and same synchronous frames are received, the corresponding adjusting values are determined, and the sampling accuracy of the sampling time can be guaranteed through adjustment of the adjusting values, so that the receiving end does not need to acquire a plurality of data, and the calculation capacity of the receiving end is saved.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s).
It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: u disk, removable hard disk, read only memory, random access memory, magnetic or optical disk, etc. for storing program codes.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A method for determining sampling time is applied to a receiving end of a communication system, the communication system further comprises a sending end, and the sending end is in communication connection with the receiving end, and the method comprises the following steps:
receiving a synchronous frame sent by the sending end according to a first basic time and an acquisition period, wherein the acquisition period is less than the sending period of the sending end;
when two adjacent and same synchronous frames are received, determining a first time and a second time for receiving the same synchronous frames;
determining an adjustment value according to the first time, the second time, the first basic time and the acquisition period;
and determining sampling time according to the first basic time, the adjustment value and the sending period.
2. The sample time determination method of claim 1, wherein the step of determining an adjustment value as a function of the first time instant, the second time instant, the first base time instant, and the acquisition period comprises:
determining an average of the first time and the second time;
determining a difference between the average and the first base time;
and dividing the remainder of the difference value by the acquisition period to be used as the adjusting value.
3. The sample time determination method of claim 1, wherein the sample time satisfies the formula:
A=B+X+nY;
wherein a represents a sampling time, B represents a first base time, X represents an adjustment value, Y represents an acquisition period, and n represents an integer greater than or equal to 0.
4. The sampling time determination method of claim 1, wherein after the step of receiving the synchronization frame transmitted by the transmitting end at the first base time and the acquisition period, the method further comprises:
when two adjacent and same synchronous frames are not received within a preset time, changing the first basic time to generate a second basic time;
receiving the synchronous frames sent by the sending end according to a second basic time and an acquisition period until two adjacent and same synchronous frames are received;
the step of determining an adjustment value according to the first time, the second time, the first base time and the acquisition period comprises:
determining an adjustment value according to the first time, the second basic time and the acquisition period;
the step of determining a sampling time in dependence on the first base time, the adjustment value and the transmission period comprises:
and determining sampling time according to the second basic time, the adjusting value and the sending period.
5. The sample time determination method of claim 4, wherein the transmission period comprises a rise response time and a fall response time, the sum of the rise response time, the fall response time, and the acquisition period being equal to the transmission period;
the step of changing the first basic time to generate a second basic time when two adjacent and same synchronization frames are not received within a preset time includes:
and when two adjacent and same synchronous frames are not received within a preset time, changing the first basic time according to the rising response time and the falling response time to generate a second basic time.
6. The sample time determination method of claim 1, wherein when the adjacent and identical synchronization frames comprise a plurality of groups, the step of determining an adjustment value as a function of the first time instant, the second time instant, the first base time instant, and the acquisition period comprises:
determining an adjustment value of each group according to the first time, the second time, the first basic time and the acquisition period;
the method further comprises the following steps:
and taking the average value of the adjusting values of each group as a final adjusting value.
7. A sampling time determination apparatus, applied to a receiving end of a communication system, wherein the communication system further includes a transmitting end, and the transmitting end is communicatively connected to the receiving end, the apparatus includes:
the receiving unit is used for receiving the synchronous frame sent by the sending end according to a first basic time and an acquisition period, wherein the acquisition period is smaller than the sending period sent by the sending end;
the processing unit is used for determining a first time and a second time for receiving two adjacent and same synchronous frames when the two adjacent and same synchronous frames are received;
the processing unit is further used for determining an adjustment value according to the first time, the second time, the first basic time and the acquisition period;
and the processing unit is further used for determining sampling time according to the first basic time, the adjustment value and the sending period.
8. The sample time determination device of claim 7, wherein the processing unit is further configured to:
determining an average of the first time and the second time;
determining a difference between the average and the first base time;
and dividing the remainder of the difference value by the acquisition period to be used as the adjusting value.
9. A receiving end, comprising:
a memory for storing one or more programs;
a processor;
the one or more programs, when executed by the processor, implement the method of any of claims 1-6.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-6.
CN202111155006.2A 2021-09-29 2021-09-29 Sampling time determining method, device, receiving end and storage medium Active CN113824852B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111155006.2A CN113824852B (en) 2021-09-29 2021-09-29 Sampling time determining method, device, receiving end and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111155006.2A CN113824852B (en) 2021-09-29 2021-09-29 Sampling time determining method, device, receiving end and storage medium

Publications (2)

Publication Number Publication Date
CN113824852A true CN113824852A (en) 2021-12-21
CN113824852B CN113824852B (en) 2023-10-13

Family

ID=78915958

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111155006.2A Active CN113824852B (en) 2021-09-29 2021-09-29 Sampling time determining method, device, receiving end and storage medium

Country Status (1)

Country Link
CN (1) CN113824852B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1118068A (en) * 1997-06-20 1999-01-22 Canon Inc Transmission controller, transmitter and transmission control system
KR20090102501A (en) * 2008-03-26 2009-09-30 (주)제이씨와이컴 Relay apparatus and system for short range wireless
CN101958094A (en) * 2009-07-13 2011-01-26 晨星软件研发(深圳)有限公司 Display controller and image signal transmission method and system thereof
CN111031196A (en) * 2019-12-25 2020-04-17 普世(南京)智能科技有限公司 Low-power-consumption one-way feedback-free image transmission method and system based on mark frame

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1118068A (en) * 1997-06-20 1999-01-22 Canon Inc Transmission controller, transmitter and transmission control system
KR20090102501A (en) * 2008-03-26 2009-09-30 (주)제이씨와이컴 Relay apparatus and system for short range wireless
CN101958094A (en) * 2009-07-13 2011-01-26 晨星软件研发(深圳)有限公司 Display controller and image signal transmission method and system thereof
CN111031196A (en) * 2019-12-25 2020-04-17 普世(南京)智能科技有限公司 Low-power-consumption one-way feedback-free image transmission method and system based on mark frame

Also Published As

Publication number Publication date
CN113824852B (en) 2023-10-13

Similar Documents

Publication Publication Date Title
US9877283B2 (en) Method and terminal for reporting sensor data and terminal
BRPI0609405A2 (en) method, system, and client for transmitting instant messaging preview message
CN105100708A (en) Request processing method and device
CN111629165A (en) Alarm video processing method, device, equipment and storage medium
CN111831748A (en) Data synchronization method, device and storage medium
CN105430210A (en) Emergency alarm method and module for mobile terminal
CN109088933A (en) High-volume list transfer approach, acquisition methods and corresponding device, electronic equipment
CN107306200B (en) Network fault early warning method and gateway for network fault early warning
CN110311855B (en) User message processing method and device, electronic equipment and storage medium
US20190159111A1 (en) Method for Wireless Fidelity Network Scanning and Terminal Device
CN113824852A (en) Sampling time determination method and device, receiving end and storage medium
CN110324629B (en) Image transcoding method and device and electronic equipment
CN114554596A (en) Paging indication method, paging indication device, terminal and readable storage medium
KR20170030623A (en) Virus scanning method and virus scanning device
US8189046B2 (en) Computer-based communication systems and arrangements associated therewith for indicating user status
CN111092956A (en) Resource synchronization method, device, storage medium and equipment
CN114579416B (en) Index determination method, device, server and medium
CN105245413A (en) Method for acquiring control information response of terminal by central office of Ethernet over coax (EOC) equipment
CN113162997B (en) Data transmission method and device, electronic equipment and readable storage medium
CN112055174B (en) Video transmission method and device and computer readable storage medium
CN114048059A (en) Method and device for adjusting timeout time of interface, computer equipment and storage medium
CN110134547B (en) Middleware-based repeated data deleting method and related device
CN112748968A (en) Auxiliary operation method, device, equipment and storage medium
CN108965454B (en) Sensing system and method for providing intelligent service in Internet of things
CN114567518B (en) Device state prompting method and device, electronic device and storage medium

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