Instrument control method and device, equipment, storage medium and program product

By receiving and converting user-defined algorithms in the test and measurement instrument, the problem of insufficient flexibility caused by algorithm fixation in the prior art is solved, and more efficient data processing and security are achieved.

CN119201166APending Publication Date: 2024-12-27RIGOL TECHNOLOGIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411237257.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-04
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

The algorithms in existing test and measurement instruments are fixed, which cannot meet the different data processing needs of users and has poor flexibility.

Method used

By receiving the algorithm identification and custom algorithm selected by the user, converting it into the target file, and after the instrument's security inspection is passed, the original algorithm is replaced to realize user-defined data processing.

Benefits of technology

It improves the flexibility and reliability of data processing, meets the actual data processing needs of users, and enhances the safety and reliability of instrument control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119201166A_ABST
    Figure CN119201166A_ABST
Patent Text Reader

Abstract

The invention discloses an instrument control method and device, equipment, a storage medium and a program product, and the method comprises the steps: receiving an identifier of a to-be-replaced algorithm selected by a user, the to-be-replaced algorithm being an algorithm in a processor of an instrument; a first user-defined algorithm input by a user based on a function interface corresponding to the to-be-replaced algorithm is received, and the function interface corresponding to the to-be-replaced algorithm is displayed in the first display interface; the first user-defined algorithm is converted into a first target file, and the first target file is a file capable of being recognized by the instrument; and sending the first target file and the identifier of the to-be-replaced algorithm to the instrument, so that the instrument installs the first target file to replace the to-be-replaced algorithm with the first user-defined algorithm after the security check of the first target file is passed. According to the instrument control method, the actual data processing requirement of a user is met, and the flexibility of data processing is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of test and measurement technology, and in particular to an instrument control method, device, equipment, storage medium and program product. Background Art

[0002] With the rapid development of the electronic information industry, various industries have higher and higher requirements for the test and measurement industry. Oscilloscopes, spectrum analyzers and other test and measurement instruments can be built with algorithms to achieve data processing.

[0003] Currently, when testing and measuring instruments such as oscilloscopes and spectrum analyzers process data, they can process the data based on built-in algorithms after acquiring the data.

[0004] However, in the above implementation, the algorithm in the test and measurement instrument is a fixed algorithm written by the instrument manufacturer, which cannot meet the different data processing requirements of users and has poor flexibility. Summary of the invention

[0005] The present invention provides an instrument control method, device, equipment, storage medium and program product to solve the technical problem of poor flexibility of the data processing mode of the instrument in the related art.

[0006] According to one aspect of the present invention, there is provided an instrument control method, which is applied to a control device, and the method comprises:

[0007] Receiving an identifier of an algorithm to be replaced selected by a user; wherein the algorithm to be replaced is an algorithm in a processor of the instrument;

[0008] Receiving a first custom algorithm input by a user based on a function interface corresponding to the algorithm to be replaced; wherein the function interface corresponding to the algorithm to be replaced is displayed in a first display interface;

[0009] Converting the first custom algorithm into a first target file; wherein the first target file is a file that can be recognized by the instrument;

[0010] The first target file and the identifier of the algorithm to be replaced are sent to the instrument, so that the instrument installs the first target file to replace the algorithm to be replaced with the first custom algorithm after the security check of the first target file passes.

[0011] According to another aspect of the present invention, there is provided an instrument control method, which is applied to an instrument, and the method comprises:

[0012] Receive a first target file and an identifier of an algorithm to be replaced sent by a control device; wherein the first target file is a file obtained by the control device after converting a first custom algorithm input by a user based on a function interface corresponding to the algorithm to be replaced, the algorithm to be replaced is an algorithm in a processor of the instrument, the function interface corresponding to the algorithm to be replaced is displayed in a first display interface of the control device, and the first target file is a file that can be recognized by the instrument;

[0013] Verifying the security of the first target file;

[0014] If it is determined that the security check of the first target file passes, the first target file is installed to replace the algorithm to be replaced with the first custom algorithm.

[0015] According to another aspect of the present invention, there is provided an instrument control device, which is arranged in a control device, and comprises:

[0016] A first receiving module is used to receive an identifier of an algorithm to be replaced selected by a user; wherein the algorithm to be replaced is an algorithm in a processor of the instrument;

[0017] The first receiving module is further used to receive a first custom algorithm input by a user based on the function interface corresponding to the algorithm to be replaced; wherein the function interface corresponding to the algorithm to be replaced is displayed in the first display interface;

[0018] A conversion module, used for converting the first custom algorithm into a first target file; wherein the first target file is a file that can be recognized by the instrument;

[0019] The sending module is used to send the first target file and the identifier of the algorithm to be replaced to the instrument, so that the instrument installs the first target file to replace the algorithm to be replaced with the first custom algorithm after the security check of the first target file passes.

[0020] According to another aspect of the present invention, there is provided an instrument control device, which is arranged in an instrument, and comprises:

[0021] A second receiving module is used to receive a first target file and an identifier of an algorithm to be replaced sent by a control device; wherein the first target file is a file obtained by the control device after converting a first custom algorithm input by a user based on a function interface corresponding to the algorithm to be replaced, the algorithm to be replaced is an algorithm in a processor of the instrument, the function interface corresponding to the algorithm to be replaced is displayed in a first display interface of the control device, and the first target file is a file that can be recognized by the instrument;

[0022] A verification module, used to verify the security of the first target file;

[0023] The installation module is used to install the first target file to replace the algorithm to be replaced with the first custom algorithm if it is determined that the security check of the first target file passes.

[0024] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0025] at least one processor; and

[0026] a memory communicatively connected to the at least one processor; wherein,

[0027] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the instrument control method described in any embodiment of the present invention.

[0028] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and the computer program is used to enable a processor to implement the instrument control method described in any embodiment of the present invention when executed.

[0029] According to another aspect of the present invention, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the instrument control method according to any embodiment of the present invention is implemented.

[0030] The technical solution of the embodiment of the present invention includes: receiving the identifier of the algorithm to be replaced selected by the user, wherein the algorithm to be replaced is an algorithm in the processor of the instrument; receiving the first custom algorithm input by the user based on the function interface corresponding to the algorithm to be replaced, wherein the function interface corresponding to the algorithm to be replaced is displayed in the first display interface; converting the first custom algorithm into a first target file, wherein the first target file is a file that can be recognized by the instrument; sending the first target file and the identifier of the algorithm to be replaced to the instrument, so that the instrument installs the first target file to replace the algorithm to be replaced with the first custom algorithm after the security check of the first target file is passed. On the one hand, by replacing the algorithm to be replaced in the processor of the instrument with the first custom algorithm input by the user, the instrument can process data based on the first custom algorithm, meet the actual data processing needs of the user, and improve the flexibility of data processing. On the other hand, receiving the first custom algorithm input by the user based on the function interface corresponding to the algorithm to be replaced makes the first custom algorithm comply with the provisions of the function interface, thereby improving the reliability of the subsequent operation of the first custom algorithm in the instrument. On the other hand, by converting the first custom algorithm into a first target file and sending it to the instrument, and installing the first target file only after the instrument passes the security check, the instrument can safely and successfully implement algorithm replacement, thereby improving the reliability and safety of instrument control.

[0031] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of 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 creative work.

[0033] Figure 1 It is a structural schematic diagram of an instrument in the related technology provided by an embodiment of the present invention;

[0034] Figure 2 is a schematic diagram of an application scenario of the instrument control method provided by an embodiment of the present invention;

[0035] Figure 3 is a flow chart of an instrument control method provided by an embodiment of the present invention;

[0036] Figure 4 is a schematic diagram of a display interface in an instrument control method provided by an embodiment of the present invention;

[0037] Figure 5 is a schematic diagram of the structure of an instrument provided by an embodiment of the present invention;

[0038] Figure 6 is a flow chart of another instrument control method provided by an embodiment of the present invention;

[0039] Figure 7 is a schematic diagram of a display interface in another instrument control method provided by an embodiment of the present invention;

[0040] Figure 8 is a schematic diagram of another display interface in another instrument control method provided by an embodiment of the present invention;

[0041] Fig. 9 is a flow chart of another instrument control method provided by an embodiment of the present invention;

[0042] Fig.10 is a flow chart of an instrument control method provided by an embodiment of the present invention;

[0043] Fig.11 is a flow chart of another instrument control method provided by an embodiment of the present invention;

[0044] Fig.12 is an interactive schematic diagram of an instrument control method provided by an embodiment of the present invention;

[0045] Fig.13 is a structural schematic diagram of an instrument control device provided by an embodiment of the present invention;

[0046] Fig.14 is a structural schematic diagram of another instrument control device provided by an embodiment of the present invention;

[0047] Fig.15 It is a structural schematic diagram of an electronic device for implementing the instrument control method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0048] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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 should fall within the scope of protection of the present invention.

[0049] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the term "comprising" and any variation thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices. The acquisition, storage, use, processing, etc. of data in the embodiments of the present invention all comply with the relevant provisions of national laws and regulations.

[0050] Figure 1 Schematic diagram of the structure of the instrument in the related technology provided by the embodiment of the present invention. Figure 1 As shown, the instrument includes physical hardware 21 and a software module 22. Optionally, the instrument in this embodiment can be a test and measurement instrument, such as an oscilloscope, a spectrum analyzer, etc. The software module 22 runs in a processor of the instrument. Exemplarily, the processor here can be a central processing unit (CPU).

[0051] During the operation of the instrument, the software module 22 may send control instructions to the physical hardware 21 through a protocol to control the sampling process of the device under test by the physical hardware 21. For example, the protocol here may include a Peripheral Component Interconnect Express (PCIe) protocol or an Inter-Integrated Circuit (IIC) protocol.

[0052] The physical hardware 21 collects data from the device under test under the control of the software module 22. The collected data is stored in the memory of the instrument. For example, the memory here can be a double data rate synchronous dynamic random access memory (Double Data Rate Synchronous Dynamic Random Access Memory, referred to as: DDR SDRAM).

[0053] The software module 22 includes a data acquisition module 221. The data acquisition module 221 can move the data stored in the memory to the software. Exemplarily, the data acquisition module 221 can acquire data from the memory through direct memory access technology (Direct Memory Access, referred to as: DMA).

[0054] The software module 22 may further include an application analysis module 222. The application analysis module 222 may include various algorithms, such as an eye diagram analysis algorithm, a consistency analysis algorithm, a jitter analysis algorithm, and other algorithms. The instrument may process data through the algorithms in the application analysis module 222. The software module 22 may further include a result presentation module for presenting data processing results.

[0055] However, the algorithms in current instruments are fixed algorithms written by instrument manufacturers, which cannot meet the different data processing requirements of users and have poor flexibility. This embodiment provides an instrument control method, which replaces the algorithm to be replaced in the processor of the instrument with a first custom algorithm input by the user, so that the instrument can process data based on the first custom algorithm, thereby meeting the actual data processing requirements of the user and improving the flexibility of data processing.

[0056] Figure 2 Schematic diagram of an application scenario of the instrument control method provided by an embodiment of the present invention. Figure 2 As shown, the control device 23 in this embodiment can interact with the user 24 and the instrument 25. The control device 23 can receive the identifier of the algorithm to be replaced selected by the user 24. The algorithm to be replaced in this embodiment is the algorithm in the processor of the instrument 25. The control device 23 can also receive the first custom algorithm input by the user 24. After the control device 23 converts the first custom algorithm into a first target file that can be recognized by the instrument 25, the first target file and the identifier of the algorithm to be replaced are sent to the instrument 25. After receiving the first target file and the identifier of the algorithm to be replaced, the instrument 25 verifies the security of the first target file, and after the security verification passes, the first target file is secured to replace the algorithm to be replaced with the first custom algorithm. Thereby, the instrument can process data based on the first custom algorithm, meet the actual data processing needs of the user, and improve the flexibility of data processing.

[0057] The instrument control method provided in this embodiment is described in detail below from three perspectives: a control device, an instrument, and interaction between the control device and the instrument.

[0058] Figure 3 is a flow chart of an instrument control method provided by an embodiment of the present invention. This embodiment can be applied to a scenario where an algorithm in an instrument is replaced with a user-defined algorithm. The method can be executed by an instrument control device, which can be implemented in the form of hardware and / or software. The instrument control device can be configured in a control device, for example, a computer device. Figure 3 As shown, the method includes the following steps.

[0059] Step 301: Receive the identifier of the algorithm to be replaced selected by the user.

[0060] The algorithm to be replaced is an algorithm in the processor of the instrument.

[0061] In this embodiment, the algorithms in the instrument may include: an eye diagram analysis algorithm, a consistency analysis algorithm, and a jitter analysis algorithm. Exemplarily, the eye diagram analysis algorithm, the consistency analysis algorithm, and the jitter analysis algorithm may all include: a data preprocessing sub-algorithm, an analysis sub-algorithm, and a drawing sub-algorithm, etc. The consistency analysis algorithm in this embodiment may be a consistency analysis of the mobile communication industry processor interface (Mobile Industry Processor Interface, referred to as: MIPI) 500 megabits per second (Mbits / s) physical layer (Physical, referred to as: PHY), i.e., MIPI-Dphy. The consistency analysis algorithm in this embodiment may also be a local area network (Local Area Network, LAN) consistency analysis algorithm. These algorithms all run in the processor of the instrument, such as a CPU.

[0062] The eye diagram analysis algorithm in this embodiment is used to process and analyze the eye diagram of the data to understand the overall characteristics of the signal, thereby evaluating the performance of the device under test. The consistency analysis algorithm in this embodiment is used to process and analyze the consistency of the data to verify the electrical interface performance of the device under test. The jitter analysis algorithm in this embodiment is used to process and analyze the jitter of the data to evaluate the performance of the device under test.

[0063] Optionally, the algorithm to be replaced in this embodiment includes at least one of the following: an eye diagram analysis algorithm, a consistency analysis algorithm, a jitter analysis algorithm, a data preprocessing sub-algorithm in a target algorithm, an analysis sub-algorithm in a target algorithm, and a drawing sub-algorithm in a target algorithm. Among them, the target algorithm is an eye diagram analysis algorithm, a consistency analysis algorithm, or a jitter analysis algorithm. That is, in this embodiment, either a certain algorithm can be replaced as a whole, or only a part of the sub-algorithms in a certain algorithm can be replaced. Exemplarily, the analysis sub-algorithm in this embodiment can include a filter design algorithm.

[0064] The identifier of the algorithm to be replaced in this embodiment is used to uniquely identify the algorithm to be replaced. In this embodiment, the identifier of the algorithm to be replaced can be the name, icon or digital code of the algorithm to be replaced.

[0065] Optionally, in order to facilitate the user to select the identifier of the algorithm to be replaced, so as to improve the instrument control efficiency and user experience, the instrument control method provided in this embodiment further includes the following steps: displaying the identifier of the algorithm in the instrument in the first area of ​​the first display interface. Correspondingly, the implementation process of step 301 is: receiving the identifier of the algorithm to be replaced selected by the user in the first area of ​​the first display interface.

[0066] In one implementation, the first display interface provided in this embodiment may be an interface displayed by an instrument algorithm development tool. The instrument algorithm development tool is installed in a control device. When the control device opens the instrument algorithm development tool under the control of a user, the identification of the algorithm in the instrument is displayed in the first area of ​​the first display interface.

[0067] In another implementation, when the control device receives an algorithm replacement instruction triggered by the user, the control device displays the identifier of the algorithm in the instrument in the first area of ​​the first display interface.

[0068] In this embodiment, the first area of ​​the first display interface can display the icon or name of the algorithm in the instrument. Furthermore, the first area can also display the various sub-algorithms included in the algorithm. In this embodiment, the first area is a partial area in the first display interface, for example, the left area, the right area, the upper area, the lower area or the middle area in the first display interface. This embodiment is not limited to this.

[0069] The user can select the identifier of the algorithm to be replaced in the first area of ​​the first display interface through at least one of the following interaction methods: double-click, click, long press, touch, voice interaction, gesture interaction, etc.

[0070] Step 302: Receive a first custom algorithm input by a user based on a function interface corresponding to the algorithm to be replaced.

[0071] Among them, the function interface corresponding to the algorithm to be replaced is displayed in the first display interface.

[0072] In order to facilitate the user to write the first custom algorithm, in this embodiment, the user can input the first custom algorithm based on the function interface corresponding to the algorithm to be replaced. The function interface corresponding to the algorithm to be replaced in this embodiment can be displayed in the first display interface.

[0073] The function interface corresponding to the algorithm to be replaced in this embodiment is used to indicate the attribute information of the first custom algorithm. Exemplarily, the function interface corresponding to the algorithm to be replaced is used to indicate the name of the first custom algorithm, the information of the input parameters of the first custom algorithm, and the information of the output parameters of the first custom algorithm. Exemplarily, a possible function interface corresponding to the algorithm to be replaced may be: void Eye_DataProcess(u16*u16DataIn, u16 u16len, u16*u16DataOut). Among them, Eye_DataProcess represents the name of the first custom algorithm, u16*u16DataIn represents the input parameters, u16 u16len represents the length of the input parameters, and u16*u16DataOut represents the output parameters.

[0074] Based on this implementation method, the user can efficiently write a first custom algorithm that complies with the function interface regulations, which not only improves the user experience, but also improves the reliability of the subsequent operation of the first custom algorithm in the instrument.

[0075] Optionally, after step 301, the instrument control method provided in this embodiment further includes the following steps: displaying the function interface corresponding to the algorithm to be replaced in the second area of ​​the first display interface. Correspondingly, the implementation process of step 302 is: receiving the first custom algorithm input by the user in the second area based on the function interface corresponding to the algorithm to be replaced. The attribute information of the first custom algorithm matches the function interface. In this embodiment, the matching of the attribute information of the first custom algorithm with the function interface can make the first custom algorithm comply with the provisions of the function interface.

[0076] A possible schematic diagram of the first display interface is described below. Figure 4 is a schematic diagram of a display interface in an instrument control method provided by an embodiment of the present invention. Figure 4 As shown, the first area 411 of the first display interface 41 displays the identification of the algorithm in the instrument. Figure 4 In the example, the algorithm identifier is the name of the algorithm. After the user selects the algorithm to be replaced in the first area 411, Figure 4 In the description, the algorithm to be replaced is taken as an eye diagram analysis algorithm as an example, and the first area 411 may also display the identifiers of each sub-algorithm included in the eye diagram analysis algorithm. Figure 4 The eye diagram analysis algorithm includes a data preprocessing sub-algorithm, a phase locked loop (PLL) clock recovery sub-algorithm and an eye diagram superposition sub-algorithm. After the user selects the algorithm to be replaced in the first area 411, the function interface corresponding to the algorithm to be replaced can be displayed in the second area 412 of the first display interface 41. Figure 4In the example, the function interface corresponding to the algorithm to be replaced is void Eye_DataProcess (u16*u16DataIn, u16 u16len, u16*u16DataOut). Based on the function interface corresponding to the algorithm to be replaced, the user can enter the first custom algorithm in the second area 412. More specifically, the user can enter the first custom algorithm in the curly brackets below the function interface corresponding to the algorithm to be replaced in the second area 412.

[0077] Optionally, in order to further improve the efficiency of the user in writing the first custom algorithm, the third area 413 of the first display interface 41 may also display the input-output relationship between the sub-algorithms of the algorithm to be replaced. Figure 4 As shown in the figure, in the eye diagram analysis algorithm, the third area 413 displays data input into the data preprocessing sub-algorithm. The data preprocessing sub-algorithm outputs the preprocessed data to the PLL clock recovery sub-algorithm. The PLL clock recovery sub-algorithm inputs the clock signal to the eye diagram superposition sub-algorithm. The eye diagram superposition sub-algorithm outputs the eye diagram result.

[0078] Step 303: Convert the first custom algorithm into a first target file.

[0079] The first target file is a file that can be recognized by the instrument.

[0080] In this embodiment, in order to improve the efficiency of instrument control and to facilitate the instrument to successfully replace the algorithm to be replaced with the first custom algorithm, it is necessary to convert the first custom algorithm into a first target file. The first target file in this embodiment is a file that can be recognized by the instrument. Exemplarily, in this embodiment, the first target file can be a library file. Exemplarily, the extension of the first target file can be .dll, .lib, .so, etc.

[0081] Optionally, after the control device compiles, links, and other operations on the first custom algorithm, the first custom algorithm is converted into a first target file.

[0082] In one implementation, after receiving the first custom algorithm input by the user, the control device automatically executes step 303. In another implementation, after receiving the algorithm conversion instruction triggered by the user, the control device executes step 303.

[0083] Step 304: Send the first target file and the identifier of the algorithm to be replaced to the instrument, so that the instrument installs the first target file to replace the algorithm to be replaced with the first custom algorithm after the security check of the first target file passes.

[0084] After converting the first target file, the control device sends the first target file and the identifier of the algorithm to be replaced to the instrument. The sending method can be sending through a wired connection or a wireless connection.

[0085] In order to prevent the instrument from being attacked by malicious code and modifying the instrument's system information and important files, in this embodiment, after receiving the first target file and the identifier of the algorithm to be replaced, the instrument can verify the security of the first target file. After the security verification passes, the first target file is installed to replace the algorithm to be replaced with the first custom algorithm. After that, the processor of the instrument can process the data accordingly by running the first custom algorithm to meet the user's data processing needs.

[0086] Optionally, in order to facilitate the instrument to verify the security of the first target file, the first target file in this embodiment may include first verification information.

[0087] The instrument control method provided in this embodiment, on the one hand, can realize the customization of the algorithm, realize the control of the instrument at the code level, and solve the limitations of the secondary development of the instrument, so as to meet the actual data processing needs of the user, and has great advantages in assisting the user to deeply observe the waveform information and optimize the signal quality. On the other hand, the instrument control method allows the user to simulate the data output by the device under test through a custom algorithm, and process the simulated data through another custom algorithm. The processing result can provide a hardware design reference in the design process of the device under test. For example, in the high-speed signal consistency analysis, the test items of the receiving end are included. In this scenario, the one custom algorithm can simulate the receiving end, and the other custom algorithm can be the generation algorithm of the equalization filter to reduce the inter-code interference and provide a basis for the design of the receiving end.

[0088] Figure 5 is a schematic diagram of the structure of the instrument provided by the embodiment of the present invention. Assume that the eye diagram analysis algorithm in the instrument is replaced by the first custom algorithm. Figure 1 similar, Figure 5 The instrument in the embodiment includes physical hardware 51 and software module 52. The software module 52 includes a data acquisition module 521 and an application analysis module 522. The application analysis module 522 includes a first custom algorithm, a consistency analysis algorithm, a jitter analysis algorithm, other algorithms, etc. It can be understood that the first custom algorithm may include: a data preprocessing sub-algorithm, an analysis sub-algorithm, and an eye diagram drawing sub-algorithm, etc. The consistency analysis algorithm may include: a data preprocessing sub-algorithm, an analysis sub-algorithm, and an analysis measurement item, etc. The jitter analysis algorithm may include: a data preprocessing sub-algorithm, an analysis sub-algorithm, and a drawing sub-algorithm, etc. The software module 52 may also include a result presentation module.

[0089] The instrument control method provided in this embodiment includes: receiving the identifier of the algorithm to be replaced selected by the user, wherein the algorithm to be replaced is an algorithm in the processor of the instrument; receiving the first custom algorithm input by the user based on the function interface corresponding to the algorithm to be replaced, wherein the function interface corresponding to the algorithm to be replaced is displayed in the first display interface; converting the first custom algorithm into a first target file, wherein the first target file is a file that can be recognized by the instrument; sending the first target file and the identifier of the algorithm to be replaced to the instrument, so that the instrument installs the first target file to replace the algorithm to be replaced with the first custom algorithm after the security check of the first target file is passed. On the one hand, by replacing the algorithm to be replaced in the processor of the instrument with the first custom algorithm input by the user, the instrument can process data based on the first custom algorithm, meet the actual data processing needs of the user, and improve the flexibility of data processing. On the other hand, receiving the first custom algorithm input by the user based on the function interface corresponding to the algorithm to be replaced makes the first custom algorithm comply with the provisions of the function interface, thereby improving the reliability of the subsequent operation of the first custom algorithm in the instrument. On the other hand, by converting the first custom algorithm into a first target file and sending it to the instrument, and installing the first target file only after the instrument passes the security check, the instrument can safely and successfully implement algorithm replacement, thereby improving the reliability and safety of instrument control.

[0090] Figure 6 is a flow chart of another instrument control method provided by an embodiment of the present invention. Figure 3 Based on the illustrated embodiment and various optional implementations, the process of converting the first custom algorithm into the first target file and the process of sending the first target file and the identifier of the algorithm to be replaced to the instrument are described in detail. Figure 6 As shown, the instrument control method provided in this embodiment includes the following steps.

[0091] Step 601: Displaying the identification of the algorithm in the instrument in the first area of ​​the first display interface.

[0092] The implementation method of the first area in the first display interface of this embodiment is similar to Figure 3 The implementation method of the first area in the first display interface in the illustrated embodiment is similar and will not be repeated here.

[0093] Step 602: Receive the identifier of the algorithm to be replaced selected by the user.

[0094] The algorithm to be replaced is an algorithm in the processor of the instrument.

[0095] The implementation process and technical principle of step 602 are similar to those of step 301 and will not be repeated here.

[0096] Step 603: Displaying the function interface corresponding to the algorithm to be replaced in the second area of ​​the first display interface.

[0097] Step 604: Receive a first custom algorithm input by the user in the second area based on a function interface corresponding to the algorithm to be replaced.

[0098] Among them, the attribute information of the first custom algorithm matches the function interface.

[0099] The implementation method of the second area in the first display interface of this embodiment is similar to Figure 3 The implementation of the second area in the first display interface in the illustrated embodiment is similar, and will not be described in detail here. The implementation process and technical principle of step 604 are similar to those of step 302, and will not be described in detail here.

[0100] Step 605: Displaying the algorithm conversion triggering area in the first display interface.

[0101] The algorithm conversion trigger area in this embodiment is used to receive the algorithm conversion instruction triggered by the user. It should be noted that there is no time sequence relationship between step 605 and steps 601 to 604. In other words, step 605 can be executed at the same time as step 601, or after step 604.

[0102] Figure 7 is a schematic diagram of a display interface in another instrument control method provided by an embodiment of the present invention. Figure 4 Take the first display interface shown in as an example. Figure 7 As shown, an algorithm conversion triggering area 71 is displayed in the first display interface 41 .

[0103] Step 606: after receiving the algorithm conversion instruction triggered by the user in the algorithm conversion trigger area, convert the first custom algorithm into a first target file through a cross-compilation tool chain.

[0104] Optionally, Figure 7 For example, the user may click on the algorithm conversion trigger area 71 to trigger the algorithm conversion instruction.

[0105] The algorithm conversion instruction in this embodiment is used to instruct the first custom algorithm to be converted. In step 606, in order to improve the conversion efficiency and conversion success, the first custom algorithm is converted into a first target file through a cross-compilation tool chain. The cross-compilation tool chain in this embodiment refers to a tool that can convert an algorithm into a file that can be recognized by an instrument, such as the GNU Compiler Collection (GNU Compiler Collection, referred to as: GCC). GCC is a compiler tool developed by GNU.

[0106] The cross-compilation tool chain in this embodiment may be integrated into an instrument algorithm development tool, or may be built into a control device.

[0107] Step 607: Display the sending method options and the file storage path editing area in the second display interface.

[0108] After the first custom algorithm is successfully converted, in order to facilitate the user to perform subsequent operations, a sending method option and a file storage path editing area are displayed in the second display interface.

[0109] The sending method in this embodiment refers to a method of sending the first target file to the instrument. Exemplarily, the sending method options in this embodiment may include at least one of the following: Bluetooth, wide area network, local area network, wired, etc.

[0110] The file storage path editing area in this embodiment is used to receive the storage path of the first target file input by the user.

[0111] Step 608: Receive the target sending method selected by the user in the sending method options.

[0112] In this embodiment, the user can select a target sending method from the sending method options by pulling down, selecting, or the like.

[0113] Step 609: Receive the storage path of the first target file input by the user in the file storage path editing area.

[0114] In this embodiment, the user can input the storage path of the first target file in the file storage path editing area according to actual needs.

[0115] Step 610: Store the first target file in the storage space corresponding to the storage path.

[0116] After receiving the storage path of the first target file, the control device stores the first target file in the storage space corresponding to the storage path.

[0117] Step 611: Display the sending trigger area in the second display interface.

[0118] The sending trigger area in this embodiment is used to receive a sending instruction triggered by a user. The sending instruction in this embodiment is used to instruct to send the first target file and the identifier of the algorithm to be replaced to the instrument.

[0119] There is no time sequence relationship between step 611 and step 607 to step 610. That is, step 611 and step 607 may be performed simultaneously, or step 611 may be performed after step 610.

[0120] Figure 8is a schematic diagram of another display interface in another instrument control method provided by an embodiment of the present invention. Figure 8 As shown, the second display interface 81 displays a sending method option 811 , a file storage path editing area 812 , and a sending trigger area 813 . Figure 8 In the description, the storage path of the first target file input by the user is taken as xxx / DS80000Eye.ro as an example. Figure 8 The following takes the case where the user selects the LAN sending method as an example.

[0121] Step 612: after receiving the sending instruction triggered by the user in the sending trigger area, the first target file is obtained from the storage space corresponding to the storage path of the first target file.

[0122] Optionally, Figure 8 For example, the user can trigger the sending instruction by clicking the sending trigger area 813.

[0123] In this embodiment, before sending, the first target file needs to be acquired from the storage space corresponding to the storage path of the first target file.

[0124] Step 613: Send the first target file and the identifier of the algorithm to be replaced to the instrument through a target sending method, so that the instrument installs the first target file to replace the algorithm to be replaced with the first custom algorithm after the security check of the first target file passes.

[0125] The implementation process and technical principle of step 613 are similar to those of step 304 and will not be repeated here.

[0126] The instrument control method provided in this embodiment, by displaying the first display interface, allows the user to quickly and efficiently select the identifier of the algorithm to be replaced and input the first custom algorithm. By displaying the second display interface, the user can flexibly and quickly select the sending method and the storage path of the first target file, further meeting the actual needs of the user and improving the flexibility of instrument control.

[0127] Fig. 9 is a flow chart of another instrument control method provided by an embodiment of the present invention. Figure 3 and Figure 6 Based on the illustrated embodiment and various optional implementations, a detailed description is given of how to restore the custom algorithm in the instrument to the replaced algorithm. For simplicity, this embodiment only shows the steps included in the algorithm restoration process. Fig. 9 As shown, the instrument control method provided in this embodiment also includes the following steps.

[0128] Step 901: If an algorithm recovery instruction input by a user is received, the replaced algorithm in the instrument is obtained.

[0129] The algorithm recovery instruction includes an identifier of the replaced algorithm and an identifier of a second custom algorithm corresponding to the replaced algorithm.

[0130] The replaced algorithm in this embodiment refers to the algorithm originally built into the instrument that has been replaced by the custom algorithm. In this embodiment, the user can input an algorithm recovery instruction through the third display interface.

[0131] In this embodiment, the control device may obtain the replaced algorithm in the instrument from the storage space of the control device according to the identification of the replaced algorithm. Alternatively, the control device may obtain the replaced algorithm in the instrument from the cloud according to the identification of the replaced algorithm.

[0132] Step 902: Convert the replaced algorithm into a second target file.

[0133] The second target file is a file that can be recognized by the instrument.

[0134] The implementation process and technical principle of step 902 are similar to those of step 303 and will not be repeated here.

[0135] Step 903: Send the second target file and the identifier of the second custom algorithm to the instrument, so that the instrument installs the second target file to restore the second custom algorithm to the replaced algorithm after the security check of the second target file is passed.

[0136] The implementation process and technical principle of step 903 are similar to those of step 304, and will not be described in detail here. The difference is that in this embodiment, the second custom algorithm is restored to the replaced algorithm.

[0137] The instrument control method provided in this embodiment realizes the restoration of the second custom algorithm to the replaced algorithm, realizes the reversibility of the algorithm replacement process, and further improves the flexibility of data processing.

[0138] Fig.10 is a flow chart of an instrument control method provided by an embodiment of the present invention. This embodiment can be applied to a scenario where an algorithm in an instrument is replaced with a user-defined algorithm. The method can be executed by an instrument control device, which can be implemented in the form of hardware and / or software. The instrument control device can be configured in an instrument, for example, an oscilloscope. Fig.10 As shown, the method includes the following steps.

[0139] Step 1001: Receive a first target file and an identifier of an algorithm to be replaced sent by a control device.

[0140] The first target file is a file obtained by the control device after converting the first custom algorithm input by the user based on the function interface corresponding to the algorithm to be replaced. The algorithm to be replaced is an algorithm in the processor of the instrument. The function interface corresponding to the algorithm to be replaced is displayed in the first display interface of the control device. The first target file is a file that can be recognized by the instrument.

[0141] The first target file, the algorithm to be replaced, the sending of the first target file, and the implementation of the algorithm to be replaced in this embodiment refer to any embodiment of the control device side, which will not be described in detail here.

[0142] Step 1002: Verify the security of the first target file.

[0143] In one implementation, the first target file includes first verification information. The implementation process of step 1002 includes: obtaining the first verification information and second verification information pre-stored in the instrument; if the first verification information matches the second verification information, determining that the security verification of the first target file has passed; if the first verification information does not match the second verification information, determining that the security verification of the first target file has not passed.

[0144] Optionally, the first verification information in this embodiment may be information encoded for the first target file, and the second verification information may be information encoded for a legitimate target file. Alternatively, the first verification information may be a digital certificate of the first target file, and the second verification information may be a legitimate digital certificate.

[0145] Step 1003: If it is determined that the security check of the first target file passes, the first target file is installed to replace the algorithm to be replaced with the first custom algorithm.

[0146] In this embodiment, installing the first target file refers to running the first target file in the processor to obtain the first custom algorithm, and replacing the algorithm to be replaced with the first custom algorithm.

[0147] Furthermore, in order to further improve security, in this embodiment, the instrument can also configure the permissions of the first custom algorithm.

[0148] Furthermore, the instrument control method provided in this embodiment also includes the following steps: if a target data processing instruction is received, the acquired data is processed according to the first custom algorithm. The target data processing instruction is used to instruct data processing according to the first custom algorithm. That is, it is equivalent to performing data processing according to the first custom algorithm to meet the actual needs of the user. Optionally, after the data is processed according to the first custom algorithm, the processing result can be presented in a concise manner, for example, the processing result can be displayed in text form, or the processing result can be displayed in a graphical form, or the processing result can be displayed in a graphic form.

[0149] Optionally, the target data processing instruction may further include configuration information. The configuration information in this embodiment may include at least one of the following: a channel in the instrument, a clock rate, and a threshold value required in the data processing process.

[0150] The instrument control method provided in this embodiment, on the one hand, replaces the algorithm to be replaced in the processor of the instrument with the first custom algorithm input by the user, so that the instrument can process data based on the first custom algorithm, meet the actual data processing needs of the user, and improve the flexibility of data processing. On the other hand, the first target file converted by the first custom algorithm is received, and the first target file is installed only after the security check is passed, so that the instrument can safely and successfully implement the algorithm replacement, and improve the reliability and safety of the instrument control.

[0151] Fig.11 is a flow chart of another instrument control method provided by an embodiment of the present invention. Fig.10 Based on the illustrated embodiment and various optional implementations, a detailed description is given of how to restore the custom algorithm in the instrument to the replaced algorithm. For simplicity, this embodiment only shows the steps included in the algorithm restoration process. Fig.11 As shown, the instrument control method provided in this embodiment also includes the following steps.

[0152] Step 1101: Receive a second target file and an identifier of a second custom algorithm sent by a control device.

[0153] The second target file is a file obtained after the control device converts the replaced algorithm selected by the user, and the second target file is a file that can be recognized by the instrument.

[0154] The implementation of the second target file, the second custom algorithm, the replaced algorithm, sending the second target file and the identifier of the second custom algorithm in this embodiment refers to the corresponding embodiment of the control device side, which will not be described in detail here.

[0155] Step 1102: Verify the security of the second target file.

[0156] The implementation process and technical principle of step 1102 are similar to those of step 1002 and will not be repeated here.

[0157] Step 1103: If it is determined that the security check of the second target file passes, the second target file is installed to restore the second custom algorithm to the replaced algorithm.

[0158] The implementation process and technical principle of step 1103 are similar to those of step 1003, and will not be described in detail here. The difference is that in this embodiment, the second custom algorithm is restored to the replaced algorithm.

[0159] The instrument control method provided in this embodiment realizes the restoration of the second custom algorithm to the replaced algorithm, realizes the reversibility of the algorithm replacement process, and further improves the flexibility of data processing.

[0160] Fig.12 Schematic diagram of the interaction of the instrument control method provided by the embodiment of the present invention. This embodiment describes the instrument control method provided by the embodiment from the perspective of the interaction between the control device and the instrument. Fig.12 As shown, the instrument control method provided in this embodiment includes the following steps.

[0161] Step 1201: The control device receives the identifier of the algorithm to be replaced selected by the user.

[0162] The algorithm to be replaced is an algorithm in the processor of the instrument.

[0163] Step 1202: The control device receives a first custom algorithm input by a user based on a function interface corresponding to the algorithm to be replaced.

[0164] Among them, the function interface corresponding to the algorithm to be replaced is displayed in the first display interface.

[0165] Step 1203: Control the device to convert the first custom algorithm into a first target file.

[0166] The first target file is a file that can be recognized by the instrument.

[0167] Step 1204: The control device sends the first target file and the identifier of the algorithm to be replaced to the instrument.

[0168] Step 1205: The instrument receives the first target file and the identifier of the algorithm to be replaced sent by the control device.

[0169] Step 1206: The instrument verifies the security of the first target file.

[0170] Step 1207: If it is determined that the security check of the first target file passes, the instrument installs the first target file to replace the algorithm to be replaced with the first custom algorithm.

[0171] Optionally, the instrument control method provided in this embodiment also includes the following steps.

[0172] Step 1208: If a target data processing instruction is received, the instrument processes the acquired data according to the first custom algorithm.

[0173] The target data processing instruction is used to instruct data processing to be performed according to a first custom algorithm.

[0174] The technical effects of this embodiment are similar to those of any of the above embodiments and will not be described in detail here.

[0175] Fig.13 Schematic diagram of the structure of an instrument control device provided by an embodiment of the present invention. The instrument control device provided by this embodiment is arranged in a control device. Fig.13 As shown, the instrument control device provided in this embodiment includes the following modules: a first receiving module 1301 , a conversion module 1302 and a sending module 1303 .

[0176] The first receiving module 1301 is used to receive the identifier of the algorithm to be replaced selected by the user.

[0177] The algorithm to be replaced is an algorithm in a processor of the instrument.

[0178] The first receiving module 1301 is further configured to receive a first custom algorithm input by a user based on a function interface corresponding to the algorithm to be replaced.

[0179] Among them, the function interface corresponding to the algorithm to be replaced is displayed in the first display interface.

[0180] The conversion module 1302 is used to convert the first custom algorithm into a first target file.

[0181] The first target file is a file that can be recognized by the instrument.

[0182] The sending module 1303 is used to send the first target file and the identifier of the algorithm to be replaced to the instrument, so that the instrument installs the first target file to replace the algorithm to be replaced with the first custom algorithm after the security check of the first target file passes.

[0183] In one embodiment, the device further comprises a display module, which is used to display the identifier of the algorithm in the instrument in the first area of ​​the first display interface and the function interface corresponding to the algorithm to be replaced in the second area of ​​the first display interface.

[0184] In one embodiment, in the aspect of receiving the first custom algorithm input by the user based on the function interface corresponding to the algorithm to be replaced, the first receiving module 1301 is specifically used to: receive the first custom algorithm input by the user in the second area based on the function interface corresponding to the algorithm to be replaced, wherein the attribute information of the first custom algorithm matches the function interface.

[0185] In one embodiment, the display module is further used to display the algorithm conversion trigger area in the first display interface. The conversion module 1302 is specifically used to: after receiving the algorithm conversion instruction triggered by the user in the algorithm conversion trigger area, convert the first custom algorithm into the first target file through a cross-compilation tool chain.

[0186] In one embodiment, the display module is further used to display the sending mode options and the file storage path editing area in the second display interface. The first receiving module 1301 is also used to: receive the target sending mode selected by the user in the sending mode options; receive the storage path of the first target file input by the user in the file storage path editing area. The device also includes a storage module, which is used to store the first target file in the storage space corresponding to the storage path.

[0187] In one embodiment, the display module is further used to display a sending trigger area in the second display interface. The sending module 1303 is specifically used to: after receiving a sending instruction triggered by a user in the sending trigger area, obtain the first target file from the storage space corresponding to the storage path of the first target file; and send the first target file and the identifier of the algorithm to be replaced to the instrument through the target sending method.

[0188] In one embodiment, the algorithm to be replaced includes at least one of the following: an eye diagram analysis algorithm, a consistency analysis algorithm, a jitter analysis algorithm, a data preprocessing sub-algorithm in a target algorithm, an analysis sub-algorithm in the target algorithm, and a drawing sub-algorithm in the target algorithm. The target algorithm is the eye diagram analysis algorithm, the consistency analysis algorithm, or the jitter analysis algorithm.

[0189] In one embodiment, the device further includes an acquisition module. The acquisition module is used to acquire the replaced algorithm in the instrument if an algorithm recovery instruction input by a user is received. The algorithm recovery instruction includes an identifier of the replaced algorithm and an identifier of a second custom algorithm corresponding to the replaced algorithm. The conversion module 1302 is further used to convert the replaced algorithm into a second target file. The second target file is a file that can be recognized by the instrument. The sending module 1303 is used to send the second target file and the identifier of the second custom algorithm to the instrument, so that the instrument installs the second target file to restore the second custom algorithm to the replaced algorithm after the security check of the second target file is passed.

[0190] The instrument control device provided in the embodiment of the present invention can execute the instrument control method executed by the control device in any of the above embodiments, and has the corresponding functional modules and beneficial effects of the execution method.

[0191] Fig.14 FIG. 1 is a schematic diagram of the structure of another instrument control device provided by an embodiment of the present invention. The instrument control device is arranged in an instrument. Fig.14 As shown, the instrument control device includes the following modules: a second receiving module 1401 , a verification module 1402 and an installation module 1403 .

[0192] The second receiving module 1401 is configured to receive a first target file and an identifier of an algorithm to be replaced sent by a control device.

[0193] The first target file is a file obtained by the control device after converting the first custom algorithm input by the user based on the function interface corresponding to the algorithm to be replaced. The algorithm to be replaced is an algorithm in the processor of the instrument. The function interface corresponding to the algorithm to be replaced is displayed in the first display interface of the control device. The first target file is a file that can be recognized by the instrument.

[0194] The verification module 1402 is used to verify the security of the first target file.

[0195] The installation module 1403 is used to install the first target file to replace the algorithm to be replaced with the first custom algorithm if it is determined that the security check of the first target file passes.

[0196] In one embodiment, the first target file includes first verification information. The verification module 1402 is specifically used to: obtain the first verification information and second verification information pre-stored in the instrument; if the first verification information matches the second verification information, it is determined that the security verification of the first target file has passed; if the first verification information does not match the second verification information, it is determined that the security verification of the first target file has not passed.

[0197] In one embodiment, the second receiving module 1401 is further used to receive the second target file and the identifier of the second custom algorithm sent by the control device. The second target file is a file obtained by the control device after converting the replaced algorithm selected by the user, and the second target file is a file that can be recognized by the instrument. The verification module 1402 is also used to verify the security of the second target file. The installation module 1403 is also used to install the second target file to restore the second custom algorithm to the replaced algorithm if it is determined that the security verification of the second target file passes.

[0198] In one embodiment, the device further comprises an algorithm processing module, which is used to process the acquired data according to the first custom algorithm if a target data processing instruction is received, wherein the target data processing instruction is used to instruct data processing according to the first custom algorithm.

[0199] The instrument control device provided in the embodiment of the present invention can execute the instrument control method executed by the instrument in any of the above embodiments, and has the corresponding functional modules and beneficial effects of the execution method.

[0200] Fig.15 1 is a schematic diagram of the structure of an electronic device that implements the instrument control method of an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also be an instrument, such as an oscilloscope, a spectrum analyzer, etc. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.

[0201] like Fig.15 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0202] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0203] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as an instrument control method.

[0204] In some embodiments, the instrument control method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the instrument control method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the instrument control method in any other suitable manner (e.g., by means of firmware).

[0205] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0206] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0207] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0208] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0209] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0210] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0211] An embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the instrument control method provided by any embodiment of the present invention.

[0212] In the process of implementation, the computer program product can be written in one or more programming languages ​​or a combination thereof to perform the computer program code of the present invention, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).

[0213] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0214] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. An instrument control method, characterized in that: Applied in a control device, the method comprises: Receiving an identifier of an algorithm to be replaced selected by a user; wherein the algorithm to be replaced is an algorithm in a processor of the instrument; Receiving a first custom algorithm input by a user based on a function interface corresponding to the algorithm to be replaced; wherein the function interface corresponding to the algorithm to be replaced is displayed in a first display interface; Converting the first custom algorithm into a first target file; wherein the first target file is a file that can be recognized by the instrument; The first target file and the identifier of the algorithm to be replaced are sent to the instrument, so that the instrument installs the first target file to replace the algorithm to be replaced with the first custom algorithm after the security check of the first target file passes.

2. The method according to claim 1, characterized in that The method further comprises: Displaying an identification of an algorithm in the instrument in a first area of ​​the first display interface; After receiving the identifier of the algorithm to be replaced selected by the user, the method further includes: The function interface corresponding to the algorithm to be replaced is displayed in the second area of ​​the first display interface.

3. The method according to claim 2, characterized in that The receiving a first custom algorithm input by a user based on a function interface corresponding to the algorithm to be replaced includes: The first custom algorithm input by the user in the second area based on the function interface corresponding to the algorithm to be replaced is received; wherein the attribute information of the first custom algorithm matches the function interface.

4. The method according to claim 2, characterized in that: The method further comprises: Displaying an algorithm conversion trigger area in the first display interface; The converting the first custom algorithm into a first target file comprises: After receiving the algorithm conversion instruction triggered by the user in the algorithm conversion trigger area, the first custom algorithm is converted into the first target file through a cross-compilation tool chain.

5. The method according to claim 4, characterized in that After converting the first custom algorithm into the first target file through the cross-compilation tool chain, the method further includes: Displaying sending method options and a file storage path editing area in the second display interface; receiving a target sending mode selected by the user from the sending mode options; receiving a storage path of the first target file input by the user in the file storage path editing area; The first target file is stored in the storage space corresponding to the storage path.

6. The method according to claim 5, characterized in that The method further comprises: Displaying a sending trigger area in the second display interface; The step of sending the first target file and the identifier of the algorithm to be replaced to the instrument includes: After receiving a sending instruction triggered by a user in the sending trigger area, acquiring the first target file from a storage space corresponding to a storage path of the first target file; The first target file and the identifier of the algorithm to be replaced are sent to the instrument through the target sending method.

7. The method according to any one of claims 1 to 6, characterized in that: The algorithm to be replaced includes at least one of the following: an eye diagram analysis algorithm, a consistency analysis algorithm, a jitter analysis algorithm, a data preprocessing sub-algorithm in a target algorithm, an analysis sub-algorithm in the target algorithm, and a drawing sub-algorithm in the target algorithm; wherein the target algorithm is the eye diagram analysis algorithm, the consistency analysis algorithm, or the jitter analysis algorithm.

8. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: If an algorithm recovery instruction input by a user is received, the replaced algorithm in the instrument is obtained; wherein the algorithm recovery instruction includes an identifier of the replaced algorithm and an identifier of a second custom algorithm corresponding to the replaced algorithm; Converting the replaced algorithm into a second target file; wherein the second target file is a file that can be recognized by the instrument; The second target file and the identifier of the second custom algorithm are sent to the instrument, so that the instrument installs the second target file to restore the second custom algorithm to the replaced algorithm after the security check of the second target file passes.

9. An instrument control method, characterized in that: Applied in an instrument, the method comprises: Receive a first target file and an identifier of an algorithm to be replaced sent by a control device; wherein the first target file is a file obtained by the control device after converting a first custom algorithm input by a user based on a function interface corresponding to the algorithm to be replaced, the algorithm to be replaced is an algorithm in a processor of the instrument, the function interface corresponding to the algorithm to be replaced is displayed in a first display interface of the control device, and the first target file is a file that can be recognized by the instrument; Verifying the security of the first target file; If it is determined that the security check of the first target file passes, the first target file is installed to replace the algorithm to be replaced with the first custom algorithm.

10. The method according to claim 9, characterized in that The first target file includes first verification information; The verifying the security of the first target file includes: Acquire the first calibration information and second calibration information pre-stored in the instrument; If the first verification information matches the second verification information, it is determined that the security verification of the first target file passes; If the first verification information does not match the second verification information, it is determined that the security verification of the first target file has failed.

11. The method according to claim 9 or 10, characterized in that: The method further comprises: Receiving a second target file and an identifier of a second custom algorithm sent by the control device; wherein the second target file is a file obtained after the control device converts the replaced algorithm selected by the user, and the second target file is a file that can be recognized by the instrument; Verifying the security of the second target file; If it is determined that the security check of the second target file passes, the second target file is installed to restore the second custom algorithm to the replaced algorithm.

12. The method according to claim 9 or 10, characterized in that: The method further comprises: If a target data processing instruction is received, the acquired data is processed according to the first custom algorithm; wherein the target data processing instruction is used to instruct data processing according to the first custom algorithm.

13. An instrument control device, characterized in that: Set in a control device, the device includes: A first receiving module is used to receive an identifier of an algorithm to be replaced selected by a user; wherein the algorithm to be replaced is an algorithm in a processor of the instrument; The first receiving module is further used to receive a first custom algorithm input by a user based on the function interface corresponding to the algorithm to be replaced; wherein the function interface corresponding to the algorithm to be replaced is displayed in the first display interface; A conversion module, used for converting the first custom algorithm into a first target file; wherein the first target file is a file that can be recognized by the instrument; The sending module is used to send the first target file and the identifier of the algorithm to be replaced to the instrument, so that the instrument installs the first target file to replace the algorithm to be replaced with the first custom algorithm after the security check of the first target file passes.

14. An instrument control device, characterized in that: Set in an instrument, the device comprises: A second receiving module is used to receive a first target file and an identifier of an algorithm to be replaced sent by a control device; wherein the first target file is a file obtained by the control device after converting a first custom algorithm input by a user based on a function interface corresponding to the algorithm to be replaced, the algorithm to be replaced is an algorithm in a processor of the instrument, the function interface corresponding to the algorithm to be replaced is displayed in a first display interface of the control device, and the first target file is a file that can be recognized by the instrument; A verification module, used to verify the security of the first target file; The installation module is used to install the first target file to replace the algorithm to be replaced with the first custom algorithm if it is determined that the security check of the first target file passes.

15. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the instrument control method described in any one of claims 1 to 8, or can execute the instrument control method described in any one of claims 9 to 12.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is used to enable a processor to implement the instrument control method described in any one of claims 1 to 8 when executed, or to be able to execute the instrument control method described in any one of claims 9 to 12.

17. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the instrument control method according to any one of claims 1 to 8, or implements the instrument control method according to any one of claims 9 to 12.