A method and system for real-time collection of clothing processing man-hours and cooperative management with MES

By deploying data terminals at each workstation in the garment factory to collect production data in real time and coordinating with the MES system, the problem of inaccurate calculation of working hours in garment factories has been solved, and more efficient production management and cost control have been achieved.

CN123159733APending Publication Date: 2026-11-24GUILIN ESQUEL TEXTILES +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611216606.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-12
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing garment factories suffer from problems such as strong subjectivity, inaccurate time measurement, low efficiency, and slow updates when calculating standard working hours, which cannot meet the needs of modern garment factories for real-time, accurate, and digital management.

Method used

By deploying data terminals at each workstation in garment production to collect production data in real time, and using the MQTT protocol to interact with the server, the system enables employee login, login-free control, order query and transfer, process query and selection, and real-time WIP updates. The data is then uploaded to the MES system for statistical analysis, and production scheduling and employee skills assessment are dynamically adjusted.

Benefits of technology

It enables real-time collection of garment processing time and collaborative management with MES, improving production efficiency by approximately 15%, making automatic scheduling more accurate, reducing personnel and capacity waste, and ensuring the accuracy of order cost accounting and quotations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123159733A_ABST
    Figure CN123159733A_ABST
Patent Text Reader

Abstract

The application discloses a kind of garment processing time real-time acquisition and MES collaborative management method and system, and production data related to processing time is collected in real time by data terminal arranged in each station of garment production, and production data includes the button operation data of staff, dress car cutting line signal data, dress car vibration data;Data terminal interacts with server through MQTT protocol, realizes staff login and the control function such as free login;Data terminal uploads production data in real time to MES system, and MES system carries out statistics to received data, obtains the information of staff corresponding to order, real-time yield, single-piece working hours and total working hours, and carries out production dynamic adjustment based on statistical data, comparison of staff production skills, production line balance adjustment, order cost accounting and quotation support.The application can collect the real-time processing time, yield and staff skill data of each order every sewing process staff in real time, to provide basic data support for automatic production, automatic production, order price and quotation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of textile and apparel manufacturing, and in particular to a method and system for real-time acquisition of garment processing time and collaborative management with MES. Background Technology

[0002] Accurate working hours (standard working hours / single-piece working hours) are the core basis for garment production planning, cost, efficiency, delivery time, and quality, directly determining the factory's profitability and management level. Their importance is mainly reflected in the following aspects: 1. Accurate cost calculation and pricing; 2. Scientific production scheduling and capacity planning; 3. Improving production line balance and efficiency; 4. Effective control of delivery time and order management; 5. The foundation for digital factory management and performance evaluation. The more accurate the working hours, the more stable the production, the clearer the costs, the higher the efficiency, and the stronger the competitiveness.

[0003] Currently, garment factories primarily rely on industrial engineers (IEs) using stopwatches to record employees' processing times and then calculating order hours through data statistics. While IE-manual time calculation is more standardized than employee self-reporting, it still suffers from issues such as subjectivity, inaccurate timing, low efficiency, slow updates, and high costs. It can only serve as a static standard and cannot meet the real-time, accurate, and digital management needs of modern garment factories.

[0004] MES (Manufacturing Execution System) is a production information management system for the shop floor execution layer of manufacturing enterprises. MES provides enterprises with management modules including manufacturing data management, production planning and scheduling management, production scheduling management, inventory management, quality management, human resource management, work center / equipment management, tooling management, procurement management, cost management, project dashboard management, production process control, lower-level data integration and analysis, and upper-level data integration and decomposition, creating a robust, reliable, comprehensive, and feasible collaborative manufacturing management platform for enterprises. Summary of the Invention

[0005] This invention aims to provide a method and system for real-time collection of garment processing time and collaborative management with MES. It can collect real-time processing time, output and employee skill data of employees for each sewing process of each order, providing basic data support for automatic production reporting, automatic production scheduling, order pricing and quotation.

[0006] To achieve the above objectives, the present invention adopts the following technical solution:

[0007] First, this invention discloses a method for real-time acquisition of garment manufacturing time and collaborative management with MES, including:

[0008] Production data related to processing time is collected in real time by data terminals deployed at various workstations in garment production. The production data includes employee button operation data, sewing machine thread cutting signal data, and sewing machine vibration data.

[0009] The data terminal interacts with the server via the MQTT protocol to enable employee login and login-free control, daily output acquisition, order query and order transfer, process query and selection and real-time WIP update, output submission and rollback, group transfer and WIP update, online data reporting and offline cache retransmission;

[0010] The data terminal uploads production data, employee information, order information, process information, and working hour rules to the MES system in real time. The MES system statistically analyzes the received data to obtain the employee information, real-time output, single-piece working hours, and total working hours corresponding to the order. Based on the statistical data, it dynamically adjusts production scheduling, compares employee production skills, balances production lines, and provides order cost accounting and quotation support.

[0011] Preferably, the order query and transfer adopts the fuzzy query method of order number. The IoT terminal sends the user input information and factory and group information to the server. The server performs fuzzy matching in the corresponding factory order database and returns the order list. If there is no matching order, it prompts that there is no order information.

[0012] Preferably, the process query and selection and WIP real-time update adopt the process code fuzzy query method. After the user selects a process, the IoT terminal obtains the corresponding list of available production groups. A single group is automatically confirmed, while multiple groups are manually selected by the user. After the process and group are determined, the WIP quantity is obtained and displayed. In the case of multiple processes, the minimum WIP value of the selected process is displayed. The data terminal subscribes to the MQTT topic corresponding to the current process and group. The server pushes WIP update data when the output changes or when there is a scheduled synchronization, and the terminal refreshes the interface in real time.

[0013] Preferably, the group switching and WIP update process includes:

[0014] After a user initiates a group transfer request, the IoT terminal obtains the list of groups corresponding to the current process and completes the selection.

[0015] Immediately after switching groups, refresh the corresponding WIP value and subscribe to the MQTT topic corresponding to the new group and process to receive real-time WIP updates.

[0016] Furthermore, the method for real-time collection of garment processing time and collaborative management with MES also includes:

[0017] The MES system recalculates the estimated completion time of work orders and dynamically adjusts the production schedule based on real-time output, actual production efficiency, and remaining output.

[0018] The MES system calculates the unit time by the difference in completion time of adjacent products. After the work order is completed, the average time is taken and compared with the time of different employees in the same process to assess the difference in production skills.

[0019] The MES system compares the actual output of each process with the theoretical output, and adjusts the number of employees and equipment for the corresponding process based on the difference between actual working hours and standard working hours to optimize the production line balance.

[0020] After an order is completed, the MES system calculates the actual labor cost and the budgeted labor cost, compares the differences, and provides a basis for subsequent order cost accounting and quotation.

[0021] Furthermore, the method for real-time collection of garment processing time and collaborative management with MES also includes:

[0022] During WIP updates, to ensure the real-time nature of WIP data, the IoT terminal continuously listens for update data pushed from the background after obtaining the initial WIP value; the IoT terminal subscribes to a specific MQTT topic that uniquely corresponds to the current process and group, which is dedicated to receiving WIP update data.

[0023] The server pushes the latest WIP data to the IoT terminal in the following two scenarios: a) and b)

[0024] a. When the output of this group, order, or process changes;

[0025] b. When performing timed synchronization with the upstream system;

[0026] Once the IoT terminal receives WIP update data, it immediately and automatically refreshes the WIP value displayed on the interface to ensure that the user... What you see is always the latest data for the new group.

[0027] Furthermore, the method for real-time collection of garment processing time and collaborative management with MES also includes:

[0028] Basic parameter construction and dynamic updates: The basic parameter set includes: process difficulty level, individual employee working time, standard attendance time, order target output, and order process flow diagram;

[0029] Manpower is allocated according to a preset allocation logic, which includes:

[0030] Process levels: Based on the difficulty of operation, processes are divided into five levels from A to E;

[0031] Employee Work Process Attributes: Each employee has a main work process and several secondary work processes. The main work process is the daily operation process, and the secondary work processes are the processes that require cross-workstation support.

[0032] Individual work time (PT): Dynamically updated by the IoT terminal, displaying the number of seconds required for an employee to complete a specified process for a single product;

[0033] Employee potential output: defined as standard attendance time * 3600 / individual working time * (1 + leniency rate), representing the maximum output that an employee can achieve within the standard attendance period;

[0034] Process load factor: defined as the sum of the target output of the order and the potential output of all employees currently assigned to the process, used to quantify the degree to which the process's capacity is met;

[0035] Allocation status determination and response rules: The system determines the allocation status based on the process load. When 90% ≤ process load ≤ 110%, the allocation of the current process ends; when the process load > 110%, the current process is marked as a bottleneck process, and iterative allocation of additional employees is triggered; when the process load < 90%, the employee is marked as schedulable, and the redistribution of surplus capacity is triggered.

[0036] Priority for reallocation of surplus capacity: When an employee is determined to have surplus capacity, the system matches them with other processes of the same level as the currently assigned process according to the following priority: distance priority, maximum load utilization priority, or optimal capacity priority. The distance priority means prioritizing the allocation of adjacent processes upstream and downstream of the process flow. The maximum load utilization priority means prioritizing the allocation of a single process that can absorb the employee's surplus attendance time to the greatest extent. The optimal capacity priority means prioritizing the allocation of the process with the shortest individual working time among the skills mastered by the employee.

[0037] Furthermore, the method for real-time collection of garment processing time and collaborative management with MES also includes:

[0038] The data terminal uploads data to the MES system in real time according to the data reporting and offline processing logic, which includes:

[0039] When the network is normal, the data terminal completes local verification and then reports the data in real time via the MQTT protocol;

[0040] In the event of network anomalies or transmission failures, the production data with timestamps is cached to the local file system, and the interface continues to update production and WIP normally.

[0041] When the network is restored, the device is restarted, or the system is periodically polled, offline data is automatically resent in timestamp order, and local cache files are deleted after successful resending.

[0042] Preferably, the employee login and login-free control includes:

[0043] Users initiate login requests by swiping their RFID cards, and the data terminal sends the card number to the backend server for authentication via the MQTT protocol;

[0044] When the device is used for the first time and the user completes the login, the user is guided to manually select a department and save the settings.

[0045] If a user is logged in and has not logged out on the same day, the device will automatically perform a login-free operation after restarting or powering on, directly entering the main interface and loading the production data for the day.

[0046] Secondly, this invention also discloses a system applicable to this method of real-time acquisition of garment manufacturing time and collaborative management with MES, comprising:

[0047] Data terminals deployed at each production workstation integrate RS485, I / O, RFID card reader, touch screen and multiple communication modules to collect production data in real time and realize human-machine interaction.

[0048] An MQTT server is used for message transmission, topic subscription, and data push between data terminals and backends.

[0049] The backend server is used for authentication, order and process management, WIP calculation, production data processing, and offline data retransmission control.

[0050] The MES system is used for data statistics, time analysis, production scheduling adjustment, employee skills assessment, production line balancing optimization, and cost accounting and quotation support.

[0051] The beneficial effects of this invention are as follows:

[0052] 1. This invention can replace on-site IE statistical standard working hours work.

[0053] 2. This invention makes the calculation results of Automatic Dynamic Scheduling (APS) more accurate.

[0054] 3. This invention can adjust production lines and personnel in a timely manner based on dynamic production information, reducing waste of personnel and production capacity.

[0055] 4. This invention can promptly understand the skill level of employees, thereby enabling targeted training for them.

[0056] 5. This invention makes order cost accounting and quotation more accurate.

[0057] 6. This invention can effectively improve production efficiency, with an increase of approximately 15% in practical applications. Attached Figure Description

[0058] Figure 1 This is a layout diagram for Example 2. Detailed Implementation

[0059] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings.

[0060] Example 1

[0061] This embodiment discloses a method for real-time collection and collaborative management of garment processing time using a data terminal and an MES system. It achieves real-time collection, transmission, statistics, and multi-dimensional application of garment order processing time. The specific implementation method is as follows:

[0062] (1) Terminal deployment: The self-developed data terminal is deployed at each workstation of garment production to ensure that the production data of each workstation can be accurately collected; the data terminal integrates RS485 interface, I / O interface, RFID card reader, touch screen and multiple communication modules (WIFI, 5G, LoRa, Turmass) to adapt to different garment production scenarios.

[0063] (2) During the garment production process, the terminal collects production data related to processing time in real time through its own RS485 interface and I / O interface, including employee button operation data, sewing machine thread cutting signal data, and sewing machine vibration data.

[0064] (3) The user interface of the terminal includes the following functions:

[0065] 3.1 Use Login and Login Free Control

[0066] use Swipe your card on the IoT terminal to initiate a login request; the terminal sends the card number information to the backend server for authentication via the MQTT protocol; after successful authentication, the terminal records the user's information. The terminal interface displays the user's basic information and then proceeds to the subsequent production operation interface; if verification fails, the terminal interface clearly indicates to the user... Login failed message for easy access. Troubleshooting (e.g., invalid work badges, improper card swiping). The system will then process the data based on the user's... Login status and device usage will be automatically determined, and one of the following two operations will be performed: If it is the first time the device has been used and login has been completed (based on the criteria of never selecting an order, process record, or the device having been reset), the system will guide the user through the process. Manually select the department; the terminal saves this selection for use in all subsequent business processes. If using... If you have successfully logged in on the same day and have not logged out, the system will automatically trigger the login-free mechanism after the device is restarted or powered on. This will skip steps such as department selection and directly take you to the main interface, loading the day's production data without requiring further steps. Repeat the operation.

[0067] 3.2 Employee Daily Output Acquisition

[0068] 3.2.1 Obtaining Today's Total Production (Automatic Trigger): After an employee successfully logs in, the IoT terminal automatically sends a request to the backend server to query the employee's total production output for the day. The server queries the corresponding database based on the employee information sent by the terminal and returns the total production value. After receiving the data, the terminal performs validity verification. If the data has no error indicators and conforms to the preset format, it automatically updates and displays today's total production output, allowing employees to quickly view the production summary.

[0069] 3.2.2 View today's production details (using...) Manual trigger): When using This process can be manually triggered when detailed production records are needed; Clicking the "Today's Total Output" display area on the terminal interface sends a detailed query request to the backend server to retrieve a detailed output list of all orders and processes for that employee that day. After the server completes the query, it returns a list containing detailed production records. If the list is not empty, the terminal displays the output details list in a preset format (including order number, process name, output, production time, etc.). If the list is empty, the terminal displays a message indicating "No content or abnormal information will be displayed," clearly informing the user. There are currently no detailed production records.

[0070] 3.3 Order Inquiry and Transfer Control

[0071] use On the IoT terminal, select the "Transfer Order" function, enter the order number you want to query in the input box (fuzzy search is supported, meaning you can match related orders by entering only part of the order number), and click the "Enter" button to initiate the query; the terminal will then use... The entered order number, along with associated information such as the current factory and group, is sent to the backend server via the MQTT protocol; upon receiving the request, the backend server processes it according to the user's... The server uses provided keywords to perform a fuzzy search in the factory's order database to filter for matching orders. The server then returns a list of retrieved orders to the terminal, which performs corresponding operations based on the search results: if a matching order is found, the terminal displays the order list for use. Select the target order; if no matching order is found, the terminal interface displays "No order information," prompting you to use... Re-enter your search keywords.

[0072] 3.4 Process query, selection, and real-time WIP update

[0073] 3.4.1 Process Inquiry and Selection: When using This operation is performed when a switch to a new production process is required; To use the "Transfer to Process" function, enter the process code (fuzzy search is supported) and press "Enter" to submit the query. The terminal sends the query request to the MQTT server. The backend server retrieves a list of available processes based on the current order number and query keywords. After receiving the list, the terminal displays all matching processes for use. Select (single or multiple selections supported); if no matching process is found, the terminal displays "No process information" and prompts you to use [the appropriate method / tool]. After verifying the process code, search again.

[0074] 3.4.2 Production Group Selection: Using After selecting the process, the system needs to further determine the production group to ensure accurate correlation of production data; the terminal then uses the data... The system requests a list of available production groups corresponding to the selected process from the server. If the server returns only one available production group, the system automatically confirms and records that group. If multiple production groups are returned, the system displays a list of groups for the user to choose from. Manually select the target group.

[0075] 3.4.3 WIP Quantity Acquisition and Display: After the process and group are determined, the system immediately acquires and displays the current WIP (Work in Process) quantity to provide a reference for employees' production; the terminal requests the WIP value of the current process and group from the server; in a single-process scenario, the WIP value on the interface is directly acquired and updated; in a multi-process scenario, the system acquires the WIP values ​​of all selected processes, takes the minimum value among them and displays it to ensure that the production process meets capacity constraints.

[0076] 3.4.4 Real-time WIP Updates: To ensure the real-time nature of WIP data, after obtaining the initial WIP value, the terminal continuously listens for update data pushed from the background. The terminal subscribes to a specific MQTT topic uniquely corresponding to the current process and group, specifically for receiving WIP update data. The server pushes the latest WIP data to the terminal in the following two situations: 1. When the output of the process changes; 2. During scheduled synchronization with the upstream system (currently, the synchronization cycle is approximately 15-30 minutes). Once the terminal receives valid WIP update data, it immediately and automatically refreshes the WIP value displayed on the interface to ensure real-time updates. This is the latest data.

[0077] 3.5 Production Submission and Reversal

[0078] 3.5.1 Production Submission Triggering Methods: The system supports three different production submission triggering methods to adapt to the needs of different production scenarios, namely: using Submit via button (using) On the terminal interface, production can be submitted manually by clicking the "Production" button; equipment sensor triggering (e.g., ordinary flatbed cars, equipment with wire cutting signals, etc., automatically send signals to trigger production submission through installed sensors such as solenoid valves, coupling switches, proximity switches); and linkage line PLC triggering (automated equipment automatically triggers the production increase submission operation based on its PLC's OUTPUT records).

[0079] 3.5.2 Increased Production (+1) Process: Regardless of the method used... Whether the button is clicked or automatically triggered by the device, it is considered an operation to increase production, and the same verification and submission logic is executed. Prerequisites: Before submitting production, the system will perform two strict checks: 1. Information verification: Ensure that all required fields such as process and group are selected and the information is accurate; 2. WIP check: Determine if the current work-in-process (WIP) quantity is greater than 0. If WIP is 0, production cannot be submitted, and the system will notify the user. The system displays the message "Remaining quantity exceeded"; Submission and Feedback: After successful verification, the terminal sends a request in the corresponding format based on the number of processes: In a single-process scenario, the terminal sends a JSON request containing the "signal" and "POST_OUTPUT" fields to increase production; In a multi-process scenario, the terminal sends a JSON request containing the "signal" and "POST_OUTPUT_OPERATIONS" fields to increase production; Processing Results: When the server returns success information, in a single-process scenario, the terminal interface updates the values ​​of "Today's Total Production" and "Remaining WIP for the Current Process" in real time; In a multi-process scenario, the terminal interface updates the values ​​of "Today's Total Production" and "Minimum WIP Value for Multiple Processes" in real time; When the server returns error information (e.g., violation of business logic), the terminal displays a pop-up message to the user. Displaying the specific failure reason given by the backend makes it easier to use... Timely investigation.

[0080] 3.5.3 Production Reversal Process: This function is used for... Cancel or roll back submitted production outputs to correct erroneous operations; Trigger method: using Clicking the "Output" button twice triggers an output rollback operation. Prerequisite: The system first checks if the employee's "Today's Total Output" is greater than 0. If the output is already 0, the rollback operation cannot be performed. Submission and Feedback: After successful verification, the terminal sends a request in the corresponding format based on the number of processes: In a single-process scenario, the terminal sends a rollback request in JSON format containing the "signal" and "POST_OUTPUT" fields; in a multi-process scenario, the terminal sends a rollback request in JSON format containing the "signal" and "POST_OUTPUT_OPERATIONS" fields. Processing Results: When the server returns a success message, in a single-process scenario, the terminal interface updates the values ​​of "Today's Total Output" and "Remaining WIP for the Current Process" in real time; in a multi-process scenario, the terminal interface updates the values ​​of "Today's Total Output" and "Minimum WIP Value for Multiple Processes" in real time; when the server returns an error message, the terminal displays a pop-up message to the user. The system displays the specific reasons for the failure provided by the backend.

[0081] 3.6 Group Transfer and WIP Update Process

[0082] 3.6.1 Group Switching Operation: When using This operation is performed when it is necessary to switch to another production group under the current process; The terminal initiates a "transfer group" request; based on the current order and process information, the terminal requests a list of all available production groups corresponding to the process from the backend server; group determination: if there is only one available production group for the process, the system automatically confirms and records that group, without needing to manually select it. Manual operation; if multiple options exist, the system will display a group list for the user to choose from. Manually select the target group.

[0083] 3.6.2 Obtain and display WIP: using After the group switch is completed, the system immediately obtains and refreshes the WIP count displayed on the interface to ensure that the data matches the new group; the terminal requests the WIP data of the current process under the new group from the server; display logic: in a single process scenario, the WIP value on the interface is directly obtained and updated; in a multi-process scenario, the system obtains the WIP values ​​of all selected processes under the new group, compares them and displays the minimum value.

[0084] 3.6.3 Real-time WIP Update: To ensure data remains up-to-date, the terminal continuously monitors the background for real-time updates after obtaining the initial WIP value for the new group; Subscribed Update: The terminal automatically subscribes to a specific MQTT topic related to the new group and current process to receive WIP update data for that group; Background Push: The server pushes the latest WIP data through this topic in the following two situations: 1. When the output of the group, order, or process changes; 2. During scheduled synchronization with the upstream system (currently, the synchronization cycle is approximately 15-30 minutes); Interface Refresh: Once the terminal receives valid WIP update data, it immediately and automatically refreshes the WIP value displayed on the interface to ensure that the data is up-to-date. What you see is always the latest data for the new group.

[0085] 3.7 Data Reporting and Offline Processing Logic

[0086] 3.7.1 Online Process (When Network is Normal): This is a standard data submission process that is automatically triggered when the terminal network connection is normal; 1. Using Operation: Use 1. Trigger production increase or decrease operations; 2. Local verification: The terminal first performs local data verification to ensure that login status, work order information, WIP, and other data are complete and valid. If the verification fails, it directly requests the user's data. Error messages are displayed; no network request is required. 3. Data transmission: After successful verification, the terminal encapsulates the production data in a preset format and sends it to the backend server via the MQTT protocol. 4. Success confirmation: After successfully receiving the data, the server returns a confirmation message to the terminal. 5. Using Feedback: After receiving confirmation, the terminal can notify the user by updating the LED indicator (e.g., turning it green) or through an on-screen prompt. The operation was successful; in most cases, this process is effective for the user. It is seamless and the operation can be completed instantly without affecting the production cycle.

[0087] 3.7.2 Offline Processing Flow (In case of network abnormality or transmission failure): When the terminal network is disconnected or cannot connect to the server for other reasons, the system automatically switches to this offline processing flow to ensure normal production operations; 1. Using Operation and verification: Completely consistent with the online process, using... 1. Press the production button, and the terminal completes local data verification; 2. Attempt to send: The terminal first attempts to send data to the server to verify the network connection status; 3. Failure buffering: When sending fails, the system does not buffer data from the user. Instead of displaying a failure message, the system immediately saves the production data to the terminal's local file system, storing the data with a timestamped filename to ensure traceability and for future resending; 4. Use Experience Guarantee: Even if the data is only stored locally, the output and WIP values ​​on the terminal interface will be updated immediately from the user's perspective. From the perspective of the user, the operation has been successfully "accepted," providing a completely consistent experience with online operation and ensuring that production rhythm is not affected by network fluctuations.

[0088] 3.7.3 Offline Data Retransmission Mechanism (After Network Recovery): To ensure that locally cached offline data can eventually be synchronized to the backend server, the terminal has a built-in automatic retransmission mechanism that requires no manual intervention. 1. Triggering Timing: This retransmission task is automatically triggered when any of the following occurs: device network connection is restored, device self-check after each restart, or system periodic polling check (e.g., every 10 minutes). 2. Retransmission Process: After the task starts, the system automatically traverses all locally cached offline data files, reads the file content one by one in timestamp order, and re-attempts to send it to the backend server. Whenever a piece of data is successfully sent and confirmed by the server, the corresponding local cache file is immediately deleted to avoid duplicate data transmission. 3. Task Completion: This process continues to loop until all offline data has been successfully sent and cleared from the local cache, ultimately achieving complete consistency between the terminal and the backend data.

[0089] (4) Data transmission: The terminal can flexibly select one or more communication methods such as WIFI, 5G, LoRa and Turmass according to the network environment of the garment production site, and feed back all data such as production data, employee information, order information, process information and working time rules to the MES system in real time to ensure the timeliness and stability of data transmission and adapt to the network requirements of different production scenarios.

[0090] (5) Data Statistics and Application:

[0091] 5.1 After receiving various data from the terminals, the MES system automatically calculates the employee information, real-time production information, and employee processing time information (including single-piece time and total time) for each order. Based on the above statistical data, the MES system achieves the following multi-dimensional applications to comprehensively improve production management:

[0092] 5.1.1 Dynamically adjust production scheduling based on real-time order output: The MES system periodically obtains output data from the terminal, compares the obtained output and processing time with the planned output and planned processing time, recalculates the estimated completion time of the work order based on the actual production efficiency (output / time) and remaining output, and advances or postpones the subsequent work orders of the corresponding process.

[0093] 5.1.2 Compare the working hours of different employees in the same process and for the same order, and record the employee's production skills: For each product an employee produces, the terminal will record the end time of that product. The difference between the end times of two products is the working hours of the employee producing the product. After the work order is completed, the MES will clean the collected data and take the average working hours, which will be recorded as the working hours of the employee producing that work order. The comparison of working hours of different employees in the same position is the skill difference.

[0094] 5.1.3 Dynamically combine workstations and employees to adjust production line balance: MES obtains the actual output of all processes in the work order from the terminal feedback and compares it with the theoretical output. For processes with large differences, the number of employees and sewing equipment for that process is increased by the existing staff * (actual working hours / standard working hours - 1) [Note: This method of adjusting line balance is not applicable to small batch work orders];

[0095] 5.1.4 After an order is completed, analyze the working hours for that order to provide a basis for cost accounting and quoting for similar orders: In cost accounting, the actual labor cost of the work order = actual working hours * labor price * output * number of employees. The budgeted labor cost of the work order = standard working hours * labor price * output * number of employees. By comparing, the difference between the actual labor cost and the budgeted labor cost can be clearly seen, and adjustments can be made in a timely manner in the next round of quoting.

[0096] 6. An automated human resource allocation method based on skill matrix:

[0097] 6.1 Basic Parameter Construction and Dynamic Update Mechanism The automatic manpower configuration module operates according to the preset allocation logic. Its basic parameter set includes: process difficulty level, employee's individual working time, standard attendance time, order target output and order process flow diagram.

[0098] 6.1.1 Dynamic Calculation of Individual Employee Work Time: The Skills Matrix system synchronizes employee PT (process work time) data collected by IoT terminals according to a preset period (e.g., 22:00 daily) and performs the following data cleaning and update logic: Filtering out invalid process data with zero output and a sample size lower than a preset threshold (e.g., 50 times), as well as abnormal PT data (e.g., efficiency > 200% and PT value ≤ 5 seconds); for valid data, extracting the median value of the PT data sequence of a single employee in a single process and storing it in the historical PT database of the corresponding process for that employee; further, extracting the secondary median value from all median value records in the historical PT database as the latest individual work time for that employee in performing that process, thus achieving robust updates of skill data.

[0099] 6.1.2 Acquisition of other basic parameters: Standard attendance time and target output for orders are set by the user according to actual production rules; the process flow diagram is obtained by associating with the MES system, and the screening criteria are processes with process identifier "SEW" (sewing) and standard working hours (SAM value) greater than zero. The selected process nodes are arranged to generate a process sequence diagram according to the priority order of "width - Part CD Seq".

[0100] 6.2 Automatic Allocation and Global Optimization Algorithm for Multi-level Constraints After obtaining the above basic parameters, the system starts the automatic allocation process to match the optimal operators for each process of the order, and performs global optimization after the initial allocation is completed to generate a manpower configuration plan that adapts to the current production line skill supply and production task requirements.

[0101] 6.2.1 Core Parameter Definition and Allocation Judgment Rules

[0102] The following core definitions and rules are introduced in the allocation logic:

[0103] 1. Process Level: Based on the difficulty of operation, the processes are divided into five levels from A to E.

[0104] 2. Employee work process attributes: Each employee has a main work process (the main daily work process) and several auxiliary work processes (work processes that require cross-position support).

[0105] 3. Individual Work Time (PT): Dynamically updated by the IoT terminal, representing the number of seconds required for an employee to complete a designated process for a single product.

[0106] 4. Employee potential output: defined as “standard attendance time * 3600 / individual working time * (1 + leniency rate)”, representing the maximum output that an employee can achieve within the standard attendance period.

[0107] 5. Process load: Defined as "order target output / sum of the potential output of all employees currently assigned to the process", used to quantify the degree to which the process's capacity is met.

[0108] 6. Allocation Status Determination and Response Rules: The system determines the allocation status based on the process load. When 90% ≤ process load ≤ 110%, it is determined to be "suitable," and the allocation of the current process ends; when process load > 110%, it is determined to be "capacity gap," the current process is marked as a bottleneck process, and iterative allocation of additional employees is triggered; when process load < 90%, it is determined to be "capacity surplus," the employee is marked as schedulable, and the redistribution of surplus capacity is triggered.

[0109] 7. Priority of Surplus Capacity Reallocation: When an employee is determined to have surplus capacity, the system will match them with other processes of the same level as the currently assigned process according to the following rules: "distance priority" (prioritizing the allocation of adjacent processes in the upstream and downstream of the process flow), "maximum load absorption priority" (prioritizing the allocation of a single process that can absorb the most of their surplus attendance time), and "optimal capacity priority" (prioritizing the allocation of the process with the shortest individual working time among the skills they have mastered).

[0110] 6.2.2 Hierarchical Sequential Allocation Process

[0111] Following the process flow diagram's sequence, the system first locates all Class A processes and their corresponding main process employees, selecting the employee with the shortest PT (Presentation Time) to complete the matching. Subsequently, the allocation status determination in section 6.2.1 is triggered by calculating the process load.

[0112] • If the status is "adapted", the current A-level process has been assigned, the system points to the next A-level process and repeats this process;

[0113] • If the situation is “capacity gap”, then employees will be added from the current main process employee pool in ascending order of PT time until the process load enters the “suitable” range or there are no main process employees available to be assigned.

[0114] • If the status is “capacity surplus”, the system searches for the next available process for the employee, starting from the main process of the same level, based on the surplus capacity and allocation priority. The system then recalculates the process load of the new process based on the employee’s remaining available attendance time, until the employee’s surplus capacity is fully allocated.

[0115] After all A-level processes are assigned, the system sequentially assigns processes from B to E in the same hierarchical order, proceeding according to the process flow chart within each level. During this stage, the positions of already assigned employees are locked, and they will not participate in the initial assignment of subsequent processes at the same level.

[0116] 6.2.3 Cross-process job filling and surplus utilization

[0117] After the hierarchical allocation is completed, the system enters the global gap-filling phase. At this time, the production line status is as follows: some employees still have surplus capacity, while some bottleneck processes still have capacity gaps. The system breaks through the original restrictions on primary and secondary processes and the restrictions on the same process level. With a holistic process perspective, based on the aforementioned priority rules, it matches secondary process operators from the pool of surplus capacity employees to all processes with capacity gaps, completing the supplementary allocation.

[0118] 6.2.4 Global Optimization Based on Conflict Resolution

[0119] For bottleneck processes that remain unassigned or have significant load gaps after supplementary allocation, the system performs conflict-resolving global optimization. For example, if it is identified that the sole skilled worker for a bottleneck process is already locked to another non-bottleneck process in terms of allocation order, resulting in a mismatch of skill resources, the system will force a reallocation: that is, unlock the worker from the previous process, reassign them to the bottleneck process, and trigger a chain of reallocations to the affected processes. This process iterates until the process load of all processes falls into the "suitable" range, ensuring overall production line balance.

[0120] 6.2.5 After the automatic allocation and global optimization of the configuration scheme are completed, the system generates and outputs the final manpower configuration scheme. The scheme displays the configuration details of each process in a visual interface. The data fields include at least the following key production efficiency indicators: process name, assigned employee name, individual working time, potential output, efficiency value, assigned attendance time, individual employee load rate and overall process load.

[0121] Example 2

[0122] Based on Example 1, this example discloses a real-time garment processing time acquisition and MES collaborative management system. The system employs the aforementioned real-time garment processing time acquisition and MES collaborative management method, including:

[0123] Data terminals deployed at each production workstation integrate RS485, I / O, RFID card reader, touch screen and multiple communication modules to collect production data in real time and realize human-machine interaction.

[0124] An MQTT server is used for message transmission, topic subscription, and data push between data terminals and backends.

[0125] The backend server is used for authentication, order and process management, WIP calculation, production data processing, and offline data retransmission control.

[0126] The MES system is used for data statistics, time analysis, production scheduling adjustment, employee skills assessment, production line balancing optimization, and cost accounting and quotation support.

[0127] The specific layout of this garment manufacturing process time real-time data acquisition and MES collaborative management system is as follows: Figure 1 As shown.

[0128] Of course, the present invention may have other various embodiments. Without departing from the spirit and essence of the present invention, those skilled in the art can make various corresponding changes and modifications according to the present invention, but these corresponding changes and modifications should all fall within the protection scope of the appended claims.

Claims

1. A method for real-time acquisition and MES collaborative management of garment manufacturing time, characterized in that, include: Production data related to processing time is collected in real time by data terminals deployed at various workstations in garment production. The production data includes employee button operation data, sewing machine thread cutting signal data, and sewing machine vibration data. The data terminal interacts with the server via the MQTT protocol to enable employee login and login-free control, daily output acquisition, order query and order transfer, process query and selection and real-time WIP update, output submission and rollback, group transfer and WIP update, online data reporting and offline cache retransmission; The data terminal uploads production data, employee information, order information, process information, and working hour rules to the MES system in real time. The MES system statistically analyzes the received data to obtain the employee information, real-time output, single-piece working hours, and total working hours corresponding to the order. Based on the statistical data, it dynamically adjusts production scheduling, compares employee production skills, balances production lines, and provides order cost accounting and quotation support.

2. The method for real-time acquisition of garment processing time and collaborative management with MES according to claim 1, characterized in that, The order query and transfer adopts the fuzzy query method of order number. The IoT terminal sends the user input information and factory and group information to the server. The server performs fuzzy matching in the corresponding factory order database and returns the order list. If no matching order is found, a message will be displayed indicating that there is no order information.

3. The method for real-time acquisition of garment processing time and collaborative management with MES according to claim 1, characterized in that, The process query and selection, as well as the real-time WIP update, adopt a fuzzy query method based on process codes. After the user selects a process, the IoT terminal obtains a list of corresponding available production groups. A single group is automatically confirmed, while multiple groups are manually selected by the user. After the process and group are determined, the number of WIPs is obtained and displayed. In multi-process scenarios, the minimum WIP value of the selected process is displayed. The data terminal subscribes to the MQTT topic corresponding to the current process and group. The server pushes WIP update data when production changes or during scheduled synchronization, and the terminal refreshes the interface in real time.

4. The method for real-time acquisition of garment processing time and collaborative management with MES according to claim 1, characterized in that, The group transfer and WIP update process includes: After a user initiates a group transfer request, the IoT terminal obtains the list of groups corresponding to the current process and completes the selection. Immediately after switching groups, refresh the corresponding WIP value and subscribe to the MQTT topic corresponding to the new group and process to receive real-time WIP updates.

5. The method for real-time acquisition of garment processing time and collaborative management with MES according to claim 1, characterized in that, Also includes: The MES system recalculates the estimated completion time of work orders and dynamically adjusts the production schedule based on real-time output, actual production efficiency, and remaining output. The MES system calculates the unit time by the difference in completion time of adjacent products. After the work order is completed, the average time is taken and compared with the time of different employees in the same process to assess the difference in production skills. The MES system compares the actual output of each process with the theoretical output, and adjusts the number of employees and equipment for the corresponding process based on the difference between actual working hours and standard working hours to optimize the production line balance. After an order is completed, the MES system calculates the actual labor cost and the budgeted labor cost, compares the differences, and provides a basis for subsequent order cost accounting and quotation.

6. The method for real-time acquisition of garment processing time and collaborative management with MES according to claim 1, characterized in that, Also includes: During WIP updates, to ensure the real-time nature of WIP data, the IoT terminal continuously listens for update data pushed from the background after obtaining the initial WIP value; the IoT terminal subscribes to a specific MQTT topic that uniquely corresponds to the current process and group, which is dedicated to receiving WIP update data. The server pushes the latest WIP data to the IoT terminal in the following two scenarios: a) and b) a. When the output of this group, order, or process changes; b. When performing timed synchronization with the upstream system; Once the IoT terminal receives WIP update data, it immediately and automatically refreshes the WIP value displayed on the interface to ensure that the user... What you see is always the latest data for the new group.

7. The method for real-time acquisition of garment processing time and collaborative management with MES according to claim 1, characterized in that, Also includes: Basic parameter construction and dynamic updates: The basic parameter set includes: process difficulty level, individual employee working time, standard attendance time, order target output, and order process flow diagram; Manpower is allocated according to a preset allocation logic, which includes: Process levels: Based on the difficulty of operation, processes are divided into five levels from A to E; Employee Work Process Attributes: Each employee has a main work process and several secondary work processes. The main work process is the daily operation process, and the secondary work processes are the processes that require cross-workstation support. Individual work time (PT): Dynamically updated by the IoT terminal, displaying the number of seconds required for an employee to complete a specified process for a single product; Employee potential output: defined as standard attendance time * 3600 / individual working time * (1 + leniency rate), representing the maximum output that an employee can achieve within the standard attendance period; Process load factor: defined as the sum of the target output of the order and the potential output of all employees currently assigned to the process, used to quantify the degree to which the process's capacity is met; Allocation status determination and response rules: The system determines the allocation status based on the process load. When 90% ≤ process load ≤ 110%, the allocation of the current process ends; when the process load > 110%, the current process is marked as a bottleneck process, and iterative allocation of additional employees is triggered; when the process load < 90%, the employee is marked as schedulable, and the redistribution of surplus capacity is triggered. Priority for reallocation of surplus capacity: When an employee is determined to have surplus capacity, the system matches them with other processes of the same level as the currently assigned process according to the following priority: distance priority, maximum load utilization priority, or optimal capacity priority. The distance priority means prioritizing the allocation of adjacent processes upstream and downstream of the process flow. The maximum load utilization priority means prioritizing the allocation of a single process that can absorb the employee's surplus attendance time to the greatest extent. The optimal capacity priority means prioritizing the allocation of the process with the shortest individual working time among the skills mastered by the employee.

8. The method for real-time acquisition of garment processing time and collaborative management with MES according to claim 1, characterized in that, Also includes: The data terminal uploads data to the MES system in real time according to the data reporting and offline processing logic, which includes: When the network is normal, the data terminal completes local verification and then reports the data in real time via the MQTT protocol; In the event of network anomalies or transmission failures, the production data with timestamps is cached to the local file system, and the interface continues to update production and WIP normally. When the network is restored, the device is restarted, or the system is periodically polled, offline data is automatically resent in timestamp order, and local cache files are deleted after successful resending.

9. The method for real-time acquisition of garment processing time and collaborative management with MES according to claim 1, characterized in that, The employee login and login-free control includes: Users initiate login requests by swiping their RFID cards, and the data terminal sends the card number to the backend server for authentication via the MQTT protocol; When the device is used for the first time and the user completes the login, the user is guided to manually select a department and save the settings. If a user is logged in and has not logged out on the same day, the device will automatically perform a login-free operation after restarting or powering on, directly entering the main interface and loading the production data for the day.

10. A garment processing time real-time acquisition and MES collaborative management system applicable to any one of claims 1-9, characterized in that, include: Data terminals deployed at each production workstation integrate RS485, I / O, RFID card reader, touch screen and multiple communication modules to collect production data in real time and realize human-machine interaction. An MQTT server is used for message transmission, topic subscription, and data push between data terminals and backends. The backend server is used for authentication, order and process management, WIP calculation, production data processing, and offline data retransmission control. The MES system is used for data statistics, time analysis, production scheduling adjustment, employee skills assessment, production line balancing optimization, and cost accounting and quotation support.