A method for processing incentive-based data
By using incentive queue merging operations and multi-thread processing in the network analyzer, the problems of interface lag and slow data refresh caused by frequent parameter settings are solved, and operation fluency and data consistency are improved.
Patent Information
- Application Number
- CN202410896561.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2044-07-05
AI Technical Summary
When users operate the network analyzer, frequent parameter settings lead to interface freezes and slow first frame data refresh. Existing technology cannot effectively solve the problem of redundant state reset caused by differences in processing efficiency between hardware and software.
The incentive queue is used to merge the operations issued multiple times into one operation. When the queue is updated, the initial and end operations are performed, the incentive parameters are merged and issued to the hardware, and data consistency is maintained through multi-thread processing, and operations are performed with priority to reduce response time.
Through merging operations and multi-thread processing, interface lags are eliminated, user operation fluency and data refresh speed are improved, and the consistency of hardware and software status is ensured.
Smart Images

Figure CN118433085B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing, and specifically to a method for processing data under incentive distribution. Background Art
[0002] When the user uses the network analyzer in the operation interface, the operation is not smooth and the interface is stuck because the parameters are set too frequently in a short period of time, such as: instrument knobs, mouse wheels, SCPI commands to modify parameters;
[0003] When the knob is used to send stimulus operations multiple times, due to the different data processing efficiencies of hardware and software, parameters are sent to the hardware synchronously. Each time the hardware receives the stimulus parameters, it will reset its state, which takes a certain amount of time.
[0004] If incentives are sent to the hardware multiple times in succession, the hardware will be reset redundantly multiple times, which will increase or decrease the time consumption and cause the first frame data to refresh slowly after the user completes the operation. If the first frame data is refreshed slowly, the software will merge and send incentives in advance, which will increase or decrease the time it takes for the hardware to reach stability. Summary of the invention
[0005] The present application discloses an incentive data processing method and device to solve the problems of the prior art.
[0006] Please provide a method for processing incentive data, including: merging the incentive issuance and the previous and next operations into one incentive operation and adding it to the incentive queue;
[0007] Determine whether the operations in the incentive queue are updated;
[0008] If updated, execute all non-repetitive initial and end operations in the incentive queue, merge multiple incentives into one, and send the latest incentive parameters to the hardware.
[0009] Specifically, judging whether the operation in the incentive queue is updated includes:
[0010] When a stimulus change event occurs between two processing of collected data, the operations in the operation queue are updated.
[0011] Furthermore, an incentive queue is constructed, and the user operation setting parameters take effect, and the user operation that needs to change the hardware incentive is directly placed in the merge operation into the incentive queue;
[0012] Among them, the initial operation: BeginAction;
[0013] The priority of the operation: StimActionType;
[0014] End operation: EndAction;
[0015] Stimulus operation: StimulusAction StimAction{ Action BeginAction; ActionBeginAction; StimActionTypeStimType;}
[0016] Furthermore, multiple consecutive operations of setting the same type of parameters by user operations are merged into one operation in the incentive queue.
[0017] Furthermore, for the same type of parameter settings in the incentive queue, the initial operation and the final operation are issued in a time series order without duplication.
[0018] Furthermore, the existing operations in the operation queue are analyzed: first, all non-repetitive initial operations are executed, then the latest user-set stimulus parameters are sent to the hardware, and finally, all non-repetitive end operations are executed.
[0019] Further, when the operation in the excitation queue is not updated and when there are multiple operations in the excitation queue, the software continues to process the data thread.
[0020] Furthermore, after the user operation incentive parameters are changed, the priority is defined for the cache data processing method of each software module according to the parameter change.
[0021] Furthermore, every time the data processing thread processes data, it checks whether the stimulus queue has been updated; if there is an update, it stops measuring first, pauses the thread that fetches data from the hardware, and restarts the measurement after sending the stimulus, restarts the thread that fetches data from the hardware. The current data has expired and will no longer be processed, and the data processing thread will restart; if the stimulus queue has not been updated, it will directly process the data;
[0022] When the time for the hardware to process two consecutive stimuli is less than or equal to the time interval for sending the latest parameter stimulus for the same type of parameter settings in the stimulus queue, the thread that retrieves data from the hardware is disabled, and the user parameter setting thread is repeatedly checked to see if it has ended. If the user continues to set parameters, it is re-determined whether the operation in the stimulus queue is updated. If so, the stimulus is sent to the hardware, and the latest parameter stimulus is sent to the hardware.
[0023] Furthermore, when the operation in the stimulus queue is updated and the hardware measurement is stopped, only the operation in the stimulus queue at this time is processed, and the priority of the operation is selected for execution according to the priority of the operation. During execution, the stimulus parameters sent to the hardware are always kept up to date. When the stimulus is sent to the hardware and the hardware processing process occurs, if a new user parameter operation enters the stimulus queue, it will be processed in the next data processing.
[0024] The present application provides a data processing method and medium for issuing incentives, which uses multi-threading to issue incentives, making UI operations independent and eliminating lag;
[0025] This application uses data processing threads to issue incentives. The latest data is consistent with the latest status of the hardware. The user-set parameters take effect immediately, but they will not take effect immediately on the hardware. When processing data, a backup needs to be made before issuing hardware parameters.
[0026] This application uses a queue data structure, first-in-first-out, no operations are missed, and multiple stimulus combinations are combined to reduce instrument response time. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The drawings described herein are used to provide a further understanding of the embodiments of the present application, constitute a part of the present application, and do not constitute a limitation on the embodiments of the present application. In the drawings:
[0028] Figure 1 A flow chart of a method for processing incentive data provided as an exemplary embodiment of the present application.
[0029] Figure 2 The present invention is a flow chart of the incentive data processing method of the prior art. DETAILED DESCRIPTION
[0030] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0031] The specific application scenario of this application is user operation settings.
[0032] In the prior art, such as Figure 2 As shown, when the user operation setting parameters are generated, the user operation setting parameters are immediately effective and it is determined whether incentives need to be issued. When the incentives are issued, the data processing thread is disabled, and the incentives are waited for to be issued to the hardware, and then the UI interface is refreshed, the data acquisition thread and the data processing thread are restored, and then data processing is performed. Each parameter setting requires waiting for a certain period of time. If the parameters are set too frequently in a short period of time, the waiting time is superimposed, which will cause the operation to be not smooth and the interface to freeze. Specifically, the problem can be reproduced by operating: knob, mouse wheel, SCPI command to modify parameters; synchronously issuing incentives to the hardware, after the continuous parameter setting is completed, the first frame data is refreshed slowly.
[0033] The technical concept of this application is as follows: Figure 1As shown, when the user sets the parameters, it is determined whether to issue the stimulus, and the stimulus is combined with the previous and next operations into one stimulus operation, and the operation is added to the stimulus queue. At the same time, the software's data processing thread determines whether the stimulus queue is empty each time it is executed. If it is not empty, the measurement is stopped, and processing 1-4 is executed:
[0034] 1. Execute the non-repeated initial operation (BeginAction) in the incentive queue;
[0035] 2. Multiple incentives in the queue are merged into one, and the latest parameters are sent to the hardware;
[0036] 3. According to the StimActionType with the highest priority, cache data processing is performed in each software module, and the issued stimulus parameters are backed up. All calculations of data processing use this backup parameter to keep the hardware status and data consistent.
[0037] 4. Execute the non-repeated EndAction final operation in the incentive queue.
[0038] Back up the parameters, and restart the data acquisition and measurement;
[0039] Data processing includes: collected raw data + data formatting; specific processing methods include: averaging, calibration correlation, port compensation, port extension, calculation ratio / S parameters, etc.
[0040] The present application provides an incentive data processing method and device, which aims to solve the above technical problems in the prior art.
[0041] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0042] Embodiment 1: Please provide a method for processing incentive data, including: constructing an incentive queue, setting parameters by user operation to take effect, and directly placing user operations that need to change hardware incentives into a merged operation into the incentive queue;
[0043] Determine whether the operations in the incentive queue are updated; specifically include:
[0044] When a stimulus change event occurs between two processing of collected data, the operations in the operation queue are updated.
[0045] If updated, execute all non-repeating initial operations and end operations in the incentive queue, merge multiple incentives into one, and send the latest incentive parameters to the hardware. In the incentive queue, under the same type of parameter settings, the initial operation and the end operation are sent in time series order and are not repeated; analyze the existing operations in the operation queue: first execute all non-repeating initial operations, then send the latest user-set incentive parameters to the hardware, and finally execute all non-repeating end operations.
[0046] When the operation in the stimulus queue is updated and the hardware measurement is stopped, only the operation in the stimulus queue at this time is processed, and the priority of the operation is selected for execution according to the priority of the operation. During execution, the stimulus parameters sent to the hardware are always kept up to date. When the stimulus is sent to the hardware and the hardware processing process occurs, if a new user parameter operation enters the stimulus queue, it will be processed in the next data processing.
[0047] When the operation in the incentive queue is not updated, and when there are multiple operations in the incentive queue, the software continues to process the data thread. After the user operation incentive parameter is changed, the priority is defined for the cache data processing method of each module of the software according to the parameter change.
[0048] Furthermore, after the user operates the incentive parameter change, the priority is defined for the cache data processing method of each software module after the parameter change. Every time the data processing thread processes data, it checks whether the incentive queue has been updated; if there is an update, the measurement is stopped first, the thread that fetches data from the hardware is paused, and the measurement is restarted after the incentive is issued, and the thread that fetches data from the hardware is restarted. The current data has expired and is no longer processed, and the data processing thread restarts; if the incentive queue has not been updated, the data is processed directly; when the time for the hardware to process two consecutive incentives is less than or equal to the time interval for sending the latest parameter incentive for the same type of parameter setting in the incentive queue, the thread that fetches data from the hardware is disabled, and the user parameter setting thread is repeatedly checked to see if it has ended. If the user continues to set parameters, re-judge whether the operation in the incentive queue has been updated. If updated, the incentive is sent to the hardware, and the latest parameter incentive is sent to the hardware.
[0049] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another device, or some features can be ignored or not executed.
[0050] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0051] In addition, each functional module in each embodiment of the present application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0052] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
[0053] Those skilled in the art will appreciate that the embodiments of the present invention may be provided as methods or devices. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects.
[0054] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0055] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
[0056] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the claims above.
[0057] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A method for processing incentive data, characterized in that: include: Combine the incentive issuance and previous and subsequent operations into one incentive operation and add it to the incentive queue; Determine whether the operation in the incentive queue is updated, wherein multiple consecutive operations when the user sets the same type of parameters are merged into one operation in the incentive queue; Every time the data processing thread processes data, it checks whether the stimulus queue has been updated; if there is an update, it stops measuring first, pauses the thread that fetches data from the hardware, and restarts the measurement after sending the stimulus, and restarts the thread that fetches data from the hardware; the current data has expired and will no longer be processed, and the data processing thread restarts; If updated, execute all non-repetitive initial and end operations in the stimulus queue, merge multiple stimulus delivery into one, and deliver the latest stimulus parameters to the hardware; including when a stimulus change event occurs between two processing of collected data, update the operations in the operation queue; If the incentive queue is not updated, the data is processed directly; When the time for the hardware to process two consecutive stimuli is less than or equal to the time interval for sending the latest parameter stimulus for the same type of parameter settings in the stimulus queue, the thread for obtaining data from the hardware is disabled, and it is repeatedly checked whether the user parameter setting thread has ended. If the user continues to set parameters, it is re-determined whether the operation in the stimulus queue is updated. If updated, the stimulus is sent to the hardware, and the latest parameter stimulus is sent to the hardware.
2. A method for processing incentive data according to claim 1, characterized in that: Specifically, an incentive queue is constructed, user operation setting parameters take effect, and user operations that require changes to hardware incentives are directly placed in the merged operation into the incentive queue.
3. A method for processing incentive data according to claim 2, characterized in that: For the incentive queue, under the same type of parameter settings, the initial operation and the final operation are issued in chronological order and without duplication.
4. The method for processing incentive data according to claim 3, characterized in that: Analyze the existing operations in the operation queue: first execute all non-repetitive initial operations, then send the latest user-set stimulus parameters to the hardware, and finally execute all non-repetitive end operations.
5. The method for processing incentive data according to claim 4, characterized in that: When the operation in the excitation queue is not updated, and when there are multiple operations in the excitation queue, the software continues the data processing thread.
6. A method for processing incentive data according to claim 5, characterized in that: After the user operation incentive parameters are changed, the priority is defined for the cache data processing method of each software module according to the parameter change.
7. A method for processing incentive data according to any one of claims 1 to 6, characterized in that: When the operation in the stimulus queue is updated and the hardware measurement is stopped, only the operation in the stimulus queue at this time is processed, and the priority of the operation is selected for execution. During execution, the stimulus parameters sent to the hardware are always kept up to date. When the stimulus is sent to the hardware and the hardware processing process occurs, if a new user parameter operation enters the stimulus queue, it will be processed in the next data processing.
Citation Information
Patent Citations
Data issuing method and device, equipment and medium
CN109753479A
Model parameter determination using a predictive model
CN113423336A
Transaction incentive resource sending method and device, computer equipment and storage medium
CN117455568A
Instruction merging circuit and method for data cache instructions and chip
CN117742793A
Memory controller having command queue with entries merging
US10579303B1
