CN115407691A - Signal switching method and system and automatic testing method and system applying same - Google Patents

Signal switching method and system and automatic testing method and system applying same Download PDF

Info

Publication number
CN115407691A
CN115407691A CN202210991932.1A CN202210991932A CN115407691A CN 115407691 A CN115407691 A CN 115407691A CN 202210991932 A CN202210991932 A CN 202210991932A CN 115407691 A CN115407691 A CN 115407691A
Authority
CN
China
Prior art keywords
industrial personal
personal computer
signal switching
computer
target
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.)
Pending
Application number
CN202210991932.1A
Other languages
Chinese (zh)
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.)
State Nuclear Power Automation System Engineering Co Ltd
Original Assignee
State Nuclear Power Automation System Engineering 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 State Nuclear Power Automation System Engineering Co Ltd filed Critical State Nuclear Power Automation System Engineering Co Ltd
Priority to CN202210991932.1A priority Critical patent/CN115407691A/en
Publication of CN115407691A publication Critical patent/CN115407691A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0428Safety, monitoring
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24024Safety, surveillance

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Position Input By Displaying (AREA)

Abstract

The application discloses a signal switching method and system and an automatic testing method and system applying the same. The automatic test method can control a plurality of industrial computers to carry out automatic test through a master control computer, and comprises the following steps: setting signal switching state information of a target industrial personal computer as a simulation control state; obtaining test operation to be executed by a target industrial personal computer; generating a corresponding control instruction according to the test operation and sending the control instruction to a target industrial personal computer; and converting the control instruction into a second electric signal and sending the second electric signal to the target industrial personal computer according to the signal switching method of the industrial personal computer, and controlling the target industrial personal computer to synchronously execute the test operation. The signal switching method enables the industrial personal computer not to be frequently restarted, and can also be normally switched between a simulation control state and a trackball control state. The automatic testing method is based on the signal switching method, so that the continuous and smooth testing process can be ensured, the testing efficiency is improved, the target industrial personal computer is prevented from being frequently restarted, and the service life loss of the target industrial personal computer is reduced.

Description

Signal switching method and system and automatic testing method and system applying same
Technical Field
The present disclosure relates to the field of automated testing technologies, and in particular, to a signal switching method and system, and an automated testing method and system using the same.
Background
At present, in the picture test of an industrial personal computer, a manual test method is adopted. For example, a tester clicks various buttons in a screen of the industrial personal computer to switch the screen for testing. However, under the conditions of too many pictures to be tested and huge number of industrial personal computers to be tested, manual testing is time-consuming and labor-consuming, and testing efficiency is low.
Moreover, the industrial personal computer with the security level generally uses the PS2 protocol to communicate with the external device, but the industrial personal computer based on the PS2 protocol communication does not support the hot plug of the external device. In the test process of the industrial personal computer, if the industrial personal computer needs to be switched between the trackball operation state and the simulation operation state, the industrial personal computer needs to be restarted usually. Resulting in inconsistent testing process and loss of service life of the industrial personal computer.
Disclosure of Invention
In order to solve the above technical problems, the present application provides a signal switching method and system, and an automatic testing method and system using the same. When the test is executed and the signal switching state is switched to the analog control state, the signal of the trackball from the industrial personal computer can be shielded, and a control instruction sent by the main control computer is received to carry out automatic test.
In a first aspect, the present application provides a signal switching method, including:
receiving a control instruction of a main control computer and a first electric signal of a track ball of the industrial control computer;
acquiring signal switching state information of the industrial personal computer;
if the signal switching state information is a trackball operating state, the first electric signal is sent to the industrial personal computer;
and if the signal switching state information is in a simulation control state, converting the control instruction into a second electric signal and sending the second electric signal to the industrial personal computer.
In the scheme, a control instruction sent by a main control computer and a first electric signal sent by a track ball from the industrial control computer are received. At this moment, the control instruction or the first electric signal needs to be sent to the industrial personal computer by acquiring signal switching state information of the industrial personal computer. If the signal switching state information is a trackball operating state, the state information indicates that the industrial personal computer is operated by the trackball, and then a first electric signal sent by the trackball can be directly sent to the industrial personal computer. If the signal switching state information is in a simulation control state, the signal switching state information indicates that the industrial personal computer is controlled by the main control computer, and then a control instruction sent by the main control computer can be converted into a second electric signal and then sent to the industrial personal computer. That is to say, according to different signal switching state information for the industrial computer transmission different electric signals for the industrial computer need not frequently restart also can be in the simulation and control state and the normal switching of trackball control state. And in the simulation control state, the electric signal from the track ball can be shielded for the industrial personal computer so as to avoid interrupting the simulation control process.
Preferably, the signal switching method further comprises:
if the communication connection between the trackball and the industrial personal computer is disconnected, a reset signal is obtained;
and reestablishing the communication connection between the trackball and the industrial personal computer based on the reset signal.
In this application scheme, realize the trackball hot plug of industrial computer through reset signal, avoid the trackball to be unable to continue to use and can't in time change the trackball because of falling the electricity.
In a second aspect, the application provides an automatic testing method of an industrial personal computer, the automatic testing method comprising the following steps:
setting signal switching state information of a target industrial personal computer as a simulation control state;
obtaining test operation to be executed by the target industrial personal computer;
generating a corresponding control instruction according to the test operation and sending the control instruction to the target industrial personal computer;
according to the signal switching method of the industrial personal computer in any application scheme of the first aspect, the control instruction is converted into the second electric signal and sent to the target industrial personal computer, and the target industrial personal computer is controlled to synchronously execute the test operation.
In the scheme, in order to realize the automatic test of a plurality of industrial personal computers based on the main control computer, the industrial personal computers which need to carry out the automatic test are used as target industrial personal computers. After the signal switching state information of the target industrial personal computer is set to be in a simulation control state, an electric signal sent by a track ball of the target industrial personal computer can be shielded, and then the target industrial personal computer synchronously executes test operation through a control instruction sent to the target industrial personal computer. The automatic test of the main control computer on a plurality of target industrial personal computers is realized, the consistency and smoothness of the test process are ensured, the test efficiency is improved, the target industrial personal computers are prevented from being frequently restarted, and the service life loss of the target industrial personal computers is reduced.
Preferably, the step of obtaining the test operation to be executed by the target industrial personal computer comprises:
acquiring a display picture of the target industrial personal computer and synchronizing the display picture to the main industrial personal computer;
and collecting the test operation based on the display picture.
In the scheme, the display image of the target industrial personal computer can be synchronized to the main control computer, and the corresponding control instruction is generated according to the test operation on the display image of the target industrial personal computer on the main control computer and is transmitted to the target industrial personal computer to control the target industrial personal computer to execute synchronously.
Preferably, the step of obtaining the test operation to be executed by the target industrial personal computer comprises:
acquiring a test file corresponding to the target industrial personal computer;
and analyzing the test file to obtain at least one test operation.
In the scheme, a plurality of test operations to be executed by the target industrial personal computer can be recorded into the test file in advance, and when the automatic test is required, the test file is analyzed to obtain the pre-recorded test operations, so that a series of complex tests aiming at the target industrial personal computer can be realized.
Preferably, a signal switching state indicator lamp is arranged corresponding to each industrial personal computer, and the signal switching state indicator lamp indicates that the corresponding industrial personal computer is in a trackball control state or a simulation control state according to the signal switching state information.
In the scheme, the signal switching state information corresponding to the industrial personal computer is displayed and expressed by the signal switching state indicating lamp. Therefore, testers can clearly know the signal switching state information of each industrial personal computer, and select a target industrial personal computer to set corresponding signal switching state information according to test requirements.
In a third aspect, the present application provides a signal switching system, comprising:
the signal receiving module is used for receiving a control instruction of a main control computer and a first electric signal of a track ball of the industrial control computer;
the state information acquisition module is used for acquiring signal switching state information of the industrial personal computer;
the first electric signal sending module is used for sending the first electric signal to the industrial personal computer if the signal switching state information is the trackball operating state;
and the second electric signal sending module is used for converting the control instruction into a second electric signal and sending the second electric signal to the industrial personal computer if the signal switching state information is in a simulation control state.
In the scheme, a control instruction sent by a main control computer and a first electric signal sent by a track ball from the industrial control computer are received. At this moment, the control instruction or the first electric signal needs to be sent to the industrial personal computer by acquiring signal switching state information of the industrial personal computer. If the signal switching state information is a trackball operating state, the state information indicates that the industrial personal computer is operated by the trackball, and then a first electric signal sent by the trackball can be directly sent to the industrial personal computer. If the signal switching state information is in the analog control state, the signal switching state information indicates that the industrial personal computer is controlled by the main control computer, and then the control instruction sent by the main control computer can be converted into a second electric signal and then sent to the industrial personal computer. That is to say, according to different signal switching state information for the industrial computer transmission different electric signals for the industrial computer need not frequently restart also can be in the simulation and control state and the normal switching of trackball control state. And under the simulation control state, can shield the signal of telecommunication that comes from its trackball for the industrial computer to avoid interrupting the simulation control process.
Preferably, the signal switching system further comprises a reset module, and the reset module is configured to acquire a reset signal if the communication connection between the trackball and the industrial personal computer is disconnected, and reestablish the communication connection between the trackball and the industrial personal computer based on the reset signal.
In this application scheme, realize the trackball hot plug of industrial computer through reset signal, avoid the trackball to be unable to continue to use and can't in time change the trackball because of falling the electricity.
In a fourth aspect, the present application provides an automated testing system of an industrial personal computer, the automated testing system comprising:
the setting state information module is used for setting the signal switching state information of the target industrial personal computer to be in a simulation operation state;
the test operation acquisition module is used for acquiring test operations to be executed by the target industrial personal computer;
the instruction sending module is used for generating a corresponding control instruction according to the test operation and sending the control instruction to the target industrial personal computer;
and the control module is used for converting the control instruction into the second electric signal to be sent to the target industrial personal computer according to the signal switching system of the industrial personal computer in any application scheme of the third aspect, and controlling the target industrial personal computer to synchronously execute the test operation.
In the scheme, in order to realize the automatic test of a plurality of industrial personal computers based on the main control computer, the industrial personal computer which needs to carry out the automatic test is taken as a target industrial personal computer. After the signal switching state information of the target industrial personal computer is set to be in a simulation control state, an electric signal sent by a track ball of the target industrial personal computer can be shielded, and then the target industrial personal computer synchronously executes test operation through a control instruction sent to the target industrial personal computer. The automatic test of the main control computer on a plurality of target industrial personal computers is realized, the consistency and smoothness of the test process are ensured, the test efficiency is improved, the target industrial personal computers are prevented from being frequently restarted, and the service life loss of the target industrial personal computers is reduced.
Preferably, the obtaining test operation module includes:
the picture synchronization unit is used for acquiring a display picture of the target industrial personal computer and synchronizing the display picture to the main industrial personal computer;
and the test operation acquisition unit is used for acquiring the test operation based on the display picture.
In the scheme, the display image of the target industrial personal computer can be synchronized to the main control computer, and the corresponding control instruction is generated according to the test operation performed on the display image of the target industrial personal computer on the main control computer and transmitted to the target industrial personal computer to control the target industrial personal computer to execute synchronously.
Preferably, the obtaining test operation module includes:
the test file acquisition unit is used for acquiring a test file corresponding to the target industrial personal computer;
and the test file analyzing unit is used for analyzing the test file to obtain at least one test operation.
In the scheme, a plurality of test operations to be executed by the target industrial personal computer can be recorded into the test file in advance, and when the automatic test is required, the test operation recorded in advance is obtained by analyzing the test file, so that a series of complex tests aiming at the target industrial personal computer can be realized.
Preferably, a signal switching state indicator lamp is arranged corresponding to each industrial personal computer, and the signal switching state indicator lamp indicates that the corresponding industrial personal computer is in a trackball operating state or a simulation operating state according to the signal switching state information.
In the scheme, the signal switching state indicator lamp is used for displaying and expressing the signal switching state information corresponding to the industrial personal computer. Therefore, testers can clearly know the signal switching state information of each industrial personal computer, and select a target industrial personal computer to set corresponding signal switching state information according to test requirements.
In a fifth aspect, the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the signal switching method of the industrial personal computer according to the first aspect and any one of the application schemes when executing the computer program, and implements the automated testing method of the industrial personal computer according to the second aspect and any one of the application schemes.
In a sixth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the signal switching method of the industrial personal computer according to the first aspect and any one of the application schemes, and the automated testing method of the industrial personal computer according to the second aspect and any one of the application schemes.
The positive progress effect of this application lies in:
the application provides a signal switching method and a signal switching system of an industrial personal computer, different electric signals are transmitted to the industrial personal computer according to different signal switching state information, so that the industrial personal computer can be normally switched between a simulation control state and a track ball control state without being frequently restarted. And under the simulation control state, can shield the signal of telecommunication that comes from its trackball for the industrial computer to avoid interrupting the simulation control process.
The application provides an automatic test method and system of an industrial personal computer, and in order to realize automatic test of a plurality of industrial personal computers based on the main control computer, the industrial personal computer needing automatic test is used as a target industrial personal computer. After the signal switching state information of the target industrial personal computer is set to be in a simulation control state, an electric signal sent by a track ball of the target industrial personal computer can be shielded, and then the target industrial personal computer synchronously executes test operation through a control instruction sent to the target industrial personal computer. The automatic test of the main control computer on a plurality of target industrial personal computers is realized, the consistency and smoothness of the test process are ensured, the test efficiency is improved, the target industrial personal computers are prevented from being restarted frequently, and the service life loss of the target industrial personal computers is reduced.
Drawings
Fig. 1 is a schematic flow diagram of a signal switching method of an industrial personal computer provided in embodiment 1 of the present application;
fig. 2 is a schematic flowchart of an automated testing method of an industrial personal computer according to embodiment 2 of the present application;
fig. 3 is a schematic structural diagram of a signal switching system of an industrial personal computer provided in embodiment 3 of the present application;
fig. 4 is a schematic structural diagram of an automated testing system of an industrial personal computer provided in embodiment 4 of the present application;
fig. 5 is a schematic structural diagram of an electronic device provided in embodiment 5 of the present application.
Detailed Description
The present application is further illustrated by way of the following examples, but is not intended to be limited thereby within the scope of the examples described.
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present embodiment, "a plurality" means two or more unless otherwise specified.
Example 1
The embodiment provides a signal switching method of an industrial personal computer.
As shown in fig. 1, the method comprises steps S11-S13:
s11, receiving a control instruction of a main control computer and a first electric signal of a track ball of the industrial control computer;
s12, acquiring signal switching state information of the industrial personal computer;
s13, if the signal switching state information is a trackball operation state, the first electric signal is sent to the industrial personal computer; and if the signal switching state information is in a simulation control state, converting the control instruction into a second electric signal and sending the second electric signal to the industrial personal computer.
The trackball is a horizontal and vertical coordinate positioning device which communicates by adopting a PS2 protocol. That is to say, the industrial personal computer adopts the PS2 protocol to communicate with external equipment, and the first electric signal and the second electric signal both need to accord with the PS2 protocol standard.
In some embodiments, in order to avoid restarting the industrial personal computer after the power failure of the trackball of the industrial personal computer, the method further comprises: if the communication connection between the trackball and the industrial personal computer is disconnected, a reset signal is obtained; and reestablishing the communication connection between the trackball and the industrial personal computer based on the reset signal.
In this embodiment, the state information is switched according to different signals to transmit different electric signals to the industrial personal computer, so that the industrial personal computer does not need to be frequently restarted, and can also be normally switched between a simulation control state and a trackball control state.
Example 2
The embodiment provides an automatic test method of industrial personal computers, and the industrial personal computers can be controlled to carry out automatic test through the main control computer.
As shown in fig. 2, the method includes steps S21-S24:
s21, setting signal switching state information of a target industrial personal computer to be in a simulation control state;
s22, obtaining test operation to be executed by the target industrial personal computer;
s23, generating a corresponding control instruction according to the test operation and sending the control instruction to the target industrial personal computer;
and S24, converting the control instruction into the second electric signal and sending the second electric signal to the target industrial personal computer according to the signal switching method of the industrial personal computer in the embodiment 1, and controlling the target industrial personal computer to synchronously execute the test operation.
And the signal switching state indicator lamps are arranged corresponding to the industrial personal computers and indicate that the corresponding industrial personal computers are in a trackball control state or a simulation control state according to the signal switching state information.
In step S22, the master computer may control the target industrial computer to synchronously execute the test operation in a picture synchronization manner.
Specifically, step S22 includes: acquiring a display picture of the target industrial personal computer and synchronizing the display picture to the main industrial personal computer; and collecting the test operation based on the display picture.
Illustratively, one path of the one-to-two splitter is connected to a display system of the industrial personal computer, the other path of the one-to-two splitter is connected to a picture acquisition card of the main control computer, and a display picture of the industrial personal computer is transmitted to the main control computer for display in a video signal mode. On the main control computer, when various test operations are carried out based on the display picture, the test operations are collected, and corresponding control instructions are generated according to the test operations and transmitted to the industrial control computer to be synchronously executed.
In step S22, the main control computer may also control the target industrial control computer to synchronously execute the test operation by using the pre-recorded test file.
Specifically, step S22 includes: acquiring a test file corresponding to the target industrial personal computer; and analyzing the test file to obtain at least one test operation.
Illustratively, a test file including a plurality of test operations is pre-recorded according to a test flow. And when the test operation of the target industrial personal computer needs to be acquired, analyzing the test file, sequentially generating corresponding control instructions according to the analyzed test operation, and outputting the corresponding control instructions to the industrial personal computer to synchronously execute the control instructions.
In this embodiment, in order to realize the automated test of a plurality of industrial personal computers based on the main control computer, the industrial personal computer which needs to perform the automated test is used as the target industrial personal computer. After the signal switching state information of the target industrial personal computer is set to be in a simulation control state, an electric signal sent by a track ball of the target industrial personal computer can be shielded, and then the target industrial personal computer synchronously executes test operation through a control command sent to the target industrial personal computer. The automatic test of the main control computer on a plurality of target industrial personal computers is realized, the consistency and smoothness of the test process are ensured, the test efficiency is improved, the target industrial personal computers are prevented from being restarted frequently, and the service life loss of the target industrial personal computers is reduced.
Example 3
The embodiment provides a signal switching system of an industrial personal computer.
As shown in fig. 3, the system includes:
the signal receiving module 31 is used for receiving a control instruction of a main control computer and a first electric signal of a track ball of the industrial control computer;
the state information acquisition module 32 is used for acquiring signal switching state information of the industrial personal computer;
the first electric signal sending module 33 is configured to send the first electric signal to the industrial personal computer if the signal switching state information is the trackball operating state;
and the second electric signal sending module 34 is configured to convert the control instruction into a second electric signal and send the second electric signal to the industrial personal computer if the signal switching state information is in the analog control state.
The track ball is horizontal and vertical coordinate positioning equipment which adopts a PS2 protocol for communication. That is to say, the industrial personal computer adopts the PS2 protocol to communicate with the external device, and both the first electrical signal and the second electrical signal are required to conform to the PS2 protocol standard.
In some embodiments, in order to avoid restarting the industrial personal computer after the power failure of the trackball of the industrial personal computer, the system further comprises a reset module 35. The reset module 35 is configured to acquire a reset signal if the communication connection between the trackball and the industrial personal computer is disconnected, and reestablish the communication connection between the trackball and the industrial personal computer based on the reset signal.
In this embodiment, the state information is switched according to different signals to transmit different electric signals to the industrial personal computer, so that the industrial personal computer does not need to be frequently restarted, and can also be normally switched between a simulation control state and a trackball control state.
Example 4
The embodiment provides an automatic test system of industrial personal computer, can control a plurality of industrial personal computer through the main control computer and carry out automated testing.
As shown in fig. 4, the system includes:
a state information setting module 41, configured to set signal switching state information of the target industrial personal computer to a simulated operation state;
the obtaining test operation module 42 is used for obtaining the test operation to be executed by the target industrial personal computer;
the instruction sending module 43 is configured to generate a corresponding control instruction according to the test operation and send the control instruction to the target industrial personal computer;
and the control module 44 is used for converting the control command into a second electric signal which is sent to the target industrial personal computer according to the signal switching system of the industrial personal computer in the embodiment 3, and controlling the target industrial personal computer to synchronously execute the test operation.
And the signal switching state indicator lamps are arranged corresponding to the industrial personal computers and indicate that the corresponding industrial personal computers are in a trackball control state or a simulation control state according to the signal switching state information.
In the test operation obtaining module 42, the main control computer may control the target industrial control computer to synchronously execute the test operation in a picture synchronization manner.
Specifically, the get test operation module 42 includes:
the picture synchronization unit is used for acquiring a display picture of the target industrial personal computer and synchronizing the display picture to the main industrial personal computer;
and the test operation acquisition unit is used for acquiring the test operation based on the display picture.
Illustratively, one path of the two-branch splitter is connected to a display system of the industrial personal computer, and the other path of the two-branch splitter is connected to a picture acquisition card of the main control computer, so that a display picture of the industrial personal computer is transmitted to the main control computer in a video signal mode for display. On the main control computer, when various test operations are carried out based on the display picture, the test operations are collected, and corresponding control instructions are generated according to the test operations and transmitted to the industrial control computer to be synchronously executed.
In the obtaining test operation module 42, the main control computer may also control the target industrial control computer to synchronously execute the test operation by using the pre-recorded test file.
Specifically, the get test operation module 42 includes:
the test file acquisition unit is used for acquiring a test file corresponding to the target industrial personal computer;
and the test file analysis unit is used for analyzing the test file to obtain at least one test operation.
Illustratively, a test file including a plurality of test operations is pre-recorded according to a test flow. And when the test operation of the target industrial personal computer needs to be acquired, analyzing the test file, sequentially generating corresponding control instructions according to the analyzed test operation, and outputting the corresponding control instructions to the industrial personal computer to synchronously execute the control instructions.
In this embodiment, in order to realize the automated test of a plurality of industrial personal computers based on the main control computer, the industrial personal computer which needs to perform the automated test is used as the target industrial personal computer. After the signal switching state information of the target industrial personal computer is set to be in a simulation control state, an electric signal sent by a track ball of the target industrial personal computer can be shielded, and then the target industrial personal computer synchronously executes test operation through a control command sent to the target industrial personal computer. The automatic test of the main control computer on a plurality of target industrial personal computers is realized, the consistency and smoothness of the test process are ensured, the test efficiency is improved, the target industrial personal computers are prevented from being frequently restarted, and the service life loss of the target industrial personal computers is reduced.
Example 5
Fig. 5 is a schematic structural diagram of an electronic device according to embodiment 5 of the present invention. The electronic device comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, and the processor can realize the signal switching method of the industrial personal computer in embodiment 1 or the automatic testing method of the industrial personal computer in embodiment 2 when executing the program. The electronic device 50 shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
As shown in FIG. 5, electronic device 50 may take the form of a general purpose computing device, which may be a server device, for example. The components of the electronic device 50 may include, but are not limited to: the at least one processor 51, the at least one memory 52, and a bus 53 connecting the various system components including the memory 52 and the processor 51.
The bus 53 includes a data bus, an address bus, and a control bus.
The memory 52 may include volatile memory, such as Random Access Memory (RAM) 521 and/or cache memory 522, and may further include Read Only Memory (ROM) 523.
Memory 52 may also include a program/utility 525 having a set (at least one) of program modules 524, such program modules 524 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The processor 51 executes various functional applications and data processing, such as a signal switching method of the industrial personal computer of embodiment 1 of the present invention or an automated testing method of the industrial personal computer of embodiment 2, by running a computer program stored in the memory 52.
The electronic device 50 may also communicate with one or more external devices 54 (e.g., a keyboard, a pointing device, etc.). Such communication may be through an input/output (I/O) interface 55. Also, the model-generating device 50 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via a network adapter 56. As shown in FIG. 5, the network adapter 56 communicates with the other modules of the model-generating device 50 via the bus 53. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the model-generating device 50, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, to name a few.
It should be noted that although in the above detailed description several units/modules or sub-units/modules of the electronic device are mentioned, such a division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more of the units/modules described above may be embodied in one unit/module according to embodiments of the invention. Conversely, the features and functions of one unit/module described above may be further divided into embodiments by a plurality of units/modules.
Example 6
The present embodiment provides a computer-readable storage medium on which a computer program is stored, the program implementing, when executed by a processor, the signal switching method of the industrial personal computer of embodiment 1 or the automated testing method of the industrial personal computer of embodiment 2.
More specific examples that may be employed by the readable storage medium include, but are not limited to: a portable disk, a hard disk, random access memory, read only memory, erasable programmable read only memory, optical storage device, magnetic storage device, or any suitable combination of the foregoing.
In a possible implementation manner, the present invention may also be implemented in the form of a program product, which includes program codes, and when the program product runs on the terminal device, the program codes are used for causing the terminal device to execute a signal switching method of the industrial personal computer in embodiment 1 or an automatic test method of the industrial personal computer in embodiment 2.
Where program code for carrying out the invention is written in any combination of one or more programming languages, the program code may execute entirely on the user device, partly on the user device, as a stand-alone software package, partly on the user device and partly on a remote device or entirely on the remote device.
While specific embodiments of the present application have been described above, it will be understood by those skilled in the art that this is by way of illustration only, and that the scope of the present application is defined by the appended claims. Various changes and modifications to these embodiments may be made by those skilled in the art without departing from the spirit and principles of this application, and these changes and modifications are intended to be included within the scope of this application.

Claims (10)

1. A signal switching method of an industrial personal computer is characterized by comprising the following steps:
receiving a control instruction of a main control computer and a first electric signal of a track ball of the industrial control computer;
acquiring signal switching state information of the industrial personal computer;
if the signal switching state information is a trackball control state, the first electric signal is sent to the industrial personal computer;
and if the signal switching state information is in a simulation control state, converting the control instruction into a second electric signal and sending the second electric signal to the industrial personal computer.
2. The signal switching method of the industrial personal computer according to claim 1, further comprising:
if the communication connection between the trackball and the industrial personal computer is disconnected, a reset signal is obtained;
and reestablishing the communication connection between the trackball and the industrial personal computer based on the reset signal.
3. The automatic test method of the industrial personal computer is characterized in that a plurality of industrial personal computers are controlled to carry out automatic test through a master control computer, and the automatic test method comprises the following steps:
setting signal switching state information of a target industrial personal computer as a simulation control state;
acquiring test operation required to be executed by the target industrial personal computer;
generating a corresponding control instruction according to the test operation and sending the control instruction to the target industrial personal computer;
the signal switching method of the industrial personal computer according to claim 1 or 2, wherein the control instruction is converted into the second electric signal and is sent to the target industrial personal computer, and the target industrial personal computer is controlled to synchronously execute the test operation.
4. The automatic test method of the industrial personal computer according to claim 3, wherein the step of obtaining the test operation to be executed by the target industrial personal computer comprises:
acquiring a display picture of the target industrial personal computer and synchronizing the display picture to the main industrial personal computer;
and collecting the test operation based on the display picture.
5. The automatic test method of the industrial personal computer according to claim 3, wherein the step of obtaining the test operation to be executed by the target industrial personal computer comprises:
acquiring a test file corresponding to the target industrial personal computer;
and analyzing the test file to obtain at least one test operation.
6. The automatic test method of the industrial personal computer according to claim 3, wherein a signal switching state indicator lamp is arranged corresponding to each industrial personal computer, and the signal switching state indicator lamp indicates that the corresponding industrial personal computer is in a trackball operation state or a simulation operation state according to the signal switching state information.
7. The utility model provides a signal switching system of industrial computer which characterized in that, signal switching system includes:
the signal receiving module is used for receiving a control instruction of a main control computer and a first electric signal of a track ball of the industrial control computer;
the state information acquisition module is used for acquiring signal switching state information of the industrial personal computer;
the first electric signal sending module is used for sending the first electric signal to the industrial personal computer if the signal switching state information is a trackball operation state;
and the second electric signal sending module is used for converting the control instruction into a second electric signal and sending the second electric signal to the industrial personal computer if the signal switching state information is in a simulation control state.
8. The utility model provides an automatic test system of industrial computer, its characterized in that, a plurality of through master control computer control the industrial computer carries out automated testing, automatic test system includes:
the setting state information module is used for setting the signal switching state information of the target industrial personal computer to be in a simulation operation state;
the test operation acquisition module is used for acquiring test operations to be executed by the target industrial personal computer;
the instruction sending module is used for generating a corresponding control instruction according to the test operation and sending the control instruction to the target industrial personal computer;
the control module is used for converting the control instruction into the second electric signal and sending the second electric signal to the target industrial personal computer according to the signal switching system of the industrial personal computer in claim 7, and controlling the target industrial personal computer to synchronously execute the test operation.
9. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements a signal switching method of an industrial personal computer according to any one of claims 1 to 2 or an automated testing method of an industrial personal computer according to any one of claims 3 to 6 when executing the computer program.
10. A computer-readable storage medium on which a computer program is stored, the computer program, when executed by a processor, implementing the signal switching method of an industrial personal computer according to any one of claims 1 to 2 or the automated testing method of the industrial personal computer according to any one of claims 3 to 6.
CN202210991932.1A 2022-08-17 2022-08-17 Signal switching method and system and automatic testing method and system applying same Pending CN115407691A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210991932.1A CN115407691A (en) 2022-08-17 2022-08-17 Signal switching method and system and automatic testing method and system applying same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210991932.1A CN115407691A (en) 2022-08-17 2022-08-17 Signal switching method and system and automatic testing method and system applying same

Publications (1)

Publication Number Publication Date
CN115407691A true CN115407691A (en) 2022-11-29

Family

ID=84159912

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210991932.1A Pending CN115407691A (en) 2022-08-17 2022-08-17 Signal switching method and system and automatic testing method and system applying same

Country Status (1)

Country Link
CN (1) CN115407691A (en)

Similar Documents

Publication Publication Date Title
CN107463500B (en) Debugging method, medium, system and computing device of test script
CN112339796B (en) Detection method and device for electric locomotive control circuit and mobile terminal
CN111241111B (en) Data query method and device, data comparison method and device, medium and equipment
CN115687106A (en) Reinjection hardware-based in-loop automatic testing method and device
CN109032947A (en) For the test method of operating system, device, equipment and storage medium
CN112685299B (en) Automatic test method, device, electronic equipment and readable storage medium
CN114325316A (en) Board card testing method and device, electronic equipment and storage medium
CN112506772B (en) Web automatic test method, device, electronic equipment and storage medium
CN113849356A (en) Equipment testing method and device, electronic equipment and storage medium
CN113709243A (en) Equipment remote control method and device, electronic equipment and storage medium
CN108984380A (en) A kind of server test method, device and medium based on linux system
CN115407691A (en) Signal switching method and system and automatic testing method and system applying same
CN111258875A (en) Interface test method and system, electronic device and storage medium
CN113641575B (en) Test method, device, equipment and storage medium
CN116124368A (en) Water leakage detection method for cooling water pipe joint of electromagnetic bearing control cabinet of main helium fan
CN114095409A (en) Remote detection method, device, equipment and storage medium for terminal equipment fault
CN112860560A (en) Remote debugging method and system for field machine, electronic device and electronic equipment
CN108874605B (en) Display screen testing method and device, electronic equipment and storage medium
CN112953788A (en) Network state detection method and device, BMC and storage medium
CN117498977A (en) Multi-device synchronization method, system, electronic device and storage medium
CN112506764B (en) Method, system, equipment and medium for automatically testing RDS function
CN113342713B (en) Remote interface simulation device and method
CN109344087B (en) Multi-terminal synchronous debugging method and system of equipment, storage medium and processor
CN111708684B (en) Recording method and device for page access and computer system
CN114157841A (en) Control equipment rapid positioning method and device

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