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
node
test
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

The application discloses an acquisition method of a test instrument, a protocol conversion node and an instrument demand node, and relates to the technical field of block chains. 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 an instrument demand node; 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 a 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 test protocols 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 candidate nodes according to a preset accuracy and the plurality of test protocols to be verified, wherein the instrument supply node is used for providing a target test instrument for the instrument demand node, so that the test instrument can be generalized, and the utilization rate of the test instrument is improved.

Description

Acquisition method of test instrument, protocol conversion node and instrument demand node
Technical Field
The application relates to the technical field of block chains, in particular to an acquisition method of a test instrument, a protocol conversion node and an instrument demand node.
Background
With the rapid development of data communication technology, various data communication devices are in the endlessly, and accordingly, testing technologies and various testing instruments for testing data communication devices are rapidly developed and applied.
Often, the test meters owned by different types of laboratories are expensive,
moreover, the application scenes of the test instruments have particularity, and if a certain application scene cannot be reproduced in a short period, the test instruments in a laboratory are easy to idle, so that resource waste is caused. Moreover, since most of the test instruments manufactured by various manufacturers use proprietary protocols, the universal use of the instruments is inconvenient, so that the test instruments cannot be commercialized in a large scale.
Disclosure of Invention
Therefore, the application provides an acquisition method of a test instrument, a protocol conversion node and an instrument demand node, and solves the problem of how to generalize the test instrument so as to reduce the waste of test resources.
In order to achieve the above object, a first aspect of the present application provides a method for acquiring a test instrument, which is applied to a protocol conversion node in a blockchain network, where the blockchain network further includes an instrument demand node and a plurality of instrument alternative nodes, and the method includes: 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 instrument demand nodes, so that a plurality of instrument alternative nodes generate model parameters to be verified for the first protocol conversion model based on the first training information; the system comprises an instrument demand node, a first protocol conversion model and a target test instrument, wherein the instrument demand node is used for testing a terminal to be tested by using the target test instrument, a preset test protocol is a protocol used by the terminal to be tested, and the first protocol conversion model is used for converting the preset test protocol so as to enable the converted protocol to be matched with the target test protocol used by the target test 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 a 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 test protocols to be verified to the block chain network, so that the instrument demand node screens and obtains an instrument supply node from the plurality of instrument alternative nodes according to the preset accuracy and the plurality of test protocols to be verified, wherein the instrument supply node is used for providing a target test instrument for the instrument demand node.
In some specific implementations, 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 sent by an instrument demand node, so that before a plurality of instrument candidate nodes generate a to-be-verified model parameter for the first protocol conversion model based on the first training information, the method further includes: acquiring demand information sent by an instrument demand node from a block chain network, wherein the demand information is information signed by a private key of the instrument demand node; verifying the requirement information by using a public key of the instrument requirement node, and under the condition that the requirement information is verified to be passed, performing message analysis on the requirement information to obtain second training information, wherein the second training information comprises a preset test protocol used by a terminal to be tested; and searching a protocol database according to the preset test protocol, and determining that the protocol database comprises the preset test protocol and a first protocol conversion model.
In some implementations, the second training information further includes: the reward information is the result obtained by testing the terminal to be tested by using the target test instrument according to the instrument demand node, and the information for issuing rewards to the instrument supply node is determined; sending a plurality of test protocols to be verified to a block chain network, so that an instrument demand node screens and obtains an instrument supply node from a plurality of instrument candidate nodes according to a preset accuracy and the plurality of test protocols to be verified, wherein the instrument supply node is used for providing a target test instrument for the instrument demand node, and the method further comprises the following steps: acquiring a first intelligent contract fed back by a meter demand node from a block chain network, wherein the first intelligent contract comprises reward information and an identifier of a meter supply node; obtaining a model parameter to be verified provided by an 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 a target test instrument for the instrument demand node according to the second intelligent contract.
In some implementations, the second intelligent contract further includes: at least one of usage time information of the target test meter, performance parameter information of the target test meter, and number information of the target test meter.
In some specific implementations, before acquiring the requirement information sent by the meter requirement node from the blockchain network, the method further includes: obtaining a sample testing protocol used by a plurality of sample nodes, wherein the sample testing protocol is a protocol used by private equipment; 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 the plurality of sample protocol conversion models and the plurality of sample testing protocols into a protocol database, wherein the sample protocol conversion models correspond to the sample testing protocols one to one.
In some implementations, storing the plurality of sample protocol conversion models and the plurality of sample testing protocols to a protocol database includes: respectively encrypting the plurality of 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 a protocol database, wherein the sample protocol conversion models correspond to the preset sample storage addresses one to one.
In some specific implementations, the adjusting the first protocol conversion model according to the parameters of the to-be-verified model sent by the multiple instrument candidate nodes to generate multiple to-be-verified protocol conversion models includes: obtaining model parameters to be verified sent by a plurality of instrument alternative nodes from a block chain network, wherein the model parameters to be verified are response parameters of the instrument alternative nodes to first training information; and respectively using the parameters of the plurality of models 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 models to be verified correspond to the protocol conversion models to be verified.
In order to achieve the above object, a second aspect of the present application provides a method for acquiring a test meter, which is applied to a meter demand node in a blockchain network, where the blockchain network further includes a protocol conversion node and a plurality of meter candidate nodes, and the method includes: sending a target test protocol and a preset test protocol used by a terminal to be tested into a block chain network, so that a protocol conversion node generates and broadcasts first training information into 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 a 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 a preset test protocol by using a plurality of protocol conversion models to be verified, generating and sending a plurality of test protocols to be verified to a block chain network, so that a meter demand node can acquire the plurality of test protocols to be verified; and screening and obtaining instrument supply nodes from a plurality of instrument alternative nodes according to a plurality of to-be-verified test protocols fed back by the preset accuracy and the protocol conversion nodes, wherein the instrument supply nodes are used for providing target test instruments for instrument demand nodes.
In some specific implementations, after the instrument supply node is obtained by screening from the instrument candidate nodes according to a preset accuracy and a plurality of protocols to be tested fed back by the protocol conversion node, the method further includes: testing the terminal to be tested by using the target test instrument to obtain a test result; generating reward information according to the test result; and generating and sending a first intelligent contract to the block chain 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 block chain network according to the reward information, the to-be-verified model parameter 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 a target test instrument for the instrument demand node according to the second intelligent contract.
In order to achieve the above object, a third aspect of the present application provides a protocol conversion node, where the protocol conversion node is a node in a blockchain network, and the blockchain network further includes a meter demand node and a plurality of meter alternative nodes, and includes: the generation module is configured to generate and broadcast first training information into a block chain network according to a first protocol conversion model, a preset test protocol and a target test protocol which are sent by an 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, wherein the instrument demand node is used for testing a terminal to be tested by using the target test instrument, the preset test protocol is a protocol used by the terminal to be tested, and 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; the adjusting module is configured to adjust the first protocol conversion model according to the to-be-verified model parameters sent by the instrument standby nodes to generate a plurality of to-be-verified protocol conversion models; the conversion module is configured to convert a preset test protocol by using a 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 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 the plurality of instrument alternative nodes according to a preset accuracy rate and the plurality of protocols to be tested, and the instrument supply node is used for providing a target test instrument for the instrument demand node.
In order to achieve the above object, a fourth aspect of the present application provides a meter demand node, where the meter demand node is a node in a blockchain network, and the blockchain network further includes a protocol conversion node and a plurality of meter alternative nodes, and the node includes: the second sending module is configured to send a target test protocol and a preset test protocol used by a terminal to be tested to the block chain network, so that the protocol conversion node generates and broadcasts first training information to the block chain network according to the first protocol conversion model, the preset test protocol and the target test protocol, so that the multiple 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 a preset test protocol by using a plurality of protocol conversion models to be verified, generating and sending a plurality of test protocols to be verified to a block chain network, so that a meter 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 a plurality of instrument candidate nodes according to a preset accuracy and a plurality of to-be-verified test protocols fed back by the protocol conversion node, wherein the instrument supply node is used for providing a target test instrument for the instrument demand node.
According to the acquisition method of the test instrument, the protocol conversion node and the instrument demand node, the protocol conversion requirement of the instrument demand node can be determined through the preset test protocol and the target test protocol sent by the instrument demand node; generating and broadcasting first training information into a block chain network according to a first protocol conversion model, a preset test protocol and a target test protocol which are sent by an 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, wherein the instrument demand node is used for testing a terminal to be tested by using a target test instrument, the preset test protocol is a protocol used by the terminal to be tested, 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, the test instrument can be generalized, and the use range of the test instrument can be expanded; the method comprises the steps that a first protocol conversion model is adjusted according to parameters of a to-be-verified model sent by a plurality of instrument alternative nodes to generate a plurality of to-be-verified protocol conversion models, the protocol conversion models can be more perfect through the plurality of to-be-verified protocol conversion models, and when the plurality of to-be-verified protocol conversion models are used for converting a preset test protocol to generate a plurality of to-be-verified test protocols, the plurality of to-be-verified test protocols are ensured to be closer to a target test protocol; the method comprises the steps of sending a plurality of test protocols to be verified to a block chain network, so that an instrument demand node screens and obtains an instrument supply node from a plurality of instrument candidate nodes according to a preset accuracy and the plurality of test protocols to be verified, the instrument supply node can provide a target test instrument for the instrument demand node, the instrument demand node is assisted to finish testing a terminal to be tested, the instrument demand node can utilize idle test equipment owned by the instrument supply node, waste of test resources is reduced, and the utilization rate of the test instrument is improved.
Drawings
The accompanying drawings are included to provide a further understanding of the embodiments of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the principles of the disclosure and not to limit the disclosure. The above and other features and advantages will become more apparent to those skilled in the art by describing in detail exemplary embodiments with reference to the attached drawings.
Fig. 1 is a schematic flow chart illustrating a method for acquiring a test meter according to an embodiment of the present disclosure.
Fig. 2 is a schematic flowchart illustrating a test meter obtaining method according to another embodiment of the present application.
Fig. 3 is a schematic flowchart illustrating a test meter obtaining method according to yet another embodiment of the present application.
Fig. 4 shows a block diagram of a protocol translation node according to an embodiment of the present application.
Fig. 5 shows a block diagram of a meter demand node according to an embodiment of the present application.
Fig. 6 shows a block diagram of an acquisition system of a test meter according to an embodiment of the present application.
Fig. 7 shows a flowchart of an operating method of an acquisition system of a test meter according to an embodiment of the present application.
Detailed Description
The following detailed description of embodiments of the present application will be made with reference to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the preferred embodiment of the invention, are given by way of illustration and explanation only, not limitation. 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 merely intended to provide a better understanding of the present application by illustrating examples thereof.
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Fig. 1 is a schematic flow chart illustrating a method for acquiring a test meter according to an embodiment of the present disclosure. The method is applicable to a protocol conversion node in a blockchain network, for example, the protocol conversion node may include a protocol conversion server, a protocol conversion device, and the like. The block chain network further comprises a meter demand node and a plurality of meter alternative nodes.
As shown in FIG. 1, the test meter acquisition method includes, but is not limited to, the following steps.
Step S101, according to a first protocol conversion model, a preset test protocol and a target test protocol which are sent by instrument demand nodes, first training information is generated and broadcasted to a block chain network, so that a plurality of instrument standby 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 that the converted protocol is matched with the target testing protocol used by the target testing instrument.
It should be noted that each instrument candidate node may improve the first protocol conversion model according to its own test instrument, generate a to-be-verified model parameter for the first protocol conversion model, adjust the first protocol conversion model according to the to-be-verified model parameter, and convert the test protocol used by the test instrument using the adjusted protocol conversion model, where the generated converted protocol is more suitable for testing the terminal to be tested, that is, the converted protocol is matched with the target test protocol used by the target test instrument.
And S102, 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.
The model parameters to be verified may include: the protocol to be verified analyzes the parameters, and/or the protocol to be verified converts the parameters.
It should be noted that the protocol analysis parameter to be verified is used for updating the protocol analysis part in the first protocol conversion model, so that the protocol analysis is more accurate; the protocol conversion parameters to be verified are used for updating the protocol conversion part in the first protocol conversion model, so that the converted protocol better conforms to the test protocol of the test instrument owned by the instrument alternative node, and the converted protocol can meet the test requirement of the terminal to be tested.
Step S103, 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.
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 is generated.
It should be noted that the test instruments owned by each instrument candidate node are different, and therefore, the model parameters to be verified provided by each instrument candidate node are more suitable for the instrument candidate node, and therefore, the generated protocol conversion models to be verified are different, correspondingly, the preset test protocol is input into the protocol conversion models to be verified for conversion, and the obtained 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 so as to meet the test requirements of the terminal to be tested.
And step S104, sending a plurality of test protocols to be verified to the block chain network.
After the instrument demand node obtains a plurality of test protocols to be verified from the block chain network, instrument supply nodes are obtained by screening from a plurality of instrument alternative nodes according to a preset accuracy rate and the plurality of test protocols to be verified, and the instrument supply nodes are used for providing a target test instrument for the instrument demand node.
In this embodiment, the protocol conversion requirement of the instrument demand node can be specified through the preset test protocol and the target test protocol sent by the instrument demand node; generating and broadcasting first training information into a block chain network according to a first protocol conversion model, a preset test protocol and a target test protocol which are sent by an 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, wherein the instrument demand node is used for testing a terminal to be tested by using a target test instrument, the preset test protocol is a protocol used by the terminal to be tested, 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, the test instrument can be generalized, and the use range of the test instrument can be expanded; the method comprises the steps that a first protocol conversion model is adjusted according to parameters of a to-be-verified model sent by a plurality of instrument alternative nodes to generate a plurality of to-be-verified protocol conversion models, the protocol conversion models can be more perfect through the plurality of to-be-verified protocol conversion models, and when the plurality of to-be-verified protocol conversion models are used for converting a preset test protocol to generate a plurality of to-be-verified test protocols, the plurality of to-be-verified test protocols are ensured to be closer to a target test protocol; the method comprises the steps of sending a plurality of test protocols to be verified to a block chain network, so that an instrument demand node screens and obtains an instrument supply node from a plurality of instrument candidate nodes according to a preset accuracy and the plurality of test protocols to be verified, the instrument supply node can provide a target test instrument for the instrument demand node, the instrument demand node is assisted to finish testing a terminal to be tested, the instrument demand node can utilize idle test equipment owned by the instrument supply node, waste of test resources is reduced, and the utilization rate of the test instrument is improved.
Fig. 2 is a schematic flowchart illustrating a test meter obtaining method according to another embodiment of the present application. The method is applicable to a protocol conversion node in a blockchain network, for example, the protocol conversion node may include a protocol conversion server, a protocol conversion device, and the like. The blockchain network further comprises a meter demand node and a plurality of meter alternative nodes. The difference between this embodiment and the previous embodiment is: the protocol database is searched through the preset test protocol, whether the protocol database comprises the preset test protocol or not can be determined, the first protocol conversion model corresponding to the preset test protocol can be determined, and whether the protocol conversion node can provide protocol conversion service for the instrument demand node or not can be determined.
As shown in FIG. 2, the test meter acquisition method includes, but is not limited to, the following steps.
Step S201, obtaining the demand information sent by the demand node of the meter from the blockchain network.
The demand information is information signed by a private key of the meter demand node.
For example, before the demand information is sent by the demand node, the demand node may encrypt the demand information by using a preset algorithm to generate encrypted information; and then, the encrypted information is signed by using a private key of the instrument demand node so as to ensure the safety of the demand information in the transmission process.
Step S202, verifying the requirement information by using a public key of the instrument requirement node, and under the condition that the requirement information is verified, performing message analysis on the requirement information to obtain second training information.
The second training information comprises a preset testing protocol used by the terminal to be tested.
For example, the protocol conversion node may decrypt the encrypted demand information by using a preset algorithm to generate decrypted demand information; and then, the signature of the demand information is verified, and the demand information is subjected to message analysis under the condition that the verification is confirmed to pass, so that second training information is obtained.
It should be noted that the preset algorithm may be a preset algorithm between the meter demand node and the protocol conversion node, and the preset algorithm is only known by the two nodes to ensure the security of the message 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.
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.
The protocol database may include a plurality of sample protocols, and if a certain sample protocol is the same as a preset test protocol, it indicates that a protocol conversion model (e.g., a first protocol conversion model) matching the preset test protocol is stored in the protocol database, and the representation of the current protocol conversion node may provide a protocol conversion service for the meter demand node.
Further, the protocol conversion node extracts a preset test protocol and a first protocol conversion model from the protocol database so as to facilitate subsequent processing.
Step S204, according to the first protocol conversion model, a preset test protocol and a target test protocol which are sent by the instrument demand node, first training information is generated and broadcasted to the block chain network, so that the plurality of instrument standby nodes generate model parameters to be verified aiming at the first protocol conversion model based on the first training information.
Step S205, the first protocol conversion model is adjusted according to the parameters of the to-be-verified model sent by the multiple instrument alternative nodes, and multiple to-be-verified protocol conversion models are generated.
And step S206, converting 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.
Step S207, sending a plurality of test protocols to be verified to the blockchain network.
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 are not repeated herein.
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, and in the case that it is determined that the protocol database includes the preset test protocol and the first protocol conversion model, the protocol conversion node can be made clear, and the protocol conversion service can be provided for the instrument requirement node.
Further, according to the first protocol conversion model, a preset test protocol and a target test protocol which are sent by the instrument demand node, first training information is generated and broadcasted to the block chain network, so that the multiple instrument alternative nodes generate to-be-verified model parameters aiming at the first protocol conversion model based on the first training information, wherein 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, the test instrument can be generalized, and the use range of the test instrument is expanded; the method comprises the steps that a first protocol conversion model is adjusted according to parameters of a to-be-verified model sent by a plurality of instrument alternative nodes to generate a plurality of to-be-verified protocol conversion models, the protocol conversion models can be more perfect through the plurality of to-be-verified protocol conversion models, and when the plurality of to-be-verified protocol conversion models are used for converting a preset test protocol to generate a plurality of to-be-verified test protocols, the plurality of to-be-verified test protocols are ensured to be closer to a target test protocol; the method comprises the steps of sending a plurality of test protocols to be verified to a block chain network, so that an instrument demand node screens and obtains an instrument supply node from a plurality of instrument candidate nodes according to a preset accuracy and the plurality of test protocols to be verified, the instrument supply node can provide a target test instrument for the instrument demand node, the instrument demand node is assisted to finish testing a terminal to be tested, the instrument demand node can utilize idle test equipment owned by the instrument supply node, waste of test resources is reduced, and the utilization rate of the test instrument is improved.
The embodiment of the present application provides another possible implementation manner, where the second training information further includes: and reward information, wherein the reward information is information for determining to issue rewards to the instrument supply node according to the result obtained by testing the instrument demand node on the terminal to be tested by using the target test instrument.
After the step S104 or the step S207 of sending the multiple protocols to be tested to be verified to the blockchain network is executed, so that the meter demand node filters and obtains a meter supply node from the multiple meter candidate nodes according to the preset accuracy and the multiple protocols to be tested, where the meter supply node is configured to provide a target test meter for the meter demand node, the method further includes: acquiring a first intelligent contract fed back by an instrument demand node from a block chain network; obtaining a model parameter to be verified provided by an 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 a target test instrument for the instrument demand node according to the second intelligent contract.
Wherein the first smart contract includes reward information and an identification of the meter supply node.
For example, first reward information is sent to the protocol conversion node through the first intelligent contract, the first reward information is used for rewarding a first protocol conversion model provided by the protocol conversion node, and the first protocol conversion model is updated by using the model parameter to be verified fed back by the plurality of instrument candidate nodes. The accuracy of the protocol conversion node in the protocol forwarding is ensured.
Wherein, the second intelligent contract still includes: at least one of usage time information of the target test meter, performance parameter information of the target test meter, and number information of the target test meter.
Through the second intelligent contract, the instrument demand node can use the target test instrument provided by the instrument supply node and send second reward information to the instrument supply node. And the service time information (for example, 3 months 2 days to 3 months 5 days) and the quantity information (for example, 2 or 3 tables and the like) of the target test instrument by the instrument demand node are restricted by the second intelligent contract, and furthermore, the performance parameter information of the target test instrument can be clarified, so that the target test instrument is more suitable for testing the terminal to be tested.
The embodiment of the present application provides another possible implementation manner, where before the obtaining the requirement information sent by the meter requirement node from the blockchain network in step S201, the method further includes: obtaining a sample testing protocol used by a plurality of sample nodes; training a plurality of sample test protocols to obtain a plurality of sample protocol conversion models; and storing the plurality of sample protocol conversion models and the plurality of sample testing protocols into a protocol database, wherein the sample protocol conversion models correspond to the sample testing protocols one to one.
Wherein the sample testing protocol is a protocol used by the proprietary device; the sample protocol conversion model is used for converting the sample testing protocol to obtain a converted protocol, and the converted protocol has universality.
By using the sample protocol conversion model, the sample test protocol used by the private equipment is converted with the protocol with universality, so that the application range of the sample test protocol can be expanded, and the test cost of the equipment can be reduced; the protocol database is stored with a plurality of sample protocol conversion models and a plurality of sample test protocols, so that the data of the protocol database is enriched, a plurality of different sample test protocols can be generalized, the test mode of the private equipment is expanded, the converted protocol is used for testing the private equipment, the effectiveness of the test is guaranteed, and meanwhile, the test efficiency of the private equipment is improved.
In some implementations, storing the plurality of sample protocol conversion models and the plurality of sample testing protocols to a protocol database includes: respectively encrypting the plurality of 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 the plurality of sample protocol conversion models and the plurality of preset sample storage addresses into a protocol database.
The sample protocol conversion model corresponds to a preset sample storage address one by one.
The safety of the sample testing protocols is improved by encrypting the plurality of sample testing protocols; 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, so that the security of the encrypted sample data can be further improved, and the possibility of data leakage is reduced.
In some specific implementations, in step S102 or step S205, the first protocol conversion model is adjusted according to the parameters of the to-be-verified model sent by the multiple instrument candidate nodes, and the generation of the multiple to-be-verified protocol conversion models can also be implemented in the following manner: obtaining model parameters to be verified sent by a plurality of instrument alternative nodes from a block chain network; and respectively using the parameters of the plurality of models 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 models to be verified correspond to the protocol conversion models to be verified.
The model parameter to be verified is a response parameter of the instrument standby 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 own test instrument, so that the adjusted model (i.e., the protocol conversion model to be verified) is more suitable for the test instrument owned by the current candidate node, and the test protocol to be verified output by the adjusted model (i.e., the protocol conversion model to be verified) can meet the test requirement of the terminal to be tested.
In the process of adjusting the first protocol conversion model, the instrument alternative node determines parameters (namely, parameters of a model to be verified) to be adjusted, and sends the parameters of the model to be verified to the protocol conversion node, so that the protocol conversion node can acquire protocol conversion models to be verified corresponding to different instrument alternative nodes, and an optimal protocol conversion model is determined.
Fig. 3 is a schematic flowchart illustrating a test meter obtaining method according to yet another embodiment of the present application. The method can be applied to the instrument demand node in the block chain network, for example, the protocol conversion node can comprise an instrument demand server, an instrument demand device and the like. The block chain network further comprises a protocol conversion node and a plurality of meter alternative nodes.
As shown in FIG. 3, the test meter acquisition method includes, but is not limited to, the following steps.
Step S301, a target test protocol and a preset test protocol used by a terminal to be tested are sent to a block chain network.
The target test protocol is a protocol used by a target test instrument expected to be obtained by the instrument demand node, and the instrument demand node is expected to use the target test instrument to test the terminal to be tested so as to obtain performance parameters of the terminal to be tested, so that the performance of the terminal to be tested can be accurately evaluated.
After the protocol conversion node obtains a target test protocol and a preset test protocol from the block chain network, generating and broadcasting first training information into 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 a to-be-verified model parameter 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 a to-be-tested terminal; 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; and converting the preset test protocol by using a plurality of protocol conversion models to be verified, generating and sending the 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.
Step S302, instrument supply nodes are obtained by screening from a plurality of instrument alternative nodes according to a preset accuracy rate and a plurality of protocols to be verified fed back by the protocol conversion nodes.
The instrument supply node is used for providing a target test instrument for the instrument demand node.
For example, a test instrument to be verified can be simulated through a plurality of test protocols to be verified respectively; performing virtual test on a terminal to be tested by using a plurality of test instruments to be verified to obtain a plurality of virtual test results; and then, analyzing the plurality of virtual test results to determine the test accuracy, and when the accuracy of the virtual test result corresponding to a certain protocol to be tested is the same as the preset accuracy, determining that the instrument alternative node corresponding to the protocol to be tested is the instrument supply node.
The multiple to-be-verified test protocols are evaluated through the preset accuracy rate, so that the fairness of evaluation can be embodied, the screening process is more accurate, the instrument supply nodes screened from the multiple instrument alternative nodes are ensured, the test service can be accurately provided for the to-be-tested terminal, and the test accuracy is improved.
In some specific implementations, after the step S302 of screening and obtaining the meter supply node from the multiple meter candidate nodes according to the preset accuracy and the multiple protocols to be tested fed back by the protocol conversion node, the method further includes: testing the terminal to be tested by using the target test instrument to obtain a test result; generating reward information according to the test result; and generating and sending a first intelligent contract to the block chain 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 block chain 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 a target test instrument for the instrument demand node according to the second intelligent contract.
The device comprises a plurality of instrument supply nodes, a plurality of target test instruments and a plurality of reward information sending nodes, wherein the instrument supply nodes can be rewarded through the reward information so that the target test instruments owned by the instrument supply nodes are not idle, and the utilization rate of the test instruments is improved; meanwhile, the instrument demand node can be used for testing the terminal to be tested by using the target test instrument, so that the test requirement of the instrument demand node is met; in addition, the use and reward of the test instrument are realized in an intelligent contract mode, the legal benefits and traceability of the two parties are guaranteed, and the use experience of the user is improved.
In this embodiment, a target test protocol and a preset test protocol used by a terminal to be tested are sent to a block chain network, so that a protocol conversion node can determine a first protocol conversion model for the preset test protocol, and obtain a to-be-verified model parameter obtained by modifying the first protocol conversion model by a plurality of instrument candidate nodes, so that the modified instrument conversion model better conforms to the performance parameters of test instruments owned by each instrument candidate node, and simultaneously can meet the test requirements of the terminal to be tested; the method comprises the steps that a plurality of test protocols to be verified fed back by a protocol conversion node are evaluated through a preset accuracy rate, and the fairness of evaluation can be reflected; the accuracy of the instrument supply nodes obtained by screening from the multiple instrument alternative nodes is guaranteed, so that the instrument supply nodes can accurately provide target test instruments required by the test for the terminals to be tested, and the test accuracy is improved.
Fig. 4 shows a block diagram of a protocol translation node according to an embodiment of the present application. It should be noted that the specific implementation of the protocol conversion node in this embodiment is not limited to the above embodiment, and other unexplained embodiments are also within the protection scope of the protocol conversion node.
The protocol conversion node is a node in a block chain network, and the block chain network further comprises an instrument demand node and a plurality of instrument alternative nodes.
As shown in fig. 4, the protocol translation node 400 includes the following modules.
The generating module 401 is configured to generate and broadcast first training information into the block chain network according to the first protocol conversion model, a preset test protocol and a target test protocol, where the preset test protocol and the target test protocol are sent by an instrument demand node, so that the multiple instrument alternative nodes generate to-be-verified model parameters for the first protocol conversion model based on the first training information, where the instrument demand node is used to test a to-be-tested terminal by using the target test instrument, the preset test protocol is a protocol used by the to-be-tested terminal, 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.
An adjusting module 402, configured to adjust the first protocol conversion model according to the to-be-verified model parameters sent by the multiple instrument candidate nodes, so as to generate multiple to-be-verified protocol conversion models.
The conversion module 403 is configured to convert the preset test protocol by using the multiple protocol conversion models to be verified, so as to generate multiple test protocols to be verified.
The first sending module 404 is configured to send a plurality of protocols to be tested to be verified to the blockchain network, so that the instrument demand node obtains an instrument supply node by screening from the plurality of instrument candidate nodes according to the preset accuracy and the plurality of protocols to be tested, where the instrument supply node is used to provide the instrument demand node with the target test instrument.
In the embodiment, the protocol conversion requirement of the instrument demand node can be determined through the preset test protocol and the target test protocol sent by the instrument demand node; the method comprises the steps that a generating module is used for generating and broadcasting first training information into a block chain network according to a first protocol conversion model, a preset testing protocol and a target testing protocol which are sent by instrument requirement nodes, 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, wherein the instrument requirement nodes are used for testing a terminal to be tested by using the target testing instrument, the preset testing protocol is a protocol used by the terminal to be tested, 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 testing instrument can be generalized, and the use range of the testing instrument is expanded; the method comprises the steps that an adjusting module is used for adjusting a first protocol conversion model according to-be-verified model parameters sent by a plurality of instrument alternative nodes to generate a plurality of to-be-verified protocol conversion models, the protocol conversion models can be more perfect through the plurality of to-be-verified protocol conversion models, the conversion module is used for converting a preset test protocol through the plurality of to-be-verified protocol conversion models to ensure that the plurality of to-be-verified test protocols are more similar to a target test protocol when the plurality of to-be-verified test protocols are generated; the method comprises the steps that a first sending module is used for sending a plurality of test protocols to be verified to a block chain network, so that an instrument demand node can screen and obtain an instrument supply node from a plurality of instrument alternative nodes according to a preset accuracy rate and the plurality of test protocols to be verified, the instrument supply node can provide a target test instrument for the instrument demand node, the instrument demand node is assisted to finish testing a terminal to be tested, the instrument demand node can utilize idle test equipment owned by the instrument supply node, waste of test resources is reduced, and the utilization rate of the test instrument is improved.
Fig. 5 shows a block diagram of a meter demand node according to an embodiment of the present application. It should be noted that the specific implementation of the meter demand node in this embodiment is not limited to the above embodiment, and other non-illustrated embodiments are also within the protection scope of the meter demand node.
The meter demand nodes are nodes in a block chain network, and the block chain network further comprises protocol conversion nodes and a plurality of meter alternative nodes.
As shown in fig. 5, the meter demand node 500 includes the following modules: a second sending module 501, configured to send a target test protocol and a preset test protocol used by a terminal to be tested to the blockchain network, so that the protocol conversion node generates and broadcasts first training information to the blockchain network according to the first protocol conversion model, the preset test protocol and the target test protocol, so that the 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 for converting the preset test protocol, so that the converted protocol matches 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 a preset test protocol by using a plurality of protocol conversion models to be verified, generating and sending a plurality of test protocols to be verified to a block chain network, so that a meter demand node can acquire the plurality of test protocols to be verified; the screening module 502 is configured to screen and obtain an instrument supply node from a plurality of instrument candidate nodes according to a plurality of to-be-verified test protocols fed back by the protocol conversion node and preset accuracy, where the instrument supply node is used to provide a target test instrument for the instrument demand node.
In this embodiment, a target test protocol and a preset test protocol used by a terminal to be tested are sent to a block chain network through a second sending module, so that a protocol conversion node can determine a first protocol conversion model for the preset test protocol, and obtain a to-be-verified model parameter obtained by modifying the first protocol conversion model by a plurality of instrument alternative nodes, so that the modified instrument conversion model better conforms to the performance parameter of a test instrument owned by each instrument alternative node, and the test requirement of the terminal to be tested can also be met; the screening module is used for evaluating a plurality of to-be-verified test protocols fed back by the protocol conversion node by adopting a preset accuracy rate, so that the fairness of evaluation can be embodied; the accuracy of the instrument supply nodes obtained by screening from the multiple instrument alternative nodes is guaranteed, so that the instrument supply nodes can accurately provide target test instruments required by the test for the terminals to be tested, and the test accuracy is improved.
It should be noted that each module referred to in this embodiment is a logical module, and in practical applications, one logical unit may be one physical unit, may be a part of one physical unit, and may be implemented by a combination of multiple physical units. In addition, in order to highlight the innovative part of the present application, a unit that is not so closely related to solving the technical problem proposed by the present application is not introduced in the present embodiment, but it does not indicate that no other unit exists in the present embodiment.
Fig. 6 shows a block diagram of an acquisition system of a test meter according to an embodiment of the present application.
As shown in FIG. 6, the acquisition system of the test meter comprises a meter requirement node 610, a protocol conversion node 620, a meter alternative node 630 and a terminal to be tested 640.
Wherein, the meter alternative node 630 includes: first meter alternative node 631, second meter alternative node 632, ..., nth meter alternative node 63N. N represents the number of the meter candidate nodes, and is an integer greater than or equal to 1.
The meter demand node 610: for testing the terminal to be tested 640 using a target test meter provided by a meter supply node (e.g., the first meter candidate node 631, etc.) selected from the N meter candidate nodes; and the reward information is issued to the instrument supply node, so that the instrument supply node increases extra income and the utilization rate of the test instrument is improved.
Protocol translation node 620: the protocol conversion device is used for converting protocols used by different test instruments so that the test instruments can be generalized. For example, the preset test protocol may be converted by using the first protocol conversion model according to the preset test protocol provided by the meter requirement node 610, so that the converted protocol matches the target test protocol used by the target test meter. In addition, parameters of the first protocol conversion model may also be adjusted according to parameters of a model to be verified provided by the instrument candidate node 630, so that the first protocol conversion model is more complete, and the converted protocol is closer to the target test protocol.
The instrument supply nodes are screened out from the instrument alternative nodes 630, each instrument alternative node is provided with a test instrument in an idle state, and the idle test instrument is provided for a required node to be tested, so that the waste of test resources can be reduced, and the utilization rate of the test instrument is improved; meanwhile, the reward issued by the meter demand node 610 can be obtained, and the maintenance cost of the test meter is reduced.
Fig. 7 is a flowchart illustrating a working method of an acquisition system of a test meter according to an embodiment of the present application. As shown in fig. 7, the method specifically includes the following steps.
In step 701, the meter demand node 610 generates demand information according to a target test protocol and a preset test protocol used by a terminal to be tested.
The target test protocol is a protocol used by a target test instrument expected to be obtained by the instrument demand node 610, and the instrument demand node 610 is expected to use the target test instrument to test the terminal to be tested so as to obtain performance parameters of the terminal to be tested, so that the performance of the terminal to be tested can be accurately evaluated.
In some implementations, the demand information may further include reward information used to determine information for issuing a reward to the meter provision node according to a result obtained by testing the target test meter on the terminal to be tested.
In step 702, the meter demand node 610 encrypts the demand information using its own private key, and generates and sends the encrypted demand information to the blockchain network, so that the protocol conversion node 620 can obtain the demand information.
Step 703, the protocol conversion node 620 obtains the encrypted demand information from the block chain network, and decrypts the encrypted demand information by using the public key of the meter demand node 610 to obtain first training information; then, searching a protocol database according to a preset test protocol, and determining that the protocol database comprises the preset test protocol and a first protocol conversion model; and generating first training information based on a preset test protocol, a first protocol conversion model and a target test protocol.
The first protocol conversion model is used for converting a preset test protocol so that the converted protocol is matched with a target test protocol used by a target test instrument.
It should be noted that the protocol database includes a plurality of sample testing protocols and corresponding sample protocol conversion models.
For example, a sample testing protocol and its corresponding sample protocol conversion model may be obtained as follows: 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. The plurality of sample protocol conversion models and the plurality of sample testing protocols are then stored to a protocol database.
The sample protocol conversion model corresponds to the sample testing protocol one by one.
The method has the advantages that the sample testing protocols provided by the sample nodes are trained to obtain the sample protocol conversion models, the number and the types of the sample protocol conversion models in the protocol database can be enriched, the protocol database can comprise various different types of protocol conversion models, the method is suitable for the use requirements of various different private devices, after the protocols passing through the sample protocol conversion models are converted, the obtained converted protocols can be generalized, the adaptation range of the testing instrument for the private devices is expanded, and the utilization rate of the testing instrument is improved.
In some implementations, the sample protocol translation model may also be stored as follows: respectively encrypting the plurality of 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 the plurality of sample protocol conversion models and the plurality of preset sample storage addresses into a protocol database.
The sample protocol conversion model corresponds to a preset sample storage address one by one.
The safety of the sample testing protocols is improved by encrypting the plurality of sample testing protocols; 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, so that the security of the encrypted sample data can be further improved, and the possibility of data leakage is reduced.
In step 704, the protocol translation node 620 broadcasts the first training information to the blockchain network, so that the meter candidate node 630 knows the first training information.
Wherein 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 learn the first training information from the blockchain network and respond to the first training information.
Step 705, a first meter candidate node 631, a second meter candidate node 632, ..., and an Nth meter candidate node 63N obtain first training information from the blockchain network, respectively, and respond to the first training information.
Each instrument alternative node generates own to-be-verified model parameters aiming at the first protocol conversion model. The model parameters to be verified are used for updating the first protocol conversion model, so that the updated protocol conversion model can more accurately convert the preset test protocol, and the obtained converted protocol is closer to the target test protocol.
It should be noted that after each meter candidate node acquires the first training information from the blockchain network, information such as a preset test protocol, a first protocol conversion model, a target test protocol, and the like, may be extracted from the first training information, where the first protocol conversion model may also be an executable algorithm, and parameters of the model (or the algorithm) may be adjusted in a process of using the first protocol conversion model or in a process of executing the executable algorithm, so as to obtain optimal parameters, that is, parameters of the model to be verified, which are determined by each meter candidate node. Therefore, each instrument candidate node generates a model parameter to be verified matched with the own test instrument to be verified, and after the first protocol conversion model is adjusted through the model parameter to be verified, the adjusted model is used, so that the test instrument to be verified owned by the current instrument candidate node can be ensured to be more suitable for testing the terminal to be tested of the instrument demand node 610, and the matching degree between the test instrument to be verified and the terminal to be tested is improved.
Step 706, a first meter alternative node 631, a second meter alternative node 632, 8230, and an Nth meter alternative node 63N respectively send the generated model parameters to be verified to the block chain network, so that the protocol conversion node 620 obtains the model parameters to be verified fed back by each meter alternative node.
Step 707, the protocol conversion node 620 adjusts the first protocol conversion model according to the parameters of the to-be-verified model sent by the multiple instrument candidate nodes, and generates multiple to-be-verified protocol conversion models; and 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.
Because different instrument candidate nodes may use different sample data, and different instrument candidate nodes obtain different parameters of the to-be-verified model in the process of training the sample data, a plurality of to-be-verified protocol conversion models generated by the protocol conversion node 620 are different, correspondingly, a preset test protocol is input into the plurality of to-be-verified protocol conversion models for conversion, and the obtained plurality of to-be-verified test protocols are also different. But the test protocol to be verified is as close as possible to the target test protocol.
In step 708, the protocol conversion node 620 sends the generated multiple protocols to be tested to the blockchain network, so that the meter demand node 610 can select a suitable test protocol from the multiple protocols to be tested.
In step 709, the meter demand node 610 obtains a plurality of to-be-verified test protocols sent by the protocol conversion node 620 from the blockchain network, simulates the to-be-verified test meters by using the plurality of to-be-verified test protocols, tests the to-be-tested terminal to obtain a plurality of test results, and selects a target test protocol from the plurality of to-be-verified test protocols according to the plurality of test results, thereby using a node corresponding to the target test protocol as a meter supply node (e.g., the first meter alternative node 631).
At step 710, the meter demand node 610 makes an intelligent contract with the meter supply node (i.e., the first meter candidate node 631) via the protocol translation node 620, so that the first meter candidate node 631 can provide the target test meter for the meter demand node 610.
Wherein the intelligent contracts may include a first intelligent contract and a second intelligent contract. The first intelligent contract comprises: first reward information and the identity of the meter provisioning node (i.e., first meter alternative 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 node 610 sends first reward information to the protocol conversion node 620 through the first smart contract, wherein the first reward information is used for rewarding the first protocol conversion model provided by the protocol conversion node 620 and updating the first protocol conversion model by using the parameters of the model to be verified fed back by the plurality of meter candidate nodes.
The second smart contract is a contract that is made between the meter demand node 610 and the meter supply node (i.e., the first meter alternative node 631). The second intelligent contract comprises: the second reward information, the model parameter to be verified provided by the meter supply node, the identification of the meter supply node (i.e. the first meter alternative node 631) and the identification of the meter demand node 610, and at least one of the usage time information of the target test meter, the performance parameter information of the target test meter and the number information of the target test meter.
With the second smart contract, the meter demand node 610 may be enabled to use the target test meter provided by the first meter alternative node 631 and send second reward information to the first meter alternative node 631.
In some implementations, the meter demand node 610 may also select multiple meter candidate nodes as meter supply nodes to meet different demands of the meter demand node 610 for the test meter.
In this embodiment, an intelligent contract can be signed between an instrument demand node and an instrument supply node through a protocol conversion node, so that the instrument supply node can provide a suitable target test instrument for the instrument demand node, thereby realizing the requirement that the instrument demand node uses the target test instrument to test a terminal to be tested, reducing the idle state of the test instrument, and enabling the test instrument to be reasonably utilized; and the first protocol conversion model provided by the protocol conversion node is updated through the model parameter to be verified provided by each instrument standby node, so that the private protocol of the test instrument can be converted into the protocol suitable for the terminal to be tested, and the application range of the test instrument is expanded. Meanwhile, the intelligent contract is signed between the instrument demand node and the instrument supply node through the protocol conversion node, the use and reward of the test instrument can be realized in an intelligent contract mode, the legal benefit and traceability of both sides are guaranteed, and the use experience of a user is improved.
It is to be understood that the above embodiments are merely exemplary embodiments that are employed to illustrate the principles of the present application, and that the present application is not limited thereto. It will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the application, and these changes and modifications are to be considered as the 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
CN111176970A (en) * 2018-11-09 2020-05-19 北京天德科技有限公司 Block chain test architecture and system
CN111181796A (en) * 2018-11-09 2020-05-19 北京天德科技有限公司 Block chain consensus protocol testing method and system based on enabler
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
US20210009310A1 (en) * 2018-08-06 2021-01-14 Myomega Systems Gmbh Pallet management device
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
CN111176970A (en) * 2018-11-09 2020-05-19 北京天德科技有限公司 Block chain test architecture and system
CN111181796A (en) * 2018-11-09 2020-05-19 北京天德科技有限公司 Block chain consensus protocol testing method and system based on enabler
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
CN110032878B (en) Safety feature engineering method and device
CN109067617B (en) V2X protocol consistency test method, device and system
CN109933535B (en) Test case generation method and device and server
CN108965037B (en) Method and device for obtaining safety test data and auditing and analyzing
CN108628743A (en) Applied program testing method, device, equipment and storage medium
CN109376534B (en) Method and apparatus for detecting applications
CN111224834A (en) Simulation test method, simulation test device, server and storage medium
Moussa et al. Exploiting the vulnerability of relative data alignment in phasor data concentrators to time synchronization attacks
CN113472883A (en) Method, device and equipment for storing data based on block chain and storage medium
Mladenov et al. Formal verification of the implementation of the MQTT protocol in IoT devices
CN113609533A (en) Integrity auditing method for smart power grid data
Blanc et al. Benchmarking of lightweight cryptographic algorithms for wireless IoT networks
Kammerstetter et al. Practical Risk Assessment Using a Cumulative Smart Grid Model.
CN114051027B (en) Acquisition method of test instrument, protocol conversion node and instrument demand node
Garn et al. Combinatorial methods for testing internet of things smart home systems
CN111930621A (en) DNS automation performance testing method, device, equipment and readable storage medium
CN116644472A (en) Data encryption and data decryption methods and devices, electronic equipment and storage medium
CN113327163B (en) Data processing method and device based on block chain, electronic equipment and storage medium
CN109286616A (en) Authorization check method and device based on block chain technology
Jie et al. Simulation tools for MANETs: A systematic survey
Taranu et al. General method for testing context aware applications
US20230353648A1 (en) Data tracking for data owners
CN114980130B (en) Spectrum sharing method and device based on block chain consensus, electronic equipment and medium
CN116955967B (en) System and method for simulating investigation and adjustment in network target range
CN113504931B (en) Controller testing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant