CN107450973B - Detection method and device - Google Patents

Detection method and device Download PDF

Info

Publication number
CN107450973B
CN107450973B CN201710630464.4A CN201710630464A CN107450973B CN 107450973 B CN107450973 B CN 107450973B CN 201710630464 A CN201710630464 A CN 201710630464A CN 107450973 B CN107450973 B CN 107450973B
Authority
CN
China
Prior art keywords
detection
equipment
thread
test
test thread
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710630464.4A
Other languages
Chinese (zh)
Other versions
CN107450973A (en
Inventor
崔超涛
姚东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu youbochuang Communication Technology Co., Ltd
Original Assignee
Chengdu Superxon Communication Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Superxon Communication Technology Co ltd filed Critical Chengdu Superxon Communication Technology Co ltd
Priority to CN201710630464.4A priority Critical patent/CN107450973B/en
Publication of CN107450973A publication Critical patent/CN107450973A/en
Application granted granted Critical
Publication of CN107450973B publication Critical patent/CN107450973B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D21/00Measuring or testing not otherwise provided for
    • G01D21/02Measuring two or more variables by means not covered by a single other subclass
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/48Indexing scheme relating to G06F9/48
    • G06F2209/484Precedence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/48Indexing scheme relating to G06F9/48
    • G06F2209/486Scheduler internals

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

The invention relates to the technical field of testing, in particular to a detection method and a detection device, which are applied to a detection system comprising terminal equipment and detection equipment, wherein the detection equipment is connected with a plurality of pieces of equipment to be tested. The method comprises the following steps: the method comprises the steps that a test thread is respectively established for each device to be tested connected with a detection device, when the terminal device executes each test thread, the test thread executed first obtains the execution right of the detection device and locks the detection device, so that the test thread controls the detection device to operate to detect the device to be tested corresponding to the test thread, after the device to be tested corresponding to the test thread is detected, the detection device is unlocked, so that the next test thread executed first obtains the execution right of the detection device until the detection of each device to be tested is completed. The detection equipment can be effectively ensured to be used through the setting, the utilization rate and the detection efficiency of equipment resources are effectively improved, and the program response time is shortened.

Description

Detection method and device
Technical Field
The invention relates to the technical field of testing, in particular to a detection method and a detection device.
Background
In the prior art, a plurality of objects to be tested need to be tested and measured at one time in the test process, and generally, one object to be tested occupies one set of measuring equipment so that each set of measuring tool can measure each object to be tested respectively.
Disclosure of Invention
In view of the above, the present invention provides a detection method and a detection device to solve the above problems.
In order to achieve the above object, the present invention is realized by:
a detection method is applied to a detection system comprising terminal equipment and detection equipment, wherein the terminal equipment is connected with the detection equipment, and the detection equipment is connected with a plurality of pieces of equipment to be detected, and the method comprises the following steps:
respectively creating a test thread for each device to be tested connected with the detection device so that each device to be tested corresponds to one test thread;
when the terminal equipment executes each test thread, the test thread executed first acquires the execution right of the detection equipment and locks the detection equipment so that the test thread controls the detection equipment to run to detect the equipment to be tested corresponding to the test thread;
and after the equipment to be detected corresponding to the test thread is detected, unlocking the detection equipment so that the next test thread executed first can obtain the execution right of the detection equipment until the detection of each equipment to be detected is completed.
In a preferred embodiment of the present invention, in the above detection method, after the test threads are respectively created for each device under test connected to the detection device, the method further includes:
and carrying out priority sequencing on the test threads according to a preset rule.
In a preferred embodiment of the present invention, in the above detection method, after the test threads are respectively created for each device under test connected to the detection device, the method further includes:
and acquiring and sequencing the time slices of each test thread executed by the terminal equipment.
In a preferred embodiment of the present invention, in the above detection method, before creating a test thread for each device under test connected to the detection device, the method further includes:
initializing the detection system to create a main thread;
the step of creating a test thread according to the device to be tested connected with the detection device comprises the following steps:
and creating a test thread in the main thread according to the equipment to be tested connected with the detection equipment.
In a preferred embodiment of the present invention, in the detection method, the terminal device is a computer, the detection device includes an oscilloscope and a spectrometer, the computer is connected to the oscilloscope and the spectrometer, and each device under test is connected to the oscilloscope and the spectrometer.
The invention also provides a detection device, which is applied to a detection system comprising terminal equipment and detection equipment, wherein the terminal equipment is connected with the detection equipment, the detection equipment is connected with a plurality of pieces of equipment to be detected, and the device comprises:
a thread creation module: the device to be tested is used for establishing a test thread for each device to be tested connected with the detection equipment so that each device to be tested corresponds to one test thread;
the first detection module: the terminal equipment is used for executing each test thread, the executed test thread acquires the execution right of the detection equipment and locks the detection equipment so that the test thread controls the detection equipment to run to detect the equipment to be tested corresponding to the test thread;
a second detection module: and the unlocking unit is used for unlocking the detection equipment after the detection of the equipment to be detected corresponding to the test thread is finished so as to enable the next test thread executed first to obtain the execution right of the detection equipment until the detection of each equipment to be detected is finished.
In a preferred embodiment of the present invention, in the above detection apparatus, the apparatus further includes:
a first sequencing module: and the priority ordering module is used for carrying out priority ordering on each testing thread according to a preset rule.
In a preferred embodiment of the present invention, in the above detection apparatus, the apparatus further includes:
a second ordering module: and the time slices are used for acquiring the time slices for the terminal equipment to execute each test thread and sequencing the time slices.
In a preferred embodiment of the present invention, in the above detection apparatus, the apparatus further includes:
an initialization module: the system comprises a detection system, a main thread and a main thread, wherein the detection system is used for initializing to create the main thread;
the thread creation module: and the main thread is also used for creating a test thread according to the equipment to be tested connected with the detection equipment.
In a preferred embodiment of the present invention, in the detection apparatus, the terminal device is a computer, the detection device includes an oscilloscope and a spectrometer, the computer is connected to the oscilloscope and the spectrometer, and each device under test is connected to the oscilloscope and the spectrometer.
According to the detection method and device provided by the embodiment of the invention, the test thread is respectively established for each device to be detected connected with the detection equipment, when the terminal equipment executes each test thread, the test thread executed first acquires the execution right of the detection equipment and locks the detection equipment, so that the test thread controls the detection equipment to operate to detect the device to be detected corresponding to the test thread, and after the device to be detected corresponding to the test thread is detected, the detection equipment is unlocked, so that the next test thread executed first acquires the execution right of the detection equipment until the detection of each device to be detected is completed. The detection equipment can be effectively ensured to be used through the setting, the utilization rate and the detection efficiency of equipment resources are effectively improved, and the program response time is shortened.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic block diagram of a detection system according to an embodiment of the present invention.
Fig. 2 is a schematic block diagram of a terminal device according to an embodiment of the present invention.
Fig. 3 is a schematic flow chart of a detection method according to an embodiment of the present invention.
Fig. 4 is another schematic flow chart of a detection method according to an embodiment of the present invention.
Fig. 5 is a schematic block diagram of a detection apparatus according to an embodiment of the present invention.
Icon: 10-a detection system; 12-a terminal device; 14-a detection device; 22-a processor; 24-a memory; 30-equipment to be tested; 100-a detection device; 110-a thread creation module; 130-a first detection module; 150-a second detection module; 170 — initialization module.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
As shown in fig. 1, a detection system 10 according to a preferred embodiment of the present invention is provided, where the detection system 10 includes a terminal device 12 and a detection device 14, the terminal device 12 is connected to the detection device 14, and the detection device 14 is connected to a plurality of devices under test 30.
The terminal device 12 may be, but is not limited to, a mobile phone, a tablet computer, or a computer, and in this embodiment, the terminal device 12 is a computer. The detection device 14 may be, but is not limited to, one or more of an oscilloscope, a spectrometer, a voltage detector, and a current detector. The selection may be performed according to the performance to be detected of the device under test 30, and is not particularly limited herein. For example, when it is desired to test the light transmission properties of the device under test 30, the test device 14 includes an oscilloscope and a spectrometer.
Referring to fig. 2, in the present embodiment, the terminal device 12 includes a memory 24 and a processor 22, and the memory 24 and the processor 22 are electrically connected directly or indirectly to implement data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The memory 24 stores software functional modules stored in the memory 24 in the form of software or Firmware (Firmware), and the processor 22 executes various functional applications and data processing by running software programs and modules stored in the memory 24, such as the detection device 100 in the embodiment of the present invention, so as to implement the detection method in the embodiment of the present invention.
The Memory 24 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an Electrically Erasable Read-Only Memory (EEPROM), and the like. Wherein the memory 24 is used for storing programs, and the processor 22 executes the programs after receiving the execution instructions.
The processor 22 may be an integrated circuit chip having signal processing capabilities. The Processor 22 may be a general-purpose Processor including a Central Processing Unit (CPU), a Network Processor (NP), and the like. But may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Referring to fig. 3, the present invention provides a detection method, which is applied to the detection system 10, and the method includes three steps of step S110, step S130 and step S150.
Step S110: a test thread is created for each device under test 30 connected to the detection device 14, so that each device under test 30 corresponds to one test thread.
Optionally, in an embodiment, the terminal device 12 is a computer, the detection device 14 includes an oscilloscope and a spectrometer, the oscilloscope and the spectrometer are respectively connected to the computer, and when a plurality of devices to be tested 30 are provided, each device to be tested 30 is respectively connected to the oscilloscope and the spectrometer, and after the connection and the start are completed. The computer may create a test thread from each of the devices under test 30.
Step S130: when the terminal device 12 executes each of the test threads, the test thread executed first acquires the execution right of the detection device 14, and locks the detection device 14, so that the test thread controls the detection device 14 to operate to detect the device under test 30 corresponding to the test thread.
The test thread acquires the execution right of the detection device 14, and locks the detection device 14, so that the detection device 14 does not allow the execution of the following test thread when detecting the device to be tested 30 corresponding to the test thread, so that the following test thread is in a blocking state and waits for the completion of the execution of the currently executed test thread, and the currently executed test thread is not interrupted by other threads in the execution process, thereby ensuring the utilization rate of the detection device 14, effectively shortening the program response time, and greatly improving the test efficiency.
Step S150: after the device to be tested 30 corresponding to the test thread is detected, the detection device 14 is unlocked, so that the next test thread executed first obtains the execution right of the detection device 14 until the detection of each device to be tested 30 is completed.
Specifically, after the current test thread is executed, the detection device 14 is unlocked, so that the unexecuted test thread can obtain the execution right of the detection device 14 and lock the execution right, and the test thread is executed and unlocked until the execution of each test thread is completed, thereby detecting the device to be tested 30 corresponding to each test thread.
Through the above arrangement, the detection device 14 is not interrupted by other test threads to cause delay or influence on the test result in the process of executing the test thread to detect the device under test 30 corresponding to the test thread. In addition, the utilization rate of equipment resources can be effectively improved, the program response time is shortened, and the test efficiency is greatly improved.
It should be noted that, during the execution of multiple test threads, the operating system in the terminal device 12 switches the code of one test thread to another test thread to continue running after a certain period of time (time slice). Generally, the switching speed of the test threads by the operating system is very fast, so that a user feels that a plurality of test threads run simultaneously.
In this embodiment, optionally, after creating a test thread for each device under test 30 connected to the detection device 14, the method may include: and carrying out priority sequencing on the test threads according to a preset rule. When the terminal device 12 executes each test thread, the test thread with a high priority may obtain the execution right of the detection device 14 according to the priority order, and lock the detection device 14, so that the test thread controls the detection device 14 to run to detect the device 30 to be tested corresponding to the test thread; after the device to be tested 30 corresponding to the test thread is detected, the detection device 14 is unlocked, so that the test thread of the next priority obtains the execution right of the detection device 14 until the detection of each device to be tested 30 is completed.
In this embodiment, optionally, after the test threads are respectively created for each device under test 30 connected to the detection device 14, the method may also include: and acquiring and sequencing the time slices of each test thread executed by the terminal equipment 12. When the terminal device 12 executes each of the test threads, the execution right of the detection device 14 may be obtained according to the test thread including the sequencing order of the time slices, and the detection device 14 is locked, so that the test thread controls the operation of the detection device 14 to detect the device 30 to be tested corresponding to the test thread; after the device to be tested 30 corresponding to the test thread is detected, the detection device 14 is unlocked, so that the next test thread in the sequence obtains the execution right of the detection device 14 until the detection of each device to be tested 30 is completed.
Through the arrangement, the testing threads can orderly complete the detection of the device to be tested 30 corresponding to the testing threads. When more devices to be tested 30 need to be tested, the tested devices to be tested 30 can be disassembled in the process of testing the devices to be tested 30 according to the testing sequence of the devices to be tested 30, and the devices to be tested 30 which are not tested are installed, so that the testing efficiency is greatly improved.
Wherein the test thread is created after the terminal device 12 completes starting. Optionally, referring to fig. 4, before creating a test thread for each device under test 30 connected to the detection device 14, the method further includes: step S170: the detection system 10 is initialized to create a main thread. The step of creating a test thread according to the device under test 30 connected to the detection device 14 includes: and creating a test thread in the main thread according to the device to be tested 30 connected with the detection device 14.
The main thread is created when the terminal device 12 is started, each test thread is created in the main thread, and each test thread is created in the main thread, so that when one test thread is executed, other threads are in a sleep state and are all started, but a CPU is not consumed, only a small memory space is occupied, and a next test thread is executed quickly after one test thread is executed, so that the test efficiency is greatly improved.
Referring to fig. 5, the present invention further provides a detection apparatus 100, which is applied to a detection system 10 including a terminal device 12 and a detection device 14, wherein the terminal device 12 is connected to the detection device 14, the detection device 14 is connected to a plurality of devices to be detected 30, and the detection apparatus 100 includes: a thread creation module 110, a first detection module 130, and a second detection module 150.
The thread creating module 110 is configured to create a test thread for each device under test 30 connected to the detection device 14, so that each device under test 30 corresponds to one test thread. Specifically, the thread pool modeling block may be used to execute step S110 shown in fig. 3, and the detailed description of step S110 may be referred to for a specific operation method.
The first detecting module 130 is configured to, when the terminal device 12 executes each of the testing threads, obtain an execution right of the detecting device 14 by the testing thread executed first, and lock the detecting device 14, so that the testing thread controls the detecting device 14 to run to detect the device under test 30 corresponding to the testing thread. Specifically, the first detection module 130 may be configured to perform step S130 shown in fig. 3, and the detailed description of step S130 may be referred to for a specific operation method.
The second detection module 150 is configured to unlock the detection device 14 after the detection of the device to be detected 30 corresponding to the test thread is completed, so that the next test thread executed first obtains the execution right of the detection device 14 until the detection of each device to be detected 30 is completed. Specifically, the second detection module 150 may be configured to execute step S150 shown in fig. 3, and the detailed description of step S150 may be referred to for a specific operation method.
In this embodiment, the detection apparatus 100 further includes a first sorting module or a second sorting module.
The first sequencing module is configured to perform priority sequencing on each test thread according to a preset rule, so that when the terminal device 12 executes each test thread, the test thread with a high priority may obtain an execution right of the detection device 14 according to the priority sequence, and lock the detection device 14, so that the detection device 14 is controlled by the test thread to operate to detect the device to be tested 30 corresponding to the test thread; after the device to be tested 30 corresponding to the test thread is detected, the detection device 14 is unlocked, so that the test thread of the next priority obtains the execution right of the detection device 14 until the detection of each device to be tested 30 is completed.
The second sorting module is configured to obtain a time slice for executing each of the test threads by the terminal device 12 and sort the time slice. When the terminal device 12 executes each test thread, the execution right of the detection device 14 may be obtained according to the test thread corresponding to the sequencing serial number of the time slice, and the detection device 14 is locked, so that the test thread controls the operation of the detection device 14 to detect the device 30 to be tested corresponding to the test thread; and after the device to be tested 30 corresponding to the test thread is detected, unlocking the detection device 14 so that the next test thread with the sequence number can acquire the execution right of the detection device 14 until the detection of each device to be tested 30 is completed.
Optionally, in this embodiment, the detection apparatus 100 further includes an initialization module 170, where the initialization module 170 is configured to initialize the detection system 10 to create a main thread. The thread creating module 110 is further configured to create a test thread in the main thread according to the device under test 30 connected to the detection device 14. Specifically, the initialization module 170 may be configured to execute step S170 shown in fig. 4, and the detailed description of step S170 may be referred to for a specific operation method.
Optionally, in this embodiment, the terminal device 12 is a computer, the detection device 14 includes an oscilloscope and a spectrometer, the computer is connected to the oscilloscope and the spectrometer, and each device under test 30 is connected to the oscilloscope and the spectrometer.
In summary, according to the detection method and apparatus provided by the present invention, a test thread is respectively created for each device under test 30 connected to the detection device 14, when the terminal device 12 executes each test thread, the test thread executed first obtains the execution right of the detection device 14, and locks the detection device 14, so that the test thread controls the detection device 14 to operate to detect the device under test 30 corresponding to the test thread, and after the device under test 30 corresponding to the test thread completes detection, the detection device 14 is unlocked, so that the next test thread executed first obtains the execution right of the detection device 14 until the detection of each device under test 30 is completed. The arrangement effectively ensures that the detection equipment 14 can be used, effectively improves the utilization rate of equipment resources and the detection efficiency, and shortens the program response time. In addition, the detection device 14 may detect the device under test 30 corresponding to each test thread according to the sequence of each test thread, so as to ensure that the device under test 30 is sequentially detected.
In the embodiments provided in the embodiments of the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus and method embodiments described above are illustrative only, as the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the i block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based devices that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, an electronic device, or a network device) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A detection method is applied to a detection system comprising terminal equipment and detection equipment, wherein the terminal equipment is connected with the detection equipment, and the detection equipment is connected with a plurality of devices to be detected, and the detection method is characterized by comprising the following steps:
respectively creating a test thread for each device to be tested connected with the detection device so that each device to be tested corresponds to one test thread;
when the terminal equipment executes each test thread, the test thread executed first acquires the execution right of the detection equipment and locks the detection equipment so that the test thread controls the detection equipment to run to detect the equipment to be tested corresponding to the test thread;
after the equipment to be tested corresponding to the test thread is detected, unlocking the detection equipment so that the next test thread executed first can obtain the execution right of the detection equipment until the detection of each equipment to be tested is completed;
after a test thread is respectively created for each device to be tested connected with the detection device, the method further includes:
and acquiring and sequencing time slices for executing each test thread by the terminal equipment, acquiring the execution right of the detection equipment according to the test thread with the sequencing sequence of the time slices as the head, and locking the detection equipment.
2. The method according to claim 1, wherein after the test thread is created separately for each device under test connected to the detection device, the method further comprises:
and carrying out priority sequencing on the test threads according to a preset rule.
3. The method according to claim 1, wherein before creating a test thread for each device under test connected to the inspection device, the method further comprises:
initializing the detection system to create a main thread;
the step of creating a test thread according to the device to be tested connected with the detection device comprises the following steps:
and creating a test thread in the main thread according to the equipment to be tested connected with the detection equipment.
4. The detection method according to claim 1, wherein the terminal device is a computer, the detection device comprises an oscilloscope and a spectrometer, the computer is respectively connected with the oscilloscope and the spectrometer, and each device to be detected is respectively connected with the oscilloscope and the spectrometer.
5. The utility model provides a detection device, its characterized in that is applied to detecting system including terminal equipment and check out test set, terminal equipment with check out test set connects, check out test set is connected with a plurality of equipment under test, the device includes:
a thread creation module: the device to be tested is used for establishing a test thread for each device to be tested connected with the detection equipment so that each device to be tested corresponds to one test thread;
the first detection module: the terminal equipment is used for executing each test thread, the executed test thread acquires the execution right of the detection equipment and locks the detection equipment so that the test thread controls the detection equipment to run to detect the equipment to be tested corresponding to the test thread;
a second detection module: the device to be tested corresponding to the test thread is unlocked after the detection of the device to be tested is completed, so that the next test thread executed first obtains the execution right of the detection device until the detection of each device to be tested is completed;
the device further comprises:
a second ordering module: and the time slice is used for acquiring and sequencing the time slices of the terminal equipment for executing each test thread, the execution right of the detection equipment is acquired according to the test thread with the sequencing sequence of the time slices as the head, and the detection equipment is locked.
6. The detection apparatus of claim 5, further comprising:
a first sequencing module: and the priority ordering module is used for carrying out priority ordering on each testing thread according to a preset rule.
7. The detection apparatus of claim 5, further comprising:
an initialization module: the system comprises a detection system, a main thread and a main thread, wherein the detection system is used for initializing to create the main thread;
the thread creation module: and the main thread is also used for creating a test thread according to the equipment to be tested connected with the detection equipment.
8. The detection device according to claim 5, wherein the terminal device is a computer, the detection device comprises an oscilloscope and a spectrometer, the computer is respectively connected with the oscilloscope and the spectrometer, and each device to be detected is respectively connected with the oscilloscope and the spectrometer.
CN201710630464.4A 2017-07-28 2017-07-28 Detection method and device Active CN107450973B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710630464.4A CN107450973B (en) 2017-07-28 2017-07-28 Detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710630464.4A CN107450973B (en) 2017-07-28 2017-07-28 Detection method and device

Publications (2)

Publication Number Publication Date
CN107450973A CN107450973A (en) 2017-12-08
CN107450973B true CN107450973B (en) 2020-04-17

Family

ID=60489450

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710630464.4A Active CN107450973B (en) 2017-07-28 2017-07-28 Detection method and device

Country Status (1)

Country Link
CN (1) CN107450973B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109375006A (en) * 2018-09-30 2019-02-22 京信通信系统(中国)有限公司 Test method, test macro, control equipment and the storage medium of equipment
CN112256560A (en) * 2020-09-22 2021-01-22 北京达佳互联信息技术有限公司 Application program testing method and device and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106649116A (en) * 2016-12-27 2017-05-10 广州周立功单片机科技有限公司 Method, device and system for testing embedded Linux product
CN106874078A (en) * 2015-12-14 2017-06-20 重庆森坦科技有限公司 A kind of directrix process control method of computerized loom

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874078A (en) * 2015-12-14 2017-06-20 重庆森坦科技有限公司 A kind of directrix process control method of computerized loom
CN106649116A (en) * 2016-12-27 2017-05-10 广州周立功单片机科技有限公司 Method, device and system for testing embedded Linux product

Also Published As

Publication number Publication date
CN107450973A (en) 2017-12-08

Similar Documents

Publication Publication Date Title
CN107391090B (en) Multithreading execution method and device
Boettcher et al. Extremal optimization at the phase transition of the three-coloring problem
CN107729227B (en) Application program test range determining method, system, server and storage medium
CN105573911B (en) A kind for the treatment of method and apparatus using pop-up
CN107450973B (en) Detection method and device
CN103761078A (en) Unlocking method and system for intelligent terminal
CN112463590B (en) Interactive Redfish testing method and device and electronic equipment
CN108650501B (en) A kind of method, apparatus and electronic equipment for testing stability of set-top box
CN110874318B (en) Software testing method and device and computer readable storage medium
CN109165156B (en) Bar code testing method and device and terminal equipment
CN109101819B (en) Vulnerability detection method, terminal and storage medium
WO2016095187A1 (en) Apparatus and method for adding nodes to a computing cluster
CN111104157A (en) Mass production method and device of storage equipment, storage medium and electronic equipment
CN109710476B (en) System interface robustness testing method and device
US10739401B2 (en) Logic built in self test circuitry for use in an integrated circuit with scan chains
CN107783867B (en) Gesture testing method and device, computer equipment and storage medium
CN104699479B (en) A kind of mobile phone unlocking system and method
CN110263417B (en) Time sequence characteristic acquisition method and device and electronic equipment
CN107203373B (en) Interface control acquiring method, interface control testing method, interface control acquiring device and interface control testing device
US9348583B2 (en) Automatic untangling cyclic dependencies in software systems
CN112069508B (en) Method, system, device and medium for positioning vulnerability API (application program interface) parameters of machine learning framework
CN109117359A (en) Serialize test method and device
CN108415822B (en) Random test method and device
US20160283355A1 (en) Identifying a configuration element value as a potential cause of a testing operation failure
CN110543459A (en) Method, system, terminal and storage medium for acquiring file lock state under NFS

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 610000, Sichuan, Chengdu Shuangliu County Southwest Airlines Economic Development Zone Industrial Concentration Zone

Patentee after: Chengdu youbochuang Communication Technology Co., Ltd

Address before: 610000, Sichuan, Chengdu Shuangliu County Southwest Airlines Economic Development Zone Industrial Concentration Zone

Patentee before: CHENGDU SUPERXON COMMUNICATION TECHNOLOGY Co.,Ltd.