CN118818273A - Single-turn magnetic encoder automated test fixture - Google Patents

Single-turn magnetic encoder automated test fixture Download PDF

Info

Publication number
CN118818273A
CN118818273A CN202411307111.7A CN202411307111A CN118818273A CN 118818273 A CN118818273 A CN 118818273A CN 202411307111 A CN202411307111 A CN 202411307111A CN 118818273 A CN118818273 A CN 118818273A
Authority
CN
China
Prior art keywords
test result
semantic
principal component
global
feature vector
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202411307111.7A
Other languages
Chinese (zh)
Other versions
CN118818273B (en
Inventor
张继周
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Linhai Xinrui Electronic Technology Co ltd
Original Assignee
Linhai Xinrui Electronic Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Linhai Xinrui Electronic Technology Co ltd filed Critical Linhai Xinrui Electronic Technology Co ltd
Priority to CN202411307111.7A priority Critical patent/CN118818273B/en
Publication of CN118818273A publication Critical patent/CN118818273A/en
Application granted granted Critical
Publication of CN118818273B publication Critical patent/CN118818273B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/2801Testing of printed circuits, backplanes, motherboards, hybrid circuits or carriers for multichip packages [MCP]
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D18/00Testing or calibrating apparatus or arrangements provided for in groups G01D1/00 - G01D15/00
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/2801Testing of printed circuits, backplanes, motherboards, hybrid circuits or carriers for multichip packages [MCP]
    • G01R31/2803Testing of printed circuits, backplanes, motherboards, hybrid circuits or carriers for multichip packages [MCP] by means of functional tests, e.g. logic-circuit-simulation or algorithms therefor
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/044Recurrent networks, e.g. Hopfield networks
    • G06N3/0442Recurrent networks, e.g. Hopfield networks characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • G06N3/0455Auto-encoder networks; Encoder-decoder networks
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/0464Convolutional networks [CNN, ConvNet]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Biophysics (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • Computational Linguistics (AREA)
  • Artificial Intelligence (AREA)
  • Mathematical Physics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Machine Translation (AREA)

Abstract

The application relates to an automatic testing tool for a single-turn magnetic encoder. It comprises the following steps: starting the upper computer; selecting an editor main board to be tested and corresponding firmware data; the upper computer communicates with the lower computer through RS-485 to send a burning instruction and the firmware data; the lower computer selects a correct encoder main board through an FPGA chip, and downloads the firmware data to an editor chip of the editor main board through an ISP download protocol; after the burning is finished, the lower computer reads the encoder data according to the multi-Moire encoder protocol to check the working state of the editor main board; collecting test data through the lower computer and sending the test data to the upper computer; and the upper computer analyzes the test data to obtain a test result. Therefore, the efficiency of processing a large amount of test data is improved, complex relations among variables can be comprehensively captured, deeper test result understanding is provided, and the test data processing is more intelligent.

Description

单圈磁编码器自动化测试工装Single-turn magnetic encoder automated test fixture

技术领域Technical Field

本申请涉及单圈磁编码器技术领域,具体地,涉及一种单圈磁编码器自动化测试工装。The present application relates to the technical field of single-turn magnetic encoders, and in particular to an automated testing tool for single-turn magnetic encoders.

背景技术Background Art

伺服电机中使用的单圈磁编码器是一种高精度的位置传感器,它能够在单圈范围内提供精确的角度测量,广泛应用于需要高精度定位控制的场合,如工业机器人、精密加工设备等。The single-turn magnetic encoder used in servo motors is a high-precision position sensor that can provide accurate angle measurement within a single turn. It is widely used in situations that require high-precision positioning control, such as industrial robots, precision machining equipment, etc.

目前,伺服电机单圈编码器主板的固件烧录和功能测试仍然依赖于开发人员使用芯片厂家自带的工具,一块块板子人工进行烧写和测试。然而,由于人工每次只能处理单一主板,这种方法无法满足现代制造业对高吞吐量的需求。在高节奏的生产环境中,这种低效的手动操作方式使得生产周期大大延长,严重影响了生产线的整体效率。此外,人工操作的不一致性可能导致固件烧录不彻底,或者在测试过程中遗漏关键步骤,这些疏忽会导致产品性能不稳定或不合格。例如,固件烧录不完全可能会使编码器在某些特定条件下出现故障,而测试过程中的遗漏则可能导致未能检测出潜在的问题。At present, the firmware burning and functional testing of the servo motor single-turn encoder motherboard still rely on developers to use the chip manufacturer's own tools to manually burn and test each board one by one. However, since humans can only handle a single motherboard at a time, this method cannot meet the high throughput requirements of modern manufacturing. In a high-paced production environment, this inefficient manual operation method greatly prolongs the production cycle and seriously affects the overall efficiency of the production line. In addition, inconsistencies in manual operations may result in incomplete firmware burning or omissions of key steps during the testing process. These omissions can cause unstable or unqualified product performance. For example, incomplete firmware burning may cause the encoder to malfunction under certain specific conditions, while omissions during the testing process may result in failure to detect potential problems.

因此,期望一种优化的单圈磁编码器测试工装。Therefore, an optimized single-turn magnetic encoder test fixture is desired.

发明内容Summary of the invention

提供该发明内容部分以便以简要的形式介绍构思,这些构思将在后面的具体实施方式部分被详细描述。该发明内容部分并不旨在标识要求保护的技术方案的关键特征或必要特征,也不旨在用于限制所要求的保护的技术方案的范围。This summary is provided to introduce concepts in a brief form that will be described in detail in the detailed description below. This summary is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.

第一方面,本申请提供了一种单圈磁编码器自动化测试工装,所述工装包括:上位机和下位机,其中,所述上位机和所述下位机的工作过程,包括:启动所述上位机;选择待测试的编辑器主板和相应的固件数据;所述上位机通过RS-485与所述下位机进行通信以发送烧录指令和所述固件数据;所述下位机通过FPGA芯片选择正确的编码器主板,并通过ISP下载协议将所述固件数据下载到所述编辑器主板的编辑器芯片;完成烧录后,所述下位机根据多摩川编码器协议读取编码器数据以检查所述编辑器主板的工作状态;通过所述下位机收集测试数据并发送给所述上位机;所述上位机对所述测试数据进行分析以得到测试结果。In the first aspect, the present application provides a single-turn magnetic encoder automated testing tool, the tool comprising: a host computer and a slave computer, wherein the working process of the host computer and the slave computer comprises: starting the host computer; selecting an editor mainboard to be tested and corresponding firmware data; the host computer communicates with the slave computer via RS-485 to send burning instructions and the firmware data; the slave computer selects the correct encoder mainboard through an FPGA chip, and downloads the firmware data to the editor chip of the editor mainboard through an ISP download protocol; after the burning is completed, the slave computer reads the encoder data according to the Tamagawa encoder protocol to check the working status of the editor mainboard; the test data is collected by the slave computer and sent to the host computer; the host computer analyzes the test data to obtain test results.

可选地,所述上位机对所述测试数据进行分析以得到测试结果,包括:使用测试嵌入编码矩阵对所述测试数据中的各个测试结果项进行嵌入编码以得到测试结果项嵌入编码向量的集合;将所述测试结果项嵌入编码向量的集合输入基于转换器结构的测试结果间全局语义关联编码器以得到测试结果全局语义编码特征向量;将所述测试结果项嵌入编码向量的集合输入测试结果间局部语义关联编码器以得到测试结果局部语义编码特征向量;将所述测试结果全局语义编码特征向量和所述测试结果局部语义编码特征向量输入基于特征主成分查询匹配的显著融合网络以得到测试结果多尺度稀疏融合表示向量;基于所述测试结果多尺度稀疏融合表示向量,得到所述测试结果。Optionally, the host computer analyzes the test data to obtain test results, including: using a test embedding coding matrix to embed code each test result item in the test data to obtain a set of test result item embedding coding vectors; inputting the set of test result item embedding coding vectors into a global semantic association encoder between test results based on a converter structure to obtain a global semantic coding feature vector of the test results; inputting the set of test result item embedding coding vectors into a local semantic association encoder between test results to obtain a local semantic coding feature vector of the test results; inputting the test result global semantic coding feature vector and the test result local semantic coding feature vector into a significant fusion network based on feature principal component query matching to obtain a test result multi-scale sparse fusion representation vector; and obtaining the test result based on the test result multi-scale sparse fusion representation vector.

可选地,将所述测试结果项嵌入编码向量的集合输入测试结果间局部语义关联编码器以得到测试结果局部语义编码特征向量,包括:将所述测试结果项嵌入编码向量的集合输入基于1D-CNN模型的测试结果间局部语义关联编码器以得到所述测试结果局部语义编码特征向量。Optionally, the set of test result item embedding coding vectors is input into a local semantic association encoder between test results to obtain a local semantic coding feature vector of the test result, including: inputting the set of test result item embedding coding vectors into a local semantic association encoder between test results based on a 1D-CNN model to obtain the local semantic coding feature vector of the test result.

可选地,将所述测试结果全局语义编码特征向量和所述测试结果局部语义编码特征向量输入基于特征主成分查询匹配的显著融合网络以得到测试结果多尺度稀疏融合表示向量,包括:对所述测试结果全局语义编码特征向量和所述测试结果局部语义编码特征向量进行标准化处理以得到标准化测试结果全局语义编码特征向量和标准化测试结果局部语义编码特征向量;计算所述标准化测试结果全局语义编码特征向量和所述标准化测试结果局部语义编码特征向量的样本协方差矩阵以得到测试结果全局语义样本协方差矩阵和测试结果局部语义样本协方差矩阵;对所述测试结果全局语义样本协方差矩阵和所述测试结果局部语义样本协方差矩阵进行基于矩阵分解的特征向量提取以得到测试结果全局语义主成分特征向量的集合和测试结果局部语义主成分特征向量的集合;将所述测试结果全局语义主成分特征向量的集合和所述测试结果局部语义主成分特征向量的集合输入最大近似查询匹配网络以得到测试结果全局语义主成分特征向量和测试结果局部语义主成分特征向量的最佳匹配对的集合;将所述测试结果全局语义主成分特征向量和测试结果局部语义主成分特征向量的最佳匹配对的集合中的各个测试结果全局语义主成分特征向量和测试结果局部语义主成分特征向量的最佳匹配对输入语义细粒度门控联合模块以得到测试结果全局-测试结果局部语义主成分融合特征向量的集合;将所述测试结果全局-测试结果局部语义主成分融合特征向量的集合进行级联以得到所述测试结果多尺度稀疏融合表示向量。Optionally, the global semantic coding feature vector of the test result and the local semantic coding feature vector of the test result are input into a significant fusion network based on feature principal component query matching to obtain a multi-scale sparse fusion representation vector of the test result, including: standardizing the global semantic coding feature vector of the test result and the local semantic coding feature vector of the test result to obtain a standardized global semantic coding feature vector of the test result and a standardized local semantic coding feature vector of the test result; calculating the sample covariance matrix of the standardized global semantic coding feature vector of the test result and the standardized local semantic coding feature vector of the test result to obtain a global semantic sample covariance matrix of the test result and a local semantic sample covariance matrix of the test result; performing feature vector extraction based on matrix decomposition on the global semantic sample covariance matrix of the test result and the local semantic sample covariance matrix of the test result to obtain a global semantic principal component of the test result. The method comprises the following steps: inputting the set of global semantic principal component feature vectors of the test results and the set of local semantic principal component feature vectors of the test results into a maximum approximate query matching network to obtain a set of best matching pairs of the global semantic principal component feature vectors of the test results and the local semantic principal component feature vectors of the test results; inputting the best matching pairs of the global semantic principal component feature vectors of the test results and the local semantic principal component feature vectors of the test results in the set of best matching pairs of the global semantic principal component feature vectors of the test results and the local semantic principal component feature vectors of the test results into a semantic fine-grained gated joint module to obtain a set of global semantic principal component fusion feature vectors of the test results and local semantic principal component fusion feature vectors of the test results; cascading the set of global semantic principal component fusion feature vectors of the test results and local semantic principal component fusion feature vectors of the test results to obtain a multi-scale sparse fusion representation vector of the test result.

可选地,对所述测试结果全局语义编码特征向量和所述测试结果局部语义编码特征向量进行标准化处理以得到标准化测试结果全局语义编码特征向量和标准化测试结果局部语义编码特征向量,包括:分别计算所述测试结果全局语义编码特征向量的均值和标准差以得到测试结果全局语义编码特征均值和测试结果全局语义编码特征标准差;将所述测试结果全局语义编码特征向量与所述测试结果全局语义编码特征均值进行按位置相减后,计算得到的测试结果全局语义偏移向量与所述测试结果全局语义编码特征标准差的按位置除法以得到所述标准化测试结果全局语义编码特征向量;分别计算所述测试结果局部语义编码特征向量的均值和标准差以得到测试结果局部语义编码特征均值和测试结果局部语义编码特征标准差;将所述测试结果局部语义编码特征向量与所述测试结果局部语义编码特征均值进行按位置相减后,计算得到的测试结果局部语义偏移向量与所述测试结果局部语义编码特征标准差的按位置除法以得到所述标准化测试结果局部语义编码特征向量。Optionally, the global semantic coding feature vector of the test result and the local semantic coding feature vector of the test result are standardized to obtain a standardized global semantic coding feature vector of the test result and a standardized local semantic coding feature vector of the test result, including: respectively calculating the mean and standard deviation of the global semantic coding feature vector of the test result to obtain the mean of the global semantic coding feature of the test result and the standard deviation of the global semantic coding feature of the test result; subtracting the global semantic coding feature vector of the test result from the mean of the global semantic coding feature of the test result by position, and then dividing the calculated global semantic offset vector of the test result by the standard deviation of the global semantic coding feature of the test result to obtain the standardized global semantic coding feature vector of the test result; respectively calculating the mean and standard deviation of the local semantic coding feature vector of the test result to obtain the mean of the local semantic coding feature of the test result and the standard deviation of the local semantic coding feature of the test result; subtracting the local semantic coding feature vector of the test result from the mean of the local semantic coding feature of the test result by position, and then dividing the calculated local semantic offset vector of the test result by the standard deviation of the local semantic coding feature of the test result to obtain the standardized local semantic coding feature vector of the test result.

可选地,计算所述标准化测试结果全局语义编码特征向量和所述标准化测试结果局部语义编码特征向量的样本协方差矩阵以得到测试结果全局语义样本协方差矩阵和测试结果局部语义样本协方差矩阵,包括:将所述标准化测试结果全局语义编码特征向量的转置向量与所述标准化测试结果全局语义编码特征向量进行相乘后,将得到的标准化测试结果全局语义关联矩阵与所述标准化测试结果全局语义编码特征向量的长度减一得到的数值进行按位置相除以得到所述测试结果全局语义样本协方差矩阵;将所述标准化测试结果局部语义编码特征向量的转置向量与所述标准化测试结果局部语义编码特征向量进行相乘后,将得到的标准化测试结果局部语义关联矩阵与所述标准化测试结果局部语义编码特征向量的长度减一得到的数值进行按位置相除以得到所述测试结果局部语义样本协方差矩阵。Optionally, the sample covariance matrix of the standardized test result global semantic coding feature vector and the standardized test result local semantic coding feature vector is calculated to obtain a test result global semantic sample covariance matrix and a test result local semantic sample covariance matrix, including: multiplying the transpose vector of the standardized test result global semantic coding feature vector by the standardized test result global semantic coding feature vector, and then dividing the obtained standardized test result global semantic association matrix by a value obtained by subtracting one from the length of the standardized test result global semantic coding feature vector by position to obtain the test result global semantic sample covariance matrix; multiplying the transpose vector of the standardized test result local semantic coding feature vector by the standardized test result local semantic coding feature vector, and then dividing the obtained standardized test result local semantic association matrix by a value obtained by subtracting one from the length of the standardized test result local semantic coding feature vector by position to obtain the test result local semantic sample covariance matrix.

可选地,将所述测试结果全局语义主成分特征向量的集合和所述测试结果局部语义主成分特征向量的集合输入最大近似查询匹配网络以得到测试结果全局语义主成分特征向量和测试结果局部语义主成分特征向量的最佳匹配对的集合,包括:提取所述测试结果全局语义主成分特征向量的集合中预定的测试结果全局语义主成分特征向量;计算所述预定的测试结果全局语义主成分特征向量与所述测试结果局部语义主成分特征向量的集合中每个测试结果局部语义主成分特征向量之间的余弦相似度以得到匹配查询相似度的集合;将所述匹配查询相似度的集合中最大的所述匹配查询相似度所对应的测试结果局部语义主成分特征向量与所述预定的测试结果全局语义主成分特征向量作为所述预定的测试结果全局语义主成分特征向量和所述测试结果局部语义主成分特征向量的最佳匹配对。Optionally, the set of the test result global semantic principal component feature vectors and the set of the test result local semantic principal component feature vectors are input into a maximum approximate query matching network to obtain a set of best matching pairs of the test result global semantic principal component feature vectors and the test result local semantic principal component feature vectors, including: extracting predetermined test result global semantic principal component feature vectors from the set of test result global semantic principal component feature vectors; calculating the cosine similarity between the predetermined test result global semantic principal component feature vector and each test result local semantic principal component feature vector in the set of test result local semantic principal component feature vectors to obtain a set of matching query similarities; and taking the test result local semantic principal component feature vector corresponding to the largest matching query similarity in the set of matching query similarities and the predetermined test result global semantic principal component feature vector as the best matching pair of the predetermined test result global semantic principal component feature vector and the test result local semantic principal component feature vector.

可选地,将所述测试结果全局语义主成分特征向量和测试结果局部语义主成分特征向量的最佳匹配对的集合中的各个测试结果全局语义主成分特征向量和测试结果局部语义主成分特征向量的最佳匹配对输入语义细粒度门控联合模块以得到测试结果全局-测试结果局部语义主成分融合特征向量的集合,包括:分别计算所述测试结果全局语义主成分特征向量和测试结果局部语义主成分特征向量的最佳匹配对之间的按位置差值、按位置点乘和按位置加法以得到测试结果全局-局部语义主成分差分向量、测试结果全局-局部语义主成分点乘向量和测试结果全局-局部语义主成分加和向量;将所述测试结果全局-局部语义主成分差分向量、所述测试结果全局-局部语义主成分点乘向量和所述测试结果全局-局部语义主成分加和向量进行级联后进行一维卷积编码以得到测试结果全局-局部语义主成分多维度融合向量;对所述测试结果全局-局部语义主成分多维度融合向量进行基于局部窗口的最大池化处理以得到所述测试结果全局-测试结果局部语义主成分融合特征向量。Optionally, each best matching pair of the global semantic principal component feature vector of the test result and the local semantic principal component feature vector of the test result in the set of the best matching pairs of the global semantic principal component feature vector of the test result and the local semantic principal component feature vector of the test result is input into the semantic fine-grained gating joint module to obtain a set of test result global-test result local semantic principal component fusion feature vectors, including: respectively calculating the position difference, position dot multiplication and position addition between the best matching pairs of the global semantic principal component feature vector of the test result and the local semantic principal component feature vector of the test result to obtain the test result global-local semantic principal component. The invention discloses a method for preparing a test result global-local semantic principal component multi-dimensional fusion vector of the test result, a test result global-local semantic principal component dot product vector and a test result global-local semantic principal component sum vector; the test result global-local semantic principal component difference vector, the test result global-local semantic principal component dot product vector and the test result global-local semantic principal component sum vector are cascaded and then one-dimensionally convolutionally encoded to obtain a test result global-local semantic principal component multi-dimensional fusion vector; the test result global-local semantic principal component multi-dimensional fusion vector is subjected to a local window-based maximum pooling process to obtain a test result global-test result local semantic principal component fusion feature vector.

可选地,基于所述测试结果多尺度稀疏融合表示向量,得到所述测试结果,包括:将所述测试结果多尺度稀疏融合表示向量输入基于分类器的测试结果生成器以得到所述测试结果。Optionally, obtaining the test result based on the test result multi-scale sparse fusion representation vector includes: inputting the test result multi-scale sparse fusion representation vector into a classifier-based test result generator to obtain the test result.

采用上述技术方案,通过启动所述上位机;选择待测试的编辑器主板和相应的固件数据;所述上位机通过RS-485与所述下位机进行通信以发送烧录指令和所述固件数据;所述下位机通过FPGA芯片选择正确的编码器主板,并通过ISP下载协议将所述固件数据下载到所述编辑器主板的编辑器芯片;完成烧录后,所述下位机根据多摩川编码器协议读取编码器数据以检查所述编辑器主板的工作状态;通过所述下位机收集测试数据并发送给所述上位机;所述上位机对所述测试数据进行分析以得到测试结果。这样,提高了处理大量测试数据的效率,同时能够全面捕捉变量之间的复杂关系,提供更深入的测试结果理解,使得测试数据处理更加智能化。The above technical solution is adopted, by starting the host computer; selecting the editor mainboard to be tested and the corresponding firmware data; the host computer communicates with the lower computer through RS-485 to send the burning instruction and the firmware data; the lower computer selects the correct encoder mainboard through the FPGA chip, and downloads the firmware data to the editor chip of the editor mainboard through the ISP download protocol; after the burning is completed, the lower computer reads the encoder data according to the Tamagawa encoder protocol to check the working status of the editor mainboard; the test data is collected by the lower computer and sent to the host computer; the host computer analyzes the test data to obtain the test results. In this way, the efficiency of processing a large amount of test data is improved, and at the same time, the complex relationship between variables can be fully captured, providing a deeper understanding of the test results, making the test data processing more intelligent.

本申请的其他特征和优点将在随后的具体实施方式部分予以详细说明。Other features and advantages of the present application will be described in detail in the subsequent detailed description.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

结合附图并参考以下具体实施方式,本申请各实施例的上述和其他特征、优点及方面将变得更加明显。贯穿附图中,相同或相似的附图标记表示相同或相似的元素。应当理解附图是示意性的,原件和元素不一定按照比例绘制。The above and other features, advantages and aspects of the embodiments of the present application will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

在附图中:图1是根据一示例性实施例示出的一种单圈磁编码器自动化测试工装的流程图。In the accompanying drawings: FIG. 1 is a flow chart of a single-turn magnetic encoder automated testing tool according to an exemplary embodiment.

图2是根据图1所示实施例示出的一种单圈磁编码器自动化测试工装的S107步骤的流程图。FIG. 2 is a flow chart of step S107 of a single-turn magnetic encoder automated testing tool according to the embodiment shown in FIG. 1 .

图3是根据一示例性实施例示出的一种电子设备的框图。Fig. 3 is a block diagram of an electronic device according to an exemplary embodiment.

图4是根据一示例性实施例示出的一种单圈磁编码器自动化测试工装的应用场景图。Fig. 4 is a diagram showing an application scenario of a single-turn magnetic encoder automated testing tool according to an exemplary embodiment.

具体实施方式DETAILED DESCRIPTION

下面将参照附图更详细地描述本申请的实施例。虽然附图中显示了本申请的某些实施例,然而应当理解的是,本申请可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本申请。应当理解的是,本申请的附图及实施例仅用于示例性作用,并非用于限制本申请的保护范围。The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be construed as being limited to the embodiments described herein. Instead, these embodiments are provided to provide a more thorough and complete understanding of the present application. It should be understood that the drawings and embodiments of the present application are only for exemplary purposes and are not intended to limit the scope of protection of the present application.

应当理解,本申请的方法实施方式中记载的各个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本申请的范围在此方面不受限制。It should be understood that the various steps described in the method implementation of the present application can be performed in different orders and/or performed in parallel. In addition, the method implementation may include additional steps and/or omit the steps shown. The scope of the present application is not limited in this respect.

本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

需要注意,本申请中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。It should be noted that the concepts such as "first" and "second" mentioned in this application are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

需要注意,本申请中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。It should be noted that the modifications of "one" and "plurality" mentioned in the present application are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

本申请实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。The names of the messages or information exchanged between multiple devices in the embodiments of the present application are only used for illustrative purposes and are not used to limit the scope of these messages or information.

目前伺服电机单圈编码器主板烧录和测试,还是由开发人员使用芯片厂家自带工具,一块块板子人工的烧写固件和测试。这种方式效率低且易出错,显然无法适应生产环境。现在希望设计一个新的快速测试工装,以适应生产环境的自动化烧录固件和测试需求。新的单圈编码器快速测试工装由 PC 端上位机和下位机控制板程序组成;上位机提供人机交互界面,下位机完成对编码器主板的选板,下载固件,测试等功能。上位机和下位机通过RS-485进行通讯。At present, the burning and testing of the servo motor single-turn encoder motherboard is still done by developers using the chip manufacturer's own tools to manually burn firmware and test each board. This method is inefficient and prone to errors, and is obviously not suitable for the production environment. Now we hope to design a new fast test tool to meet the needs of automated firmware burning and testing in the production environment. The new single-turn encoder fast test tool consists of a PC-side host computer and a slave control board program; the host computer provides a human-computer interaction interface, and the slave computer completes the functions of selecting the encoder motherboard, downloading firmware, and testing. The host and slave computers communicate via RS-485.

以下结合附图对本申请的具体实施方式进行详细说明。图1是根据一示例性实施例示出的一种单圈磁编码器自动化测试工装的流程图,如图1所示,该工装包括:上位机和下位机,其中,所述上位机和所述下位机的工作过程,包括:步骤S101、启动所述上位机。The specific implementation of the present application is described in detail below in conjunction with the accompanying drawings. Figure 1 is a flow chart of a single-turn magnetic encoder automated testing tooling according to an exemplary embodiment. As shown in Figure 1, the tooling includes: a host computer and a slave computer, wherein the working process of the host computer and the slave computer includes: step S101, starting the host computer.

步骤S102、选择待测试的编辑器主板和相应的固件数据。Step S102: Select the editor mainboard to be tested and the corresponding firmware data.

步骤S103、所述上位机通过RS-485与所述下位机进行通信以发送烧录指令和所述固件数据。Step S103: the upper computer communicates with the lower computer via RS-485 to send a burning instruction and the firmware data.

步骤S104、所述下位机通过FPGA芯片选择正确的编码器主板,并通过ISP下载协议将所述固件数据下载到所述编辑器主板的编辑器芯片。Step S104: the lower computer selects the correct encoder mainboard through the FPGA chip, and downloads the firmware data to the editor chip of the editor mainboard through the ISP download protocol.

步骤S105、完成烧录后,所述下位机根据多摩川编码器协议读取编码器数据以检查所述编辑器主板的工作状态。Step S105, after the burning is completed, the lower computer reads the encoder data according to the Tamagawa encoder protocol to check the working status of the editor mainboard.

步骤S106、通过所述下位机收集测试数据并发送给所述上位机。Step S106: Collect test data through the lower computer and send it to the upper computer.

步骤S107、所述上位机对所述测试数据进行分析以得到测试结果。Step S107: The host computer analyzes the test data to obtain a test result.

其中,所有烧录和测试等逻辑流程都放在上位机来做,下位机只是通讯中转站,下位机需要有两个串口,一个串口连接 PC 串口和上位机通讯,另一个串口连接 FPGA 芯片(负责选择编码器主板)。下位机需要实现 modbus 从站,用来接收上位机发送过来的指令和数据;下位机需要实现与 FPGA 通讯选择编码器主板功能。下位机需要实现 ISP 下载协议,将 pc 上位机传输过来的固件程序下载到编码器芯片;下位机需要根据多摩川编码器协议读取电机编码器数据,以测试编码器是否工作正常。PC 上位机需要有串口选择和设置功能,并显示串口通讯状态,PC 上位机需要有选择编码器测试板功能。PC 上位机需要选择烧录固件,并自动记录到配置文件,下次打开可自动记住上次烧录固件的文件路径位置。PC上位机需要根据下位机传回的固件烧录状态来选择是否进入下一步测试;PC 上位机需要显示 10 块待测编码器主板的烧录和测试状态,所有编码主板测试完成后,PC 上位机需要显示最终测试结果 PASS/NG。Among them, all logical processes such as burning and testing are done by the upper computer. The lower computer is only a communication transfer station. The lower computer needs to have two serial ports, one serial port connects the PC serial port and the upper computer communication, and the other serial port connects the FPGA chip (responsible for selecting the encoder motherboard). The lower computer needs to implement the modbus slave station to receive the instructions and data sent by the upper computer; the lower computer needs to implement the function of selecting the encoder motherboard by communicating with the FPGA. The lower computer needs to implement the ISP download protocol to download the firmware program transmitted from the PC upper computer to the encoder chip; the lower computer needs to read the motor encoder data according to the Tamagawa encoder protocol to test whether the encoder is working properly. The PC upper computer needs to have the serial port selection and setting function, and display the serial port communication status. The PC upper computer needs to have the function of selecting the encoder test board. The PC upper computer needs to select the firmware to be burned and automatically record it to the configuration file. The file path location of the last firmware burned can be automatically remembered when it is opened next time. The PC host computer needs to choose whether to proceed to the next test according to the firmware burning status sent back by the slave computer; the PC host computer needs to display the burning and test status of the 10 encoder mainboards to be tested. After all encoder mainboard tests are completed, the PC host computer needs to display the final test result PASS/NG.

因此,本申请的单圈磁编码器自动化测试工装能够同时处理多个主板,显著提高了生产吞吐量。并且通过上位机和下位机的协同工作,可以实现批量烧录和测试,大幅缩短生产周期,满足现代制造业对高效率的需求。Therefore, the single-turn magnetic encoder automated test fixture of the present application can process multiple motherboards at the same time, significantly improving production throughput. And through the coordinated work of the host computer and the slave computer, batch burning and testing can be achieved, greatly shortening the production cycle and meeting the demand for high efficiency in modern manufacturing.

应可以理解,测试数据分析能够帮助识别编码器主板在烧录和测试过程中的任何异常或缺陷,以此来确保每个产品都符合预定的质量标准。然而,传统的对测试数据进行分析通常是通过手动或简单的分析方法来完成的。具体地,传统方法通常依赖于人工检查和记录测试数据,逐条对比标准值,这种做法耗时费力,特别是在处理大量数据时,效率非常低下,并且还可能导致人为的错误。此外,当测试数据涉及多个变量和维度时,传统的分析方法很难全面地捕捉到这些变量之间的复杂关系,这可能导致对测试结果的理解不够深入,遗漏重要的关联性,从而降低了测试结果的准确性。It should be understood that test data analysis can help identify any anomalies or defects in the encoder motherboard during the burning and testing process, so as to ensure that each product meets the predetermined quality standards. However, traditional analysis of test data is usually completed manually or through simple analysis methods. Specifically, traditional methods usually rely on manual inspection and recording of test data, and compare standard values one by one. This practice is time-consuming and labor-intensive, especially when dealing with large amounts of data. It is very inefficient and may also lead to human errors. In addition, when the test data involves multiple variables and dimensions, it is difficult for traditional analysis methods to fully capture the complex relationships between these variables, which may lead to a lack of in-depth understanding of the test results, miss important correlations, and thus reduce the accuracy of the test results.

因此,在使用所述上位机对所述测试数据进行分析以得到测试结果过程中,本申请的技术构思为通过采用基于人工智能的数据处理和分析算法来对所述测试数据中的各个测试结果项进行嵌入编码,并对嵌入编码后的测试结果分别进行全局语义关联和局部语义关联,以此根据测试结果的全局语义特征和局部语义特征之间的显著融合特征来自动地得到所述测试结果。这样,提高了处理大量测试数据的效率,减少了人工操作的时间和错误率。同时能够全面捕捉变量之间的复杂关系,提供更深入的测试结果理解,使得测试数据处理更加智能化。Therefore, in the process of using the host computer to analyze the test data to obtain the test results, the technical concept of the present application is to embed the coding of each test result item in the test data by using an artificial intelligence-based data processing and analysis algorithm, and respectively perform global semantic association and local semantic association on the embedded coded test results, so as to automatically obtain the test results according to the significant fusion features between the global semantic features and the local semantic features of the test results. In this way, the efficiency of processing a large amount of test data is improved, and the time and error rate of manual operation are reduced. At the same time, it is possible to fully capture the complex relationship between variables, provide a deeper understanding of the test results, and make the test data processing more intelligent.

图2是根据图1所示实施例示出的一种单圈磁编码器自动化测试工装的S107步骤的流程图。如图2所示,步骤S107、所述上位机对所述测试数据进行分析以得到测试结果,包括:步骤S1071、使用测试嵌入编码矩阵对所述测试数据中的各个测试结果项进行嵌入编码以得到测试结果项嵌入编码向量的集合。Fig. 2 is a flow chart of step S107 of a single-turn magnetic encoder automated test fixture according to the embodiment shown in Fig. 1. As shown in Fig. 2, step S107, the host computer analyzes the test data to obtain the test result, including: step S1071, using the test embedding coding matrix to embed the test result items in the test data to obtain a set of test result item embedding coding vectors.

步骤S1072、将所述测试结果项嵌入编码向量的集合输入基于转换器结构的测试结果间全局语义关联编码器以得到测试结果全局语义编码特征向量。Step S1072: input the set of test result item embedding coding vectors into a test result global semantic association encoder based on a converter structure to obtain a test result global semantic coding feature vector.

步骤S1073、将所述测试结果项嵌入编码向量的集合输入测试结果间局部语义关联编码器以得到测试结果局部语义编码特征向量。Step S1073: input the set of test result item embedding coding vectors into the test result local semantic association encoder to obtain the test result local semantic coding feature vector.

步骤S1074、将所述测试结果全局语义编码特征向量和所述测试结果局部语义编码特征向量输入基于特征主成分查询匹配的显著融合网络以得到测试结果多尺度稀疏融合表示向量。Step S1074: input the global semantic encoding feature vector of the test result and the local semantic encoding feature vector of the test result into a saliency fusion network based on feature principal component query matching to obtain a multi-scale sparse fusion representation vector of the test result.

步骤S1075、基于所述测试结果多尺度稀疏融合表示向量,得到所述测试结果。Step S1075: Obtain the test result based on the multi-scale sparse fusion representation vector of the test result.

具体地,考虑到所述测试数据中的各个测试结果项通常包含大量的数据维度,若对这些数据进行直接处理计算量较大,并且所述各个数据项中都包含了关键的数据项信息,基于此,在本申请的技术方案中,使用测试嵌入编码矩阵对所述测试数据中的各个测试结果项进行嵌入编码以得到测试结果项嵌入编码向量的集合,也就是,所述测试嵌入编码矩阵可以将高维数据映射到低维空间,减少计算复杂度,同时保留数据中的内在含义和语义信息,为后续的数据处理提供了较丰富的数据支持。Specifically, considering that each test result item in the test data usually contains a large number of data dimensions, if the data are directly processed, the computational complexity is large, and each data item contains key data item information. Based on this, in the technical solution of the present application, a test embedding coding matrix is used to embed code each test result item in the test data to obtain a set of test result item embedding coding vectors, that is, the test embedding coding matrix can map high-dimensional data to a low-dimensional space, reduce computational complexity, while retaining the intrinsic meaning and semantic information in the data, providing richer data support for subsequent data processing.

接着,考虑到所述测试结果项嵌入编码向量的集合中的各个测试结果项嵌入编码向量之间存着语义上的相互关联和影响,而转换器结构的核心是自注意力(Self-Attention)机制,它能够捕捉输入序列中不同元素之间的语义关系,这对于理解测试结果项之间的全局语义关联至关重要。基于此,在本申请的技术方案中,将所述测试结果项嵌入编码向量的集合输入基于转换器结构的测试结果间全局语义关联编码器以捕捉和挖掘出各个向量之间的语义关联得到测试结果全局语义编码特征向量。Next, considering that there are semantic correlations and influences between the embedded coding vectors of each test result item in the set of embedded coding vectors of the test result item, and the core of the converter structure is the self-attention mechanism, which can capture the semantic relationship between different elements in the input sequence, which is crucial for understanding the global semantic correlation between the test result items. Based on this, in the technical solution of the present application, the set of embedded coding vectors of the test result item is input into the global semantic correlation encoder between test results based on the converter structure to capture and mine the semantic correlation between each vector to obtain the global semantic coding feature vector of the test result.

然后,考虑到所述测试结果项嵌入编码向量的集合在局部范围内也存在基于局部语义的关联性,而1D-CNN通过卷积层能够捕捉序列数据中的局部特征,这对于识别测试结果项之间的局部语义关联非常有用。因此,在本申请的技术方案中,将所述测试结果项嵌入编码向量的集合输入基于1D-CNN模型的测试结果间局部语义关联编码器以得到测试结果局部语义编码特征向量。也就是,所述1D-CNN模型使用卷积层来处理输入的嵌入编码向量集合,卷积层通过滑动窗口(卷积核)在序列上移动,提取嵌入编码向量中的局部语义特征。Then, considering that the set of embedded coding vectors of the test result items also has local semantic-based correlations in the local range, and 1D-CNN can capture local features in sequence data through convolutional layers, this is very useful for identifying local semantic correlations between test result items. Therefore, in the technical solution of the present application, the set of embedded coding vectors of the test result items is input into the local semantic correlation encoder between test results based on the 1D-CNN model to obtain the local semantic coding feature vector of the test results. That is, the 1D-CNN model uses a convolutional layer to process the input set of embedded coding vectors, and the convolutional layer moves on the sequence through a sliding window (convolution kernel) to extract local semantic features in the embedded coding vector.

在本申请的一个实施例中,将所述测试结果项嵌入编码向量的集合输入测试结果间局部语义关联编码器以得到测试结果局部语义编码特征向量,包括:将所述测试结果项嵌入编码向量的集合输入基于1D-CNN模型的测试结果间局部语义关联编码器以得到所述测试结果局部语义编码特征向量。In one embodiment of the present application, the set of test result item embedding coding vectors is input into a local semantic association encoder between test results to obtain a local semantic coding feature vector of the test result, including: inputting the set of test result item embedding coding vectors into a local semantic association encoder between test results based on a 1D-CNN model to obtain the local semantic coding feature vector of the test result.

进一步地,考虑到所述测试结果全局语义编码特征向量和所述测试结果局部语义编码特征向量分别捕捉了测试结果的不同层次的信息。并且两者信息之间都存在显著的语义特征。而为了可以更全面地捕捉测试数据的复杂性和多维度信息,以此来进行测试结果的精准判断,在本申请的技术方案中,将所述测试结果全局语义编码特征向量和所述测试结果局部语义编码特征向量输入基于特征主成分查询匹配的显著融合网络以得到测试结果多尺度稀疏融合表示向量。特别地,所述基于特征主成分查询匹配的显著融合网络利用特征稀疏化、主成分分析和关键显著特征整合技术,创建了一种特征提取与融合方法,旨在构建特征向量间稀疏且关键的关联映射。详细而言,首先,通过对所述测试结果全局语义编码特征向量和所述测试结果局部语义编码特征向量进行标准化处理以此来消除不同特征向量由于量纲不同带来的影响,使得特征之间可比,得到标准化测试结果全局语义编码特征向量和标准化测试结果局部语义编码特征向量。接着,对标准化测试结果全局语义编码特征向量和所述标准化测试结果局部语义编码特征向量进行协方差矩阵的计算得到测试结果全局语义样本协方差矩阵和测试结果局部语义样本协方差矩阵。然后,对协方差矩阵进行基于矩阵分解的特征向量提取得到测试结果全局语义主成分特征向量的集合和测试结果局部语义主成分特征向量的集合。特别地,所述基于矩阵分解的特征向量提取是利用主成分分析算法对标准化后的向量进行稀疏化处理,在降低数据维度的同时,可以从全局和局部两个层面提取出最能代表测试结果语义的主成分特征。接着,对两组向量进行基于特征向量间的最大近似查询匹配,通过计算每个特征之间的余弦相似度来进行最相关语义的查询匹配,从而找到最佳的匹配对。进而,通过使用门控机制来对每组的最佳匹配对进行细粒度的语义联合处理,以捕捉和提炼出测试结果全局特征和据特征之间的多维度的主成分关联信息,使得模型更精细地理解和处理语义信息,来增强模型对语义内容的把握,得到测试结果全局-测试结果局部语义主成分融合特征向量的集合。最终,将主成分融合特征向量的集合进行级联处理以进一步整合和优化特征向量,以得到包含测试结果全局和局部丰富语义信息的特征表示,从而生成测试结果多尺度稀疏融合表示向量。Further, considering that the global semantic encoding feature vector of the test result and the local semantic encoding feature vector of the test result respectively capture information of different levels of the test result. And there are significant semantic features between the two information. In order to more comprehensively capture the complexity and multi-dimensional information of the test data, so as to make accurate judgments on the test results, in the technical solution of the present application, the global semantic encoding feature vector of the test result and the local semantic encoding feature vector of the test result are input into a significant fusion network based on feature principal component query matching to obtain a multi-scale sparse fusion representation vector of the test result. In particular, the significant fusion network based on feature principal component query matching uses feature sparsification, principal component analysis and key significant feature integration technology to create a feature extraction and fusion method, aiming to construct a sparse and key association mapping between feature vectors. In detail, first, the global semantic encoding feature vector of the test result and the local semantic encoding feature vector of the test result are standardized to eliminate the influence of different feature vectors due to different dimensions, so that the features are comparable, and the global semantic encoding feature vector of the standardized test result and the local semantic encoding feature vector of the standardized test result are obtained. Next, the covariance matrix of the standardized test result global semantic coding feature vector and the standardized test result local semantic coding feature vector is calculated to obtain the test result global semantic sample covariance matrix and the test result local semantic sample covariance matrix. Then, the covariance matrix is subjected to feature vector extraction based on matrix decomposition to obtain a set of test result global semantic principal component feature vectors and a set of test result local semantic principal component feature vectors. In particular, the feature vector extraction based on matrix decomposition utilizes the principal component analysis algorithm to perform sparse processing on the standardized vectors, which can extract the principal component features that best represent the semantics of the test results from both the global and local levels while reducing the data dimension. Next, the two sets of vectors are subjected to maximum approximate query matching based on the feature vectors, and the query matching of the most relevant semantics is performed by calculating the cosine similarity between each feature, thereby finding the best matching pair. Then, the gating mechanism is used to perform fine-grained semantic joint processing on the best matching pairs of each group to capture and extract the multi-dimensional principal component correlation information between the global features of the test results and the data features, so that the model can understand and process the semantic information more finely, enhance the model's grasp of the semantic content, and obtain a set of test result global-test result local semantic principal component fusion feature vectors. Finally, the set of principal component fusion feature vectors is cascaded to further integrate and optimize the feature vectors to obtain a feature representation containing rich global and local semantic information of the test results, thereby generating a multi-scale sparse fusion representation vector of the test results.

在本申请的一个实施例中,将所述测试结果全局语义编码特征向量和所述测试结果局部语义编码特征向量输入基于特征主成分查询匹配的显著融合网络以得到测试结果多尺度稀疏融合表示向量,包括:对所述测试结果全局语义编码特征向量和所述测试结果局部语义编码特征向量进行标准化处理以得到标准化测试结果全局语义编码特征向量和标准化测试结果局部语义编码特征向量;计算所述标准化测试结果全局语义编码特征向量和所述标准化测试结果局部语义编码特征向量的样本协方差矩阵以得到测试结果全局语义样本协方差矩阵和测试结果局部语义样本协方差矩阵;对所述测试结果全局语义样本协方差矩阵和所述测试结果局部语义样本协方差矩阵进行基于矩阵分解的特征向量提取以得到测试结果全局语义主成分特征向量的集合和测试结果局部语义主成分特征向量的集合;将所述测试结果全局语义主成分特征向量的集合和所述测试结果局部语义主成分特征向量的集合输入最大近似查询匹配网络以得到测试结果全局语义主成分特征向量和测试结果局部语义主成分特征向量的最佳匹配对的集合;将所述测试结果全局语义主成分特征向量和测试结果局部语义主成分特征向量的最佳匹配对的集合中的各个测试结果全局语义主成分特征向量和测试结果局部语义主成分特征向量的最佳匹配对输入语义细粒度门控联合模块以得到测试结果全局-测试结果局部语义主成分融合特征向量的集合;将所述测试结果全局-测试结果局部语义主成分融合特征向量的集合进行级联以得到所述测试结果多尺度稀疏融合表示向量。In one embodiment of the present application, the global semantic coding feature vector of the test result and the local semantic coding feature vector of the test result are input into a significant fusion network based on feature principal component query matching to obtain a multi-scale sparse fusion representation vector of the test result, including: standardizing the global semantic coding feature vector of the test result and the local semantic coding feature vector of the test result to obtain a standardized global semantic coding feature vector of the test result and a standardized local semantic coding feature vector of the test result; calculating the sample covariance matrix of the standardized global semantic coding feature vector of the test result and the standardized local semantic coding feature vector of the test result to obtain a global semantic sample covariance matrix of the test result and a local semantic sample covariance matrix of the test result; performing matrix decomposition-based feature vector extraction on the global semantic sample covariance matrix of the test result and the local semantic sample covariance matrix of the test result to obtain a global semantic sample covariance matrix of the test result. A set of semantic principal component feature vectors and a set of local semantic principal component feature vectors of test results; inputting the set of global semantic principal component feature vectors of test results and the set of local semantic principal component feature vectors of test results into a maximum approximate query matching network to obtain a set of best matching pairs of global semantic principal component feature vectors of test results and local semantic principal component feature vectors of test results; inputting the best matching pairs of each global semantic principal component feature vector of test results and local semantic principal component feature vectors of test results in the set of best matching pairs of global semantic principal component feature vectors of test results and local semantic principal component feature vectors of test results into a semantic fine-grained gated joint module to obtain a set of global semantic principal component fusion feature vectors of test results-local semantic principal component fusion feature vectors of test results; cascading the set of global semantic principal component fusion feature vectors of test results-local semantic principal component fusion feature vectors of test results to obtain a multi-scale sparse fusion representation vector of the test result.

进一步地,在本申请的一个实施例中,对所述测试结果全局语义编码特征向量和所述测试结果局部语义编码特征向量进行标准化处理以得到标准化测试结果全局语义编码特征向量和标准化测试结果局部语义编码特征向量,包括:分别计算所述测试结果全局语义编码特征向量的均值和标准差以得到测试结果全局语义编码特征均值和测试结果全局语义编码特征标准差;将所述测试结果全局语义编码特征向量与所述测试结果全局语义编码特征均值进行按位置相减后,计算得到的测试结果全局语义偏移向量与所述测试结果全局语义编码特征标准差的按位置除法以得到所述标准化测试结果全局语义编码特征向量;分别计算所述测试结果局部语义编码特征向量的均值和标准差以得到测试结果局部语义编码特征均值和测试结果局部语义编码特征标准差;将所述测试结果局部语义编码特征向量与所述测试结果局部语义编码特征均值进行按位置相减后,计算得到的测试结果局部语义偏移向量与所述测试结果局部语义编码特征标准差的按位置除法以得到所述标准化测试结果局部语义编码特征向量。Further, in one embodiment of the present application, the global semantic coding feature vector of the test result and the local semantic coding feature vector of the test result are standardized to obtain a standardized global semantic coding feature vector of the test result and a standardized local semantic coding feature vector of the test result, including: respectively calculating the mean and standard deviation of the global semantic coding feature vector of the test result to obtain the mean of the global semantic coding feature of the test result and the standard deviation of the global semantic coding feature of the test result; after positionally subtracting the global semantic coding feature vector of the test result from the mean of the global semantic coding feature of the test result, the calculated global semantic offset vector of the test result and the standard deviation of the global semantic coding feature of the test result are divided by position to obtain the standardized global semantic coding feature vector of the test result; respectively calculating the mean and standard deviation of the local semantic coding feature vector of the test result to obtain the mean of the local semantic coding feature of the test result and the standard deviation of the local semantic coding feature of the test result; after positionally subtracting the local semantic coding feature vector of the test result from the mean of the local semantic coding feature of the test result, the calculated local semantic offset vector of the test result and the standard deviation of the local semantic coding feature of the test result are divided by position to obtain the standardized local semantic coding feature vector of the test result.

进一步地,在本申请的一个实施例中,计算所述标准化测试结果全局语义编码特征向量和所述标准化测试结果局部语义编码特征向量的样本协方差矩阵以得到测试结果全局语义样本协方差矩阵和测试结果局部语义样本协方差矩阵,包括:将所述标准化测试结果全局语义编码特征向量的转置向量与所述标准化测试结果全局语义编码特征向量进行相乘后,将得到的标准化测试结果全局语义关联矩阵与所述标准化测试结果全局语义编码特征向量的长度减一得到的数值进行按位置相除以得到所述测试结果全局语义样本协方差矩阵;将所述标准化测试结果局部语义编码特征向量的转置向量与所述标准化测试结果局部语义编码特征向量进行相乘后,将得到的标准化测试结果局部语义关联矩阵与所述标准化测试结果局部语义编码特征向量的长度减一得到的数值进行按位置相除以得到所述测试结果局部语义样本协方差矩阵。Further, in one embodiment of the present application, the sample covariance matrix of the standardized test result global semantic coding feature vector and the standardized test result local semantic coding feature vector is calculated to obtain a test result global semantic sample covariance matrix and a test result local semantic sample covariance matrix, including: multiplying the transpose vector of the standardized test result global semantic coding feature vector by the standardized test result global semantic coding feature vector, and then dividing the obtained standardized test result global semantic association matrix by the value obtained by subtracting one from the length of the standardized test result global semantic coding feature vector by position to obtain the test result global semantic sample covariance matrix; multiplying the transpose vector of the standardized test result local semantic coding feature vector by the standardized test result local semantic coding feature vector, and then dividing the obtained standardized test result local semantic association matrix by the value obtained by subtracting one from the length of the standardized test result local semantic coding feature vector by position to obtain the test result local semantic sample covariance matrix.

更进一步地,在本申请的一个实施例中,将所述测试结果全局语义主成分特征向量的集合和所述测试结果局部语义主成分特征向量的集合输入最大近似查询匹配网络以得到测试结果全局语义主成分特征向量和测试结果局部语义主成分特征向量的最佳匹配对的集合,包括:提取所述测试结果全局语义主成分特征向量的集合中预定的测试结果全局语义主成分特征向量;计算所述预定的测试结果全局语义主成分特征向量与所述测试结果局部语义主成分特征向量的集合中每个测试结果局部语义主成分特征向量之间的余弦相似度以得到匹配查询相似度的集合;将所述匹配查询相似度的集合中最大的所述匹配查询相似度所对应的测试结果局部语义主成分特征向量与所述预定的测试结果全局语义主成分特征向量作为所述预定的测试结果全局语义主成分特征向量和所述测试结果局部语义主成分特征向量的最佳匹配对。Furthermore, in one embodiment of the present application, the set of the test result global semantic principal component feature vectors and the set of the test result local semantic principal component feature vectors are input into a maximum approximate query matching network to obtain a set of best matching pairs of the test result global semantic principal component feature vectors and the test result local semantic principal component feature vectors, including: extracting predetermined test result global semantic principal component feature vectors from the set of the test result global semantic principal component feature vectors; calculating the cosine similarity between the predetermined test result global semantic principal component feature vector and each test result local semantic principal component feature vector in the set of the test result local semantic principal component feature vectors to obtain a set of matching query similarities; and taking the test result local semantic principal component feature vector corresponding to the largest matching query similarity in the set of matching query similarities and the predetermined test result global semantic principal component feature vector as the best matching pair of the predetermined test result global semantic principal component feature vector and the test result local semantic principal component feature vector.

更进一步地,在本申请的一个实施例中,将所述测试结果全局语义主成分特征向量和测试结果局部语义主成分特征向量的最佳匹配对的集合中的各个测试结果全局语义主成分特征向量和测试结果局部语义主成分特征向量的最佳匹配对输入语义细粒度门控联合模块以得到测试结果全局-测试结果局部语义主成分融合特征向量的集合,包括:分别计算所述测试结果全局语义主成分特征向量和测试结果局部语义主成分特征向量的最佳匹配对之间的按位置差值、按位置点乘和按位置加法以得到测试结果全局-局部语义主成分差分向量、测试结果全局-局部语义主成分点乘向量和测试结果全局-局部语义主成分加和向量;将所述测试结果全局-局部语义主成分差分向量、所述测试结果全局-局部语义主成分点乘向量和所述测试结果全局-局部语义主成分加和向量进行级联后进行一维卷积编码以得到测试结果全局-局部语义主成分多维度融合向量;对所述测试结果全局-局部语义主成分多维度融合向量进行基于局部窗口的最大池化处理以得到所述测试结果全局-测试结果局部语义主成分融合特征向量。Furthermore, in one embodiment of the present application, each best matching pair of the global semantic principal component feature vector of the test result and the local semantic principal component feature vector of the test result in the set of the best matching pairs of the global semantic principal component feature vector of the test result and the local semantic principal component feature vector of the test result is input into the semantic fine-grained gated joint module to obtain a set of test result global-test result local semantic principal component fusion feature vectors, including: respectively calculating the positional difference, positional dot multiplication and positional addition between the best matching pairs of the global semantic principal component feature vector of the test result and the local semantic principal component feature vector of the test result to obtain the global semantic principal component feature vector of the test result. -local semantic principal component difference vector, test result global-local semantic principal component dot product vector and test result global-local semantic principal component sum vector; concatenate the test result global-local semantic principal component difference vector, the test result global-local semantic principal component dot product vector and the test result global-local semantic principal component sum vector, and then perform one-dimensional convolution encoding to obtain a test result global-local semantic principal component multi-dimensional fusion vector; perform local window-based maximum pooling processing on the test result global-local semantic principal component multi-dimensional fusion vector to obtain the test result global-test result local semantic principal component fusion feature vector.

具体地,将所述测试结果全局语义编码特征向量和所述测试结果局部语义编码特征向量输入基于特征主成分查询匹配的显著融合网络,以如下显著融合公式进行处理以得到所述测试结果多尺度稀疏融合表示向量;其中,所述显著融合公式为:;其中,分别表示所述测试结果全局语义编码特征向量和所述测试结果局部语义编码特征向量,分别为所述测试结果全局语义编码特征向量和所述测试结果局部语义编码特征向量的均值,分别为所述测试结果全局语义编码特征向量和所述测试结果局部语义编码特征向量的标准差,分别为所述标准化测试结果全局语义编码特征向量和所述标准化测试结果局部语义编码特征向量,分别为的转置向量,分别是所述标准化测试结果全局语义编码特征向量和所述标准化测试结果局部语义编码特征向量的长度,分别是所述测试结果全局语义样本协方差矩阵和所述测试结果局部语义样本协方差矩阵,分别是测试结果全局语义主成分正交矩阵和测试结果局部语义主成分正交矩阵,分别为测试结果全局语义对角矩阵和测试结果局部语义对角矩阵,为矩阵中对角线上元素为的测试结果全局语义对角矩阵,分别为各个测试结果全局语义主成分特征向量的权重值,为矩阵中对角线上元素为的测试结果局部语义对角矩阵,分别为各个测试结果局部语义主成分特征向量的权重值,分别为的转置矩阵,为所述测试结果全局语义主成分特征向量的集合中各个测试结果全局语义主成分特征向量,为所述测试结果局部语义主成分特征向量的集合中各个测试结果局部语义主成分特征向量,为计算所述之间的向量内积,为计算向量的一范数,为返回最大值对应的值,是最大近似匹配值,分别为按位置差值、按位置点乘和按位置加法,为级联处理,是一维卷积编码操作,是最大池化操作,是所述测试结果全局-测试结果局部语义主成分融合特征向量的集合中第个测试结果全局-测试结果局部语义主成分融合特征向量,是所述测试结果全局-测试结果局部语义主成分融合特征向量的集合中特征向量的个数,是所述测试结果多尺度稀疏融合表示向量。Specifically, the global semantic encoding feature vector of the test result and the local semantic encoding feature vector of the test result are input into a significant fusion network based on feature principal component query matching, and processed with the following significant fusion formula to obtain a multi-scale sparse fusion representation vector of the test result; wherein the significant fusion formula is: ;in, and represent the global semantic coding feature vector of the test result and the local semantic coding feature vector of the test result respectively, and are respectively the means of the global semantic coding feature vector of the test result and the local semantic coding feature vector of the test result, and are the standard deviations of the global semantic coding feature vector and the local semantic coding feature vector of the test result, respectively, and are respectively the global semantic encoding feature vector of the standardized test result and the local semantic encoding feature vector of the standardized test result, and They are and The transposed vector of and are the lengths of the global semantic encoding feature vector of the standardized test result and the local semantic encoding feature vector of the standardized test result, respectively, and are respectively the test result global semantic sample covariance matrix and the test result local semantic sample covariance matrix, and They are the orthogonal matrix of the global semantic principal component of the test result and the orthogonal matrix of the local semantic principal component of the test result. and They are the global semantic diagonal matrix of test results and the local semantic diagonal matrix of test results, The diagonal elements of the matrix are The test results of the global semantic diagonal matrix, are the weight values of the global semantic principal component feature vectors of each test result, The diagonal elements of the matrix are The test results of the local semantic diagonal matrix, are the weight values of the local semantic principal component feature vectors of each test result, and They are and The transposed matrix of is each test result global semantic principal component feature vector in the set of test result global semantic principal component feature vectors, is each local semantic principal component feature vector of the test result in the set of local semantic principal component feature vectors of the test result, To calculate the and The vector inner product between To calculate the one-norm of a vector, To return the maximum value value, is the maximum approximate matching value, , and They are position difference, position dot multiplication and position addition respectively. For cascade processing, is a one-dimensional convolutional coding operation, is the maximum pooling operation, is the first in the set of the test result global-test result local semantic principal component fusion feature vectors The global test result-local test result semantic principal component fusion feature vector, is the number of feature vectors in the set of the test result global-test result local semantic principal component fusion feature vectors, is the multi-scale sparse fusion representation vector of the test result.

继而,将所述测试结果多尺度稀疏融合表示向量输入基于分类器的测试结果生成器以得到所述测试结果。也就是,利用所述测试结果全局语义编码特征向量和所述测试结果局部语义编码特征向量进行显著性融合后得到的测试结果多尺度稀疏融合表示向量来进行分类处理,以此来自动地得到所述测试结果。这样,提高了处理大量测试数据的效率,减少了人工操作的时间和错误率。同时能够全面捕捉变量之间的复杂关系,提供更深入的测试结果理解,使得测试数据处理更加智能化。Then, the multi-scale sparse fusion representation vector of the test result is input into the test result generator based on the classifier to obtain the test result. That is, the multi-scale sparse fusion representation vector of the test result obtained by significant fusion of the global semantic encoding feature vector of the test result and the local semantic encoding feature vector of the test result is used for classification processing to automatically obtain the test result. In this way, the efficiency of processing a large amount of test data is improved, and the time and error rate of manual operation are reduced. At the same time, it can fully capture the complex relationship between variables, provide a deeper understanding of the test results, and make the test data processing more intelligent.

所有编码主板测试完成后,PC上位机需要显示最终测试结果 PASS/NG”,其中,PASS表示主板通过了所有的测试标准和要求,这意味着主板的功能、性能和质量都符合设计规范和制造标准,在PC上位机显示"PASS"时,表示主板可以进入下一生产阶段,如包装和发货。NG表示主板没有通过测试,存在某些不符合标准的问题,这可能是由于硬件缺陷、软件错误或其他制造问题,显示"NG"时,主板需要进一步的检查和维修,或者可能需要返工或报废。After all the coding motherboard tests are completed, the PC host computer needs to display the final test results "PASS/NG", where PASS means that the motherboard has passed all the test standards and requirements, which means that the functions, performance and quality of the motherboard meet the design specifications and manufacturing standards. When the PC host computer displays "PASS", it means that the motherboard can enter the next production stage, such as packaging and shipping. NG means that the motherboard has not passed the test and there are some non-compliant issues, which may be due to hardware defects, software errors or other manufacturing problems. When "NG" is displayed, the motherboard needs further inspection and repair, or may need to be reworked or scrapped.

在本申请的一个实施例中,基于所述测试结果多尺度稀疏融合表示向量,得到所述测试结果,包括:将所述测试结果多尺度稀疏融合表示向量输入基于分类器的测试结果生成器以得到所述测试结果。In one embodiment of the present application, obtaining the test result based on the multi-scale sparse fusion representation vector of the test result includes: inputting the multi-scale sparse fusion representation vector of the test result into a classifier-based test result generator to obtain the test result.

优选地,考虑到所述测试结果全局语义编码特征向量和所述测试结果局部语义编码特征向量分别表示各个测试结果项的基于嵌入表示上下文的关联特征和嵌入表示局部关联特征,因此在对其进行基于特征主成分查询匹配的显著融合时,会由于嵌入表示关联维度差异引起的特征主成分查询匹配显著性差异,而导致嵌入语义聚合细粒度对齐冲突,从而引起聚合关键信息丢失,影响所述测试结果多尺度稀疏融合表示向量的表达效果。Preferably, considering that the global semantic encoding feature vector of the test result and the local semantic encoding feature vector of the test result respectively represent the associated features based on the embedded representation context and the local associated features of the embedded representation of each test result item, when performing significant fusion based on feature principal component query matching, the feature principal component query matching significance difference caused by the difference in the embedded representation association dimension will lead to the embedded semantic aggregation fine-grained alignment conflict, thereby causing the loss of aggregation key information and affecting the expression effect of the multi-scale sparse fusion representation vector of the test result.

基于此,在所述优选示例中,在将所述测试结果多尺度稀疏融合表示向量输入基于分类器的测试结果生成器以得到所述测试结果时,对所述测试结果多尺度稀疏融合表示向量进行优化,具体地,优化过程包括以下步骤:对所述测试结果多尺度稀疏融合表示向量的所有特征值进行基于特征值间距离,例如差绝对值距离的聚类,并确定聚类特征的特征数目相对于所述测试结果多尺度稀疏融合表示向量的特征数目的比例值;将所述聚类特征排列为测试结果多尺度稀疏融合聚类向量,并将所述测试结果多尺度稀疏融合聚类向量的二范数除以所述测试结果多尺度稀疏融合表示向量的二范数以获得第一测试结果多尺度稀疏融合聚类相关权重值;将所述测试结果多尺度稀疏融合聚类向量的一范数以所述比例值为指数的第一幂值除以所述测试结果多尺度稀疏融合表示向量的一范数以所述比例值为指数的第二幂值以获得第二测试结果多尺度稀疏融合聚类相关权重值;对于所述测试结果多尺度稀疏融合聚类向量的每个特征值,将其乘以所述第一和第二测试结果多尺度稀疏融合聚类相关权重值之差的倒数以获得所述测试结果多尺度稀疏融合聚类向量的优化的特征值;对于所述测试结果多尺度稀疏融合表示向量中聚类以外的每个特征值,将其乘以所述第一和第二测试结果多尺度稀疏融合聚类相关权重值之和的倒数以获得所述测试结果多尺度稀疏融合表示向量的优化的类外特征值;以及将所述测试结果多尺度稀疏融合聚类向量的优化的特征值和所述测试结果多尺度稀疏融合表示向量的优化的类外特征值组成优化的测试结果多尺度稀疏融合表示向量。Based on this, in the preferred example, when the test result multiscale sparse fusion representation vector is input into the classifier-based test result generator to obtain the test result, the test result multiscale sparse fusion representation vector is optimized. Specifically, the optimization process includes the following steps: clustering all eigenvalues of the test result multiscale sparse fusion representation vector based on the distance between eigenvalues, such as the difference absolute value distance, and determining the ratio of the number of features of cluster features to the number of features of the test result multiscale sparse fusion representation vector; arranging the cluster features into a test result multiscale sparse fusion clustering vector, and dividing the second norm of the test result multiscale sparse fusion clustering vector by the second norm of the test result multiscale sparse fusion representation vector to obtain a first test result multiscale sparse fusion clustering related weight value; dividing the first norm of the test result multiscale sparse fusion clustering vector by a first power value exponentially using the ratio value. A second power value of the scale value is used as an exponent of a norm of the test result multiscale sparse fusion representation vector to obtain a second test result multiscale sparse fusion clustering related weight value; for each eigenvalue of the test result multiscale sparse fusion clustering vector, multiply it by the inverse of the difference between the first and second test result multiscale sparse fusion clustering related weight values to obtain an optimized eigenvalue of the test result multiscale sparse fusion clustering vector; for each eigenvalue outside the cluster in the test result multiscale sparse fusion representation vector, multiply it by the inverse of the sum of the first and second test result multiscale sparse fusion clustering related weight values to obtain an optimized out-of-class eigenvalue of the test result multiscale sparse fusion representation vector; and the optimized eigenvalues of the test result multiscale sparse fusion clustering vector and the optimized out-of-class eigenvalues of the test result multiscale sparse fusion representation vector are combined to form an optimized test result multiscale sparse fusion representation vector.

也就是,优化过程表示为:是所述测试结果多尺度稀疏融合表示向量,例如记为的特征数目,是所述测试结果多尺度稀疏融合聚类向量,例如记为的特征数目,表示所述测试结果多尺度稀疏融合聚类向量对应的聚类特征集合,分别表示向量的二范数和一范数的次幂,是比例值,是所述测试结果多尺度稀疏融合表示向量,是所述测试结果多尺度稀疏融合聚类向量,是所述测试结果多尺度稀疏融合聚类向量的各个位置的特征值,是优化的类外特征值组成优化的测试结果多尺度稀疏融合表示向量的各个位置的特征值。That is, the optimization process is expressed as: ; is the multi-scale sparse fusion representation vector of the test result, for example, The number of features, is the multi-scale sparse fusion clustering vector of the test result, for example, The number of features, represents the clustering feature set corresponding to the multi-scale sparse fusion clustering vector of the test result, and Represents the binary norm and the uninorm of the vector respectively. Power, is the ratio value, is the multi-scale sparse fusion representation vector of the test result, is the multi-scale sparse fusion clustering vector of the test result, is the eigenvalue of each position of the multi-scale sparse fusion clustering vector of the test result, It is the eigenvalues of each position of the optimized out-of-class eigenvalue composition optimized test result multi-scale sparse fusion representation vector.

这里,为了避免所述测试结果多尺度稀疏融合表示向量基于聚合特征,由于聚合冲突导致的相对于原特征集合整体的关键后缀语义信息丢失,通过将所述测试结果多尺度稀疏融合聚类向量的特征数目相对于所述测试结果多尺度稀疏融合表示向量的特征数目的聚类比例作为判决函数,来进行所述测试结果多尺度稀疏融合聚类向量和所述测试结果多尺度稀疏融合表示向量的一范数的集合绝对表示的对抗式判决,并分别与所述测试结果多尺度稀疏融合聚类向量和所述测试结果多尺度稀疏融合表示向量的二范数的聚类内在冲突表示进行正负交互,来构建所述优化后的测试结果多尺度稀疏融合表示向量基于聚合特征的与原特征集合整体的坚固的对齐护栏,从而实现所述优化后的测试结果多尺度稀疏融合表示向量基于聚合风险可迁移性的有害信息损失意图缓解,提升所述优化后的测试结果多尺度稀疏融合表示向量的表达效果,从而改进所述测试结果多尺度稀疏融合表示向量输入基于分类器的测试结果生成器得到的所述测试结果的准确性。这样,提高了处理大量测试数据的效率,减少了人工操作的时间和错误率。同时能够全面捕捉变量之间的复杂关系,提供更深入的测试结果理解,使得测试数据处理更加智能化。Here, in order to avoid the loss of key suffix semantic information relative to the original feature set as a whole due to aggregation conflict based on the aggregated features of the test result multiscale sparse fusion representation vector, the clustering ratio of the number of features of the test result multiscale sparse fusion clustering vector relative to the number of features of the test result multiscale sparse fusion representation vector is used as a decision function to perform an adversarial decision on the set absolute representation of the test result multiscale sparse fusion clustering vector and the one-norm of the test result multiscale sparse fusion representation vector, and positive and negative interactions are performed with the clustering intrinsic conflict representation of the two-norm of the test result multiscale sparse fusion clustering vector and the test result multiscale sparse fusion representation vector, respectively, to construct a solid alignment guardrail between the optimized test result multiscale sparse fusion representation vector and the original feature set as a whole based on the aggregated features, thereby achieving the mitigation of the intention of harmful information loss of the optimized test result multiscale sparse fusion representation vector based on the aggregation risk transferability, improving the expression effect of the optimized test result multiscale sparse fusion representation vector, and thus improving the accuracy of the test result obtained by inputting the test result multiscale sparse fusion representation vector into the test result generator based on the classifier. This improves the efficiency of processing large amounts of test data, reduces the time and error rate of manual operations, and can fully capture the complex relationships between variables, provide a deeper understanding of test results, and make test data processing more intelligent.

综上所述,采用上述方案,通过采用基于人工智能的数据处理和分析算法来对所述测试数据中的各个测试结果项进行嵌入编码,并对嵌入编码后的测试结果分别进行全局语义关联和局部语义关联,以此根据测试结果的全局语义特征和局部语义特征之间的显著融合特征来自动地得到所述测试结果。这样,提高了处理大量测试数据的效率,减少了人工操作的时间和错误率。同时能够全面捕捉变量之间的复杂关系,提供更深入的测试结果理解,使得测试数据处理更加智能化。In summary, the above scheme is adopted to embed and encode each test result item in the test data by using an artificial intelligence-based data processing and analysis algorithm, and the embedded and encoded test results are respectively subjected to global semantic association and local semantic association, so as to automatically obtain the test results according to the significant fusion features between the global semantic features and the local semantic features of the test results. In this way, the efficiency of processing a large amount of test data is improved, and the time and error rate of manual operation are reduced. At the same time, it can fully capture the complex relationship between variables, provide a deeper understanding of the test results, and make the test data processing more intelligent.

下面参考图3,其示出了适于用来实现本申请实施例的电子设备600的结构示意图。本申请实施例中的终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图3示出的电子设备仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。Referring to FIG. 3 below, it shows a schematic diagram of the structure of an electronic device 600 suitable for implementing an embodiment of the present application. The terminal device in the embodiment of the present application may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. The electronic device shown in FIG. 3 is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

如图3所示,电子设备600可以包括处理装置(例如中央处理器、图形处理器等)601,其可以根据存储在只读存储器(ROM)602中的程序或者从存储装置608加载到随机访问存储器(RAM)603中的程序而执行各种适当的动作和处理。在RAM603中,还存储有电子设备600操作所需的各种程序和数据。处理装置601、ROM602以及RAM603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。As shown in FIG3 , the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to the bus 604.

通常,以下装置可以连接至I/O接口605:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置606;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置607;包括例如磁带、硬盘等的存储装置608;以及通信装置609。通信装置609可以允许电子设备600与其他设备进行无线或有线通信以交换数据。虽然图3示出了具有各种装置的电子设备600,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。Typically, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 608 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 609. The communication device 609 may allow the electronic device 600 to communicate wirelessly or wired with other devices to exchange data. Although FIG. 3 shows an electronic device 600 with various devices, it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or have alternatively.

特别地,根据本申请的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本申请的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置609从网络上被下载和安装,或者从存储装置608被安装,或者从ROM602被安装。在该计算机程序被处理装置601执行时,执行本申请实施例的方法中限定的上述功能。In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present application are executed.

需要说明的是,本申请上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium mentioned above in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

在一些实施方式中,客户端、服务器可以利用诸如HTTP(HyperTextTransferProtocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

可以以一种或多种程序设计语言或其组合来编写用于执行本申请的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言——诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)——连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and/or flow chart, and the combination of the square boxes in the block diagram and/or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

描述于本申请实施例中所涉及到的模块可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,模块的名称在某种情况下并不构成对该模块本身的限定,例如,测试参数获取模块还可以被描述为“获取目标设备对应的设备测试参数的模块”。The modules involved in the embodiments described in this application can be implemented by software or hardware. The name of the module does not limit the module itself in some cases. For example, the test parameter acquisition module can also be described as a "module for acquiring device test parameters corresponding to the target device".

本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

在本申请的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

图4是根据一示例性实施例示出的一种单圈磁编码器自动化测试工装的应用场景图。如图4所示,在该应用场景中,首先,通过下位机收集测试数据(例如,如图4中所示意的C);然后,将获取的测试数据输入至部署有单圈磁编码器自动化测试工装算法的服务器(例如,如图4中所示意的S)中,其中所述服务器能够基于单圈磁编码器自动化测试工装算法对所述测试数据进行处理,以得到所述测试结果。Fig. 4 is an application scenario diagram of a single-turn magnetic encoder automated test fixture according to an exemplary embodiment. As shown in Fig. 4, in this application scenario, first, test data is collected by a lower computer (for example, C as shown in Fig. 4); then, the acquired test data is input into a server (for example, S as shown in Fig. 4) deployed with a single-turn magnetic encoder automated test fixture algorithm, wherein the server can process the test data based on the single-turn magnetic encoder automated test fixture algorithm to obtain the test result.

以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.

此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本申请的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。In addition, although each operation is described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or to be performed in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the application. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现示例形式。关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Although the subject matter has been described in language specific to structural features and/or method logic actions, it should be understood that the subject matter defined is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely exemplary forms of implementation. With respect to the apparatus in the above-mentioned embodiments, the specific manner in which each module performs the operation has been described in detail in the embodiments related to the method, and will not be described in detail here.

Claims (9)

1.一种单圈磁编码器自动化测试工装,其特征在于,包括:上位机和下位机,其中,所述上位机和所述下位机的工作过程,包括:启动所述上位机;选择待测试的编辑器主板和相应的固件数据;所述上位机通过RS-485与所述下位机进行通信以发送烧录指令和所述固件数据;所述下位机通过FPGA芯片选择正确的编码器主板,并通过ISP下载协议将所述固件数据下载到所述编辑器主板的编辑器芯片;完成烧录后,所述下位机根据多摩川编码器协议读取编码器数据以检查所述编辑器主板的工作状态;通过所述下位机收集测试数据并发送给所述上位机;所述上位机对所述测试数据进行分析以得到测试结果。1. A single-turn magnetic encoder automated testing tool, characterized in that it comprises: a host computer and a slave computer, wherein the working process of the host computer and the slave computer comprises: starting the host computer; selecting an editor mainboard to be tested and corresponding firmware data; the host computer communicates with the slave computer via RS-485 to send a burning instruction and the firmware data; the slave computer selects the correct encoder mainboard via an FPGA chip, and downloads the firmware data to the editor chip of the editor mainboard via an ISP download protocol; after the burning is completed, the slave computer reads the encoder data according to the Tamagawa encoder protocol to check the working status of the editor mainboard; the test data is collected by the slave computer and sent to the host computer; the host computer analyzes the test data to obtain a test result. 2.根据权利要求1所述的单圈磁编码器自动化测试工装,其特征在于,所述上位机对所述测试数据进行分析以得到测试结果,包括:使用测试嵌入编码矩阵对所述测试数据中的各个测试结果项进行嵌入编码以得到测试结果项嵌入编码向量的集合;将所述测试结果项嵌入编码向量的集合输入基于转换器结构的测试结果间全局语义关联编码器以得到测试结果全局语义编码特征向量;将所述测试结果项嵌入编码向量的集合输入测试结果间局部语义关联编码器以得到测试结果局部语义编码特征向量;将所述测试结果全局语义编码特征向量和所述测试结果局部语义编码特征向量输入基于特征主成分查询匹配的显著融合网络以得到测试结果多尺度稀疏融合表示向量;基于所述测试结果多尺度稀疏融合表示向量,得到所述测试结果。2. The single-turn magnetic encoder automated testing tool according to claim 1 is characterized in that the host computer analyzes the test data to obtain test results, including: using a test embedding coding matrix to embed code each test result item in the test data to obtain a set of test result item embedding coding vectors; inputting the set of test result item embedding coding vectors into a global semantic association encoder between test results based on a converter structure to obtain a global semantic coding feature vector of the test results; inputting the set of test result item embedding coding vectors into a local semantic association encoder between test results to obtain a local semantic coding feature vector of the test results; inputting the test result global semantic coding feature vector and the test result local semantic coding feature vector into a significant fusion network based on feature principal component query matching to obtain a test result multi-scale sparse fusion representation vector; and obtaining the test result based on the test result multi-scale sparse fusion representation vector. 3.根据权利要求2所述的单圈磁编码器自动化测试工装,其特征在于,将所述测试结果项嵌入编码向量的集合输入测试结果间局部语义关联编码器以得到测试结果局部语义编码特征向量,包括:将所述测试结果项嵌入编码向量的集合输入基于1D-CNN模型的测试结果间局部语义关联编码器以得到所述测试结果局部语义编码特征向量。3. The single-turn magnetic encoder automated testing tool according to claim 2 is characterized in that the set of test result item embedding coding vectors is input into a local semantic association encoder between test results to obtain a local semantic coding feature vector of the test results, including: the set of test result item embedding coding vectors is input into a local semantic association encoder between test results based on a 1D-CNN model to obtain the local semantic coding feature vector of the test results. 4.根据权利要求3所述的单圈磁编码器自动化测试工装,其特征在于,将所述测试结果全局语义编码特征向量和所述测试结果局部语义编码特征向量输入基于特征主成分查询匹配的显著融合网络以得到测试结果多尺度稀疏融合表示向量,包括:对所述测试结果全局语义编码特征向量和所述测试结果局部语义编码特征向量进行标准化处理以得到标准化测试结果全局语义编码特征向量和标准化测试结果局部语义编码特征向量;计算所述标准化测试结果全局语义编码特征向量和所述标准化测试结果局部语义编码特征向量的样本协方差矩阵以得到测试结果全局语义样本协方差矩阵和测试结果局部语义样本协方差矩阵;对所述测试结果全局语义样本协方差矩阵和所述测试结果局部语义样本协方差矩阵进行基于矩阵分解的特征向量提取以得到测试结果全局语义主成分特征向量的集合和测试结果局部语义主成分特征向量的集合;将所述测试结果全局语义主成分特征向量的集合和所述测试结果局部语义主成分特征向量的集合输入最大近似查询匹配网络以得到测试结果全局语义主成分特征向量和测试结果局部语义主成分特征向量的最佳匹配对的集合;将所述测试结果全局语义主成分特征向量和测试结果局部语义主成分特征向量的最佳匹配对的集合中的各个测试结果全局语义主成分特征向量和测试结果局部语义主成分特征向量的最佳匹配对输入语义细粒度门控联合模块以得到测试结果全局-测试结果局部语义主成分融合特征向量的集合;将所述测试结果全局-测试结果局部语义主成分融合特征向量的集合进行级联以得到所述测试结果多尺度稀疏融合表示向量。4. The single-turn magnetic encoder automated testing tool according to claim 3 is characterized in that the global semantic coding feature vector of the test result and the local semantic coding feature vector of the test result are input into a significant fusion network based on feature principal component query matching to obtain a multi-scale sparse fusion representation vector of the test result, including: standardizing the global semantic coding feature vector of the test result and the local semantic coding feature vector of the test result to obtain a standardized global semantic coding feature vector of the test result and a standardized local semantic coding feature vector of the test result; calculating the sample covariance matrix of the standardized global semantic coding feature vector of the test result and the standardized local semantic coding feature vector of the test result to obtain a global semantic sample covariance matrix of the test result and a local semantic sample covariance matrix of the test result; performing feature vector extraction based on matrix decomposition on the global semantic sample covariance matrix of the test result and the local semantic sample covariance matrix of the test result. Take to obtain a set of global semantic principal component feature vectors of the test results and a set of local semantic principal component feature vectors of the test results; input the set of global semantic principal component feature vectors of the test results and the set of local semantic principal component feature vectors of the test results into a maximum approximate query matching network to obtain a set of best matching pairs of global semantic principal component feature vectors of the test results and local semantic principal component feature vectors of the test results; input each best matching pair of global semantic principal component feature vectors of the test results and local semantic principal component feature vectors of the test results in the set of best matching pairs of global semantic principal component feature vectors of the test results and local semantic principal component feature vectors of the test results into a semantic fine-grained gated joint module to obtain a set of global semantic principal component fusion feature vectors of the test results-local semantic principal component fusion feature vectors of the test results; cascade the set of global semantic principal component fusion feature vectors of the test results-local semantic principal component fusion feature vectors of the test results to obtain a multi-scale sparse fusion representation vector of the test results. 5.根据权利要求4所述的单圈磁编码器自动化测试工装,其特征在于,对所述测试结果全局语义编码特征向量和所述测试结果局部语义编码特征向量进行标准化处理以得到标准化测试结果全局语义编码特征向量和标准化测试结果局部语义编码特征向量,包括:分别计算所述测试结果全局语义编码特征向量的均值和标准差以得到测试结果全局语义编码特征均值和测试结果全局语义编码特征标准差;将所述测试结果全局语义编码特征向量与所述测试结果全局语义编码特征均值进行按位置相减后,计算得到的测试结果全局语义偏移向量与所述测试结果全局语义编码特征标准差的按位置除法以得到所述标准化测试结果全局语义编码特征向量;分别计算所述测试结果局部语义编码特征向量的均值和标准差以得到测试结果局部语义编码特征均值和测试结果局部语义编码特征标准差;将所述测试结果局部语义编码特征向量与所述测试结果局部语义编码特征均值进行按位置相减后,计算得到的测试结果局部语义偏移向量与所述测试结果局部语义编码特征标准差的按位置除法以得到所述标准化测试结果局部语义编码特征向量。5. The single-turn magnetic encoder automated testing tool according to claim 4 is characterized in that the global semantic coding feature vector of the test result and the local semantic coding feature vector of the test result are standardized to obtain a standardized global semantic coding feature vector of the test result and a standardized local semantic coding feature vector of the test result, including: respectively calculating the mean and standard deviation of the global semantic coding feature vector of the test result to obtain a global semantic coding feature mean of the test result and a global semantic coding feature standard deviation of the test result; subtracting the global semantic coding feature vector of the test result from the global semantic coding feature mean of the test result by position, and calculating the obtained test result. The global semantic offset vector of the test result and the standard deviation of the global semantic coding feature of the test result are divided by position to obtain the standardized global semantic coding feature vector of the test result; the mean and standard deviation of the local semantic coding feature vector of the test result are calculated respectively to obtain the mean of the local semantic coding features of the test result and the standard deviation of the local semantic coding features of the test result; after subtracting the local semantic coding feature vector of the test result from the mean of the local semantic coding features of the test result by position, the calculated local semantic offset vector of the test result and the standard deviation of the local semantic coding features of the test result are divided by position to obtain the standardized local semantic coding feature vector of the test result. 6.根据权利要求5所述的单圈磁编码器自动化测试工装,其特征在于,计算所述标准化测试结果全局语义编码特征向量和所述标准化测试结果局部语义编码特征向量的样本协方差矩阵以得到测试结果全局语义样本协方差矩阵和测试结果局部语义样本协方差矩阵,包括:将所述标准化测试结果全局语义编码特征向量的转置向量与所述标准化测试结果全局语义编码特征向量进行相乘后,将得到的标准化测试结果全局语义关联矩阵与所述标准化测试结果全局语义编码特征向量的长度减一得到的数值进行按位置相除以得到所述测试结果全局语义样本协方差矩阵;将所述标准化测试结果局部语义编码特征向量的转置向量与所述标准化测试结果局部语义编码特征向量进行相乘后,将得到的标准化测试结果局部语义关联矩阵与所述标准化测试结果局部语义编码特征向量的长度减一得到的数值进行按位置相除以得到所述测试结果局部语义样本协方差矩阵。6. The single-turn magnetic encoder automated testing tool according to claim 5 is characterized in that the sample covariance matrix of the standardized test result global semantic coding feature vector and the standardized test result local semantic coding feature vector are calculated to obtain the test result global semantic sample covariance matrix and the test result local semantic sample covariance matrix, including: multiplying the transpose vector of the standardized test result global semantic coding feature vector with the standardized test result global semantic coding feature vector, and then dividing the obtained standardized test result global semantic association matrix by the value obtained by subtracting one from the length of the standardized test result global semantic coding feature vector by position to obtain the test result global semantic sample covariance matrix; multiplying the transpose vector of the standardized test result local semantic coding feature vector with the standardized test result local semantic coding feature vector, and then dividing the obtained standardized test result local semantic association matrix by the value obtained by subtracting one from the length of the standardized test result local semantic coding feature vector by position to obtain the test result local semantic sample covariance matrix. 7.根据权利要求6所述的单圈磁编码器自动化测试工装,其特征在于,将所述测试结果全局语义主成分特征向量的集合和所述测试结果局部语义主成分特征向量的集合输入最大近似查询匹配网络以得到测试结果全局语义主成分特征向量和测试结果局部语义主成分特征向量的最佳匹配对的集合,包括:提取所述测试结果全局语义主成分特征向量的集合中预定的测试结果全局语义主成分特征向量;计算所述预定的测试结果全局语义主成分特征向量与所述测试结果局部语义主成分特征向量的集合中每个测试结果局部语义主成分特征向量之间的余弦相似度以得到匹配查询相似度的集合;将所述匹配查询相似度的集合中最大的所述匹配查询相似度所对应的测试结果局部语义主成分特征向量与所述预定的测试结果全局语义主成分特征向量作为所述预定的测试结果全局语义主成分特征向量和所述测试结果局部语义主成分特征向量的最佳匹配对。7. The single-turn magnetic encoder automated testing tool according to claim 6 is characterized in that the set of the test result global semantic principal component feature vectors and the set of the test result local semantic principal component feature vectors are input into a maximum approximate query matching network to obtain a set of best matching pairs of the test result global semantic principal component feature vectors and the test result local semantic principal component feature vectors, including: extracting a predetermined test result global semantic principal component feature vector from the set of the test result global semantic principal component feature vectors; calculating the cosine similarity between the predetermined test result global semantic principal component feature vector and each test result local semantic principal component feature vector in the set of the test result local semantic principal component feature vectors to obtain a set of matching query similarities; and taking the test result local semantic principal component feature vector corresponding to the largest matching query similarity in the set of matching query similarities and the predetermined test result global semantic principal component feature vector as the best matching pair of the predetermined test result global semantic principal component feature vector and the test result local semantic principal component feature vector. 8.根据权利要求7所述的单圈磁编码器自动化测试工装,其特征在于,将所述测试结果全局语义主成分特征向量和测试结果局部语义主成分特征向量的最佳匹配对的集合中的各个测试结果全局语义主成分特征向量和测试结果局部语义主成分特征向量的最佳匹配对输入语义细粒度门控联合模块以得到测试结果全局-测试结果局部语义主成分融合特征向量的集合,包括:分别计算所述测试结果全局语义主成分特征向量和测试结果局部语义主成分特征向量的最佳匹配对之间的按位置差值、按位置点乘和按位置加法以得到测试结果全局-局部语义主成分差分向量、测试结果全局-局部语义主成分点乘向量和测试结果全局-局部语义主成分加和向量;将所述测试结果全局-局部语义主成分差分向量、所述测试结果全局-局部语义主成分点乘向量和所述测试结果全局-局部语义主成分加和向量进行级联后进行一维卷积编码以得到测试结果全局-局部语义主成分多维度融合向量;对所述测试结果全局-局部语义主成分多维度融合向量进行基于局部窗口的最大池化处理以得到所述测试结果全局-测试结果局部语义主成分融合特征向量。8. The single-turn magnetic encoder automated testing tool according to claim 7 is characterized in that each best matching pair of the global semantic principal component feature vector of the test result and the local semantic principal component feature vector of the test result in the set of the best matching pairs of the global semantic principal component feature vector of the test result and the local semantic principal component feature vector of the test result is input into the semantic fine-grained gated joint module to obtain a set of test result global-test result local semantic principal component fusion feature vectors, including: respectively calculating the position difference, position dot multiplication and position addition between the best matching pairs of the global semantic principal component feature vector of the test result and the local semantic principal component feature vector of the test result to obtain The test result global-local semantic principal component difference vector, the test result global-local semantic principal component dot product vector and the test result global-local semantic principal component sum vector are obtained; the test result global-local semantic principal component difference vector, the test result global-local semantic principal component dot product vector and the test result global-local semantic principal component sum vector are cascaded and then one-dimensional convolutional encoded to obtain a test result global-local semantic principal component multi-dimensional fusion vector; the test result global-local semantic principal component multi-dimensional fusion vector is subjected to local window-based maximum pooling processing to obtain the test result global-test result local semantic principal component fusion feature vector. 9.根据权利要求8所述的单圈磁编码器自动化测试工装,其特征在于,基于所述测试结果多尺度稀疏融合表示向量,得到所述测试结果,包括:将所述测试结果多尺度稀疏融合表示向量输入基于分类器的测试结果生成器以得到所述测试结果。9. The single-turn magnetic encoder automated testing tool according to claim 8 is characterized in that the test result is obtained based on the multi-scale sparse fusion representation vector of the test result, including: inputting the multi-scale sparse fusion representation vector of the test result into a classifier-based test result generator to obtain the test result.
CN202411307111.7A 2024-09-19 2024-09-19 Automatic test fixture for single-coil magnetic encoder Active CN118818273B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411307111.7A CN118818273B (en) 2024-09-19 2024-09-19 Automatic test fixture for single-coil magnetic encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411307111.7A CN118818273B (en) 2024-09-19 2024-09-19 Automatic test fixture for single-coil magnetic encoder

Publications (2)

Publication Number Publication Date
CN118818273A true CN118818273A (en) 2024-10-22
CN118818273B CN118818273B (en) 2024-11-26

Family

ID=93071074

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411307111.7A Active CN118818273B (en) 2024-09-19 2024-09-19 Automatic test fixture for single-coil magnetic encoder

Country Status (1)

Country Link
CN (1) CN118818273B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109323716A (en) * 2018-11-01 2019-02-12 上海开通数控有限公司 The serial absolute type encoder of servo drive system detects debugging apparatus
CN114623855A (en) * 2021-10-21 2022-06-14 杭州欣扬风电技术有限公司 Encoder testing method and servo turntable control system
CN116679192A (en) * 2023-06-29 2023-09-01 福建海睿达科技有限公司 Self-checking device and self-checking method for circuit board of magneto-electric encoder
US20240013558A1 (en) * 2022-07-07 2024-01-11 Beijing Baidu Netcom Science Technology Co., Ltd. Cross-modal feature extraction, retrieval, and model training method and apparatus, and medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109323716A (en) * 2018-11-01 2019-02-12 上海开通数控有限公司 The serial absolute type encoder of servo drive system detects debugging apparatus
CN114623855A (en) * 2021-10-21 2022-06-14 杭州欣扬风电技术有限公司 Encoder testing method and servo turntable control system
US20240013558A1 (en) * 2022-07-07 2024-01-11 Beijing Baidu Netcom Science Technology Co., Ltd. Cross-modal feature extraction, retrieval, and model training method and apparatus, and medium
CN116679192A (en) * 2023-06-29 2023-09-01 福建海睿达科技有限公司 Self-checking device and self-checking method for circuit board of magneto-electric encoder

Also Published As

Publication number Publication date
CN118818273B (en) 2024-11-26

Similar Documents

Publication Publication Date Title
WO2020073631A1 (en) 3d simulation data generation method and system, and computer storage medium and device
CN115905284A (en) A data processing method, device, equipment and storage medium
CN116559619A (en) Semiconductor device testing method and related device
CN118796702A (en) A method, device, equipment and medium for testing an application program
CN110542474A (en) Device vibration signal detection method, system, medium and device
CN110704635A (en) Method and device for converting triple data in knowledge graph
CN116629606A (en) An industrial chain early warning method, device, equipment and medium based on electric power data
CN115146394A (en) Decision control model simulation data generation method, device, device and storage medium
CN119670645B (en) Automatic circuit generation method and system based on FPGA
CN118818273A (en) Single-turn magnetic encoder automated test fixture
CN119226580B (en) Metal oxide semiconductor field effect transistor life prediction method based on multi-scale characteristics
CN112650477A (en) Project data batch transfer method and device and electronic equipment
CN120411477A (en) Model training method, industrial target detection method, device, equipment and storage medium
CN116187226B (en) Comparison method and comparison device for PDK engineering and electronic equipment
CN118482828A (en) A method, system, device and medium for wireless temperature measurement of transformer
CN118032160A (en) A method, system, electronic device and storage medium for wireless temperature measurement of transformer
CN116910478A (en) Lithium ion battery accident tracing method and system
CN111400644B (en) Calculation processing method for laboratory analysis sample
CN115062705A (en) Data verification method, data verification device, electronic equipment and storage medium
CN111898345A (en) Data processing method and device based on detailed design document
WO2022038812A1 (en) Information processing device
EP4492261A1 (en) Apparatus and method for aligning scientific instrument metadata to a semantic model
CN120238179B (en) Satellite mass production testing method, satellite mass production testing equipment and computer storage medium
CN117519796B (en) A method and apparatus for rewriting data engine instructions based on a large language model
CN121051097B (en) Method for constructing a process flow database based on superjunction MOSFET fabrication

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant