# IoT-Driven Intelligent Scheduling Solution for Industrial Sewing Based on Real-RCPSP Model
## 3 IoT in Industrial Garment Production and Real-Time Data Collection Methods
### Collecting and Synchronizing Data to a Cloud Server  
One of the critical factors in improving production efficiency is to help managers clearly understand the actual production progress, continuously update in real time, and make timely management decisions. Thanks to technological advances, the modern industrial textile industry can integrate IoT devices into industrial sewing machines to collect information about the production process and sewing machine operations. This integration allows for a detailed evaluation of the performance of each worker, each sewing machine, and the overall performance of the invested equipment. IoT devices will collect sewing machine operations data in real time and then send it to the cloud server via API (application programming interface). Figure 1 illustrates the steps to synchronize data from IoT sensors to the IoT device provider's cloud server system.  
_The specific steps are as follows:_  
Step 1: Connect the IoT device to the sewing machine via popular protocols such as MQTT, Ethernet, WiFi, or Bluetooth...  
Step 2: Receive signals about machine activities. After the IoT device connects to the sewing machine, this device will collect data about the sewing machine's operation, including stamping rhythm, temperature, vibration... or use sensors that allow monitoring worker actions on equipment and identify when a product is completed on the sewing machine. In addition, IoT devices can be equipped with a manual operating mechanism, which allows workers to confirm (via buttons) on the IoT device after completing the product.  
Step 3: Connect to the cloud server's API via the internet. Each IoT device can connect to a wired or wireless network to serve data transmission across the network environment. Collected data will be compiled into prescribed formats to prepare for transmission to the data storage location; this is performed through APIs provided by the IoT device development company. In this step, the IoT device will open the connection and authenticate the connection status to the service provider's cloud storage server, preparing for data synchronization.  
Step 4: Synchronize data to the cloud server. After successfully opening the connection in Step 3, the IoT device will transfer data through APIs to the provider's cloud server. The cloud server will save data over time to serve synthesis, statistics, and analysis. Data synchronization is performed immediately after the data are generated (collected) or according to predetermined timers.  
Step 5: Summarize and report data. The IoT device provider's cloud server system will synthesize collected data to create real-time reports on sewing machine operations. These reports can include information about finished product performance and sewing machine errors...Garment business managers can log in to the system and monitor reports for detailed information about ongoing production activities.  
One of the critical factors in improving production efficiency is to help managers clearly understand the actual production progress, continuously update in real time, and make timely management decisions. Thanks to technological advances, the modern industrial textile industry can integrate IoT devices into industrial sewing machines to collect information about the production process and sewing machine operations. This integration allows for a detailed evaluation of the performance of each worker, each sewing machine, and the overall performance of the invested equipment. IoT devices will collect data about sewing machine operations in real time and then send it to the cloud server via API (application programming interface). Figure 1 illustrates the steps to synchronize data from IoT sensors to the IoT device provider's cloud server system.  
Figure 1: Steps to synchronize data from IoT devices to cloud server.