CN114050988A - Remote testing method, system and interactive system based on multi-network-port gateway - Google Patents

Remote testing method, system and interactive system based on multi-network-port gateway Download PDF

Info

Publication number
CN114050988A
CN114050988A CN202210023962.3A CN202210023962A CN114050988A CN 114050988 A CN114050988 A CN 114050988A CN 202210023962 A CN202210023962 A CN 202210023962A CN 114050988 A CN114050988 A CN 114050988A
Authority
CN
China
Prior art keywords
test
network
gateway
instruction
port
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.)
Granted
Application number
CN202210023962.3A
Other languages
Chinese (zh)
Other versions
CN114050988B (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.)
Chengdu Senhe Electronic Technology Co ltd
Original Assignee
Chengdu Senhe Electronic Technology 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 Chengdu Senhe Electronic Technology Co ltd filed Critical Chengdu Senhe Electronic Technology Co ltd
Priority to CN202210023962.3A priority Critical patent/CN114050988B/en
Publication of CN114050988A publication Critical patent/CN114050988A/en
Application granted granted Critical
Publication of CN114050988B publication Critical patent/CN114050988B/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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/12Network monitoring probes
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y30/00IoT infrastructure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a remote testing method, a remote testing system and an interaction system based on a multi-network-port gateway, and relates to the field of testing of the Internet of things. The method comprises the following steps: the method comprises the steps that a multi-network-port gateway receives a test instruction sent by a background server, the multi-network-port gateway decomposes and sorts the test instruction to obtain a plurality of ordered sub-test instructions, the multi-network-port gateway loads the ordered sub-test instructions into an SCPI instruction set, and a terminal test instrument carries out remote test according to the SCPI instruction set issued by the multi-network-port gateway.

Description

Remote testing method, system and interactive system based on multi-network-port gateway
Technical Field
The invention relates to the field of testing of the Internet of things, in particular to a remote testing method, a remote testing system and an interactive system based on a multi-network-port gateway.
Background
At present, the testing of a plurality of terminals and equipment of the internet of things needs to be carried out in a laboratory, and a large number of basic universal instruments and customized special instruments purchased in the laboratory are used; the tested devices must be sent to a laboratory or a detection center for testing, some devices need to be detected in situ in the field working process, and some in-situ detection processes are very difficult or even impossible to complete; this greatly limits the range of applications for testing.
With the continuous development of the internet of things technology, compared with the testing of the internet of things terminal and the network equipment in a laboratory, the testing requirements of the existing multifunctional internet of things terminal, especially the testing requirements of the real-time online use of the internet of things terminal and the equipment running on the spot, can not be met.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a remote testing method, a remote testing system and an interactive system based on a multi-network-port gateway aiming at the defects of the prior art.
The technical scheme for solving the technical problems is as follows:
a remote testing method based on a multi-network-port gateway comprises the following steps:
the multi-network-port gateway receives a test instruction sent by a background server;
the multi-network-port gateway decomposes and sorts the test instructions to obtain a plurality of sorted sub-test instructions;
the multi-network-port gateway loads the sequenced sub-test instructions into an SCPI instruction set;
and the terminal test instrument carries out remote test according to the SCPI instruction set issued by the multi-network-port gateway.
The invention has the beneficial effects that: according to the scheme, the multi-network-port gateway receives the test instructions sent by the background server, the test instructions are decomposed and sequenced to obtain a plurality of sequenced sub-test instructions, the sequenced sub-test instructions are loaded into the SCPI instruction set, the terminal test instrument performs remote test according to the SCPI instruction set issued by the multi-network-port gateway, remote test expansion is performed by the multi-network-port gateway, and on the basis that the Internet of things terminal and equipment test is performed in a laboratory at present, the test capability of space crossing is realized through connection of the core equipment gateway and function expansion processing of control software.
The single-point test of single equipment can be expanded to a plurality of test instruments to carry out multi-angle test on the same or a plurality of terminals and equipment, and the test can be deployed in different places to carry out cooperative system-level test on some associated equipment distributed in different areas. The test application range is greatly expanded, and the test requirements of the existing Internet of things terminal and equipment are greatly met.
Further, still include: and the multi-network-port gateway collects the test data of the terminal test instrument, performs preset processing, and transmits the preset processed test data back to the background server.
The beneficial effect of adopting the further scheme is that: according to the scheme, the collected test data of the terminal test instrument is subjected to preliminary preset processing, the valid data is reserved and uploaded to the background server, the background data processing amount is reduced, and the overall data processing efficiency is improved.
Through the local data processing of the gateways, the real-time uploading of a large amount of test data is avoided, the pressure of network data transmission is better relieved, the pressure of data processing of the background server is relieved, and particularly the data processing pressure of the background server is greatly relieved under the condition that a large amount of gateways carry out testing simultaneously.
Further, still include:
the multi-network-port gateway receives a time synchronization control instruction sent by the background server;
and the multi-network-port gateway adjusts the time of a local real-time clock of the multi-network-port gateway according to the time synchronization control instruction.
The beneficial effect of adopting the further scheme is that: according to the scheme, the local real-time clock is adjusted by adjusting the time synchronization instruction, so that the synchronization precision of the local real-time clock and other gateways in the combined test is ensured, the accuracy degree of the timestamp in the uploaded data is greatly improved, and the synchronization adjustment period can be shortened or delayed through the time synchronization instruction.
Further, the receiving, by the multi-portal gateway, the test instruction sent by the background server specifically includes:
the multi-network-port gateway receives a test instruction which is sent by a background server and used for testing any one Internet of things terminal connected with a terminal test instrument;
or the multi-network-port gateway receives a test instruction which is sent by the background server and used for testing a plurality of internet-of-things terminals connected with the terminal test instrument.
The beneficial effect of adopting the further scheme is that: according to the scheme, the multi-network-port gateway connection terminal test equipment realizes multi-angle test on the same or multiple terminals and equipment from single-point test expansion of single equipment to multiple test instruments through one-to-one, one-to-multiple and many-to-many control modes, and can also be deployed and tested in different places, so that cooperative system level test is carried out on some associated equipment distributed in different areas, the test application range is greatly expanded, and the test requirements of multiple terminals and multiple equipment of the Internet of things at present are greatly met.
Further, the decomposing and sorting the test instruction by the multi-portal gateway, and the obtaining of the sorted sub-test instructions specifically includes:
the multi-network-port gateway decomposes the test instruction;
and the multi-network-port gateway sequences the plurality of sub-test instructions obtained after decomposition to obtain a plurality of sequenced sub-test instructions.
The beneficial effect of adopting the further scheme is that: according to the scheme, each test instrument is subjected to SCPI command decomposition and sequencing, and then is sequentially sent to the corresponding test instrument, so that the test instruments are controlled to test, and the test of various instruments is realized.
Further, the test instructions include: a test request instruction, a start test instruction, a stop test instruction, a continue test instruction, a terminate test instruction, a trigger test condition instruction, a data processing instruction, and/or a data return instruction.
The beneficial effect of adopting the further scheme is that: according to the scheme, a complete multi-terminal test function is realized through a plurality of control instructions such as a test requirement instruction, a test starting instruction, a test stopping instruction, a test continuing instruction, a test stopping instruction, a test triggering condition instruction, a data processing instruction and/or a data returning instruction.
Another technical solution of the present invention for solving the above technical problems is as follows:
a remote test system based on a multi-network-port gateway comprises: the system comprises a multi-network-port gateway, a background server and a terminal test instrument;
the multi-network-port gateway is used for receiving the test instruction sent by the background server;
the multi-network-port gateway is also used for decomposing and sequencing the test instructions to obtain a plurality of sequenced sub-test instructions;
the multi-network-port gateway is also used for loading the sequenced sub-test instructions into an SCPI instruction set;
the terminal test instrument is used for carrying out remote test according to the SCPI instruction set issued by the multi-network-port gateway.
The invention has the beneficial effects that: according to the scheme, the multi-network-port gateway receives the test instructions sent by the background server, the test instructions are decomposed and sequenced to obtain a plurality of sequenced sub-test instructions, the sequenced sub-test instructions are loaded into the SCPI instruction set, the terminal test instrument performs remote test according to the SCPI instruction set issued by the multi-network-port gateway, remote test expansion is performed by the multi-network-port gateway, and on the basis that the Internet of things terminal and equipment test is performed in a laboratory at present, the test capability of space crossing is realized through connection of the core equipment gateway and function expansion processing of control software.
The single-point test of single equipment can be expanded to a plurality of test instruments to carry out multi-angle test on the same or a plurality of terminals and equipment, the test can be deployed in different places, and the cooperative system level test can be carried out on some associated equipment distributed in different areas, so that the test application range is expanded, and the test requirements of the existing Internet of things terminals and equipment are greatly met.
Furthermore, the multi-portal gateway is further configured to collect test data of the terminal test instrument, perform preset processing, and transmit the test data after the preset processing back to the background server.
The beneficial effect of adopting the further scheme is that: according to the scheme, the collected test data of the terminal test instrument is subjected to preliminary preset processing, the valid data is reserved and uploaded to the background server, the background data processing amount is reduced, and the overall data processing efficiency is improved.
Through the local data processing of the gateways, the real-time uploading of a large amount of test data is avoided, the pressure of network data transmission is better relieved, the pressure of a background server for processing data is relieved, and particularly the data processing pressure of the background server is greatly relieved under the condition that a large amount of gateways carry out testing simultaneously.
Further, the multi-portal gateway is further configured to receive a time synchronization control instruction sent by the background server;
and the multi-network-port gateway is also used for adjusting the time of the local real-time clock of the cluster gateway according to the time synchronization control instruction.
The beneficial effect of adopting the further scheme is that: according to the scheme, the local real-time clock is adjusted by adjusting the time synchronization instruction, so that the synchronization precision of the local real-time clock and other gateways in the combined test is ensured, the accuracy degree of the timestamp in the uploaded data is greatly improved, and the synchronization adjustment period can be shortened or delayed through the time synchronization instruction.
Further, the multi-portal gateway is specifically configured to receive a test instruction sent by the background server to test any internet-of-things terminal connected to the terminal test instrument;
or the multi-network-port gateway is specifically used for receiving a test instruction sent by the background server and used for testing the internet-of-things terminal connected with the plurality of terminal test instruments.
The beneficial effect of adopting the further scheme is that: according to the scheme, the multi-network-port gateway connection terminal test equipment realizes multi-angle test on the same or multiple terminals and equipment from single-point test expansion of single equipment to multiple test instruments through one-to-one, one-to-multiple and many-to-many control modes, and can also be deployed and tested in different places, so that cooperative system level test is carried out on some associated equipment distributed in different areas, the test application range is greatly expanded, and the test requirements of multiple terminals and multiple equipment of the Internet of things at present are greatly met.
Further, the multi-portal gateway is specifically configured to decompose the test instruction;
the multi-port gateway is specifically configured to sort the plurality of sub-test instructions obtained after decomposition, and obtain the plurality of sorted sub-test instructions.
The beneficial effect of adopting the further scheme is that: according to the scheme, the SCPI commands are decomposed and sequenced according to the test instructions sent by the background server, and then the test instructions are sequentially sent to the corresponding test instruments to control the test instruments to test, so that the test of various instruments is realized.
Further, the test instructions include: a test request instruction, a start test instruction, a stop test instruction, a continue test instruction, a terminate test instruction, a trigger test condition instruction, a data processing instruction, and/or a data return instruction.
The beneficial effect of adopting the further scheme is that: according to the scheme, a complete multi-terminal test function is realized through a plurality of control instructions such as a test requirement instruction, a test starting instruction, a test stopping instruction, a test continuing instruction, a test stopping instruction, a test triggering condition instruction, a data processing instruction and/or a data returning instruction.
Another technical solution of the present invention for solving the above technical problems is as follows:
a remote interactive system, comprising: the remote testing system based on the multiple multi-network-port gateways adopts any scheme.
Advantages of additional aspects of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
Fig. 1 is a schematic flowchart of a remote testing method based on a multi-portal gateway according to an embodiment of the present invention;
fig. 2 is a block diagram of a remote testing system based on a multi-portal gateway according to an embodiment of the present invention;
fig. 3 is a flowchart of a testing process based on multi-portal gateway control software according to another embodiment of the present invention;
fig. 4 is a test connection diagram of a multi-portal gateway according to another embodiment of the present invention.
Detailed Description
The principles and features of this invention are described below in conjunction with the following drawings, which are set forth to illustrate, but are not to be construed to limit the scope of the invention.
As shown in fig. 1, a remote testing method based on a multi-portal gateway provided in an embodiment of the present invention includes:
s1, the multi-network-port gateway receives a test instruction sent by the background server;
it should be noted that, in an embodiment, a multi-port gateway may indicate that one gateway includes a plurality of ports for connecting a plurality of terminal test meters.
Preferably, in a certain embodiment, some associated devices distributed in different areas may be subjected to cooperative system level testing by deploying a plurality of gateways at different places for testing. The multi-portal gateway can comprise a hardware gateway structure and control software loaded with a control method. The multi-network-port gateway and the control software thereof perform upper-layer test operation interaction with the background server through a wired or wireless network, the gateway performs command decomposition and operation sequencing after receiving a test instruction sent by the background server, and controls the instrument to complete the test by adopting a series of SCPI control commands matched with the instrument.
S2, the multi-network-port gateway decomposes and sorts the test instructions to obtain a plurality of sorted sub-test instructions;
s3, the multi-network port gateway loads the sequenced sub-test instructions into an SCPI (Standard Commands for Programmable Instruments) instruction set; the SCPI instruction set comprises 13 public instructions and 13 instrument-specific instructions, all the instruments need to be realized, and instrument-specific instructions are different according to manufacturers, series and models of the instruments.
In another embodiment, the multi-network-port gateway finishes the loading of various basic instrument SCPI instruction sets, and can dynamically receive the updating of the SCPI instruction set of the background server and adapt to the SCPI command of the field test instrument in real time after the field test instrument is changed; the SCPI command sets of a plurality of test instruments can be loaded at the same time and stored in the gateway, and the updating of the SCPI command sets is not required to be carried out in each test.
And S4, the terminal test instrument performs remote test according to the SCPI instruction set issued by the multi-network-port gateway. Wherein, the terminal test instrument can include: the system comprises a program control power supply, a signal source, an oscilloscope, a network analyzer, a spectrum analyzer, a noise analyzer and other basic test instruments which are provided with an Ethernet interface and receive SCPI control commands, and also comprises customized instruments.
It should be noted that, in a certain embodiment, the background server issues the test instruction to perform "power test within 24 hours" on an internet of things terminal which is being applied on site, including an average power test, a maximum power test, and a minimum power test; after receiving the command, the gateway decomposes the command into four sub-test commands of voltage value setting, current maximum value setting, test starting, real-time voltage data acquisition, real-time current data acquisition, test stopping and the like; based on four sub-test instructions, sending an SCPI command set to the numerical control power supply, namely: and decomposing the command into voltage value setting, current maximum value setting, test starting, real-time voltage data acquisition, real-time current data acquisition and test stopping, repeatedly sending an SCPI command for reading the real-time voltage and current data output by the power supply within 24 hours according to the minimum read data interval, and sending an SCPI command for stopping power supply to the numerical control power supply immediately after 24 hours.
It should be noted that, in a certain embodiment, the method may further include: the gateway collects a large number of test results within 24 hours, namely voltage and current data, and then carries out local preliminary data processing, namely carrying out power calculation of each item according to the voltage and current values, and obtaining average power, maximum power and minimum power from the calculation; and then the result is transmitted back to the background server, wherein the result of average power, maximum power and minimum power is transmitted back to the background server.
According to the scheme, the multi-network-port gateway is used for receiving the test instruction sent by the background server, decomposing and sequencing the test instruction to obtain a plurality of sequenced sub-test instructions, the plurality of sequenced sub-test instructions are loaded into an SCPI instruction set, and the terminal test instrument carries out remote test according to the SCPI instruction set issued by the multi-network-port gateway;
the single-point test of single equipment can be expanded to a plurality of test instruments to carry out multi-angle test on the same or a plurality of terminals and equipment, and the test can be deployed in different places to carry out cooperative system-level test on some associated equipment distributed in different areas. The test application range is greatly expanded, and the test requirements of the existing Internet of things terminal and equipment are greatly met.
Preferably, in any of the above embodiments, further comprising: and the multi-network-port gateway collects the test data of the terminal test instrument, performs preset processing, and transmits the preset processed test data back to the background server. In one embodiment, the multi-portal gateway reserves at least one portal for internet connection to interact with the background server. Other network ports can be used for connecting basic test instruments and used for test interaction.
In one embodiment, the gateway has the capability of SCPI command interaction with the underlying test meter, and the public instructions are already fixed inside the gateway. The gateway can load private SCPI command sets aiming at different brands and manufacturers, different types of meters and different meter versions, and sequentially sends corresponding series commands to complete control and test data collection of the meters during testing.
In one embodiment, the preset process may include: the multi-network-port gateway acquires test data returned by the basic instrument, performs preliminary data analysis, reduces background data processing amount, improves overall data processing efficiency, and then packages the data and transmits the data back to the background server, wherein the gateway can receive a plurality of test instructions from the background, can cache the instructions, and performs sequential processing;
in another embodiment, after a test instruction is completed, the gateway collects all data of the basic instrument involved in the test, preliminarily screens the test data according to the requirements in the background test instruction, determines effective data, and uploads the effective data to the background server; for example, in the above "power test within 24 hours", if the current of the acquired voltage and current data is 0, it indicates that the connection line of the terminal to be tested may fall off, and the invalid data of the part should be removed, so that the terminal to be tested does not have the current of 0 during operation; then, performing preliminary operation and conversion on the data, wherein the preliminary operation and the conversion represent that, for example, power calculation of voltage and current collected in minimum time and selection of a minimum power value and a maximum power value are performed; packing the data, wherein the average power, the minimum power and the maximum power within 24 hours are put into an uploading data packet; and adding gateway identification, test instruction sequence number, timestamp, test completion state, data verification and the like. Then the data packet is put into a data buffer area, and the data packet is uploaded immediately when the smoothness of the uplink communication network is ensured; by adopting a data caching mode, the data security is extremely improved, and the data loss caused by network abnormality is effectively prevented. Meanwhile, the local data processing of the gateway avoids uploading a large amount of test data in real time, the pressure of network data transmission is better reduced, the pressure of a background server for processing data is reduced, and particularly the condition that a large amount of gateways are tested simultaneously is solved.
According to the scheme, the test data of the test instrument of the collecting terminal is subjected to preliminary preset treatment, the valid data is reserved and uploaded to the background server, the background data processing amount is reduced, and the overall data processing efficiency is improved.
Through the local data processing of the gateways, the real-time uploading of a large amount of test data is avoided, the pressure of network data transmission is better relieved, the pressure of data processing of the background server is relieved, and particularly the data processing pressure of the background server is greatly relieved under the condition that a large amount of gateways carry out testing simultaneously.
Preferably, in any of the above embodiments, further comprising:
the multi-network-port gateway receives a time synchronization control instruction sent by a background server;
and the multi-network-port gateway adjusts the time of the local real-time clock of the multi-network-port gateway according to the time synchronization control instruction.
In one embodiment, the time synchronization performed by the multi-portal gateway may include: and receiving a control instruction of the background server, namely a time synchronization instruction, and adjusting the local real-time clock in time to keep time synchronization with other gateways, wherein the time synchronization is microsecond level. In order to obtain high-precision synchronization, the multi-port gateway is provided with an RS232 serial port and can communicate with the GPS time service module. The GPS Time service module provides an extremely high-precision PPS (Pulse Per Second) Second alignment function and also provides Time information of RTC (Real _ Time Clock) of year, month, day, Time, minute and Second, and the GPS Time service precision can reach 10-9Second, in the order of nanoseconds. The gateway ensures the synchronization precision with other gateways during the joint test by synchronizing the time with the GPS module, and greatly improves the precision of the timestamp in the uploaded data. The time synchronization period is defaulted to 12 hours, and the synchronization adjustment period can be shortened or prolonged according to actual requirements.
According to the scheme, the local real-time clock is adjusted by adjusting the time synchronization instruction, so that the synchronization precision of the local real-time clock and other gateways in the combined test is ensured, the accuracy degree of the timestamp in the uploaded data is greatly improved, and the synchronization adjustment period can be shortened or delayed through the time synchronization instruction.
Preferably, in any of the above embodiments, the receiving, by the multi-portal gateway, the test instruction sent by the background server specifically includes:
the method comprises the steps that a multi-network-port gateway receives a test instruction sent by a background server and used for testing any one Internet of things terminal connected with a terminal test instrument;
or the multi-network-port gateway receives a test instruction which is sent by the background server and used for testing a plurality of internet-of-things terminals connected with the terminal test instrument.
In one embodiment, the multi-port gateway is connected to a background server through the internet and receives a control instruction and a test instruction sent by the background server; the gateway establishes TCP connection with the background server to perform reliable data interaction, and can receive control instructions issued by the background, including test requirements, start the test, stop the test, continue the test, terminate the test, trigger test conditions, process data, return data and other operations.
According to the scheme, the multi-network-port gateway connection terminal test equipment realizes multi-angle test on the same or multiple terminals and equipment from single-point test expansion of single equipment to multiple test instruments through one-to-one, one-to-multiple and many-to-many control modes, and can also be deployed and tested in different places, so that cooperative system level test is carried out on some associated equipment distributed in different areas, the test application range is greatly expanded, and the test requirements of multiple terminals and multiple equipment of the Internet of things at present are greatly met.
Preferably, in any of the above embodiments, the decomposing and sorting the test instruction by the multi-portal gateway, and the obtaining the sorted sub-test instructions specifically includes:
the multi-network-port gateway decomposes the test instruction;
and the multi-network-port gateway sequences the plurality of sub-test instructions obtained after decomposition to obtain a plurality of sequenced sub-test instructions.
In one embodiment, after receiving a test instruction from a background server, control software of a gateway allocates required test instruments to test purposes to be realized in the instruction, decomposes and sorts SCPI commands for each test instrument, and then sequentially sends the SCPI commands to the test instruments to control the test instruments to perform testing.
According to the scheme, each test instrument is subjected to SCPI command decomposition and sequencing, and then is sequentially sent to the corresponding test instrument, so that the test instruments are controlled to test, and the test of various instruments is realized.
Preferably, in any of the above embodiments, the test instructions include: a test request instruction, a start test instruction, a stop test instruction, a continue test instruction, a terminate test instruction, a trigger test condition instruction, a data processing instruction, and/or a data return instruction.
According to the scheme, a complete multi-terminal test function is realized through a plurality of control instructions such as a test requirement instruction, a test starting instruction, a test stopping instruction, a test continuing instruction, a test stopping instruction, a test triggering condition instruction, a data processing instruction and/or a data returning instruction.
Preferably, in an embodiment, as shown in fig. 3, the testing process flow based on the multi-portal gateway control software may include: the gateway receives a test instruction of the background server, the gateway decomposes the test instruction into a plurality of SCPI instruction combinations, the gateway sequentially sends SCPI commands to the test instrument and receives test result data of the test instrument, the test data are preliminarily processed to screen out test result data meeting requirements, the test result data are put into a data packet, a gateway identifier, a test instruction serial number and a timestamp are added, the state after the test is finished is checked, the data are stored into a data buffer after the check is finished, whether an uplink network is normal or not is judged, the data in the buffer are uploaded to a service desk if the uplink network is normal, and the data are continuously uploaded if the data in the buffer are not empty; and when the uplink network is abnormal, continuing to wait.
In one embodiment, as shown in fig. 2, a remote testing system based on a multi-portal gateway includes: a multi-network-port gateway 1101, a background server 1100 and a terminal test instrument 1102;
the multi-portal gateway 1101 is configured to receive a test instruction sent by the background server 1100;
the multi-port gateway 1101 is further configured to decompose and sort the test instructions to obtain a plurality of sorted sub-test instructions;
the multi-portal gateway 1101 is further configured to load the ordered plurality of sub-test instructions into an SCPI instruction set;
the terminal test instrument 1102 is configured to perform remote testing according to an SCPI instruction set issued by the multi-port gateway 1101.
According to the scheme, the multi-network-port gateway is used for receiving the test instruction sent by the background server, decomposing and sequencing the test instruction to obtain a plurality of sequenced sub-test instructions, the plurality of sequenced sub-test instructions are loaded into an SCPI instruction set, and the terminal test instrument carries out remote test according to the SCPI instruction set issued by the multi-network-port gateway;
the single-point test of single equipment can be expanded to a plurality of test instruments to carry out multi-angle test on the same or a plurality of terminals and equipment, and the test can be deployed in different places to carry out cooperative system-level test on some associated equipment distributed in different areas. The test application range is greatly expanded, and the test requirements of the existing Internet of things terminal and equipment are greatly met.
Preferably, in any of the embodiments described above, the multi-port gateway 1101 is further configured to collect test data of the terminal test instrument, perform preset processing, and transmit the test data after the preset processing back to the background server.
According to the scheme, the test data of the test instrument of the collecting terminal is subjected to preliminary preset treatment, the valid data is reserved and uploaded to the background server, the background data processing amount is reduced, and the overall data processing efficiency is improved.
Through the local data processing of the gateways, the real-time uploading of a large amount of test data is avoided, the pressure of network data transmission is better relieved, the pressure of data processing of the background server is relieved, and particularly the data processing pressure of the background server is greatly relieved under the condition that a large amount of gateways carry out testing simultaneously.
Preferably, in any of the above embodiments, the multi-portal gateway 1101 is further configured to receive a time synchronization control instruction sent by the background server;
the multi-portal gateway 1101 is further configured to adjust the time of the local real-time clock of the cluster gateway according to the time synchronization control instruction.
According to the scheme, the local real-time clock is adjusted by adjusting the time synchronization instruction, so that the synchronization precision of the local real-time clock and other gateways in the combined test is ensured, the accuracy degree of the timestamp in the uploaded data is greatly improved, and the synchronization adjustment period can be shortened or delayed through the time synchronization instruction.
Preferably, in any of the embodiments described above, the multi-portal gateway 1101 is specifically configured to receive a test instruction sent by the background server 1100 for testing any terminal test instrument;
or, the multi-port gateway 1101 is specifically configured to receive a test instruction sent by the background server 1100 for testing a plurality of terminal test instruments.
According to the scheme, the multi-network-port gateway connection terminal test equipment realizes multi-angle test on the same or multiple terminals and equipment from single-point test expansion of single equipment to multiple test instruments through one-to-one, one-to-multiple and many-to-many control modes, and can also be deployed and tested in different places, so that cooperative system level test is carried out on some associated equipment distributed in different areas, the test application range is greatly expanded, and the test requirements of multiple terminals and multiple equipment of the Internet of things at present are greatly met.
Preferably, in any of the above embodiments, the multi-portal gateway 1101 is specifically configured to decompose the test instruction;
the multi-port gateway 1101 is specifically configured to sort the plurality of sub-test instructions obtained after the decomposition, and obtain the plurality of sorted sub-test instructions.
According to the scheme, each test instrument is subjected to SCPI command decomposition and sequencing, and then is sequentially sent to the corresponding test instrument, so that the test instruments are controlled to test, and simultaneous testing of various instruments can be realized.
Preferably, in any of the above embodiments, the test instructions include: a test request instruction, a start test instruction, a stop test instruction, a continue test instruction, a terminate test instruction, a trigger test condition instruction, a data processing instruction, and/or a data return instruction.
According to the scheme, a complete multi-terminal test function is realized through a plurality of control instructions such as a test requirement instruction, a test starting instruction, a test stopping instruction, a test continuing instruction, a test stopping instruction, a test triggering condition instruction, a data processing instruction and/or a data returning instruction.
In one embodiment, as shown in fig. 4, a remote testing system based on a multi-portal gateway includes: the system comprises a background server, a plurality of gateways and a plurality of terminal test instruments; the background server can comprise a database, a data processing server and a Web server; the plurality of terminal test instruments comprise a program-controlled power supply, a signal source, an oscilloscope, a network analyzer, a spectrum analyzer, a noise analyzer and the like; the background server is in communication interconnection with the plurality of gateways in a wired or wireless mode; the terminal test instrument is used for testing a tested terminal or equipment.
In an embodiment, a remote interactive system includes: the remote testing system based on the multi-network-port gateway in any embodiment is adopted.
According to the scheme, the multi-network-port gateway is used for receiving the test instruction sent by the background server, decomposing and sequencing the test instruction to obtain a plurality of sequenced sub-test instructions, the plurality of sequenced sub-test instructions are loaded into an SCPI instruction set, and the terminal test instrument carries out remote test according to the SCPI instruction set issued by the multi-network-port gateway;
the single-point test of single equipment can be expanded to a plurality of test instruments to carry out multi-angle test on the same or a plurality of terminals and equipment, and the test can be deployed in different places to carry out cooperative system-level test on some associated equipment distributed in different areas. The test application range is greatly expanded, and the test requirements of the existing Internet of things terminal and equipment are greatly met.
It is understood that some or all of the alternative embodiments described above may be included in some embodiments.
It should be noted that the above embodiments are product embodiments corresponding to the previous method embodiments, and for the description of each optional implementation in the product embodiments, reference may be made to corresponding descriptions in the above method embodiments, and details are not described here again.
The reader should understand that in the description of this specification, reference to the description of the terms "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
While the invention has been described with reference to specific embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A remote testing method based on a multi-network-port gateway is characterized by comprising the following steps:
the multi-network-port gateway receives a test instruction sent by a background server;
the multi-network-port gateway decomposes and sorts the test instructions to obtain a plurality of sorted sub-test instructions;
the multi-network-port gateway loads the sequenced sub-test instructions into an SCPI instruction set;
and the terminal test instrument carries out remote test according to the SCPI instruction set issued by the multi-network-port gateway.
2. The remote testing method based on the multi-portal gateway according to claim 1, further comprising: and the multi-network-port gateway collects the test data of the terminal test instrument, performs preset processing, and transmits the preset processed test data back to the background server.
3. The remote testing method based on the multi-portal gateway as claimed in claim 1 or 2, further comprising:
the multi-network-port gateway receives a time synchronization control instruction sent by the background server;
and the multi-network-port gateway adjusts the time of a local real-time clock of the multi-network-port gateway according to the time synchronization control instruction.
4. The remote testing method based on the multi-portal gateway as claimed in claim 1, wherein the receiving of the testing instruction sent by the background server by the multi-portal gateway specifically includes:
the multi-network-port gateway receives a test instruction which is sent by a background server and used for testing any one Internet of things terminal connected with a terminal test instrument;
or the multi-network-port gateway receives a test instruction which is sent by the background server and used for testing a plurality of internet-of-things terminals connected with the terminal test instrument.
5. The remote testing method based on the multi-portal gateway as claimed in claim 1, wherein the multi-portal gateway decomposes and sorts the test instruction, and the obtaining of the sorted sub-test instructions specifically comprises:
the multi-network-port gateway decomposes the test instruction;
and the multi-network-port gateway sequences the plurality of sub-test instructions obtained after decomposition to obtain a plurality of sequenced sub-test instructions.
6. The method according to claim 1, 2, 4 or 5, wherein the test instruction comprises: a test request instruction, a start test instruction, a stop test instruction, a continue test instruction, a terminate test instruction, a trigger test condition instruction, a data processing instruction, and/or a data return instruction.
7. A remote test system based on a multi-network-port gateway is characterized by comprising: the system comprises a multi-network-port gateway, a background server and a terminal test instrument;
the multi-network-port gateway is used for receiving the test instruction sent by the background server;
the multi-network-port gateway is also used for decomposing and sequencing the test instructions to obtain a plurality of sequenced sub-test instructions;
the multi-network-port gateway is also used for loading the sequenced sub-test instructions into an SCPI instruction set;
the terminal test instrument is used for carrying out remote test according to the SCPI instruction set issued by the multi-network-port gateway.
8. The remote testing system according to claim 7, wherein the multi-portal gateway is further configured to collect test data of the terminal test instrument, perform preset processing, and transmit the test data after the preset processing back to the background server.
9. The remote testing system based on the multi-portal gateway as claimed in claim 7 or 8, wherein the multi-portal gateway is further configured to receive a time synchronization control command sent by the background server;
and the multi-network-port gateway is also used for adjusting the time of the local real-time clock of the cluster gateway according to the time synchronization control instruction.
10. A remote interactive system, comprising: a remote test system based on a multi-portal gateway using any of the above claims 7-9.
CN202210023962.3A 2022-01-11 2022-01-11 Remote testing method, system and interactive system based on multi-network-port gateway Active CN114050988B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210023962.3A CN114050988B (en) 2022-01-11 2022-01-11 Remote testing method, system and interactive system based on multi-network-port gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210023962.3A CN114050988B (en) 2022-01-11 2022-01-11 Remote testing method, system and interactive system based on multi-network-port gateway

Publications (2)

Publication Number Publication Date
CN114050988A true CN114050988A (en) 2022-02-15
CN114050988B CN114050988B (en) 2022-05-06

Family

ID=80213559

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210023962.3A Active CN114050988B (en) 2022-01-11 2022-01-11 Remote testing method, system and interactive system based on multi-network-port gateway

Country Status (1)

Country Link
CN (1) CN114050988B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546324A (en) * 2011-10-19 2012-07-04 无锡物联网产业研究院 Internet of things intelligent home system and method
US20160162406A1 (en) * 2008-11-24 2016-06-09 Fernando Latorre Systems, Methods, and Apparatuses to Decompose a Sequential Program Into Multiple Threads, Execute Said Threads, and Reconstruct the Sequential Execution
CN107040459A (en) * 2017-03-27 2017-08-11 高岩 A kind of intelligent industrial secure cloud gateway device system and method
CN107517246A (en) * 2017-08-04 2017-12-26 天津理工大学 Large-scale scientific research apparatus based on Internet of Things shares and on-line intelligence test system
CN110187693A (en) * 2019-07-04 2019-08-30 华夏碧水环保科技有限公司 A kind of intelligence water utilities managing and control system
CN112187944A (en) * 2020-09-30 2021-01-05 国网河北省电力有限公司信息通信分公司 Method for processing one number service message
CN112217813A (en) * 2020-09-30 2021-01-12 武汉中科通达高新技术股份有限公司 Front-end equipment control method and device
CN112671596A (en) * 2020-11-18 2021-04-16 武汉迈威通信股份有限公司 Remote control automatic test system and test method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160162406A1 (en) * 2008-11-24 2016-06-09 Fernando Latorre Systems, Methods, and Apparatuses to Decompose a Sequential Program Into Multiple Threads, Execute Said Threads, and Reconstruct the Sequential Execution
CN102546324A (en) * 2011-10-19 2012-07-04 无锡物联网产业研究院 Internet of things intelligent home system and method
CN107040459A (en) * 2017-03-27 2017-08-11 高岩 A kind of intelligent industrial secure cloud gateway device system and method
CN107517246A (en) * 2017-08-04 2017-12-26 天津理工大学 Large-scale scientific research apparatus based on Internet of Things shares and on-line intelligence test system
CN110187693A (en) * 2019-07-04 2019-08-30 华夏碧水环保科技有限公司 A kind of intelligence water utilities managing and control system
CN112187944A (en) * 2020-09-30 2021-01-05 国网河北省电力有限公司信息通信分公司 Method for processing one number service message
CN112217813A (en) * 2020-09-30 2021-01-12 武汉中科通达高新技术股份有限公司 Front-end equipment control method and device
CN112671596A (en) * 2020-11-18 2021-04-16 武汉迈威通信股份有限公司 Remote control automatic test system and test method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
崔海涛等: ""基于嵌入式系统的智能调测平台设计"", 《自动化与仪器仪表》 *
殷贤华等: "自动测试系统网络实验室的组建", 《电气电子教学学报》 *

Also Published As

Publication number Publication date
CN114050988B (en) 2022-05-06

Similar Documents

Publication Publication Date Title
CN106657991B (en) A kind of magnetic resonance method of quality control, server and system
CN106776165A (en) Server performance method of testing and system
CN107908548A (en) A kind of method and apparatus for generating test case
CN102810076B (en) storage medium switching control system and method
CN108319550A (en) A kind of test system and test method
CN104978262A (en) Terminal test method and terminal test device
CN106708716A (en) Software testing method, device and system
CN109946536A (en) A kind of comprehensive reliability test system based on OPC technology
CN114050988B (en) Remote testing method, system and interactive system based on multi-network-port gateway
CN109656756A (en) Multi-core CPU board adjustment method and device, mobile memory medium
CN116400666A (en) LabVIEW-based rotary platform testing system
CN113063454A (en) Detection system and detection method for batch detection of water immersion sensors
CN113037398A (en) Automatic production and test system and method for Bluetooth chip and Bluetooth module
CN105843211B (en) Monitoring system and method for power battery management system test
CN108282384B (en) Automatic test system for communication stability of MMS server based on IEC61850
CN116244133A (en) Hard disk test management method, system, terminal and storage medium
CN107342904B (en) Data simulation method and device for testing substation control layer equipment of transformer substation
CN112579352A (en) Quality monitoring result generation method, storage medium and quality monitoring system of service data processing link
CN103401734B (en) The method and apparatus of the signal quality debugging of high speed data bus
CN112543110A (en) Network communication simulation method and system of mass power distribution automatic terminal
CN111190073B (en) Power grid wide area measurement interaction and search service system
CN113625031A (en) Intelligent electric meter terminal, MR data reporting system and method
CN112441255B (en) Automatic testing device and method for flight parameter quick-taking recording system
CN103631232A (en) Data monitoring control method and data monitoring control device
EP2159697A1 (en) Method for evaluating a production rule for a memory management analysis

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