[go: up one dir, main page]

CN114051027B - Acquisition method of test instrument, protocol conversion node and instrument demand node - Google Patents

Acquisition method of test instrument, protocol conversion node and instrument demand node Download PDF

Info

Publication number
CN114051027B
CN114051027B CN202111319886.2A CN202111319886A CN114051027B CN 114051027 B CN114051027 B CN 114051027B CN 202111319886 A CN202111319886 A CN 202111319886A CN 114051027 B CN114051027 B CN 114051027B
Authority
CN
China
Prior art keywords
instrument
protocol
test
node
verified
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
Application number
CN202111319886.2A
Other languages
Chinese (zh)
Other versions
CN114051027A (en
Inventor
田新雪
肖征荣
周晶
魏进武
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202111319886.2A priority Critical patent/CN114051027B/en
Publication of CN114051027A publication Critical patent/CN114051027A/en
Application granted granted Critical
Publication of CN114051027B publication Critical patent/CN114051027B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本申请公开一种测试仪表的获取方法、协议转化节点和仪表需求节点,涉及区块链技术领域。方法包括:依据第一协议转化模型、仪表需求节点发送的预设测试协议和目标测试协议,生成并广播第一训练信息至区块链网络中;依据多个仪表备选节点发送的待验证模型参数对第一协议转化模型进行调整,生成多个待验证协议转化模型;使用多个待验证协议转化模型对预设测试协议进行转化,生成多个待验证测试协议;发送多个待验证测试协议至区块链网络中,以使仪表需求节点依据预设准确率和多个待验证测试协议,从多个仪表备选节点中筛选获得仪表供应节点,仪表供应节点用于为仪表需求节点提供目标测试仪表,使测试仪表可通用化,提升测试仪表的利用率。

Figure 202111319886

The application discloses a test instrument acquisition method, a protocol conversion node and an instrument demand node, and relates to the technical field of blockchain. The method includes: generating and broadcasting the first training information to the block chain network according to the first protocol conversion model, the preset test protocol and the target test protocol sent by the meter demand node; according to the model to be verified sent by multiple meter candidate nodes The parameters are adjusted to the first protocol conversion model to generate multiple protocol conversion models to be verified; the preset test protocol is converted using multiple protocol conversion models to be verified to generate multiple test protocols to be verified; multiple test protocols to be verified are sent Into the blockchain network, so that the instrument demand node can obtain the instrument supply node from multiple instrument candidate nodes according to the preset accuracy rate and multiple test protocols to be verified. The instrument supply node is used to provide the target for the instrument demand node The test instrument makes the test instrument universal and improves the utilization rate of the test instrument.

Figure 202111319886

Description

测试仪表的获取方法、协议转化节点和仪表需求节点The acquisition method of the test instrument, the protocol conversion node and the instrument demand node

技术领域technical field

本申请涉及区块链技术领域,具体涉及一种测试仪表的获取方法、协议转化节点和仪表需求节点。The application relates to the technical field of block chain, and specifically relates to a test instrument acquisition method, a protocol conversion node and an instrument demand node.

背景技术Background technique

随着数据通信技术的快速发展,各种数据通信设备层出不穷,随之,用于数据通信设备测试的测试技术及各种测试仪表也得到快速的发展和应用。With the rapid development of data communication technology, various data communication equipment emerges in an endless stream, and subsequently, the test technology and various test instruments used for data communication equipment testing have also been rapidly developed and applied.

通常情况下,不同类型的实验室所拥有的测试仪表都价格不菲,Usually, different types of laboratories have test instruments that are expensive,

并且,测试仪表的适用场景具有特殊性,如果某个适用场景短期内无法复现,易导致实验室中的测试仪表被闲置,从而造成资源浪费。并且,由于各个厂家所制造的测试仪表使用的多是私有协议,不便于仪表的通用化,使得测试仪表无法被大规模的商用。Moreover, the application scenarios of test instruments are special. If a certain application scenario cannot be reproduced in a short period of time, it is easy to cause the test instruments in the laboratory to be idle, resulting in waste of resources. Moreover, since most of the test instruments manufactured by various manufacturers use private protocols, it is not convenient for the generalization of the instruments, so that the test instruments cannot be commercialized on a large scale.

发明内容Contents of the invention

为此,本申请提供一种测试仪表的获取方法、协议转化节点和仪表需求节点,解决如何使测试仪表通用化,以减少测试资源的浪费的问题。For this reason, the application provides a test instrument acquisition method, a protocol conversion node, and an instrument demand node to solve the problem of how to make the test instrument universal to reduce the waste of test resources.

为了实现上述目的,本申请第一方面提供一种测试仪表的获取方法,应用于区块链网络中的协议转化节点,区块链网络还包括仪表需求节点和多个仪表备选节点,方法包括:依据第一协议转化模型、仪表需求节点发送的预设测试协议和目标测试协议,生成并广播第一训练信息至区块链网络中,以使多个仪表备选节点基于第一训练信息,生成针对第一协议转化模型的待验证模型参数;其中,仪表需求节点用于使用目标测试仪表对待测试终端进行测试,预设测试协议是待测试终端使用的协议,第一协议转化模型用于对预设测试协议进行转化,以使转化后的协议与目标测试仪表使用的目标测试协议相匹配;依据多个仪表备选节点发送的待验证模型参数对第一协议转化模型进行调整,生成多个待验证协议转化模型;使用多个待验证协议转化模型对预设测试协议进行转化,生成多个待验证测试协议;发送多个待验证测试协议至区块链网络中,以使仪表需求节点依据预设准确率和多个待验证测试协议,从多个仪表备选节点中筛选获得仪表供应节点,仪表供应节点用于为仪表需求节点提供目标测试仪表。In order to achieve the above object, the first aspect of the present application provides a method for obtaining a test instrument, which is applied to a protocol conversion node in a block chain network. The block chain network also includes an instrument demand node and a plurality of instrument candidate nodes. The method includes : According to the first protocol conversion model, the preset test protocol and the target test protocol sent by the instrument demand node, generate and broadcast the first training information to the block chain network, so that multiple instrument candidate nodes are based on the first training information, Generate model parameters to be verified for the first protocol conversion model; wherein, the instrument demand node is used to use the target test instrument to test the terminal to be tested, the preset test protocol is the protocol used by the terminal to be tested, and the first protocol conversion model is used to test the terminal to be tested The preset test protocol is converted so that the converted protocol matches the target test protocol used by the target test instrument; the first protocol conversion model is adjusted according to the model parameters to be verified sent by multiple instrument candidate nodes, and multiple To-be-verified protocol conversion model; use multiple to-be-verified protocol conversion models to convert the preset test protocol to generate multiple to-be-verified test protocols; send multiple to-be-verified test protocols to the blockchain network, so that the instrument demand node according to The preset accuracy rate and multiple test protocols to be verified are selected to obtain the instrument supply node from multiple instrument candidate nodes, and the instrument supply node is used to provide the target test instrument for the instrument demand node.

在一些具体实现中,依据第一协议转化模型、仪表需求节点发送的预设测试协议和目标测试协议,生成并广播第一训练信息至区块链网络中,以使多个仪表备选节点基于第一训练信息,生成针对第一协议转化模型的待验证模型参数之前,还包括:从区块链网络中,获取仪表需求节点发送的需求信息,需求信息是经过仪表需求节点的私钥签名后的信息;使用仪表需求节点的公钥对需求信息进行验证,在确定对需求信息验证通过的情况下,对需求信息进行消息解析,获得第二训练信息,第二训练信息包括待测试终端使用的预设测试协议;依据预设测试协议查找协议数据库,确定协议数据库包括预设测试协议和第一协议转化模型。In some specific implementations, according to the first protocol conversion model, the preset test protocol and the target test protocol sent by the meter demand node, the first training information is generated and broadcast to the block chain network, so that multiple meter candidate nodes can be based on The first training information, before generating the model parameters to be verified for the first protocol conversion model, also includes: obtaining the demand information sent by the meter demand node from the blockchain network, and the demand information is signed by the private key of the meter demand node information; use the public key of the meter demand node to verify the demand information, and when it is determined that the verification of the demand information is passed, the demand information is parsed to obtain the second training information. The second training information includes the information used by the terminal to be tested. A preset test protocol; searching the protocol database according to the preset test protocol, and determining that the protocol database includes the preset test protocol and the first protocol transformation model.

在一些具体实现中,第二训练信息,还包括:奖励信息,奖励信息是依据仪表需求节点使用目标测试仪表对待测试终端进行测试获得的结果,确定对仪表供应节点发放奖励的信息;发送多个待验证测试协议至区块链网络中,以使仪表需求节点依据预设准确率和多个待验证测试协议,从多个仪表备选节点中筛选获得仪表供应节点,仪表供应节点用于为仪表需求节点提供目标测试仪表之后,还包括:从区块链网络中,获取仪表需求节点反馈的第一智能合约,第一智能合约包括奖励信息和仪表供应节点的标识;获取仪表供应节点提供的待验证模型参数;依据奖励信息、仪表供应节点提供的待验证模型参数、仪表供应节点的标识和仪表需求节点的标识,生成第二智能合约;发送第二智能合约至区块链网络中,以使仪表供应节点依据第二智能合约,为仪表需求节点提供目标测试仪表。In some specific implementations, the second training information also includes: reward information, the reward information is based on the results obtained by the meter demand node using the target test meter to test the terminal to be tested, and determines the information for issuing rewards to the meter supply node; sending multiple The test protocol to be verified is put into the blockchain network, so that the instrument demand node can obtain the instrument supply node from multiple instrument candidate nodes according to the preset accuracy rate and multiple test protocols to be verified. The instrument supply node is used to provide the instrument After the demand node provides the target test meter, it also includes: obtaining the first smart contract fed back by the meter demand node from the blockchain network, the first smart contract includes reward information and the identity of the meter supply node; Verify the model parameters; generate a second smart contract based on the reward information, the model parameters to be verified provided by the meter supply node, the identity of the meter supply node and the identity of the meter demand node; send the second smart contract to the blockchain network, so that The meter supply node provides the target test meter for the meter demand node according to the second smart contract.

在一些具体实现中,第二智能合约,还包括:目标测试仪表的使用时间信息、目标测试仪表的性能参数信息和目标测试仪表的数量信息中的至少一种。In some specific implementations, the second smart contract further includes: at least one of usage time information of the target test instrument, performance parameter information of the target test instrument, and quantity information of the target test instrument.

在一些具体实现中,从区块链网络中,获取仪表需求节点发送的需求信息之前,还包括:获得多个样本节点使用的样本测试协议,样本测试协议是私有设备使用的协议;对多个样本测试协议进行训练,获得多个样本协议转化模型,样本协议转化模型用于对样本测试协议进行转化,获得转化后的协议,转化后的协议具有通用性;将多个样本协议转化模型和多个样本测试协议存储到协议数据库,样本协议转化模型与样本测试协议一一对应。In some specific implementations, before obtaining the demand information sent by the meter demand node from the block chain network, it also includes: obtaining the sample test protocol used by multiple sample nodes, the sample test protocol is the protocol used by private equipment; The sample test protocol is trained to obtain multiple sample protocol conversion models. The sample protocol conversion model is used to convert the sample test protocol to obtain the converted protocol. The converted protocol is universal; multiple sample protocol conversion models and multiple Each sample test protocol is stored in the protocol database, and the sample protocol conversion model corresponds to the sample test protocol one by one.

在一些具体实现中,将多个样本协议转化模型和多个样本测试协议存储到协议数据库,包括:分别对多个样本测试协议进行加密,生成多个加密样本数据;分别将多个加密样本数据存储到多个预设样本存储地址;将多个样本协议转化模型和多个预设样本存储地址存储到协议数据库,样本协议转化模型与预设样本存储地址一一对应。In some specific implementations, storing multiple sample protocol conversion models and multiple sample test protocols in the protocol database includes: respectively encrypting multiple sample test protocols to generate multiple encrypted sample data; Stored in multiple preset sample storage addresses; multiple sample protocol conversion models and multiple preset sample storage addresses are stored in the protocol database, and the sample protocol conversion models are in one-to-one correspondence with the preset sample storage addresses.

在一些具体实现中,依据多个仪表备选节点发送的待验证模型参数对第一协议转化模型进行调整,生成多个待验证协议转化模型,包括:从区块链网络中,获取多个仪表备选节点发送的待验证模型参数,待验证模型参数是仪表备选节点对第一训练信息的响应参数;分别使用多个待验证模型参数对第一协议转化模型进行参数调整,获得多个待验证协议转化模型,待验证模型参数与待验证协议转化模型相对应。In some specific implementations, the first protocol conversion model is adjusted according to the model parameters to be verified sent by multiple meter candidate nodes, and multiple protocol conversion models to be verified are generated, including: obtaining multiple meters from the blockchain network The model parameters to be verified sent by the candidate node, the model parameters to be verified are the response parameters of the meter candidate node to the first training information; use multiple model parameters to be verified to adjust the parameters of the first protocol conversion model, and obtain multiple model parameters to be verified To verify the protocol conversion model, the parameters of the model to be verified correspond to the protocol conversion model to be verified.

为了实现上述目的,本申请第二方面提供一种测试仪表的获取方法,应用于区块链网络中的仪表需求节点,区块链网络还包括协议转化节点和多个仪表备选节点,方法包括:发送目标测试协议和待测试终端使用的预设测试协议至区块链网络中,以使协议转化节点依据第一协议转化模型、预设测试协议和目标测试协议,生成并广播第一训练信息至区块链网络中,以使多个仪表备选节点基于第一训练信息,生成针对第一协议转化模型的待验证模型参数,第一协议转化模型用于对预设测试协议进行转化,以使转化后的协议与目标测试仪表使用的目标测试协议相匹配,目标测试仪表用于对待测试终端进行测试;依据多个仪表备选节点发送的待验证模型参数对第一协议转化模型进行调整,生成多个待验证协议转化模型;使用多个待验证协议转化模型对预设测试协议进行转化,生成并发送多个待验证测试协议至区块链网络中,以使仪表需求节点获知多个待验证测试协议;依据预设准确率和协议转化节点反馈的多个待验证测试协议,从多个仪表备选节点中筛选获得仪表供应节点,仪表供应节点用于为仪表需求节点提供目标测试仪表。In order to achieve the above object, the second aspect of the present application provides a method for obtaining a test instrument, which is applied to the instrument demand node in the block chain network. The block chain network also includes a protocol conversion node and a plurality of instrument candidate nodes. The method includes : Send the target test protocol and the preset test protocol used by the terminal to be tested to the blockchain network, so that the protocol conversion node generates and broadcasts the first training information according to the first protocol conversion model, the preset test protocol and the target test protocol into the block chain network, so that multiple instrument candidate nodes generate model parameters to be verified for the first protocol conversion model based on the first training information, and the first protocol conversion model is used to convert the preset test protocol to Make the converted protocol match the target test protocol used by the target test instrument, the target test instrument is used to test the terminal to be tested; adjust the first protocol conversion model according to the model parameters to be verified sent by multiple instrument candidate nodes, Generate multiple protocol conversion models to be verified; use multiple protocol conversion models to be verified to convert the preset test protocol, generate and send multiple test protocols to be verified to the blockchain network, so that the instrument demand node can learn multiple Verification test protocol; according to the preset accuracy rate and multiple test protocols to be verified fed back by the protocol conversion node, the instrument supply node is obtained from multiple instrument candidate nodes, and the instrument supply node is used to provide the target test instrument for the instrument demand node.

在一些具体实现中,依据预设准确率和协议转化节点反馈的多个待验证测试协议,从多个仪表备选节点中筛选获得仪表供应节点之后,还包括:使用目标测试仪表对待测试终端进行测试,获得测试结果;依据测试结果,生成奖励信息;依据奖励信息和仪表供应节点的标识,生成并发送第一智能合约至区块链网络中,以使协议转化节点依据奖励信息、仪表供应节点提供的待验证模型参数、仪表供应节点的标识和仪表需求节点的标识,生成并发送第二智能合约至区块链网络中,以使仪表供应节点依据第二智能合约,为仪表需求节点提供目标测试仪表。In some specific implementations, after obtaining the instrument supply node from multiple instrument candidate nodes according to the preset accuracy rate and multiple test protocols to be verified fed back by the protocol conversion node, it also includes: using the target test instrument to test the terminal to be tested Test and obtain test results; generate reward information based on the test results; generate and send the first smart contract to the blockchain network based on the reward information and the identification of the meter supply node, so that the protocol conversion node can use the reward information, meter supply node The model parameters to be verified, the identification of the meter supply node and the identity of the meter demand node are provided, and the second smart contract is generated and sent to the blockchain network, so that the meter supply node provides the target for the meter demand node according to the second smart contract. Test meter.

为了实现上述目的,本申请第三方面提供一种协议转化节点,协议转化节点为区块链网络中的节点,区块链网络还包括仪表需求节点和多个仪表备选节点,其包括:生成模块,被配置为依据第一协议转化模型、仪表需求节点发送的预设测试协议和目标测试协议,生成并广播第一训练信息至区块链网络中,以使多个仪表备选节点基于第一训练信息,生成针对第一协议转化模型的待验证模型参数,其中,仪表需求节点用于使用目标测试仪表对待测试终端进行测试,预设测试协议是待测试终端使用的协议,第一协议转化模型用于对预设测试协议进行转化,以使转化后的协议与目标测试仪表使用的目标测试协议相匹配;调整模块,被配置为依据多个仪表备选节点发送的待验证模型参数对第一协议转化模型进行调整,生成多个待验证协议转化模型;转化模块,被配置为使用多个待验证协议转化模型对预设测试协议进行转化,生成多个待验证测试协议;第一发送模块,被配置为发送多个待验证测试协议至区块链网络中,以使仪表需求节点依据预设准确率和多个待验证测试协议,从多个仪表备选节点中筛选获得仪表供应节点,仪表供应节点用于为仪表需求节点提供目标测试仪表。In order to achieve the above purpose, the third aspect of the present application provides a protocol conversion node, the protocol conversion node is a node in the block chain network, the block chain network also includes a meter demand node and a plurality of meter candidate nodes, which includes: generating The module is configured to generate and broadcast the first training information to the block chain network according to the first protocol conversion model, the preset test protocol and the target test protocol sent by the meter demand node, so that multiple meter candidate nodes can be based on the first One training information, generating model parameters to be verified for the first protocol conversion model, wherein the instrument demand node is used to use the target test instrument to test the terminal to be tested, the preset test protocol is the protocol used by the terminal to be tested, and the first protocol conversion The model is used to convert the preset test protocol, so that the converted protocol matches the target test protocol used by the target test instrument; A protocol conversion model is adjusted to generate multiple protocol conversion models to be verified; the conversion module is configured to use multiple protocol conversion models to be verified to convert the preset test protocol to generate multiple test protocols to be verified; the first sending module , is configured to send multiple test protocols to be verified to the blockchain network, so that the instrument demand node can obtain the instrument supply node from a plurality of instrument candidate nodes according to the preset accuracy rate and multiple test protocols to be verified, The instrument supply node is used to provide the target test instrument for the instrument demand node.

为了实现上述目的,本申请第四方面提供一种仪表需求节点,仪表需求节点为区块链网络中的节点,区块链网络还包括协议转化节点和多个仪表备选节点,其包括:第二发送模块,被配置为发送目标测试协议和待测试终端使用的预设测试协议至区块链网络中,以使协议转化节点依据第一协议转化模型、预设测试协议和目标测试协议,生成并广播第一训练信息至区块链网络中,以使多个仪表备选节点基于第一训练信息,生成针对第一协议转化模型的待验证模型参数,第一协议转化模型用于对预设测试协议进行转化,以使转化后的协议与目标测试仪表使用的目标测试协议相匹配,目标测试仪表用于对待测试终端进行测试;依据多个仪表备选节点发送的待验证模型参数对第一协议转化模型进行调整,生成多个待验证协议转化模型;使用多个待验证协议转化模型对预设测试协议进行转化,生成并发送多个待验证测试协议至区块链网络中,以使仪表需求节点获知多个待验证测试协议;筛选模块,被配置为依据预设准确率和协议转化节点反馈的多个待验证测试协议,从多个仪表备选节点中筛选获得仪表供应节点,仪表供应节点用于为仪表需求节点提供目标测试仪表。In order to achieve the above purpose, the fourth aspect of the present application provides an instrument demand node, the instrument demand node is a node in the block chain network, the block chain network also includes a protocol conversion node and a plurality of instrument candidate nodes, which includes: The second sending module is configured to send the target test protocol and the preset test protocol used by the terminal to be tested to the block chain network, so that the protocol conversion node generates And broadcast the first training information to the block chain network, so that multiple instrument candidate nodes generate model parameters to be verified for the first protocol conversion model based on the first training information, and the first protocol conversion model is used for the preset The test protocol is converted so that the converted protocol matches the target test protocol used by the target test instrument, and the target test instrument is used to test the terminal to be tested; the first Adjust the protocol conversion model to generate multiple protocol conversion models to be verified; use multiple protocol conversion models to be verified to convert the preset test protocol, generate and send multiple test protocols to be verified to the blockchain network, so that the instrument The demand node is informed of multiple test protocols to be verified; the screening module is configured to filter and obtain the instrument supply node from multiple instrument candidate nodes based on the preset accuracy rate and the multiple test protocols to be verified fed back by the protocol conversion node, and the instrument supply node The node is used to provide the target test instrumentation for the instrumentation requirement node.

本申请中的测试仪表的获取方法、协议转化节点和仪表需求节点,通过仪表需求节点发送的预设测试协议和目标测试协议,能够明确仪表需求节点的协议转化需求;依据第一协议转化模型、仪表需求节点发送的预设测试协议和目标测试协议,生成并广播第一训练信息至区块链网络中,以使多个仪表备选节点基于第一训练信息,生成针对第一协议转化模型的待验证模型参数,其中,仪表需求节点用于使用目标测试仪表对待测试终端进行测试,预设测试协议是待测试终端使用的协议,第一协议转化模型用于对预设测试协议进行转化,以使转化后的协议与目标测试仪表使用的目标测试协议相匹配,能够使测试仪表可以通用化,扩展测试仪表的使用范围;依据多个仪表备选节点发送的待验证模型参数对第一协议转化模型进行调整,生成多个待验证协议转化模型,通过多个待验证协议转化模型可使协议转化模型更完善,在使用多个待验证协议转化模型对预设测试协议进行转化,生成多个待验证测试协议时,保证多个待验证测试协议与目标测试协议更相近;发送多个待验证测试协议至区块链网络中,以使仪表需求节点依据预设准确率和多个待验证测试协议,从多个仪表备选节点中筛选获得仪表供应节点,以使该仪表供应节点可以为仪表需求节点提供目标测试仪表,协助仪表需求节点完成对待测试终端的测试,使仪表需求节点能够利用仪表供应节点所拥有的空闲测试设备,减少测试资源的浪费,并提升测试仪表的利用率。The acquisition method of the test instrument, the protocol conversion node and the instrument demand node in this application can clarify the protocol conversion requirements of the instrument demand node through the preset test protocol and the target test protocol sent by the instrument demand node; according to the first protocol conversion model, The preset test protocol and the target test protocol sent by the instrument demand node generate and broadcast the first training information to the blockchain network, so that multiple instrument candidate nodes can generate the first protocol conversion model based on the first training information. Model parameters to be verified, wherein, the instrument demand node is used to use the target test instrument to test the terminal to be tested, the preset test protocol is the protocol used by the terminal to be tested, and the first protocol conversion model is used to convert the preset test protocol, with Matching the converted protocol with the target test protocol used by the target test instrument can make the test instrument universal and expand the scope of use of the test instrument; convert the first protocol according to the model parameters to be verified sent by multiple instrument candidate nodes The model is adjusted to generate multiple protocol conversion models to be verified. Through multiple protocol conversion models to be verified, the protocol conversion model can be improved. After using multiple protocol conversion models to be verified to convert the preset test protocol, generate multiple protocol conversion models to be verified. When verifying the test protocol, ensure that multiple test protocols to be verified are closer to the target test protocol; send multiple test protocols to be verified to the blockchain network, so that the instrument demand node can be based on the preset accuracy rate and multiple test protocols to be verified , select the instrument supply node from multiple instrument candidate nodes, so that the instrument supply node can provide the target test instrument for the instrument demand node, assist the instrument demand node to complete the test of the terminal to be tested, and enable the instrument demand node to use the instrument supply The idle test equipment owned by the node reduces the waste of test resources and improves the utilization of test instruments.

附图说明Description of drawings

附图用来提供对本公开实施例的进一步理解,并且构成说明书的一部分,与本公开的实施例一起用于解释本公开,并不构成对本公开的限制。通过参考附图对详细示例实施例进行描述,以上和其它特征和优点对本领域技术人员将变得更加显而易见。The accompanying drawings are used to provide a further understanding of the embodiments of the present disclosure, and constitute a part of the specification, and are used together with the embodiments of the present disclosure to explain the present disclosure, and do not constitute limitations to the present disclosure. The above and other features and advantages will become more apparent to those skilled in the art by describing detailed example embodiments with reference to the accompanying drawings.

图1示出本申请一实施例提供的测试仪表的获取方法的流程示意图。Fig. 1 shows a schematic flowchart of a method for obtaining a test instrument provided by an embodiment of the present application.

图2示出本申请又一实施例提供的测试仪表的获取方法的流程示意图。Fig. 2 shows a schematic flow chart of a method for acquiring a test instrument provided in another embodiment of the present application.

图3示出本申请再一实施例提供的测试仪表的获取方法的流程示意图。Fig. 3 shows a schematic flow chart of a method for acquiring a test instrument provided in yet another embodiment of the present application.

图4示出本申请实施例提供的协议转化节点的组成方框图。FIG. 4 shows a block diagram of a protocol conversion node provided by an embodiment of the present application.

图5示出本申请实施例提供的仪表需求节点的组成方框图。FIG. 5 shows a block diagram of a meter demand node provided by the embodiment of the present application.

图6示出本申请实施例提供的测试仪表的获取系统的组成方框图。Fig. 6 shows a block diagram of the composition of the test instrument acquisition system provided by the embodiment of the present application.

图7示出本申请实施例提供的测试仪表的获取系统的工作方法流程图。Fig. 7 shows a flow chart of the working method of the test instrument acquisition system provided by the embodiment of the present application.

具体实施方式Detailed ways

以下结合附图对本申请的具体实施方式进行详细说明。应当理解的是,此处所描述的具体实施方式仅用于说明和解释本申请,并不用于限制本申请。对于本领域技术人员来说,本申请可以在不需要这些具体细节中的一些细节的情况下实施。下面对实施例的描述仅仅是为了通过示出本申请的示例来提供对本申请更好的理解。The specific implementation manners of the present application will be described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementations described here are only used to illustrate and explain the present application, and are not intended to limit the present application. It will be apparent to one skilled in the art that the present application may be practiced without some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by showing examples of the present application.

为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the purpose, technical solution and advantages of the present application clearer, the implementation manners of the present application will be further described in detail below in conjunction with the accompanying drawings.

图1示出本申请一实施例提供的测试仪表的获取方法的流程示意图。该方法可应用于区块链网络中的协议转化节点,例如,该协议转化节点可以包括协议转化服务器、协议转化装置等。其中,区块链网络还包括仪表需求节点和多个仪表备选节点。Fig. 1 shows a schematic flowchart of a method for obtaining a test instrument provided by an embodiment of the present application. The method can be applied to a protocol conversion node in a blockchain network, for example, the protocol conversion node can include a protocol conversion server, a protocol conversion device, and the like. Among them, the blockchain network also includes meter demand nodes and multiple meter candidate nodes.

如图1所示,该试仪表的获取方法包括但不限于以下步骤。As shown in Fig. 1, the method for obtaining the test instrument includes but not limited to the following steps.

步骤S101,依据第一协议转化模型、仪表需求节点发送的预设测试协议和目标测试协议,生成并广播第一训练信息至区块链网络中,以使多个仪表备选节点基于第一训练信息,生成针对第一协议转化模型的待验证模型参数。Step S101, according to the first protocol conversion model, the preset test protocol and the target test protocol sent by the instrument demand node, generate and broadcast the first training information to the blockchain network, so that multiple instrument candidate nodes can be based on the first training information to generate model parameters to be verified for the first protocol conversion model.

其中,仪表需求节点用于使用目标测试仪表对待测试终端进行测试,预设测试协议是待测试终端使用的协议,第一协议转化模型用于对预设测试协议进行转化,以使转化后的协议与目标测试仪表使用的目标测试协议相匹配。Among them, the instrument demand node is used to use the target test instrument to test the terminal to be tested, the preset test protocol is the protocol used by the terminal to be tested, and the first protocol conversion model is used to convert the preset test protocol, so that the converted protocol Matches the target test protocol used by the target test instrument.

需要说明的是,每个仪表备选节点都可以根据自己所拥有的测试仪表,对第一协议转化模型进行改进,生成针对第一协议转化模型的待验证模型参数,通过该待验证模型参数对第一协议转化模型进行调整后,使用调整后的协议转化模型对测试仪表所使用的测试协议进行转化,生成的转化后的协议更适用于对待测试终端的测试,即,使转化后的协议与目标测试仪表使用的目标测试协议相匹配。It should be noted that each instrument candidate node can improve the first protocol conversion model according to its own test instruments, and generate model parameters to be verified for the first protocol conversion model. After the first protocol conversion model is adjusted, use the adjusted protocol conversion model to convert the test protocol used by the test instrument, and the converted protocol generated is more suitable for the test of the terminal to be tested, that is, the converted protocol is compatible with Match the target test protocol used by the target test instrument.

步骤S102,依据多个仪表备选节点发送的待验证模型参数对第一协议转化模型进行调整,生成多个待验证协议转化模型。Step S102, adjusting the first protocol conversion model according to the model parameters to be verified sent by multiple meter candidate nodes, and generating multiple protocol conversion models to be verified.

其中,待验证模型参数可以包括:待验证协议解析参数,和/或,待验证协议转化参数。Wherein, the model parameters to be verified may include: protocol analysis parameters to be verified, and/or protocol conversion parameters to be verified.

需要说明的是,待验证协议解析参数用于对第一协议转化模型中的协议解析部分进行更新,以使协议解析更准确;待验证协议转化参数用于对第一协议转化模型中的协议转化部分进行更新,以使转化后的协议更符合仪表备选节点所拥有的测试仪表的测试协议,并且,该转化后的协议可以满足待测试终端的测试需求。It should be noted that the protocol analysis parameters to be verified are used to update the protocol analysis part in the first protocol conversion model to make the protocol analysis more accurate; the protocol conversion parameters to be verified are used to update the protocol conversion part in the first protocol conversion model A part is updated so that the converted protocol is more in line with the test protocol of the test instrument owned by the instrument candidate node, and the converted protocol can meet the test requirements of the terminal to be tested.

步骤S103,使用多个待验证协议转化模型对预设测试协议进行转化,生成多个待验证测试协议。Step S103, transforming the preset test protocol by using multiple conversion models of the protocols to be verified to generate multiple test protocols to be verified.

其中,可以将预设测试协议输入至待验证协议转化模型进行转化,生成转化后的待验证测试协议。Wherein, the preset test protocol can be input into the protocol conversion model to be verified for conversion, and the converted test protocol to be verified can be generated.

需要说明的是,每个仪表备选节点所拥有的测试仪表不同,因此,每个仪表备选节点所提供的待验模型参数都更适应于该仪表备选节点,因此,生成的多个待验证协议转化模型也不同,对应的,将预设测试协议输入到多个待验证协议转化模型中进行转化,所获得的多个待验证测试协议也不同。但各个待验证测试协议都尽可能的接近目标测试协议,以满足待测试终端的测试需求。It should be noted that each instrument candidate node has different test instruments, so the parameters of the model to be tested provided by each instrument candidate node are more suitable for the instrument candidate node. Therefore, the generated multiple test instruments The conversion models of the verification protocols are also different. Correspondingly, the preset test protocols are input into multiple conversion models of the protocols to be verified for conversion, and the obtained multiple test protocols to be verified are also different. However, each test protocol to be verified is as close as possible to the target test protocol to meet the test requirements of the terminal to be tested.

步骤S104,发送多个待验证测试协议至区块链网络中。Step S104, sending multiple test protocols to be verified to the blockchain network.

仪表需求节点从区块链网络中,获得多个待验证测试协议后,依据预设准确率和多个待验证测试协议,从多个仪表备选节点中筛选获得仪表供应节点,仪表供应节点用于为仪表需求节点提供目标测试仪表。After the meter demand node obtains multiple test protocols to be verified from the blockchain network, according to the preset accuracy rate and multiple test protocols to be verified, it screens and obtains meter supply nodes from multiple meter candidate nodes, and the meter supply node uses To provide target test instruments for instrument demand nodes.

在本实施例中,通过仪表需求节点发送的预设测试协议和目标测试协议,能够明确仪表需求节点的协议转化需求;依据第一协议转化模型、仪表需求节点发送的预设测试协议和目标测试协议,生成并广播第一训练信息至区块链网络中,以使多个仪表备选节点基于第一训练信息,生成针对第一协议转化模型的待验证模型参数,其中,仪表需求节点用于使用目标测试仪表对待测试终端进行测试,预设测试协议是待测试终端使用的协议,第一协议转化模型用于对预设测试协议进行转化,以使转化后的协议与目标测试仪表使用的目标测试协议相匹配,能够使测试仪表可以通用化,扩展测试仪表的使用范围;依据多个仪表备选节点发送的待验证模型参数对第一协议转化模型进行调整,生成多个待验证协议转化模型,通过多个待验证协议转化模型可使协议转化模型更完善,在使用多个待验证协议转化模型对预设测试协议进行转化,生成多个待验证测试协议时,保证多个待验证测试协议与目标测试协议更相近;发送多个待验证测试协议至区块链网络中,以使仪表需求节点依据预设准确率和多个待验证测试协议,从多个仪表备选节点中筛选获得仪表供应节点,以使该仪表供应节点可以为仪表需求节点提供目标测试仪表,协助仪表需求节点完成对待测试终端的测试,使仪表需求节点能够利用仪表供应节点所拥有的空闲测试设备,减少测试资源的浪费,并提升测试仪表的利用率。In this embodiment, the protocol conversion requirements of the meter demand node can be clarified through the preset test protocol and target test protocol sent by the meter demand node; according to the first protocol conversion model, the preset test protocol and target test protocol sent by the meter demand node protocol, generating and broadcasting the first training information to the block chain network, so that multiple instrument candidate nodes can generate model parameters for the first protocol conversion model based on the first training information, wherein the instrument demand node is used for Use the target test instrument to test the terminal to be tested, the preset test protocol is the protocol used by the terminal to be tested, and the first protocol conversion model is used to convert the preset test protocol, so that the protocol after conversion is consistent with the target used by the target test instrument Matching the test protocol can make the test instrument universal and expand the scope of use of the test instrument; adjust the first protocol conversion model according to the model parameters to be verified sent by multiple instrument candidate nodes, and generate multiple protocol conversion models to be verified , the protocol conversion model can be made more perfect through multiple conversion models of protocols to be verified. When using multiple conversion models of protocols to be verified to convert the preset test protocol and generate multiple test protocols to be verified, it is guaranteed that multiple test protocols to be verified It is closer to the target test protocol; send multiple test protocols to be verified to the blockchain network, so that the instrument demand node can filter and obtain the instrument from multiple instrument candidate nodes according to the preset accuracy rate and multiple test protocols to be verified Supply nodes, so that the instrument supply node can provide the target test instrument for the instrument demand node, assist the instrument demand node to complete the test of the terminal to be tested, enable the instrument demand node to use the idle test equipment owned by the instrument supply node, and reduce the test resources. Waste, and improve the utilization of test instruments.

图2示出本申请又一实施例提供的测试仪表的获取方法的流程示意图。该方法可应用于区块链网络中的协议转化节点,例如,该协议转化节点可以包括协议转化服务器、协议转化装置等。其中,区块链网络还包括仪表需求节点和多个仪表备选节点。本实施例与上一实施例的区别在于:通过预设测试协议查找协议数据库,能够确定协议数据库中是否包括预设测试协议,以及与该预设测试协议对应的第一协议转化模型,能够确定协议转化节点是否可以为该仪表需求节点提供协议转化服务。Fig. 2 shows a schematic flow chart of a method for acquiring a test instrument provided in another embodiment of the present application. The method can be applied to a protocol conversion node in a blockchain network, for example, the protocol conversion node can include a protocol conversion server, a protocol conversion device, and the like. Among them, the blockchain network also includes meter demand nodes and multiple meter candidate nodes. The difference between this embodiment and the previous embodiment is that: by searching the protocol database through the preset test protocol, it can be determined whether the protocol database includes the preset test protocol, and the first protocol conversion model corresponding to the preset test protocol can be determined. Whether the protocol conversion node can provide the protocol conversion service for the meter demand node.

如图2所示,该试仪表的获取方法包括但不限于以下步骤。As shown in Fig. 2, the method for obtaining the test instrument includes but not limited to the following steps.

步骤S201,从区块链网络中,获取仪表需求节点发送的需求信息。Step S201, from the block chain network, obtain the demand information sent by the meter demand node.

其中,需求信息是经过仪表需求节点的私钥签名后的信息。Among them, the demand information is the information signed by the private key of the meter demand node.

例如,在仪表需求节点发送需求信息之前,仪表需求节点还可以使用预设算法对该需求信息进行加密,生成加密后的信息;然后,再使用仪表需求节点的私钥对该加密后的信息进行签名,以保证需求信息在传输的过程中的安全性。For example, before the meter demand node sends the demand information, the meter demand node can also use a preset algorithm to encrypt the demand information to generate encrypted information; then, use the private key of the meter demand node to encrypt the encrypted information Signature to ensure the security of required information during transmission.

步骤S202,使用仪表需求节点的公钥对需求信息进行验证,在确定对需求信息验证通过的情况下,对需求信息进行消息解析,获得第二训练信息。Step S202, using the public key of the meter demand node to verify the demand information, and if it is determined that the verification of the demand information is passed, perform message analysis on the demand information to obtain second training information.

其中,第二训练信息包括待测试终端使用的预设测试协议。Wherein, the second training information includes a preset test protocol used by the terminal to be tested.

例如,协议转化节点可以先使用预设算法对加密后的需求信息进行解密,生成解密后的需求信息;然后再对该需求信息的签名进行验证,在确定验证通过的情况下,才对需求信息进行消息解析,从而获得第二训练信息。For example, the protocol conversion node can first use the preset algorithm to decrypt the encrypted demand information to generate the decrypted demand information; then verify the signature of the demand information, and only verify the demand information Perform message parsing to obtain second training information.

需要说明的是,预设算法可以是仪表需求节点和协议转化节点之间预先预定的算法,该预设算法只有以上两个节点可以获知,以保证两个节点之间所传送的消息的安全性。例如,预设算法可以包括:哈希算法、对称加密算法和非对称加密算法中的至少一种。It should be noted that the preset algorithm can be a predetermined algorithm between the instrument demand node and the protocol conversion node, and the preset algorithm can only be known by the above two nodes, so as to ensure the security of the messages transmitted between the two nodes . For example, the preset algorithm may include: at least one of a hash algorithm, a symmetric encryption algorithm, and an asymmetric encryption algorithm.

步骤S203,依据预设测试协议查找协议数据库,确定协议数据库包括预设测试协议和第一协议转化模型。Step S203, searching the protocol database according to the preset test protocol, and determining that the protocol database includes the preset test protocol and the first protocol conversion model.

其中,协议数据库中可以包括多个样本协议,若某个样本协议与预设测试协议相同,则表示该协议数据库中保存有与该预设测试协议相匹配的协议转化模型(例如,第一协议转化模型),表征当前的协议转化节点可以为该仪表需求节点提供协议转化服务。Wherein, the protocol database may include a plurality of sample protocols, and if a sample protocol is the same as the preset test protocol, it means that a protocol conversion model matching the preset test protocol is stored in the protocol database (for example, the first protocol conversion model), representing that the current protocol conversion node can provide the protocol conversion service for the meter demand node.

进一步地,协议转化节点从协议数据库中提取出预设测试协议和第一协议转化模型,以方便后续处理。Further, the protocol conversion node extracts the preset test protocol and the first protocol conversion model from the protocol database to facilitate subsequent processing.

步骤S204,依据第一协议转化模型、仪表需求节点发送的预设测试协议和目标测试协议,生成并广播第一训练信息至区块链网络中,以使多个仪表备选节点基于第一训练信息,生成针对第一协议转化模型的待验证模型参数。Step S204, according to the first protocol conversion model, the preset test protocol and the target test protocol sent by the instrument demand node, generate and broadcast the first training information to the blockchain network, so that multiple instrument candidate nodes can be based on the first training information to generate model parameters to be verified for the first protocol conversion model.

步骤S205,依据多个仪表备选节点发送的待验证模型参数对第一协议转化模型进行调整,生成多个待验证协议转化模型。Step S205, adjusting the first protocol conversion model according to the model parameters to be verified sent by multiple meter candidate nodes, and generating multiple protocol conversion models to be verified.

步骤S206,使用多个待验证协议转化模型对预设测试协议进行转化,生成多个待验证测试协议。Step S206, transforming the preset test protocol by using multiple conversion models of the protocols to be verified to generate multiple test protocols to be verified.

步骤S207,发送多个待验证测试协议至区块链网络中。Step S207, sending multiple test protocols to be verified to the blockchain network.

需要说明的是,本实施例中的步骤S204~步骤S207与上一实施例中的步骤S101~步骤S104相同,在此不再赘述。It should be noted that steps S204 to S207 in this embodiment are the same as steps S101 to S104 in the previous embodiment, and will not be repeated here.

在本实施例中,通过对需求信息进行解析,获得并依据预设测试协议查找协议数据库,能够确定协议数据库中是否包括预设测试协议,以及与该预设测试协议对应的第一协议转化模型,在确定协议数据库包括预设测试协议和第一协议转化模型的情况下,可明确协议转化节点可以为该仪表需求节点提供协议转化服务。In this embodiment, by analyzing the requirement information, obtaining and searching the protocol database according to the preset test protocol, it can be determined whether the protocol database includes the preset test protocol and the first protocol conversion model corresponding to the preset test protocol , when it is determined that the protocol database includes the preset test protocol and the first protocol conversion model, it can be determined that the protocol conversion node can provide the protocol conversion service for the instrument demand node.

进一步地,依据第一协议转化模型、仪表需求节点发送的预设测试协议和目标测试协议,生成并广播第一训练信息至区块链网络中,以使多个仪表备选节点基于第一训练信息,生成针对第一协议转化模型的待验证模型参数,其中的第一协议转化模型用于对预设测试协议进行转化,以使转化后的协议与目标测试仪表使用的目标测试协议相匹配,能够使测试仪表可以通用化,扩展测试仪表的使用范围;依据多个仪表备选节点发送的待验证模型参数对第一协议转化模型进行调整,生成多个待验证协议转化模型,通过多个待验证协议转化模型可使协议转化模型更完善,在使用多个待验证协议转化模型对预设测试协议进行转化,生成多个待验证测试协议时,保证多个待验证测试协议与目标测试协议更相近;发送多个待验证测试协议至区块链网络中,以使仪表需求节点依据预设准确率和多个待验证测试协议,从多个仪表备选节点中筛选获得仪表供应节点,以使该仪表供应节点可以为仪表需求节点提供目标测试仪表,协助仪表需求节点完成对待测试终端的测试,使仪表需求节点能够利用仪表供应节点所拥有的空闲测试设备,减少测试资源的浪费,并提升测试仪表的利用率。Further, according to the first protocol conversion model, the preset test protocol and the target test protocol sent by the instrument demand node, generate and broadcast the first training information to the block chain network, so that multiple instrument candidate nodes can be based on the first training Information to generate model parameters to be verified for the first protocol conversion model, wherein the first protocol conversion model is used to convert the preset test protocol, so that the converted protocol matches the target test protocol used by the target test instrument, It can make the test instrument universal and expand the scope of use of the test instrument; adjust the first protocol conversion model according to the model parameters to be verified sent by multiple instrument candidate nodes, generate multiple protocol conversion models to be verified, and pass multiple to-be-verified model parameters The verification protocol conversion model can make the protocol conversion model more perfect. When using multiple to-be-verified protocol conversion models to convert the preset test protocol and generate multiple to-be-verified test protocols, it is guaranteed that the multiple to-be-verified test protocols are more consistent with the target test protocol. Similar; send multiple test protocols to be verified to the block chain network, so that the instrument demand node can filter and obtain the instrument supply node from multiple instrument candidate nodes according to the preset accuracy rate and multiple test protocols to be verified, so that The instrument supply node can provide the target test instrument for the instrument demand node, assist the instrument demand node to complete the test of the terminal to be tested, enable the instrument demand node to use the idle test equipment owned by the instrument supply node, reduce the waste of test resources, and improve the test Meter utilization.

本申请实施例提供了另一种可能的实现方式,其中,第二训练信息,还包括:奖励信息,奖励信息是依据仪表需求节点使用目标测试仪表对待测试终端进行测试获得的结果,确定对仪表供应节点发放奖励的信息。The embodiment of the present application provides another possible implementation, wherein the second training information also includes: reward information, and the reward information is based on the results obtained by the instrument demand node using the target test instrument to test the terminal to be tested. Information about rewards issued by supply nodes.

在执行步骤S104或步骤S207中的发送多个待验证测试协议至区块链网络中,以使仪表需求节点依据预设准确率和多个待验证测试协议,从多个仪表备选节点中筛选获得仪表供应节点,仪表供应节点用于为仪表需求节点提供目标测试仪表之后,还包括:从区块链网络中,获取仪表需求节点反馈的第一智能合约;获取仪表供应节点提供的待验证模型参数;依据奖励信息、仪表供应节点提供的待验证模型参数、仪表供应节点的标识和仪表需求节点的标识,生成第二智能合约;发送第二智能合约至区块链网络中,以使仪表供应节点依据第二智能合约,为仪表需求节点提供目标测试仪表。In the execution of step S104 or step S207, sending multiple test protocols to be verified to the block chain network, so that the instrument demand node is selected from multiple instrument candidate nodes according to the preset accuracy rate and multiple test protocols to be verified Obtain the instrument supply node, after the instrument supply node is used to provide the target test instrument for the instrument demand node, it also includes: obtaining the first smart contract fed back by the instrument demand node from the blockchain network; obtaining the model to be verified provided by the instrument supply node Parameters; generate a second smart contract based on the reward information, model parameters to be verified provided by the meter supply node, the identity of the meter supply node and the identity of the meter demand node; send the second smart contract to the blockchain network so that the meter supply According to the second smart contract, the node provides the target test instrument for the instrument demand node.

其中,第一智能合约包括奖励信息和仪表供应节点的标识。Wherein, the first smart contract includes reward information and the identification of the meter supply node.

例如,通过第一智能合约向协议转化节点发送第一奖励信息,该第一奖励信息用于奖励协议转化节点所提供的第一协议转化模型,以及使用多个仪表备选节点反馈的待验证模型参数对第一协议转化模型所进行的更新。保证协议转化节点对协议的转行准确性。For example, the first reward information is sent to the protocol conversion node through the first smart contract, the first reward information is used to reward the first protocol conversion model provided by the protocol conversion node, and the model to be verified that is fed back by multiple meter candidate nodes An update of the parameters to the first protocol transformation model. Guarantee the accuracy of the protocol conversion node's transfer to the protocol.

其中,第二智能合约,还包括:目标测试仪表的使用时间信息、目标测试仪表的性能参数信息和目标测试仪表的数量信息中的至少一种。Wherein, the second smart contract further includes: at least one of the usage time information of the target test instrument, the performance parameter information of the target test instrument and the quantity information of the target test instrument.

通过第二智能合约,可使仪表需求节点能够使用仪表供应节点所提供的目标测试仪表,并向仪表供应节点发送第二奖励信息。并且,通过第二智能合约来约束仪表需求节点对于目标测试仪表的使用时间信息(例如,3月2日~3月5日)和数量信息(例如,2台或3台等),进一步地,还可以明确目标测试仪表的性能参数信息,以使目标测试仪表更适合对待测试终端进行测试。Through the second smart contract, the meter demand node can use the target test meter provided by the meter supply node, and send the second reward information to the meter supply node. And, the usage time information (for example, March 2 to March 5) and quantity information (for example, 2 or 3, etc.) of the instrument demand node for the target test instrument are constrained by the second smart contract. Further, It is also possible to clarify the performance parameter information of the target test instrument, so that the target test instrument is more suitable for testing the terminal to be tested.

本申请实施例提供了再一种可能的实现方式,其中,在执行步骤S201中的从区块链网络中,获取仪表需求节点发送的需求信息之前,还包括:获得多个样本节点使用的样本测试协议;对多个样本测试协议进行训练,获得多个样本协议转化模型;将多个样本协议转化模型和多个样本测试协议存储到协议数据库,样本协议转化模型与样本测试协议一一对应。The embodiment of the present application provides yet another possible implementation, wherein, before performing step S201 in obtaining the demand information sent by the meter demand node from the blockchain network, it also includes: obtaining samples used by multiple sample nodes Test protocols; train multiple sample test protocols to obtain multiple sample protocol conversion models; store multiple sample protocol conversion models and multiple sample test protocols in the protocol database, and the sample protocol conversion models correspond to the sample test protocols one by one.

其中,样本测试协议是私有设备使用的协议;样本协议转化模型用于对样本测试协议进行转化,获得转化后的协议,该转化后的协议具有通用性。Among them, the sample test protocol is a protocol used by private equipment; the sample protocol conversion model is used to convert the sample test protocol to obtain a converted protocol, which is universal.

通过使用样本协议转化模型,将私有设备使用的样本测试协议与具有通用性的协议之间进行转化,能够扩展样本测试协议的适用范围,减少设备的测试成本;将多个样本协议转化模型和多个样本测试协议存储到协议数据库,以丰富协议数据库的数据,使多种不同的样本测试协议都能够通用化,扩展对私有设备的测试方式,使用转化后的协议对私有设备进行测试,保证测试的有效性的同时,提升对私有设备的测试效率。By using the sample protocol conversion model, the sample test protocol used by private equipment can be converted into a universal protocol, which can expand the scope of application of the sample test protocol and reduce the test cost of equipment; multiple sample protocol conversion models and multiple Each sample test protocol is stored in the protocol database to enrich the data in the protocol database, so that a variety of different sample test protocols can be generalized, expand the test method for private equipment, use the converted protocol to test private equipment, and ensure the test While improving the effectiveness of the test, it also improves the testing efficiency of private equipment.

在一些具体实现中,将多个样本协议转化模型和多个样本测试协议存储到协议数据库,包括:分别对多个样本测试协议进行加密,生成多个加密样本数据;分别将多个加密样本数据存储到多个预设样本存储地址;将多个样本协议转化模型和多个预设样本存储地址存储到协议数据库。In some specific implementations, storing multiple sample protocol conversion models and multiple sample test protocols in the protocol database includes: respectively encrypting multiple sample test protocols to generate multiple encrypted sample data; Store to multiple preset sample storage addresses; store multiple sample protocol conversion models and multiple preset sample storage addresses to the protocol database.

其中,样本协议转化模型与预设样本存储地址一一对应。Wherein, the sample protocol conversion model is in one-to-one correspondence with the preset sample storage addresses.

通过对多个样本测试协议进行加密,提升样本测试协议的安全性;将加密样本数据存储到预设样本存储地址,仅将预设样本存储地址存储到协议数据库中,可进一步提升加密样本数据的安全性,减少数据的泄露可能性。By encrypting multiple sample test protocols, the security of the sample test protocol is improved; the encrypted sample data is stored in the preset sample storage address, and only the preset sample storage address is stored in the protocol database, which can further improve the security of the encrypted sample data Security, reducing the possibility of data leakage.

在一些具体实现中,步骤S102或步骤S205中的依据多个仪表备选节点发送的待验证模型参数对第一协议转化模型进行调整,生成多个待验证协议转化模型还可以采用如下方式实现:从区块链网络中,获取多个仪表备选节点发送的待验证模型参数;分别使用多个待验证模型参数对第一协议转化模型进行参数调整,获得多个待验证协议转化模型,待验证模型参数与待验证协议转化模型相对应。In some specific implementations, in step S102 or step S205, the first protocol conversion model is adjusted according to the model parameters to be verified sent by multiple meter candidate nodes, and the generation of multiple protocol conversion models to be verified can also be implemented in the following manner: From the blockchain network, obtain the model parameters to be verified sent by multiple meter candidate nodes; use multiple model parameters to be verified to adjust the parameters of the first protocol conversion model, and obtain multiple protocol conversion models to be verified, to be verified The model parameters correspond to the protocol conversion model to be verified.

其中,待验证模型参数是仪表备选节点对第一训练信息的响应参数。Wherein, the model parameter to be verified is the response parameter of the instrument candidate node to the first training information.

例如,仪表备选节点根据自己拥有的测试仪表的性能参数信息,对第一训练信息中的第一协议转化模型进行调整,以使调整后的模型(即待验证协议转化模型)更适用于当前备选节点所拥有的测试仪表,并且,调整后的模型(即待验证协议转化模型)输出的待验证测试协议能够满足待测试终端的测试需求。For example, the instrument candidate node adjusts the first protocol conversion model in the first training information according to the performance parameter information of the test instrument it owns, so that the adjusted model (that is, the protocol conversion model to be verified) is more suitable for the current The test instrument owned by the candidate node, and the test protocol to be verified output by the adjusted model (that is, the conversion model of the protocol to be verified) can meet the test requirements of the terminal to be tested.

仪表备选节点在对第一协议转化模型进行调整的过程中,确定需调整的参数(即,待验证模型参数),并将该待验证模型参数发送给协议转化节点,以使协议转化节点可以获知不同的仪表备选节点对应的待验证协议转化模型,从而确定最优的协议转化模型。In the process of adjusting the first protocol conversion model, the meter candidate node determines the parameters to be adjusted (that is, the model parameters to be verified), and sends the model parameters to be verified to the protocol conversion node, so that the protocol conversion node can Know the protocol conversion models to be verified corresponding to different meter candidate nodes, so as to determine the optimal protocol conversion model.

图3示出本申请再一实施例提供的测试仪表的获取方法的流程示意图。该方法可应用于区块链网络中的仪表需求节点,例如,该协议转化节点可以包括仪表需求服务器、仪表需求装置等。其中,区块链网络还包括协议转化节点和多个仪表备选节点。Fig. 3 shows a schematic flow chart of a method for acquiring a test instrument provided in yet another embodiment of the present application. The method can be applied to meter demand nodes in the blockchain network, for example, the protocol conversion node can include a meter demand server, a meter demand device, and the like. Among them, the blockchain network also includes protocol conversion nodes and multiple meter candidate nodes.

如图3所示,该试仪表的获取方法包括但不限于以下步骤。As shown in FIG. 3 , the method for obtaining the test meter includes but is not limited to the following steps.

步骤S301,发送目标测试协议和待测试终端使用的预设测试协议至区块链网络中。Step S301, sending the target test protocol and the preset test protocol used by the terminal to be tested to the blockchain network.

其中,目标测试协议是仪表需求节点期望获得的目标测试仪表所使用的协议,仪表需求节点期望使用目标测试仪表对待测试终端进行测试,以获得对待测试终端的性能参数,从而可以准确评估待测试终端的性能。Among them, the target test protocol is the protocol used by the target test instrument that the instrument demand node expects to obtain. The instrument demand node expects to use the target test instrument to test the terminal to be tested, so as to obtain the performance parameters of the terminal to be tested, so that the terminal to be tested can be accurately evaluated performance.

协议转化节点从区块链网络中获得目标测试协议和预设测试协议后,依据第一协议转化模型、预设测试协议和目标测试协议,生成并广播第一训练信息至区块链网络中,以使多个仪表备选节点基于第一训练信息,生成针对第一协议转化模型的待验证模型参数,第一协议转化模型用于对预设测试协议进行转化,以使转化后的协议与目标测试仪表使用的目标测试协议相匹配,目标测试仪表用于对待测试终端进行测试;依据多个仪表备选节点发送的待验证模型参数对第一协议转化模型进行调整,生成多个待验证协议转化模型;使用多个待验证协议转化模型对预设测试协议进行转化,生成并发送多个待验证测试协议至区块链网络中,以使仪表需求节点获知多个待验证测试协议。After the protocol conversion node obtains the target test protocol and the preset test protocol from the blockchain network, it generates and broadcasts the first training information to the blockchain network according to the first protocol conversion model, the preset test protocol and the target test protocol, To make multiple instrument candidate nodes generate model parameters to be verified for the first protocol conversion model based on the first training information, the first protocol conversion model is used to convert the preset test protocol, so that the converted protocol is consistent with the target The target test protocol used by the test instrument matches, and the target test instrument is used to test the terminal to be tested; the first protocol conversion model is adjusted according to the model parameters to be verified sent by multiple instrument candidate nodes, and multiple protocol conversions to be verified are generated Model; use multiple to-be-verified protocol conversion models to convert preset test protocols, generate and send multiple to-be-verified test protocols to the blockchain network, so that instrument demand nodes can learn multiple to-be-verified test protocols.

步骤S302,依据预设准确率和协议转化节点反馈的多个待验证测试协议,从多个仪表备选节点中筛选获得仪表供应节点。Step S302, according to the preset accuracy rate and the multiple test protocols to be verified fed back by the protocol conversion node, select and obtain the meter supply node from a plurality of meter candidate nodes.

其中,仪表供应节点用于为仪表需求节点提供目标测试仪表。Among them, the instrument supply node is used to provide the target test instrument for the instrument demand node.

例如,可通过多个待验证测试协议分别模拟待验证测试仪表;使用多个待验证测试仪表对待测试终端进行虚拟的测试,获得多个虚拟测试结果;然后,对多个虚拟测试结果进行分析,以确定测试的准确率,当某个待验证测试协议对应的虚拟测试结果的准确率与预设准确率相同时,可确定该待验证测试协议对应的仪表备选节点为仪表供应节点。For example, the test instruments to be verified can be respectively simulated through multiple test protocols to be verified; multiple test instruments to be verified are used to perform virtual tests on the terminals to be tested to obtain multiple virtual test results; then, the multiple virtual test results are analyzed, To determine the accuracy of the test, when the accuracy of the virtual test result corresponding to a test protocol to be verified is the same as the preset accuracy rate, the instrument candidate node corresponding to the test protocol to be verified can be determined as the instrument supply node.

通过预设准确率来对多个待验证测试协议进行评价,能够体现评价的公平性,使筛选过程更准确,保证从多个仪表备选节点中筛选出的仪表供应节点,能够准确的为待测试终端提供测试服务,提升测试准确性。Evaluating multiple test protocols to be verified by preset accuracy rates can reflect the fairness of the evaluation, make the screening process more accurate, and ensure that the instrument supply nodes selected from multiple instrument candidate nodes can accurately serve the future The test terminal provides test services to improve test accuracy.

在一些具体实现中,在执行步骤S302中的依据预设准确率和协议转化节点反馈的多个待验证测试协议,从多个仪表备选节点中筛选获得仪表供应节点之后,还包括:使用目标测试仪表对待测试终端进行测试,获得测试结果;依据测试结果,生成奖励信息;依据奖励信息和仪表供应节点的标识,生成并发送第一智能合约至区块链网络中,以使协议转化节点依据奖励信息、仪表供应节点提供的待验证模型参数、仪表供应节点的标识和仪表需求节点的标识,生成并发送第二智能合约至区块链网络中,以使仪表供应节点依据第二智能合约,为仪表需求节点提供目标测试仪表。In some specific implementations, after executing step S302 in accordance with the preset accuracy rate and the multiple test protocols to be verified fed back by the protocol conversion nodes, and obtaining the instrument supply node from multiple instrument candidate nodes, it also includes: using the target The test instrument tests the terminal to be tested and obtains the test results; generates reward information based on the test results; generates and sends the first smart contract to the blockchain network based on the reward information and the identification of the meter supply node, so that the protocol conversion node can be based on Reward information, the model parameters to be verified provided by the meter supply node, the identity of the meter supply node and the identity of the meter demand node, generate and send the second smart contract to the blockchain network, so that the meter supply node according to the second smart contract, Provides target test instrumentation for instrumentation requirements nodes.

其中,可通过奖励信息对仪表供应节点进行奖励,以使仪表供应节点所拥有的目标测试仪表不被闲置,提升测试仪表的利用率;同时,还可用使仪表需求节点使用目标测试仪表对待测试终端进行测试,满足了仪表需求节点的测试需求;并且,通过智能合约的方式来实现测试仪表的使用和奖励,保障了双方的合法利益和可追溯,提升了用户的使用体验。Among them, the instrument supply node can be rewarded through the reward information, so that the target test instrument owned by the instrument supply node will not be idle, and the utilization rate of the test instrument can be improved; at the same time, the instrument demand node can also use the target test instrument to treat the test terminal The test meets the test requirements of the meter demand node; and, the use and reward of the test meter is realized through the smart contract, which guarantees the legitimate interests and traceability of both parties, and improves the user experience.

在本实施例中,通过发送目标测试协议和待测试终端使用的预设测试协议至区块链网络中,以使协议转化节点能够针对预设测试协议,确定第一协议转化模型,并获取多个仪表备选节点对于该第一协议转化模型进行改进后的待验证模型参数,使改进后的仪表转化模型更符合各个仪表备选节点所拥有的测试仪表的性能参数的同时,也可以满足待测试终端的测试需求;通过预设准确率来对协议转化节点反馈的多个待验证测试协议进行评价,能够体现评价的公平性;保证从多个仪表备选节点中筛选获得的仪表供应节点的准确性从而使仪表供应节点可以准确的为待测试终端提供测试所需的目标测试仪表,提升测试准确性。In this embodiment, by sending the target test protocol and the preset test protocol used by the terminal to be tested to the block chain network, the protocol conversion node can determine the first protocol conversion model for the preset test protocol, and obtain multiple The parameters of the model to be verified after the first protocol conversion model is improved by each instrument candidate node, so that the improved instrument conversion model is more in line with the performance parameters of the test instruments owned by each instrument candidate node, and can also meet the requirements of the test instrument to be verified. Test the test requirements of the terminal; evaluate the multiple test protocols to be verified fed back by the protocol conversion node through the preset accuracy rate, which can reflect the fairness of the evaluation; ensure the accuracy of the instrument supply node obtained from multiple instrument candidate nodes Accuracy so that the instrument supply node can accurately provide the target test instrument required for the test for the terminal to be tested, and improve the test accuracy.

图4示出本申请实施例提供的协议转化节点的组成方框图。值得说明的是,本实施方式中的协议转化节点的具体实施不局限于以上实施例,其他未说明的实施例也在本协议转化节点的保护范围之内。FIG. 4 shows a block diagram of a protocol conversion node provided by an embodiment of the present application. It is worth noting that the specific implementation of the protocol conversion node in this embodiment is not limited to the above embodiments, and other undescribed embodiments are also within the scope of protection of the protocol conversion node.

其中,协议转化节点为区块链网络中的节点,区块链网络还包括仪表需求节点和多个仪表备选节点。Among them, the protocol conversion node is a node in the blockchain network, and the blockchain network also includes a meter demand node and a plurality of meter candidate nodes.

如图4所示,该协议转化节点400包括如下模块。As shown in Fig. 4, the protocol conversion node 400 includes the following modules.

生成模块401,被配置为依据第一协议转化模型、仪表需求节点发送的预设测试协议和目标测试协议,生成并广播第一训练信息至区块链网络中,以使多个仪表备选节点基于第一训练信息,生成针对第一协议转化模型的待验证模型参数,其中,仪表需求节点用于使用目标测试仪表对待测试终端进行测试,预设测试协议是待测试终端使用的协议,第一协议转化模型用于对预设测试协议进行转化,以使转化后的协议与目标测试仪表使用的目标测试协议相匹配。The generation module 401 is configured to generate and broadcast the first training information to the block chain network according to the first protocol conversion model, the preset test protocol and the target test protocol sent by the meter demand node, so that multiple meter candidate nodes Based on the first training information, generate model parameters to be verified for the first protocol conversion model, wherein the instrument demand node is used to use the target test instrument to test the terminal to be tested, the preset test protocol is the protocol used by the terminal to be tested, the first The protocol conversion model is used to convert the preset test protocol, so that the converted protocol matches the target test protocol used by the target test instrument.

调整模块402,被配置为依据多个仪表备选节点发送的待验证模型参数对第一协议转化模型进行调整,生成多个待验证协议转化模型。The adjustment module 402 is configured to adjust the first protocol conversion model according to the model parameters to be verified sent by multiple meter candidate nodes, and generate multiple protocol conversion models to be verified.

转化模块403,被配置为使用多个待验证协议转化模型对预设测试协议进行转化,生成多个待验证测试协议。The conversion module 403 is configured to convert the preset test protocols by using multiple conversion models of the protocols to be verified to generate multiple test protocols to be verified.

第一发送模块404,被配置为发送多个待验证测试协议至区块链网络中,以使仪表需求节点依据预设准确率和多个待验证测试协议,从多个仪表备选节点中筛选获得仪表供应节点,仪表供应节点用于为仪表需求节点提供目标测试仪表。The first sending module 404 is configured to send a plurality of test protocols to be verified to the block chain network, so that the meter demand node can filter from a plurality of meter candidate nodes according to the preset accuracy rate and a plurality of test protocols to be verified The instrument supply node is obtained, and the instrument supply node is used to provide the target test instrument for the instrument demand node.

在本实施方式中,通过仪表需求节点发送的预设测试协议和目标测试协议,能够明确仪表需求节点的协议转化需求;使用生成模块依据第一协议转化模型、仪表需求节点发送的预设测试协议和目标测试协议,生成并广播第一训练信息至区块链网络中,以使多个仪表备选节点基于第一训练信息,生成针对第一协议转化模型的待验证模型参数,其中,仪表需求节点用于使用目标测试仪表对待测试终端进行测试,预设测试协议是待测试终端使用的协议,第一协议转化模型用于对预设测试协议进行转化,以使转化后的协议与目标测试仪表使用的目标测试协议相匹配,能够使测试仪表可以通用化,扩展测试仪表的使用范围;使用调整模块依据多个仪表备选节点发送的待验证模型参数对第一协议转化模型进行调整,生成多个待验证协议转化模型,通过多个待验证协议转化模型可使协议转化模型更完善,在转化模块使用多个待验证协议转化模型对预设测试协议进行转化,生成多个待验证测试协议时,保证多个待验证测试协议与目标测试协议更相近;使用第一发送模块发送多个待验证测试协议至区块链网络中,以使仪表需求节点依据预设准确率和多个待验证测试协议,从多个仪表备选节点中筛选获得仪表供应节点,以使该仪表供应节点可以为仪表需求节点提供目标测试仪表,协助仪表需求节点完成对待测试终端的测试,使仪表需求节点能够利用仪表供应节点所拥有的空闲测试设备,减少测试资源的浪费,并提升测试仪表的利用率。In this embodiment, the protocol conversion requirements of the instrument demand node can be clarified through the preset test protocol and the target test protocol sent by the instrument demand node; the use of the generation module is based on the first protocol conversion model and the preset test protocol sent by the instrument demand node and the target test protocol, generate and broadcast the first training information to the block chain network, so that multiple instrument candidate nodes can generate model parameters to be verified for the first protocol conversion model based on the first training information, wherein the instrument requirements The node is used to use the target test instrument to test the terminal to be tested, the preset test protocol is the protocol used by the terminal to be tested, and the first protocol conversion model is used to convert the preset test protocol, so that the converted protocol is consistent with the target test instrument The matching of the target test protocol used can make the test instrument universal and expand the scope of use of the test instrument; use the adjustment module to adjust the first protocol conversion model according to the model parameters to be verified sent by multiple instrument candidate nodes, and generate multiple A protocol conversion model to be verified, the protocol conversion model can be improved through multiple protocol conversion models to be verified, when the conversion module uses multiple protocol conversion models to be verified to convert the preset test protocol and generate multiple test protocols to be verified , to ensure that multiple test protocols to be verified are closer to the target test protocol; use the first sending module to send multiple test protocols to be verified to the blockchain network, so that the instrument demand node Protocol, select the instrument supply node from multiple instrument candidate nodes, so that the instrument supply node can provide the target test instrument for the instrument demand node, assist the instrument demand node to complete the test of the terminal to be tested, and enable the instrument demand node to use the instrument The idle test equipment owned by the supply node reduces the waste of test resources and improves the utilization rate of test instruments.

图5示出本申请实施例提供的仪表需求节点的组成方框图。值得说明的是,本实施方式中的仪表需求节点的具体实施不局限于以上实施例,其他未说明的实施例也在本仪表需求节点的保护范围之内。FIG. 5 shows a block diagram of a meter demand node provided by the embodiment of the present application. It is worth noting that the specific implementation of the meter demand node in this embodiment is not limited to the above embodiments, and other undescribed embodiments are also within the scope of protection of the meter demand node.

其中,仪表需求节点为区块链网络中的节点,区块链网络还包括协议转化节点和多个仪表备选节点。Among them, the instrument demand node is a node in the blockchain network, and the blockchain network also includes a protocol conversion node and multiple instrument candidate nodes.

如图5所示,该仪表需求节点500包括如下模块:第二发送模块501,被配置为发送目标测试协议和待测试终端使用的预设测试协议至区块链网络中,以使协议转化节点依据第一协议转化模型、预设测试协议和目标测试协议,生成并广播第一训练信息至区块链网络中,以使多个仪表备选节点基于第一训练信息,生成针对第一协议转化模型的待验证模型参数,第一协议转化模型用于对预设测试协议进行转化,以使转化后的协议与目标测试仪表使用的目标测试协议相匹配,目标测试仪表用于对待测试终端进行测试;依据多个仪表备选节点发送的待验证模型参数对第一协议转化模型进行调整,生成多个待验证协议转化模型;使用多个待验证协议转化模型对预设测试协议进行转化,生成并发送多个待验证测试协议至区块链网络中,以使仪表需求节点获知多个待验证测试协议;筛选模块502,被配置为依据预设准确率和协议转化节点反馈的多个待验证测试协议,从多个仪表备选节点中筛选获得仪表供应节点,仪表供应节点用于为仪表需求节点提供目标测试仪表。As shown in Figure 5, the instrument demand node 500 includes the following modules: a second sending module 501 configured to send the target test protocol and the preset test protocol used by the terminal to be tested to the block chain network, so that the protocol conversion node According to the first protocol conversion model, the preset test protocol and the target test protocol, generate and broadcast the first training information to the block chain network, so that multiple instrument candidate nodes can generate the first protocol conversion based on the first training information. The model parameters to be verified of the model, the first protocol conversion model is used to convert the preset test protocol, so that the converted protocol matches the target test protocol used by the target test instrument, and the target test instrument is used to test the terminal to be tested ; adjust the first protocol conversion model according to the model parameters to be verified sent by multiple instrument candidate nodes, generate multiple protocol conversion models to be verified; use multiple protocol conversion models to be verified to convert the preset test protocol, generate and Send multiple test protocols to be verified to the block chain network, so that the instrument demand node can learn multiple test protocols to be verified; the screening module 502 is configured to convert multiple test protocols to be verified according to the preset accuracy rate and protocol conversion node feedback The protocol is to obtain an instrument supply node from a plurality of instrument candidate nodes, and the instrument supply node is used to provide the target test instrument for the instrument demand node.

在本实施方式中,通过第二发送模块发送目标测试协议和待测试终端使用的预设测试协议至区块链网络中,以使协议转化节点能够针对预设测试协议,确定第一协议转化模型,并获取多个仪表备选节点对于该第一协议转化模型进行改进后的待验证模型参数,使改进后的仪表转化模型更符合各个仪表备选节点所拥有的测试仪表的性能参数的同时,也可以满足待测试终端的测试需求;使用筛选模块采用预设准确率来对协议转化节点反馈的多个待验证测试协议进行评价,能够体现评价的公平性;保证从多个仪表备选节点中筛选获得的仪表供应节点的准确性从而使仪表供应节点可以准确的为待测试终端提供测试所需的目标测试仪表,提升测试准确性。In this embodiment, the target test protocol and the preset test protocol used by the terminal to be tested are sent to the blockchain network through the second sending module, so that the protocol conversion node can determine the first protocol conversion model for the preset test protocol , and obtain the model parameters to be verified after the improvement of the first protocol conversion model by multiple meter candidate nodes, so that the improved meter conversion model is more in line with the performance parameters of the test meters owned by each meter candidate node, It can also meet the test requirements of the terminal to be tested; use the screening module to use the preset accuracy rate to evaluate multiple test protocols to be verified fed back by the protocol conversion node, which can reflect the fairness of the evaluation; ensure that multiple instrument candidate nodes are selected The accuracy of the obtained meter supply node is screened so that the meter supply node can accurately provide the target test meter required for the test to the terminal to be tested, thereby improving the test accuracy.

值得一提的是,本实施方式中所涉及到的各模块均为逻辑模块,在实际应用中,一个逻辑单元可以是一个物理单元,也可以是一个物理单元的一部分,还可以以多个物理单元的组合实现。此外,为了突出本申请的创新部分,本实施方式中并没有将与解决本申请所提出的技术问题关系不太密切的单元引入,但这并不表明本实施方式中不存在其它的单元。It is worth mentioning that all the modules involved in this embodiment are logical modules. In practical applications, a logical unit can be a physical unit, or a part of a physical unit, or multiple physical units. Combination of units. In addition, in order to highlight the innovative part of the present application, units that are not closely related to solving the technical problems proposed in the present application are not introduced in this embodiment, but this does not mean that there are no other units in this embodiment.

图6示出本申请实施例提供的测试仪表的获取系统的组成方框图。Fig. 6 shows a block diagram of the composition of the test instrument acquisition system provided by the embodiment of the present application.

如图6所示,该测试仪表的获取系统包括如下设备:仪表需求节点610,协议转化节点620、仪表备选节点630和待测试终端640。As shown in Figure 6, the acquisition system of the test instrument includes the following equipment: instrument demand node 610, protocol conversion node 620, instrument candidate node 630 and terminal 640 to be tested.

其中,仪表备选节点630包括:第一仪表备选节点631、第二仪表备选节点632、……、第N仪表备选节点63N。N表示仪表备选节点的数量,N为大于或等于1的整数。Wherein, the meter candidate nodes 630 include: a first meter candidate node 631 , a second meter candidate node 632 , . . . , an Nth meter candidate node 63N. N represents the number of meter candidate nodes, and N is an integer greater than or equal to 1.

仪表需求节点610:用于使用目标测试仪表对待测试终端640进行测试,其中的目标测试仪表是从N个仪表备选节点中选择的仪表供应节点(例如,第一仪表备选节点631等)所提供的仪表;并发布奖励信息给仪表供应节点,以使仪表供应节点增加额外收入,提升测试仪表的利用率。Meter demand node 610: for testing the terminal 640 to be tested using a target test meter, wherein the target test meter is selected by a meter supply node (for example, the first meter candidate node 631, etc.) selected from N meter candidate nodes Provided instruments; and publish reward information to the instrument supply node, so that the instrument supply node can increase additional income and improve the utilization rate of test instruments.

协议转化节点620:用于对不同的测试仪表所使用的协议进行转化,以使测试仪表可以通用化。例如,可根据仪表需求节点610提供的预设测试协议,使用第一协议转化模型对预设测试协议进行转化,以使转化后的协议与目标测试仪表使用的目标测试协议相匹配。并且,其中的第一协议转化模型的参数还可以根据仪表备选节点630所提供的待验证模型参数进行调整,以使第一协议转化模型更完善,使转化后的协议与目标测试协议更接近。Protocol conversion node 620: for converting the protocols used by different test instruments, so that the test instruments can be generalized. For example, according to the preset test protocol provided by the instrument demand node 610, the preset test protocol may be converted using the first protocol conversion model, so that the converted protocol matches the target test protocol used by the target test instrument. Moreover, the parameters of the first protocol conversion model can also be adjusted according to the model parameters to be verified provided by the instrument candidate node 630, so that the first protocol conversion model is more perfect, and the converted protocol is closer to the target test protocol .

仪表供应节点是从仪表备选节点630中筛选出来的节点,每个仪表备选节点都拥有处于空闲状态的测试仪表,通过将空闲状态的测试仪表提供给需要的节点进行测试,可减少测试资源的浪费,并提升测试仪表的利用率;同时,能够获得仪表需求节点610发布的奖励,降低对测试仪表的维护费用。The instrument supply node is a node selected from the instrument candidate nodes 630, and each instrument candidate node has a test instrument in an idle state, and the testing resources can be reduced by providing the test instruments in the idle state to the required nodes for testing waste, and improve the utilization rate of test instruments; at the same time, the rewards issued by the instrument demand node 610 can be obtained, and the maintenance cost of test instruments can be reduced.

图7示出本申请实施例提供的测试仪表的获取系统的工作方法流程图。如图7所示,具体包括如下步骤。Fig. 7 shows a flow chart of the working method of the test instrument acquisition system provided by the embodiment of the present application. As shown in FIG. 7 , it specifically includes the following steps.

步骤701,仪表需求节点610依据目标测试协议和待测试终端使用的预设测试协议,生成需求信息。In step 701, the meter demand node 610 generates demand information according to the target test protocol and the preset test protocol used by the terminal to be tested.

其中,目标测试协议是仪表需求节点610期望获得的目标测试仪表所使用的协议,仪表需求节点610期望使用目标测试仪表对待测试终端进行测试,以获得对待测试终端的性能参数,从而可以准确评估待测试终端的性能。Among them, the target test protocol is the protocol used by the target test instrument that the instrument demand node 610 expects to obtain. The instrument demand node 610 expects to use the target test instrument to test the terminal to be tested, so as to obtain the performance parameters of the terminal to be tested, so that it can accurately evaluate the terminal to be tested. Test the performance of the terminal.

在一些具体实现中,需求信息还可以包括奖励信息,该奖励信息用于根据目标测试仪表对待测试终端进行测试所获得的结果,确定对仪表供应节点发放奖励的信息。In some specific implementations, the demand information may also include reward information, and the reward information is used to determine the information for issuing rewards to the meter supply node according to the test results obtained by the target test meter on the terminal to be tested.

步骤702,仪表需求节点610使用自己的私钥对需求信息进行加密,生成并发送加密后的需求信息至区块链网络中,以使协议转化节点620可以获知该需求信息。In step 702, the meter demand node 610 encrypts the demand information with its own private key, generates and sends the encrypted demand information to the blockchain network, so that the protocol conversion node 620 can obtain the demand information.

步骤703,协议转化节点620从区块链网络中,获取加密后的需求信息,并使用仪表需求节点610的公钥对加密后的需求信息进行解密,获得第一训练信息;然后,依据预设测试协议查找协议数据库,确定协议数据库包括预设测试协议和第一协议转化模型;并基于预设测试协议、第一协议转化模型和目标测试协议,生成第一训练信息。Step 703, the protocol conversion node 620 obtains the encrypted demand information from the blockchain network, and uses the public key of the instrument demand node 610 to decrypt the encrypted demand information to obtain the first training information; then, according to the preset The test protocol searches the protocol database, and determines that the protocol database includes a preset test protocol and a first protocol conversion model; and generates first training information based on the preset test protocol, the first protocol conversion model and the target test protocol.

其中,第一协议转化模型用于对预设测试协议进行转化,以使转化后的协议与目标测试仪表使用的目标测试协议相匹配。Wherein, the first protocol conversion model is used to convert the preset test protocol, so that the converted protocol matches the target test protocol used by the target test instrument.

需要说明的是,协议数据库包括多个样本测试协议及其对应的样本协议转化模型。It should be noted that the protocol database includes multiple sample test protocols and their corresponding sample protocol conversion models.

例如,样本测试协议及其对应的样本协议转化模型可以采用如下方式获得:获得多个样本节点使用的样本测试协议,该样本测试协议是私有设备使用的协议;对多个样本测试协议进行训练,获得多个样本协议转化模型,该样本协议转化模型用于对样本测试协议进行转化,获得转化后的协议,该转化后的协议具有通用性。然后,将多个样本协议转化模型和多个样本测试协议存储到协议数据库。For example, the sample test protocol and its corresponding sample protocol conversion model can be obtained in the following manner: obtain sample test protocols used by multiple sample nodes, the sample test protocol is a protocol used by private equipment; train multiple sample test protocols, A plurality of sample protocol conversion models are obtained, and the sample protocol conversion model is used to convert the sample test protocol to obtain a converted protocol, and the converted protocol is universal. Then, the multiple sample protocol conversion models and the multiple sample test protocols are stored in the protocol database.

其中,样本协议转化模型与样本测试协议一一对应。Among them, the sample protocol conversion model is in one-to-one correspondence with the sample test protocol.

通过多个样本节点所提供的样本测试协议进行训练,获得多个样本协议转化模型,能够丰富协议数据库中的样本协议转化模型的数量和类别,使协议数据库中可以包括多种不同类型的协议转化模型,以适用于多种不同的私有设备的使用需求,使通过样本协议转化模型的协议转化后,所获得的转化后的协议能够通用化,扩展针对私有设备的测试仪表的适应范围,提升测试仪表的利用率。Through the training of sample test protocols provided by multiple sample nodes, multiple sample protocol conversion models can be obtained, which can enrich the number and types of sample protocol conversion models in the protocol database, so that the protocol database can include many different types of protocol conversions The model is suitable for the use requirements of a variety of private equipment, so that after the protocol conversion of the sample protocol conversion model, the converted protocol obtained can be generalized, expanding the scope of application of test instruments for private equipment, and improving testing Meter utilization.

在一些具体实现中,还可以采用如下方式对样本协议转化模型进行存储:分别对多个样本测试协议进行加密,生成多个加密样本数据;分别将多个加密样本数据存储到多个预设样本存储地址;将多个样本协议转化模型和多个预设样本存储地址存储到协议数据库。In some specific implementations, the sample protocol conversion model can also be stored in the following manner: separately encrypt multiple sample test protocols to generate multiple encrypted sample data; store multiple encrypted sample data in multiple preset samples Storage address: storing multiple sample protocol conversion models and multiple preset sample storage addresses into the protocol database.

其中,样本协议转化模型与预设样本存储地址一一对应。Wherein, the sample protocol conversion model is in one-to-one correspondence with the preset sample storage addresses.

通过对多个样本测试协议进行加密,提升样本测试协议的安全性;将加密样本数据存储到预设样本存储地址,仅将预设样本存储地址存储到协议数据库中,可进一步提升加密样本数据的安全性,减少数据的泄露可能性。By encrypting multiple sample test protocols, the security of the sample test protocol is improved; the encrypted sample data is stored in the preset sample storage address, and only the preset sample storage address is stored in the protocol database, which can further improve the security of the encrypted sample data Security, reducing the possibility of data leakage.

步骤704,协议转化节点620广播第一训练信息至区块链网络中,以使仪表备选节点630获知第一训练信息。Step 704, the protocol conversion node 620 broadcasts the first training information to the blockchain network, so that the meter candidate node 630 can learn the first training information.

其中,仪表备选节点630包括第一仪表备选节点631、第二仪表备选节点632、……、第N仪表备选节点63N。每个仪表备选节点都可以从区块链网络中,获知第一训练信息,并对其做出响应。Wherein, the meter candidate nodes 630 include a first meter candidate node 631 , a second meter candidate node 632 , . . . , an Nth meter candidate node 63N. Each meter candidate node can obtain the first training information from the blockchain network and respond to it.

步骤705,第一仪表备选节点631、第二仪表备选节点632、……、第N仪表备选节点63N分别从区块链网络中,获得第一训练信息,并对该第一训练信息进行响应。Step 705, the first meter candidate node 631, the second meter candidate node 632, ..., the Nth meter candidate node 63N respectively obtain the first training information from the block chain network, and the first training information to respond.

其中,每个仪表备选节点都会生成自己的针对第一协议转化模型的待验证模型参数。待验证模型参数用于对第一协议转化模型进行更新,以使更新后的协议转化模型能够更准确的对预设测试协议进行转化,使获得的转化后的协议更接近目标测试协议。Wherein, each meter candidate node will generate its own model parameters to be verified for the first protocol conversion model. The parameters of the model to be verified are used to update the first protocol conversion model, so that the updated protocol conversion model can more accurately convert the preset test protocol, so that the obtained converted protocol is closer to the target test protocol.

需要说明的是,每个仪表备选节点从区块链网络中获取到第一训练信息后,都会从第一训练信息中提取预设测试协议、第一协议转化模型和目标测试协议等信息,其中的第一协议转化模型也可以是可执行算法,在使用该第一协议转化模型的过程中,或执行该可执行算法的过程中,都可以对模型(或算法)的参数进行调整,以便获得最佳的参数,即每个仪表备选节点确定的待验证模型参数。从而使每个仪表备选节点生成与自己所拥有的待验证测试仪表相匹配的待验证模型参数,并且,通过待验证模型参数对第一协议转化模型进行调整后,使用调整后的模型,可以保证当前仪表备选节点所拥有的待验证测试仪表更适用于对仪表需求节点610的待测试终端进行测试,提升待验证测试仪表与待测试终端之间的匹配程度。It should be noted that after each meter candidate node obtains the first training information from the blockchain network, it will extract information such as the preset test protocol, the first protocol conversion model, and the target test protocol from the first training information. The first protocol conversion model can also be an executable algorithm, and the parameters of the model (or algorithm) can be adjusted during the process of using the first protocol conversion model or during the execution of the executable algorithm, so that Obtain the best parameters, that is, the parameters of the model to be verified determined by each instrument candidate node. Therefore, each meter candidate node generates model parameters to be verified that match its own test meter to be verified, and after adjusting the first protocol conversion model through the model parameters to be verified, the adjusted model can be used to It is ensured that the test instrument to be verified owned by the current instrument candidate node is more suitable for testing the terminal to be tested in the instrument demand node 610, and the matching degree between the test instrument to be verified and the terminal to be tested is improved.

步骤706,第一仪表备选节点631、第二仪表备选节点632、……、第N仪表备选节点63N分别将自己生成的待验证模型参数发送至区块链网络中,以使协议转化节点620获得各个仪表备选节点反馈的待验证模型参数。Step 706, the first meter candidate node 631, the second meter candidate node 632, ..., the Nth meter candidate node 63N respectively send the model parameters to be verified generated by themselves to the block chain network, so that the protocol conversion Node 620 obtains the model parameters to be verified fed back by each instrument candidate node.

步骤707,协议转化节点620依据多个仪表备选节点发送的待验证模型参数对第一协议转化模型进行调整,生成多个待验证协议转化模型;使用多个待验证协议转化模型对预设测试协议进行转化,生成多个待验证测试协议。Step 707, the protocol conversion node 620 adjusts the first protocol conversion model according to the model parameters to be verified sent by multiple meter candidate nodes, and generates multiple protocol conversion models to be verified; The protocol is converted to generate multiple test protocols to be verified.

其中,由于不同的仪表备选节点可能采用的样本数据不同,并且,不同的仪表备选节点在对样本数据进行训练的过程中,所获得的待验证模型参数也不同,因此,协议转化节点620生成的多个待验证协议转化模型也不同,对应的,将预设测试协议输入到多个待验证协议转化模型中进行转化,所获得的多个待验证测试协议也不同。但待验证测试协议都尽可能的接近目标测试协议。Wherein, since different meter candidate nodes may adopt different sample data, and different meter candidate nodes obtain different model parameters to be verified during the process of training the sample data, therefore, the protocol conversion node 620 The generated multiple conversion models of the protocols to be verified are also different. Correspondingly, the preset test protocols are input into the conversion models of the multiple protocols to be verified for conversion, and the obtained multiple test protocols to be verified are also different. But the test protocol to be verified is as close as possible to the target test protocol.

步骤708,协议转化节点620将生成的多个待验证测试协议发送至区块链网络中,以使仪表需求节点610可以从多个待验证测试协议中选取合适的测试协议。In step 708, the protocol conversion node 620 sends the generated multiple test protocols to be verified to the blockchain network, so that the meter demand node 610 can select a suitable test protocol from the multiple test protocols to be verified.

步骤709,仪表需求节点610从区块链网络中,获得协议转化节点620发送的多个待验证测试协议,并使用多个待验证测试协议模拟待验证测试仪表,对待测试终端进行测试,获得多个测试结果,依据多个测试结果,从多个待验证测试协议中筛选出目标测试协议,从而将该目标测试协议对应的节点作为仪表供应节点(例如,第一仪表备选节点631)。In step 709, the instrument demand node 610 obtains a plurality of test protocols to be verified sent by the protocol conversion node 620 from the blockchain network, and uses the plurality of test protocols to be verified to simulate the test instrument to be verified, and tests the terminals to be tested to obtain multiple According to multiple test results, a target test protocol is selected from multiple test protocols to be verified, so that the node corresponding to the target test protocol is used as an instrument supply node (for example, the first instrument candidate node 631).

步骤710,仪表需求节点610通过协议转化节点620,与仪表供应节点(即第一仪表备选节点631)签订智能合约,以使第一仪表备选节点631可以为仪表需求节点610提供目标测试仪表。Step 710, the instrument demand node 610 signs a smart contract with the instrument supply node (i.e. the first instrument candidate node 631) through the protocol conversion node 620, so that the first instrument candidate node 631 can provide the target test instrument for the instrument demand node 610 .

其中,智能合约可以包括第一智能合约和第二智能合约。第一智能合约包括:第一奖励信息和仪表供应节点(即第一仪表备选节点631)的标识;第一智能合约是仪表需求节点610和协议转化节点620之间签署的智能合约,仪表需求节点610通过第一智能合约向协议转化节点620发送第一奖励信息,该第一奖励信息用于奖励协议转化节点620所提供的第一协议转化模型,以及使用多个仪表备选节点反馈的待验证模型参数对第一协议转化模型所进行的更新。Wherein, the smart contract may include a first smart contract and a second smart contract. The first smart contract includes: the first reward information and the identification of the meter supply node (i.e. the first meter candidate node 631); the first smart contract is a smart contract signed between the meter demand node 610 and the protocol conversion node 620, and the meter demand The node 610 sends the first reward information to the protocol conversion node 620 through the first smart contract, and the first reward information is used to reward the first protocol conversion model provided by the protocol conversion node 620, and the to-be The update of the first protocol conversion model to the validation model parameters is performed.

第二智能合约是仪表需求节点610与仪表供应节点(即第一仪表备选节点631)之间签订的合约。第二智能合约包括:第二奖励信息、仪表供应节点提供的待验证模型参数、仪表供应节点(即第一仪表备选节点631)的标识和仪表需求节点610的标识,以及目标测试仪表的使用时间信息、目标测试仪表的性能参数信息和目标测试仪表的数量信息中的至少一种。The second smart contract is a contract signed between the meter demand node 610 and the meter supply node (that is, the first meter candidate node 631 ). The second smart contract includes: the second reward information, the model parameters to be verified provided by the instrument supply node, the identification of the instrument supply node (i.e. the first instrument candidate node 631) and the identification of the instrument demand node 610, and the use of the target test instrument At least one of time information, performance parameter information of the target test instrument and quantity information of the target test instrument.

通过第二智能合约,可使仪表需求节点610能够使用第一仪表备选节点631所提供的目标测试仪表,并向第一仪表备选节点631发送第二奖励信息。Through the second smart contract, the meter demand node 610 can use the target test meter provided by the first meter candidate node 631 and send the second reward information to the first meter candidate node 631 .

在一些具体实现中,仪表需求节点610还可以选择多个仪表备选节点作为仪表供应节点,以满足仪表需求节点610对测试仪表的不同需求。In some specific implementations, the instrument demand node 610 may also select multiple instrument candidate nodes as instrument supply nodes, so as to meet the different demands of the instrument demand node 610 for test instruments.

在本实施例中,通过协议转化节点能够使仪表需求节点与仪表供应节点之间签订智能合约,以使仪表供应节点可以为仪表需求节点提供合适的目标测试仪表,从而实现仪表需求节点使用该目标测试仪表对待测试终端进行测试的需求,减少测试仪表的空闲状态,使测试仪表可以被合理利用;并且,通过各个仪表备选节点提供的待验证模型参数,对协议转化节点所提供的第一协议转化模型进行更新,能够使测试仪表的私有协议可以转化为适用于待测试终端的协议,扩展了测试仪表的使用范围。同时,仪表需求节点通过协议转化节点,与仪表供应节点之间签订智能合约,能够通过智能合约的方式来实现测试仪表的使用和奖励,保障了双方的合法利益和可追溯,提升了用户的使用体验。In this embodiment, through the protocol conversion node, the smart contract can be signed between the meter demand node and the meter supply node, so that the meter supply node can provide the meter demand node with a suitable target test meter, so that the meter demand node can use the target The test instrument needs to test the terminal to be tested, reduce the idle state of the test instrument, so that the test instrument can be used reasonably; and, through the model parameters to be verified provided by each instrument candidate node, the first protocol provided by the protocol conversion node The transformation model is updated, so that the private protocol of the test instrument can be converted into a protocol suitable for the terminal to be tested, which expands the scope of use of the test instrument. At the same time, the meter demand node signs a smart contract with the meter supply node through the protocol conversion node, and can realize the use and reward of the test meter through the smart contract, which guarantees the legitimate interests and traceability of both parties, and improves the use of users experience.

可以理解的是,以上实施方式仅仅是为了说明本申请的原理而采用的示例性实施方式,然而本申请并不局限于此。对于本领域内的普通技术人员而言,在不脱离本申请的精神和实质的情况下,可以做出各种变型和改进,这些变型和改进也视为本申请的保护范围。It can be understood that the above implementations are only exemplary implementations adopted to illustrate the principles of the present application, but the present application is not limited thereto. For those skilled in the art, various modifications and improvements can be made without departing from the spirit and essence of the application, and these modifications and improvements are also regarded as the protection scope of the application.

Claims (11)

1. A method for acquiring a test instrument is applied to a protocol conversion node in a block chain network, wherein the block chain network further comprises an instrument demand node and a plurality of instrument alternative nodes, and the method comprises the following steps:
generating and broadcasting first training information to a block chain network according to a first protocol conversion model, a preset test protocol and a target test protocol which are sent by the instrument demand node, so that a plurality of instrument alternative nodes generate model parameters to be verified aiming at the first protocol conversion model based on the first training information;
the instrument requirement node is used for testing a terminal to be tested by using a target testing instrument, the preset testing protocol is a protocol used by the terminal to be tested, and the first protocol conversion model is used for converting the preset testing protocol so as to enable the converted protocol to be matched with the target testing protocol used by the target testing instrument;
adjusting the first protocol conversion model according to the parameters of the to-be-verified model sent by the instrument alternative nodes to generate a plurality of to-be-verified protocol conversion models;
converting the preset test protocol by using a plurality of protocol conversion models to be verified to generate a plurality of test protocols to be verified;
and sending a plurality of protocols to be tested to be verified to the block chain network, so that the instrument demand node screens and obtains an instrument supply node from a plurality of instrument alternative nodes according to a preset accuracy rate and the plurality of protocols to be tested, wherein the instrument supply node is used for providing the target test instrument for the instrument demand node.
2. The method according to claim 1, before generating and broadcasting first training information into a blockchain network according to the first protocol conversion model, the preset test protocol and the target test protocol sent by the meter demand node, so that the plurality of meter candidate nodes generate model parameters to be verified for the first protocol conversion model based on the first training information, further comprising:
acquiring demand information sent by the meter demand node from the block chain network, wherein the demand information is information signed by a private key of the meter demand node;
verifying the demand information by using a public key of the instrument demand node, and under the condition that the demand information is verified to be passed, performing message analysis on the demand information to obtain second training information, wherein the second training information comprises a preset testing protocol used by a terminal to be tested;
searching a protocol database according to the preset test protocol, and determining that the protocol database comprises the preset test protocol and the first protocol conversion model.
3. The method of claim 2, wherein the second training information further comprises: the reward information is information for determining to issue rewards to the instrument supply node according to a result obtained by testing the instrument demand node on the terminal to be tested by using the target test instrument;
the sending the plurality of to-be-verified test protocols to the blockchain network so that the instrument demand node obtains the instrument supply node by screening from a plurality of instrument candidate nodes according to a preset accuracy and the plurality of to-be-verified test protocols, where the instrument supply node is configured to provide the target test instrument for the instrument demand node, and the method further includes:
obtaining a first intelligent contract fed back by the instrument demand node from the blockchain network, wherein the first intelligent contract comprises the reward information and the identification of the instrument supply node;
obtaining the model parameters to be verified provided by the instrument supply node;
generating a second intelligent contract according to the reward information, the model parameter to be verified provided by the instrument supply node, the identifier of the instrument supply node and the identifier of the instrument demand node;
and sending the second intelligent contract to the block chain network, so that the instrument supply node provides the target test instrument for the instrument demand node according to the second intelligent contract.
4. The method of claim 3, wherein the second smart contract further comprises: at least one of usage time information of the target test meter, performance parameter information of the target test meter, and quantity information of the target test meter.
5. The method according to claim 2, wherein before obtaining the demand information sent by the meter demand node from the blockchain network, the method further comprises:
obtaining a sample testing protocol used by a plurality of sample nodes, the sample testing protocol being a protocol used by a proprietary device;
training a plurality of sample testing protocols to obtain a plurality of sample protocol conversion models, wherein the sample protocol conversion models are used for converting the sample testing protocols to obtain converted protocols, and the converted protocols have universality;
and storing a plurality of sample protocol conversion models and a plurality of sample testing protocols into the protocol database, wherein the sample protocol conversion models correspond to the sample testing protocols one to one.
6. The method of claim 5, wherein storing a plurality of the sample protocol conversion models and a plurality of the sample testing protocols to the protocol database comprises:
respectively encrypting the sample test protocols to generate a plurality of encrypted sample data;
respectively storing a plurality of encrypted sample data to a plurality of preset sample storage addresses;
and storing a plurality of sample protocol conversion models and a plurality of preset sample storage addresses into the protocol database, wherein the sample protocol conversion models correspond to the preset sample storage addresses one to one.
7. The method according to claim 1, wherein the adjusting the first protocol conversion model according to the model parameters to be verified sent by the multiple meter candidate nodes to generate multiple protocol conversion models to be verified comprises:
obtaining the model parameters to be verified sent by a plurality of instrument alternative nodes from the block chain network, wherein the model parameters to be verified are response parameters of the instrument alternative nodes to the first training information;
and respectively using the parameters of the model to be verified to carry out parameter adjustment on the first protocol conversion model to obtain a plurality of protocol conversion models to be verified, wherein the parameters of the model to be verified correspond to the protocol conversion models to be verified.
8. A method for acquiring a test instrument is applied to an instrument demand node in a block chain network, the block chain network further comprises a protocol conversion node and a plurality of instrument alternative nodes, and the method comprises the following steps:
sending a target test protocol and a preset test protocol used by a terminal to be tested to a block chain network, so that a protocol conversion node generates and broadcasts first training information to the block chain network according to a first protocol conversion model, the preset test protocol and the target test protocol, so that a plurality of instrument alternative nodes generate model parameters to be verified aiming at the first protocol conversion model based on the first training information, the first protocol conversion model is used for converting the preset test protocol, so that the converted protocol is matched with the target test protocol used by the target test instrument, and the target test instrument is used for testing the terminal to be tested; adjusting the first protocol conversion model according to the parameters of the to-be-verified model sent by the instrument alternative nodes to generate a plurality of to-be-verified protocol conversion models; converting the preset test protocol by using the plurality of protocol conversion models to be verified, generating and sending a plurality of test protocols to be verified to the block chain network, so that the instrument demand node can acquire the plurality of test protocols to be verified;
and screening instrument supply nodes from a plurality of instrument alternative nodes according to a preset accuracy and a plurality of protocols to be verified fed back by the protocol conversion node, wherein the instrument supply nodes are used for providing the target test instrument for the instrument demand node.
9. The method according to claim 8, wherein after the protocol to be tested is screened from the plurality of meter candidate nodes according to the predetermined accuracy and the plurality of protocols to be tested fed back from the protocol conversion node, the method further comprises:
testing the terminal to be tested by using the target testing instrument to obtain a testing result;
generating reward information according to the test result;
and generating and sending a first intelligent contract to the blockchain network according to the reward information and the identifier of the instrument supply node, so that the protocol conversion node generates and sends a second intelligent contract to the blockchain network according to the reward information, the model parameter to be verified provided by the instrument supply node, the identifier of the instrument supply node and the identifier of the instrument demand node, and the instrument supply node provides the target test instrument for the instrument demand node according to the second intelligent contract.
10. A protocol translation node, the protocol translation node being a node in a blockchain network, the blockchain network further comprising a meter demand node and a plurality of meter alternative nodes, comprising:
the generating module is configured to generate and broadcast first training information into a block chain network according to a first protocol conversion model, a preset testing protocol and a target testing protocol, wherein the preset testing protocol and the target testing protocol are sent by the instrument demand node, so that a plurality of instrument alternative nodes generate model parameters to be verified aiming at the first protocol conversion model based on the first training information, the instrument demand node is used for testing a terminal to be tested by using a target testing instrument, the preset testing protocol is used by the terminal to be tested, and the first protocol conversion model is used for converting the preset testing protocol so that the converted protocol is matched with the target testing protocol used by the target testing instrument;
the adjusting module is configured to adjust the first protocol conversion model according to the parameters of the to-be-verified model sent by the instrument candidate nodes to generate a plurality of to-be-verified protocol conversion models;
the conversion module is configured to convert the preset test protocol by using the plurality of protocol conversion models to be verified to generate a plurality of test protocols to be verified;
the first sending module is configured to send the plurality of protocols to be tested to be verified to the blockchain network, so that the instrument demand node screens and obtains an instrument supply node from the plurality of instrument candidate nodes according to a preset accuracy rate and the plurality of protocols to be tested, and the instrument supply node is used for providing the target test instrument for the instrument demand node.
11. A meter demand node, the meter demand node being a node in a blockchain network, the blockchain network further comprising a protocol translation node and a plurality of meter candidate nodes, comprising:
a second sending module, configured to send a target test protocol and a preset test protocol used by a terminal to be tested to a blockchain network, so that the protocol conversion node generates and broadcasts first training information to the blockchain network according to a first protocol conversion model, the preset test protocol and the target test protocol, so that a plurality of instrument candidate nodes generate model parameters to be verified for the first protocol conversion model based on the first training information, the first protocol conversion model is used for converting the preset test protocol, so that the converted protocol matches the target test protocol used by the target test instrument, and the target test instrument is used for testing the terminal to be tested; adjusting the first protocol conversion model according to the parameters of the to-be-verified model sent by the instrument alternative nodes to generate a plurality of to-be-verified protocol conversion models; converting the preset test protocol by using the plurality of protocol conversion models to be verified, generating and sending a plurality of test protocols to be verified to the block chain network, so that the instrument demand node can acquire the plurality of test protocols to be verified;
and the screening module is configured to screen and obtain an instrument supply node from the instrument candidate nodes according to a preset accuracy and the plurality of to-be-verified test protocols fed back by the protocol conversion node, wherein the instrument supply node is used for providing the target test instrument for the instrument demand node.
CN202111319886.2A 2021-11-09 2021-11-09 Acquisition method of test instrument, protocol conversion node and instrument demand node Active CN114051027B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111319886.2A CN114051027B (en) 2021-11-09 2021-11-09 Acquisition method of test instrument, protocol conversion node and instrument demand node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111319886.2A CN114051027B (en) 2021-11-09 2021-11-09 Acquisition method of test instrument, protocol conversion node and instrument demand node

Publications (2)

Publication Number Publication Date
CN114051027A CN114051027A (en) 2022-02-15
CN114051027B true CN114051027B (en) 2023-04-18

Family

ID=80207602

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111319886.2A Active CN114051027B (en) 2021-11-09 2021-11-09 Acquisition method of test instrument, protocol conversion node and instrument demand node

Country Status (1)

Country Link
CN (1) CN114051027B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110046091A (en) * 2019-03-12 2019-07-23 阿里巴巴集团控股有限公司 A kind of automatic test approach and device
CN110572480A (en) * 2019-10-14 2019-12-13 腾讯科技(深圳)有限公司 method, device and equipment for realizing calibration of test equipment
CN111181796A (en) * 2018-11-09 2020-05-19 北京天德科技有限公司 Block chain consensus protocol testing method and system based on enabler
CN111176970A (en) * 2018-11-09 2020-05-19 北京天德科技有限公司 A blockchain testing architecture and system
CN112035357A (en) * 2020-08-31 2020-12-04 平安医疗健康管理股份有限公司 Intelligent test method, device, equipment and storage medium
CN112231219A (en) * 2020-10-22 2021-01-15 中国平安人寿保险股份有限公司 Automatic test monitoring method, device, equipment and storage medium
CN112634047A (en) * 2020-12-30 2021-04-09 平安证券股份有限公司 Foreign exchange transaction simulation test method and device, computer equipment and storage medium
CN113535578A (en) * 2021-07-28 2021-10-22 展讯半导体(成都)有限公司 CTS (clear to send) testing method, device and testing equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7673179B2 (en) * 2005-02-07 2010-03-02 Lsi Corporation Online testing unification system with remote test automation technology
CA2693243A1 (en) * 2009-02-17 2010-08-17 Manta Test Systems Inc. System and method for performing automated testing of protective relay equipment
US8693351B2 (en) * 2011-07-26 2014-04-08 Litepoint Corporation System and method for deterministic testing of packet error rate in electronic devices
EP3676774A2 (en) * 2018-08-06 2020-07-08 MyOmega Systems GmbH Pallet management system
US10877875B2 (en) * 2019-03-05 2020-12-29 Verizon Patent And Licensing Inc. Systems and methods for automated programmatic test generation and software validation
US20210303427A1 (en) * 2020-03-26 2021-09-30 Rohde & Schwarz Gmbh & Co. Kg System for testing a blockchain enabled device-under-test

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111181796A (en) * 2018-11-09 2020-05-19 北京天德科技有限公司 Block chain consensus protocol testing method and system based on enabler
CN111176970A (en) * 2018-11-09 2020-05-19 北京天德科技有限公司 A blockchain testing architecture and system
CN110046091A (en) * 2019-03-12 2019-07-23 阿里巴巴集团控股有限公司 A kind of automatic test approach and device
CN110572480A (en) * 2019-10-14 2019-12-13 腾讯科技(深圳)有限公司 method, device and equipment for realizing calibration of test equipment
CN112035357A (en) * 2020-08-31 2020-12-04 平安医疗健康管理股份有限公司 Intelligent test method, device, equipment and storage medium
CN112231219A (en) * 2020-10-22 2021-01-15 中国平安人寿保险股份有限公司 Automatic test monitoring method, device, equipment and storage medium
CN112634047A (en) * 2020-12-30 2021-04-09 平安证券股份有限公司 Foreign exchange transaction simulation test method and device, computer equipment and storage medium
CN113535578A (en) * 2021-07-28 2021-10-22 展讯半导体(成都)有限公司 CTS (clear to send) testing method, device and testing equipment

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Hsin-Wen Ting et.al.. A Digital Testing Strategy for Characterizing an Analog Circuit Block.IEEE Transactions on Instrumentation and Measurement.2016,全文. *
李志涛 ; .功能测试用例设计的研究与分析.汽车电器.2015,(12),全文. *
王文俊.基于区块链的汽车维修信息服务系统设计与实现.《中国优秀硕士学位论文全文数据库 (信息科技辑)》.2021,全文. *

Also Published As

Publication number Publication date
CN114051027A (en) 2022-02-15

Similar Documents

Publication Publication Date Title
CN114731274B (en) Distributed random gradient descent security association
Abadi et al. Models and proofs of protocol security: A progress report
KR101017312B1 (en) Method and apparatus for conformance test of secure access protocol in access point
CN111224834B (en) Simulation test method, simulation test device, server and storage medium
CN109067938B (en) A method and device for testing DNS server
CN113472883B (en) Method, device, equipment and storage medium for storing data based on block chain
CN108628743A (en) Applied program testing method, device, equipment and storage medium
CN106229007B (en) HDCP KEY sending method, burning method and device
CN110519268A (en) Voting method, device, equipment, system and storage medium based on block chain
Blanc et al. Benchmarking of lightweight cryptographic algorithms for wireless IoT networks
CN111143650B (en) Method, device, medium and electronic device for obtaining page data
CN109327479A (en) Encrypt recognition methods and the device of stream
Badertscher et al. A constructive perspective on signcryption security
CN117354006A (en) A penetration testing method and system
Mladenov et al. Formal verification of the implementation of the MQTT protocol in IoT devices
CN105117344B (en) A kind of Interface integration method of testing and system based on PB
CN112927026A (en) Coupon processing method and device, electronic equipment and computer storage medium
CN114051027B (en) Acquisition method of test instrument, protocol conversion node and instrument demand node
CN117155570B (en) Ciphertext replacement method, storage medium and electronic device
CN116506227B (en) Data processing method, device, computer equipment and storage medium
Meng et al. AFLNet Five Years Later: On Coverage-Guided Protocol Fuzzing
CN116055369A (en) Broadband sensor network protocol consistency detection system and method
CN107733969A (en) Website simulation login method, device, service end and readable storage medium storing program for executing
CN115694865A (en) Method and device for processing extranet access
Arkko et al. Do Large Language Models Dream of Sockets?

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
GR01 Patent grant