Multi-channel communication network quality detection and feedback method and system

By dynamically detecting the network status and device screen refresh rate, intelligently adjusting the control data transmission interval, the problem of inability to respond or response errors caused by data blockage by the controlled terminal is solved, and the stability of the communication network and the response efficiency of touch data are improved.

CN120034452APending Publication Date: 2025-05-23MILITARY SCI INFORMATION RES CENT ACAD OF MILITARY SCI OF THE CHINESE PEOPLES LIBERATION ARMY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510182584.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-19
Publication Date
2025-05-23

AI Technical Summary

Technical Problem

In the prior art, the problem of unresponsiveness or errors in response due to data blockage is particularly prominent when the network is poor or the device screen refresh rate is high.

Method used

By dynamically detecting the network status and device screen refresh rate, intelligently adjusting the control data transmission interval to ensure that the controlled end can respond in a timely manner. The specific methods include: determining the network status based on the average value of the time difference of three complete UDP requests and responses, and setting the interval for sending control data according to the network status; obtaining the touch data feedback interval based on the screen refresh rate of the device; determining the final control data transmission interval based on the two, and adopting a delayed transmission strategy when the number of touch points changes.

Benefits of technology

It effectively reduces the problem of unresponsiveness or response errors caused by data blocking of the controlled end, and improves the stability of the communication network and the response efficiency of touch data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120034452A_ABST
    Figure CN120034452A_ABST
Patent Text Reader

Abstract

The invention discloses a multichannel communication network quality detection and feedback method and system, and the method comprises the steps: setting an interval for transmitting control data through network detection; and based on the screen refresh rate of the equipment, obtaining a touch data feedback interval, and determining a final control data sending interval based on the interval of sending the control data and the touch data feedback interval. By dynamically detecting the network state and the equipment screen refresh rate, the data sending interval is intelligently adjusted and controlled, the problem that the controlled end cannot respond or makes a response error due to data congestion is effectively solved, and the stability of a communication network and the response efficiency of touch data are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network quality optimization, and in particular to a multi-channel communication network quality detection and feedback method and system. Background Art

[0002] The controlled-end signal source that supports the driver-free protocol can accept and process touch data in the corresponding format, but there is a time limit for the controlled-end device to process and respond to touch data. For example, the interval between every two data must be no less than 15ms. If the interval between the received data is less than the speed at which the response can be processed, the controlled end will be unable to respond or will respond incorrectly (the effect of the control end and the controlled end is inconsistent).

[0003] In the prior art, the control end does not interfere with the frequency of sending touch data. It sends the data as soon as it is collected. If the network status is good and the device screen refresh rate is low, no abnormality will be obviously perceived. Once the network status is poor or the device screen refresh rate is high, data congestion will occur, causing the controlled end to be unable to respond or respond incorrectly.

[0004] To avoid or reduce this phenomenon, the frequency of touch data sent by the control end must be processed. However, the control end is affected by factors such as network status, device screen refresh rate and changes in the current number of touch points. Therefore, dynamic network detection is required. The interval value for sending touch data is set according to the current network status and the current device screen refresh rate. In addition, key data such as pressing and lifting when the touch is not filtered and the dynamic changes in the number of touch points on the control end must also be considered. Summary of the invention

[0005] In order to solve the technical problems in the above background, the present invention aims to provide a method to reduce the problem that the controlled end cannot respond to touch data or responds incorrectly due to data blocking.

[0006] To achieve the above object, the present invention provides a multi-channel communication network quality detection and feedback method, the steps comprising:

[0007] Through network detection, set the interval for sending control data;

[0008] Get the touch data feedback interval based on the device's screen refresh rate;

[0009] A final control data sending interval is determined based on the control data sending interval and the touch data feedback interval.

[0010] Preferably, the method for performing network detection includes: determining the current network status according to the average value of the time difference between three complete UDP requests and responses; the network status includes: an average value not higher than 10ms represents an excellent network, 10ms-30ms (inclusive) represents a good network, and greater than 30ms represents a poor network;

[0011] When the network status is excellent, the interval for sending control data is set to ≥16ms, when the network status is good, the interval for sending control data is set to ≥24ms, and when the network status is poor, the interval for sending control data is set to ≥32ms.

[0012] Preferably, the touch points include single-point and multi-point touch; the mobile event data generated during the touch continues to be filtered, and the conditions include: the current event data time minus the last recorded sent event data time is less than the network status setting value.

[0013] Preferably, when the data event feedback time difference caused by the change in the number of touch points is less than the network status setting value, a delayed sending strategy is adopted, and the formula includes:

[0014] Delay time = network status setting value - touch data event feedback time difference.

[0015] The present invention also provides a multi-channel communication network quality detection and feedback system, the system is used to implement the above method, including: an initial sending interval setting module, a feedback acquisition module and a final sending interval determination module;

[0016] The initial sending interval setting module is used to set the interval for sending control data through network detection;

[0017] The feedback acquisition module is used to acquire the touch data feedback interval based on the screen refresh rate of the device;

[0018] The final sending interval determination module is used to determine a final control data sending interval based on the control data sending interval and the touch data feedback interval.

[0019] Preferably, the workflow of the initial sending interval setting module includes: determining the current network status according to the average value of the time difference between three complete UDP requests and responses; the network status includes: an average value not higher than 10ms represents an excellent network, 10ms-30ms (inclusive) represents a good network, and greater than 30ms represents a poor network;

[0020] When the network status is excellent, the interval for sending control data is set to ≥16ms, when the network status is good, the interval for sending control data is set to ≥24ms, and when the network status is poor, the interval for sending control data is set to ≥32ms.

[0021] Preferably, the touch points include single-point and multi-point touch; the mobile event data generated during the touch continues to be filtered, and the conditions include: the current event data time minus the last recorded sent event data time is less than the network status setting value.

[0022] Preferably, when the data event feedback time difference caused by the change in the number of touch points is less than the network status setting value, a delayed sending strategy is adopted, and the formula includes:

[0023] Delay time = network status setting value - touch data event feedback time difference.

[0024] Compared with the prior art, the present invention has the following beneficial effects:

[0025] The present invention dynamically detects the network status and the device screen refresh rate, and intelligently adjusts the control data sending interval, thereby effectively reducing the problem of the controlled end being unable to respond or responding incorrectly due to data blocking, and improving the stability of the communication network and the response efficiency of touch data. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the technical solution of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0027] Figure 1 A schematic diagram of data filtering according to an embodiment of the present invention;

[0028] Figure 2 The figure is a schematic diagram of a method flow of an embodiment of the present invention. DETAILED DESCRIPTION

[0029] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0030] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0031] Before the description, the technical terms of the present invention are first explained; the "device" in the present invention mainly refers to the controlled end devices that support the driver-free protocol, and these devices can receive and process touch data from the control end. Specifically, these devices may include but are not limited to:

[0032] Touch screen devices: such as smartphones, tablet computers, touch screen computers, etc., which have touch functions and can receive user touch input.

[0033] Display devices: These devices have display screens that can display images and respond to touch operations. The screen refresh rate is an important parameter of these devices, which affects the processing and feedback of touch data.

[0034] Network communication devices: These devices communicate with the control end through a wireless or wired network, receive touch data sent by the control end, and perform corresponding operations based on this data.

[0035] Embodiment 1

[0036] This embodiment provides a multi-channel communication network quality detection and feedback method, the steps comprising:

[0037] S1. Set the interval for sending control data through network detection.

[0038] Detect the network status. Each complete control is detected (a complete control includes pressing and lifting, that is, the network status is detected when a finger is pressed data is received). The current network status is determined according to the average value of the time difference of three complete UDP requests and responses (the control end sends a UDP data to the controlled end, and the controlled end returns a UDP data to the control end after receiving it. From the time the control end sends to the time the control end receives the return data, it is a complete UDP request and response, which is sent three times in a row at the same time). The average value of these three time differences is obtained, and rules are formulated based on the average value of the three time differences. An average value no higher than 10ms (inclusive) indicates an excellent network, 10ms-30ms (inclusive) indicates a good network, and greater than 30ms indicates a poor network. When the network status is excellent, the interval for sending control data is set to ≥16ms, when the network status is good, the interval for sending control data is set to ≥24ms, and when the network status is poor, the interval for sending control data is set to ≥32ms.

[0039] S2. Based on the screen refresh rate of the device, obtain the touch data feedback interval.

[0040] The screen refresh rate of the current device is mainly 60Hz, 90Hz, 120Hz, and 144Hz. It represents how many times the screen will refresh the image per second (60Hz screen refresh rate refreshes 60 times per second, 120Hz screen refresh rate refreshes 120 times per second), and the interval of each image refresh is divided by the screen refresh rate of the current device per second. For example: the current device screen refresh rate is 60Hz, which is equal to 1000 milliseconds per second, and each image refresh is 1000÷60≈16.66ms; 1000÷90≈11.11ms at 90Hz, 1000÷120≈8.33ms at 120Hz, and 1000÷144≈6.94ms at 144Hz. At the same time, this also indicates the interval at which the system feedbacks each touch data during touch (the number of touch data fed back per second under single-finger touch is equal to the number of times the screen image is refreshed per second). In this embodiment, the screen refresh rate of the device is obtained through the API provided by the Android system.

[0041] S3. Determine a final control data sending interval based on the control data sending interval and the touch data feedback interval.

[0042] The interval for sending touch data is dynamically adjusted according to the network status, screen refresh rate and number of touch points to ensure that the controlled end can receive, process and respond correctly.

[0043] The number of touch points includes single-point and multi-point touch. Android devices generally support 10-point touch, which means that ten fingers can touch at the same time. According to the current driver-free protocol, the more touch points there are at the same time, the larger the amount of touch data; when the number of touch points changes, the amount of touch data will increase or decrease with the current screen refresh rate. For example, if the current device refresh rate is 60Hz, 60 touch data will be generated per second with a single finger. When it changes from a single finger to two fingers, 60+1 data will be generated per second. The amount of data per second = screen refresh rate + (touch point number - 1, only when the touch point changes will it increase or decrease). When touching the control end screen, touch data will be generated, and these touch data will be given to the developer through the system's onTouchEvent (MotionEvent event) function. When touching, motion event data is generated, so it needs to be filtered (press and lift event data is not filtered); when filtering, it meets the following conditions: the time of this event data minus the time of the last recorded event data that has been sent is less than the network status setting value.

[0044] Embodiment 2

[0045] The following will explain in detail how the present invention solves technical problems in real life in conjunction with this embodiment.

[0046] The preconditions of this embodiment are set as follows: the network status is excellent (16ms), the screen refresh rate is 90Hz, and the touch data event feedback time is: 0ms (press), 11.1ms, 22.2ms, 33.3ms, 44.4ms, 55.5ms, 66.6ms...

[0047] like Figure 1 As shown, each piece of feedback data will have an event time, and the interval between each piece of data is 11.1ms;

[0048] Each time the data that meets the conditions is used, the current event time is recorded:

[0049] Current event time - last event time that meets the conditions < 16 filtering;

[0050] Current event time - the last event time that meets the conditions > 16 is sent and the event is recorded.

[0051] This cycle can ensure that the interval for sending touch data is less than the network setting value.

[0052] The filtering formula is:

[0053] Sending frequency per second = refresh rate ÷ ceil (network status setting value ÷ (1 second ÷ refresh rate)).

[0054] Ceil function: round up, such as 0.1 rounded up equals 1;

[0055] 1 second: converted to 1000 milliseconds (ms).

[0056] For example:

[0057] When the screen refresh rate is 60Hz and the network status setting value is Excellent (16):

[0058] f(n)=60Hz÷ceil(16÷(1000ms÷60Hz))=60(times).

[0059] When the screen refresh rate is 90Hz and the network status setting value is Good (24):

[0060] f(n)=90Hz÷ceil(24÷(1000ms÷90Hz))=30(times).

[0061] Processing when the number of touch points changes:

[0062] When the touch point changes, it has nothing to do with the screen refresh rate and will be fed back in time. In this case, delayed sending is required.

[0063] When the touch point changes, the touch data event feedback time difference is involved, which means when the number of touch points changes from 1 finger to 2 fingers, the difference between the 2-finger event feedback time and the 1-finger event feedback time. The data and event feedback time of touch events can be obtained through the API provided by the Android system.

[0064] For example: when the network status is good and the number of touch points increases from 1 finger to 5 fingers, the touch point data fed back by the system increases from 1 to 5, rather than directly from 1 to 5. At this time, the time difference in data event feedback when the touch points change may be 3ms (from 1 finger to 2 fingers), 5ms (from 2 fingers to 3 fingers), 18ms (from 3 fingers to 4 fingers), and 8ms (from 4 fingers to 5 fingers).

[0065] For messages that are less than the network status setting value of 16ms, delayed sending is performed. The delay formula is:

[0066] Delay time = network status setting value - touch data event feedback time difference.

[0067] For example:

[0068] The network status setting value is excellent (16ms), and the touch data event feedback time difference is (8ms):

[0069] f(n)=16-8=8(ms), so it needs to be delayed by 8ms to send.

[0070] The network status setting value is difference (32ms), and the touch data event feedback time difference is (5ms):

[0071] f(n)=32-5=27(ms), so it needs to be delayed by 27ms to send.

[0072] Before sending the control data, the filtered and unfiltered data are checked again. If the event time of this data minus the last recorded sent event time is less than the network status setting value, the delayed sending strategy will also be implemented, and the delay formula is the same as above.

[0073] In this way, it is ensured that the interval of the control end sending touch data is greater than the upper limit of the controlled end processing and greater than the network status setting value, effectively avoiding the problem of the controlled end being unable to respond to touch data or responding incorrectly due to data blocking. Figure 2 shown.

[0074] Embodiment 3

[0075] This embodiment also provides a multi-channel communication network quality detection and feedback system, including: an initial sending interval setting module, a feedback acquisition module and a final sending interval determination module. The initial sending interval setting module is used to set the interval for sending control data through network detection; the feedback acquisition module is used to obtain the touch data feedback interval based on the screen refresh rate of the device; the final sending interval determination module is used to determine the final control data sending interval based on the interval for sending control data and the touch data feedback interval.

[0076] The following will explain in detail how the present invention solves technical problems in real life in conjunction with this embodiment.

[0077] The initial sending interval setting module sets the interval for sending control data through network detection.

[0078] Detect the network status. Each complete control is detected (a complete control includes pressing and lifting, that is, the network status is detected when a finger is pressed data is received). The current network status is determined according to the average value of the time difference of three complete UDP requests and responses (the control end sends a UDP data to the controlled end, and the controlled end returns a UDP data to the control end after receiving it. From the time the control end sends to the time the control end receives the return data, it is a complete UDP request and response, which is sent three times in a row at the same time). The average value of these three time differences is obtained, and rules are formulated based on the average value of the three time differences. An average value no higher than 10ms (inclusive) indicates an excellent network, 10ms-30ms (inclusive) indicates a good network, and greater than 30ms indicates a poor network. When the network status is excellent, the interval for sending control data is set to ≥16ms, when the network status is good, the interval for sending control data is set to ≥24ms, and when the network status is poor, the interval for sending control data is set to ≥32ms.

[0079] The feedback acquisition module obtains the touch data feedback interval based on the screen refresh rate of the device.

[0080] The screen refresh rate of the current device is mainly 60Hz, 90Hz, 120Hz, and 144Hz. It represents how many times the screen will refresh the image per second (60Hz screen refresh rate refreshes 60 times per second, 120Hz screen refresh rate refreshes 120 times per second), and the interval of each image refresh is divided by the screen refresh rate of the current device per second. For example: the current device screen refresh rate is 60Hz, which is equal to 1000 milliseconds per second, and each image refresh is 1000÷60≈16.66ms; 1000÷90≈11.11ms at 90Hz, 1000÷120≈8.33ms at 120Hz, and 1000÷144≈6.94ms at 144Hz. At the same time, this also indicates the interval at which the system feedbacks each touch data during touch (the number of touch data fed back per second under single-finger touch is equal to the number of times the screen image is refreshed per second). In this embodiment, the screen refresh rate of the device is obtained through the API provided by the Android system.

[0081] The final sending interval determination module determines the final control data sending interval based on the control data sending interval and the touch data feedback interval.

[0082] Dynamically adjust the interval for sending touch data according to the network status, screen refresh rate and number of touch points to ensure that the controlled end can receive, process and respond correctly. The number of touch points includes single-point and multi-point touch. Android devices generally support 10-point touch, which means that ten fingers can touch at the same time. According to the current driver-free protocol, the more touch points there are at the same time, the larger the amount of touch data; when the number of touch points changes, the amount of touch data will increase or decrease with the current screen refresh rate. For example: the current device refresh rate is 60Hz, 60 touch data will be generated per second with a single finger. When it changes from a single finger to two fingers, 60+1 data will be generated per second. The amount of data per second = screen refresh rate + (number of touch points - 1, only when the touch points change will it increase or decrease). When the control end screen is touched, touch data will be generated, and these touch data will be given to the developer through the system's onTouchEvent (MotionEventevent) function. Touch generates motion event data, so it needs to be filtered (press and lift event data are not filtered); filtering meets the following conditions: the current event data time minus the last recorded sent event data time is less than the network status setting value.

[0083] When the data event feedback time difference caused by the change in the number of touch points is less than the network status setting value, the delayed sending strategy is adopted. The formula includes:

[0084] Delay time = network status setting value - touch data event feedback time difference.

[0085] The embodiments described above are only descriptions of the preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Without departing from the design spirit of the present invention, various modifications and improvements made to the technical solutions of the present invention by ordinary technicians in this field should all fall within the protection scope determined by the claims of the present invention.

Claims

1. A multi-channel communication network quality detection and feedback method, characterized in that the steps include: Through network detection, set the interval for sending control data; Get the touch data feedback interval based on the device's screen refresh rate; A final control data sending interval is determined based on the control data sending interval and the touch data feedback interval.

2. The multi-channel communication network quality detection and feedback method according to claim 1, characterized in that: The method for performing network detection includes: determining the current network status according to the average value of the time difference between three complete UDP requests and responses; the network status includes: the average value is not higher than 10ms, indicating that the network is excellent, between 10ms-30ms, indicating that the network is good, and greater than 30ms, indicating that the network is poor; When the network status is excellent, the interval for sending control data is set to ≥16ms, when the network status is good, the interval for sending control data is set to ≥24ms, and when the network status is poor, the interval for sending control data is set to ≥32ms.

3. The multi-channel communication network quality detection and feedback method according to claim 1, characterized in that: The number of touch points includes single-point and multi-point touch; the mobile event data generated during touch continues to be filtered, and the conditions include: the current event data time minus the last recorded sent event data time is less than the network status setting value.

4. The multi-channel communication network quality detection and feedback method according to claim 1, characterized in that: When the data event feedback time difference caused by the change in the number of touch points is less than the network status setting value, the delayed sending strategy is adopted. The formula includes: Delay time = network status setting value - touch data event feedback time difference.

5. A multi-channel communication network quality detection and feedback system, the system is used to implement the method according to any one of claims 1 to 4, characterized in that: It includes: an initial sending interval setting module, a feedback obtaining module and a final sending interval determining module; The initial sending interval setting module is used to set the interval for sending control data through network detection; The feedback acquisition module is used to acquire the touch data feedback interval based on the screen refresh rate of the device; The final sending interval determination module is used to determine a final control data sending interval based on the control data sending interval and the touch data feedback interval.

6. The multi-channel communication network quality detection and feedback system according to claim 5, characterized in that: The workflow of the initial sending interval setting module includes: determining the current network status according to the average value of the time difference between three complete UDP requests and responses; the network status includes: an average value not higher than 10ms represents an excellent network, between 10ms-30ms represents a good network, and greater than 30ms represents a poor network; When the network status is excellent, the interval for sending control data is set to ≥16ms, when the network status is good, the interval for sending control data is set to ≥24ms, and when the network status is poor, the interval for sending control data is set to ≥32ms.

7. The multi-channel communication network quality detection and feedback system according to claim 5, characterized in that: The number of touch points includes single-point and multi-point touch; the mobile event data generated during touch continues to be filtered, and the conditions include: the current event data time minus the last recorded sent event data time is less than the network status setting value.

8. The multi-channel communication network quality detection and feedback system according to claim 5, characterized in that: When the data event feedback time difference caused by the change in the number of touch points is less than the network status setting value, the delayed sending strategy is adopted. The formula includes: Delay time = network status setting value - touch data event feedback time difference.