Python-based system for automatically uploading IGBT (Insulated Gate Bipolar Translator) test data to server and use method of Python-based system

By designing a system that automatically uploads IGBT test data based on Python, the traditional manual operation is solved, and the efficient, accurate and timely automatic upload and sharing of test data is achieved.

CN120238430APending Publication Date: 2025-07-01ZHEJIANG GULAN ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510378722.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-28
Publication Date
2025-07-01

AI Technical Summary

Technical Problem

During the IGBT production and testing process, traditional data upload methods rely on manual operations, resulting in low efficiency, error-prone and untimely data sharing.

Method used

Design a system for automatic uploading server for IGBT test data based on Python. Through the combination of data acquisition module, data backup module, data upload module, log and monitoring module and power module, the automatic collection, backup and upload of test data is realized.

Benefits of technology

It realizes efficient and accurate upload of test data, improves the automation level of data processing, reduces manual operation errors, and ensures timely sharing and security of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120238430A_ABST
    Figure CN120238430A_ABST
Patent Text Reader

Abstract

The invention relates to a Python-based system for automatically uploading IGBT test data to a server and a use method, the system is connected with an IGBT test equipment line, is used for collecting and uploading IGBT test data, and is composed of a data collection module, a data backup module, a data uploading module, a log and monitoring module and a power supply module. The data acquisition module and the data backup module are connected with each other through lines, the data acquisition module is used for acquiring test data from IGBT test equipment at regular time, the data backup module is used for copying local data, and the data uploading module adopts a Python script to automatically upload the processed data to a server. The log and monitoring module is used for recording an operation log of a test file and providing real-time monitoring and abnormity alarm functions, and the power supply module is used for supplying power to the whole system to ensure normal operation. According to the invention, automatic uploading and sharing of test data can be realized, manual operation is reduced, and efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of semiconductor testing, and relates to a system and a usage method of an IGBT (Insulated Gate Bipolar Transistor) test data automatic upload server based on Python. Background Art

[0002] During the production and testing of IGBTs, a large amount of test data will be generated, and this data needs to be uploaded and shared in a timely manner to relevant departments for analysis and processing. Traditional data upload methods usually rely on manual operations, and there are problems such as low efficiency, easy errors, and untimely data sharing.

[0003] Therefore, a system and a usage method of an IGBT test data automatic upload server based on Python are designed to overcome the above problems. Summary of the Invention

[0004] The purpose of the present invention is to overcome the deficiencies existing in the prior art, and to provide a system and a usage method of an IGBT test data automatic upload server based on Python. Through an automated script, the efficient and accurate upload of test data is realized, the automation level of data processing is improved without replacing equipment or upgrading test software, the problems of low efficiency and easy errors in traditional manual operations are solved, and it has a wide application prospect.

[0005] The present invention is realized by the following technical solutions: A system of an IGBT test data automatic upload server based on Python, the system is connected to the IGBT test equipment by a circuit, and is used for collecting and uploading IGBT test data. The system is composed of a data collection module, a data backup module, a data upload module, a log and monitoring module, and a power supply module, which are connected to each other by a circuit. Among them, the data collection module is used to regularly collect test data from the IGBT test equipment, the data backup module is used to copy local data, the data upload module uses a Python script to automatically upload the processed data to the server, the log and monitoring module is used to record the operation logs of test files and provide real-time monitoring and exception alarm functions, and the power supply module is used to supply power to the whole system to ensure normal operation.

[0006] A usage method of the system of the IGBT test data automatic upload server based on Python according to claim 1, the usage method includes the following steps: 1) Turn on the power supply module, run the system, complete the reading of the preset configuration file and the enabling of the log monitoring module, generate a log file, and start a scheduled task; 2) After the scheduled task starts, the data collection module in the system obtains the time stamp of the creation time period according to the current time and the configuration file settings for comparison, and regularly collects test data; 3) The data backup module in the system records the operation logs of test file copying, renaming, and uploading, and provides real-time monitoring and exception alarm functions; 4) The data upload module in the system uses Python scripts to automatically upload the processed data to the server, upload the backup file to the server and then delete the backup to ensure the security of the original data.

[0007] Preferably: The operation of the data acquisition module in step 2) is specifically as follows: a) When the scheduled task starts, according to the current time and the configuration file settings, obtain the time stamp T1 of the creation time period. The start time is the current time minus the specified number of hours to copy the files within the current time and convert it into a time stamp, and the end time is the current execution time and convert it into a time stamp for subsequent comparison; b) Determine whether the specified parent folder and backup folder exist. If they do not exist, create the folders; c) Traverse the parent folder to obtain the list L1 of all file information with the specified format; d) Traverse the file information list L1 and store it in the file reading thread; e) The file reading thread parses the file name suffix, retrieves the corresponding copy folder path according to the correspondence in the configuration file. If the file creation time is within the range of T1, update the copy dictionary D1, where the file path is the corresponding copy folder path.

[0008] Preferably: The operation of the data backup module in step 3) is specifically as follows: a) Traverse the copy dictionary D1 and store it in the file copying thread; b) The file copying thread copies the file to the corresponding copy folder, parses and renames it according to the configuration file to add the test machine number information, and updates the monitoring log.

[0009] Preferably: The operation of the data upload module in step 4) is specifically as follows: a) Check whether the device network is connected. If not, update the error monitoring log; b) Check whether the server directory exists. If it does not exist, update the error monitoring log; c) Traverse all files in the backup folder, which contains all copy folders, to obtain the upload file list L2; d) Check the shared folder permissions. If there are no permissions, update the error monitoring log; e) Traverse the list L2 and store it in the file upload thread; f) The file upload thread copies the file to the corresponding folder on the server and updates the monitoring log. After the upload is completed, delete the backup file.

[0010] Preferably, the data acquisition module supports CSV and dtl data formats.

[0011] Compared with the prior art, the beneficial effects of the present invention are as follows: 1) High efficiency: Automatically upload and share test data, reduce manual operations, and improve efficiency; 2) Accuracy: Avoid human errors through automated scripts to ensure data accuracy; 3) Real-time performance: Support real-time data synchronization to ensure that relevant departments can obtain the latest data in a timely manner; 4) Security: Provide permission management and logging to ensure data security; 5) Economy: There is no need to replace test equipment or update test software, saving the cost of equipment upgrade and replacement and being compatible with the new information management system. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 It is a schematic structural diagram of the system in the present invention.

[0013] Figure 2 It is a working flow chart of the whole of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0014] In order to make those of ordinary skill in the art more clearly understand the purpose, technical solution and advantages of the present invention, the present invention will be further described below with reference to the accompanying drawings and embodiments.

[0015] In the description of the present invention, it should be understood that the orientation or positional relationship indicated by terms such as "upper", "lower", "left", "right", "inner", "outer", "horizontal", "vertical", etc. is based on the orientation or positional relationship shown in the accompanying drawings, and is only for the convenience of describing the present invention, rather than indicating or implying that the device or component referred to must have a specific orientation. Therefore, it should not be construed as a limitation to the present invention.

[0016] The present invention will be described in detail below with reference to the accompanying drawings: As Figure 1-2As shown in the figure, a system of an IGBT test data automatic upload server based on Python. The system is connected to the IGBT test device through a circuit, and is used to collect and upload IGBT test data. The system consists of a data acquisition module 1, a data backup module 2, a data upload module 3, a log and monitoring module 4, and a power supply module 5, which are interconnected through circuits. Among them, the data acquisition module 1 is used to regularly collect test data from the IGBT test device, the data backup module 2 is used to copy local data, the data upload module 3 uses a Python script to automatically upload the processed data to the server, the log and monitoring module 4 is used to record the operation logs of test files and provide real-time monitoring and exception alarm functions, and the power supply module 5 is used to supply power to the whole system to ensure normal operation.

[0017] A method of using the system of an IGBT test data automatic upload server based on Python according to claim 1, the method comprising the following steps: 1) Turn on the power supply module, run the system, complete the reading of the preset configuration file and the enabling of the log monitoring module, generate a log file, and start a scheduled task; The system can set a start button to run by clicking the start button; 2) After the scheduled task starts, the data acquisition module 1 in the system obtains the time stamp of the created time period according to the current time and the configuration file settings for comparison, and regularly collects test data; 3) The data backup module 2 in the system records the operation logs of test file copying, renaming, and uploading, and provides real-time monitoring and exception alarm functions; 4) The data upload module 3 in the system uses a Python script to automatically upload the processed data to the server, uploads the server after backing up the file and deletes the backup to ensure the security of the original data.

[0018] The specific operation of the data acquisition module 1 in step 2) is as follows: a) When the scheduled task starts, according to the current time and the configuration file settings, obtain the time stamp T1 of the created time period. The start time is the current time - set to specify copying files within the previous few hours from the current time and convert it to a time stamp, and the end time is the current execution time and convert it to a time stamp for subsequent comparison; b) Judge whether the specified parent folder and backup folder exist. If not, create the folders; c) Traverse the parent folder to obtain a list L1 of all file information in the specified format; d) Traverse the file information list L1 and store it in the file reading thread; e) A file reading thread parses the suffix of the file name, retrieves the corresponding copy folder path according to the correspondence in the configuration file. If the file creation time is within the range of T1, update the copy dictionary D1, where the file path is the corresponding copy folder path.

[0019] The specific operation of the data backup module 2 in step 3) is as follows: a) Traverse the copy dictionary D1 and store it in the file copying thread; b) The file copying thread copies the file to the corresponding copy folder, parses and renames it according to the configuration file to add the test machine number information, and updates the monitoring log.

[0020] The specific operation of the data upload module 3 in step 4) is as follows: a) Check whether the device network is connected. If not, update the monitoring log with an error message; b) Check whether the server directory exists. If not, update the monitoring log with an error message; c) Traverse all files in the backup folder, which contains all copy folders, to obtain the upload file list L2; d) Check the shared folder permissions. If there are no permissions, update the monitoring log with an error message; e) Traverse the list L2 and store it in the file upload thread; f) The file upload thread copies the file to the corresponding folder on the server, updates the monitoring log, and deletes the backup file after the upload is completed. The data acquisition module 1 supports data formats such as CSV and dtl.

[0021] The system and method for automatically uploading IGBT test data to a server based on Python designed by the present invention can realize the automatic upload and sharing of test data, reduce manual operations, improve efficiency, avoid human errors through automated scripts, ensure data accuracy, support real-time data synchronization, ensure that relevant departments can obtain the latest data in a timely manner, provide permission management and log records to ensure data security, and do not require replacing test equipment or updating test software, saving the cost of equipment upgrade and replacement and being compatible with the new information management system.

[0022] The specific embodiments described herein are merely illustrative of the principles and effects of the present invention and are not intended to limit the present invention. Any person familiar with this technology can modify or change the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or changes made by those with ordinary knowledge in the technical field without departing from the spirit and technical ideas disclosed by the present invention should still be covered by the claims of the present invention.

Claims

1. A Python-based system for automatically uploading IGBT test data to a server, the system is connected to an IGBT test equipment line and is used to collect and upload IGBT test data, characterized in that: The system comprises a data acquisition module (1), a data backup module (2), a data upload module (3), a log and monitoring module (4) and a power supply module (5), which are interconnected via lines, wherein the data acquisition module (1) is used to regularly collect test data from an IGBT test device, the data backup module (2) is used to copy local data, the data upload module (3) uses a Python script to automatically upload processed data to a server, the log and monitoring module (4) is used to record an operation log of a test file and provide real-time monitoring and abnormal alarm functions, and the power supply module (5) is used to supply power to the entire system to ensure normal operation.

2. A method for using the Python-based IGBT test data automatic upload server system according to claim 1, characterized in that: The method of use comprises the following steps: 1) turning on the power module, running the system, completing the reading of the preset configuration file and the activation of the log monitoring module, generating a log file, and starting the scheduled task; 2) After the scheduled task starts, the data acquisition module in the system (1) obtains the creation time period timestamp for comparison based on the current time and configuration file settings, and collects test data on a regular basis; 3) The data backup module (2) in the system records the operation logs of test file copying, renaming and uploading, and provides real-time monitoring and abnormal alarm functions; 4) The data upload module (3) in the system uses Python scripts to automatically upload the processed data to the server. After backing up the file, it uploads it to the server and deletes the backup to ensure the security of the original data.

3. The method of use according to claim 2, characterized in that: The specific operation of the data acquisition module (1) in step 2) is as follows: a) The scheduled task starts. According to the current time and configuration file settings, the creation time period timestamp T1 is obtained. The start time is the current time - set to copy files a few hours before the current time and convert them into timestamps. The end time is the current execution time and converted into timestamps for subsequent comparisons. b) Determine whether the specified parent folder and backup folder exist, and create the folder if they do not exist; c) Traverse the parent folder to obtain the list L1 of all files in the specified format; d) Traverse the file information list L1 and store it in the file reading thread; e) The file reading thread parses the file name suffix and retrieves the corresponding replication folder path according to the corresponding relationship in the configuration file. If the file creation time is within the range of T1, the replication dictionary D1 is updated, where the file path is the corresponding replication folder path.

4. The method of use according to claim 2, characterized in that: The specific operation of the data backup module (2) in step 3) is as follows: a) Traverse the copy dictionary D1 and store it in the file copy thread; b) File copy thread, copies the file to the corresponding copy folder, renames and adds the test machine number information according to the configuration file analysis, and updates the monitoring log.

5. The method of use according to claim 2, characterized in that: The specific operation of the data uploading module (3) in step 4) is as follows: a) Check whether the device network is connected. If not, report an error and update the monitoring log; b) Check whether the server directory exists. If not, report an error and update the monitoring log; c) Traverse all files in the backup folder, which contains all copied folders, and obtain the uploaded file list L2; d) Check the shared folder permissions. If there is no permission, an error will be reported and the monitoring log will be updated; e) Traverse list L2 and store it in the file upload thread; f) File upload thread, copies the file to the corresponding folder on the server, updates the monitoring log, and deletes the backup file after the upload is complete.

6. The method of use according to claim 3, characterized in that: The data acquisition module (1) supports CSV and dtl data formats.