CN113703836B - SCPI instruction management method for spacecraft power system evaluation - Google Patents
SCPI instruction management method for spacecraft power system evaluation Download PDFInfo
- Publication number
- CN113703836B CN113703836B CN202110959600.0A CN202110959600A CN113703836B CN 113703836 B CN113703836 B CN 113703836B CN 202110959600 A CN202110959600 A CN 202110959600A CN 113703836 B CN113703836 B CN 113703836B
- Authority
- CN
- China
- Prior art keywords
- instruction
- identifier
- control command
- scpi
- node device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/30—Arrangements for executing machine instructions, e.g. instruction decode
- G06F9/30003—Arrangements for executing specific machine instructions
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/30—Arrangements for executing machine instructions, e.g. instruction decode
- G06F9/30145—Instruction analysis, e.g. decoding, instruction word fields
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Remote Monitoring And Control Of Power-Distribution Networks (AREA)
Abstract
Description
技术领域Technical Field
本公开涉及航天器电源系统评测领域,尤其涉及一种用于航天器电源系统评测的SCPI指令管理方法。The present disclosure relates to the field of spacecraft power system evaluation, and in particular to a SCPI command management method for spacecraft power system evaluation.
背景技术Background technique
在航天器供配电系统测试中,测试范围广,包括系统级、分系统级、子系统级、设备级、模块级、元器件级等;测试维度多,包括机电热接口、电性能、可靠性、寿命、软件工程化、技术成熟度等。因此引入计算机的辅助,以便在一定程度上实现测试过程中的自动化,减小测试工作占用的时间资源和人力资源,同时进一步增强测试工作的准确度和置信度。In the test of the power supply and distribution system of spacecraft, the test scope is wide, including system level, subsystem level, equipment level, module level, component level, etc.; the test dimensions are many, including electromechanical thermal interface, electrical performance, reliability, life, software engineering, technology maturity, etc. Therefore, computer assistance is introduced to realize the automation of the test process to a certain extent, reduce the time and human resources occupied by the test work, and further enhance the accuracy and confidence of the test work.
在测试中,需要向多种、多台测试仪器发送指令(包括但不限于SCPI指令),以便对测试仪器进行数据采集或远程控制。然而相关技术中对比尚未提出高效的解决方案。During the test, it is necessary to send instructions (including but not limited to SCPI instructions) to multiple test instruments in order to collect data or remotely control the test instruments. However, no efficient solution has been proposed in the related art.
发明内容Summary of the invention
为了解决上述技术问题或者至少部分地解决上述技术问题,本公开提供了一种用于航天器电源系统评测的SCPI指令管理方法。In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a SCPI command management method for spacecraft power system evaluation.
第一方面,本公开提供了一种用于航天器电源系统评测的SCPI指令管理方法,应用于电子设备,该方法包括:确定指令类型的标识、测试仪器类型的标识、节点设备的标识、测试仪器的标识、SCPI指令的标识,以及SCPI指令的指令内容;生成控制命令,其中,该控制命令携带的信息包括:指令类型的标识、测试仪器类型的标识、节点设备的标识、测试仪器的标识、SCPI指令的标识,以及SCPI指令的指令内容。In a first aspect, the present disclosure provides a SCPI instruction management method for spacecraft power system evaluation, which is applied to electronic equipment, the method comprising: determining an identifier of an instruction type, an identifier of a test instrument type, an identifier of a node device, an identifier of a test instrument, an identifier of a SCPI instruction, and an instruction content of the SCPI instruction; generating a control command, wherein the information carried by the control command comprises: an identifier of an instruction type, an identifier of a test instrument type, an identifier of a node device, an identifier of a test instrument, an identifier of a SCPI instruction, and an instruction content of the SCPI instruction.
在一些实施例中,SCPI指令管理方法,还包括:确定SCPI指令的时序控制信息,其中,控制命令携带的信息还包括所述时序控制信息。In some embodiments, the SCPI instruction management method further includes: determining timing control information of the SCPI instruction, wherein the information carried by the control command also includes the timing control information.
在一些实施例中,SCPI指令管理方法,还包括:发送控制命令;接收相应节点设备响应于控制命令发送的数据包,其中,数据包携带的信息包括:指令类型的标识、测试仪器类型的标识、节点设备的标识、测试仪器的标识、SCPI指令的标识,以及相应测试仪器响应于SCPI指令的指令内容获得的数据;以及存储数据包。In some embodiments, the SCPI instruction management method further includes: sending a control command; receiving a data packet sent by a corresponding node device in response to the control command, wherein the information carried by the data packet includes: an identifier of the instruction type, an identifier of the test instrument type, an identifier of the node device, an identifier of the test instrument, an identifier of the SCPI instruction, and data obtained by the corresponding test instrument in response to the instruction content of the SCPI instruction; and storing the data packet.
在一些实施例中,发送控制命令,包括:将控制命令发送至实时数据库,以使节点设备从实时数据库中获取控制命令。In some embodiments, sending the control command includes: sending the control command to a real-time database, so that the node device obtains the control command from the real-time database.
第二方面,本公开提供了一种用于航天器电源系统评测的SCPI指令管理方法,应用于节点设备,节点设备关联有一个或多个测试仪器,SCPI指令管理方法包括:所述节点设备获取控制命令,其中,所述控制命令携带的信息包括:指令类型的标识、测试仪器类型的标识、节点设备的标识、测试仪器的标识、SCPI指令的标识,以及SCPI指令的指令内容;节点设备根据控制命令中的节点设备的标识判断控制命令是否对应于该节点设备;在控制命令对应于该节点设备的情况下,节点设备根据控制命令中的测试仪器的标识确定控制命令对应的测试仪器;节点设备向确定出的测试仪器发送控制命令中的SCPI指令的指令内容。In a second aspect, the present disclosure provides a SCPI instruction management method for spacecraft power system evaluation, which is applied to a node device, and the node device is associated with one or more test instruments. The SCPI instruction management method includes: the node device obtains a control command, wherein the information carried by the control command includes: an identifier of the instruction type, an identifier of the test instrument type, an identifier of the node device, an identifier of the test instrument, an identifier of the SCPI instruction, and an instruction content of the SCPI instruction; the node device determines whether the control command corresponds to the node device based on the identifier of the node device in the control command; when the control command corresponds to the node device, the node device determines the test instrument corresponding to the control command based on the identifier of the test instrument in the control command; the node device sends the instruction content of the SCPI instruction in the control command to the determined test instrument.
在一些实施例中,控制命令携带的信息还包括:SCPI指令的时序控制信息,其中,节点设备向确定出的测试仪器发送控制命令中的SCPI指令的指令内容,包括:节点设备根据时序控制信息向确定出的测试仪器发送控制命令中的SCPI指令的指令内容。In some embodiments, the information carried by the control command also includes: timing control information of SCPI instructions, wherein the node device sends the instruction content of the SCPI instructions in the control command to the determined test instrument, including: the node device sends the instruction content of the SCPI instructions in the control command to the determined test instrument according to the timing control information.
在一些实施例中,SCPI指令管理方法,还包括:节点设备接收确定出的测试仪器响应于SCPI指令的指令内容发送的数据;节点设备生成数据包,其中,数据包携带的信息包括:指令类型的标识、测试仪器类型的标识、节点设备的标识、测试仪器的标识、SCPI指令的标识,以及该数据;节点设备发送该数据包。In some embodiments, the SCPI instruction management method further includes: the node device receives the data sent by the determined test instrument in response to the instruction content of the SCPI instruction; the node device generates a data packet, wherein the information carried by the data packet includes: an identifier of the instruction type, an identifier of the test instrument type, an identifier of the node device, an identifier of the test instrument, an identifier of the SCPI instruction, and the data; and the node device sends the data packet.
在一些实施例中,节点设备获取控制命令,包括:节点设备从实时数据库中获取控制命令。In some embodiments, the node device obtains the control command, including: the node device obtains the control command from a real-time database.
第三方面,本公开提供了一种设备,该设备包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序;该计算机程序被处理器执行时实现本公开的任一方法的步骤。In a third aspect, the present disclosure provides a device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor; the computer program implements the steps of any method of the present disclosure when executed by the processor.
第四方面,本公开提供了一种计算机可读存储介质,计算机可读存储介质上存储有用于航天器电源系统评测的SCPI指令管理程序,SCPI指令管理程序被处理器执行时本公开的任一SCPI指令管理方法的步骤。In a fourth aspect, the present disclosure provides a computer-readable storage medium storing a SCPI instruction management program for spacecraft power system evaluation, and the SCPI instruction management program, when executed by a processor, performs the steps of any SCPI instruction management method of the present disclosure.
本公开实施例提供的上述技术方案与相关技术相比具有如下优点:本公开实施例提供的该方法。The above technical solution provided by the embodiment of the present disclosure has the following advantages compared with the related technology: the method provided by the embodiment of the present disclosure.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
为了更清楚地说明本公开实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
图1为本公开实施例提供的用于航天器电源系统评测的系统一种实施方式的结构示意图;FIG1 is a schematic diagram of a structure of a system for evaluating a spacecraft power system according to an embodiment of the present disclosure;
图2为本公开实施例提供的用于航天器电源系统评测的SCPI指令管理方法一种实施方式的流程图;FIG2 is a flow chart of an implementation of a SCPI command management method for spacecraft power system evaluation provided by an embodiment of the present disclosure;
图3为本公开实施例提供的用于航天器电源系统评测的SCPI指令管理方法另一种实施方式的流程图;FIG3 is a flow chart of another implementation of a SCPI command management method for spacecraft power system evaluation provided by an embodiment of the present disclosure;
图4为本公开实施例提供的测试航天器电源系统的方法一种实施方式的流程图;FIG4 is a flow chart of an implementation of a method for testing a spacecraft power system provided in an embodiment of the present disclosure;
图5为本公开实施例提供的控制命令处理装置一种实施方式的结构框图;FIG5 is a structural block diagram of an implementation of a control command processing device provided in an embodiment of the present disclosure;
图6为本公开实施例提供的控制命令处理装置另一种实施方式的结构框图;FIG6 is a structural block diagram of another implementation of a control command processing device provided in an embodiment of the present disclosure;
图7为本公开实施例提供的电子设备一种实施方式的硬件示意图。FIG. 7 is a hardware diagram of an implementation of an electronic device provided in an embodiment of the present disclosure.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本公开,并不用于限定本公开。It should be understood that the specific embodiments described herein are only used to explain the present disclosure, and are not used to limit the present disclosure.
在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本公开的说明,其本身没有特定的意义。因此,“模块”、“部件”或“单元”可以混合地使用。In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present disclosure, and have no specific meanings. Therefore, "module", "component" or "unit" can be used in a mixed manner.
图1为本公开实施例提供的用于航天器电源系统评测的系统一种实施方式的结构示意图,如图1所示,该系统包括:测试仪器10、节点设备20、服务器30和客户端50。其中,测试仪器10可与节点设备20直连,或者通过交换机40连接。测试仪器10可与服务器30连接,此时服务器30具有节点设备的作用。节点设备20与服务器30之间可通过交换机40连接。服务器30与客户端50之间可通过交换机40连接。在下文中,节点设备和服务器一些情况下统称为节点。至少部分测试仪器10为单线程设备,但不限于此。FIG1 is a schematic diagram of the structure of an implementation of a system for spacecraft power system evaluation provided by an embodiment of the present disclosure. As shown in FIG1 , the system includes: a test instrument 10, a node device 20, a server 30 and a client 50. Among them, the test instrument 10 can be directly connected to the node device 20, or connected through a switch 40. The test instrument 10 can be connected to the server 30, and at this time the server 30 has the function of a node device. The node device 20 and the server 30 can be connected through a switch 40. The server 30 and the client 50 can be connected through a switch 40. In the following, node devices and servers are collectively referred to as nodes in some cases. At least part of the test instruments 10 is a single-threaded device, but is not limited to this.
在本公开实施例中,节点设备20可包括个人计算机等电子设备,例如运行Windows、macOS的计算机,也可以为智能手机等便携式电子设备,本公开实施例对此不做限定。In the embodiment of the present disclosure, the node device 20 may include an electronic device such as a personal computer, for example, a computer running Windows or macOS, or a portable electronic device such as a smart phone, which is not limited in the embodiment of the present disclosure.
在本公开实施例中,服务器30可为个人计算机,或者为服务器设备,本公开实施例对此不做限定。In the embodiment of the present disclosure, the server 30 may be a personal computer or a server device, which is not limited in the embodiment of the present disclosure.
在本公开实施例中,客户端50用于发起测试,显示各种测试数据,以及设置各个测试参数。服务器30作为节点设备20与客户端50之间通信的中间设备。节点设备20用于从测试仪器10采集数据,以及对测试仪器10进行设置操作。In the disclosed embodiment, the client 50 is used to initiate a test, display various test data, and set various test parameters. The server 30 serves as an intermediate device for communication between the node device 20 and the client 50. The node device 20 is used to collect data from the test instrument 10 and perform setting operations on the test instrument 10.
在本公开实施例中,客户端50发起测试,周期性地从测试仪器10处采集参数(例如电压、电流等),测试仪器10测试航天器电源系统的参数。客户端50发起状态设置,改变测试仪器10的状态。节点设备20接收状态设置指令,并对测试仪器10进行状态设置。In the disclosed embodiment, the client 50 initiates a test and periodically collects parameters (such as voltage, current, etc.) from the test instrument 10, and the test instrument 10 tests the parameters of the spacecraft power system. The client 50 initiates a state setting to change the state of the test instrument 10. The node device 20 receives the state setting instruction and sets the state of the test instrument 10.
本公开实施例中,测试仪器10可包括:太阳方阵模拟器,用于检查被评测对象的分流调节功能。示例性的,太阳方阵模拟器可包括:一个或多个机柜、计算机和程控直流电源,每台程控直流电源含一个或多个通道。In the embodiment of the present disclosure, the test instrument 10 may include: a solar array simulator for checking the shunt regulation function of the object under evaluation. Exemplarily, the solar array simulator may include: one or more cabinets, a computer and a programmable DC power supply, each programmable DC power supply including one or more channels.
本公开实施例中,测试仪器10可包括:蓄电池模拟器,用于检查被评测对象的充电控制功能和放电控制功能。示例性的,蓄电池模拟器可包括一个或多个机柜、计算机、程控直流电源和程控直流电子负载,每台程控直流电源和程控直流电子负载各含一个或多个通道。In the embodiment of the present disclosure, the test instrument 10 may include: a battery simulator for checking the charging control function and the discharging control function of the object under evaluation. Exemplarily, the battery simulator may include one or more cabinets, a computer, a programmable DC power supply and a programmable DC electronic load, each of which includes one or more channels.
本公开实施例中,测试仪器10可包括:程控直流电源,用于为被测对象提供功率。示例性的,每台程控直流电源含一个或多个通道。In the embodiment of the present disclosure, the test instrument 10 may include: a program-controlled DC power supply, which is used to provide power to the object under test. Exemplarily, each program-controlled DC power supply includes one or more channels.
本公开实施例中,测试仪器10可包括:程控直流电子负载,用于消耗被测对象输出的功率。示例性的,程控直流电子负载包括:一个或多个机柜、计算机、程控直流电子负载,每台程控直流电子负载含多个通道。In the embodiment of the present disclosure, the test instrument 10 may include: a program-controlled DC electronic load for consuming the power output by the object under test. Exemplarily, the program-controlled DC electronic load includes: one or more cabinets, a computer, and a program-controlled DC electronic load, each of which includes multiple channels.
本公开实施例中,测试仪器10可包括:功率分析仪,用于测量电压、电流。示例性的,每台功率分析仪含多个电压测量通道、多个电流测量通道。In the embodiment of the present disclosure, the test instrument 10 may include: a power analyzer for measuring voltage and current. Exemplarily, each power analyzer includes multiple voltage measurement channels and multiple current measurement channels.
本公开实施例中,测试仪器10可包括:频率分析仪,用于分析频域阻抗、环路稳定性。示例性的,每台频率分析仪含一个或多个频率输出通道、一个或多个电压测量通道。In the embodiment of the present disclosure, the test instrument 10 may include: a frequency analyzer for analyzing frequency domain impedance and loop stability. Exemplarily, each frequency analyzer includes one or more frequency output channels and one or more voltage measurement channels.
本公开实施例中,测试仪器10可包括:示波器,用于测量时域电压、电流波形。每台示波器含一个或多个电压测量通道。In the embodiment of the present disclosure, the test instrument 10 may include: an oscilloscope for measuring time domain voltage and current waveforms. Each oscilloscope includes one or more voltage measurement channels.
本公开实施例中,测试仪器10可包括:万用表,用于测量电压、电流。每台万用表含一个或多个电压测量通道、电流测量通道。In the embodiment of the present disclosure, the test instrument 10 may include: a multimeter for measuring voltage and current. Each multimeter includes one or more voltage measurement channels and current measurement channels.
本公开实施例中,测试仪器10可包括:函数发生器,用于输出特定信号。In the embodiment of the present disclosure, the test instrument 10 may include: a function generator for outputting a specific signal.
本公开实施例中,测试仪器10可包括:功率放大器,用于将信号的功率放大。In the embodiment of the present disclosure, the test instrument 10 may include: a power amplifier for amplifying the power of a signal.
本公开实施例中,测试仪器10可包括:LCR测试仪,用于测量电抗。In the embodiment of the present disclosure, the testing instrument 10 may include: an LCR tester for measuring reactance.
本公开实施例中,测试仪器10可包括:毫欧表,用于测量小电阻。In the embodiment of the present disclosure, the testing instrument 10 may include: a milliohm meter for measuring small resistance.
本公开实施例中,测试仪器10可包括:数据记录仪,用于记录数据。In the embodiment of the present disclosure, the testing instrument 10 may include: a data recorder for recording data.
在本公开实施例中,节点设备20可关联一个或多个测试仪器10。节点设备20被配置为与其关联的测试仪器10通信,以从测试仪器10处采集数据,或者对测试仪器10进行设置操作。In the embodiment of the present disclosure, the node device 20 may be associated with one or more test instruments 10. The node device 20 is configured to communicate with the test instrument 10 associated with it to collect data from the test instrument 10 or perform setting operations on the test instrument 10.
在本公开实施例中,为每个节点设备20分配标识,为每种测试仪器分配测试仪器类型的标识,为每个测试仪器10分类测试仪器的标识。节点设备20的标识可与节点设备20的属性信息关联,例如将节点设备20的标识与节点设备20的IP地址、MAC地址等关联。测试仪器10的标识可与测试仪器10的属性信息关联,例如将测试仪器10的标识与测试仪器10的IP地址等关联。测试仪器类型的标识可以对应类型的测试仪器的属性信息关联,例如测试仪器类型的标识与该种测试仪器支持哪种通讯接口等信息关联。In the disclosed embodiment, an identifier is assigned to each node device 20, an identifier of the test instrument type is assigned to each test instrument, and an identifier of the test instrument is classified for each test instrument 10. The identifier of the node device 20 can be associated with the attribute information of the node device 20, for example, the identifier of the node device 20 is associated with the IP address, MAC address, etc. of the node device 20. The identifier of the test instrument 10 can be associated with the attribute information of the test instrument 10, for example, the identifier of the test instrument 10 is associated with the IP address, etc. of the test instrument 10. The identifier of the test instrument type can be associated with the attribute information of the corresponding type of test instrument, for example, the identifier of the test instrument type is associated with information such as which communication interface the test instrument supports.
在本公开实施例中,测试仪器10与节点设备20之间采用程控仪器(可编程仪器)标准命令集(SCPI)实现远程控制,但不限于此。SCPI是一种建立在现有标准IEEE488.1和IEEE488.2基础上,并遵循了IEEE754标准中浮点运算规则、ISO646信息交换7位编码符号(相当于ASCll编程)等多种标准的标准化仪器编程语言。它采用一套树状分层结构的命令集,是一个具有普遍性的通用仪器模型,采用面向信号的测量。In the disclosed embodiment, the test instrument 10 and the node device 20 use the standard command set for programmable instruments (SCPI) to achieve remote control, but it is not limited to this. SCPI is a standardized instrument programming language based on the existing standards IEEE488.1 and IEEE488.2, and follows multiple standards such as floating-point arithmetic rules in the IEEE754 standard, ISO646 information exchange 7-bit coding symbols (equivalent to ASCII programming), etc. It uses a set of tree-like hierarchical structured command sets, is a universal general instrument model, and uses signal-oriented measurement.
程控仪器(可编程仪器)标准命令集内的指令是对应于设备面板上的一次按键,远程操作模式下,可由一个或多个SCPI命令来完成相同的工作。多个指令组成指令集。The commands in the standard command set of programmable instruments correspond to a key press on the device panel. In remote operation mode, one or more SCPI commands can complete the same task. Multiple commands make up a command set.
在本公开实施中,SCPI指令包括但不限于两种功能(指令类型):In the implementation of the present disclosure, SCPI instructions include but are not limited to two functions (instruction types):
1)改变测试仪器运行状态的设置指令,即set操作,例如,打开/关闭电源输出等;1) Setting instructions to change the operating status of the test instrument, that is, set operations, for example, turning on/off the power output, etc.;
2)查询测试仪器状态的查询指令,即query操作,例如,读取输出电压值等。2) Query instructions for querying the status of the test instrument, that is, query operations, for example, reading the output voltage value, etc.
查询指令一般以问号“?”结尾,有些指令即可以用来设置,也可以用来查询仪器。Query commands usually end with a question mark "?". Some commands can be used to set or query the instrument.
一般地,每种测试仪器都有自己的开发人员手册,该手册内详细介绍了其支持的SCPI指令,并以语法树的形式体现,这种语法树形式的SCPI指令并不能直接使用,可在解析为单条的SCPI指令后使用。Generally, each test instrument has its own developer manual, which describes in detail the SCPI commands it supports in the form of a syntax tree. The SCPI commands in the syntax tree form cannot be used directly, but can be used after being parsed into a single SCPI command.
一个示例性的SCPI指令的语法树如下所示:A syntax tree for an example SCPI command is shown below:
[SOURce:][SOURce:]
PULSePULSe
:TRANsition[:LEADing]<Time>[Unit]设定上升/下降时间:TRANsition[:LEADing]<Time>[Unit] Set the rise/fall time
:TRANsition[:LEADing]?<Time>[Unit]查询上升/下降时间:TRANsition[:LEADing]? <Time>[Unit] Query the rise/fall time
:WIDTh:WIDTh
:HIGH <Time>[Unit]设定LevelA(较高级别)脉宽:HIGH <Time> [Unit] Set the LevelA (higher level) pulse width
:HIGH? <Time>[Unit]查询LevelA(较高级别)脉宽:HIGH? <Time> [Unit] Query the pulse width of LevelA (higher level)
:WIDTh:WIDTh
:LOW <Time>[Unit]设定LevelB(较低级别)脉宽:LOW <Time> [Unit] Set the Level B (lower level) pulse width
:LOW? <Time>[Unit]查询LevelB(较低级别)脉宽:LOW? <Time> [Unit] Query the pulse width of Level B (lower level)
上述语法树经过解析后,可以得到如下指令:After parsing the above syntax tree, we can get the following instructions:
PULSe:TRANsition 设定上升/下降时间PULSe:TRANsition Set the rise/fall time
PULSe:TRANsition? 查询上升/下降时间PULSe:TRANsition? Query rise/fall time
PULSe:WIDTh:HIGH 设定LevelA(较高级别)脉宽PULSe:WIDTh:HIGH Set LevelA (higher level) pulse width
PULSe:WIDTh:HIGH? 查询LevelA(较高级别)脉宽PULSe:WIDTh:HIGH? Query the pulse width of LevelA (higher level)
PULSe:WIDTh:LOW 设定LevelB(较低级别)脉宽PULSe:WIDTh:LOW Set LevelB (lower level) pulse width
PULSe:WIDTh:LOW? 查询LevelB(较低级别)脉宽PULSe:WIDTh:LOW? Query the pulse width of Level B (lower level)
在本公开实施例中,为SCIP指令分配标识,SCPI指令的标识可区分不同的SCPI指令,例如,SCIP指令“PULSe:WIDTh:HIGH”的标识为“0001”,SCIP指令“PULSe:TRANsition”的标识为“0002”。In the disclosed embodiment, identifiers are assigned to SCIP instructions, and the identifiers of SCPI instructions can distinguish different SCPI instructions. For example, the identifier of the SCIP instruction "PULSe:WIDTh:HIGH" is "0001", and the identifier of the SCIP instruction "PULSe:TRANsition" is "0002".
在本公开实施例中,可提供本地非标SCPI指令扩充,方便更有效和完整的发挥评测设备的功能,为评测过程提供更完善的手段,从而能得到更为准确的评测结果。In the disclosed embodiments, local non-standard SCPI command expansion can be provided to facilitate more effective and complete use of the functions of the evaluation equipment, provide a more complete means for the evaluation process, and thus obtain more accurate evaluation results.
在本公开实施例中,可获得参与测试的所有测试仪器类型的SCPI指令,形成每个类型的测试仪器的SCPI指令集。用SCPI指令的标识区别不同的SCPI指令。在一些情况下,同一类型的测试仪器的SCPI指令相同,即,同一类型的每个测试仪器具有相同的SCPI指令集。SCPI指令的指令内容包括关键字和参数(参数可选,对于设置指令而言具有参数,对于查询指令而言不包括参数)。在本公开中,SCPI指令的标识是指与关键字对应的标识。In the embodiments of the present disclosure, SCPI instructions of all types of test instruments involved in the test can be obtained to form a SCPI instruction set for each type of test instrument. Different SCPI instructions are distinguished by the identifier of the SCPI instruction. In some cases, the SCPI instructions of the same type of test instruments are the same, that is, each test instrument of the same type has the same SCPI instruction set. The instruction content of the SCPI instruction includes keywords and parameters (parameters are optional, and parameters are included for setting instructions, but not for query instructions). In the present disclosure, the identifier of the SCPI instruction refers to the identifier corresponding to the keyword.
应当理解,图1所示的用于航天器电源系统评测的系统仅作为本公开实施例的示例性说明,并不是对用于航天器电源系统评测的系统的限定。It should be understood that the system for evaluating a spacecraft power system shown in FIG. 1 is merely an exemplary description of an embodiment of the present disclosure, and is not a limitation of the system for evaluating a spacecraft power system.
下面在图1所示的系统基础上对本公开实施例进行说明。The following describes an embodiment of the present disclosure based on the system shown in FIG1 .
在本公开一些实施例中,控制命令携带的信息包括:指令类型的标识、测试仪器类型的标识、节点设备的标识、测试仪器的标识、SCPI指令的标识,以及SCPI指令的指令内容。响应于控制命令的数据包携带的信息包括:相应控制命令中的指令类型的标识、测试仪器类型的标识、节点设备的标识、测试仪器的标识、SCPI指令的标识,以及获取的数据。在本公开中,各类标识信息合并称为“指令代号”。In some embodiments of the present disclosure, the information carried by the control command includes: an identifier of the instruction type, an identifier of the test instrument type, an identifier of the node device, an identifier of the test instrument, an identifier of the SCPI instruction, and the instruction content of the SCPI instruction. The information carried by the data packet in response to the control command includes: an identifier of the instruction type in the corresponding control command, an identifier of the test instrument type, an identifier of the node device, an identifier of the test instrument, an identifier of the SCPI instruction, and the acquired data. In the present disclosure, various types of identification information are collectively referred to as "instruction code".
在本公开一些实施例中,控制命令携带的信息还包括:时序控制信息,时序控制信息可包括延时信息或时刻信息,本公开对此不做限定。In some embodiments of the present disclosure, the information carried by the control command also includes: timing control information, and the timing control information may include delay information or time information, which is not limited in the present disclosure.
在本公开中,根据控制命令中的各类标识,可以将SCPI指令发送至多种类型的多个测试仪器并被区分;根据数据包中的各类标识,可以确定获取该数据的指令、测试仪器、节点设备等信息,而无需进行复杂检索。并且,基于这些标识信息,便于进行控制命令的编写或自动生成,并提高控制命令的可读性。In the present disclosure, according to various identifications in the control command, SCPI instructions can be sent to multiple types of multiple test instruments and distinguished; according to various identifications in the data packet, the instructions, test instruments, node devices and other information for obtaining the data can be determined without complex retrieval. Moreover, based on these identification information, it is convenient to write or automatically generate control commands and improve the readability of control commands.
本公开实施例提供了一种用于航天器电源系统评测的SCPI指令管理方法,该方法可应用在客户端50或服务器30,用以产生对测试仪器10的控制命令。多个控制命令组成控制命令序列,执行控制命令序列中的控制命令实现一系列的操作,包括从测试仪器10采集数据、设置测试仪器10的状态。The embodiment of the present disclosure provides a SCPI command management method for spacecraft power system evaluation, which can be applied to a client 50 or a server 30 to generate control commands for a test instrument 10. A plurality of control commands form a control command sequence, and executing the control commands in the control command sequence implements a series of operations, including collecting data from the test instrument 10 and setting the state of the test instrument 10.
如图2所示,该方法包括步骤S202至步骤S204。As shown in FIG. 2 , the method includes steps S202 to S204 .
步骤S202,确定指令类型的标识、测试仪器类型的标识、节点设备的标识、测试仪器的标识、SCPI指令的标识,以及SCPI指令的指令内容。Step S202, determining the identifier of the instruction type, the identifier of the test instrument type, the identifier of the node device, the identifier of the test instrument, the identifier of the SCPI instruction, and the instruction content of the SCPI instruction.
步骤S204,生成控制命令,其中,该控制命令携带的信息包括:指令类型的标识、测试仪器类型的标识、节点设备的标识、测试仪器的标识、SCPI指令的标识,以及SCPI指令的指令内容。Step S204, generating a control command, wherein the information carried by the control command includes: an identifier of the instruction type, an identifier of the test instrument type, an identifier of the node device, an identifier of the test instrument, an identifier of the SCPI instruction, and instruction content of the SCPI instruction.
在本公开实施例中,生成控制命令包括的字段如表1所示。In the embodiment of the present disclosure, the fields included in the generated control command are shown in Table 1.
表1控制命令的字段表Table 1 Field table of control commands
在本公开实施例中,将控制命令中指令类型的标识、测试仪器类型的标识、节点设备的标识、测试仪器的标识及SCPI指令的标识合并称为指令代号。控制命令包括指令代号和SCPI指令的指令内容两个部分,指令代号包括指令类型的标识、测试仪器类型的标识、节点设备的标识、测试仪器的标识及SCPI指令的标识。In the embodiment of the present disclosure, the identifier of the instruction type, the identifier of the test instrument type, the identifier of the node device, the identifier of the test instrument, and the identifier of the SCPI instruction in the control command are combined into an instruction code. The control command includes two parts: the instruction code and the instruction content of the SCPI instruction. The instruction code includes the identifier of the instruction type, the identifier of the test instrument type, the identifier of the node device, the identifier of the test instrument, and the identifier of the SCPI instruction.
示例性的,指令类型的标识用1位10进制数表示,例如“1”、“2”、“3”、“4”分别代表不同的指令类型;测试仪器类型的标识用2位10进制数表示,例如“01”、“11”、“15”分别代表不同的测试仪器类型;节点设备的标识用2位10进制数表示,例如,“02”、“20”、“80”分别代表不同的节点设备;测试仪器的标识用2位10进制数表示,例如,“01”、“20”、“51”分别代表不同的测试仪器;SCPI指令的标识用4位10进制数表示,例如,“0001”“0100”代表不同的SCPI指令。Exemplarily, the identifier of the instruction type is represented by a 1-digit decimal number, for example, "1", "2", "3", and "4" represent different instruction types respectively; the identifier of the test instrument type is represented by a 2-digit decimal number, for example, "01", "11", and "15" represent different test instrument types respectively; the identifier of the node device is represented by a 2-digit decimal number, for example, "02", "20", and "80" represent different node devices respectively; the identifier of the test instrument is represented by a 2-digit decimal number, for example, "01", "20", and "51" represent different test instruments respectively; the identifier of the SCPI instruction is represented by a 4-digit decimal number, for example, "0001" and "0100" represent different SCPI instructions.
示例性的,按照预定顺序将上述标识组合在一起形成指令代号,例如,按照指令类型的标识、测试仪器类型的标识、节点设备的标识、测试仪器的标识及SCPI指令的标识的顺序,指令代号可表示为:ABBCCDDEEEE。其中,“A”表示指令类型的标识,“BB”表示测试仪器类型的标识,“CC”表示节点设备的标识、“DD”表示测试仪器的标识,“EEEE”表示SCPI指令的标识。例如,“30101020111”表示,指令类型为“3”、测试仪器类型为“01”、节点设备为“01”、测试仪器为“02”、SCIP指令为“0111”的指令。Exemplarily, the above-mentioned identifiers are combined together in a predetermined order to form an instruction code. For example, according to the order of the identifier of the instruction type, the identifier of the test instrument type, the identifier of the node device, the identifier of the test instrument, and the identifier of the SCPI instruction, the instruction code can be expressed as: ABBCCDDEEEE. Among them, "A" represents the identifier of the instruction type, "BB" represents the identifier of the test instrument type, "CC" represents the identifier of the node device, "DD" represents the identifier of the test instrument, and "EEEE" represents the identifier of the SCPI instruction. For example, "30101020111" represents an instruction with an instruction type of "3", a test instrument type of "01", a node device of "01", a test instrument of "02", and a SCIP instruction of "0111".
应当理解,上述对控制命令的标识及其数据结构仅作为示例性说明,本公开实施例对此不做限定,例如采用json等数据形式也是可行的。It should be understood that the above identification of the control command and its data structure are only for illustrative purposes, and the embodiments of the present disclosure do not limit this. For example, it is also feasible to use data formats such as JSON.
示例性的,SCPI指令的指令内容包括关键字和参数(参数可选,对于设置指令而言具有参数,对于查询指令而言不包括参数)。例如,SCPI指令的指令为“SOURce 1:VOLTage:PROTection 110(设置保护电压,目标值为110)”,其中,“SOURce 1:VOLTage:PROTection”为SCPI指令的标识对应的部分(关键字),“110”为SCPI指令的参数。SCPI指令的指令为“SOURce 1:VOLTage:PROTection?(查询保护电压)”,其中,“SOURce 1:VOLTage:PROTection?”为SCPI指令的标识对应的部分(关键字),该SCPI指令的指令不含参数。Exemplarily, the instruction content of the SCPI instruction includes keywords and parameters (parameters are optional, and parameters are included for setting instructions, but not for query instructions). For example, the instruction of the SCPI instruction is "SOURce 1:VOLTage:PROTection 110 (set protection voltage, target value is 110)", where "SOURce 1:VOLTage:PROTection" is the part (keyword) corresponding to the identifier of the SCPI instruction, and "110" is the parameter of the SCPI instruction. The instruction of the SCPI instruction is "SOURce 1:VOLTage:PROTection?" (query protection voltage)", where "SOURce 1:VOLTage:PROTection?" is the part (keyword) corresponding to the identifier of the SCPI instruction, and the instruction of the SCPI instruction does not contain parameters.
示例性的,控制命令中“指令代号”部分与“SCPI指令的指令”部分用“|”分隔,但不限于此。例如,控制命令可被表示为“30101020111|SOURce 1:VOLTage:PROTection?”。Exemplarily, the "command code" part and the "SCPI command" part in the control command are separated by "|", but not limited thereto. For example, the control command can be expressed as "30101020111|SOURce 1:VOLTage:PROTection?".
在一些实施例中,为了控制SCPI指令的时序,还包括:确定SCPI指令的时序控制信息,其中,控制命令携带的信息还包括时序控制信息。包含时序控制信息的控制命令如表2所示。In some embodiments, in order to control the timing of the SCPI command, the method further includes: determining the timing control information of the SCPI command, wherein the information carried by the control command also includes the timing control information. The control command including the timing control information is shown in Table 2.
表2包含时序控制信息的控制命令Table 2 Control commands containing timing control information
示例性的,时序控制信息可设置为时延信息,指示按照该时延信息延迟执行SCPI指令;或者时序控制信息可设置为时刻信息,指示在该时刻执行SCPI指令。Exemplarily, the timing control information may be set as delay information, indicating that the execution of the SCPI instruction is delayed according to the delay information; or the timing control information may be set as time information, indicating that the SCPI instruction is executed at the time.
以上述控制命令表示方式,包含时序控制信息的控制命令可表示为“指令代号|时序控制信息|SCPI指令的指令”,其中,各个部分用“|”分隔,一个示例性的控制命令表示为“30101020111|50|SOURce1:VOLTage:PROTection?”,其表示时延50(单位根据协议,可以为毫秒等)执行。Using the above control command representation method, a control command containing timing control information can be expressed as "instruction code|timing control information|SCPI instruction", wherein each part is separated by "|". An exemplary control command is expressed as "30101020111|50|SOURce1:VOLTage:PROTection?", which indicates execution with a delay of 50 (the unit may be milliseconds, etc., depending on the protocol).
在一些实施例中,对于查询指令返回的参数值有可能是这个情形,"0.05,0.14,0.45,1.23"。因此,控制命令还可包括取值的标识。取值的标识可用2位10进制数据表示,代称为“FF”,例如,对于"0.05,0.14,0.45,1.23",当FF=04时,代表提取第4个值即1.23,其他参数值可忽略。In some embodiments, the parameter value returned by the query command may be "0.05, 0.14, 0.45, 1.23". Therefore, the control command may also include a value identifier. The value identifier may be represented by a 2-digit decimal number, denoted by "FF". For example, for "0.05, 0.14, 0.45, 1.23", when FF = 04, it means that the fourth value, i.e., 1.23, is extracted, and other parameter values may be ignored.
在一些实施例中,生成多个控制命令形成控制命令序列。一个示例性的控制命令序列如下所示:In some embodiments, multiple control commands are generated to form a control command sequence. An exemplary control command sequence is as follows:
#----选择通道2#----Select channel 2
32048010576|0|SELect:ch2 132048010576|0|SELect:ch2 1
#----设置水平刻度#----Set the horizontal scale
32048010282|0|HORizontal:SCAle 10.032048010282|0|HORizontal:SCAle 10.0
#----设置触发模式#----Set the trigger mode
32048010634|0|TRIGger:A:MODe AUTO32048010634|0|TRIGger:A:MODe AUTO
#----通道2的零点位置设置(V)#----Zero point setting of channel 2 (V)
32048010057|0|CH2:POSition-3.032048010057|0|CH2:POSition-3.0
#----通道2的偏移设置(V)#----Offset setting of channel 2 (V)
32048010055|0|CH2:OFFSet 0.0032048010055|0|CH2:OFFSet 0.00
#----通道2的垂直刻度设置(V)#----Vertical scale setting of channel 2 (V)
32048010063|0|CH2:VOLts 1.032048010063|0|CH2:VOLts 1.0
在一些实施例中,生成控制命令后,发送控制命令或控制命令序列。例如,向节点设备20广播控制命令或控制命令序列。节点设备20接收控制命令或控制命令序列,执行自身的控制命令。In some embodiments, after the control command is generated, the control command or the control command sequence is sent, for example, the control command or the control command sequence is broadcast to the node device 20. The node device 20 receives the control command or the control command sequence and executes its own control command.
在一些实施例中,使用实时数据库处理控制命令或控制命令序列。生成控制命令或控制命令序列后,将控制命令或控制命令序列发送至实数数据库中,节点设备20可被配置为实时从实时数据库中读取控制命令或控制命令序列。在一些实施例中,实时数据库设置在服务器30,节点设备20与服务器30通信,从设置在其上的实时数据库中实时读取控制命令或控制命令序列。In some embodiments, a real-time database is used to process control commands or control command sequences. After generating a control command or a control command sequence, the control command or the control command sequence is sent to a real number database, and the node device 20 can be configured to read the control command or the control command sequence from the real-time database in real time. In some embodiments, the real-time database is set on the server 30, and the node device 20 communicates with the server 30 to read the control command or the control command sequence in real time from the real-time database set thereon.
在一些实施例中,发送控制命令之后,还包括:接收相应节点设备响应于控制命令发送的数据包,其中,数据包携带的信息包括:指令类型的标识、测试仪器类型的标识、节点设备的标识、测试仪器的标识、SCPI指令的标识,以及相应测试仪器响应于SCPI指令的指令内容获得的数据;以及存储数据包。应当理解,数据包还可以包括其他信息,例如,SCPI指令的开始和结束时间戳等,本公开实施例对此不做赘述。In some embodiments, after sending the control command, the method further includes: receiving a data packet sent by the corresponding node device in response to the control command, wherein the information carried by the data packet includes: an identifier of the instruction type, an identifier of the test instrument type, an identifier of the node device, an identifier of the test instrument, an identifier of the SCPI instruction, and data obtained by the corresponding test instrument in response to the instruction content of the SCPI instruction; and storing the data packet. It should be understood that the data packet may also include other information, such as the start and end timestamps of the SCPI instruction, etc., which will not be elaborated in the embodiments of the present disclosure.
示例性的,发送的控制命令为“30101020111|50|SOURce1:VOLTage:PROTection?”,接收到的数据包携带有“30101020111”(即上述多种标识构成的指令代号)以及查询到的数据。Exemplarily, the control command sent is "30101020111|50|SOURce1:VOLTage:PROTection?", and the received data packet carries "30101020111" (ie, the instruction code composed of the above multiple identifiers) and the queried data.
在一些实施例中,查询命令实现数据采集,节点设备20可被配置为周期性地向其关联的测试仪器10发送SCPI指令的指令,周期性地从测试仪器10上采集数据。In some embodiments, the query command implements data collection, and the node device 20 can be configured to periodically send SCPI instructions to its associated test instrument 10 to periodically collect data from the test instrument 10.
在本公开实施例中,存储的数据包包含上述各种标识(即指令代号),从而,根据这些标识来判断数据的来源、采集数据所使用的指令等。In the disclosed embodiment, the stored data packets contain the above-mentioned various identifiers (ie, instruction codes), so that the source of the data, the instructions used to collect the data, etc. can be determined based on these identifiers.
本公开实施例还提供了一种用于航天器电源系统评测的SCPI指令管理方法,应用于节点设备,节点设备关联有一个或多个测试仪器。节点设备根据控制命令或控制命令中的标识信息获取自身的控制命令。The embodiment of the present disclosure also provides a SCPI command management method for spacecraft power system evaluation, which is applied to a node device, and the node device is associated with one or more test instruments. The node device obtains its own control command according to the control command or identification information in the control command.
如图3所示,该方法包括步骤S302至步骤S308。As shown in FIG. 3 , the method includes steps S302 to S308 .
步骤S302,节点设备获取控制命令。Step S302: The node device obtains a control command.
其中,控制命令携带的信息包括:指令类型的标识、测试仪器类型的标识、节点设备的标识、测试仪器的标识、SCPI指令的标识,以及SCPI指令的指令内容。The information carried by the control command includes: an identifier of the instruction type, an identifier of the test instrument type, an identifier of the node device, an identifier of the test instrument, an identifier of the SCPI instruction, and instruction content of the SCPI instruction.
在本公开实施例中,如本公开前述部分所描述的,控制命令中的各类标识合并称为指令代号,在一些实施例中,这些标识按照预定顺序组织在一起,每种标识根据需要设置相应的位数,指令代号与SCPI指令的指令内容之间使用分隔符“|”进行分割。In the embodiments of the present disclosure, as described in the preceding part of the present disclosure, various identifiers in the control command are collectively referred to as instruction codes. In some embodiments, these identifiers are organized together in a predetermined order, and each identifier is set with a corresponding number of bits as required. The instruction code and the instruction content of the SCPI instruction are separated by a separator “|”.
在本公开实施例中,节点设备可监听控制命令或控制命令序列,在一些实施例中,控制命令或控制命令被发送至实时数据库中,节点设备可被配置为实时在实时数据库中读取控制命令或控制命令序列。In an embodiment of the present disclosure, the node device may monitor a control command or a control command sequence. In some embodiments, the control command or the control command is sent to a real-time database, and the node device may be configured to read the control command or the control command sequence in the real-time database in real time.
步骤S304,节点设备根据控制命令中的节点设备的标识判断控制命令是否对应于该节点设备。Step S304: The node device determines whether the control command corresponds to the node device according to the node device identifier in the control command.
在本公开实施例中,控制命令或控制命令序列被广播,节点设备可获取到发往所有节点设备的控制命令,节点设备使用控制命令中的节点设备的标识从广播的控制命令中筛选发给自身的控制命令。In the disclosed embodiment, a control command or a control command sequence is broadcast, and a node device can obtain control commands sent to all node devices. The node device uses the node device identifier in the control command to filter the control command sent to itself from the broadcasted control commands.
在本公开实施例中,节点设备读取控制命令中的节点设备的标识,将读取的标识与自身的标识进行比较,如果两者一致,则该控制命令是发送给自身的。示例性的,如本公开前述所示,节点设备的标识被设置在预设位置(“ABBCCDDEEEEE”中的“CC”),节点设备读取“CC”位置的值,获得控制命令指示的节点设备的标识。In the embodiment of the present disclosure, the node device reads the node device identification in the control command, compares the read identification with its own identification, and if the two are consistent, the control command is sent to itself. Exemplarily, as shown in the foregoing of the present disclosure, the node device identification is set at a preset position ("CC" in "ABBCCDDEEEEE"), and the node device reads the value of the "CC" position to obtain the identification of the node device indicated by the control command.
步骤S306,在控制命令对应于该节点设备的情况下,节点设备根据控制命令中的测试仪器的标识确定控制命令对应的测试仪器。Step S306: When the control command corresponds to the node device, the node device determines the test device corresponding to the control command according to the identification of the test device in the control command.
在本公开实施例中,如本公开前述示例,测试仪器的标识被设置在预设位置(“ABBCCDDEEEEE”中的“DD”),节点设备读取“DD”位置的值,获得控制命令指示的测试仪器的标识。In an embodiment of the present disclosure, as in the aforementioned example of the present disclosure, the identification of the test instrument is set at a preset position ("DD" in "ABBCCDDEEEEE"), and the node device reads the value of the "DD" position to obtain the identification of the test instrument indicated by the control command.
步骤S308,节点设备向确定出的测试仪器发送控制命令中的SCPI指令的指令内容。Step S308: The node device sends the instruction content of the SCPI instruction in the control command to the determined test instrument.
在本公开实施例中,如本公开前述示例,SCPI指令的指令内容被设置在预设位置,节点设备读取该位置的值,获得SCPI指令的指令内容。In the embodiment of the present disclosure, as in the aforementioned example of the present disclosure, the instruction content of the SCPI instruction is set at a preset position, and the node device reads the value of the position to obtain the instruction content of the SCPI instruction.
在本开实施例中,SCPI指令的指令内容包括关键字和参数(参数可选,对于设置指令而言具有参数,对于查询指令而言不包括参数)。例如,SCPI指令的指令为“SOURce 1:VOLTage:PROTection 110(设置保护电压,目标值为110)”,其中,“SOURce 1:VOLTage:PROTection”为SCPI指令的标识对应的部分(关键字),“110”为SCPI指令的参数。SCPI指令的指令为“SOURce 1:VOLTage:PROTection?(查询保护电压)”,其中,“SOURce 1:VOLTage:PROTection?”为SCPI指令的标识对应的部分(关键字),该SCPI指令的指令不含参数。In the present embodiment, the instruction content of the SCPI instruction includes keywords and parameters (parameters are optional, and parameters are included for setting instructions, but not for querying instructions). For example, the instruction of the SCPI instruction is "SOURce 1:VOLTage:PROTection 110 (set protection voltage, target value is 110)", where "SOURce 1:VOLTage:PROTection" is the part (keyword) corresponding to the identifier of the SCPI instruction, and "110" is the parameter of the SCPI instruction. The instruction of the SCPI instruction is "SOURce 1:VOLTage:PROTection?" (query protection voltage)", where "SOURce 1:VOLTage:PROTection?" is the part (keyword) corresponding to the identifier of the SCPI instruction, and the instruction of this SCPI instruction does not contain parameters.
在一些实施例中,为了控制控制名命令的执行时序,控制命令携带的信息还包括:SCPI指令的时序控制信息。示例性的,时序控制信息可设置为时延信息,指示按照该时延信息延迟执行SCPI指令;或者时序控制信息可设置为时刻信息,指示在该时刻执行SCPI指令。In some embodiments, in order to control the execution timing of the control command, the information carried by the control command also includes: timing control information of the SCPI instruction. Exemplarily, the timing control information can be set as delay information, indicating that the execution of the SCPI instruction is delayed according to the delay information; or the timing control information can be set as time information, indicating that the SCPI instruction is executed at this time.
上述方法中,节点设备根据时序控制信息向确定出的测试仪器发送控制命令中的SCPI指令的指令内容。以上述控制命令表示方式,包含时序控制信息的控制命令可表示为“指令代号|时序控制信息|SCPI指令的指令”,其中,各个部分用“|”分隔,一个示例性的控制命令表示为“30101020111|50|SOURce 1:VOLTage:PROTection?”,其表示时延50(单位根据协议,可以为毫秒等)执行。节点设备在获取到SCPI指令的指令内容后,按照规则设定50单位的计时器,在计时器超时时向相应的测试仪器发送该SCPI指令的指令内容。In the above method, the node device sends the instruction content of the SCPI instruction in the control command to the determined test instrument according to the timing control information. In the above control command representation method, the control command containing the timing control information can be expressed as "instruction code|timing control information|SCPI instruction", wherein each part is separated by "|", and an exemplary control command is expressed as "30101020111|50|SOURce 1:VOLTage:PROTection?", which indicates execution with a delay of 50 (the unit may be milliseconds, etc., according to the protocol). After obtaining the instruction content of the SCPI instruction, the node device sets a 50-unit timer according to the rule, and sends the instruction content of the SCPI instruction to the corresponding test instrument when the timer times out.
在一些实施例中,还包括:节点设备接收确定出的测试仪器响应于SCPI指令的指令内容发送的数据;节点设备生成数据包,其中,数据包携带的信息包括:指令类型的标识、测试仪器类型的标识、节点设备的标识、测试仪器的标识、SCPI指令的标识,以及该数据。In some embodiments, it also includes: the node device receives the data sent by the determined test instrument in response to the instruction content of the SCPI instruction; the node device generates a data packet, wherein the information carried by the data packet includes: an identifier of the instruction type, an identifier of the test instrument type, an identifier of the node device, an identifier of the test instrument, an identifier of the SCPI instruction, and the data.
在一些示例中,节点设备发送该数据包,如前所述,该数据包包括相应控制指令中的各类标识(即指令代号)和数据。在一些实施例中,数据包还包括控制命令的开始和结束时间戳等,本公开实施例对此不做限定和赘述。In some examples, the node device sends the data packet, which, as described above, includes various identifiers (i.e., instruction codes) and data in the corresponding control instructions. In some embodiments, the data packet also includes the start and end timestamps of the control command, etc., which are not limited or elaborated in the embodiments of the present disclosure.
在一些实施例中,对于每个控制命令,节点设备可分别发送响应该控制命令而产生的数据包。在另一些实施例中,节点设备将多个控制命令(例如一定时间内,但不限于此)对应的数据包打包后发送,在打包的数据中,包括多个前述数据包,每个数据包均包含指令导好部分和数据部分。In some embodiments, for each control command, the node device may send a data packet generated in response to the control command. In other embodiments, the node device packages and sends data packets corresponding to multiple control commands (for example, within a certain period of time, but not limited thereto), and the packaged data includes multiple aforementioned data packets, each of which includes an instruction part and a data part.
在一些实施例中,对于查询指令返回的参数值有可能是这个情形,"0.05,0.14,0.45,1.23"。因此,控制命令还可包括取值的标识。取值的标识可用2位10进制数据表示,代称为“FF”,例如,对于"0.05,0.14,0.45,1.23",当FF=04时,代表提取第4个值即1.23,其他参数值可忽略。因此,节点设备在接收到数据后,读取控制命令中的取值的标识,确定要获取的数据值,例如,前述示例中,当FF=04时,代表提取"0.05,0.14,0.45,1.23"中第4个值,即1.23。In some embodiments, the parameter value returned by the query instruction may be "0.05, 0.14, 0.45, 1.23". Therefore, the control command may also include a value identifier. The value identifier can be represented by 2-bit decimal data, referred to as "FF". For example, for "0.05, 0.14, 0.45, 1.23", when FF=04, it means extracting the fourth value, i.e., 1.23, and other parameter values can be ignored. Therefore, after receiving the data, the node device reads the value identifier in the control command to determine the data value to be obtained. For example, in the aforementioned example, when FF=04, it means extracting the fourth value in "0.05, 0.14, 0.45, 1.23", i.e., 1.23.
在一些实施例中,节点设备将数据包发送至服务器,服务器将数据包存储到实时数据库中,客户端根据在实时数据库的订阅配置,实时获取相应的数据。在一些实施例中,节点设备可直接将数据包存储至实时数据库中,本公开实施例对此不做限定。In some embodiments, the node device sends the data packet to the server, the server stores the data packet in the real-time database, and the client obtains the corresponding data in real time according to the subscription configuration in the real-time database. In some embodiments, the node device can directly store the data packet in the real-time database, which is not limited in the embodiments of the present disclosure.
本公开实施例还提供了一种测试航天器电源系统的方法,如图4所示,该方法包括步骤S401至步骤S413。The embodiment of the present disclosure also provides a method for testing a spacecraft power system, as shown in FIG. 4 , the method includes steps S401 to S413 .
步骤S401,客户端发起测试任务。Step S401: The client initiates a test task.
步骤S402,服务器根据测试任务产生控制命令或控制命令序列。Step S402: The server generates a control command or a control command sequence according to the test task.
在一些示例中,测试任务包含产生控制命令或控制命令序列的配置文件,服务器根据该配置文件生成控制命令或控制命令序列。In some examples, the test task includes a configuration file for generating a control command or a control command sequence, and the server generates the control command or the control command sequence according to the configuration file.
在一些示例中,客户端的测试任务中包含控制命令或控制命令序列。In some examples, the test task of the client includes a control command or a control command sequence.
步骤S403,服务器将产生的控制命令或控制命令序列存储至实时数据库,以供节点设备读取。Step S403: The server stores the generated control command or control command sequence in a real-time database for the node device to read.
步骤S404,节点设备在实时数据库中读取控制命令。Step S404: The node device reads the control command from the real-time database.
在本公开实施例中,控制命令互或控制命令序列被存储至实时数据库中后,可被多个节点设备读取,节点设备可实时地访问实时数据库,以实时获取控制命令或控制命令序列。In the disclosed embodiment, after the control commands or control command sequences are stored in the real-time database, they can be read by multiple node devices, and the node devices can access the real-time database in real time to obtain the control commands or control command sequences in real time.
步骤S405,对于节点设备读取到的控制命令,节点设备根据控制命令中的节点设备的标识判断控制命令是否对应于该节点设备。Step S405: For the control command read by the node device, the node device determines whether the control command corresponds to the node device according to the node device identifier in the control command.
步骤S406,在控制命令对应于该节点设备的情况下,节点设备根据控制命令中的测试仪器的标识确定控制命令对应的测试仪器。Step S406: When the control command corresponds to the node device, the node device determines the test device corresponding to the control command according to the identification of the test device in the control command.
步骤S407,节点设备向确定出的测试仪器发送控制命令中的SCPI指令的指令内容。Step S407: the node device sends the instruction content of the SCPI instruction in the control command to the determined test instrument.
步骤S408,在测试仪器有反馈数据的情况下,节点设备接收确定出的测试仪器响应于SCPI指令的指令内容发送的数据。Step S408: When the test instrument has feedback data, the node device receives the data sent by the test instrument in response to the instruction content of the SCPI instruction.
步骤S409,节点设备生成数据包。Step S409: the node device generates a data packet.
数据包携带的信息包括:相应控制命令中的指令类型的标识、测试仪器类型的标识、节点设备的标识、测试仪器的标识、SCPI指令的标识,以及该数据。The information carried by the data packet includes: an identifier of the instruction type in the corresponding control command, an identifier of the test instrument type, an identifier of the node device, an identifier of the test instrument, an identifier of the SCPI instruction, and the data.
步骤S410,节点设备发送该数据包,以被服务器所接收。Step S410: the node device sends the data packet to be received by the server.
在一些实施例中,对于每个控制命令,节点设备可分别发送响应该控制命令而产生的数据包。在另一些实施例中,节点设备将多个控制命令(例如一定时间内,但不限于此)对应的数据包打包后发送,在打包的数据中,包括多个前述数据包,每个数据包均包含指令导好部分和数据部分。In some embodiments, for each control command, the node device may send a data packet generated in response to the control command. In other embodiments, the node device packages and sends data packets corresponding to multiple control commands (for example, within a certain period of time, but not limited thereto), and the packaged data includes multiple aforementioned data packets, each of which includes an instruction part and a data part.
步骤S411,服务器接收节点设备发送的数据包。Step S411: the server receives a data packet sent by a node device.
步骤S412,服务器将数据包存储至实时数据库。Step S412: the server stores the data packet in a real-time database.
在本公开实施例中,存储的信息为数据包携带的信息,包括数据包对应控制命令中的各种标识,以及响应该控制命令所采集的数据。In the embodiment of the present disclosure, the stored information is the information carried by the data packet, including various identifiers in the control command corresponding to the data packet, and the data collected in response to the control command.
步骤S413,客户端根据订阅配置从实时数据库中获取数据并显示。Step S413: The client obtains data from the real-time database according to the subscription configuration and displays it.
在本公开实施例中,客户端可通过图像用户界面显示数据,数据的显示可参见公知技术,本公开实施例对此不做赘述。In the embodiment of the present disclosure, the client can display data through a graphical user interface. The display of data can refer to the known technology, which is not described in detail in the embodiment of the present disclosure.
关于控制命令及数据包,参见本公开前述说明,在此不作赘述。Regarding control commands and data packets, please refer to the above description of this disclosure and will not be elaborated here.
本公开还提供了一种控制命令处理装置,如图5所示,该装置包括:确定模块510,用于确定指令类型的标识、测试仪器类型的标识、节点设备的标识、测试仪器的标识、SCPI指令的标识,以及SCPI指令的指令内容。生成模块520,与确定模块510相连,用于生成控制命令,其中,该控制命令携带的信息包括:指令类型的标识、测试仪器类型的标识、节点设备的标识、测试仪器的标识、SCPI指令的标识,以及SCPI指令的指令内容。The present disclosure also provides a control command processing device, as shown in FIG5 , the device includes: a determination module 510, which is used to determine the identifier of the instruction type, the identifier of the test instrument type, the identifier of the node device, the identifier of the test instrument, the identifier of the SCPI instruction, and the instruction content of the SCPI instruction. A generation module 520, connected to the determination module 510, is used to generate a control command, wherein the information carried by the control command includes: the identifier of the instruction type, the identifier of the test instrument type, the identifier of the node device, the identifier of the test instrument, the identifier of the SCPI instruction, and the instruction content of the SCPI instruction.
在一些实施例中,确定模块510,还用于确定SCPI指令的时序控制信息,其中,生成模块520生成的控制命令携带的信息还包括时序控制信息。In some embodiments, the determination module 510 is further used to determine the timing control information of the SCPI instruction, wherein the information carried by the control command generated by the generation module 520 also includes the timing control information.
在一些实施例中,该装置还包括:发送模块530,与生成模块520相连,用于发送控制命令;接收模块540,与发送模块530相连,用于接收相应节点设备响应于控制命令发送的数据包。其中,数据包携带的信息包括:指令类型的标识、测试仪器类型的标识、节点设备的标识、测试仪器的标识、SCPI指令的标识,以及相应测试仪器响应于SCPI指令的指令内容获得的数据。存储模块550,与接收模块540相连,用于存储数据包。In some embodiments, the device further includes: a sending module 530, connected to the generating module 520, for sending a control command; a receiving module 540, connected to the sending module 530, for receiving a data packet sent by the corresponding node device in response to the control command. The information carried by the data packet includes: an identifier of the instruction type, an identifier of the test instrument type, an identifier of the node device, an identifier of the test instrument, an identifier of the SCPI instruction, and data obtained by the corresponding test instrument in response to the instruction content of the SCPI instruction. A storage module 550, connected to the receiving module 540, is used to store the data packet.
在一些实施例中,发送模块530,用于将控制命令发送至实时数据库,以使节点设备从实时数据库中获取控制命令。In some embodiments, the sending module 530 is used to send the control command to the real-time database, so that the node device obtains the control command from the real-time database.
本公开实施例还提供了另一种控制命令处理装置,应用于节点设备,节点设备关联有一个或多个测试仪器,如图6所示,该装置包括:获取模块610,用于获取控制命令,其中,控制命令携带的信息包括:指令类型的标识、测试仪器类型的标识、节点设备的标识、测试仪器的标识、SCPI指令的标识,以及SCPI指令的指令内容。判断模块620,与获取模块610相连,用于根据控制命令中的节点设备的标识判断控制命令是否对应于该节点设备。确定模块630,与判断模块620相连,用于在控制命令对应于该节点设备的情况下,根据控制命令中的测试仪器的标识确定控制命令对应的测试仪器。发送模块640,与确定模块630相连,用于向确定出的测试仪器发送控制命令中的SCPI指令的指令内容。The disclosed embodiment also provides another control command processing device, which is applied to a node device, and the node device is associated with one or more test instruments. As shown in FIG6 , the device includes: an acquisition module 610, which is used to acquire a control command, wherein the information carried by the control command includes: an identifier of the instruction type, an identifier of the test instrument type, an identifier of the node device, an identifier of the test instrument, an identifier of the SCPI instruction, and the instruction content of the SCPI instruction. A judgment module 620, which is connected to the acquisition module 610, is used to judge whether the control command corresponds to the node device according to the identifier of the node device in the control command. A determination module 630, which is connected to the judgment module 620, is used to determine the test instrument corresponding to the control command according to the identifier of the test instrument in the control command when the control command corresponds to the node device. A sending module 640, which is connected to the determination module 630, is used to send the instruction content of the SCPI instruction in the control command to the determined test instrument.
在一些实施例中,控制命令携带的信息还包括:SCPI指令的时序控制信息,其中,发送模块640,用于根据时序控制信息向确定出的测试仪器发送控制命令中的SCPI指令的指令内容。In some embodiments, the information carried by the control command further includes: timing control information of the SCPI instruction, wherein the sending module 640 is used to send the instruction content of the SCPI instruction in the control command to the determined test instrument according to the timing control information.
在一些实施例中,该装置还包括:接收模块650,用于接收确定出的测试仪器响应于SCPI指令的指令内容发送的数据。生成模块660,与接收模块650相连,用于生成数据包,其中,数据包携带的信息包括:指令类型的标识、测试仪器类型的标识、节点设备的标识、测试仪器的标识、SCPI指令的标识,以及该数据;节点设备发送该数据包。In some embodiments, the device further includes: a receiving module 650, configured to receive the data sent by the determined test instrument in response to the instruction content of the SCPI instruction. A generating module 660, connected to the receiving module 650, configured to generate a data packet, wherein the information carried by the data packet includes: an identifier of the instruction type, an identifier of the test instrument type, an identifier of the node device, an identifier of the test instrument, an identifier of the SCPI instruction, and the data; the node device sends the data packet.
在一些实施例中,获取模块610用于从实时数据库中获取控制命令。In some embodiments, the acquisition module 610 is used to acquire control commands from a real-time database.
本公开实施例还提供了一种电子设备。图7为本公开实施例提供的电子设备一种实施方式的硬件结构示意图,如图7所示,本公开实施例的电子设备710包括:至少包括但不限于:可通过系统总线相互通信连接的存储器711和处理器712。需要指出的是,图7仅示出了具有组件711-712的电子设备710,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。The embodiment of the present disclosure also provides an electronic device. FIG7 is a schematic diagram of the hardware structure of an implementation of an electronic device provided by the embodiment of the present disclosure. As shown in FIG7 , the electronic device 710 of the embodiment of the present disclosure includes: at least including but not limited to: a memory 711 and a processor 712 that can be interconnected through a system bus. It should be noted that FIG7 only shows an electronic device 710 having components 711-712, but it should be understood that it is not required to implement all the components shown, and more or fewer components may be implemented instead.
本实施例中,存储器711(即可读存储介质)包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等。在一些实施例中,存储器711可以是电子设备710的内部存储单元,例如电子设备710的硬盘或内存。在另一些实施例中,存储器711也可以是电子设备710的外部存储设备,例如该电子设备710上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。当然,存储器711还可以既包括电子设备710的内部存储单元也包括其外部存储设备。本实施例中,存储器711通常用于存储安装于电子设备710的操作系统和各类软件。此外,存储器711还可以用于暂时地存储已经输出或者将要输出的各类数据。In this embodiment, the memory 711 (i.e., a readable storage medium) includes a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., an SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 711 may be an internal storage unit of the electronic device 710, such as a hard disk or a memory of the electronic device 710. In other embodiments, the memory 711 may also be an external storage device of the electronic device 710, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 710. Of course, the memory 711 may also include both the internal storage unit of the electronic device 710 and its external storage device. In this embodiment, the memory 711 is generally used to store an operating system and various software installed on the electronic device 710. In addition, the memory 711 may also be used to temporarily store various types of data that have been output or are to be output.
处理器712在一些实施例中可以是中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器、或其他数据处理芯片。该处理器712通常用于控制电子设备710的总体操作。本实施例中,处理器712用于运行存储器711中存储的程序代码或者处理数据,例如本公开实施例的任一或多个方法。The processor 712 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip in some embodiments. The processor 712 is generally used to control the overall operation of the electronic device 710. In this embodiment, the processor 712 is used to run the program code stored in the memory 711 or process data, such as any one or more methods of the embodiments of the present disclosure.
本实施例还提供一种计算机可读存储介质,如闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘、服务器、App应用商城等等,其上存储有计算机程序,程序被处理器执行时实现相应功能。本实施例的计算机可读存储介质用于存储本公开实施例的任一或多个的程序代码,被处理器执行时实现本公开实施例的任一或多个的方法。This embodiment also provides a computer-readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a disk, an optical disk, a server, an App application store, etc., on which a computer program is stored, and the program implements the corresponding function when executed by the processor. The computer-readable storage medium of this embodiment is used to store any one or more program codes of the embodiments of the present disclosure, and implements any one or more methods of the embodiments of the present disclosure when executed by the processor.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article 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, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
上述本公开实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above-mentioned embodiments of the present disclosure are only for description and do not represent the advantages or disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本公开各个实施例所述的方法。Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present disclosure, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present disclosure.
上面结合附图对本公开的实施例进行了描述,但是本公开并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本公开的启示下,在不脱离本公开宗旨和权利要求所保护的范围情况下,还可做出很多形式,这些均属于本公开的保护之内。The embodiments of the present disclosure are described above in conjunction with the accompanying drawings, but the present disclosure is not limited to the above-mentioned specific implementation modes. The above-mentioned specific implementation modes are merely illustrative and not restrictive. Under the guidance of the present disclosure, ordinary technicians in this field can also make many forms without departing from the scope of protection of the purpose of the present disclosure and the claims, which are all within the protection of the present disclosure.
Claims (6)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110959600.0A CN113703836B (en) | 2021-08-20 | 2021-08-20 | SCPI instruction management method for spacecraft power system evaluation |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110959600.0A CN113703836B (en) | 2021-08-20 | 2021-08-20 | SCPI instruction management method for spacecraft power system evaluation |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN113703836A CN113703836A (en) | 2021-11-26 |
| CN113703836B true CN113703836B (en) | 2024-07-02 |
Family
ID=78653943
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110959600.0A Active CN113703836B (en) | 2021-08-20 | 2021-08-20 | SCPI instruction management method for spacecraft power system evaluation |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN113703836B (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114401032B (en) * | 2021-12-24 | 2023-10-27 | 中科南京移动通信与计算创新研究院 | Testing method and system for satellite communication comprehensive tester |
| CN115914326A (en) * | 2022-10-27 | 2023-04-04 | 奇瑞新能源汽车股份有限公司 | Method and device for controlling test instrument |
| CN118192959B (en) * | 2024-05-15 | 2024-08-20 | 深圳市万里眼技术有限公司 | Method for realizing control of measuring instrument, electronic equipment and measuring instrument |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112506670A (en) * | 2021-02-02 | 2021-03-16 | 上海有孚智数云创数字科技有限公司 | Multi-node automatic operation and maintenance task processing method, system and storage medium |
Family Cites Families (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100050104A1 (en) * | 2008-08-20 | 2010-02-25 | Franco Stellari | System and Method for Automatic Instrument Address Recognition |
| US8572589B2 (en) * | 2009-06-30 | 2013-10-29 | Agilent Technologies, Inc. | Programming language translator and enabling translation of machine-centric commands for controlling instrument |
| CN102004952B (en) * | 2010-11-03 | 2014-04-09 | 北京普源精电科技有限公司 | Measuring resource control system and measuring resource control method |
| CN103559296A (en) * | 2013-11-04 | 2014-02-05 | 中国电子科技集团公司第四十一研究所 | XML-based parsing method for SCPI (The Standard Commands for Programmable Instruments) |
| CN107885675B (en) * | 2017-11-23 | 2019-12-27 | 中国电子科技集团公司第四十一研究所 | Multifunctional measuring instrument program control command processing method |
| CN110928575B (en) * | 2018-09-20 | 2022-04-29 | 上海登临科技有限公司 | Multi-device synchronous control system and control method |
| CN111079916B (en) * | 2018-10-19 | 2021-01-15 | 安徽寒武纪信息科技有限公司 | Operation method, system and related product |
| CN110531653A (en) * | 2019-08-01 | 2019-12-03 | 北京搜狗科技发展有限公司 | A kind of control method, device and the device for control |
| CN111782509B (en) * | 2020-06-15 | 2022-11-29 | 西北工业大学 | Space flight automatic test method based on virtual instrument pseudo-instruction mechanism |
-
2021
- 2021-08-20 CN CN202110959600.0A patent/CN113703836B/en active Active
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112506670A (en) * | 2021-02-02 | 2021-03-16 | 上海有孚智数云创数字科技有限公司 | Multi-node automatic operation and maintenance task processing method, system and storage medium |
Non-Patent Citations (1)
| Title |
|---|
| 航天器多路射频频谱自动监测系统设计;李宏亮等;《计算机测量与控制》;第25卷(第12期);1-5 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113703836A (en) | 2021-11-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN113703836B (en) | SCPI instruction management method for spacecraft power system evaluation | |
| CN111459794A (en) | Communication network testing method, device, computer equipment and storage medium | |
| CN112255548B (en) | Battery management system testing method and system thereof | |
| CN108174405A (en) | Product test method and apparatus | |
| CN106897219B (en) | Method and device for testing stability of mobile terminal system | |
| CN112988489A (en) | Method, device, equipment and storage medium for testing radio frequency chip | |
| CN114328566A (en) | Relationship graph updating method, device, medium, equipment and generating method | |
| CN106407102B (en) | Fuzzy testing method, device and system for application program | |
| CN115858270A (en) | Domestic component functional performance application verification method and system | |
| CN113704099A (en) | Test script generation method and equipment for spacecraft power system evaluation | |
| CN110795817A (en) | Laboratory data processing method and processing system | |
| CN114371391A (en) | High-low temperature test method and device for multi-parameter Hall integrated circuit and storage medium | |
| CN108037461B (en) | Quick test system and survey test panel of two electric core battery protection shields | |
| CN110334385A (en) | Test method, device and equipment for central controller of integrated energy system | |
| CN113779328B (en) | Power supply monitoring data integration processing method, system, terminal and storage medium | |
| CN113702860A (en) | Oscilloscope waveform data analysis method for spacecraft power supply system evaluation | |
| CN112345999B (en) | Electric energy meter, load record generation method thereof and computer readable storage medium | |
| CN117517792B (en) | Automatic capacity detection device and detection method for new energy capacitor | |
| CN112965912A (en) | Interface test case generation method and device and electronic equipment | |
| CN113486077B (en) | Method for processing spacecraft power system test data by using real-time database | |
| CN113552497B (en) | Method for acquiring parameters from instrument and equipment for testing spacecraft power supply system | |
| CN207908604U (en) | A kind of electrical appliance kit detecting system | |
| CN116594376A (en) | An automated test method, system, storage medium and program product | |
| CN115623501A (en) | A method, device and system for testing consistency of a communication terminal | |
| CN115576831A (en) | A test case recommendation method, device, equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant |