Method of testing a spectral device and related device

CN122835558APending Publication Date: 2026-09-29SHENZHEN HIVT TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611227553.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-13
Publication Date
2026-09-29

AI Technical Summary

Technical Problem

该操作方式在人工近距离操作极易引发灼伤、触电、起火等安全事故,严重影响人身安全性,且在测试过程中严重依赖测试人员的个人经验,导致测试效率低下

Benefits of technology

[0030]本申请实施例中,在测试工装与光谱设备关联后,测试上位机向光谱设备下发设备自动化测试指令,使得光谱设备利用该自动化测试指令,对本地硬件和软件模块执行自动化测试,从而在保证测试安全的前提下,提升了对光谱设备的测试效率。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122835558A_ABST
    Figure CN122835558A_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a kind of test method of spectral equipment and related equipment, for improving the test efficiency of spectral equipment.The method of embodiment of the present application includes: after spectral equipment is associated with test tooling, equipment automation test instruction is sent to spectral equipment, to make spectral equipment according to equipment automation test instruction, local hardware and software module of spectral equipment are tested automatically, wherein, local hardware includes at least one of single-chip microcomputer, image imaging lens, audio and video input and output module, storage module, communication interface and wireless communication module, and software module includes at least one of software version and algorithm model;After completing equipment automation test instruction, the automation test result sent by spectral equipment and test tooling is received.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of equipment testing technology, and in particular to a testing method and related equipment for a spectroscopic device. Background Technology

[0002] Currently, the functional verification and status monitoring of various modules of multispectral equipment mainly adopt manual sampling and manual operation.

[0003] Specifically, operators need to manually trigger the relevant functional modules of the equipment one by one, and determine whether the modules are working properly through visual observation or simple interactive feedback.

[0004] In particular, the spectral sensing module relies on manual on-site triggering of simulated sources for functional verification in scenarios such as smoke and temperature. This method of operation, involving close-range manual handling, is highly prone to causing safety accidents such as burns, electric shocks, and fires, seriously affecting personal safety. Furthermore, the testing process heavily depends on the personal experience of the testers, resulting in low testing efficiency. Summary of the Invention

[0005] This invention provides a testing method and related equipment for spectroscopic devices, which enables automated testing of spectroscopic devices to improve testing efficiency while ensuring testing safety.

[0006] The first aspect of this application provides a testing method for a spectroscopic device, including:

[0007] After the spectroscopic device is associated with the test fixture, an automated test instruction is sent to the spectroscopic device so that the spectroscopic device can perform automated testing on its local hardware and software modules according to the automated test instruction. The local hardware includes at least one of a microcontroller, an image imaging lens, an audio / video input / output module, a storage module, a communication interface, and a wireless communication module. The software module includes at least one of a software version and an algorithm model.

[0008] After completing the automated test instructions for the equipment, the automated test results sent by the spectral equipment and test fixtures are received.

[0009] As an optional embodiment, before sending the device automation test command to the spectrometer, the method further includes:

[0010] Obtain the identification code of the spectrometer;

[0011] Send the identification code to the manufacturing execution system server;

[0012] Receive process information associated with the identification code sent by the manufacturing execution system server;

[0013] If the current execution flow of the spectrometer is determined to be an automated testing flow based on the process information, then the step of sending an automated testing instruction to the spectrometer is triggered.

[0014] As an optional embodiment, the communication interface includes a level input interface and a level output interface. Before sending automated testing commands to the spectrometer, the method further includes:

[0015] Device association commands are sent to the test fixture and the spectrometer, respectively, so that the test fixture establishes an association with the spectrometer through the level input interface, or through the level output interface, or through the wireless communication interface in the wireless communication module.

[0016] As an optional embodiment, the method further includes, before performing the automated test:

[0017] After the spectral device completes the aging test on the first hardware and the algorithm model, it receives the aging test results sent by the spectral device. The first hardware includes at least one of the following: a white light lamp, an infrared lamp, a speaker, and a zoom lens of the spectral device.

[0018] As an optional embodiment, the aging test includes at least one of the following: performing a switching cycle aging test on the white light lamp, performing a lifespan aging test on the infrared lamp, performing an aging test on the speaker and power amplifier circuit, testing the electronic control function, mechanical motion function, optical imaging function and feedback signal of the zoom lens of the spectrometer, testing the image frame rate output by the spectrometer, and testing the loading status of the algorithm model in the spectrometer.

[0019] The aging test results include: white light lamp aging test results, infrared lamp aging test results, speaker and power amplifier circuit aging test results, zoom lens aging test results, and at least one of the following during the aging test: restart information of the spectral device, frame rate anomaly information of the spectral image, and algorithm model loading status information in the spectral device.

[0020] As an optional embodiment, after the aging test is completed, the method further includes:

[0021] Receive manual test results for the light source, sound playback device, and infrared filter switch in the spectral device.

[0022] A second aspect of this application provides a testing host computer for a spectrometer, the testing host computer being equipped with a manufacturing execution system (MAS) docking tool, and the testing host computer comprising at least:

[0023] The input interface is used to receive input commands.

[0024] Memory, used to store computer programs;

[0025] The processor is configured to, when executing a computer program stored in the memory, implement the testing method for the spectroscopic device provided in the first aspect of the embodiments of this application.

[0026] The third aspect of this application provides a testing system for a spectroscopic device, including a host computer for testing the spectroscopic device, a spectroscopic device, and testing fixtures as provided in the second aspect of this application.

[0027] A fourth aspect of this application provides a computer-readable storage medium having a computer program stored thereon, characterized in that, when the computer program is executed by a processor, it is used to implement the testing method for the spectroscopic device provided in the first aspect of this application.

[0028] The fifth aspect of this application provides a computer program product having a computer program stored thereon. When the computer program is executed by a processor, it is used to implement the testing method for the spectroscopic device provided in the first aspect of this application.

[0029] As can be seen from the above technical solutions, the embodiments of the present invention have the following advantages:

[0030] In this embodiment of the application, after the test fixture is associated with the spectrometer, the host computer sends an automated test command to the spectrometer, enabling the spectrometer to perform automated tests on its local hardware and software modules using the automated test command, thereby improving the testing efficiency of the spectrometer while ensuring test safety. Attached Figure Description

[0031] Figure 1 This is a schematic diagram of the architecture of a spectral device testing system according to an embodiment of this application;

[0032] Figure 2 This is a schematic diagram of one embodiment of the testing method for the spectrometer in this application.

[0033] Figure 3 This is a schematic diagram of another embodiment of the testing method for the spectrometer device in this application;

[0034] Figure 4 This is a schematic diagram of another embodiment of the testing method for the spectrometer device in this application;

[0035] Figure 5 This is a schematic diagram of an embodiment of the testing host computer for the spectral equipment in this application. Detailed Implementation

[0036] This invention provides a testing method and related equipment for spectroscopic devices, which enables automated testing of spectroscopic devices to improve testing efficiency while ensuring safety.

[0037] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0038] The terms "first," "second," "third," "fourth," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0039] This application provides a testing method for a spectroscopic device. The general principle of this method is as follows: When testing a spectroscopic device, a testing fixture is first associated with the spectroscopic device using an association command. After association, an automated testing command is sent to the spectroscopic device, enabling it to perform automated testing of its local hardware and software modules according to the command. The local hardware includes at least one of a microcontroller, an image imaging lens, an audio / video input / output module, a storage module, a communication interface, and a wireless communication module. The software modules include at least a software version and an algorithm model. After completing the automated testing command, the method receives the automated test results sent by the spectroscopic device and the testing fixture. Because this application can perform automated testing of the local hardware and software modules of the spectroscopic device using automated testing commands, it improves the testing efficiency of the spectroscopic device while ensuring testing safety.

[0040] To better implement the aforementioned testing methods for spectroscopic devices, this application provides a testing system for spectroscopic devices. Please refer to [link / reference needed]. Figure 1 , Figure 1 This is a schematic diagram of the architecture of a spectroscopic equipment testing system provided in an embodiment of this application. The spectroscopic equipment testing system may include at least one terminal device 101, a spectroscopic device 102, and a testing fixture 103. The terminal device 101 is equipped with a MES tool (i.e., a Manufacturing Execution System interface tool) for data communication between the MES tool and the MES server 104, as well as between the spectroscopic device 102 and the testing fixture 103. The terminal device 101 can be a smartphone, tablet, laptop, desktop computer, smart vehicle, etc. The MES server 104 serves as the core data storage and business processing center of the entire Manufacturing Execution System, storing the serial number (SN) and hardware configuration (board type, sensor, 4G configuration, etc.) of the spectroscopic device 102, and saving the production process and test records of each spectroscopic device 102, thereby achieving traceable management of the entire process data of the spectroscopic device 102.

[0041] The testing method for the spectroscopic device in this embodiment is executed by the terminal device 101. When the terminal device 101 executes the testing method on the spectroscopic device 102, it first performs an association operation between the spectroscopic device 102 and the test fixture 103. After the spectroscopic device 102 is successfully associated with the test fixture 103, it sends an automated testing instruction to the spectroscopic device 102, so that the spectroscopic device 102 performs automated testing on its local hardware and software modules according to the automated testing instruction. The local hardware of the spectroscopic device 102 includes at least one of a microcontroller, an image imaging lens, an audio / video input / output module, a storage module, a communication interface, and a wireless communication module. The software module of the spectroscopic device 102 includes at least a software version and an algorithm model. After completing the automated testing instruction, it receives the automated testing results sent by the spectroscopic device 102 and the test fixture 103, thereby improving the testing efficiency of the spectroscopic device 102 while ensuring testing safety.

[0042] For ease of understanding, the testing methods for the spectroscopic devices in the embodiments of this application are described below. Please refer to [link / reference]. Figure 2 One embodiment of the testing method for the spectroscopic device in this application includes:

[0043] 201. After the spectrometer is associated with the test fixture, an automated test command is sent to the spectrometer so that the spectrometer can perform automated testing on its local hardware and software modules according to the automated test command. The local hardware includes at least one of a microcontroller, an image imaging lens, an audio / video input / output module, a storage module, a communication interface, and a wireless communication module. The software module includes at least one of a software version and an algorithm model.

[0044] In actual testing scenarios, the host computer for testing spectrometers typically communicates with the test fixture and the spectrometer through a communication interface. For example, the host computer can communicate with the test fixture via a USB interface, while the host computer communicates with the spectrometer through a data interface. After the spectrometer and the test fixture are associated, the host computer sends automated testing commands to the spectrometer through the data interface. Upon receiving the automated testing commands, the spectrometer immediately performs automated testing on its local hardware and software modules. The local hardware includes at least one of a microcontroller, an image imaging lens, an audio / video input / output module, a storage module, a communication interface, and a wireless communication module. The software modules include at least one of a software version and an algorithm model.

[0045] Specifically, when performing automated testing on a microcontroller, the testing is automated according to the type of microcontroller. For example, when the microcontroller is a UVMCU, the device automatically triggers a UV sensing test event to verify whether the UV microcontroller can accurately identify the UV trigger signal, normally capture the UV event, and synchronously and accurately record the UV pulse intensity data. This verifies that the UV microcontroller's acquisition, identification, and data reporting functions are normal, and there are no problems such as identification failure, missing data, or abnormal parameters.

[0046] When performing automated testing on image imaging lenses, tests can be conducted on image sensor arrays, variable zoom lenses, infrared lamps, and white light lamps. For example, when testing an image sensor array, a multi-sensor image acquisition task is initiated, sequentially testing the image acquisition function of each sensor to verify that each image can be previewed normally without black screen or screen distortion issues. Simultaneously, the real-time output image frame rate is monitored to ensure it remains stable within a preset normal range, without frequent frame drops or abnormal frame rate fluctuations. For variable zoom lenses, the lens is controlled to switch between different focal lengths, acquiring images at each focal length to test image sharpness and focus accuracy, and verifying image quality compliance by matching lens model parameters. For infrared and white light lamps, the spectral equipment automatically performs light source control tests, completing the on / off control tests of the infrared and white light lamps, verifying sensitive switching response without lag or failure, and supporting multi-level brightness adjustment control, verifying stable output at different brightness levels and normal brightness adjustment function.

[0047] When performing automated testing on the audio input / output module, the device starts audio acquisition and playback testing, tests the real-time audio intercom function, verifies whether the audio input acquisition is clear and free of noise or interruptions, whether the audio playback output is normal, and whether the intercom interaction is smooth.

[0048] When performing automated testing on the storage module, the system automatically identifies the number of TF cards and storage capacity connected to the spectral device, and performs multiple data read and write tests to detect the TF card read and write speed, data transmission integrity, and verify that the storage peripheral is stable and has no read / write failures, data loss, or abnormal capacity recognition.

[0049] Specifically, the communication interfaces in this application include a level input interface, a level output interface, and a differential serial communication interface. When testing the level input and level output interfaces, one or two preset alarm signals are automatically collected to verify the accuracy of alarm signal collection, the stability of signal transmission, and whether alarm status can be correctly identified and reported, as well as whether there are any issues such as missed signal collection, false alarms, or no alarms. For the differential serial communication interface, a serial communication link is established between the test fixture and the device, and a bidirectional data transmission and reception test is performed to verify that serial port paths of different models and quantities are normal, data transmission and reception are accurate, and there are no packet loss, garbled characters, or communication timeouts, ensuring the compliance of the serial peripheral communication function.

[0050] When performing automated testing on wireless communication modules, the 4G, WiFi, and Bluetooth modules in the spectrometer can be tested separately. Specifically, the 4G module test involves automatically performing a 4G dial-up connection, detecting the 4G signal strength, and verifying whether the 4G module can successfully dial up and stably connect to the external network, and checking for network failures or interruptions. For the WiFi module, the test involves verifying whether the WiFi can be properly configured for network access, whether the connection is stable, and whether it can access the external network. For the Bluetooth module, the spectrometer initiates Bluetooth pairing and connection tests, verifies whether Bluetooth can quickly pair with the test fixture, whether the connection is stable, whether point-to-point data transmission is normal, and checks for connection failures or abnormal data transmission / reception.

[0051] In addition, when the spectrometer is equipped with a thermal imaging module, during the automated testing process, it will also identify whether the blackbody temperature detected by the blackbody testing device meets the expectations. When the spectrometer is equipped with a UV module, it will also use an arc pen to trigger a UV event to detect whether the UV module is normal.

[0052] Furthermore, when testing the software version of the spectrometer, the spectrometer automatically reads the locally stored software version number, compilation information, and firmware checksum, and compares them with the standard benchmark version to verify whether the device firmware is a compliant version and whether there are any issues such as version inconsistencies, missing firmware, or abnormal upgrades.

[0053] When testing the algorithm model of the spectral device, the spectral device is triggered to load the local spectral analysis algorithm model and image recognition algorithm model. The integrity of the model file, the success rate of loading, the loading time, and the model initialization status are verified to determine whether the algorithm module can start normally, whether there are loading failures, abnormal parameters, missing models, or other faults.

[0054] 202. After completing the automated testing instructions for the equipment, receive the automated test results sent by the test fixture and spectral equipment.

[0055] After the spectrometer completes all local hardware self-tests and software module verifications, the spectrometer actively summarizes the individual test data, status data, anomaly logs, and performance parameters of each module to generate the original test results on the device side; at the same time, the test fixture synchronously collects communication data and linkage status data during the test process to generate the test fixture monitoring results.

[0056] After the spectral equipment and testing fixtures generate automated test results, these results are reported to the host computer.

[0057] In this embodiment of the application, after the test fixture is associated with the spectrometer, the host computer sends an automated test command to the spectrometer, enabling the spectrometer to perform automated tests on its local hardware and software modules using the automated test command, thereby improving the testing efficiency of the spectrometer while ensuring test safety.

[0058] Furthermore, this application can also synchronously upload the original test sampling data and test results to the MES server for archiving in real time, thereby achieving the traceability of test data.

[0059] based on Figure 2 In the aforementioned embodiments, because the production line equipment connected to the manufacturing execution system has multiple processes (such as assembly, aging test, communication test, optical test, and clearance calibration), the same spectral equipment cannot skip processes (to prevent process errors) or repeat tests. Therefore, in this embodiment, the following steps can be performed before step 201. Please refer to [link to relevant documentation]. Figure 3 , Figure 3 This is another embodiment of the testing method for the spectroscopic device in the embodiments of this application:

[0060] 301. Obtain the identification code of the spectrometer;

[0061] After the spectrometer and the test fixture are associated, the MES tool installed in the host computer actively reads the unique serial number (SN) of the device stored in the firmware of the spectrometer through the differential serial communication interface (such as RS485 interface) or Bluetooth wireless channel of the test fixture.

[0062] As an alternative implementation, the testing host computer can also scan the QR code or barcode of the equipment's spectral device using a barcode scanner at the workstation to obtain the hardware serial number as an identification code.

[0063] 302. Send the identification code to the Manufacturing Execution System server;

[0064] After the host computer establishes a network TCP / IP communication link with the Manufacturing Execution System (MES) server, it sends a query request message containing the device's serial number (SN) identifier to the MES server. This message includes at least the current workstation number and the test fixture hardware number, and simultaneously reports the environmental information of the current test workstation in order to request the query of related data such as the production work order, process flow, and hardware configuration standards corresponding to the spectral equipment.

[0065] 303. Receive process information associated with the identification code sent by the Manufacturing Execution System server;

[0066] After receiving a query request containing the identifier, the Manufacturing Execution System (MES) server uses the identifier as an index to retrieve the backend database, retrieves the complete process information bound to the identifier (including the current process node of the equipment, the allowed test items, and the hardware configuration of the spectral equipment), packages it, and pushes it to the test host computer via the network downlink; the test host computer continuously listens to the message channel sent by the MES server, and receives and parses the process information in real time.

[0067] 304. If the current execution flow of the spectrometer is determined to be the automated testing flow of the device based on the process information, then the step of sending the automated testing command to the spectrometer is triggered.

[0068] The host computer parses the process fields in the process information associated with the identifier code, compares the field markers to determine the current process to be executed. If the current process is an automated testing process, it sends an automated testing instruction to the spectral equipment through the data interface. If the current process is another process such as aging, optical inspection, or clearance, it terminates the current automated testing instruction, displays a pop-up message indicating a process mismatch, records an exception log, uploads it to the manufacturing execution system server, and waits for the process to be transferred to the corresponding process before execution.

[0069] In this embodiment of the application, the automated testing instruction is triggered only when the current execution process is determined to be an automated testing process based on the process information associated with the identification code. That is, this embodiment of the application can prevent cross-process unauthorized testing through the mandatory verification of the process, and ensure the standardization and orderly flow of the production line process.

[0070] based on Figure 2 In the embodiments described above, the spectroscopic equipment and the testing fixture can be associated in different ways. The association operation between the spectroscopic equipment and the testing fixture is described below:

[0071] Send device association commands to the test fixture and the spectrometer respectively, so that the test fixture can establish an association with the spectrometer through the level input interface, the level output interface, or the wireless communication interface.

[0072] It's easy to understand that the test fixture needs to be associated with the spectroscopic equipment in order to complete the test instructions from the test fixture to the spectroscopic equipment. Specifically, when the test fixture associates with the spectroscopic equipment, it can be as follows:

[0073] The host computer sends device association commands to the test fixture and the spectrometer. Upon receiving the association command, the test fixture prioritizes switching its internal control relay matrix to the IO loop corresponding to the level input interface or level output interface of the spectrometer. The test fixture actively outputs a specified standard high-level excitation signal to the alarm input pin or output pin of the spectrometer. The test fixture's own IO detection circuit continuously collects the level feedback from the input pin or level output pin of the spectrometer. If the test fixture detects that the corresponding pin is synchronously pulled high to a preset level value, it determines that the hardware loop is conducting and the signal interaction is normal. The test fixture then generates a wired binding success flag, indicating that the test fixture and the spectrometer have completed the association pairing through the level input interface or the level output interface. The test fixture sends the binding success status and the current binding mode (level input interface or level output interface) back to the host computer in real time.

[0074] If the test fixture detects that the hardware circuit is not conducting, or that the spectrometer does not have a level input interface and a level output interface, it will activate the wireless module (such as a Bluetooth module) to enter the broadcast pairing mode. If the test fixture scans the wireless broadcast signals of spectrometers in the surrounding area, it will match the target spectrometer according to the device's SN identifier. The test fixture and the target spectrometer will complete the wireless signal handshake and key verification to establish a stable wireless data channel. After all handshake verifications are successful, the test fixture will generate a wireless binding success identifier and upload the wireless binding success status and wireless communication parameters to the test host computer in real time.

[0075] In this embodiment, the test fixture can establish a connection with the spectral device through a level input interface, a level output interface, or a wireless communication interface. The connection is preferably established through the level input interface or the level output interface. This method of relying on physical wiring harnesses for direct electrical connection is faster and more stable than wireless communication.

[0076] based on Figure 2 In the embodiments described above, before or after automated testing of the spectroscopic device using a testing host computer, the spectroscopic device in this application embodiment can also perform aging tests on its own first hardware and perform manual tests on some hardware. Please refer to [link to relevant documentation]. Figure 4 :

[0077] 401. After the spectral device completes the aging test on the first hardware and the algorithm model, the aging test result sent by the spectral device is received. The first hardware includes at least one of the following: white light lamp, infrared lamp, speaker and zoom lens of the spectral device.

[0078] In this embodiment, the spectral device has a built-in local dedicated aging test program, which can perform a special aging test on a preset first hardware, wherein the first hardware specifically includes at least one hardware device among a white light lamp, an infrared lamp, a speaker and its matching power amplifier circuit, and a zoom lens.

[0079] The spectral equipment invokes its locally integrated aging test program to initiate single or multiple combined aging test tasks as needed. The specific aging test execution process is as follows: Continuous switching cycle aging test is performed on the white light lamp, assessing the stability of the white light lamp's switching response and the fatigue resistance of the components through high-frequency on / off switching; long-term power-on lifespan aging test is performed on the infrared lamp, continuously monitoring the attenuation law of the infrared lamp's radiation performance, its operational stability, and its service life; continuous sound emission aging test is performed on the speaker and power amplifier circuit, continuously driving the power amplifier circuit to work and playing standard test audio from the speaker, assessing the circuit's operational stability and the attenuation of the speaker's sound performance; a full-dimensional aging test is conducted on the zoom lens, cyclically triggering the lens's electronically controlled zoom and focus actions, repeatedly performing mechanical extension and retraction movements, continuously verifying the lens's electronic control functions, the smoothness of mechanical movement, and the clarity and uniformity of optical imaging, while simultaneously acquiring lens position feedback and status feedback signals in real time to verify the accuracy and stability of the feedback signals.

[0080] Throughout the entire aging test, the frame rate of the output image of the spectral device is monitored in real time to check for any abnormal issues such as dropped frames, frame rate fluctuations, or screen stuttering. At the same time, the local loading status of the device's built-in spectral algorithm and image recognition algorithm model is continuously verified by repeatedly triggering the model loading and initialization process to check the model loading success rate, integrity, and operational stability.

[0081] After completing the entire aging test process, the spectral equipment automatically integrates the test data from the entire process to generate complete aging test results. These results include multi-dimensional core data: the functional status and loss parameters of the white light lamp switch after cyclic aging; the performance degradation data and operating status of the infrared lamp after lifespan aging; the aging test results of the speaker and power amplifier circuit, including speaker sound quality, sound pressure attenuation, and operational stability; the aging performance data of the zoom lens's electronic control, mechanical, optical, and feedback signals; and simultaneously, the equipment operation anomaly data throughout the aging test, including restart information such as unexpected restart records, restart frequency, and restart conditions; frame rate anomaly information such as image frame rate fluctuations, dropped frames, and frame rate exceeding limits; and at least one of the following model loading status information: algorithm model loading failure, loading timeout, model initialization anomaly, and missing parameters.

[0082] Finally, the spectral equipment will report the integrated and complete aging test results to the host computer, which will analyze and summarize the results to generate a whole machine aging test report, thus completing the entire automated hardware aging test process.

[0083] 402. Receive the results of manual tests on the light source, sound playback device and infrared filter switch in the spectral equipment.

[0084] After performing aging tests on the light source and speaker of the spectrometer, if the working status of the light source and speaker cannot be correctly identified, this application embodiment can also perform manual tests on the light source and speaker in the spectrometer to test whether the working status of the light source and speaker is normal, that is, to test whether the light source (such as a white light) can emit light normally and whether the speaker can play sound normally. Furthermore, a functional test can be performed on the infrared filter switcher (IRCUT) in the spectrometer to determine whether the infrared filter switcher can move the filter to a preset position.

[0085] After completing manual testing of the light source, sound playback device, and infrared filter in the spectral equipment, the system receives the results of manual testing of the light source, sound playback device, and infrared filter switcher.

[0086] In this embodiment, in addition to performing automated testing on the local hardware and software modules of the spectrometer, an aging test is further performed on the first hardware of the spectrometer. This is because the aging test requires repeatedly triggering various hardware actions to replicate the long-term operating scenario at the customer's site, thereby ensuring the stability and reliability of the spectrometer in the field.

[0087] Furthermore, when automated testing of the light source, speaker, and infrared filter switcher of the spectrometer cannot be achieved, the embodiments of this application can also perform manual testing on the light source, speaker, and infrared filter switcher of the spectrometer, thereby achieving complete testing of each hardware device in the spectrometer.

[0088] It is understood that, in various embodiments of the present invention, the order of the steps does not imply the order of execution. The execution order of each step should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0089] The testing method for the spectroscopic equipment in the embodiments of this application has been described in detail above. The testing host computer for the spectroscopic equipment in the embodiments of this application will be described below. Please refer to [link / reference]. Figure 5 In this embodiment of the application, the testing host computer of the spectral device is equipped with a manufacturing execution system docking tool (i.e., MES tool), and the testing host computer of the spectral device includes at least an input interface 501, a memory 502 and a processor 503, and an output interface 504. The processor 503 is used to implement the various steps in the above method embodiment when executing the computer program stored in the memory 502.

[0090] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the processor 503 can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0091] The computer device in the embodiments of the present invention will now be described from the perspective of hardware processing:

[0092] One embodiment of the computer device in this invention includes:

[0093] Processor and memory;

[0094] The memory is used to store computer programs, and when the processor executes the computer programs stored in the memory, it can implement the various steps in the above method embodiments.

[0095] It is understood that when the processor in the computer device described above executes the computer program, it can also realize the functions of each unit in the corresponding device embodiments described above, which will not be repeated here. For example, the computer program can be divided into one or more modules / units, which are stored in the memory and executed by the processor to complete the present invention. The one or more modules / units can be a series of computer program instruction segments capable of performing specific functions, which describe the execution process of the computer program in the test host computer of the spectroscopic device. For example, the computer program can be divided into units in the test host computer of the spectroscopic device described above, and each unit can realize the specific functions described in the test host computer of the corresponding spectroscopic device.

[0096] The computer device may be a desktop computer, laptop, handheld computer, or cloud server, etc. The computer device may include, but is not limited to, a processor and memory. Those skilled in the art will understand that the processor and memory are merely examples of a computer device and do not constitute a limitation on the computer device. It may include more or fewer components, or a combination of certain components, or different components. For example, the computer device may also include input / output devices, network access devices, buses, etc.

[0097] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor. The processor is the control center of the computer device, connecting various parts of the computer device via various interfaces and lines.

[0098] The memory can be used to store the computer programs and / or modules. The processor implements various functions of the computer device by running or executing the computer programs and / or modules stored in the memory and by calling data stored in the memory. The memory may mainly include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function, etc.; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, RAM, plug-in hard disk, smart media card (SMC), secure digital card (SD card), flash card, at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0099] The present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the processor can be used to perform the various steps in the above method embodiments.

[0100] It is understood that if the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a corresponding computer-readable storage medium. Based on this understanding, all or part of the processes in the above-described embodiments of the present invention can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the above-described method embodiments. The computer program includes computer program code, which can be in the form of source code, object code, executable file, or some intermediate form. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording media, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium can be appropriately added or removed according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electrical carrier signals and telecommunication signals.

[0101] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between apparatuses or units through some interfaces, and may be electrical, mechanical, or other forms.

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

[0103] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0104] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A testing method for a spectroscopic device, characterized in that, The method, applied to a host computer for testing, wherein the host computer for testing is equipped with a manufacturing execution system (MES) interface tool, includes: After the spectroscopic device is associated with the test fixture, an automated test instruction is sent to the spectroscopic device so that the spectroscopic device can perform automated testing on its local hardware and software modules according to the automated test instruction. The local hardware includes at least one of a microcontroller, an image imaging lens, an audio / video input / output module, a storage module, a communication interface, and a wireless communication module. The software module includes at least one of a software version and an algorithm model. After completing the automated test instruction for the device, the automated test results sent by the spectral device and the test fixture are received.

2. The method according to claim 1, characterized in that, Before sending automated testing instructions to the spectrometer, the method further includes: Obtain the identification code of the spectrometer; Send the identification code to the manufacturing execution system server; Receive process information associated with the identification code sent by the manufacturing execution system server; If the current execution flow of the spectrometer is determined to be the automated testing flow of the device based on the process information, then the step of sending the automated testing instruction to the spectrometer is triggered.

3. The method according to claim 1, characterized in that, The communication interface includes a level input interface and a level output interface. Before sending automated test commands to the spectrometer, the method further includes: Device association commands are sent to the test fixture and the spectrometer, respectively, so that the test fixture establishes an association with the spectrometer through the level input interface, or through the level output interface, or through the wireless communication interface in the wireless communication module.

4. The method according to claim 1, characterized in that, Before performing the automated test, the method further includes: After the spectral device completes the aging test on the first hardware and the algorithm model, it receives the aging test results sent by the spectral device. The first hardware includes at least one of the following: a white light lamp, an infrared lamp, a speaker, and a zoom lens of the spectral device.

5. The method according to claim 4, characterized in that, The aging test includes at least one of the following: a switching cycle aging test on the white light lamp, a lifespan aging test on the infrared lamp, an aging test on the speaker and power amplifier circuit, a test on the electronic control function, mechanical motion function, optical imaging function and feedback signal of the zoom lens of the spectrometer, a test on the frame rate of the image output by the spectrometer, and a test on the loading status of the algorithm model in the spectrometer. The aging test results include: white light lamp aging test results, infrared lamp aging test results, speaker and power amplifier circuit aging test results, zoom lens aging test results, and at least one of the following during the aging test: restart information of the spectral device, frame rate anomaly information of the spectral image, and algorithm model loading status information in the spectral device.

6. The method according to claim 4, characterized in that, After the aging test is completed, the method further includes: Receive manual test results for the light source, sound playback device, and infrared filter switch in the spectral device.

7. A host computer for testing a spectrometer, characterized in that, The testing host computer is equipped with a manufacturing execution system (MAS) interface tool, and the testing host computer includes at least: Input interface, used to receive input instructions; Memory, used to store computer programs; A processor, configured to implement, when executing a computer program stored in the memory, a method for testing a spectroscopic device as described in any one of claims 1 to 6.

8. A testing system for a spectroscopic device, characterized in that, It includes the host computer for testing the spectrometer, the spectrometer, and the testing fixture as described in claim 7.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it is used to implement the testing method for the spectroscopic device as described in any one of claims 1 to 6.

10. A computer program product having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it is used to implement the testing method for the spectroscopic device as described in any one of claims 1 to 6.