Method and device for analyzing communication instructions of sorting machine for final testing equipment

By extracting and comparing communication instructions between the final test device and the sorting machine, analyzing the character encoding method and generating configuration files, the problem of the final test device in the prior art needs to develop multiple drivers to adapt to different sorting machines, realizing the adaptive communication control of the final test device for various sorting machines, and improving efficiency and reusability.

CN114546487BActive Publication Date: 2025-02-28BEIJING HUAFENG TEST & CONTROL TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210112072.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-29
Publication Date
2025-02-28
Estimated Expiration
2042-01-29

AI Technical Summary

Technical Problem

The existing final testing equipment needs to develop different drivers according to different models of sorting machines, which leads to complex use and error-prone driving, and the development of new types of instructions is time-consuming and labor-intensive, extending the production cycle of the equipment.

Method used

A method for a sorter communication instruction for a final test device is provided. By extracting and comparing the same and different contents of different communication instructions, the encoding method of characters in the instructions is analyzed, the configuration file is generated and the corresponding sorter identification is stored.

Benefits of technology

The final test equipment is used to adaptively analyze communication instructions for various types of sorting machines, improve operational efficiency and reusability, avoid user selection errors and development time, and shorten the equipment input mass production cycle.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114546487B_ABST
    Figure CN114546487B_ABST
Patent Text Reader

Abstract

The present application provides a method and device for parsing communication instructions of a sorter for final test equipment. The method is executed by the final test equipment connected to the sorter, and the communication instruction records one of the following items: the occupation status of at least one station, the bin value of the device corresponding to at least one station; the method includes: extracting the same content of the first communication instruction obtained and the second communication instruction; extracting the different content of the first communication instruction obtained and the second communication instruction obtained; according to the same content and the different content, parsing the encoding method of the characters used to indicate the occupation status of the station or the encoding method of the characters used to indicate the bin value of the device corresponding to the station in the communication instruction. The method can parse various types of communication instructions of sorters for final test equipment, and is used to support sorters of various types of communication instructions, with good reusability and high operating efficiency, saving the workload and development time of developing drivers corresponding to new types of instructions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a method and device for parsing communication instructions of a sorter of a final testing device. Background Art

[0002] When the automatic test equipment (ATE) is conducting finished product testing of semiconductor devices (chips), also known as the final test (FT) process, as the final test equipment, it needs to communicate with the handler multiple times to control the robot installed on the handler to load materials or control the robot to sort the devices.

[0003] For the final test equipment ATE, it needs to communicate with different types of sorters. However, the types of instructions for different types of sorters to communicate with ATE are different, and even different types of sorters from the same manufacturer have different types of instructions for communicating with ATE.

[0004] At present, the common practice of ATE equipment manufacturers is to develop different drivers according to the different types of communication instructions supported by the sorting machine. This will cause ATE equipment users to select the corresponding driver according to the type of Handler when using it, which is cumbersome and prone to errors, and may even lead to the inability to carry out testing smoothly.

[0005] For ATE equipment manufacturers, in order to support new types of communication instructions, they need to develop new drivers, which is time-consuming and labor-intensive, and will also extend the production cycle of ATE equipment and sorting machines. In addition, one type of sorting machine corresponds to one driver mode, which also brings about problems such as cumbersome and inefficient maintenance and upgrade of ATE equipment. Summary of the invention

[0006] The main purpose of this application is to provide a method and device for parsing communication instructions of a sorting machine for a final testing device, so as to solve the above-mentioned technical problems.

[0007] In a first aspect, the present application provides a method for parsing communication instructions of a sorter for a final test device, which is executed by the final test device connected to the sorter, and the communication instruction records one of the following items: the occupancy status of at least one workstation, the bin value of a device corresponding to at least one workstation; the method comprises: extracting the same content of the first communication instruction obtained and the second communication instruction obtained, and / or extracting the different content of the first communication instruction obtained and the second communication instruction obtained; according to the same content and the different content, parsing the encoding method of the characters used to indicate the occupancy status of the workstation or the encoding method of the characters used to indicate the bin value of the device corresponding to the workstation in the communication instruction.

[0008] In some embodiments, when the first communication instruction and the second communication instruction belong to the first valid workstation communication instruction, the first valid workstation communication instruction records the occupancy status of at least one workstation; the first communication instruction and the second communication instruction are compared character by character to extract the same content, and the same content includes at least one of the following: an instruction header, at least one separator, and an instruction tail; the first communication instruction and the second communication instruction are compared character by character to extract different content, and the different content includes: the occupancy status of at least one workstation recorded in the first communication instruction and the occupancy status of at least one workstation recorded in the second communication instruction; based on the same content, the occupancy status of at least one workstation recorded in the first communication instruction, and the occupancy status of at least one workstation recorded in the second communication instruction, the correspondence between the order of characters in the first valid workstation communication instruction and the order of workstations is parsed.

[0009] In some embodiments, when the first communication instruction and the second communication instruction belong to the second valid workstation communication instruction, the second valid workstation communication instruction records at least one workstation number; the first communication instruction and the second communication instruction are compared character by character to extract the same content, and the same content includes at least one of the following: an instruction header, at least one separator, and an instruction tail; the first communication instruction and the second communication instruction are compared character by character to extract different content, and the different content includes: at least one workstation number recorded in the first communication instruction and at least one workstation number recorded in the second communication instruction; based on the same content, at least one workstation number recorded in the first communication instruction, and at least one workstation number recorded in the second communication instruction, the encoding method of the number used to indicate the workstation number in the second valid workstation communication instruction is parsed as any one of the following: decimal, hexadecimal, and ASCII code.

[0010] In some embodiments, when the first communication instruction and the second communication instruction belong to the gear communication instruction, the gear communication instruction records the gear value of a device corresponding to at least one workstation; the first communication instruction and the second communication instruction are compared character by character to extract the same content, and the same content includes at least one of the following: an instruction header, at least one separator, and an instruction tail; the first communication instruction and the second communication instruction are compared character by character to extract different content, and the different content includes: the gear value of a device corresponding to at least one workstation recorded in the first communication instruction and the gear value of a device corresponding to at least one workstation recorded in the second communication instruction; according to the same content, the gear value of the device corresponding to at least one workstation recorded in the first communication instruction and the gear value of the device corresponding to at least one workstation recorded in the second communication instruction, the encoding method of the characters used to indicate the gear value of the device in the gear communication instruction is parsed as any one of the following: decimal, hexadecimal, ASCII code, and the correspondence between the order of characters used to indicate the gear value of the device and the order of the workstations.

[0011] In some embodiments, it also includes: generating a configuration file using the encoding method of the parsed characters used to indicate the occupancy status of the workstation, or the encoding method of the characters used to indicate the grade value of the device corresponding to the workstation; and storing the configuration file in correspondence with the identifier of the sorting machine.

[0012] In the second aspect, the present application provides a device for parsing communication instructions of a sorter of a final test device, which is arranged in the final test device connected to the sorter, and the communication instruction records one of the following items: the occupancy status of at least one workstation, the bin value of a device corresponding to at least one workstation; the device includes: a same content extraction unit, used to extract the same content of the first communication instruction obtained and the second communication instruction; or a different content extraction unit, used to extract the different contents of the first communication instruction obtained and the second communication instruction obtained; an instruction parsing unit, used to parse the encoding method of the characters used to indicate the occupancy status of the workstation or the encoding method of the characters used to indicate the bin value of the device corresponding to the workstation in the communication instruction according to the same content and the different content.

[0013] In some embodiments, it also includes: a configuration file processing unit, which is used to generate a configuration file from the encoding method of the parsed characters used to indicate the occupancy status of the workstation or the encoding method of the characters used to indicate the classification value of the device corresponding to the workstation; and store the configuration file in correspondence with the identification of the sorting machine.

[0014] In a third aspect, the present application provides a computer-readable storage medium having program instructions stored thereon, wherein the program instructions, when executed by a processor, enable the processor to implement the method for parsing communication instructions of a sorting machine as described in the first aspect.

[0015] In a fourth aspect, the present application provides a final test method for a final test device, wherein the final test device is communicatively connected to a sorting machine, and the method comprises: using a configuration file to parse a valid workstation communication instruction returned by the sorting machine to determine at least one workstation where a device is placed; the configuration file is obtained according to an identification of the sorting machine, and the configuration file is generated according to the method described in the first aspect; using the configuration file to encode the generated bin value of the device corresponding to the at least one workstation where the device is placed into the bin communication instruction to send it to the sorting machine.

[0016] In some embodiments, it also includes: using the configuration file to parse the confirmation binning communication instruction returned by the sorting machine to determine the binning value of the device corresponding to each workstation recorded by the sorting machine; comparing the binning value recorded by the sorting machine and the binning value generated by the final test equipment to generate a binning confirmation message and send it to the sorting machine.

[0017] The method and device for parsing communication instructions of a sorting machine for a final test device provided in the present application can parse the communication instructions used by various types of sorting machines connected to the final test device, have good multiplexing performance and high operating efficiency, and can achieve reliable and accurate communication between sorting machines using various communication instructions and terminal devices, thereby reliably executing final test tasks.

[0018] The method and device for parsing communication instructions of a sorting machine for a final test device enable the final test device to adaptively control the communication of the sorting machine using various instructions, avoiding cumbersome use and possible selection errors by users, while also saving the workload and development time for developing drivers corresponding to new types of instructions, and shortening the cycle for the final test device and the sorting machine to be put into mass production. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 A flow chart of a method for parsing communication instructions of a sorting machine according to an embodiment of the present application;

[0020] Figure 2 A schematic diagram of the composition of a device for analyzing communication instructions of a sorting machine according to an embodiment of the present application;

[0021] Figure 3 A schematic diagram of the process of the final test equipment communicating with the sorting machine to complete the final test;

[0022] Figure 4 A schematic diagram of a flow chart of parsing communication instructions of a final test device provided with a parsing device for communication instructions of a sorting machine according to an embodiment of the present application;

[0023] Figure 5 A schematic diagram of a flow chart of parsing a valid workstation communication instruction by a method for parsing a communication instruction of a sorting machine according to an embodiment of the present application;

[0024] Figure 6 A schematic diagram of a flow chart of parsing a communication instruction of a sorting machine according to an embodiment of the present application;

[0025] Figure 7 A schematic diagram of a flow chart of the first communication control of a sorting machine by a final test device using the method for parsing the communication instructions of a sorting machine according to an embodiment of the present application;

[0026] Fig. 8A for Figure 4 A schematic diagram of the human-machine interface used by the intermediate final test equipment to parse the communication instructions of the sorting machine;

[0027] Figure 8B for Figure 4 Another diagram of the human-machine interface used by the final test equipment when parsing the communication instructions of the sorting machine. DETAILED DESCRIPTION

[0028] In order to accurately describe the technical content of the present application and to accurately understand the present application, the following explanations or definitions are given for the terms used in the present specification before describing the specific implementation methods.

[0029] General-Purpose Interface Bus, referred to as GPIB.

[0030] Standard Commands for Programmable Instruments, referred to as SCPI.

[0031] See below Figures 1 to 8A , Figure 8B The method and device for parsing communication instructions of a sorting machine used for final test equipment of the present application are described in detail. First, the general process of finished product testing is introduced, and the communication instruction parsing task for realizing communication control of the sorting machine that needs to be handled by the present application is clarified.

[0032] Binning refers to the classification of each semiconductor device into a corresponding "gear" in mass production according to the performance level or performance characteristics determined by the final test, so as to facilitate the sale of the semiconductor device, for example, according to the price corresponding to the binning value.

[0033] During the loading process of finished product testing, the robot arm of the sorting machine transfers the devices one by one to the test station (hereinafter referred to as the station) of the final test equipment. After the device is placed on the station, the pins of the device are connected to the test module of the final test equipment through the base or connecting wires on the station.

[0034] After the loading is completed, the sorting machine communicates with the final test equipment to inform the number of devices currently to be tested, that is, the number of non-empty workstations, and the workstation (number) where each device is located. At this time, the sorting machine and the final test equipment can communicate using the GPIB interface, serial port, network port, etc.

[0035] In the testing phase of finished product testing, the final test equipment uses the test module to apply input to the device on the non-empty station and collect the output of the device. The final test equipment determines the function and performance of the device based on the applied input and / or the collected output of the device, and generates test results or binning information. The binning information can be qualitative information, such as whether the performance level or performance characteristics determined by the final test are met, that is, whether the test is passed or not. The binning information can also be quantitative information, such as judging whether the function and performance of the device reaches one of the preset multiple bins, such as specifying a value of 1 to represent the highest bin and a value of 10 to represent the lowest bin.

[0036] After the test is completed, the final test equipment communicates with the sorter to inform the test results corresponding to the device that has completed the test. The test results may include the workstation (number) where the device is located, whether the device has passed the test, the device binning information, etc. The test results can also be kept locally in the final test equipment for archiving, and query services or responses to query requests can be provided.

[0037] The sorting machine bins the devices placed on each workstation according to the received binning information, such as marking, sorting, collecting or taping the devices in the batch.

[0038] As mentioned above, the sorting machine can be considered as a peripheral device connected to the final test equipment and controlled by the final test equipment. The sorting machine and the final test equipment can directly realize communication control through electrical signals, such as communication control through transistor-transistor logic (TTL) level signals. The sorting machine and the final test equipment can also realize communication control through communication instructions. For example, the sorting machine and the final test equipment communicate and realize control by sending and receiving instructions, such as connecting the GPIB interface, serial port, network port, etc. through a cable, establishing a communication link, and using the communication link to send instructions in the form of a character string. At this time, the types of instructions for communication between sorting machines of different models and the final test equipment are not the same, and even the types of instructions for communication between sorting machines of different models and the final test equipment of the same manufacturer are not the same.

[0039] In order to solve the problem that the final test equipment needs to develop drivers one by one for the types of sorting machine communication instructions, which leads to poor reusability and long development time, the present application proposes a parsing method for sorting machine communication instructions of the final test equipment, which can parse various types of sorting machine communication instructions, so that the final test equipment can adaptively realize communication control for sorting machines using various types of communication instructions, with good reusability and high operating efficiency.

[0040] The method for parsing the communication instruction of the sorting machine in the embodiment of the present application is executed by the final test device connected to the sorting machine, wherein the communication instruction records one of the following multiple items: the occupation status of at least one station, and the bin value of the device corresponding to at least one station. Here, the communication instruction recording the occupation status of at least one station will not appear at the same time as the communication instruction recording the bin value of the device corresponding to at least one station, but appear one after the other.

[0041] like Figure 1 As shown, the parsing method comprises the following steps:

[0042] S101: extracting the same contents of the first communication instruction and the second communication instruction, and / or

[0043] S102: extracting different contents between the first communication instruction and the second communication instruction;

[0044] S103: parsing the encoding method of the characters used to indicate the occupation status of the workstation or the encoding method of the characters used to indicate the bin value of the device corresponding to the workstation in the communication instruction according to the same content or different content.

[0045] As before, the semantics of communication instructions of different types of sorting machines are roughly the same or similar, but the formats of communication instructions are different. Here, the first communication instruction and the second communication instruction obtained each time are a group of communication instructions. The two communication instructions have the same format but different contents, that is, different semantics, that is, they have the same semantic part and different semantic parts.

[0046] In the above, the extraction of the same content and different content in the first communication instruction and the second communication instruction can be determined respectively in one comparison, or can be determined successively in two comparisons.

[0047] As described above, according to the same content or different content, the encoding method of the characters used to indicate the occupancy status of the workstation in the communication instruction or the encoding method of the characters used to indicate the classification value of the device corresponding to the workstation can be parsed. The same content can be parsed, different content can be parsed, or the same content and different content can be parsed alternately.

[0048] Combining the known semantics of the first communication instruction and the second communication instruction respectively, using the first communication instruction and the second communication instruction with the same encoding method, different semantics, and the same or different string lengths as references to each other, the same parts and different parts are extracted, and the same content, different content, same semantics, and different semantics are compared. The meaning of each part of the characters in the communication instruction of this format and the encoding method of each part of the characters can be accurately and efficiently parsed.

[0049] In some embodiments, when the first communication instruction and the second communication instruction belong to the first valid workstation communication instruction, the first valid workstation communication instruction records the occupancy status of at least one workstation; the first communication instruction and the second communication instruction are compared character by character to extract the same content, and the same content includes at least one of the following: an instruction header, at least one separator, and an instruction tail; the first communication instruction and the second communication instruction are compared character by character to extract different content, and the different content includes: the occupancy status of at least one workstation recorded in the first communication instruction and the occupancy status of at least one workstation recorded in the second communication instruction; based on the same content, the occupancy status of at least one workstation recorded in the first communication instruction, and the occupancy status of at least one workstation recorded in the second communication instruction, the correspondence between the order of characters in the first valid workstation communication instruction and the order of workstations is parsed.

[0050] In the above, the occupation status of at least one workstation recorded in the first communication instruction is the semantics of the valid workstation corresponding to the first communication instruction, and the occupation status of at least one workstation recorded in the second communication instruction is the semantics of the valid workstation corresponding to the second communication instruction. Parsing the correspondence between the order of characters in the first valid workstation communication instruction and the order of workstations may include parsing the same content, parsing different content, or parsing the same content and different content alternately.

[0051] At this time, the correspondence between the order of characters in the first valid workstation communication instruction and the workstation order may include: from left to right, the workstation numbers corresponding to each single character increase, or from left to right, the workstation numbers corresponding to each single character decrease. At this time, the digits of the workstation numbers, that is, the encoding method of the workstation numbers may be decimal, hexadecimal or ASCII code.

[0052] In some embodiments, the first communication instruction and the second communication instruction obtained may be communication instructions replied by the sorting machine in response to the query instruction. As mentioned above, by parsing the communication instruction recording the effective workstation information, the coding method of the communication instruction replied by the sorting machine in response to the query instruction can be determined.

[0053] like Fig. 8AAs shown in the upper part, the first communication instruction in the example of valid workstation communication instructions obtained by the sorting machine to send to the final test device is input, the semantics of the first communication instruction is that workstation 1 is valid, and the string of the first communication instruction is FULLSITES 00000001; the second communication instruction in the example of valid workstation communication instructions obtained by the sorting machine to send to the final test device is input, the semantics of the second communication instruction is that workstation 6 is valid, and the string of the second communication instruction is FULLSITES 00000020.

[0054] Compare "FULLSITES 00000001" and "FULLSITES 00000020" character by character, and extract the same content: "FULLSITES 000000". Parse it to get: instruction header FULLSITES, a separator "", "000000", among which the semantics of "000000" is to be determined.

[0055] Compare FULLSITES 00000001 and FULLSITES 00000020 character by character, and extract different contents including: the last two characters "01" corresponding to station 1 and the last two characters "20" corresponding to station 6. Parsing shows that the last two characters "01" corresponding to station 1 are hexadecimal, and the corresponding binary string is "00000001"; the last two characters "20" corresponding to station 6 are hexadecimal, and the corresponding binary string is "00100000".

[0056] Further extract the same content and different content of the binary string "00000001" corresponding to station 1 and the binary string "00100000" corresponding to station 6, and analyze the encoding method of the characters indicating the occupied status of the station, such as the semantics corresponding to each single character in the string. According to the fact that if the station is a valid station, the corresponding binary bit value is "1", and if the station is an invalid station, the corresponding binary bit value is "0", it can be analyzed to obtain: the last 8 bits of the binary string correspond to stations 1 to 8 respectively; station 1 is valid and corresponds to the first bit from the right being "1", that is, the lowest bit is "1", and the second to the eighth bits from the right are "0", then stations 2 to 8 are invalid stations; station 6 is valid and corresponds to the sixth bit from the right being "1", the seventh and eighth bits from the right being "0", and the first to the fifth bits from the right being "0", then stations 1 to 5 are invalid stations, and stations 7 and 8 are invalid stations.

[0057] According to the encoding method parsed above, if the semantics of "000000" with the same content is further parsed, the other 24 subsequent stations are invalid, that is, stations 9 to 32 are invalid.

[0058] As mentioned above, the correspondence between the order of characters in the first valid workstation communication instruction obtained by analysis and the order of workstations includes: using a string of binary bits that is the same as the total number of workstations of the sorting machine to correspond to each workstation numbered incrementally from small to large on the sorting machine, such as the lowest bit of the string corresponds to workstation 1, and the highest bit of the string corresponds to the workstation with the largest number. When a device is set on the workstation, the workstation is valid, and the binary bit corresponding to the workstation is "1"; when no device is set on the workstation, that is, when the final test is not required, the workstation is invalid, and the binary bit corresponding to the workstation is "0". Subsequently, the string of binary bits that is the same as the total number of workstations of the sorting machine is indicated in hexadecimal to obtain a short instruction that occupies fewer characters, and the separator "" and the instruction header "FULLSITES" are added before the short instruction to obtain the first valid workstation communication instruction.

[0059] In some embodiments, when the first communication instruction and the second communication instruction belong to the second valid workstation communication instruction, the second valid workstation communication instruction records at least one workstation number; the first communication instruction and the second communication instruction are compared character by character to extract the same content, and the same content includes at least one of the following: an instruction header, at least one separator, and an instruction tail; the first communication instruction and the second communication instruction are compared character by character to extract different content, and the different content includes at least one workstation number recorded in the first communication instruction and at least one workstation number recorded in the second communication instruction; based on the same content, at least one workstation number recorded in the first communication instruction, and at least one workstation number recorded in the second communication instruction, the encoding method of the number used to indicate the workstation number in the second valid workstation communication instruction is parsed as decimal, hexadecimal, or ASCII code.

[0060] In the above, at least one workstation number recorded in the first communication instruction is the semantics of the valid workstation corresponding to the first communication instruction, and at least one workstation number recorded in the second communication instruction is the semantics of the valid workstation corresponding to the second communication instruction. Parsing the encoding method of the number used to indicate the workstation number in the second valid workstation communication instruction may include parsing the same content, parsing different content, and parsing the same content and different content alternately.

[0061] At this time, the correspondence between the order of characters in the second effective workstation communication instruction and the workstation order may include: from left to right, the workstation numbers corresponding to each single character increase, or from left to right, the workstation numbers corresponding to each single character decrease. At this time, the digits of the workstation numbers, that is, the encoding method of the workstation numbers may be decimal, hexadecimal, or ASCII code.

[0062] Table 1 Example and encoding method of the second effective workstation communication instruction

[0063]

[0064] As shown in Table 1, the semantics of the first communication instruction in the example of valid workstation communication instructions obtained by the sorting machine and sent to the final test device is that workstations 1 to 3 are valid, and the string of the first communication instruction is FULLSITES 321; the semantics of the second communication instruction in the example of valid workstation communication instructions obtained by the sorting machine and sent to the final test device is that workstations 1 and 3 are valid, and the string of the second communication instruction is FULLSITES 31.

[0065] Compare "FULLSITES 321" and "FULLSITES 31" character by character, and extract the same content including: "FULLSITES". Parse it to get: instruction header FULLSITES and a separator "".

[0066] Compare "FULLSITES 123" and "FULLSITES 13" character by character, and extract different contents including: workstations 1 to 3 correspond to 3 characters "321", and workstations 1 and 3 correspond to 2 characters "31". Parsing shows: the character corresponding to workstation 1 is "1", which is hexadecimal or decimal; the character corresponding to workstation 2 is "2", which is hexadecimal or decimal; the character corresponding to workstation 3 is "3", which is hexadecimal or decimal; from right to left, arrange the workstation numbers corresponding to each single character. Here, however, the character "3" occupies different positions in the character strings of the two communication instructions. Different characters and different positions of the same characters belong to different contents in the two instructions.

[0067] In order to determine whether the character "2" corresponding to station 2 is valid in hexadecimal or decimal, it is necessary to obtain a set of first and second communication instructions with the same format but different contents. On the basis that the character string of the first communication instruction is FULLSITES 321 and the character string of the second communication instruction is FULLSITES 31, continue to obtain the third communication instruction in the example of valid station communication instructions sent by the sorting machine to the final test equipment. At this time, the semantics of the third communication instruction is that station 1 and station 10 are valid, and the character string of the third communication instruction is FULLSITES A1. The role of "third" here is to show the order of use compared with "first" and "second".

[0068] The second communication instruction FULLSITES 31 and the third communication instruction FULLSITES A1 are combined into a new set of the first communication instruction and the second communication instruction with the same format but different contents, and the instructions are parsed as follows:

[0069] Compare "FULLSITES A1" and "FULLSITES 31" character by character, and extract different contents including: workstation 1 and workstation 3 effectively correspond to 2 characters "31", and workstation 1 and workstation 10 effectively correspond to 2 characters "A1"; parsing results show that: the effective corresponding character of workstation 1 is "1", which is hexadecimal; the effective corresponding character of workstation 3 is "3", which is hexadecimal; the effective corresponding character of workstation 10 is "A", which is hexadecimal, and the letters are in uppercase format (Upper); arrange the workstation numbers corresponding to each single character from right to left.

[0070] As a whole, station 1 and station 3 are valid, and are used as semantic contents different from station 1 and station 10, corresponding to different contents in the string. In addition, extracting the same character "1" for parsing alone, or removing the same character "1" and then parsing again, has no execution significance, so it is omitted. In addition, not removing the character "1" is also to determine that "1" is also hexadecimal rather than decimal.

[0071] As mentioned above, the encoding method of the digits used to indicate the station number in the second valid station communication instruction obtained by parsing includes: corresponding to the stations numbered incrementally from small to large on the sorting machine, the digits indicating the station number in the communication instruction are hexadecimal coded, and the English letters are in uppercase format; the number of characters indicating the station number in the second valid station communication instruction is the same as the number of valid stations. When a device is set on the station, the station is valid, and the number corresponding to the station is encoded in hexadecimal; when no device is set on the station, that is, when the final test is not required, the station is invalid, and the number corresponding to the station does not appear in the communication instruction. At this time, the total number of characters recorded in the second valid station communication instruction is not fixed and is variable. As mentioned above, the digits of the station numbers of the valid stations are recorded in the communication instruction, and are arranged from right to left according to the digits of the station numbers from small to large, and the separator "" and the instruction header "FULLSITES" are added before the short instruction, and the second valid station communication instruction can be obtained. As mentioned above, the second valid station communication instruction occupies fewer characters.

[0072] In some embodiments, when the first communication instruction or the second communication instruction belongs to a shift communication instruction, the shift communication instruction records the shift value of a device corresponding to at least one workstation; the first communication instruction and the second communication instruction are compared character by character to extract the same content, which includes an instruction header, at least one separator, or an instruction tail; the first communication instruction and the second communication instruction are compared character by character to extract different content, which includes the shift value of a device corresponding to at least one workstation recorded in the first communication instruction and the shift value of a device corresponding to at least one workstation recorded in the second communication instruction; according to the shift value of a device corresponding to at least one workstation recorded in the first communication instruction and the shift value of a device corresponding to at least one workstation recorded in the second communication instruction, the encoding method of the characters used to indicate the shift value of the device in the shift communication instruction is parsed as decimal, hexadecimal, or ASCII code, and the correspondence between the order of the characters of the shift value and the order of the workstations.

[0073] In the above, the device bin value corresponding to at least one workstation recorded in the first communication instruction is the semantics of the device bin value corresponding to the first communication instruction, and the device bin value corresponding to at least one workstation recorded in the second communication instruction is the semantics of the device bin value corresponding to the second communication instruction. The encoding method of the characters used to indicate the device bin value in the parsing communication instruction is decimal, hexadecimal, or ASCII code, and the correspondence between the order of the bin value characters and the order of the workstations can include parsing the same content, parsing different contents, and parsing the same content and different contents alternately.

[0074] Usually, the arrangement of the order of the workstations in the effective workstation communication instruction and the sub-step communication instruction is usually the same, so the sub-step communication instruction can directly reuse the information on the order of the workstations parsed from the effective workstation communication instruction. When parsing the sub-step communication instruction, the corresponding relationship between the order of the sub-step values ​​and the order of the workstations is usually no longer determined. However, when parsing the sub-step communication instruction, the information on the order of the workstations can also be generated according to the sub-step communication instruction with reference to the above, which will not be repeated.

[0075] At this time, the correspondence between the order of characters in the sub-block communication instruction and the order of workstations may include: from left to right, the workstation numbers corresponding to each single character increase, or from left to right, the workstation numbers corresponding to each single character decrease.

[0076] like Fig. 8AAs shown in the middle part, the semantics of the first communication instruction in the example of the acquired communication instructions for the binning sent by the final test device to the sorting machine is that the bin value of the device corresponding to station 1 is 4, and the string of the first instruction is BINON: 00000000, 000000000, 00000000, 00000004;; The semantics of the second instruction in the example of the acquired communication instructions for the binning sent by the final test device to the sorting machine is that the bin value of the device corresponding to station 1 is 4, and the bin value of the device corresponding to station 2 is 6, and the string of the second communication instruction is BINON: 00000000, 00000000, 00000000, 00000064;.

[0077] Compare “BINON: 00000000, 000000000, 00000000, 00000004;” and “BINON: 00000000, 00000000, 00000000, 00000064;” character by character, and extract the same contents: “BINON: 00000000, 00000000, 00000000, 0000000;”. Parsing yields: instruction header BINON, separator “:”, separator “,”, instruction tail “;”, and “00000000, 00000000, 00000000, 0000000;”.

[0078] Compare "BINON: 00000000, 000000000, 00000000, 00000004;", "BINON: 00000000, 00000000, 00000000, 00000064;" character by character, and extract different contents including: the device bin value corresponding to station 1 is 4, corresponding to the last two characters "04", the device bin value corresponding to station 1 is 4, the device bin value corresponding to station 2 is 6, and station 6 corresponds to the last two characters "64", analysis shows that: the bin value 4 of the device corresponding to station 1 corresponds to the last character "4", and the value of the bin value is decimal or hexadecimal; the bin value 6 of the device corresponding to station 2 corresponds to the second character "6" from the end, and the value of the bin value is decimal or hexadecimal; the bin value of the device corresponding to station 1 is indicated by the last character, and the bin value of the device corresponding to station 2 is indicated by the second character from the end; and, it is inferred that the bin value of the device corresponding to other stations j is indicated by the jth character from the end, and j is a positive integer.

[0079] According to the encoding method parsed above, continue to parse the same content. Compare "BINON: 00000000, 000000000, 00000000, 00000004;", "BINON: 00000000, 00000000, 00000000, 00000064;" character by character, and parse and extract the same content "00000000, 00000000, 00000000, 000000;" to indicate: the third to 32nd characters from the end indicate the bin values ​​of the devices corresponding to stations 3 to 32 respectively. At this time, the character of the bin value of the device corresponding to the station number is "0", indicating that there is no device placed on the station, not that the station has not been tested, nor that the bin value of the device corresponding to the station is zero. And, in order to avoid ambiguity, the bin value should be displayed as other numbers that are not 0.

[0080] Referring to the above, in order to determine whether the encoding method of the characters corresponding to the bin value is hexadecimal or decimal, and whether the English letters are in uppercase or lowercase format, continue to obtain the third communication instruction in the example of the bin communication instruction sent by the sorting machine to the final test equipment. Its semantics is that the bin value of the device corresponding to station 1 is 4, and the bin value of the device corresponding to station 2 is 11. The character string of the third communication instruction is "BINON: 00000000, 00000000, 00000000, 000000B4;".

[0081] Compare "BINON: 00000000, 000000000, 00000000, 00000064;" and "BINON: 00000000, 00000000, 0000000, 000000B4;" character by character, and the analysis results show that: the bin value 4 of the device corresponding to station 1 corresponds to the last character "4", and the value of the bin value is hexadecimal; the bin value 11 of the device corresponding to station 2 corresponds to the second character "B" from the end, and the value of the bin value is hexadecimal, and the letters are in uppercase format (Upper).

[0082] The correspondence between the order of characters in the parsed communication instruction and the order of the workstations includes: a character string with the same number of characters as the total number of workstations of the sorting machine indicates the bin value of the device corresponding to each workstation numbered incrementally from small to large on the sorting machine, such as the lowest bit of the character string indicates the bin value of the device corresponding to workstation 1, and the highest bit of the character string indicates the bin value of the device corresponding to the workstation with the largest number. For example, the command header BINON, the separator ":", the character string indicating the bin value of the device corresponding to each workstation numbered incrementally from small to large on the sorting machine, the separator ",", and the command tail ";" are combined to obtain the bin communication instruction.

[0083] Usually, the communication between the final test equipment and the sorting machine involves three communication scenarios that are sequential in time: the final test equipment receives a valid workstation communication instruction; the final test equipment issues a sub-block communication instruction; if there is a handshake confirmation, the final test equipment receives a sub-block confirmation communication instruction. The final test equipment can distinguish the received valid workstation communication instructions or sub-block communication instructions according to the timing of receipt, so there is no need to additionally identify which type of instruction a certain communication instruction belongs to. Therefore, the above directly quotes the first communication instruction and the second communication signaling to explain the parsing method respectively, which will not cause confusion in understanding or use.

[0084] In the above, it is shown that the digits of the workstation number or the corresponding shift values ​​of the workstation are encoded in the corresponding decimal or hexadecimal system. Similarly, the digits of the workstation number or the corresponding shift values ​​of the workstation can also be encoded in the corresponding ASCII characters, which will not be repeated.

[0085] In some embodiments, it also includes: S104: generating a configuration file using the encoding method of the parsed characters for indicating the occupancy status of the workstation or the encoding method of the characters for indicating the binning value of the device; and storing the configuration file in correspondence with the identifier of the sorting machine.

[0086] Here, the identifier of the sorting machine can be a combination of any of the following: model, serial number, index, update time, manufacturer, or user-defined name, etc.

[0087] In some embodiments, the aforementioned parsing method can be implemented by programming, and deployed on the final test device with middleware as the carrier, managed by the operating system software running on the final test device, and called by the measurement and control application running on the final test device to implement the parsing of the communication instructions of the sorting machine. At this time, accordingly, the computer-readable storage medium of the embodiment of the present application stores program instructions thereon, and when the program instructions are executed by the processor, the processor implements the aforementioned parsing method of the communication instructions of the sorting machine.

[0088] In some embodiments, Figure 2 As shown, the parsing device 200 of the communication instruction of the sorting machine of the embodiment of the present application is set in the final test equipment connected to the sorting machine, and the communication instruction records one of the following multiple items: the occupancy status of the workstation, the bin value of the device; the device includes: a same content extraction unit 210, which is used to extract the same content of the first communication instruction and the second communication instruction obtained, and / or a different content extraction unit 220, which extracts the different contents of the first communication instruction and the second communication instruction obtained; an instruction parsing unit 230, which is used to parse the encoding method of the characters used to indicate the occupancy status of the workstation in the communication instruction, or the encoding method of the characters used to indicate the bin value of the device according to the same content and different content.

[0089] In some embodiments, it also includes: a configuration file processing unit 240, which is used to generate a configuration file from the encoding method of the parsed characters used to indicate the occupancy status of the workstation, or the encoding method of the characters used to indicate the binning value of the device; and store the configuration file in correspondence with the identifier of the sorting machine.

[0090] The analyzing device for the communication instructions of the sorting machine is used to implement the aforementioned analyzing method for the communication instructions of the sorting machine, which will not be described in detail.

[0091] In the final test method for the final test equipment of the embodiment of the present application, the final test equipment is connected to the sorting machine for communication, and the method includes: using the configuration file to parse the valid station communication instructions returned by the sorting machine to determine at least one station where the device is placed; the configuration file is obtained according to the identification of the sorting machine, and the configuration file is generated according to the aforementioned method; using the configuration file to encode the generated device bin value corresponding to at least one station where the device is placed into the bin communication instruction to send it to the sorting machine. At this time, the final test equipment generates the bin value corresponding to the device to be sorted for at least one station where the device to be sorted is placed, and after generating the bin value, encodes it into the bin communication instruction and sends it to the sorting machine.

[0092] In some embodiments, it also includes: using the configuration file to parse the confirmation binning communication instructions returned by the sorting machine to determine the binning values ​​of the devices corresponding to each station recorded by the sorting machine; comparing the binning values ​​recorded by the sorting machine and the binning values ​​generated by the final measurement equipment to generate a binning confirmation message and send it to the sorting machine.

[0093] During the development or deployment phase of the final test equipment, the final test equipment is controlled to communicate with the sorting machine, such as using the aforementioned communication link to obtain the model or type of the sorting machine and generate an identification for the sorting machine. The aforementioned parsing method is used to parse the communication instructions for implementing communication control with the sorting machine, generate a configuration file corresponding to the sorting machine, and store the identification of the sorting machine in association with its corresponding configuration file in the local or remote server of the final test equipment.

[0094] When the final test equipment is deployed to the user's final test line, the final test equipment is controlled to communicate with the sorting machine so that the final test equipment obtains the model or type of the sorting machine and generates an identification for the sorting machine. The final test equipment queries and obtains the configuration file corresponding to the identification of the sorting machine from the remote server or local storage device, and loads and runs the configuration file to achieve adaptive communication control for the sorting machine. In the subsequent final test, the final test equipment can conveniently and reliably use the configuration file to accurately and efficiently achieve communication control of the sorting machine.

[0095] If the final test device does not find the configuration file corresponding to the identifier of the sorting machine from the remote server or the local storage device, the final test device is controlled to obtain the example communication instructions provided in the technical documentation of the sorting machine through the human-computer interaction interface, and the aforementioned parsing method is used to parse the communication instructions of the sorting machine, generate a configuration file corresponding to the sorting machine, and store the identifier of the sorting machine and its corresponding configuration file in the local of the final test device in association, and can also be updated to the sorting machine instruction configuration file library maintained by the final test device. Afterwards, the final test device loads and runs the generated configuration file to implement adaptive communication control for the sorting machine. In the subsequent final test, the final test device can conveniently and reliably use the configuration file to accurately and efficiently communicate with the sorting machine in different stages.

[0096] After the final test equipment is deployed to the user's final test line, if a new sorting machine is replaced, the final test equipment is controlled to communicate with the sorting machine so that the final test equipment obtains the model or type of the sorting machine and generates an identification for the sorting machine. The aforementioned parsing method is used to parse the communication instructions of the sorting machine, generate a configuration file corresponding to the sorting machine, and store the identification of the sorting machine in association with its corresponding configuration file locally on the final test equipment. In the subsequent final test, the final test equipment can conveniently and reliably use the configuration file to accurately and efficiently communicate and control with the sorting machine.

[0097] Therefore, at each stage, the final test equipment can realize adaptive communication control for various types of sorting machines.

[0098] The above adaptive communication control of the sorting machine instruction type is transparent to the device manufacturers implementing the final test. Device manufacturers can perform final test without setting instruction types or communication rules for the final test equipment or sorting machine. In this way, it not only avoids the tedious use and possible selection errors of the final test equipment users, but also saves the workload and development time of the final test equipment to develop drivers corresponding to new types of instructions to adapt to the new sorting machine, and shortens the cycle of the final test equipment to be put into mass production.

[0099] like Figure 3 As shown, the final test equipment communicates with the sorting machine, and completing the test of a batch of devices includes the following steps:

[0100] S301: Query whether the device is ready. For example, at a fixed time interval, a message to query whether the device is ready is sent cyclically until the sorting machine completes the placement of the current batch of devices and sends a ready message.

[0101] S302: Query the stations where the devices that need to be tested in the current batch are located. For example, according to the received valid station communication instructions, determine the stations where the devices that need to be tested are located. For example, different stations are distinguished by station numbers that increase in sequence, such as the characters indicating that the stations are occupied are arranged in the communication instructions from left to right or from right to left. After determining the stations where the devices that need to be tested are located, the number of devices that need to be tested in the current batch can also be determined based on the occupancy of the stations. At this time, the number of occupied stations is the number of devices that need to be tested in the current batch. For example, the number of characters indicating that the stations are occupied is the number of devices that need to be tested in the current batch. For example, the total number of stations minus the number of marks indicating that the stations are not occupied is the number of devices that need to be tested in the current batch. In this way, according to the received valid station communication instructions, it is possible to determine which stations have placed the devices that need to be tested.

[0102] S303: Testing the device; at this time, the final test equipment tests each device placed on the sorting machine according to the pre-set test process, and generates a corresponding bin value for each device entering the test.

[0103] S304: Sending a binning communication instruction. At this time, the final test equipment generates a binning communication instruction according to the preset coding method based on the binning values ​​corresponding to each device placed on the sorting machine, and sends it to the sorting machine.

[0104] S305: Determine whether the current type of sorting machine requires a handshake confirmation for the sub-division. Because some types of sorting machines require a handshake confirmation for the sub-division, and some types of sorting machines do not, in order to be compatible with various types of sorting machines, the final test equipment is provided with a handshake confirmation step for the sub-division. If it is determined that the current type of sorting machine requires a handshake confirmation for the sub-division, go to step S306; if it is determined that the current type of sorting machine does not require a handshake confirmation for the sub-division, go to step S301;

[0105] In some embodiments, it is possible to determine whether the current type of sorting machine requires a sub-division handshake confirmation based on a pre-recorded sub-division handshake confirmation mark that corresponds one-to-one with the mark of the sorting machine. If the mark is recorded as requiring confirmation, it is determined that the current type of sorting machine requires a sub-division handshake confirmation. If the mark is recorded as not confirming, it is determined that the current type of sorting machine does not require a sub-division handshake confirmation.

[0106] S306: Query the binning confirmation communication instruction. Here, the final test device receives and reads the binning confirmation communication instruction sent by the sorting machine in response to the binning confirmation communication instruction query. The binning confirmation communication instruction sent by the sorting machine in step S306 has the same encoding method as the binning communication instruction sent by the final test device in step S304.

[0107] S307: Determine whether the binning communication instruction is confirmed. Here, the final test equipment analyzes the received binning confirmation communication instruction and determines whether the binning information received by the sorting machine is consistent with the content of the binning information sent in step S304. If they are consistent, it is determined that the handshake check has passed, and then go to step S308; if they are inconsistent, it is determined that the handshake check has not passed, and then go to step S309;

[0108] This can be considered as a handshake scenario of the communication between the final test equipment and the sorting machine. At this time, the final test equipment sends out a sorting communication instruction, the sorting machine receives and analyzes the sorting confirmation instruction, and extracts the sorting value of the corresponding device. The sorting machine then generates a sorting confirmation communication instruction according to the extracted sorting values ​​corresponding to each device and its local encoding method, and sends it to the final test equipment. After receiving the sorting confirmation communication instruction, the final test equipment analyzes and compares whether it is consistent with the sorting value recorded in the sorting communication instruction issued previously. For example, whether the sorting values ​​corresponding to each workstation recorded by the sorting machine are the same as the sorting values ​​of the devices corresponding to each workstation generated by the final test equipment, that is, the order of the workstations is the same, and the sorting values ​​of the devices corresponding to each workstation must also be the same.

[0109] S308: Send a binning correct message to the sorting machine, and go to step S301 to prepare to start testing the next batch of devices. At this time, it has been determined that the handshake check has passed, so a handshake check passed message, that is, a binning correct message, is sent to the sorting machine. After the sorting machine receives the binning correct message, it ends the processing of the current batch of devices and prepares to start processing the next batch of devices.

[0110] S309: Send a binning error message to the sorting machine, and go to step S301 to prepare to start testing the next batch of devices. At this time, it has been determined that the handshake check has failed, so a message that the handshake check has failed is sent to the sorting machine. After the sorting machine receives the incorrect binning message, it can request the final test device to send a binning communication instruction again, that is, repeat steps S304 to S307. At this time, it can also be that after the final test device sends the binning error message, steps S304 to S307 are repeated until the binning communication instruction is confirmed to be correct or the number of repetitions reaches a preset threshold, and then the processing of the current batch of devices is terminated, and the processing of the next batch of devices is prepared to start.

[0111] like Figure 4 , Fig. 8A and Figure 8B As shown, when configuring a new sorter to the final test device and adding the communication instruction type supported by the sorter by using the instruction parsing device 200 provided in the final test device, the final test device control application program and the human-computer interaction interface of the final test device, the following steps may be included:

[0112] S401: Input the method for querying the readiness of the Handler; for example, input the method for querying the readiness of the Handler in the human-machine interface of the final test device, such as using the Request Service (RQS) of GPIB to query whether the Handler is ready to the sorting machine with which the communication link is established. At this time, the version of GPIB can be selected as 488.2+.

[0113] In this way, it is first inquired whether the sorting machine is ready and whether the communication link is normal, and after obtaining the message that the sorting machine is ready, it goes to step S402.

[0114] S402: Input valid station query instructions; for example, input valid station communication query instructions, such as FULLSITES, in the instruction box with a prompt (such as: Check Site Command) displayed on the human-computer interaction interface of the final test equipment to create variables, etc., and prepare to parse the valid station communication instructions.

[0115] S403: Input valid commands for station 1 and station 6; for example, input valid commands for station 1 such as FULLSITES 00000001 in the command box with prompts (such as: SITE-1Valid Command) displayed on the human-machine interface of the final test device; input valid commands for station 6 such as FULLSITES 00000020 in the command box with prompts (such as: SITE-6Valid Command) displayed on the human-machine interface of the final test device. In the background, execute the above-mentioned parsing method.

[0116] S404: Input the command of Bin Out 4 for Station 1, Bin Out 4 for Station 1 and Bin Out 6 for Station 2. For example, under the prompt (e.g., Bin Out Command Setting) displayed on the human-machine interface of the final test device, input the command of Bin Out 4 for Station 1 in the command box with the prompt (SITE-1WithBin 4), such as: BINON: 00000000, 00000000, 00000000, 00000004;, input the command of Bin Out 4 for Station 1 and Bin Out 6 for Station 2 in the command box with the prompt (e.g., SITE-1WithBin 4, SITE-2WithBin 6), such as: BINON: 00000000, 00000000, 00000000, 00000064;. In the background, execute the above-mentioned parsing method.

[0117] As mentioned above, by setting these instructions, the corresponding step communication instructions for different step values ​​of different workstations can be calculated.

[0118] S405: Configure whether bin communication instruction confirmation is required. If the new bin sorter requires bin communication instruction confirmation, enable or select the check box with prompts (such as: Bin Handshake Check) in the human-machine interface of the final test device, and go to step S406. At this time, the bin handshake confirmation flag corresponding to the identifier of the bin sorter can also be set to require confirmation.

[0119] If the new sorting machine does not require bin communication instruction confirmation, the check box with prompts (such as Bin Handshake Check) is disabled or unchecked in the human-machine interface of the final test device, and the process goes to step S408. At this time, a bin handshake confirmation flag corresponding to the identifier of the sorting machine can also be generated and set to not confirm.

[0120] S406: Input the instructions for station 1 bin 4, station 1 bin 4 and station 2 bin 6; for example, below the prompt (such as: Bin Check Command Setting) displayed on the human-computer interaction interface of the final test equipment, in the instruction box with the prompt (SITE-1With Bin 4), input the instructions for station 1 bin 4 for handshake, such as: ECHO00000000,00000000,00000000,00000004;, in the instruction box with the prompt (such as: SITE-1With Bin 4, SITE-2With Bin 6), input the instructions for station 1 bin 4 and station 2 bin 6 for handshake, such as: ECHO: 00000000,00000000,00000000,00000064.

[0121] In the above, two handshake check instructions are set, one is a step communication instruction for station 1 step 4, and the other is a step communication instruction for station 1 step 4 and station 2 step 6. In the background, the aforementioned parsing method is executed.

[0122] S407: Inputting instructions of correct or wrong division / / pass or fail of handshake check respectively;

[0123] For example, in the command box with a prompt (such as: Check Pass Command) displayed on the human-machine interface of the final test device, enter a handshake check pass command, such as ECHOOK. In the command box with a prompt (such as: Check Fail Command) displayed on the human-machine interface of the final test device, enter a handshake check fail command, such as ECHONG.

[0124] S408: Fine-tune the digital format in the instruction. In the background, execute the above-mentioned parsing method to confirm the digital in the instruction and check whether the digital format is consistent with the actual situation, including the digital base, the case format (Lower or Upper) of the digital or the American Standard Code for Information Interchange (ASCII) format or style.

[0125] S409: Enter the Handler type and save. For example, select the Handler model in the instruction box with a prompt (such as: General Setting) displayed on the human-computer interaction interface of the final test equipment, or enter the name of the Handler, such as position C of line B in factory A. In the background, refer to the above, generate an identification for the sorting machine, and store the identification of the sorting machine in association with the configuration file generated in the previous steps locally in the final test equipment. That is, enter the sorting machine type or model corresponding to this instruction type, and save the instruction.

[0126] In the aforementioned step S408, when fine-tuning the digital format in the instruction, in some embodiments, under the prompt (such as: Command View) displayed on the human-computer interaction interface of the final test device, the following information is included: a certain type of sorting machine has 8 stations. When stations 1 and 2 are occupied, the string of the valid station communication instruction replied by the sorting machine in response to the valid station query instruction is FULLSITES 00000003; when station 1 is divided into 8 and station 2 is divided into 10, the string of the bin communication instruction (such as: Bin Out Command) sent by the final test device is: BINON: 00000000, 00000000, 00000000, 000000A8; the bin confirmation instruction (such as: Bin Check The string of Site Status Command is ECHO: 00000000, 000000000, 00000000, 000000A8; in this case, A corresponds to 10 in hexadecimal. The prompts, such as Site Status Command: 16 (A) and Bin Out Command: Bin Code: 16 (A), are used as examples to display the letter A in hexadecimal and configurable manner by selecting uppercase A or lowercase a. In this way, the string is divided into 4 sections separated by "," and each section records the information of the corresponding 8 stations. The parsed instructions are displayed in the form of a string, which is convenient for input, reading and display, and is more convenient for manual verification and verification, and has good human-computer interaction.

[0127] In some embodiments, such as Figure 5As shown, the method for parsing effective workstation communication instructions includes the following steps:

[0128] S501: Retrieve the same parts of two instructions. For example, from the sample instructions provided with the manual of the sorting machine, select two semantically related instructions with the same content as the instructions to be parsed, such as the valid instructions for station 1 and the valid instructions for station 6. Compare the characters one by one to extract the same parts of the valid instructions for station 1 and station 6. At this time, the semantics of the valid instruction 00000001 for station 1 is known, and the length and characters of the string are known; the semantics of the valid instruction 00000020 for station 6 is known, and the length and characters of the string are known.

[0129] S502: Determine the alignment of the station occupancy status based on the position of the same part. For example, according to the same part "000000" in the valid instruction 00000001 of station 1 and the valid instruction 00000020 of station 6, which is on the left side of the string, and the different parts "20" and "01" are on the right side of the string respectively, it can be obtained that the bit indicating that the station is valid is in the low position, that is, on the right side of the string. For example, the same part "000000" may be a padding bit. Here, it is already known in advance that the valid station communication instruction is an 8-bit string, and one or two bits in the string are data bits indicating that the station is a valid station, and the others are padding bits (Padding).

[0130] S503: Compare the characters in different parts of the instruction to determine the correspondence between the data bits and the valid workstation numbers. For example, by comparing the different characters in the two instructions and converting them into corresponding binary data, the correspondence between different data bits and the workstation numbers can be obtained. For example, in "20", the binary number corresponding to "2" is "0010", the binary number corresponding to "0" is "0000", and the binary number corresponding to "20" is "00100000", which is effectively corresponding to workstation 6. For example, in "01", the binary number corresponding to "0" is "0000", the binary number corresponding to "1" is "0001", and the binary number corresponding to "01" is "00000001", which is effectively corresponding to workstation 1.

[0131] S504: Determine the data character type according to the corresponding relationship. For example, according to the corresponding relationship between the data bit and the workstation, the digit of the workstation number corresponding to the single character can be determined, and then the encoding type of the character data can be determined, such as hexadecimal, ASCII, decimal or binary. Here, it is known in advance that the valid workstation communication instruction is an 8-bit string, and one or two bits in the string are data bits indicating that the workstation is a valid workstation, and the others are padding bits.

[0132] In some embodiments, Figure 6As shown, the parsing method of the transmission communication instruction and the transmission confirmation communication instruction comprises the following steps:

[0133] S601: Retrieve the same parts of the two instructions, such as the instruction header and the information of the sub-position values ​​of other stations; compare the same parts of the strings corresponding to the two instructions. For example, the two may have two same parts, such as the instruction header and the information of the sub-position values ​​of other stations; for example, instruction 1 includes the sub-position value 2 of station 1, the sub-position value 4 of station 2, and the sub-position value 6 of station 3; instruction 2 includes the sub-position value 4 of station 2, the sub-position value 6 of station 3, and the sub-position value 8 of station 4; then the same parts of the two include: the instruction header and the information of the sub-position values ​​of other stations, that is, "the sub-position value 4 of station 2, the sub-position value 6 of station 3".

[0134] S602: Determine the alignment of the workstation's sub-value according to the positions of different parts of the two instructions. For example, according to the part of the instruction excluding the instruction header and the sub-value information of other workstations, it can be determined whether the position of the workstation's sub-value is on the left or right in the string; whether it is at the high position or the low position of the string.

[0135] S603: searching for identical characters according to different parts of the two instructions, for example, searching again from the different parts determined in step S602 to determine identical parts;

[0136] S604: Determine that the identical parts are the sub-blocks of workstation 1, and the different parts are the sub-blocks of workstation 2; when the semantics corresponding to the two sub-block communication instructions are respectively sub-block 4 of workstation 1, sub-block 4 of workstation 1, and sub-block 6 of workstation 2, determine that the retrieved identical parts are sub-block 4 of workstation 1, and the different parts are sub-block 6 of workstation 2.

[0137] S605: Determine whether there is an instruction terminator based on the number of characters in the two station codes. For example, compare the number of characters in the sub-blocks of station 1 and station 2 determined in step S604. If the number of characters is the same, the instruction has no terminator, otherwise the instruction has a terminator. For example, the terminator can be "," or "". The terminator here can be the tail of the aforementioned instruction.

[0138] S606: Remove the terminator, compare the code of the two workstations, and determine the code of the code. For example, remove the parsed terminator from the instruction respectively; use the reserved part in the instruction to compare the characters of the two workstations, and determine the code of the code. For example, it is hexadecimal, ASCII, decimal or binary.

[0139] S607: According to the encoding method of the bin and the number of characters, the command header and the bin values ​​of other stations are retrieved. For example, according to the encoding method of the bin obtained by parsing, the command header and the bin values ​​of other stations are parsed.

[0140] S608: Determine the separator between the sub-levels and the instruction header according to the total number of workstations. For example, according to the total number of workstations determined in which step or known, determine the sub-level separator character, such as "," or "", and determine the character string corresponding to the instruction header, such as "0000", such as "BINON".

[0141] like Figure 7 As shown, when the final test equipment establishes communication control with the sorting machine to which it is connected for the first time, the following steps are included:

[0142] S701: Use protocol instructions to query the Handler model. For example, the final test equipment queries the model of the sorting machine through SCPI supported by the sorting machine to determine the communication instruction type.

[0143] S702: Determine whether the Handler replies to the Handler model query request or the communication instruction type query request. If the final test device determines that the Handler has responded to the communication instruction type query normally, go to step S704. If the final test device determines that the Handler has not responded to the communication instruction type query normally, go to step S703. The reasons why the Handler cannot respond normally include: the sorting machine does not support the query request instruction, the sorting machine is not connected to the final test device, etc.

[0144] S703: Set the communication instruction type of the Handler. At this time, when the sorting machine does not normally reply to the communication instruction type query instruction, the final test device requests the user to enter the sorting machine model or communication instruction type in the instruction box displayed on the human-computer interaction interface of the final test device.

[0145] S704: Determine whether the communication instruction type of the Handler is already supported. For example, query whether there is a configuration file compatible with the model or communication instruction type of the sorting machine from the sorting machine instruction configuration file library maintained by the final test device. If yes, go to step S706. If not, go to step S705.

[0146] S705: Add a new Handler communication instruction type. At this time, because the current final test device does not store the configuration file corresponding to the Handler's communication instruction type, it is not yet compatible with the communication instruction type of this sorting machine. At this time, the user can be required to add a new communication instruction type according to the prompts of the human-computer interaction interface. For example, referring to the aforementioned steps S401 to S409, add a new Handler communication instruction type, that is, generate a configuration file corresponding to the Handler's communication instruction type.

[0147] S706: Perform communication control. At this time, the final test equipment performs communication control with the sorting machine of this model using a compatible communication instruction type.

[0148] The above description is only a preferred embodiment of the present application and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

[0149] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0150] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0151] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0152] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

Claims

1. A method for analyzing communication instructions of a sorting machine for a final test device, characterized in that: The communication instruction is executed by a final test device connected to the sorting machine, wherein the communication instruction records one of the following items: an occupation status of at least one station, and a bin value of a device corresponding to at least one station; The method comprises: Extracting the same content of the first communication instruction and the second communication instruction, and / or Extracting different contents of the first communication instruction and the second communication instruction; According to the same content and / or the different content, the encoding mode of the characters used to indicate the occupation status of the workstation or the encoding mode of the characters used to indicate the division value of the device corresponding to the workstation in the communication instruction is parsed.

2. The method according to claim 1, characterized in that: When the first communication instruction and the second communication instruction belong to a first valid workstation communication instruction, the first valid workstation communication instruction records the occupation status of at least one workstation; Compare the first communication instruction and the second communication instruction character by character to extract the same content, wherein the same content includes at least one of the following: an instruction header, at least one separator, and an instruction tail; Comparing the first communication instruction and the second communication instruction character by character to extract different contents, wherein the different contents include: the occupation status of at least one workstation recorded in the first communication instruction and the occupation status of at least one workstation recorded in the second communication instruction; According to the same content, the occupation status of at least one workstation recorded in the first communication instruction, and the occupation status of at least one workstation recorded in the second communication instruction, the correspondence between the order of characters in the first valid workstation communication instruction and the order of workstations is parsed.

3. The method according to claim 1, characterized in that When the first communication instruction and the second communication instruction belong to a second valid workstation communication instruction, the second valid workstation communication instruction records at least one workstation number; Compare the first communication instruction and the second communication instruction character by character to extract the same content, wherein the same content includes at least one of the following: an instruction header, at least one separator, and an instruction tail; or Compare the first communication instruction and the second communication instruction character by character to extract different contents, wherein the different contents include: at least one workstation number recorded in the first communication instruction and at least one workstation number recorded in the second communication instruction; According to the same content, at least one workstation number recorded in the first communication instruction, and at least one workstation number recorded in the second communication instruction, the encoding method of the number used to indicate the workstation number in the second valid workstation communication instruction is parsed as any one of the following: decimal, hexadecimal, ASCII code.

4. The method according to claim 1, characterized in that: When the first communication instruction and the second communication instruction belong to a step communication instruction, the step communication instruction records a step value of a device corresponding to at least one workstation; Compare the first communication instruction and the second communication instruction character by character to extract the same content, wherein the same content includes at least one of the following: an instruction header, at least one separator, and an instruction tail; Compare the first communication instruction and the second communication instruction character by character to extract different contents, wherein the different contents include: the bin value of the device corresponding to at least one workstation recorded in the first communication instruction and the bin value of the device corresponding to at least one workstation recorded in the second communication instruction; According to the same content, the device segment value corresponding to at least one workstation recorded in the first communication instruction, and the device segment value corresponding to at least one workstation recorded in the second communication instruction, the encoding method of the characters used to indicate the device segment value in the segment communication instruction is parsed as any one of the following: decimal, hexadecimal, ASCII code, and the correspondence between the order of the characters used to indicate the device segment value and the order of the workstations.

5. The method according to any one of claims 1 to 4, characterized in that Also includes: Generate the parsed encoding method of the characters used to indicate the occupation status of the workstation or the encoding method of the characters used to indicate the bin value of the device corresponding to the workstation into a configuration file; The configuration file is stored corresponding to the identification of the sorting machine.

6. A device for analyzing communication instructions of a sorting machine of a final test device, characterized in that: The final test equipment connected to the sorting machine is provided, and the communication instruction records one of the following items: the occupation status of at least one station, and the bin value of the device corresponding to at least one station; The device comprises: a same content extraction unit, used to extract the same content between the acquired first communication instruction and the acquired second communication instruction; and / or A different content extraction unit, used to extract different contents between the acquired first communication instruction and the acquired second communication instruction; The instruction parsing unit is used to parse the encoding method of the characters used to indicate the occupancy status of the workstation or the encoding method of the characters used to indicate the division value of the device corresponding to the workstation in the communication instruction according to the same content and the different content.

7. The device according to claim 6, characterized in that Also includes: The configuration file processing unit is used to generate a configuration file from the encoding method of the characters used to indicate the occupancy status of the workstation, or the encoding method of the characters used to indicate the bin value of the device corresponding to the workstation; and store the configuration file in correspondence with the identifier of the sorting machine.

8. A computer-readable storage medium, characterized in that: Program instructions are stored thereon, and when the program instructions are executed by a processor, the processor implements the method for parsing communication instructions of a sorting machine as claimed in any one of claims 1 to 5.

9. A final test method for a final test device, characterized in that: The final testing device is connected to the sorting machine for communication, and the method comprises: The valid station communication instructions returned by the sorting machine are parsed using a configuration file to determine at least one station where a device is placed; the configuration file is obtained according to the identifier of the sorting machine, and the configuration file is generated according to the parsing method of the sorting machine communication instructions according to claim 5; The generated binning value of the device corresponding to the at least one workstation where the device is placed is encoded into a binning communication instruction by using the configuration file, so as to be sent to the sorting machine.

10. The method according to claim 9, characterized in that Also includes: The configuration file is used to parse the communication instruction for confirming the binning returned by the sorting machine, and the binning value of the device corresponding to each station recorded by the sorting machine is determined; The binning values ​​recorded by the sorting machine and the binning values ​​generated by the final measuring device are compared to generate a binning confirmation message and send it to the sorting machine.

Citation Information

Patent Citations

  • Control method and system of biochemical analyzer

    CN102508455A

  • Test method and test system of engine controller software diagnosis module

    CN105224447A