Method, system, medium and equipment for measuring end-to-end control delay duration
By using triggering equipment and measurement processing equipment to acquire signals in the end-to-end control delay time measurement system, the starting point and end point of the control delay time are solved, and a higher measurement accuracy is achieved.
Patent Information
- Application Number
- CN202411450565.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-16
- Publication Date
- 2025-02-28
AI Technical Summary
In the prior art, the accuracy of measuring and controlling delay time is low, mainly due to the manual timing error and the RTC deviation of different devices, the time measurement is not synchronized.
An end-to-end measurement method and system for controlling the delay time is adopted, and the system includes a triggering device, a control device, a controlled device and a measurement processing device. The triggering device simultaneously generates the triggering signal and the first control signal, and collects these signals by the measurement processing device to determine the starting point and end point of the control delay time.
The measurement accuracy of the control delay time is improved, and the problem of time measurement out-synchronization caused by RTC deviation is reduced.
Smart Images

Figure CN119544560A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of end-to-end performance testing technology, and in particular to a method, system, medium and device for measuring end-to-end control delay duration. Background Art
[0002] There is often a certain delay in the control response from the control end to the controlled end. For example, when using a mobile phone to control a smart device, the mobile phone, as the control end, sends a control signal to the smart device, and the smart device, as the controlled end, responds to the control signal and performs a certain action. There is a certain delay between the mobile phone sending the control signal to the smart device and the smart device successfully responding to the control signal. This delay is the end-to-end control delay.
[0003] In the prior art, the measurement method of measuring the control delay time from the control end to the controlled end generally includes the following two methods.
[0004] Method 1 is manual timing. The staff starts timing when the control end sends a control signal, and ends timing when the controlled end responds successfully, so as to calculate the control delay time.
[0005] Method 2 is to calculate the control delay using the time recorded in the APP (Application) log. For example, when a user sends a control signal to a smart device through a mobile phone APP, the time when the mobile phone sends the control signal will be recorded in the mobile phone APP log. After the smart device responds successfully, the response time will be recorded in the log of the smart device. The staff can calculate the control delay based on the time recorded in the log of the mobile phone APP and the time recorded in the log of the smart device.
[0006] However, the inventors have found that the measurement accuracy of the two measurement methods in the prior art is low, and the calculated control delay durations have large deviations.
[0007] For example, in method 1, there are errors caused by manual timing by staff; in method 2, since the mobile phone and the smart device are two devices, the RTC (Real-Time Clock) of the two devices may be different. RTC is used to provide an accurate time reference for the device. In the case of RTC deviation, the time recorded by the two devices may be out of sync. Therefore, using the moments recorded by the two devices to calculate the control delay duration will also produce corresponding errors, resulting in a lower accuracy of the calculated control delay duration. Summary of the invention
[0008] The present application aims to provide a method, system, medium and device for measuring end-to-end control delay duration, so as to improve the accuracy of measuring control delay duration.
[0009] According to one aspect of the present application, the present application proposes a method for measuring an end-to-end control delay. The measurement method is applied to a system for measuring an end-to-end control delay. The measurement system includes a trigger device, a control device, a controlled device, and a measurement processing device. The trigger device responds to a user instruction to send a first control signal to the control device, and simultaneously responds to a user instruction to send a trigger signal to the measurement processing device. The control device responds to the first control signal to send a second control signal to the controlled device. The measurement method is executed by the measurement processing device, and the measurement method includes receiving a trigger signal sent by the trigger device. Receive a response signal sent by the controlled device, wherein the response signal is a response of the controlled device based on the second control signal. Determine the trigger moment of the trigger signal. Determine the response moment of the response signal. According to the trigger moment and the response moment, determine the control delay between the control device and the controlled device.
[0010] According to some embodiments, the measurement and processing device determines the control delay time between the control device and the controlled device according to the trigger time and the response time, which may specifically include determining the control delay time between the control device and the controlled device according to the trigger time and the response time when the trigger signal and the response signal meet preset conditions. The preset conditions include that the number of received trigger signals reaches a preset trigger number; and the number of received response signals reaches a preset response number.
[0011] According to some embodiments, the trigger signal includes a trigger level signal. The trigger device includes a trigger key. The trigger key includes a trigger switch. The trigger switch includes a trigger terminal. The trigger terminal is connected to the measurement processing device. When the trigger key is triggered in response to a user instruction, the trigger terminal generates a trigger level signal to be received by the measurement processing device. The trigger device also includes a ground wire, which is connected to the measurement processing device to provide a reference potential of the trigger level signal to the measurement processing device.
[0012] According to some embodiments, the controlled device includes a ground terminal and an output terminal. The output terminal is connected to the measurement processing device, and when the controlled device responds to the second control signal, the output terminal outputs a response signal to be received by the measurement processing device. The ground terminal is connected to the measurement processing device to provide the measurement processing device with a reference potential of the response signal.
[0013] According to another aspect of the present application, a system for measuring end-to-end control delay duration is proposed. The measurement system includes a trigger device, a control device, a controlled device, and a measurement processing device. The trigger device responds to a user instruction to simultaneously output a first control signal and a trigger signal. The control device is connected to the trigger device, receives the first control signal of the trigger device, and generates and sends a second control signal based on the first control signal. The controlled device is connected to the control device, receives the second control signal and generates a response signal. The measurement processing device is connected to the trigger device and to the controlled device, receives the trigger signal sent by the trigger device and the response signal sent by the controlled device. The measurement processing device determines the triggering moment of the trigger signal and determines the response moment of the response signal, and the measurement processing device determines the control delay duration between the control device and the controlled device based on the triggering moment and the response moment.
[0014] According to some embodiments, the trigger signal includes a trigger level signal. The trigger device includes a trigger key. The trigger key includes a trigger switch. The trigger switch includes a trigger terminal. The trigger terminal is connected to the measurement processing device. When the trigger key is triggered in response to a user instruction, the trigger terminal generates a trigger level signal to be received by the measurement processing device. The trigger device also includes a ground wire, which is connected to the measurement processing device to provide a reference potential of the trigger level signal to the measurement processing device.
[0015] According to some embodiments, the controlled device includes a ground terminal and an output terminal. The output terminal is connected to the measurement processing device, and when the controlled device responds to the second control signal, the output terminal outputs a response signal to be received by the measurement processing device. The ground terminal is connected to the measurement processing device to provide the measurement processing device with a reference potential of the response signal.
[0016] According to some embodiments, the measurement and processing device includes a signal acquisition device and a terminal device. The signal acquisition device is connected to the trigger device and the controlled device respectively to collect the trigger signal and the response signal. The terminal device is connected to the signal acquisition device to determine the control delay time between the control device and the controlled device according to the received response output signal and the trigger signal.
[0017] According to another aspect of the present application, a measurement processing device is proposed, which includes: one or more processors; a storage device for storing one or more programs; when the one or more programs are executed by one or more processors, the one or more processors implement the measurement method described above.
[0018] According to another aspect of the present application, a non-volatile computer-readable medium is provided, on which a computer program is stored. When the program is executed by a processor, the measurement method described above is implemented.
[0019] According to another aspect of the present application, a computer program product is provided, which includes a computer program stored on a computer-readable storage medium, wherein the computer program includes program instructions, and when the program instructions are executed by a computer, the measurement method described above is implemented.
[0020] Beneficial Effects
[0021] In the present application, the trigger device generates a trigger signal and a first control signal at the same time, and sends the trigger signal to the measurement and processing device, and sends the first control signal to the control device. The first control signal is a signal used to instruct the control device to control the controlled device. The triggering time of the trigger signal is the time when the first control signal is generated, and it is also the time when the control device starts to control the controlled device. The measurement and processing device uses the triggering time of the trigger signal as the starting time of the control delay duration, which can reduce the error of the measured control delay duration, thereby improving the measurement accuracy of the control delay duration.
[0022] And in the present application, the measurement processing device collects the response signal of the controlled device, and uses the response time of the response signal as the end time of the control delay duration to calculate the control delay duration. In this measurement method, the starting time and the end time are both collected by the measurement processing device, and there is no problem of deviation in time measurement due to different RTCs of different devices, which leads to asynchrony between the moments. Such a setting can improve the measurement accuracy of the control delay duration. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0024] Figure 1 A schematic diagram of the framework of the end-to-end control delay duration measurement system of the present application embodiment;
[0025] Figure 2 A schematic diagram of a flow chart of a method for measuring an end-to-end control delay duration according to an embodiment of the present application;
[0026] Figure 3 This is a flow chart of step S250 of the embodiment of the present application;
[0027] Figure 4 This is a structural example diagram of the measurement system of the embodiment of the present application;
[0028] Figure 5 This is a schematic diagram of a measurement and processing device according to an embodiment of the present application.
[0029] Description of reference numerals:
[0030] 10. Triggering device; 20. Controlling device; 30. Controlled device; 40. Measurement and processing device. DETAILED DESCRIPTION
[0031] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this application will be comprehensive and complete and will fully convey the concepts of the example embodiments to those skilled in the art. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted.
[0032] The described features, structures or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced without one or more of these specific details, or other modes, components, materials, devices, etc. may be adopted. In these cases, known structures, methods, devices, implementations, materials or operations will not be shown or described in detail.
[0033] In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.
[0034] The terms "first", "second" and the like in the specification and claims of this application and the above drawings are used to distinguish different objects rather than to describe a specific order.
[0035] The following is a clear and complete description of the technical solution of the present application in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0036] According to one aspect of the present application, an embodiment of the present application provides a method for measuring an end-to-end control delay duration. The method is applied to a system for measuring an end-to-end control delay duration.
[0037] Figure 1 The system architecture diagram of the measurement system is shown in FIG. Figure 1The measurement system 1 includes a trigger device 10 , a control device 20 , a controlled device 30 and a measurement processing device 40 .
[0038] According to an exemplary embodiment, the trigger device 10 responds to a user instruction to send a first control signal to the control device 20, and simultaneously responds to a user instruction to send a trigger signal to the measurement processing device 40. The control device 20 responds to the first control signal to send a second control signal to the controlled device 30. The controlled device 30 generates a response signal in response to the second control signal.
[0039] Exemplarily, the control device 20 may be a mobile phone, the controlled device 30 may be a lamp (or other controlled devices such as a motor), and the trigger device 10 may be a mouse (or other devices such as a keyboard that can respond to user instructions to generate a first control signal).
[0040] The mouse and the mobile phone can be connected via a data cable. The mobile phone is connected to the light electrical control. The mouse is also connected to the measurement and processing device 40. The user can operate the mouse to click on the preset position on the mobile phone page to input the turn-on instruction to turn on the light. In this process, the mouse responds to the user's operation instruction, sends a first control signal to the mobile phone, and sends a trigger signal to the measurement and processing device 40 at the same time. The trigger signal and the first control signal are generated and output at the same time.
[0041] After receiving the first control signal, the mobile phone sends a second control signal to the lamp, and the lamp responds to the second control signal and turns on to generate a response signal.
[0042] According to an example embodiment, the measurement method is performed by the measurement processing device 40 in the above-mentioned measurement system.
[0043] Figure 2 The flow chart of the measurement method of the embodiment of the present application is shown. Figure 2 , the measurement method includes steps S210-S250.
[0044] In step S210 , the measurement processing device receives a trigger signal sent by the trigger device.
[0045] In step S220, the measurement processing device receives a response signal sent by the controlled device.
[0046] In step S230 , the measurement processing device determines a triggering time of the trigger signal.
[0047] In step S240 , the measurement processing device determines the response time of the response signal.
[0048] In step S250, the measurement processing device determines the control delay duration between the control device and the controlled device according to the trigger time and the response time.
[0049] According to an example embodiment, in step S210, the measurement processing device receives a trigger signal sent by the trigger device, and the trigger signal and the first control signal are sent by the trigger device at the same time. When the control device receives the first control signal, it sends a second control signal to the controlled device. Therefore, the moment when the measurement processing device receives the trigger signal is the same as the moment when the control device starts to control the controlled device to perform a preset action.
[0050] According to the example embodiment, in step S230, the measurement processing device can determine the triggering moment of the triggering signal according to the triggering signal. The triggering moment can be the moment corresponding to the starting point of the triggering signal. The starting point of the triggering signal is the starting point when the triggering device sends the first control signal to the control device. Therefore, the triggering moment is equivalent to the moment when the control device starts to control the controlled device to perform the preset action, that is, the starting moment of the control delay duration.
[0051] For example, when the user presses the left mouse button and releases it, a high-level trigger signal is generated. That is, the trigger signal is a high-level signal. In step S230, the time corresponding to the starting point of the high-level signal (that is, the moment when the potential of the high-level signal changes from 0 to 1, which is also equivalent to the moment when the user presses the left mouse button) is used as the trigger time.
[0052] According to an example embodiment, in step S220, the measurement processing device receives a response signal from the controlled device. The response signal is generated when the controlled device responds to the second control signal to perform a corresponding preset action. That is, the measurement processing device receives the response signal, indicating that the controlled device is in a state of responding to the second control signal.
[0053] Therefore, in step S240, when the measurement and processing device determines the response time of the response signal, the starting time of the response signal can be determined as the response time. This is because when the controlled device successfully responds to the second control signal, it starts to output the response signal. Therefore, the starting time of the response signal is the initial time when the controlled device successfully responds to the second control signal.
[0054] According to an example embodiment, in step S250, the measurement processing device uses the response time as the end time of the control delay duration, uses the trigger time as the start time of the control delay duration, and calculates the difference between the response time and the trigger time to calculate the control delay duration from the control device to the controlled device.
[0055] Through the above embodiment, the trigger device generates a trigger signal while triggering the control device to send the second control signal, and sends the trigger signal to the measurement and processing device, and sends the first control signal to the control device. The measurement and processing device collects the trigger signal and the response signal of the controlled device, and calculates the control delay time from the control device to the controlled device according to the trigger time and response time corresponding to the trigger signal and the response signal.
[0056] In the prior art, the user often directly issues a command to the control device, so that the control device sends a second control signal to the controlled device, thereby controlling the controlled device to perform a preset action. For example, the user directly manually clicks a preset position on the mobile phone screen to generate a light-on control command. Then, the mobile phone can respond to the light-on control command and send a second control signal to the light, so that the light turns on.
[0057] In the scheme of measuring the control delay duration, the prior art needs to collect the time when the user issues the control command as the starting time of the control delay duration, and also needs to collect the time when the controlled device successfully responds as the end time of the control delay duration. The difference between the starting time and the end time is the control delay duration.
[0058] In the manual timing method of the prior art, the timing is usually started when the user issues a control command, and the timing is stopped when the light is turned on, so as to measure the control delay. However, in this method, there is a human error between the time when the timing starts and the time when the user actually issues the command, and there is also a human error between the time when the timing ends and the moment when the light is actually turned on, so the measurement accuracy is low.
[0059] In addition, in the log measurement timing method in the prior art, the user usually reads the time when the mobile phone sends the second control signal from the mobile phone log, and uses this time as the starting time. The time when the controlled device responds to the second control signal is read from the log of the controlled device, and this time is used as the end time. However, since the RTC of the control device and the controlled device are different, the timing cycles of the starting time and the end time are not synchronized, resulting in low measurement accuracy.
[0060] In the embodiment of the present application, the trigger device generates a trigger signal and a first control signal at the same time, and sends the trigger signal to the measurement and processing device, and sends the first control signal to the control device. And the first control signal is a signal for instructing the control device to control the controlled device. Therefore, the triggering moment of the trigger signal is the moment when the first control signal is generated, and it is also the moment when the control device starts to control the controlled device. The measurement and processing device uses the triggering moment of the trigger signal as the starting moment of the control delay duration, which can reduce the error of the measured control delay duration, thereby improving the measurement accuracy of the control delay duration.
[0061] And in the embodiment of the present application, the measurement processing device collects the response signal of the controlled device, and uses the response time of the response signal as the end time of the control delay duration to calculate the control delay duration. In this measurement method, the starting time and the end time are both collected by the measurement processing device, and there is no problem of deviation in time measurement due to different RTCs of different devices, which leads to asynchrony between the moments. Such a setting can improve the measurement accuracy of the control delay duration.
[0062] According to some embodiments, in the above step S250, the measurement processing device determines the control delay time between the control device and the controlled device according to the trigger time and the response time, which can be specifically implemented by step S251. Figure 3 After the electronic device determines the triggering time and the response time in the above steps S210 to S240, the control delay time is determined in step S251. Specifically:
[0063] In step S251, when the trigger signal and the response signal meet the preset conditions, the measurement and processing device determines the control delay duration between the control device and the controlled device according to the trigger time and the response time.
[0064] The preset conditions include that the number of received trigger signals reaches a preset trigger number and the number of received response signals reaches a preset response number.
[0065] Exemplarily, when the number of trigger signals received by the measurement processing device reaches a preset trigger number, and the number of response signals received reaches a preset response number, the measurement processing device determines the control delay duration based on the trigger time and the response time.
[0066] Exemplarily, in order to improve the measurement accuracy of the control delay duration, the user can perform multiple measurement experiments. The measurement processing device calculates the control delay duration corresponding to each measurement experiment based on the trigger signal and response signal received in each measurement experiment. After the user performs multiple measurement experiments, the measurement processing device calculates the control delay duration from the control device to the controlled device based on the control delay durations corresponding to the multiple measurement experiments.
[0067] For example, when the preset trigger number is set to 3 and the preset response number is set to 3, after the user performs the first measurement experiment, the measurement processing device receives the first group of trigger signals and response signals, and determines the trigger moment and response moment corresponding to the first group. After that, the user performs the second measurement experiment, the measurement processing device receives the second group of trigger signals and response signals, and determines the trigger moment and response moment corresponding to the second group.
[0068] Afterwards, the user conducts a third measurement experiment, and the measurement processing device receives a third set of trigger signals and response signals, and determines the trigger time and response time corresponding to the third set.
[0069] In this case, the number of the trigger signals received by the measurement processing device reaches a preset trigger number, and the number of the response signals received reaches a preset response number, that is, the measurement processing device detects that the trigger signal and the response signal meet a preset condition.
[0070] When the preset conditions are met, the measurement and processing device can determine the control delay time between the control device and the controlled device according to the trigger time and the response time in the following way:
[0071] For example, the measurement processing device calculates the control delay duration corresponding to each measurement experiment according to each trigger time and response time. Then, the measurement processing device can calculate the control delay duration from the control device to the controlled device according to the control delay duration corresponding to each measurement experiment.
[0072] For example, the measurement processing device may calculate the average of each control delay duration to obtain the control delay duration; or, the measurement processing device may determine the median of each control delay duration to obtain the control delay duration.
[0073] It is worth noting that the measurement processing device can calculate the control delay duration corresponding to each measurement experiment when the trigger signal and response signal corresponding to each measurement experiment are obtained. The measurement processing device can also calculate the control delay duration corresponding to each measurement experiment based on the trigger signal and response signal obtained in each measurement experiment after performing N measurement experiments and detecting that the trigger signal and response signal meet the preset conditions.
[0074] Optionally, the preset trigger quantity and the preset response quantity can be customized according to user needs. For example, the preset trigger quantity and the preset response quantity are both 3.
[0075] Optionally, the trigger device may be a mouse, a keyboard, or a trigger, etc., which is not limited here.
[0076] According to some embodiments, the trigger device and the control device may be connected wirelessly or via a data cable. Figure 4The mouse can be connected to the mobile phone through a data cable and a Type-C (or other mobile phone interface types that can adapt to the mobile phone interface) to USB adapter. One end of the Type-C adapter is connected to the mobile phone, and one end of the USB (Universal Serial Bus) is connected to the data cable connector of the mouse.
[0077] When the trigger device is triggered in response to a user instruction, a first control signal sent by the trigger device is transmitted to the controlled device via the data line or wirelessly.
[0078] The trigger device may specifically include a trigger key. When the trigger key is pressed and released by the user, it indicates that the trigger device is triggered in response to the user's instruction, so that the trigger device generates a first control signal. For example, the trigger device is a mouse, and the left button (or right button) of the mouse is equivalent to the trigger key. When the user presses and releases the left button of the mouse, the mouse generates the first control signal in response to the user's instruction.
[0079] For example, when the mobile phone and the mouse are connected by an adapter and a data cable, the user can turn on the developer mode of the mobile phone to ensure that the mouse clicks are effective. Then the user operates the mobile phone so that the control page of the controlled device is displayed on the mobile phone display. When the mobile phone and the mouse are successfully connected, the user can operate the mouse to move the mouse cursor to the preset position in the control page. Then the user can press the left button of the mouse, so that the mouse sends a first control signal to the mobile phone through the data cable. The mobile phone responds to the first control signal to generate a second control signal so that the controlled device responds to the second control signal to perform a preset action.
[0080] According to some embodiments, the trigger signal may be a trigger level signal. A trigger switch is provided inside the trigger key. The trigger switch includes a trigger end, which is connected to a measurement processing device.
[0081] When the trigger key is triggered in response to a user instruction, the trigger end of the trigger switch generates a trigger level signal to be collected by the measurement processing device. For example, a micro switch or a similar trigger switch is usually included inside the left button of a mouse. When the user presses the left button of the mouse, the state of the trigger switch usually changes from an open state to a closed state, thereby generating a high-level trigger level signal at the trigger end of the trigger switch.
[0082] According to some embodiments, the trigger device further includes a ground wire, which is a wire inside the trigger device for providing electrical grounding. The ground wire is connected to the measurement processing device to provide the measurement processing device with a reference potential of the trigger level signal.
[0083] In digital circuits, the level is relative to the reference potential. Without the potential on the ground line as a stable and accurate reference level, the trigger level signal generated by the trigger key will lose its meaning.
[0084] In addition, for test instruments such as measurement and processing equipment that need to collect level signals, the measured signal is usually required to have a clear reference potential. That is, when the measurement and processing equipment is not connected to the ground wire but only connected to the trigger end, the trigger level signal lacks a reference potential, and the measurement and processing equipment may not be able to correctly identify the trigger level signal. In addition, when the trigger level signal has no reference potential, the trigger level signal received by the measurement and processing equipment also lacks a reference, making it difficult to accurately determine whether the trigger level signal is interfered with or has waveform distortion.
[0085] Therefore, the ground line of the trigger device is connected to the measurement and processing device to provide the measurement and processing device with a reference potential of the trigger level signal, thereby facilitating the measurement and processing device to accurately identify the trigger level signal.
[0086] In the embodiment of the present application, the trigger signal (i.e., the trigger level signal) transmitted by the trigger device is actually a digital signal generated by a button click, etc., rather than an analog signal. Therefore, after the measurement and processing device captures the trigger signal, it does not need to convert the analog signal into a digital signal through analog-to-digital conversion before processing, thereby reducing the delay caused by the analog-to-digital conversion, thereby improving the accuracy of controlling the delay duration. In addition, the trigger level signal in the embodiment of the present application is a simple digital signal with a small amount of data, simple processing, and is not easily affected by environmental restrictions and external interference, which is conducive to improving the measurement accuracy.
[0087] According to some embodiments, the controlled device may include a ground terminal and an output terminal. The output terminal is connected to the measurement and processing device, and when the controlled device responds to the second control signal, the output terminal outputs a response signal to be received by the measurement and processing device. The ground terminal is connected to the measurement and processing device to provide the measurement and processing device with a reference potential of the response signal.
[0088] Exemplarily, the output end may be an output IO (Input / Output) port of the controlled device, and when the controlled device responds to the second control signal of the control device, the output IO port generates a response signal. For example, for a lamp, the output IO port of the lamp is connected to the measurement and processing device as an output end, so that the measurement and processing device can receive the response signal of the lamp. For example, if the controlled device is a motor, the motor control IO output port of the motor is connected to the measurement and processing device.
[0089] Exemplarily, the ground terminal is connected to the measurement and processing device. On the one hand, it can provide the measurement and processing device with a reference potential of the response signal so that the measurement and processing device can accurately receive and identify the response signal. On the other hand, it can also suppress the signal noise of the response signal, thereby improving the signal quality of the response signal, which is beneficial to improving the accuracy of the measurement control delay time.
[0090] In an embodiment of the present application, the controlled device is modified to connect the output IO port of the controlled device to the measurement and processing device, so that the measurement and processing device can accurately capture the moment when the controlled device responds to the control of the control device to perform a preset action, thereby improving the accuracy of measuring the control delay duration.
[0091] It is worth noting that the control device and the controlled device can be connected by electrical control via cables, wirelessly via a local area network or other networks, or wirelessly via Bluetooth or other methods, which are not limited here. When a connection is achieved using a local area network or other network, the user needs to keep the network unobstructed when conducting a control delay duration measurement experiment to reduce the impact of an unstable network environment on the accuracy of the control delay duration measurement.
[0092] It should be clearly understood that the present application describes how to form and use specific examples, but the present application is not limited to any details of these examples. On the contrary, based on the teaching of the content disclosed in the present application, these principles can be applied to many other embodiments.
[0093] Those skilled in the art may understand that all or part of the steps to implement the above embodiments are implemented as a computer program executed by a CPU. When the computer program is executed by the CPU, the above functions defined by the above method provided in this application are performed.
[0094] According to another aspect of the present application, an embodiment of the present application provides an end-to-end control delay duration measurement system, which includes a trigger device 10 , a control device 20 , a controlled device 30 , and a measurement processing device 40 .
[0095] According to an exemplary embodiment, the trigger device 10 responds to a user instruction to simultaneously output a first control signal and a trigger signal. The control device 20 is connected to the trigger device 10, receives the first control signal of the trigger device 10, and outputs a second control signal. The controlled device 30 is connected to the control device 20, responds to the second control signal and outputs a response signal. The measurement processing device 40 is connected to the trigger device 10, connected to the controlled device 30, and receives the trigger signal of the trigger device 10 and the response signal of the controlled device 30.
[0096] The measurement processing device 40 determines the triggering time of the trigger signal and the response time of the response signal, and the measurement processing device 40 determines the control delay time between the control device 20 and the controlled device 30 according to the triggering time and the response time.
[0097] Exemplarily, the trigger device 10 can be a mouse (or other device such as a keyboard that can respond to user instructions to generate a first control signal), the control device 20 can be a mobile phone, and the controlled device 30 can be a smart device. The user connects the mouse to the mobile phone and uses the mouse to send a first control signal to the mobile phone so that the mobile phone starts to control the smart device to perform a preset action. The mouse generates a trigger signal while sending the first control signal. The trigger signal is collected by the measurement and processing device 40, so that the measurement and processing device 40 can accurately capture the moment when the mobile phone starts to control the smart device, which is conducive to improving the accuracy of measuring the control delay time.
[0098] Exemplarily, when the controlled device 30 performs a corresponding preset action in response to the second control signal of the mobile phone, the controlled device 30 outputs a response signal to the measurement and processing device 40, so that the measurement and processing device 40 can accurately capture the moment when the controlled device 30 successfully responds to the second control signal, thereby facilitating improving the accuracy of measuring the control delay duration.
[0099] Optionally, the trigger device and the control device may be connected wirelessly or via a data line. The trigger device may specifically include a trigger key. When the trigger key is pressed and released by the user, it indicates that the trigger device is triggered in response to the user's instruction, so that the trigger device generates a first control signal and transmits it to the control device via a data line or wirelessly.
[0100] For example, the trigger device is a mouse, and the left button (or right button) of the mouse is equivalent to the trigger button. The mouse can be connected to the mobile phone via a data cable and a Type-C (or other types of mobile phone interfaces) to USB adapter. The user presses and releases the left button of the mouse, and the mouse responds to the user's command to generate a first control signal. The first control signal is transmitted to the control device via the data cable or wirelessly.
[0101] According to some embodiments, the trigger signal may be a trigger level signal. A trigger switch is provided inside the trigger key. The trigger switch includes a trigger end. The trigger end of the trigger switch is connected to a measurement processing device. When the trigger key is triggered in response to a user instruction, the trigger end of the trigger switch generates a trigger level signal, which is collected by the measurement processing device.
[0102] The trigger device also includes a ground wire. The ground wire is a wire used to provide electrical grounding in the trigger device. The ground wire is also connected to the measurement and processing device, so that on the one hand, it can provide a reference potential for the trigger level signal on the trigger end, and on the other hand, it can also suppress the noise generated on the trigger line, thereby improving the signal quality of the trigger level signal.
[0103] According to some embodiments, the controlled device may include a ground terminal and an output terminal. The output terminal is connected to the measurement and processing device, and when the controlled device responds to the second control signal, the output terminal outputs a response signal to be received by the measurement and processing device. The ground terminal is connected to the measurement and processing device to provide the measurement and processing device with a reference potential of the response signal.
[0104] Exemplarily, the output end may specifically be an output IO (Input / Output) port of the controlled device. When the controlled device responds to the second control signal of the control device, the output IO port generates a response signal.
[0105] Exemplarily, connecting the ground terminal to the measurement and processing device can, on the one hand, provide the measurement and processing device with a reference potential for the response signal, and on the other hand, suppress the signal noise of the response signal, thereby improving the signal quality of the response signal, which in turn helps to improve the accuracy of measuring the control delay time.
[0106] In an embodiment of the present application, the controlled device is modified to connect the output IO port of the controlled device to the measurement and processing device, so that the measurement and processing device can accurately capture the moment when the controlled device responds to the control of the control device to perform a preset action, thereby improving the accuracy of measuring the control delay duration.
[0107] According to some embodiments, the measurement and processing device may specifically include a signal acquisition device and a terminal device. The terminal device may be a computer. The signal acquisition device may specifically be a signal oscilloscope or a logic analyzer, which is not limited here.
[0108] The signal acquisition device is connected to the controlled device and the trigger device respectively to acquire the trigger signal and the response signal. The computer is connected to the signal acquisition device to calculate the control delay time according to the trigger signal and the response signal.
[0109] Based on the above embodiment, an example is provided here to illustrate the overall process of using the measurement system to measure the control delay duration. Figure 4 , taking the trigger device as a mouse, the control device as a mobile phone, and the signal acquisition device as a logic analyzer as an example for explanation.
[0110] The user can turn on the developer mode of the mobile phone to ensure that the mouse click is effective. Then the user operates the mobile phone so that the control page of the controlled device is displayed on the mobile phone screen.
[0111] The user can connect the mobile phone and the mouse using an adapter and a data cable. The user can also modify the mouse and connect the ground wire of the mouse and the trigger end of the micro switch of the left button to the logic analyzer. The user can also connect the ground wire and the output IO port of the controlled device to the logic analyzer. The logic analyzer is connected to the computer.
[0112] When the mobile phone and the mouse are successfully connected, the user can operate the mouse on the control page of the mobile phone, move the mouse cursor to a preset position in the control page and press the left button of the mouse, so that the mouse sends a first control signal to the mobile phone through the data cable.
[0113] The mobile phone responds to the first control signal to generate a second control signal so that the controlled device responds to the second control signal to perform a preset action.
[0114] When the mouse sends the first control signal, a trigger level signal is generated at the trigger end of the micro switch of the left button of the mouse at the same time. The trigger level signal is transmitted to the logic analyzer and collected by the logic analyzer.
[0115] When the controlled device executes the preset action in response to the second control signal, the output IO port of the controlled device generates a response signal, which is transmitted to the logic analyzer to be collected by the logic analyzer.
[0116] The computer can calculate the control delay time based on the trigger signal and response signal collected by the logic analyzer, and take the time corresponding to the starting point of the trigger level signal as the starting time of the control delay time, and the time corresponding to the starting point of the response signal as the ending time of the control delay time.
[0117] After that, the user operates the mouse again so that the mouse sends the first control signal to the mobile phone again to perform another measurement experiment. After the user performs N measurement experiments, the computer detects that the trigger signal and the response signal meet the preset conditions, and the computer can calculate the average of each control delay time according to the control delay time corresponding to each measurement experiment to obtain the control delay time from the control device to the controlled device.
[0118] According to another aspect of the present application, the embodiment of the present application also introduces a measurement processing device from the perspective of a physical device. Figure 5 , Figure 5The measurement processing device shown includes: a processor and a memory. The processor and the memory are connected, such as through a bus. Optionally, the measurement processing device may also include a transceiver. It should be noted that in actual applications, the transceiver is not limited to one, and the structure of the measurement processing device does not constitute a limitation on the embodiments of the present application.
[0119] The processor may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0120] The bus may include a path to transmit information between the above components. The bus may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0121] The memory can be ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or it can be EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to this.
[0122] The memory is used to store the application code for executing the solution of the present application, and the execution is controlled by the processor. The processor is used to execute the application code stored in the memory to implement the content shown in the above method embodiment.
[0123] According to another aspect of the present application, an embodiment of the present application provides a non-volatile computer-readable medium, on which a computer program is stored, and when the computer-readable medium is run on a computer, the computer can execute the corresponding content in the aforementioned method embodiment. The storage medium can be a read-only memory, a disk or an optical disk, etc.
[0124] According to another aspect of the present application, an embodiment of the present application provides a computer program product. The computer program product includes a computer program stored on a computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the corresponding content in the aforementioned method embodiment.
[0125] Finally, it should be noted that the above are only preferred embodiments of the present application and are not intended to limit the present application. Although the present application is described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions of the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for measuring end-to-end control delay, characterized in that: The measurement method is applied to a measurement system for end-to-end control delay duration; The measurement system comprises a trigger device, a control device, a controlled device and a measurement processing device, wherein the trigger device sends a first control signal to the control device in response to a user instruction, and simultaneously sends a trigger signal to the measurement processing device in response to the user instruction; The control device sends a second control signal to the controlled device in response to the first control signal; The measurement method is performed by the measurement processing device, and the measurement method includes: receiving a trigger signal sent by the trigger device; receiving a response signal sent by the controlled device, wherein the response signal is generated by the controlled device based on the second control signal; Determining a triggering moment of the triggering signal; Determining a response time of the response signal; A control delay duration between the control device and the controlled device is determined according to the trigger time and the response time.
2. The measuring method according to claim 1, characterized in that: The determining, according to the triggering time and the response time, a control delay duration between the control device and the controlled device, comprises: When the trigger signal and the response signal meet preset conditions, determining a control delay time between the control device and the controlled device according to the trigger time and the response time; The preset conditions include: The number of the received trigger signals reaches a preset trigger number; and, The number of the received response signals reaches a preset response number.
3. The measuring method according to claim 1, characterized in that: The trigger signal includes a trigger level signal; Wherein, the trigger device includes: A trigger key, comprising a trigger switch, the trigger switch comprising a trigger end, the trigger end being connected to the measurement processing device, and when the trigger key is triggered in response to the user instruction, the trigger end generates a trigger level signal to be received by the measurement processing device; A ground line is connected to the measurement processing device to provide a reference potential of the trigger level signal to the measurement processing device.
4. The measuring method according to claim 1, characterized in that: The controlled equipment includes: an output terminal connected to the measurement processing device, wherein when the controlled device responds to the second control signal, the output terminal outputs the response signal to be received by the measurement processing device; A ground terminal is connected to the measurement and processing device to provide the measurement and processing device with a reference potential of the response signal.
5. A system for measuring end-to-end control delay, characterized in that: The measurement system comprises: A trigger device, responding to a user instruction to simultaneously output a first control signal and a trigger signal; a control device connected to the trigger device, receiving a first control signal sent by the trigger device, and generating and sending a second control signal based on the first control signal; A controlled device, connected to the control device, receives the second control signal, and generates a response signal; A measurement and processing device, connected to the trigger device and the controlled device, and receiving a trigger signal sent by the trigger device and a response signal sent by the controlled device; The measurement and processing device determines a triggering time of the trigger signal and a response time of the response signal, and determines a control delay duration between the control device and the controlled device according to the triggering time and the response time.
6. The measuring system according to claim 5, characterized in that The trigger signal includes a trigger level signal; Wherein, the trigger device includes: A trigger key, comprising a trigger switch, the trigger switch comprising a trigger end, the trigger end being connected to the measurement processing device, and when the trigger key is triggered in response to the user instruction, the trigger end generates a trigger level signal to be received by the measurement processing device; A ground line is connected to the measurement processing device to provide a reference potential of the trigger level signal to the measurement processing device.
7. The measuring system according to claim 5, characterized in that The measurement processing equipment comprises: A signal acquisition device, connected to the trigger device and the controlled device respectively, to acquire the trigger signal and the response signal; The terminal device is connected to the signal acquisition device and determines the control delay duration between the control device and the controlled device according to the received response output signal and the trigger signal.
8. A non-volatile computer-readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the measurement method according to any one of claims 1 to 4 is implemented.
9. A measurement processing device, characterized in that: include: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the measurement method according to any one of claims 1 to 4.
10. A computer program product, characterized in that The method comprises a computer program stored on a computer-readable storage medium, wherein the computer program comprises program instructions, and when the program instructions are executed by a computer, the computer is caused to execute the measurement method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Device performance detection method and system
CN105892440A
Transmission delay determination method and device, terminal and storage medium
CN113726600A
Bluetooth key detection method, device and system and storage medium thereof
CN117116026A
Accurate end-to-end latency measurement
US11192024B1