CN115145776A - Automatic testing method, device, equipment, system and storage medium - Google Patents

Automatic testing method, device, equipment, system and storage medium Download PDF

Info

Publication number
CN115145776A
CN115145776A CN202210886915.1A CN202210886915A CN115145776A CN 115145776 A CN115145776 A CN 115145776A CN 202210886915 A CN202210886915 A CN 202210886915A CN 115145776 A CN115145776 A CN 115145776A
Authority
CN
China
Prior art keywords
hardware
test
real
real hardware
equipment
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
CN202210886915.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.)
Sceneray Co Ltd
Original Assignee
Sceneray 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 Sceneray Co Ltd filed Critical Sceneray Co Ltd
Priority to CN202210886915.1A priority Critical patent/CN115145776A/en
Publication of CN115145776A publication Critical patent/CN115145776A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2263Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using neural networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Evolutionary Computation (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • Signal Processing (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Telephone Function (AREA)

Abstract

The application provides an automatic testing method, an automatic testing device, automatic testing equipment, an automatic testing system and a storage medium, wherein the automatic testing equipment is loaded with virtual hardware, and the virtual hardware is used for simulating real hardware to replace the real hardware to carry out automatic testing; the method comprises the following steps: acquiring the test condition of the real hardware; simulating the real hardware under the test condition by using the virtual hardware; when the virtual hardware receives a test instruction sent by an external device, executing at least one of the following processes by using the virtual hardware: sending feedback information corresponding to the test instruction to the external equipment; and generating a visual result corresponding to the test instruction and displaying the visual result on display equipment. Various working parameters of the real hardware are simulated by using software, so that various behaviors of the virtual hardware are completely consistent with those of the real hardware, the real hardware is replaced for automatic testing, and the testing cost is saved.

Description

Automatic testing method, device, equipment, system and storage medium
Technical Field
The present application relates to the field of automated testing, implantable devices, and deep learning, and more particularly, to an automated testing method, apparatus, device, system, and storage medium.
Background
In the prior art, in the process of automatically testing hardware, particularly when the interaction between the hardware and software is tested, various parameter settings are required to be performed on the hardware, but it is sometimes very difficult to directly set hardware parameters, some critical conditions cannot be met, or some operations must be completed by manual intervention, which obviously cannot meet the requirements of automatic testing.
For example, to test whether the performance of the software of the mobile phone meets the requirements under various conditions of the battery level of 1% to 100% (at intervals of 1%), 100 conditions of the mobile phone battery level of 1% to 100% are created. Currently, the charging time needs to be controlled, and the conditions are artificially created and tested one by one, which is inconvenient and time-consuming.
Based on this, the present application provides an automated testing method, apparatus, device, system and storage medium to solve the above problems in the prior art.
Disclosure of Invention
The application aims to provide an automatic testing method, device, equipment, system and storage medium, various working parameters of real hardware are simulated by software, the virtual hardware is used for replacing the real hardware to carry out automatic testing, and testing cost is saved.
The purpose of the application is realized by adopting the following technical scheme:
in a first aspect, the present application provides an automated testing method, which is applied to an automated testing device, where the automated testing device is loaded with virtual hardware, and the virtual hardware is used to simulate real hardware to replace the real hardware for automated testing;
the method comprises the following steps:
acquiring a test condition of the real hardware, wherein the test condition is used for indicating a test parameter value of a working parameter of the real hardware;
simulating the real hardware under the test condition by using the virtual hardware;
when the virtual hardware receives a test instruction sent by an external device, the virtual hardware is used for executing at least one of the following processes: sending feedback information corresponding to the test instruction to the external equipment; generating a visual result corresponding to the test instruction and displaying the visual result on display equipment;
wherein the real hardware comprises at least one of: a stimulator; a mobile phone; a tablet computer; a charger.
The technical scheme has the beneficial effects that: various working parameters of real hardware (such as a stimulator, a mobile phone, a tablet personal computer and a charger) are simulated by software, so that various behaviors of the virtual hardware are completely consistent with those of the real hardware, the virtual hardware can be used for replacing the real hardware to carry out automatic testing, and the testing cost is saved.
The above method is applied to an automated test equipment which is loaded with non-physical virtual hardware, which is not real hardware but software for simulating real hardware, which is called virtual hardware, and is intended to be distinguished from real hardware. The virtual hardware can simulate real hardware under different working parameters, for example, the real hardware with full electric quantity can be simulated, and the real hardware with exhausted electric quantity can also be simulated; the simulation method can simulate real hardware with the hardware temperature of minus 30 ℃, and can also simulate real hardware with the hardware temperature of 120 ℃ and the like.
Because the virtual hardware is used for simulating an automatic test process of real hardware, in the process of utilizing the virtual hardware to carry out an automatic test, the real hardware which is to be simulated by software and works under what test condition needs to be determined, so that the test condition (or test environment and test requirement) of the real hardware to be tested needs to be obtained firstly, the test condition can indicate the test parameter value of the working parameter of the real hardware, the test condition is different, and the test parameter value of the corresponding working parameter is different; secondly, simulating the real hardware under the test condition by using the virtual hardware, namely adjusting a control strategy of the virtual hardware in the running process, so as to ensure that each behavior of the virtual hardware is consistent with each behavior of the real hardware under the same test condition; when the external equipment sends (automatic) test instructions to the virtual hardware, the virtual hardware receives the test instructions, and sends feedback information corresponding to the test instructions to the external equipment or generates and displays visual results corresponding to the test instructions.
The method has the advantages that various working parameters of real hardware do not need to be set, the problem that the real hardware cannot meet some critical conditions (for example, the real hardware works at the absolute zero degree) or some operations can be completed only by manual intervention (for example, the manual reset function of the test) is solved, the dependence of the automatic test process of various types of software on the real hardware is eliminated, conditions are provided for automatic test, and diversified automatic test requirements are met. On one hand, the critical conditions that real hardware cannot reach or is difficult to reach are conveniently simulated, such as the temperature is absolute zero, the position is 8000 m at the altitude, and the like, and because the virtual hardware can simulate the real hardware working under any test conditions and is not limited by the critical conditions, the test requirements of workers (testers, developers, and the like) can be met, and the flexibility degree is high; on one hand, the method can be realized without manual assistance, so that a real automatic test process is realized, and the consumed labor cost is low; on one hand, even if the test conditions which can be met by real hardware in the prior art are met, the virtual hardware provided by the application is adopted for carrying out automatic test, the test cost is lower, only the type and the test conditions of the real hardware simulated by software are switched, the automatic test equipment can be conveniently used for simulating the real hardware of various types under various test conditions, for example, the same virtual hardware can simulate an A-type mobile phone with the electric quantity of 30%, a B-type mobile phone with a built-in 5G chip, a C-type stimulator with the number of electrode leads of 2, a D-type charger with the hardware temperature of 26 ℃ and the like, compared with the test by using the real hardware, the time for switching various real hardware is shortened, and the occupied space of various real hardware is reduced; on the other hand, the automatic testing process can be completed by using one automatic testing device and directly setting the testing parameter values of all the working parameters, the real hardware does not need to wait to reach various testing conditions, the stability is higher, the time and the difficulty for creating the testing conditions for the real hardware are reduced, the waiting time of workers is greatly saved, the testing efficiency is improved, the operation is simple, and the human errors are avoided.
In some alternative embodiments, the virtual hardware and the real hardware communicate with the external device using the same communication protocol.
The technical scheme has the beneficial effects that: the virtual hardware completely complies with a communication protocol (i.e. a communication protocol) between the real hardware and an external device (e.g. a cloud server, other electronic device), for example, an instruction a is used for inquiring the device power, and for the real hardware (e.g. a mobile phone), the current mobile phone power should be returned when the instruction a is received; for the virtual hardware, the power of the current virtual hardware is also returned after the instruction A is received. The advantage of this is that, the complete consistency between the virtual hardware and the real hardware in the communication interface and the communication process is ensured, so, the performance of various software (such as program control software, takeout software, and instant communication software) run on a certain working parameter (electric quantity) by the real hardware is tested, and the virtual hardware can completely replace the physical hardware.
In some optional embodiments, said simulating, with said virtual hardware, said real hardware under said test condition comprises:
obtaining a control strategy of the real hardware under the test condition, wherein the control strategy comprises one or more of the following strategies: the method comprises the following steps of (1) electric quantity strategy, memory strategy, background process limiting strategy, display strategy, animation strategy, communication strategy and sharing strategy;
and controlling the running process of the virtual hardware on the automatic test equipment by using the acquired control strategy so that the virtual hardware is consistent with the performance of the real hardware under the test condition when responding to the test instruction.
The technical scheme has the beneficial effects that: in order to make the virtual hardware consistent with the performance of the real hardware under the same test condition when responding to the test instruction, the running process of the virtual hardware is controlled by adopting the control strategy which is the same as that of the real hardware, wherein the control strategy comprises an electric quantity strategy, a memory strategy, a background process limiting strategy, a display strategy, an animation strategy, a communication strategy, a sharing strategy and the like, and the performance of the virtual hardware and the performance of the real hardware on corresponding functions of electric quantity control, memory control, background process limiting, display control, animation effect control, communication control, sharing limiting and the like are ensured to be completely consistent.
In some optional embodiments, the obtaining the control strategy of the real hardware under the test condition includes:
inputting the test condition into a control strategy model to obtain a control strategy corresponding to the test condition;
the training process of the control strategy model may include:
acquiring a training set, wherein the training set comprises a plurality of training data, and each training data comprises a sample parameter value of a working parameter of the real hardware and label data of a corresponding control strategy;
for each training data in the training set, performing the following:
inputting sample parameter values of the working parameters of the real hardware into a preset deep learning model to obtain prediction data of a corresponding control strategy;
updating model parameters of the deep learning model based on the prediction data and the labeling data of the corresponding control strategy result;
detecting whether a preset training end condition is met; if yes, taking the trained deep learning model as the control strategy model; and if not, continuing to train the deep learning model by using the next training data.
The technical scheme has the beneficial effects that: through design, a proper amount of neuron calculation nodes and a multilayer operation hierarchical structure are established, a proper input layer and an output layer are selected, a preset deep learning model can be obtained, a function relation from input to output is established through learning and tuning of the deep learning model, although the function relation between the input and the output cannot be found in 100%, the function relation can be close to a real association relation as far as possible, the control strategy model obtained through training can be used for predicting and obtaining corresponding output data based on any input data, and the method is wide in application range, high in calculation result accuracy and high in reliability.
In some optional embodiments, the visualization result corresponding to the test instruction includes front-end content and background content;
the method further comprises the following steps:
receiving a selection operation of a user for a display element in the front-end content by using the interactive equipment;
in response to the selection operation, determining background content corresponding to the selected display element by using the virtual hardware;
and displaying background content and other background content corresponding to the selected display element in a differentiated manner by using the display equipment in different display modes.
The technical scheme has the beneficial effects that: on one hand, the visual result corresponding to the test instruction comprises front-end content and background content, so that working parameters in the front-end content are visualized, and workers can conveniently know the currently adopted test conditions and the real-time change condition of the working parameters in the whole automatic test process; on the other hand, background contents (namely code lines, code blocks and the like corresponding to the running process) of the virtual hardware are visualized, parameter interaction messages between the external equipment and the virtual hardware are transparent, and found problems are conveniently located. For example, the real hardware simulated by the software is a stimulator, in the automatic test process of the program control software, the program control software is loaded on an external device, a test instruction, such as a stimulation control instruction, is sent to the virtual hardware, so as to adjust the voltage amplitude of a stimulation pulse signal of the stimulator to 5V, and the worker finds that the virtual hardware does not adjust the voltage amplitude of the stimulation pulse signal based on the stimulation control instruction, so that the worker selects a display element in the front-end content corresponding to the voltage amplitude on the virtual hardware, and visually sees through a background code corresponding to the selected display element that the given upper limit of the voltage amplitude of the virtual hardware is 4.5V, and the voltage amplitude in the stimulation control instruction is greater than the given upper limit, which results in adjustment failure, and then the worker can adjust the allowable control upper limit of the program control software to be not greater than 4.5V, thereby avoiding the situation that the adjustment failure occurs when a doctor or a patient uses the program control software in the future.
In some alternative embodiments, the real hardware is a stimulator for implantation in a patient, the stimulator including an IPG and at least one electrode lead;
the operating parameters of the stimulator include one or more of hardware parameters, software parameters, communication parameters, and logging parameters;
the hardware parameters comprise one or more of the number of electrode leads, the type of the electrode leads, the implantation position of the electrode leads, the number of electrode contacts, physical impedance, the type of a chip, the state of a magnetic switch, electric quantity, signal intensity, hardware temperature, ambient humidity, charging state, voltage and current;
the software parameters comprise one or more of current mode, monitoring period, pairing information, bound patient information, stimulation mode and stimulation program;
the communication parameters include a communication mode;
the log parameters comprise one or more of IPG running state logs, IPG running abnormity logs, working time length, stimulation time length, communication time length and activation times.
The technical scheme has the beneficial effects that: various working parameters of the stimulator are simulated by utilizing the virtual hardware, and diversified test functions are provided. Because the cost of stimulator product is expensive, prior art's test process cost is higher, can't carry out the saturation test, adopts the automatic test equipment that this application provided, greatly reduced test cost and test time, conveniently extensively carry out multiple automatic test to the stimulator, further promoted the security of stimulator, improved the treatment of stimulator on the whole, promoted implanted medical instrument's market prospect.
In some alternative embodiments, the real hardware is a cell phone;
the working parameters of the mobile phone comprise one or more of electric quantity, signal strength, hardware temperature, environment humidity, charging state, voltage, current, position and posture.
The technical scheme has the beneficial effects that: various working parameters of the mobile phone are simulated by utilizing the virtual hardware, and diversified test functions are provided.
In a second aspect, the present application provides an automated testing apparatus, which is applied to an automated testing device, where the automated testing device is loaded with virtual hardware, and the virtual hardware is used to simulate real hardware to replace the real hardware for automated testing;
the device comprises:
the condition module is used for acquiring the test condition of the real hardware, and the test condition is used for indicating the test parameter value of the working parameter of the real hardware;
a simulation module for simulating the real hardware under the test condition by using the virtual hardware;
the execution module is used for executing at least one of the following processes by using the virtual hardware when the virtual hardware receives a test instruction sent by an external device: sending feedback information corresponding to the test instruction to the external equipment; generating a visual result corresponding to the test instruction and displaying the visual result on display equipment;
wherein the real hardware comprises at least one of: a stimulator; a mobile phone; a tablet computer; a charger.
In some alternative embodiments, the virtual hardware and the real hardware communicate with the external device using the same communication protocol.
In some alternative embodiments, the simulation module is configured to:
obtaining a control strategy of the real hardware under the test condition, wherein the control strategy comprises one or more of the following strategies: the method comprises the following steps of (1) electric quantity strategy, memory strategy, background process limiting strategy, display strategy, animation strategy, communication strategy and sharing strategy;
and controlling the running process of the virtual hardware on the automatic test equipment by using the acquired control strategy so that the virtual hardware is consistent with the performance of the real hardware under the test condition when responding to the test instruction.
In some optional embodiments, the simulation module obtains the control strategy of the real hardware under the test condition by adopting the following modes:
inputting the test condition into a control strategy model to obtain a control strategy corresponding to the test condition;
the training process of the control strategy model may include:
acquiring a training set, wherein the training set comprises a plurality of training data, and each training data comprises a sample parameter value of a working parameter of the real hardware and label data of a corresponding control strategy;
for each training data in the training set, performing the following:
inputting sample parameter values of the working parameters of the real hardware into a preset deep learning model to obtain prediction data of a corresponding control strategy;
updating model parameters of the deep learning model based on the prediction data and the labeling data of the corresponding control strategy result;
detecting whether a preset training end condition is met; if yes, taking the trained deep learning model as the control strategy model; and if not, continuing to train the deep learning model by using the next training data.
In some optional embodiments, the visualization result corresponding to the test instruction includes front-end content and background content;
the apparatus further comprises a positioning module configured to:
receiving a selection operation of a user for a display element in the front-end content by utilizing the interactive equipment;
in response to the selection operation, determining background content corresponding to the selected display element by using the virtual hardware;
and utilizing the display equipment to differentially display the background content and other background contents corresponding to the selected display element in different display modes.
In some alternative embodiments, the actual hardware is a stimulator for implantation in a patient, the stimulator including an IPG and at least one electrode lead;
the operating parameters of the stimulator include one or more of hardware parameters, software parameters, communication parameters, and logging parameters;
the hardware parameters comprise one or more of the number of electrode leads, the type of the electrode leads, the implantation position of the electrode leads, the number of electrode contacts, physical impedance, chip type, magnetic switch state, electric quantity, signal intensity, hardware temperature, environment humidity, charging state, voltage and current;
the software parameters comprise one or more of current mode, monitoring period, pairing information, patient binding information, stimulation mode and stimulation program;
the communication parameters include a communication mode;
the log parameters comprise one or more of IPG running state logs, IPG running abnormity logs, working time length, stimulation time length, communication time length and activation times.
In some alternative embodiments, the real hardware is a cell phone;
the working parameters of the mobile phone comprise one or more of electric quantity, signal strength, hardware temperature, environment humidity, charging state, voltage, current, position and posture.
In a third aspect, the present application provides an automated test equipment, where the automated test equipment is loaded with virtual hardware, and the virtual hardware is used to simulate real hardware to replace the real hardware for automated testing;
the automated test equipment comprises a memory storing a computer program and a processor implementing the steps of any of the methods or the functions of any of the devices when the processor executes the computer program.
In a fourth aspect, the present application provides an automated test system, comprising:
any of the automated test equipment described above;
the external equipment is used for sending a test instruction to the automatic test equipment;
a display device for providing a display function;
and the interaction equipment is used for providing an interaction function.
In a fifth aspect, the present application provides a computer readable storage medium storing a computer program which, when executed by a processor, implements the steps of any one of the above methods or implements the functions of any one of the above apparatuses.
Drawings
The present application is further described below with reference to the accompanying drawings and embodiments.
Fig. 1 shows a block diagram of an automated testing system according to an embodiment of the present disclosure.
Fig. 2 shows a schematic flowchart of an automated testing method according to an embodiment of the present application.
Fig. 3 shows a schematic flowchart of simulating real hardware by using virtual hardware according to an embodiment of the present application.
Fig. 4 shows a flowchart illustrating a problem of positioning using virtual hardware according to an embodiment of the present application.
Fig. 5 shows a schematic structural diagram of an automated testing device according to an embodiment of the present application.
Fig. 6 shows a block diagram of an automated testing device according to an embodiment of the present disclosure.
Fig. 7 shows a schematic structural diagram of a program product provided in an embodiment of the present application.
Detailed Description
The technical solutions in the present application will be described below with reference to the drawings and the detailed description of the present application, and it should be noted that, in the present application, new embodiments can be formed by any combination of the following described embodiments or technical features without conflict.
In the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone, wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, a and b, a and c, b and c, a and b and c, wherein a, b and c can be single or multiple. It is to be noted that "at least one item" may also be interpreted as "one or more items".
It should also be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described herein as "exemplary" or "such as" is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the following, a brief description of one of the application areas (i.e. implantable devices) of the embodiments of the present application will be given first.
An implantable neurostimulation system (an implantable medical system) generally includes a stimulator implanted in a patient and a programming device disposed outside the patient. The existing nerve regulation and control technology is mainly characterized in that an electrode is implanted in a specific structure (namely a target spot) in a body through a three-dimensional directional operation, and a stimulator implanted in the body of a patient sends an electric pulse to the target spot through the electrode to regulate and control the electric activity and the function of a corresponding nerve structure and network, so that symptoms are improved, and pain is relieved. The stimulator may be any one of an Implantable electrical nerve stimulation device, an Implantable cardiac electrical stimulation System (also called a cardiac pacemaker), an Implantable Drug Delivery System (IDDS for short), and a lead switching device. Examples of the implantable neural electrical Stimulation device include Deep Brain Stimulation (DBS), cortical Brain Stimulation (CNS), spinal Cord Stimulation (SCS), sacral Nerve Stimulation (SNS), and Vagal Nerve Stimulation (VNS).
The stimulator may include an IPG, an extension lead and an electrode lead, the IPG (implantable pulse generator) is disposed in the body of the patient, receives a programmed instruction sent by the programmed device, provides controllable electrical stimulation energy to the body tissue by means of a sealed battery and a circuit, and delivers one or two controllable specific electrical stimulations to a specific region of the body tissue through the implanted extension lead and the electrode lead. The extension lead is used in cooperation with the IPG and is used as a transmission medium of the electrical stimulation signal to transmit the electrical stimulation signal generated by the IPG to the electrode lead. The electrode leads deliver electrical stimulation to specific areas of tissue within the body through a plurality of electrode contacts. The stimulator is provided with one or more paths of electrode leads on one side or two sides, a plurality of electrode contacts are arranged on the electrode leads, and the electrode contacts can be uniformly arranged or non-uniformly arranged on the circumference of the electrode leads. As an example, the electrode contacts may be arranged in an array of 4 rows and 3 columns (12 electrode contacts in total) in the circumferential direction of the electrode lead. The electrode contacts may include stimulation electrode contacts and/or collection electrode contacts. The electrode contact may have a sheet shape, an annular shape, a dot shape, or the like.
In some possible embodiments, the stimulated in vivo tissue may be brain tissue of a patient, and the stimulated site may be a specific site of the brain tissue. The sites stimulated are generally different when the patient's disease type is different, as are the number of stimulation contacts (single or multiple) used, the application of one or more (single or multiple) specific electrical stimulation signals, and stimulation parameter data. The present embodiments are not limited to the type of disease applicable, and may be the type of disease applicable to Deep Brain Stimulation (DBS), spinal Cord Stimulation (SCS), pelvic stimulation, gastric stimulation, peripheral nerve stimulation, and functional electrical stimulation. Among the types of diseases that DBS may be used for treatment or management include, but are not limited to: convulsive disorders (e.g., epilepsy), pain, migraine, psychiatric disorders (e.g., major Depressive Disorder (MDD)), manic depression, anxiety, post-traumatic stress disorder, depression, obsessive Compulsive Disorder (OCD), behavioral disorders, mood disorders, memory disorders, mental state disorders, movement disorders (e.g., essential tremor or parkinson's disease), huntington's disease, alzheimer's disease, drug addiction, autism, or other neurological or psychiatric diseases and injuries.
In the embodiment of the application, when the program control device is connected with the stimulator in a program control manner, the program control device can be used for adjusting stimulation parameters of the stimulator (different electrical stimulation signals corresponding to different stimulation parameters are different), the stimulator can sense bioelectricity activity of a deep part of the brain of a patient to acquire electrophysiological signals, and the stimulation parameters of the electrical stimulation signals of the stimulator can be continuously adjusted through the acquired electrophysiological signals.
The stimulation parameters may include at least one of: frequency (e.g., number of electrical stimulation pulse signals per unit time in 1s, in Hz), pulse width (duration of each pulse, in μ s), amplitude (typically expressed in terms of voltage, i.e., intensity of each pulse, in V), timing (e.g., which may be continuous or triggered), stimulation mode (including one or more of current mode, voltage mode, timed stimulation mode, and cyclic stimulation mode), physician upper and lower control limits (physician adjustable range), and patient upper and lower control limits (patient self-adjustable range).
In a specific application scenario, the stimulation parameters of the stimulator may be adjusted in a current mode or a voltage mode.
The programming device may be a physician programming device (i.e., a programming device used by a physician) or a patient programming device (i.e., a programming device used by a patient). The doctor program control device may be, for example, a tablet computer, a notebook computer, a desktop computer, a mobile phone, or other intelligent terminal device with program control software. The patient program control device may be, for example, an intelligent terminal device such as a tablet computer, a laptop computer, a desktop computer, or a mobile phone, which is loaded with program control software, or may be another electronic device with a program control function (for example, a charger with a program control function, or a data acquisition device).
The embodiment of the application does not limit data interaction between the doctor program control equipment and the stimulator, and when a doctor performs remote program control, the doctor program control equipment can perform data interaction with the stimulator through the server and the patient program control equipment. When the doctor goes offline and performs program control face to face with the patient, the doctor program control device can perform data interaction with the stimulator through the patient program control device, and the doctor program control device can also perform data interaction with the stimulator directly.
In some alternative embodiments, the patient-programmed device may include a master (in communication with the server) and a slave (in communication with the stimulator), with the master and slave communicatively coupled. The doctor program control equipment can perform data interaction with the server through a 3G/4G/5G network, the server can perform data interaction with the host through the 3G/4G/5G network, the host can perform data interaction with the submachine through a Bluetooth protocol/WIFI protocol/USB protocol, the submachine can perform data interaction with the stimulator through a 401MHz-406MHz working frequency band/2.4 GHz-2.48GHz working frequency band, and the doctor program control equipment can perform data interaction with the stimulator directly through the 401MHz-406MHz working frequency band/2.4 GHz-2.48GHz working frequency band.
Except for the application field of the implantable device, the embodiment of the application can also be applied to the technical field of other medical devices or even non-medical devices, the embodiment of the application is not limited to this, and the application can be applied to occasions related to automatic testing, and the instruction sent by the external device to the virtual hardware can not be limited to the test instruction.
System embodiment
Referring to fig. 1, fig. 1 shows a block diagram of an automated testing system according to an embodiment of the present application.
The embodiment of the application provides an automatic test system, the automatic test system includes:
an automated test equipment 10;
the external device 20 is used for sending a test instruction to the automatic test equipment;
a display device 30 for providing a display function;
and an interactive device 40 for providing interactive functions.
The external device 20 is not limited in this embodiment of the application, and may be, for example, a mobile phone, a tablet computer, a notebook computer, a desktop computer, a local server, a cloud server, or the external device 20 may be a workstation or a console.
The interaction device 40 is not limited in this embodiment of the application, and may be, for example, an intelligent terminal device such as a mobile phone, a tablet computer, a notebook computer, a desktop computer, and an intelligent wearable device, or the interaction device 40 may be a workstation or a console.
The embodiment of the present application does not limit the manner of receiving various manual operations (or user operations) by using the interaction device 40. The operations are divided according to input modes, and may include, for example, a text input operation, an audio input operation, a video input operation, a key operation, a mouse operation, a keyboard operation, an intelligent stylus operation, and the like. These operations include, but are not limited to, parameter setting operations, selection operations, and the like.
In some alternative embodiments, the automated test equipment 10 may be integrated with the external equipment 20. The "external" of the external device 20 is external with respect to "real hardware" and "virtual hardware". That is, the external device 20 may be loaded with first software for performing data interaction with real hardware, the automatic test equipment 10 may be loaded with second software for simulating the real hardware, the first software and the second software may be installed in the same electronic device, and the first software may be automatically tested by using virtual hardware obtained by simulating the second software, for example, a problem that may occur when the first software runs on the real hardware may be tested. The first software may be, for example, programmed software, take-away software, instant messaging software, mapping software, and the like.
In some alternative embodiments, the automated test equipment 10 may be integrated with the display device 30.
In some alternative embodiments, the automated test equipment 10 may be integrated with the interaction device 40.
In some alternative embodiments, the automated test equipment 10 may be integrated with the display device 30 and the interaction device 40.
In some alternative embodiments, the automated test equipment 10 may be integrated with the external device 20, the display device 30, and the interaction device 40.
In the embodiment of the present application, the automatic test equipment 10 is loaded with virtual hardware, and the virtual hardware is used for simulating real hardware to replace the real hardware to perform an automatic test; the automated test equipment 10 includes a memory storing a computer program and a processor implementing the steps of the automated test method or implementing the functions of the automated test device when executing the computer program. The automated testing method will be explained first.
Method embodiment
Referring to fig. 2, fig. 2 shows a schematic flowchart of an automated testing method provided in the embodiment of the present application.
The embodiment of the application provides an automatic test method, which is applied to automatic test equipment, wherein the automatic test equipment is loaded with virtual hardware, and the virtual hardware is used for simulating real hardware to replace the real hardware for automatic test;
the method comprises the following steps:
step S101: acquiring a test condition of the real hardware, wherein the test condition is used for indicating a test parameter value of a working parameter of the real hardware;
step S102: simulating the real hardware under the test condition by using the virtual hardware;
step S103: when the virtual hardware receives a test instruction sent by an external device, executing at least one of the following processes by using the virtual hardware: sending feedback information corresponding to the test instruction to the external equipment; generating a visual result corresponding to the test instruction and displaying the visual result on display equipment;
wherein the real hardware comprises at least one of: a stimulator; a mobile phone; a tablet computer; a charger.
Therefore, various working parameters of real hardware (such as a stimulator, a mobile phone, a tablet personal computer and a charger) are simulated by using software, so that various behaviors of the virtual hardware are completely consistent with those of the real hardware, the virtual hardware can be used for replacing the real hardware to carry out automatic testing, and the testing cost is saved.
The above method is applied to an automatic test equipment loaded with non-physical virtual hardware, which is not real hardware but software for simulating real hardware, which is called virtual hardware, and is intended to distinguish from real hardware. The virtual hardware can simulate real hardware under different working parameters, for example, the real hardware with full electric quantity can be simulated, and the real hardware with exhausted electric quantity can also be simulated; the simulation method can simulate real hardware with the hardware temperature of minus 30 ℃, and can also simulate real hardware with the hardware temperature of 120 ℃ and the like.
Because the virtual hardware is used for simulating an automatic test process of real hardware, in the process of utilizing the virtual hardware to carry out an automatic test, the real hardware which is to be simulated by software and works under what test condition needs to be determined, so that the test condition (or test environment and test requirement) of the real hardware to be tested needs to be obtained firstly, the test condition can indicate the test parameter value of the working parameter of the real hardware, the test condition is different, and the test parameter value of the corresponding working parameter is different; secondly, simulating the real hardware under the test condition by using the virtual hardware, namely adjusting a control strategy of the virtual hardware in the running process, so as to ensure that each behavior of the virtual hardware is consistent with each behavior of the real hardware under the same test condition; when the external equipment sends (automatic) test instructions to the virtual hardware, the virtual hardware receives the test instructions, and sends feedback information corresponding to the test instructions to the external equipment or generates and displays visual results corresponding to the test instructions.
The method has the advantages that various working parameters of real hardware do not need to be set, the problem that the real hardware cannot meet some critical conditions (for example, the real hardware works at the absolute zero degree) or certain operations can be completed only by manual intervention (for example, the manual reset function of the test) is solved, the dependence of the automatic test process of various types of software on the real hardware is eliminated, conditions are provided for automatic test, and the diversified automatic test requirements are met.
On one hand, the critical conditions that real hardware cannot reach or is difficult to reach are conveniently simulated, for example, the temperature is absolute zero, the position is 8000 m at the altitude, and the like.
On one hand, the method can be realized without manual assistance, so that a real automatic test process is realized, and the consumed labor cost is low.
On the one hand, even if the test conditions which can be met by real hardware in the prior art are met, the virtual hardware provided by the application is adopted for carrying out automatic test, the test cost is lower, as long as the type and the test conditions of the real hardware simulated by software are switched, the automatic test equipment can be conveniently used for simulating the real hardware of various types under various test conditions, for example, the same virtual hardware can simulate an A-type mobile phone with the electric quantity of 30%, a B-type mobile phone with a built-in 5G chip, a C-type stimulator with the number of electrode leads of 2, a D-type charger with the hardware temperature of 26 ℃ and the like, compared with the test by using the real hardware, the pick-and-place time for switching various real hardware is reduced, and the occupied space of various real hardware is reduced.
On the other hand, the automatic testing process can be completed by using one automatic testing device and directly setting the testing parameter values of all the working parameters, the real hardware does not need to wait to reach various testing conditions, the stability is higher, the time and the difficulty for creating the testing conditions for the real hardware are reduced, the waiting time of workers is greatly saved, the testing efficiency is improved, the operation is simple, and the human errors are avoided.
As an example, the actual hardware is a stimulator, the test instruction is, for example, an inquiry instruction to inquire about the electrical quantity, the stimulation mode, the physical impedance, the communication mode, and the stimulation duration of the stimulator, and the feedback information corresponding to the stimulation instruction may be, for example, "electrical quantity: 65 percent; stimulation mode: a timed stimulation mode; physical impedance: 2&3, 2.7K Ω; communication mode: LFP; stimulation duration: 236 days ". Wherein, the physical impedance: 2&3, 2.7K Ω means that the impedance between the electrode contact No. 2 and the electrode contact No. 3 is 2.7K Ω. LFP (Local Field Potential) is a Local Field Potential of an in vivo tissue or nucleus, which may be, for example, brain tissue or other in vivo tissue. Local field potentials are a special class of electrophysiological signals. In a living body, dendritic synaptic activity in a certain volume of biological tissue induces a current, which, when flowing through an extracellular space with a certain impedance, forms a certain voltage distribution, and the local voltage value recorded at a certain point is called local field potential.
As another example, the real hardware is a mobile phone, the test instruction is to display on the mobile phone food merchants within 500 meters around the location a, the visual result corresponding to the test instruction includes front-end content and background content, the front-end content is recommendation information of the food merchants within 500 meters around the location a, and the background content is a page source code corresponding to the front-end content.
In some alternative embodiments, the virtual hardware and the real hardware communicate with the external device using the same communication protocol.
Therefore, the virtual hardware completely complies with a communication protocol (namely a communication protocol) between the real hardware and the external device (such as a cloud server and other electronic devices), such as an instruction A for inquiring the device power, and for the real hardware (such as a mobile phone), the current mobile phone power is returned when the instruction A is received; for the virtual hardware, the power of the current virtual hardware is also returned after the instruction A is received. The advantage of this is that the complete consistency between the virtual hardware and the real hardware in the communication interface and the communication process is ensured, so that the virtual hardware can completely replace the physical hardware when the real hardware is tested to run various software (such as program control software, takeout software and instant communication software) on a certain working parameter (electric quantity).
Communication protocols (english: communications protocols, also called transport protocols) refer in the field of telecommunications to: a system standard that allows two or more terminals in a transmission system to communicate information between each other in any physical medium also refers to a common language for computer communications or network devices. The communication protocol defines the lexical, semantic, and synchronization rules in the communication as well as the possible error detection and correction. The communication protocol may be implemented in hardware, software, or both. In the embodiment of the present application, the communication protocol used by the virtual hardware (non-physical hardware, which is a kind of development software) to communicate with the external device is completely consistent with the communication protocol used by the real hardware (simulated by the virtual hardware) to communicate with the external device.
The communication protocol is not limited in the embodiments of the present application, and may include, for example, one or more of the following: ARP (Address resolution Protocol), BGP, BOOTP, bonjour, CAN (CANbus), DHCP (dynamic host configuration Protocol), DNS, DVMRP (Distance-Vector Multicast Routing Protocol), DDNS, EGP (external Gateway Protocol), FTP (File Transfer Protocol), FTPS, GIT, gopher, HDLC, HELLO, HTTP, HTTPS, ICMP, IDRP (Internet Routing Protocol), IEEE 802, IGMP, IGP (internal Gateway Protocol/internal Gateway Protocol), IMAP, IP, IPX, IS-IS, LCP (Link Control Protocol/Link Control Protocol), LLC (Logical Link Control Protocol/Logical Link Control) LBRY, MLD (Multicast Listener Discovery Protocol/Multicast Listener Discovery), NCP (Network Control Protocol/Network Control Protocol), NNTP, NTP, PPP (point-to-point Protocol), POP (post office Protocol), RARP, RIP (Routing information Protocol), RTP, RTSP (instant streaming Protocol), RSVP, SLIP (Serial Link connection Protocol/Serial Link Internet Protocol), SNMP (simple Network management Protocol), SMTP, SIP, SOCKS, SPDY, TCP (transmission Control Protocol), TFTP (Trivial File Transfer Protocol/Trivial File Transfer Protocol), telnet, UDP (user datagram Protocol), x.25, yahoo! A cookie instant messaging protocol, etc.
The standard of bluetooth is IEEE 802.15.1, and the bluetooth protocol operates at 2.45GHz of an unlicensed ISM (Industrial Scientific Medical) band. To avoid interference, other protocols that may use 2.45GHz, the bluetooth protocol divides the band into 79 channels, with a bandwidth of 1MHz, and channel switching may reach 1600 times per second.
Referring to fig. 3, fig. 3 is a schematic diagram illustrating a flow chart of simulating real hardware by using virtual hardware according to an embodiment of the present application.
In some optional embodiments, the step S102 includes:
step S201: obtaining a control strategy of the real hardware under the test condition, wherein the control strategy comprises one or more of the following strategies: the method comprises the following steps of (1) electric quantity strategy, memory strategy, background process limiting strategy, display strategy, animation strategy, communication strategy and sharing strategy;
step S202: and controlling the running process of the virtual hardware on the automatic test equipment by using the acquired control strategy so that the virtual hardware is consistent with the performance of the real hardware under the test condition when responding to the test instruction.
Therefore, in order to enable the virtual hardware to be consistent with the performance of the real hardware under the same test condition when responding to the test instruction, the operation process of the virtual hardware is controlled by adopting the control strategy which is the same as that of the real hardware, wherein the control strategy comprises an electric quantity strategy, a memory strategy, a background process limiting strategy, a display strategy, an animation strategy, a communication strategy, a sharing strategy and the like, and the performance of the virtual hardware and the performance of the real hardware on corresponding functions of electric quantity control, memory control, background process limiting, display control, animation effect control, communication control, sharing limitation and the like are ensured to be completely consistent.
The power policies may include, for example, a high performance mode, a balanced mode, and a power saving mode.
The memory policies may include, for example, a high memory mode, a medium memory mode, and a low memory mode.
Background process restriction policies may include, for example, no restriction, standard restriction, no background processes allowed, no more than 1 process, no more than 2 processes, no more than 3 processes, no more than 4 processes, etc.
The display policy is to indicate one or more of the following display parameters: display mode, font style, font size, font weight, brightness, contrast, saturation, exposure, hue, gray scale, color temperature, resolution, refresh rate, and scaling.
Animation strategies may include, for example, animation duration, transitional animation scaling, window animation scaling, and the like.
The communication policy may be used to instruct, for example, 5G, 4G, 3G, 2G, WIFI, bluetooth, NFC, or other communication functions to turn on and off.
The sharing policy may be used to indicate, for example, a network sharing status, a shared data transfer status.
In some optional embodiments, the step S201 includes:
inputting the test conditions into a control strategy model to obtain a control strategy corresponding to the test conditions;
the training process of the control strategy model may include:
acquiring a training set, wherein the training set comprises a plurality of training data, and each training data comprises a sample parameter value of a working parameter of the real hardware and label data of a corresponding control strategy;
for each training data in the training set, performing the following:
inputting sample parameter values of the working parameters of the real hardware into a preset deep learning model to obtain prediction data of a corresponding control strategy;
updating model parameters of the deep learning model based on the prediction data and the labeling data of the corresponding control strategy result;
detecting whether a preset training end condition is met; if yes, taking the trained deep learning model as the control strategy model; and if not, continuing to train the deep learning model by using the next training data.
Therefore, through design, a proper amount of neuron calculation nodes and a multilayer operation hierarchical structure are established, a proper input layer and a proper output layer are selected, a preset deep learning model can be obtained, through learning and tuning of the deep learning model, a function relation from input to output is established, although the function relation between the input and the output cannot be found 100%, the function relation can be close to a real association relation as much as possible, the control strategy model obtained through training can be used for obtaining corresponding output data based on any input data prediction, and the method is wide in application range, high in calculation result accuracy and high in reliability.
In some optional embodiments, the control strategy model may be obtained by training in the embodiment of the present application, and in other optional embodiments, a control strategy model trained in advance may be adopted in the embodiment of the present application.
In some alternative embodiments, for example, data mining may be performed on the historical data to obtain the sample parameter values in the training set and the labeling data of the control strategy corresponding to the sample parameter values, and the like. The sample parameter values in the training set may also be automatically generated using a generating network of GAN models.
The GAN model is a Generative adaptive Network (generic adaptive Network) that consists of a Generative Network and a discriminant Network. The generation network takes random samples from the latent space (latency) as input, and its output needs to mimic the real samples in the training set as much as possible. The input of the discrimination network is the real sample or the output of the generation network, and the purpose is to distinguish the output of the generation network from the real sample as much as possible. The generation network should cheat the discrimination network as much as possible. The two networks resist each other and continuously adjust parameters, and the final purpose is to make the judgment network unable to judge whether the output result of the generated network is real or not. A plurality of sample parameter values can be generated by using the GAN model and used in the training process of the model, so that the data volume of the original data acquisition can be effectively reduced, and the data acquisition and labeling cost is greatly reduced.
The method for acquiring the annotation data in the embodiment of the present application is not limited, and for example, a manual annotation method may be adopted, and an automatic annotation method or a semi-automatic annotation method may also be adopted.
The embodiment of the present application does not limit the training process of the control strategy model, and for example, the above-mentioned supervised learning training mode may be adopted, or a semi-supervised learning training mode may be adopted, or an unsupervised learning training mode may be adopted.
The preset training ending condition is not limited in the embodiment of the present application, and may be, for example, that the training frequency reaches a preset frequency (the preset frequency is, for example, 1 time, 3 times, 10 times, 100 times, 1000 times, 10000 times, and the like), or training data in a training set completes one or more times of training, or a total loss value obtained by this training is not greater than a preset loss value.
Referring to fig. 4, fig. 4 is a schematic flowchart illustrating a positioning problem using virtual hardware according to an embodiment of the present application.
In some optional embodiments, the visualization result corresponding to the test instruction includes front-end content and background content;
the method further comprises the following steps:
step S104: receiving a selection operation of a user for a display element in the front-end content by utilizing the interactive equipment;
step S105: in response to the selection operation, determining background content corresponding to the selected display element by using the virtual hardware;
step S106: and displaying background content and other background content corresponding to the selected display element in a differentiated manner by using the display equipment in different display modes.
Therefore, the visual result corresponding to the test instruction comprises front-end content and background content, on one hand, the working parameters in the front-end content are visual, and the working personnel can conveniently know the currently adopted test conditions and the real-time change condition of the working parameters in the whole automatic test process; on the other hand, background contents (namely code lines, code blocks and the like corresponding to the running process) of the virtual hardware are visualized, parameter interaction messages between the external equipment and the virtual hardware are transparent, and found problems are conveniently located.
As an example, the real hardware simulated by the software is a stimulator, and during the automatic test process of the program-controlled software, the program-controlled software is loaded on the external device and sends a test command, such as a stimulation control command, to the virtual hardware to adjust the voltage amplitude of the stimulation pulse signal of the stimulator to 5V. The worker finds that the virtual hardware does not adjust the voltage amplitude of the stimulation pulse signal based on the stimulation control instruction, then the worker selects a display element in the front-end content corresponding to the voltage amplitude on the virtual hardware, and visually sees through a background code corresponding to the selected display element that the given upper limit of the voltage amplitude of the virtual hardware is 4.5V (namely, the stimulator firmware setting only allows the voltage amplitude to be adjusted within a range not higher than 4.5V), and the voltage amplitude in the stimulation control instruction is larger than the given upper limit, which results in failure in adjustment. The staff can then adjust the allowable control upper limit of the program control software to ensure that the allowable control upper limit does not exceed 4.5V, thereby avoiding the condition that the adjustment fails when a doctor or a patient uses the program control software in the future, improving the safety of the program control process and ensuring that the electric stimulation treatment on the patient is always in a safe range.
In some alternative embodiments, the real hardware is a stimulator for implantation in a patient, the stimulator including an IPG and at least one electrode lead;
the operating parameters of the stimulator include one or more of hardware parameters, software parameters, communication parameters, and logging parameters;
the hardware parameters comprise one or more of the number of electrode leads, the type of the electrode leads, the implantation position of the electrode leads, the number of electrode contacts, physical impedance, the type of a chip, the state of a magnetic switch, electric quantity, signal intensity, hardware temperature, ambient humidity, charging state, voltage and current;
the software parameters comprise one or more of current mode, monitoring period, pairing information, bound patient information, stimulation mode and stimulation program;
the communication parameters include a communication mode;
the log parameters comprise one or more of IPG running state logs, IPG running abnormity logs, working time length, stimulation time length, communication time length and activation times.
Therefore, various working parameters of the stimulator are simulated by utilizing the virtual hardware, and diversified test functions are provided. Because the cost of stimulator product is expensive, prior art's test process cost is higher, can't carry out the saturation test, adopts the automatic test equipment that this application provided, greatly reduced test cost and test time, conveniently extensively carry out multiple automatic test to the stimulator, further promoted the security of stimulator, improved the treatment of stimulator on the whole, promoted implanted medical instrument's market prospect.
The number of electrode leads may be, for example, 1, 2, 3, 4, etc.
The electrode lead model may be represented in one or more of chinese, letters, numbers, symbols, for example.
The electrode lead implantation site may be, for example, the left brain or the right brain.
The number of electrode contacts may be, for example, 4, 6, 8, 12, 16, 24, 36, etc.
The physical impedance may be, for example, 2K Ω, 4K Ω, 6K Ω, 8K Ω, or the like.
The chip type may be, for example, a unimodal stimulation chip, a bimodal stimulation chip, or the like.
The magnetic switch state may be on or off, for example.
The amount of electricity may be expressed in percentage, for example.
The signal strength may include, for example, the signal strength of each communication chip.
The hardware temperature may be, for example, -100, -50, -20, 0, 20, 30, 50, 100, 200, 1000 degrees celsius, etc.
The ambient humidity may be, for example, the absolute humidity or the relative humidity of the test environment.
The charging state may be, for example, a charging or non-charging state.
The voltage may be, for example, 0V, 1V, 2V, 3V, 4V, 5V, or the like.
The current may be, for example, 0.01mA, 0.1mA, 0.5mA, 1mA, 2mA, or the like.
The current mode may be, for example, a surgical mode, a standard mode, a safe mode, etc.
The listening period may be, for example, 15 seconds, 1 minute, 5 minutes, etc.
The pairing information may include, for example, identification information of the programming device (in programming connection with the IPG).
The bound patient information may include, for example, the name, date of birth, sex, hospital implanted, date of implantation, etc. of the IPG bound patient.
The stimulation patterns may include, for example, one or more of a current pattern, a voltage pattern, a timed stimulation pattern, and a cyclical stimulation pattern, each stimulation pattern being used to determine the type of stimulation program and the stimulation time instant.
The stimulation program is for indicating at least one of the following parameters of the stimulation pulse signal: frequency (e.g. number of stimulation pulse signals per unit time 1s, in Hz), pulse width (duration of each pulse, in μ s), amplitude (typically expressed in voltage, i.e. intensity of each pulse, in V), timing (e.g. may be continuous or triggered).
The software parameters may also include upper and lower physician-controlled limits (physician-adjustable range) and upper and lower patient-controlled limits (patient-independently adjustable range).
In some alternative embodiments, the real hardware is a cell phone;
the working parameters of the mobile phone comprise one or more of electric quantity, signal strength, hardware temperature, environment humidity, charging state, voltage, current, position and posture.
Therefore, various working parameters of the mobile phone are simulated by utilizing the virtual hardware, and diversified test functions are provided.
The position may be represented by, for example, longitude and latitude, or may be represented by a preset spatial rectangular coordinate system.
Attitude may be represented, for example, by three attitude angles, namely pitch, roll and pitch.
Device embodiment
Referring to fig. 5, fig. 5 is a schematic structural diagram illustrating an automated testing apparatus according to an embodiment of the present application.
The embodiment of the present application further provides an automatic testing apparatus, and the specific embodiment of the automatic testing apparatus is consistent with the embodiments and achieved technical effects recorded in the above method embodiments, and some contents are not repeated.
The embodiment of the application also provides an automatic testing device, which is applied to automatic testing equipment, wherein the automatic testing equipment is loaded with virtual hardware, and the virtual hardware is used for simulating real hardware to replace the real hardware for automatic testing;
the device comprises:
a condition module 101, configured to obtain a test condition of the real hardware, where the test condition is used to indicate a test parameter value of an operating parameter of the real hardware;
a simulation module 102, configured to simulate the real hardware under the test condition by using the virtual hardware;
an execution module 103, configured to, when the virtual hardware receives a test instruction sent by an external device, execute, by using the virtual hardware, at least one of the following processes: sending feedback information corresponding to the test instruction to the external equipment; generating a visual result corresponding to the test instruction and displaying the visual result on display equipment;
wherein the real hardware comprises at least one of: a stimulator; a mobile phone; a tablet computer; a charger.
In some alternative embodiments, the virtual hardware and the real hardware communicate with the external device using the same communication protocol.
In some optional embodiments, the simulation module 102 is configured to:
obtaining a control strategy of the real hardware under the test condition, wherein the control strategy comprises one or more of the following strategies: the method comprises the following steps of (1) electric quantity strategy, memory strategy, background process limiting strategy, display strategy, animation strategy, communication strategy and sharing strategy;
and controlling the running process of the virtual hardware on the automatic test equipment by using the acquired control strategy so that the virtual hardware is consistent with the performance of the real hardware under the test condition when responding to the test instruction.
In some optional embodiments, the simulation module 102 obtains the control strategy of the real hardware under the test condition by the following method:
inputting the test conditions into a control strategy model to obtain a control strategy corresponding to the test conditions;
the training process of the control strategy model may include:
acquiring a training set, wherein the training set comprises a plurality of training data, and each training data comprises a sample parameter value of a working parameter of the real hardware and label data of a corresponding control strategy;
for each training data in the training set, performing the following:
inputting sample parameter values of the working parameters of the real hardware into a preset deep learning model to obtain prediction data of a corresponding control strategy;
updating model parameters of the deep learning model based on the prediction data and the labeling data of the corresponding control strategy result;
detecting whether a preset training end condition is met; if yes, taking the trained deep learning model as the control strategy model; and if not, continuing to train the deep learning model by using the next training data.
In some optional embodiments, the visualization result corresponding to the test instruction includes front-end content and background content;
the apparatus further comprises a positioning module 104, the positioning module 104 being configured to:
receiving a selection operation of a user for a display element in the front-end content by utilizing the interactive equipment;
in response to the selection operation, determining background content corresponding to the selected display element by using the virtual hardware;
and displaying background content and other background content corresponding to the selected display element in a differentiated manner by using the display equipment in different display modes.
In some alternative embodiments, the real hardware is a stimulator for implantation in a patient, the stimulator including an IPG and at least one electrode lead;
the operating parameters of the stimulator include one or more of hardware parameters, software parameters, communication parameters, and logging parameters;
the hardware parameters comprise one or more of the number of electrode leads, the type of the electrode leads, the implantation position of the electrode leads, the number of electrode contacts, physical impedance, the type of a chip, the state of a magnetic switch, electric quantity, signal intensity, hardware temperature, ambient humidity, charging state, voltage and current;
the software parameters comprise one or more of current mode, monitoring period, pairing information, bound patient information, stimulation mode and stimulation program;
the communication parameters include a communication mode;
the log parameters comprise one or more of IPG running state logs, IPG running abnormity logs, working time length, stimulation time length, communication time length and activation times.
In some alternative embodiments, the real hardware is a cell phone;
the working parameters of the mobile phone comprise one or more of electric quantity, signal strength, hardware temperature, environment humidity, charging state, voltage, current, position and posture.
Apparatus embodiment
The embodiment of the application also provides automatic test equipment, wherein the automatic test equipment is loaded with virtual hardware, and the virtual hardware is used for simulating real hardware to replace the real hardware for automatic test;
the automated test equipment comprises a memory storing a computer program and a processor implementing the steps of any of the methods or the functions of any of the devices when the processor executes the computer program.
Referring to fig. 6, fig. 6 is a block diagram illustrating a structure of an automated testing device according to an embodiment of the present disclosure.
The automated test equipment may include, for example, at least one memory 210, at least one processor 220, and a bus 230 connecting the different platform systems.
The memory 210 may include readable media in the form of volatile memory, such as Random Access Memory (RAM) 211 and/or cache memory 212, and may further include Read Only Memory (ROM) 213.
The memory 210 further stores a computer program, and the computer program can be executed by the processor 220, so that the processor 220 implements the functions of any one of the methods, and the specific embodiments thereof are consistent with the embodiments described in the embodiments of the methods and the achieved technical effects, and some contents are not described again.
Memory 210 may also include a utility 214 having at least one program module 215, such program modules 215 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.
Accordingly, the processor 220 can execute the computer programs described above, and can execute the utility 214.
The processor 220 may employ one or more Application Specific Integrated Circuits (ASICs), DSPs, programmable Logic Devices (PLDs), complex Programmable Logic Devices (CPLDs), field-Programmable Gate arrays (FPGAs), or other electronic components.
Bus 230 may be one or more of any of several types of bus structures including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a local bus using any of a variety of bus architectures.
The automated test equipment may also communicate with one or more external devices 240, such as a keyboard, pointing device, bluetooth device, etc., and may also communicate with one or more devices capable of interacting with the automated test equipment, and/or with any devices (e.g., routers, modems, etc.) that enable the automated test equipment to communicate with one or more other computing devices. Such communication may be through input-output interface 250. Also, the automated test equipment may 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 the network adapter 260. The network adapter 260 may communicate with other modules of the automated test equipment via the bus 230. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the automated test equipment, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage platforms, to name a few.
Media embodiments
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps of any one of the methods or implements the functions of any one of the apparatuses, and a specific embodiment of the computer program is consistent with the embodiments and achieved technical effects described in the foregoing method embodiments, and some details are not repeated.
Referring to fig. 7, fig. 7 shows a schematic structural diagram of a program product provided in an embodiment of the present application.
The program product is for implementing any of the methods described above. The program product may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto, and in the embodiments of the present application, the readable storage medium may be any tangible medium that can contain or store a program, which can be used by or in connection with an instruction execution system, apparatus, or device. The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing. Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the C language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
While the present application is described in terms of various aspects, including exemplary embodiments, the principles of the invention should not be limited to the disclosed embodiments, but are also intended to cover various modifications, equivalents, and alternatives falling within the spirit and scope of the invention as defined by the appended claims.

Claims (11)

1. An automatic test method is characterized by being applied to automatic test equipment, wherein the automatic test equipment is loaded with virtual hardware, and the virtual hardware is used for simulating real hardware to replace the real hardware for automatic test;
the method comprises the following steps:
acquiring a test condition of the real hardware, wherein the test condition is used for indicating a test parameter value of a working parameter of the real hardware;
simulating the real hardware under the test condition by using the virtual hardware;
when the virtual hardware receives a test instruction sent by an external device, executing at least one of the following processes by using the virtual hardware: sending feedback information corresponding to the test instruction to the external equipment; generating a visual result corresponding to the test instruction and displaying the visual result on display equipment;
wherein the real hardware comprises at least one of: a stimulator; a mobile phone; a tablet computer; a charger.
2. The automated testing method of claim 1, wherein the virtual hardware and the real hardware communicate with the external device using the same communication protocol.
3. The automated testing method of claim 2, wherein said simulating the real hardware under the test condition with the virtual hardware comprises:
obtaining a control strategy of the real hardware under the test condition, wherein the control strategy comprises one or more of the following strategies: the method comprises the following steps of (1) electric quantity strategy, memory strategy, background process limiting strategy, display strategy, animation strategy, communication strategy and sharing strategy;
and controlling the running process of the virtual hardware on the automatic test equipment by using the acquired control strategy so that the virtual hardware is consistent with the performance of the real hardware under the test condition when responding to the test instruction.
4. The automated testing method of claim 3, wherein the obtaining the control strategy of the real hardware under the test condition comprises:
inputting the test conditions into a control strategy model to obtain a control strategy corresponding to the test conditions;
the training process of the control strategy model may include:
acquiring a training set, wherein the training set comprises a plurality of training data, and each training data comprises a sample parameter value of a working parameter of the real hardware and label data of a corresponding control strategy;
for each training data in the training set, performing the following:
inputting sample parameter values of the working parameters of the real hardware into a preset deep learning model to obtain prediction data of a corresponding control strategy;
updating model parameters of the deep learning model based on the prediction data and the labeling data of the corresponding control strategy result;
detecting whether a preset training end condition is met or not; if yes, taking the trained deep learning model as the control strategy model; if not, continuously training the deep learning model by using the next training data.
5. The automated testing method of claim 1, wherein the visualization result corresponding to the testing instruction comprises front-end content and background content;
the method further comprises the following steps:
receiving a selection operation of a user for a display element in the front-end content by utilizing the interactive equipment;
in response to the selection operation, determining background content corresponding to the selected display element by using the virtual hardware;
and displaying background content and other background content corresponding to the selected display element in a differentiated manner by using the display equipment in different display modes.
6. The automated testing method of claim 1, wherein the real hardware is a stimulator for implantation in a patient, the stimulator comprising an IPG and at least one electrode lead;
the operating parameters of the stimulator include one or more of hardware parameters, software parameters, communication parameters, and logging parameters;
the hardware parameters comprise one or more of the number of electrode leads, the type of the electrode leads, the implantation position of the electrode leads, the number of electrode contacts, physical impedance, the type of a chip, the state of a magnetic switch, electric quantity, signal intensity, hardware temperature, ambient humidity, charging state, voltage and current;
the software parameters comprise one or more of current mode, monitoring period, pairing information, bound patient information, stimulation mode and stimulation program;
the communication parameters include a communication mode;
the log parameters comprise one or more of IPG running state logs, IPG running abnormity logs, working time length, stimulation time length, communication time length and activation times.
7. The automated testing method of claim 1, wherein the real hardware is a cell phone;
the working parameters of the mobile phone comprise one or more of electric quantity, signal strength, hardware temperature, environment humidity, charging state, voltage, current, position and posture.
8. An automatic testing device is characterized by being applied to automatic testing equipment, wherein the automatic testing equipment is loaded with virtual hardware, and the virtual hardware is used for simulating real hardware to replace the real hardware for carrying out automatic testing;
the device comprises:
the condition module is used for acquiring the test condition of the real hardware, and the test condition is used for indicating the test parameter value of the working parameter of the real hardware;
a simulation module for simulating the real hardware under the test condition by using the virtual hardware;
the execution module is used for executing at least one of the following processes by using the virtual hardware when the virtual hardware receives a test instruction sent by an external device: sending feedback information corresponding to the test instruction to the external equipment; generating a visual result corresponding to the test instruction and displaying the visual result on display equipment;
wherein the real hardware comprises at least one of: a stimulator; a mobile phone; a tablet computer; a charger.
9. The automatic test equipment is characterized in that the automatic test equipment is loaded with virtual hardware, and the virtual hardware is used for simulating real hardware to replace the real hardware for automatic test;
the automated test equipment comprises a memory storing a computer program which when executed by the processor performs the steps of the method of any one of claims 1 to 7 or the functions of the apparatus of claim 8.
10. An automated test system, comprising:
the automated test equipment of claim 9;
the external equipment is used for sending a test instruction to the automatic test equipment;
a display device for providing a display function;
and the interaction equipment is used for providing an interaction function.
11. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, implements the steps of the method of any one of claims 1 to 7 or implements the functions of the apparatus of claim 8.
CN202210886915.1A 2022-07-26 2022-07-26 Automatic testing method, device, equipment, system and storage medium Pending CN115145776A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210886915.1A CN115145776A (en) 2022-07-26 2022-07-26 Automatic testing method, device, equipment, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210886915.1A CN115145776A (en) 2022-07-26 2022-07-26 Automatic testing method, device, equipment, system and storage medium

Publications (1)

Publication Number Publication Date
CN115145776A true CN115145776A (en) 2022-10-04

Family

ID=83414680

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210886915.1A Pending CN115145776A (en) 2022-07-26 2022-07-26 Automatic testing method, device, equipment, system and storage medium

Country Status (1)

Country Link
CN (1) CN115145776A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116502433A (en) * 2023-04-24 2023-07-28 惠州市乐亿通科技有限公司 Virtual inverter and energy monitoring system development method
CN116795082A (en) * 2023-07-18 2023-09-22 北京领创医谷科技发展有限责任公司 Analog test system, method and equipment of energy controller and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116502433A (en) * 2023-04-24 2023-07-28 惠州市乐亿通科技有限公司 Virtual inverter and energy monitoring system development method
CN116795082A (en) * 2023-07-18 2023-09-22 北京领创医谷科技发展有限责任公司 Analog test system, method and equipment of energy controller and storage medium
CN116795082B (en) * 2023-07-18 2024-04-02 北京领创医谷科技发展有限责任公司 Analog test system, method and equipment of energy controller and storage medium

Similar Documents

Publication Publication Date Title
CN115145776A (en) Automatic testing method, device, equipment, system and storage medium
US10315038B2 (en) Clinical guidance user interfaces for neurostimulator programming
US8761897B2 (en) Method and system of graphical representation of lead connector block and implantable pulse generators on a clinician programmer
WO2023124390A1 (en) Program-controlled device and implantable neurostimulation system
WO2023005353A1 (en) Configuration information acquisition apparatus based on multi-modal data, and related device
CN113244533A (en) Parameter adjusting method and device, electronic equipment and computer readable storage medium
WO2023071378A1 (en) Implantable nerve stimulator and implantable nerve stimulation system
WO2023000788A1 (en) Parameter comparison method and apparatus, electronic device, and computer readable storage medium
CN115501481A (en) Emergency program control equipment, medical system and computer readable storage medium
WO2018144521A1 (en) Stimulation field templates to be applied across patient populations
CN113397503A (en) Control method of household medical equipment and related device
CN116549849A (en) Method and system for detecting impedance state of stimulator
EP3576840B1 (en) Stimulation field templates to be applied across patient populations
WO2024083193A1 (en) Pulse generator, stimulator, medical system and computer-readable storage medium
CN107273705A (en) The determination of human body implantation type medical treatment device parameter, method to set up and equipment
WO2024041496A1 (en) Charging reminding device, implantable neural stimulation system, and storage medium
WO2023185410A1 (en) Imaging identification method for stimulation electrode wire, and related apparatus
WO2023024881A1 (en) Video tracing method for patient with chronic disease and related apparatus
CN109908473B (en) Control device for medical instrument system and medical instrument system
WO2023011493A1 (en) Double-blind experimental apparatus, electronic device, double-blind experimental system, and storage medium
CN103845805B (en) A kind of doctor's program control instrument demo function implementation method of Implanted medical system
CN115019948B (en) Control device, remote consultation system, and computer-readable storage medium
US20240136050A1 (en) Customizable neuromodulation device treatment journey
US20240131337A1 (en) Goal setting and tracking for neuromodulation treatment
US20170228510A1 (en) Overlay graphical user interface for medical devices

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
CB02 Change of applicant information

Address after: 215000 building C16, bio nano Park, 218 Xinghu street, Suzhou Industrial Park, Jiangsu Province

Applicant after: Jingyu Medical Technology (Suzhou) Co.,Ltd.

Address before: 215000 building C16, bio nano Park, 218 Xinghu street, Suzhou Industrial Park, Jiangsu Province

Applicant before: SCENERAY Co.,Ltd.

CB02 Change of applicant information