Positioning detection method of instrument equipment, computer readable storage medium and control host

By using randomly assigned device numbers in the instrument detection system to establish the correspondence between the identity information of the inspected equipment and the host communication interface, the problem of difficulty in automatic identification of instrument positioning detection in the modular system is solved, and efficient and accurate instrument positioning detection is achieved.

CN120027841APending Publication Date: 2025-05-23BEIJING CONST INSTR TECH INC
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202211722856.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2022-12-30
Publication Date
2025-05-23

AI Technical Summary

Technical Problem

In the prior art, the positioning detection of instrument equipment has difficulty in automatic identification in the modular system, resulting in the need to manually input the corresponding relationship between the inspected instrument and the detection station, which is inefficient and prone to errors.

Method used

Through the randomly assigned device number as a hub, the corresponding relationship between the identity information of the inspected device and the device number is generated, and the corresponding relationship between the host communication interface and the device number is generated through the hardware device information, thereby establishing the corresponding relationship between the identity information of the inspected device and the host communication interface, realizing the automatic identification of the instrument under test and its detection station.

Benefits of technology

It improves the entry efficiency and accuracy of the corresponding relationship between the inspected instrument and the inspection station, reduces manual errors, and improves the degree of automation of the inspection process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120027841A_ABST
    Figure CN120027841A_ABST
Patent Text Reader

Abstract

The invention discloses a positioning detection method of instrument equipment, a computer readable storage medium and a control host. According to the instrument equipment positioning detection method provided by the invention, a randomly distributed equipment number is taken as a hub, and a corresponding relation of a communication channel-detected equipment identity information-equipment number is generated according to information acquired from software information; a host communication interface-device number corresponding relation is generated according to information obtained from the hardware device information, so that a detected device identity information-host communication interface corresponding relation is generated; and realizing automatic identification of the detected instrument and the detection station where the detected instrument is located based on the corresponding relationship between the identity information of the detected equipment and the host communication interface.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of metrology calibration, and in particular relates to a positioning detection method for instrument equipment, a computer-readable storage medium, and a control host. Background Art

[0002] Process instruments, also known as secondary instruments, include transmitters, meters and other equipment, which generate digital signals representing measurement results based on input electrical signals, and are used to detect secondary instruments and / or their calibration instruments. The instrument electrical signal detection system usually includes a control host, standard equipment and multiple detection stations. During the detection process, the control host needs to coordinate and control the detection station and the instrument to be detected arranged thereon at the same time. For example, the standard equipment generates a standard signal, which is simultaneously controlled by the control host to control the connection of the detection station of the current instrument to be detected, so that the instrument to be detected and the standard equipment are connected for detection, and other detection stations are disconnected to avoid interference with the detection of the instrument to be detected, and the measurement results are read from the instrument to be detected. Therefore, before performing the detection, it is necessary to store the corresponding relationship between the instrument to be detected and the detection station on the control host. Usually, the aforementioned corresponding relationship is manually input into the control host, which is not only prone to input errors, affecting the normal progress of the detection process, but also leads to extremely low work efficiency. Summary of the invention

[0003] In order to solve the problems existing in the prior art, the present application provides a positioning detection method for instrument equipment, a computer-readable storage medium and a control host. The positioning detection method for instrument equipment provided by the present application uses the randomly assigned device number as the hub, generates the corresponding relationship of the communication channel-detected device identity information-device number according to the information obtained from the software information, and then generates the corresponding relationship of the host communication interface-device number according to the information obtained from the hardware device information, thereby generating the corresponding relationship of the detected device identity information-host communication interface, and realizing the automatic identification of the detected instrument and its detection station based on the corresponding relationship of the detected device identity information-host communication interface.

[0004] The purpose of this application is to provide the following aspects:

[0005] In a first aspect, the present application provides a positioning detection method for an instrument device, the positioning detection method is applied to an instrument detection system, the instrument detection system includes a control host, at least two detection stations and at least two host communication interfaces, the control host is controlled and connected to the detection station, the control host is connected to the instrument under test through the host communication interface, the detection station and the host communication interface have a position correspondence relationship, based on the position correspondence relationship, the detection station is used to control the detection connection of the instrument under test, the control host pre-stores the position correspondence relationship, and the positioning detection method includes:

[0006] The control host establishes a communication connection with the first instrument under test through a first host communication interface, wherein the first host communication interface is one of the at least two host communication interfaces, and the first instrument under test is one of the instruments under test;

[0007] The control host sets the first instrument to be tested as a first connection object, and the control host is configured to identify the first instrument to be tested according to the first connection object during the current connection process;

[0008] The control host reads the identity information of the first connection object to obtain a first identity identification code, where the first identity identification code is used to identify the first instrument to be inspected, and obtains a first identity correspondence between the first connection object and the first instrument to be inspected;

[0009] The control host identifies the connection objects of the at least two host communication interfaces, and obtains a first communication correspondence between the first host communication interface and the first connection object;

[0010] The control host obtains a first connection correspondence between the first inspected instrument and the first host communication interface according to the first identity correspondence and the first communication correspondence;

[0011] The control host obtains the correspondence between the first inspected instrument and the inspection station according to the first connection correspondence and the position correspondence.

[0012] The positioning detection method for instrument equipment provided in the present application determines the correspondence between the first host communication interface and the first connection object and the correspondence between the first instrument to be inspected and the first host communication interface respectively, thereby combining the position correspondence between the detection station and the host communication interface, and automatically using the first host communication interface as a bridge to establish the correspondence between the detection station and the first instrument to be inspected.

[0013] In combination with the positioning detection method described in the first aspect, the positioning detection method further includes:

[0014] The control host performs detection control on the first detected instrument, specifically including communicating with the first detected instrument to enable the first detected instrument to generate or measure a detection signal;

[0015] The control host controls the detection station so that the detection signal is transmitted between the instrument detection system and the first detected instrument.

[0016] In the present application, the control host is also used to control the first instrument to be tested and the testing station, so that the first instrument to be tested can communicate and detect with the testing station.

[0017] In combination with the positioning detection method described in the first aspect, after the control host sets the first detected instrument as the first connection object, the control host verifies the connection status of the first connection object. If the connection status of the first connection object changes, at least one of the following three methods can be selected for processing:

[0018] The first processing method: terminating the detection control;

[0019] The second processing method: re-execute the aforementioned positioning detection method to obtain the first identity correspondence relationship;

[0020] A third processing method: reacquiring the first communication correspondence relationship.

[0021] The method provided in the present application can select different processing methods according to the change of the connection of the first connection object, thereby improving the accuracy of the correspondence between the first inspected instrument and the inspection station.

[0022] In the present application, the method of setting the first instrument under test as the first connection object also includes three specific implementation methods. Correspondingly, verifying the connection status of the first connection object also includes three specific implementation methods, specifically:

[0023] In a first implementation, setting the first instrument under test as a first connection object includes establishing a first data channel based on handshake information of the first instrument under test, the first data channel being used for data transmission between the control host and the first connection object; verifying the connection status of the first connection object includes determining the validity status of the first data channel;

[0024] In a second implementation, setting the first instrument under test as a first connection object includes assigning a first device number to the first connection object, wherein the first device number is not repeatedly generated during a power-on process of the control host, and verifying the connection status of the first connection object includes reading the first device number to determine whether it has changed;

[0025] In a third implementation manner, the verifying the connection status of the first connection object includes reading identity information of the first connection object and determining whether the reading result is the same as the first identity identification code.

[0026] In this application, the position correspondence relationship includes at least the following two types:

[0027] The first position correspondence relationship includes that the first host communication interface corresponds to the first detection station, and the first detection station is one of the at least two detection stations. Then, obtaining the correspondence between the first inspected instrument and the detection station includes obtaining the correspondence between the first inspected instrument and the first detection station.

[0028] The second position correspondence includes that the first host communication interface corresponds to at least two of the inspection stations including the first inspection station, and the first inspection station is one of the at least two inspection stations; then determining the correspondence between the first inspected instrument and the first inspection station includes verifying whether the first inspected instrument uniquely corresponds to the first inspection station, and if so, obtaining the correspondence between the first inspected instrument and the first inspection station.

[0029] Furthermore, the verification of whether the first inspected instrument uniquely corresponds to the first inspection station may specifically include:

[0030] The control host obtains an idle inspection station from the at least two inspection stations;

[0031] If the first inspection station is the only idle inspection station, it is determined that the first inspected instrument uniquely corresponds to the first inspection station.

[0032] In the present application, the instrument detection system may include a signal source device and a signal measurement device, specifically:

[0033] In an implementable manner, the instrument detection system includes a signal source device, and the verification of whether the first detected instrument uniquely corresponds to the first detection station may specifically include:

[0034] The control host controls the at least two detection stations, including controlling the detection circuit of the first detection station to be connected, and controlling the detection circuits of other detection stations to be disconnected;

[0035] At least partially simultaneously, the control host communicates with the signal source device to make the signal source device generate a first verification signal, and the control host communicates with the first instrument under test to make the first instrument under test measure the first verification signal and obtain an instrument measurement result;

[0036] The control host determines whether the first verification signal is the same as the measurement result of the instrument. If they are the same, it is determined that the first inspected instrument and the first inspection station are uniquely corresponding.

[0037] In another possible implementation, the instrument detection system includes a signal measuring device, and the verification of whether the first detected instrument uniquely corresponds to the first detection station may specifically include:

[0038] The control host controls the at least two detection stations, including controlling the detection circuit of the first detection station to be connected, and controlling the detection circuits of other detection stations to be disconnected;

[0039] At least partially simultaneously, the control host controls the first instrument under test, causing the first instrument under test to generate a second verification signal, and the control host communicates with the signal measuring device, causing the signal measuring device to measure the second verification signal and obtain a device measurement result;

[0040] The control host determines whether the second verification signal is the same as the device measurement result. If they are the same, it is determined that the first inspected instrument and the first inspection station are uniquely corresponding.

[0041] In the present application, the signal source device and the signal measurement device can be either a standard device or a tested instrument, specifically:

[0042] In one implementable manner, the signal source device is a standard signal source or a second instrument to be tested, the standard signal source detection is connected to the at least two detection stations, the second instrument to be tested is connected to the second detection station, and the communication is connected to the second host communication interface, the second instrument to be tested is one of the instruments to be tested, the second detection station is one of the at least two detection stations and is different from the first detection station, and the second host communication interface is one of the at least two host communication interfaces and is different from the first host communication interface.

[0043] In another possible implementation, the signal measuring device is a standard measuring instrument or a third instrument to be tested, the standard measuring instrument is detected and connected to the at least two testing stations, the third instrument to be tested is detected and connected to a third testing station, and is communicated with a third host communication interface, the third instrument to be tested is one of the instruments to be tested, the third testing station is one of the at least two testing stations and is different from the first testing station, and the third host communication interface is one of the at least two host communication interfaces and is different from the first host communication interface.

[0044] Optionally, the at least two inspection stations may include a fourth inspection station, a fourth inspected instrument is connected to the fourth inspection station, the fourth inspected instrument is one of the inspected instruments, the control host is configured to inspect and control the inspection instruments one by one, and before the control host inspects and controls the fourth inspected instrument, the corresponding relationship between the first inspected instrument and the inspection station is obtained.

[0045] In combination with the positioning detection method described in the first aspect, the positioning detection method may further include:

[0046] The control host obtains offline information of the first inspected instrument, the offline information including the original inspection station of the first inspected instrument, the execution status of the original inspection scheme and the offline time, the original inspection station is the inspection station occupied by the first inspected instrument before the instrument goes offline, and the original inspection scheme is the inspection scheme executed by the first inspected instrument before the instrument goes offline;

[0047] The control host obtains the secondary online information of the first inspected instrument, the secondary online information includes the existing inspection station and online time of the first inspected instrument, the online time is later than the offline time, and the existing inspection station is the inspection station occupied by the first inspected instrument in the secondary online process;

[0048] If the original inspection station is the same as the existing inspection station, and the time interval between the offline time and the online time is less than the preset time interval, the control host continues to execute the original inspection plan for the first inspected instrument;

[0049] If the original detection station is different from the existing detection station, or the time interval between the offline time and the online time is greater than the preset time length, the positioning detection method further includes:

[0050] The control host obtains an existing detection scheme of the first detected instrument;

[0051] The control host executes the existing detection scheme on the first detected instrument.

[0052] In a second aspect, the present application further provides a computer-readable storage medium having computer instructions stored thereon, which, when executed by a processor, implement the steps of the positioning detection method described in the first aspect.

[0053] In a third aspect, the present application also provides a control host, comprising: at least one processor and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the one processor, and the instructions are executed by the at least one processor so that the at least one processor executes the positioning detection method described in the first aspect.

[0054] Compared with the prior art, the positioning detection method for an instrument equipment provided by the present application utilizes the dynamic information-device number which is often abandoned in the industry as an intermediary, opens up the association path between the two static information, the host communication interface used to mark the USB interface and the identity information of the detected device, and establishes a one-to-one correspondence between the host communication interface and the identity information of the detected device. Specifically, the positioning detection method for the instrument equipment, on the one hand, searches for the correspondence between the identity information of the detected device and the randomly assigned device number by controlling the communication information between the host and the detected instrument, and on the other hand, searches for the correspondence between the host communication interface and the device number through the hardware device information, thereby utilizing the randomly assigned device number to realize automatic identification of the detection station corresponding to the detected instrument in the detection system connected through the USB interface, thereby avoiding manual input of the correspondence between the detected instrument and the detection station, which can not only improve the efficiency of entering the correspondence between the two, but also improve the accuracy of the entry.

[0055] Furthermore, the positioning and detection method for instrument equipment provided in the present application first uses the aforementioned equipment positioning method to complete the automated correspondence between the instrument to be inspected and the detection station in the detection system, and then inspects the instrument to be inspected according to the detection scheme corresponding to the instrument to be inspected. The detection scheme corresponding to the instrument to be inspected can be pre-stored in the detection system, or generated based on the detection scheme generation rules pre-stored in the system, thereby improving the degree of automation of the corresponding detection of the instrument to be inspected. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 A schematic diagram of the architecture of a Linux system is shown;

[0057] Figure 2 A schematic flow chart showing the positioning detection method of the instrument equipment provided in the present application is shown. DETAILED DESCRIPTION

[0058] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of methods consistent with some aspects of the present invention as detailed in the appended claims.

[0059] The positioning detection method of the instrument equipment, the computer-readable storage medium and the control host provided by the present application are described in detail below through specific embodiments.

[0060] First, a brief introduction to the usage scenarios of this solution is given.

[0061] During the instrument detection process, the control host needs to control and communicate with the instrument under test and its corresponding detection station. Therefore, the control host pre-stores the corresponding relationship between the instrument under test and its corresponding detection station, that is, the instrument under test has a unique instrument identification code, and the detection station also has a unique station identification code. The instrument identification code and the station identification code have a fixed corresponding relationship in a complete detection process. The control host can control the communication and connection and disconnection between the instrument under test and the detection station according to the corresponding relationship.

[0062] It can be understood that the instrument under test has two circuits in the detection system, one is a detection circuit and the other is a communication circuit, and the detection circuit and the communication circuit are independent of each other.

[0063] For linear systems such as Windows, there is a readable correspondence between the application layer and the hardware layer. Therefore, the linear system can automatically establish the relationship between the instrument under test, the host communication interface and the detection station. Specifically, the identity code inherent in the instrument under test can be used as the identification basis for establishing the correspondence between the three.

[0064] However, in the process of testing the instruments under test, especially when the instruments under test are products of the same manufacturer and model, in the process of identifying the instruments under test, the linear system has a large processing pressure, which can easily lead to problems such as high error rate and poor system compatibility. The modular system can overcome the above problems. Therefore, the current detection system tends to adopt a modular system, such as Linux, Unix or other similar modular systems.

[0065] Figure 1 A schematic diagram of the architecture of a Linux system is shown, Figure 1 As shown, each function and virtual component in the modular system is modular. Therefore, the functions of the application layer are independent of the hardware modules, resulting in no readable relationship between the application layer and the system logic. Furthermore, since the automatic establishment of the corresponding relationship between the instrument under test, the host communication interface and the detection station is based on the application layer, the relationship between the three must be readable to be established. It can be seen that for the modular system, there is a path barrier to automatically establish the corresponding relationship between the instrument under test, the host communication interface and the detection station.

[0066] Specifically, for the modular system, after the instrument under test is connected to the communication line, the control host can only query the correspondence between the host communication interface and the device number through instructions. The device number is the device information temporarily assigned by the control host to the connected instrument under test. For example, the control host assigns the device information according to the order in which the instruments under test are connected to the communication line. In the actual detection process, the order in which the instruments under test are formally connected to the communication line is difficult to determine, and the connection of the instruments under test may occur at any time, that is, the device number can be considered to be randomly assigned. Therefore, the corresponding instrument under test cannot be determined based on the device number, and thus the correspondence between the instrument under test and the host communication interface cannot be established, and further the correspondence between the instrument under test and the detection station cannot be determined. Therefore, the prior art cannot realize automatic identification of the instrument under test and the detection station where it is located based on the modular system.

[0067] Specifically, in order to identify and determine the identity of the instrument under test in the communication line, the control host needs to first communicate with the instrument under test and read the serial number (Serial Number, SN) of the instrument under test, and then establish a corresponding relationship between the SN and its corresponding communication interface.

[0068] For a modular system, the control host can retrieve the correspondence between the SN and the communication channel, and based on the communication channel, can further retrieve the device number corresponding to the communication channel. For example, the device number is BUS001DEVICE001. However, based on the SN, the information of the host communication interface (port) cannot be obtained. Combined with the foregoing, it can be seen that the SN is assigned by the control host according to the order of access to the communication line. Therefore, the SN may correspond to any host communication interface, resulting in the control host being unable to determine which host communication interface the SN of the instrument under test is obtained by.

[0069] Furthermore, the control host can query the device information from the device management folder of the instrument electrical signal detection system. The device management folder can assign a device name to the instrument under test according to the type of device and the connection order, for example, ttyUSB0. Since the control host cannot determine whether there are other external devices on the communication line based on the device management file, it is also impossible to establish a corresponding relationship with the SN based on the device name.

[0070] Furthermore, when querying the interface information of the device in the instrument electrical signal detection system, similarly, based on the architecture of modular systems such as Linux, only the device number corresponding to a host communication interface can be queried. For example, port1 corresponds to BUS001DEVICE001. As mentioned above, BUS001DEVICE001 is assigned at any time. Therefore, the device number may be the instrument being tested, or it may be other instruments being tested connected to the detection system, resulting in the control host being unable to determine which instrument being tested is connected to port1.

[0071] In order to solve the problem of automatically identifying the correspondence between the instrument to be tested and the detection station of the modular system, the present application provides a positioning detection method for instrument equipment. The positioning detection method provided by the present application is applied to an instrument equipment detection system, wherein the instrument detection system includes a control host, at least two detection stations and at least two host communication interfaces.

[0072] In this example, the control host is connected to the detection station, and the control host is connected to the instrument under test through the host communication interface, so as to control the on and off of the detection station and whether the instrument under test is connected to the instrument detection system.

[0073] In this example, the detection station and the host communication interface are preset with a position correspondence relationship, specifically, it can include at least the following two correspondence relationships:

[0074] The first is a one-to-one correspondence, that is, one inspection station has a correspondence with a unique host communication interface;

[0075] The second is a one-to-many correspondence, that is, one detection station has a correspondence with at least two host communication interfaces. For example, the instrument detection system includes 100 host communication interfaces and 100 detection stations, among which host communication interfaces No. 1 to 4 correspond to detection stations No. A to D. Therefore, the pre-stored correspondence is that host communication interface No. 1 corresponds to detection stations No. A to D, and similarly, host communication interfaces No. 2 to 4 also correspond to detection stations No. A to D respectively.

[0076] Generally, to facilitate the configuration of the meter electrical signal detection system, the host communication interfaces in the same meter electrical signal detection system often adopt the same mode, for example, all adopt a USB interface or a USB to serial port.

[0077] In this example, the detection station is used to arrange the instrument under test and control the on and off of the instrument under test in the detection circuit.

[0078] Generally, a detection switch is provided on the detection station, one end of the detection switch is electrically connected to the detection circuit, and the other end is electrically connected to the test interface of the instrument to be detected arranged on the detection station. According to the control instruction sent by the control host, the detection switch can be in a connected state or a disconnected state: if it is in a connected state, the instrument to be detected arranged thereon is electrically connected to the detection circuit; if it is in a disconnected state, the instrument to be detected arranged thereon and the detection circuit are disconnected electrically.

[0079] For ease of description, in this example, the scheme of the present application is illustrated by taking the first instrument to be tested connected to the detection circuit as an example, the first instrument to be tested has the ability to measure electrical signals, specifically, the first instrument to be tested may include a tested interface, a host communication interface, a main control module and an electrical measurement module, wherein the tested interface is electrically connected to the electrical measurement module, the electrical measurement module is used to measure the electrical signal at the tested interface, and convert the measurement result into a digital signal and send it to the main control module, the main control module is digitally connected to the host communication interface of the control host, and further, the main control module can establish a connection with an external device, such as an instrument electrical signal detection system, through the host communication interface.

[0080] In this example, the first instrument under test can be arranged on any testing station. Specifically, the interface to be tested of the first instrument under test is electrically connected to the testing station, and the host communication interface of the first instrument under test is connected to the first host communication interface.

[0081] If the tested communication interface of the first tested instrument is connected to the first host communication interface, for the convenience of description, the first host communication interface is a USB interface, and the control host obtains a vendor identification code (VendorID, VID, representing the manufacturer's number) or a product identification code (ProductID, PID, representing the manufacturer's internal product number) from the first tested instrument to determine the communication requirements of the first tested instrument. According to the PID / VID of the first tested instrument, the control host establishes a first communication channel with the first tested instrument in the detection system. At the same time, a device number is assigned to the first tested instrument in the system according to the connection sequence of the first tested instrument, for example, BUS001DEVICE001. The device number is used to identify the first tested instrument in the detection system.

[0082] It should be noted that PID / VID is used to determine the communication requirements between the first instrument under test and the control host, for example, based on the communication protocol between the two, so that the first instrument under test and the control host can communicate based on the connection.

[0083] It is understandable that PID / VID is characteristic information using USB communication. If other communication methods are used, such as serial port, etc., the characteristic information can be other information according to the requirements of the preset communication protocol.

[0084] After the first instrument under test successfully shakes hands with the control host and the two establish a communication connection, the control host can send an information reading instruction to the first instrument under test through the first communication channel to read the product serial number (Serial Number, SN) from the first instrument under test, thereby confirming the identity characteristics of the first instrument under test.

[0085] It can be understood that SN is only one of the identity feature information of the first inspected instrument. If other identity feature information is stored in the first inspected instrument, other identity feature information can also be selected, or a combination of identity feature information can be selected. For example, the user can number his own instruments and assign a unique and fixed instrument number to each instrument, and the instrument number can replace the aforementioned SN.

[0086] In this example, the detection system may also include a standard device, and the standard device is connected to the detection system via a standard interface configured thereon. Generally, the standard device is also connected to the control host by signal, and the two can perform signal communication.

[0087] According to specific detection needs, the standard device can be a standard device with the ability to generate standard electrical signals. If so, according to the control instructions of the control host, the standard device can generate a standard electrical signal within the measuring range and output it to the detection circuit through the standard interface. The detection circuit transmits the standard electrical signal and finally reaches the first instrument under test.

[0088] According to specific detection needs, the standard equipment can also be a standard measuring instrument for measuring the electrical signal to be tested. If so, the electrical signal to be tested is transmitted to the standard interface through the detection circuit. The standard equipment can measure the electrical signal to be tested input into the standard interface and give a standard indication.

[0089] Furthermore, the standard equipment may also be a combination of a standard device and a standard measuring instrument.

[0090] Generally speaking, the indications given by standard equipment during the testing process can be considered as true values.

[0091] It is understandable that the standard equipment is a general reference. In the same testing process, there may be only one, two or more standard equipment used.

[0092] In this example, the so-called standard electrical signal / electrical signal to be tested can be one or a combination of voltage, current or resistance, and can be a strong electrical signal or a weak electrical signal. When the standard device has two or more electrical signal capabilities, only one of them is executed at the same time.

[0093] In this example, after the first instrument under test is connected to the detection system, the detection station is in a connected state, that is, the control host can recognize the access of the first instrument under test, but has not yet established a communication connection with the first instrument under test.

[0094] Figure 2 A schematic diagram showing the flow of the positioning detection method of the instrument equipment provided by the present application is shown as follows: Figure 2 As shown, the positioning detection method includes the following steps S100 to S600:

[0095] Step 100: the control host establishes a communication connection with a first instrument under test through a first host communication interface, wherein the first host communication interface is one of the at least two host communication interfaces, and the first instrument under test is one of the instruments under test.

[0096] In step 200, the control host sets the first instrument to be tested as a first connection object, and the control host is configured to identify the first instrument to be tested according to the first connection object during the current connection process.

[0097] In combination with the positioning detection method described in the first aspect, after the control host sets the first detected instrument as the first connection object, the control host verifies the connection status of the first connection object to see whether the connection status of the first connection object has changed. If the connection status of the first connection object has changed, at least one of the following three methods can be selected for processing:

[0098] The first processing method: terminating the detection control;

[0099] The second processing method: re-execute the aforementioned positioning detection method to obtain the first identity correspondence relationship;

[0100] A third processing method: reacquiring the first communication correspondence relationship.

[0101] The method provided in the present application can select different processing methods according to the change of the connection of the first connection object, thereby improving the accuracy of the correspondence between the first inspected instrument and the inspection station.

[0102] In the present application, the method of setting the first instrument under test as the first connection object also includes three specific implementation methods. Correspondingly, verifying the connection status of the first connection object also includes three specific implementation methods, specifically:

[0103] In a first implementation, setting the first instrument under test as a first connection object includes establishing a first data channel based on handshake information of the first instrument under test, the first data channel being used for data transmission between the control host and the first connection object; verifying the connection status of the first connection object includes determining the validity status of the first data channel;

[0104] In a second implementation, setting the first instrument under test as a first connection object includes assigning a first device number to the first connection object, wherein the first device number is not repeatedly generated during a power-on process of the control host, and verifying the connection status of the first connection object includes reading the first device number to determine whether it has changed;

[0105] In a third implementation manner, the verifying the connection status of the first connection object includes reading identity information of the first connection object and determining whether the reading result is the same as the first identity identification code.

[0106] In step 300, the control host reads the identity information of the first connection object to obtain a first identity identification code, where the first identity identification code is used to identify the first instrument to be inspected, and obtains a first identity correspondence between the first connection object and the first instrument to be inspected.

[0107] In this application, the position correspondence relationship includes at least the following two types:

[0108] The first position correspondence includes that the first host communication interface corresponds to the first detection station, that is, the first host communication interface and the first detection station are in a one-to-one correspondence, and the first detection station is one of the at least two detection stations. Then, obtaining the correspondence between the first inspected instrument and the detection station can specifically include: obtaining the correspondence between the first inspected instrument and the first detection station.

[0109] The second position correspondence relationship includes that the first host communication interface corresponds to at least two of the detection stations including the first detection station, that is, the first host communication interface and the first detection station are in a one-to-one correspondence relationship, and the first detection station is one of the at least two detection stations; then determining the correspondence relationship between the first inspected instrument and the first detection station may specifically include:

[0110] Verifying whether the first inspected instrument uniquely corresponds to the first inspection station;

[0111] If the first inspected instrument uniquely corresponds to the first inspection station, the corresponding relationship between the first inspected instrument and the first inspection station is obtained.

[0112] Furthermore, the verification of whether the first inspected instrument uniquely corresponds to the first inspection station may specifically include:

[0113] The control host obtains an idle inspection station from the at least two inspection stations;

[0114] If the first inspection station is the only idle inspection station, it is determined that the first inspected instrument uniquely corresponds to the first inspection station.

[0115] In the present application, the instrument detection system may include a signal source device and a signal measurement device, specifically:

[0116] In a first possible implementation, the instrument detection system includes a signal source device, and the verification of whether the first detected instrument uniquely corresponds to the first detection station may specifically include:

[0117] The control host controls the at least two detection stations, including controlling the detection circuit of the first detection station to be connected, and controlling the detection circuits of other detection stations to be disconnected;

[0118] At least partially simultaneously, the control host communicates with the signal source device to make the signal source device generate a first verification signal, and the control host communicates with the first instrument under test to make the first instrument under test measure the first verification signal and obtain an instrument measurement result;

[0119] The control host determines whether the first verification signal is identical to the measurement result of the instrument. If they are identical, it is determined that the first inspected instrument is uniquely corresponding to the first inspection station.

[0120] In a second possible implementation, the instrument detection system includes a signal measuring device, and the verification of whether the first detected instrument uniquely corresponds to the first detection station may specifically include:

[0121] The control host controls the at least two detection stations, including controlling the detection circuit of the first detection station to be connected, and controlling the detection circuits of other detection stations to be disconnected;

[0122] At least partially simultaneously, the control host controls the first instrument under test, causing the first instrument under test to generate a second verification signal, and the control host communicates with the signal measuring device, causing the signal measuring device to measure the second verification signal and obtain a device measurement result;

[0123] The control host determines whether the second verification signal is the same as the device measurement result. If they are the same, it is determined that the first inspected instrument and the first inspection station are uniquely corresponding.

[0124] In the present application, the signal source device and the signal measurement device can be either a standard device or a tested instrument, specifically:

[0125] In a first possible implementation, the signal source device is a standard signal source or a second instrument to be tested, the standard signal source detection is connected to the at least two detection stations, the second instrument to be tested is connected to the second detection station, and the communication is connected to the second host communication interface, the second instrument to be tested is one of the instruments to be tested, the second detection station is one of the at least two detection stations and is different from the first detection station, and the second host communication interface is one of the at least two host communication interfaces and is different from the first host communication interface.

[0126] In a second possible implementation, the signal measuring device is a standard measuring instrument or a third instrument to be tested, the standard measuring instrument is detected and connected to the at least two testing stations, the third instrument to be tested is detected and connected to a third testing station, and is communicated with a third host communication interface, the third instrument to be tested is one of the instruments to be tested, the third testing station is one of the at least two testing stations and is different from the first testing station, and the third host communication interface is one of the at least two host communication interfaces and is different from the first host communication interface.

[0127] Step 400: the control host identifies connection objects of the at least two host communication interfaces, and obtains a first communication correspondence between the first host communication interface and the first connection object.

[0128] In this example, the connection objects of the at least two host communication interfaces may be in the following three situations:

[0129] The first case is that the connection object is empty;

[0130] The second situation is that the connection object happens to be the first connection object;

[0131] The third situation is that the connection object is another connection object.

[0132] Step 500: The control host obtains a first connection correspondence between the first inspected instrument and the first host communication interface according to the first identity correspondence and the first communication correspondence.

[0133] In this example, the steps of determining the first communication correspondence between the first host communication interface and the first connection object, and determining the first identity correspondence between the first connection object and the first inspected instrument can be performed simultaneously or sequentially in steps.

[0134] Step 600: The control host obtains the correspondence between the first inspected instrument and the inspection station according to the first connection correspondence and the position correspondence.

[0135] In this example, based on the first communication correspondence between the first host communication interface and the first connection object, and the first identity correspondence between the first connection object and the first instrument under test, the control host can obtain the first connection correspondence between the first instrument under test and the first host communication interface.

[0136] The applicant has discovered that the correspondence between the detection station and the host communication interface can be used to obtain the correspondence between the detection station and the instrument under test. Specifically, if the correspondence between a specific detection station and a specific host communication interface is determined in advance, when the instrument under test is arranged at the specific detection station, a connection between the instrument under test and the specific host communication interface is established, and the correspondence between the detection station and the instrument under test can be determined with the help of the connection.

[0137] Specifically, the positioning detection method for instrument equipment provided in the present application determines the correspondence between the first host communication interface and the first connection object and the correspondence between the first instrument under test and the first host communication interface respectively, thereby combining the position correspondence between the detection station and the host communication interface, and automatically using the first host communication interface as a bridge to establish the correspondence between the detection station and the first instrument under test.

[0138] In this example, the control host can automatically obtain and / or determine the first detection scheme corresponding to the first detected instrument, and the process can be implemented in the following two ways:

[0139] The first implementation method: a unique set of detection schemes is pre-installed in the control host, and the detection scheme is called the first detection scheme and its corresponding relationship with the first instrument to be inspected. After determining the corresponding relationship between the first instrument to be inspected and the detection station, the first detection scheme can be assigned to the first instrument to be inspected.

[0140] Second implementation: the control host is pre-installed with multiple detection schemes, or the control host is pre-stored with requirement information that can form a detection scheme, such as verification procedures, calibration specifications, calibration requirements, detection requirements, etc. The control host determines the first detection scheme by making a judgment and comparison based on the information obtained based on the first instrument under test.

[0141] In this example, the information used to determine the condition of the first inspected instrument in the first implementation method and the second implementation method includes but is not limited to a combination of one or more of the following information: SN, PID / VID, range, accuracy, division value, maximum allowable error, historical detection data, etc.

[0142] The positioning detection method provided in the present application further includes the following steps S700 and S800 after determining the corresponding relationship between the first detected instrument and the first detection station:

[0143] Step 700: the control host performs detection and control on the first detected instrument.

[0144] Specifically, this step may include: communicating with the first instrument under test, so that the first instrument under test generates or measures the detection signal.

[0145] Step 800: the control host controls the detection station so that the detection signal is transmitted between the instrument detection system and the first instrument to be detected.

[0146] In the present application, the control host is also used to control the first instrument to be tested and the testing station, so that the first instrument to be tested can communicate and detect with the testing station.

[0147] In this example, according to the first detection scheme corresponding to the first detected instrument, the control host detects the first detected instrument by adopting the following scheme:

[0148] The control host controls the standard equipment to generate a standard electrical signal;

[0149] The control host sends a control instruction to disconnect the electrical connection to other inspection stations except the first inspection station;

[0150] The control host sends a measurement instruction for a standard electrical signal to the first inspected instrument through a first communication channel, and sends a control instruction for establishing an electrical connection to the first inspection station;

[0151] Based on the relevant instructions, the first testing station establishes an electrical connection between the first tested instrument and the testing circuit, while other tested instruments are disconnected from the testing circuit;

[0152] The standard electrical signal is transmitted to the test interface of the first instrument under test through the detection circuit, and the electrical measurement module of the first instrument under test measures the standard electrical signal and transmits the measurement result to the main control module of the first instrument under test.

[0153] The main control module of the first instrument under test identifies the measurement result, thereby determining a first indication to be measured, that is, a value corresponding to the physical quantity represented by the electrical signal obtained by the first instrument under test;

[0154] Then, according to the detection purpose corresponding to the first detection scheme, all measurement tasks are completed item by item and the measurement results are processed to complete the detection task.

[0155] For example, if the first detection scheme is used for calibration, the control host obtains several sets of standard indications and first indications to be measured, calculates whether the first indications to be measured are out of tolerance, and then determines whether the first instrument to be tested is qualified.

[0156] If the first detection scheme is used for calibration, several groups of standard indications and first indications to be measured are obtained, the deviation of the first indications to be measured is calculated, and then the measurement condition of the first instrument under test is evaluated.

[0157] If the first detection scheme is used for adjustment, then based on the above calibration, when the evaluation result is not ideal, the standard indication is input into the first instrument under test corresponding to the first indication to be measured, and the first instrument under test generates a compensation function or compensation value according to the standard indication.

[0158] If the first detection scheme is used for calibration, after the first detected instrument obtains the first indication to be measured, the control host sends the standard indication to the first detected instrument, and the first detected instrument can calibrate the measured indication according to its preset calibration formula.

[0159] Optionally, in this example, the at least two inspection stations in the inspection system may include a fourth inspection station, a fourth inspected instrument is connected to the fourth inspection station, the fourth inspected instrument is one of the inspected instruments, and the fourth inspected instrument is different from the first inspected instrument. The control host is configured to inspect and control the inspection instruments one by one, and before the control host inspects and controls the fourth inspected instrument, the corresponding relationship between the first inspected instrument and the inspection station is obtained.

[0160] In this example, if the first detected instrument is offline during the detection process, the positioning detection method may further include the following steps 901 to 906:

[0161] Step 901, the control host obtains offline information of the first inspected instrument, the offline information includes the original inspection position of the first inspected instrument, the execution status of the original inspection scheme and the offline time, the original inspection position is the inspection position occupied by the first inspected instrument before the instrument goes offline, and the original inspection scheme is the inspection scheme executed by the first inspected instrument before the instrument goes offline;

[0162] Step 902, the control host obtains the secondary online information of the first inspected instrument, the secondary online information includes the existing inspection station and online time of the first inspected instrument, the online time is later than the offline time, and the existing inspection station is the inspection station occupied by the first inspected instrument in the secondary online;

[0163] Step 903: If the original inspection station is the same as the existing inspection station, and the time interval between the offline time and the online time is less than the preset time interval, the control host continues to execute the original inspection plan for the first inspected instrument;

[0164] Step 904: If the original inspection station is different from the existing inspection station, or the time interval between the offline time and the online time is greater than the preset time length, the positioning detection method further includes:

[0165] Step 905, the control host obtains the existing detection scheme of the first detected instrument;

[0166] Step 906: the control host executes the existing detection scheme on the first detected instrument.

[0167] In addition, the present application also provides a computer-readable storage medium on which computer instructions are stored, and when the instructions are executed by a processor, the steps of the aforementioned positioning detection method are implemented.

[0168] Furthermore, the present application also provides a control host, which includes: at least one processor and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the one processor, and the instructions are executed by the at least one processor so that the at least one processor performs the aforementioned positioning detection method.

[0169] The present application is described in detail above in conjunction with specific implementation methods and exemplary examples, but these descriptions cannot be understood as limiting the present application. Those skilled in the art understand that, without departing from the spirit and scope of the present application, a variety of equivalent replacements, modifications or improvements can be made to the technical solution of the present application and its implementation methods, all of which fall within the scope of the present application. The scope of protection of the present application shall be subject to the attached claims.

Claims

1. A positioning detection method for instrument equipment, It is characterized in that The positioning detection method is applied to an instrument detection system, the instrument detection system includes a control host, at least two detection stations and at least two host communication interfaces, the control host is controlled and connected to the detection station, the control host is connected to the detected instrument through the host communication interface, the detection station and the host communication interface have a position correspondence relationship, based on the position correspondence relationship, the detection station is used to control the detection connection of the detected instrument, the control host pre-stores the position correspondence relationship, and the positioning detection method includes: The control host establishes a communication connection with a first instrument under test through a first host communication interface, the first host communication interface is one of the at least two host communication interfaces, and the first instrument under test is one of the instruments under test; the control host sets the first instrument under test as a first connection object, and the control host is configured to identify the first instrument under test according to the first connection object during the current connection process; The control host reads the identity information of the first connection object to obtain a first identity identification code, where the first identity identification code is used to identify the first instrument to be inspected, and obtains a first identity correspondence between the first connection object and the first instrument to be inspected; The control host identifies the connection objects of the at least two host communication interfaces, and obtains a first communication correspondence between the first host communication interface and the first connection object; The control host obtains a first connection correspondence between the first inspected instrument and the first host communication interface according to the first identity correspondence and the first communication correspondence; The control host obtains the correspondence between the first inspected instrument and the inspection station according to the first connection correspondence and the position correspondence.

2. The positioning detection method according to claim 1, It is characterized in that The positioning detection method also includes: The control host performs detection control on the first detected instrument, specifically including communicating with the first detected instrument to enable the first detected instrument to generate or measure a detection signal; The control host controls the detection station so that the detection signal is transmitted between the instrument detection system and the first detected instrument.

3. The positioning detection method according to claim 1, It is characterized in that It occurs after the control host sets the first detected instrument as the first connection object. The control host verifies the connection status of the first connection object. If the connection status of the first connection object changes, the detection control is terminated, and / or the positioning detection method as described in claim 1 is re-executed to obtain the first identity correspondence, and / or the first communication correspondence is re-acquired.

4. The positioning detection method according to claim 3, It is characterized in that The setting of the first instrument under test as the first connection object includes establishing a first data channel based on handshake information of the first instrument under test, wherein the first data channel is used for data transmission between the control host and the first connection object; The verifying the connection status of the first connection object includes determining the validity status of the first data channel; and / or, The setting of the first instrument to be inspected as the first connection object includes assigning a first device number to the first connection object, wherein the first device number is not repeatedly generated during a power-on process of the control host; The verifying the connection status of the first connection object includes reading the first device number to determine whether it has changed; and / or, The verification of the connection status of the first connection object, The method includes reading the identity information of the first connection object and determining whether the reading result is the same as the first identity identification code.

5. The positioning detection method according to claim 3 or 4, It is characterized in that The position correspondence relationship includes that the first host communication interface corresponds to the first detection station, and the first detection station is one of the at least two detection stations; the obtaining of the correspondence between the first inspected instrument and the detection station includes obtaining the correspondence between the first inspected instrument and the first detection station.

6. The positioning detection method according to claim 3 or 4, It is characterized in that The position correspondence includes that the first host communication interface corresponds to at least two of the inspection stations including the first inspection station, and the first inspection station is one of the at least two inspection stations; determining the correspondence between the first inspected instrument and the first inspection station, including verifying whether the first inspected instrument uniquely corresponds to the first inspection station, and if so, obtaining the correspondence between the first inspected instrument and the first inspection station.

7. The positioning detection method according to claim 6, It is characterized in that The verifying whether the first inspected instrument uniquely corresponds to the first inspection station includes: The control host obtains an idle inspection station from the at least two inspection stations; If the first inspection station is the only idle inspection station, it is determined that the first inspected instrument uniquely corresponds to the first inspection station.

8. The positioning detection method according to claim 6, It is characterized in that The instrument detection system includes a signal source device, and the verification of whether the first detected instrument uniquely corresponds to the first detection station includes: The control host controls the at least two detection stations, including controlling the detection circuit of the first detection station to be connected, and controlling the detection circuits of other detection stations to be disconnected; At least partially simultaneously, the control host communicates with the signal source device to make the signal source device generate a first verification signal, and the control host communicates with the first instrument under test to make the first instrument under test measure the first verification signal and obtain an instrument measurement result; The control host determines whether the first verification signal and the instrument measurement result are the same, and if they are the same, determines that the first inspected instrument and the first inspection station are uniquely corresponding; and / or, The instrument detection system includes a signal measuring device, and the verification of whether the first detected instrument uniquely corresponds to the first detection station includes: The control host controls the at least two detection stations, including controlling the detection circuit of the first detection station to be connected, and controlling the detection circuits of other detection stations to be disconnected; At least partially simultaneously, the control host controls the first instrument under test, causing the first instrument under test to generate a second verification signal, and the control host communicates with the signal measuring device, causing the signal measuring device to measure the second verification signal and obtain a device measurement result; The control host determines whether the second verification signal is the same as the device measurement result. If they are the same, it is determined that the first inspected instrument and the first inspection station are uniquely corresponding.

9. The positioning detection method according to claim 8, It is characterized in that The signal source device is a standard signal source or a second instrument to be tested, the standard signal source is detected and connected to the at least two testing stations, the second instrument to be tested is detected and connected to the second testing station, and is communicated with the second host communication interface, the second instrument to be tested is one of the instruments to be tested, the second testing station is one of the at least two testing stations and is different from the first testing station, and the second host communication interface is one of the at least two host communication interfaces and is different from the first host communication interface; and / or, The signal measuring device is a standard measuring instrument or a third instrument to be tested. The standard measuring instrument is detected and connected to the at least two testing stations. The third instrument to be tested is detected and connected to the third testing station. The communication is connected to the third host communication interface. The third instrument to be tested is one of the instruments to be tested. The third testing station is one of the at least two testing stations and is different from the first testing station. The third host communication interface is one of the at least two host communication interfaces and is different from the first host communication interface.

10. The positioning detection method according to any one of claims 6 to 9, It is characterized in that The at least two inspection stations include a fourth inspection station, a fourth inspected instrument is inspected and connected to the fourth inspection station, the fourth inspected instrument is one of the inspected instruments, the control host is configured to inspect and control the inspection instruments one by one, and before the control host inspects and controls the fourth inspected instrument, the corresponding relationship between the first inspected instrument and the inspection station is obtained.

11. The positioning detection method according to claim 3 or 4, It is characterized in that The positioning detection method also includes: The control host obtains offline information of the first inspected instrument, the offline information including the original inspection station of the first inspected instrument, the execution status of the original inspection scheme and the offline time, the original inspection station is the inspection station occupied by the first inspected instrument before the instrument goes offline, and the original inspection scheme is the inspection scheme executed by the first inspected instrument before the instrument goes offline; The control host obtains the secondary online information of the first inspected instrument, the secondary online information includes the existing inspection station and online time of the first inspected instrument, the online time is later than the offline time, and the existing inspection station is the inspection station occupied by the first inspected instrument in the secondary online process; If the original inspection station is the same as the existing inspection station, and the time interval between the offline time and the online time is less than the preset time interval, the control host continues to execute the original inspection plan for the first inspected instrument; If the original detection station is different from the existing detection station, or the time interval between the offline time and the online time is greater than the preset time length, the positioning detection method further includes: The control host obtains an existing detection scheme of the first detected instrument; The control host executes the existing detection scheme on the first detected instrument.

12. A computer-readable storage medium, It is characterized in that Computer instructions are stored thereon, and when the instructions are executed by a processor, the steps of the positioning detection method described in any one of claims 1 to 11 are implemented.

13. A control host, It is characterized in that The control host includes: at least one processor and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the one processor, and the instructions are executed by the at least one processor so that the at least one processor executes the positioning detection method described in any one of claims 1 to 10.

Citation Information

Cited By

  • Multi-serial-port communication scheduling method and system, electronic equipment and storage medium

    CN120692238A