Sewing machine electric control upgrading management method based on cloud platform
Through the cloud platform, the problem of users being unable to initiate upgrades and lacking batch operation capabilities in traditional upgrade management methods is solved, and more flexible and efficient sewing machine electronic control upgrade management is achieved.
Patent Information
- Application Number
- CN202510299267.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-13
- Publication Date
- 2025-06-27
AI Technical Summary
The traditional sewing machine electronic control upgrade management method cannot realize the user's active initiation of upgrade requests and batch upgrades, resulting in insufficient upgrade flexibility and inefficiency.
Through the cloud platform, the sewing machine electronically control feedback and response, the cloud platform once again actively issues upgrade documents to realize full-right platform management of the upgrade process, and use the publish-subscribe communication method to achieve batch upgrade.
It improves the flexibility and user experience of upgrades, realizes batch upgrade of sewing machine electronic control, saves upgrade time and simplifies operational process.
Smart Images

Figure CN120215980A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of OTA upgrade, and particularly to a method for upgrading and managing the sewing machine electronic control based on a cloud platform. Background Art
[0002] In the development process of the sewing machine manufacturing industry, as the "brain" of the sewing machine, the performance optimization of the sewing machine electronic control is directly related to the smooth operation, processing accuracy and production efficiency of the whole machine. With the continuous progress of intelligent and automated technologies, upgrading and managing the sewing machine electronic control to update and optimize its functions is an important driving force for promoting the sewing machine industry to a higher level.
[0003] The traditional method for upgrading and managing the sewing machine electronic control usually relies on the sewing machine electronic control to actively query the latest upgrade file on the cloud platform, and then interacts with the cloud platform through the HTTP communication protocol to actively request and download the upgrade file, thereby completing the upgrade process of the electronic control system.
[0004] However, in this upgrade management method based on the HTTP communication protocol, since the upgrade request can only be initiated by the client of the sewing machine electronic control, the user cannot actively initiate an upgrade request for the sewing machine electronic control through the cloud platform. This means that when the sewing machine electronic control needs to be upgraded, the user must wait for the electronic control system to query and discover the new upgrade file on the cloud platform by itself, or manually trigger the upgrade process, which limits the flexibility of the upgrade and brings inconvenience to the user.
[0005] In addition, the traditional upgrade management method also cannot achieve batch upgrade of the electronic control system. When facing the upgrade requirements of a large number of sewing machine electronic controls, since each sewing machine electronic control needs to initiate an upgrade request independently and lacks the ability of centralized management and batch operation, it is not only inefficient but also error-prone. Summary of the Invention
[0006] To solve the above technical problems, the present invention provides a method for upgrading and managing the sewing machine electronic control based on a cloud platform.
[0007] The technical problems solved by the present invention can be realized by the following technical solutions:
[0008] A method for upgrading and managing the sewing machine electronic control based on a cloud platform includes:
[0009] Step S1, the cloud platform publishes an upgrade instruction to the target sewing machine electronic control based on a first preset topic;
[0010] Step S2, the target sewing machine electronic control outputs a response message in response to the subscribed upgrade instruction, and the response message is used to indicate whether the target sewing machine electronic control meets the preset upgrade conditions;
[0011] Step S3. When the target sewing machine electric control meets the preset upgrade conditions according to the response message, the cloud platform publishes an upgrade file based on a second preset topic to upgrade the version of the target sewing machine electric control.
[0012] Preferably, in step S1, the cloud platform publishes the upgrade instruction with the device identifier of the target sewing machine electric control as the first preset topic.
[0013] Preferably, the upgrade instruction at least includes one or a combination of the following: the device identifier of the target sewing machine electric control, the upgrade file name, the upgrade file identifier, the upgrade file version, the file check value, the total file length, and the enterprise resource planning number suitable for the electric control.
[0014] Preferably, step S2 includes:
[0015] Step S21. The target sewing machine electric control compares the current version with the upgrade file version in the upgrade instruction.
[0016] Step S22. When the current version is the same as the upgrade file version, an response message is output to indicate that the target sewing machine electric control does not meet the preset upgrade conditions.
[0017] Step S23. When the current version is different from the upgrade file version, an response message is output to indicate that the target sewing machine electric control meets the preset upgrade conditions.
[0018] Preferably, in step S2, when outputting the response message, the target sewing machine electric control enters the over-the-air download mode at the same time.
[0019] Preferably, in step S3, when the response message indicates that the target sewing machine electric control meets the preset upgrade conditions, the cloud platform publishes the upgrade file with the device identifier and the upgrade file identifier of the target sewing machine electric control as the second preset topic.
[0020] Preferably, step S3 includes:
[0021] Step S31. The cloud platform divides the upgrade file into multiple upgrade data packets and assigns a unique packet sequence number to each upgrade data packet in sequence.
[0022] Step S32. The cloud platform publishes the upgrade data packets in sequence based on the second preset topic according to the sequence number of the packets.
[0023] Step S33. The target sewing machine electric control verifies the upgrade data packet according to the packet check value and enters step S35 when the verification passes and enters step S34 when the verification fails.
[0024] Step S34: The cloud platform republishes the upgrade data packet with the current packet number and returns to step S33 for re-verification.
[0025] Step S35: Determine whether the current upgrade data packet is the last upgrade data packet. If the current upgrade data packet is not the last one, execute step S36; if the current upgrade data packet is the last one, execute step S37.
[0026] Step S36: The cloud platform publishes a new upgrade data packet according to the next packet number based on the second preset theme and returns to step S33 to continue receiving and verifying the new upgrade data packet.
[0027] Step S37: The target sewing machine electric control verifies the entire upgrade file according to the file verification value and completes the reception of the upgrade file when the verification passes.
[0028] Preferably, in step S37, when the verification of the entire upgrade file fails, return to step S32.
[0029] Preferably, after step S3, the following steps are further included:
[0030] Step S4: The target sewing machine electric control automatically restarts and reports the current version information after the restart is completed.
[0031] Step S5: The cloud platform compares the reported current version information with the version of the published upgrade file. When the version comparison is consistent, it confirms that the upgrade is successful and outputs a notification message indicating the upgrade result of the target sewing machine electric control.
[0032] Preferably, the cloud platform establishes a communication connection with the sewing machine electric control based on the Message Queuing Telemetry Transport Protocol.
[0033] The advantages or beneficial effects of the technical solution of the present invention are as follows:
[0034] In the present invention, the cloud platform actively issues an upgrade instruction, the sewing machine electric control gives a feedback response, and then the cloud platform actively issues the upgrade file again, realizing the full platform management of the upgrade process, improving the flexibility and user experience of the upgrade, and also bringing inconvenience to users. At the same time, the cloud platform realizes the issuance of the upgrade instruction and the upgrade file based on the publish-subscribe communication method, enabling multiple sewing machine electric controls to simultaneously subscribe to receive sub-packet data messages, capable of realizing the batch upgrade of sewing machine electric controls, saving upgrade time, and simplifying the operation process. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It is a communication architecture diagram for the upgrade management of the sewing machine electric control in a preferred embodiment of the present invention.
[0036] Figure 2 In the preferred embodiment of the present invention, it is a schematic flow chart of the target sewing machine's electronic control response;
[0037] Figure 3 In the preferred embodiment of the present invention, it is a schematic flow chart of the sewing machine electronic control upgrade management method;
[0038] Figure 4 In the preferred embodiment of the present invention, it is a schematic flow chart of step S3;
[0039] Figure 5 In the preferred embodiment of the present invention, it is a schematic flow chart of automatic restart and version reporting after step S3. Detailed implementation manners
[0040] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0041] It should be noted that, without conflict, the embodiments in the present invention and the features in the embodiments can be combined with each other.
[0042] Next, the present invention will be further described in conjunction with the accompanying drawings and specific embodiments, but it is not a limitation of the present invention.
[0043] In the preferred embodiment of the present invention, in view of the above problems existing in the prior art, a sewing machine electronic control upgrade management method based on a cloud platform is provided, as Figure 1 shows the communication architecture diagram of the sewing machine electronic control upgrade management of the present invention. The cloud platform 1 establishes a communication connection with the sewing machine electronic control 2 based on the MQTT (Message Queuing Telemetry Transport) proxy server 3. The sewing machine electronic control 2 registers with the cloud platform and generates a unique device identifier (MachineID).
[0044] The cloud platform 1 establishes a connection with the MQTT proxy server 3 and subscribes to the device / # topic (TOPIC), indicating that it subscribes to all messages of the sewing machine electronic control.
[0045] Similarly, the sewing machine electronic control 2 establishes a connection with the MQTT proxy server 3 and subscribes to the MachineID / # topic (TOPIC), indicating that it only subscribes to and receives messages related to its own identifier.
[0046] AsFigure 2 As shown in Figure 2 , the sewing machine electric control upgrade management method includes the following steps:
[0047] Step S1, the cloud platform publishes an upgrade instruction to the target sewing machine electric control based on a first preset theme;
[0048] Step S2, the target sewing machine electric control responds to the subscribed upgrade instruction and outputs a response message, which is used to indicate whether the target sewing machine electric control meets the preset upgrade conditions;
[0049] Step S3, according to the response message, when the target sewing machine electric control meets the preset upgrade conditions, the cloud platform publishes an upgrade file based on a second preset theme to upgrade the version of the target sewing machine electric control.
[0050] Specifically, for the existing upgrade management method based on the HTTP communication protocol, since the upgrade request can only be initiated by the client of the sewing machine electric control, users cannot actively initiate an upgrade request for the sewing machine electric control through the cloud platform, and batch upgrade of the electric control system cannot be achieved.
[0051] In this embodiment, first, the cloud platform uses the publish-subscribe method to actively send an upgrade instruction to the target sewing machine electric control. After receiving the upgrade instruction, the target sewing machine electric control determines whether its current version meets the preset upgrade conditions.
[0052] If the current version does not meet the preset upgrade conditions, the target sewing machine electric control outputs a response message of "no upgrade required". After receiving this response message, the cloud platform does not perform any processing.
[0053] If the current version meets the preset upgrade conditions, the target sewing machine electric control outputs a response message of "start upgrade".
[0054] In this embodiment, the current version is the software version currently running on the sewing machine electric control.
[0055] After receiving the response message of "start upgrade", the cloud platform uses the publish-subscribe method again to send the upgrade file. The target sewing machine electric control receives the complete upgrade file to achieve the version upgrade of the target sewing machine electric control.
[0056] The present invention actively issues an upgrade instruction through a cloud platform. The sewing machine electronic control makes a feedback response based on its own running software version and the file version in the issued instruction. Then, the cloud platform is responsible for matching the upgrade file with the correct format and version and actively issuing the upgrade file, enabling the sewing machine electronic control to not need to care about information such as the specific file path, realizing the full-platform management of the upgrade process, improving the flexibility of the upgrade and the user experience, but also bringing inconvenience to the user. At the same time, the cloud platform is based on the publish-subscribe communication method to issue the upgrade instruction and the upgrade file, enabling multiple sewing machine electronic controls to subscribe and receive sub-packet data messages simultaneously, being able to realize the batch upgrade of the sewing machine electronic controls, saving the upgrade time and simplifying the operation process.
[0057] As a preferred implementation manner, in step S1, the cloud platform uses the device identifier of the target sewing machine electronic control as the first preset topic to publish the upgrade instruction.
[0058] Specifically, the device identifier of the target sewing machine electronic control included in the first preset topic can be one or more.
[0059] When there is one target sewing machine electronic control, the first preset topic is the MachineID of the single target sewing machine electronic control, and the target sewing machine electronic control subscribes to the message with its own MachineID as the TOPIC and receives the upgrade instruction.
[0060] When there are two or more target sewing machine electronic controls, the first preset topic is the respective MachineIDs of the two or more target sewing machine electronic controls. The two or more target sewing machine electronic controls subscribe to the message with their own MachineIDs as the TOPIC and can all receive the upgrade instruction, thereby realizing batch upgrade.
[0061] As a preferred implementation manner, the upgrade instruction at least includes one or more combinations of: the device identifier of the target sewing machine electronic control, the upgrade file name, the upgrade file identifier, the upgrade file version, the file check value, the total file length, and the enterprise resource planning number suitable for the electric control.
[0062] Specifically, in this embodiment, the cloud platform uses the publish-subscribe method to issue the upgrade instruction, and this instruction includes key information such as the device identifier of the target sewing machine electronic control, the upgrade file name, the upgrade file identifier (FileID), the upgrade file version, the file check value (such as the MD5 value), the total file length, and the enterprise resource planning number suitable for the electric control (ERP number).
[0063] As a preferred implementation manner, as Figure 3 shown, step S2 includes:
[0064] Step S21, the target sewing machine electronic control compares the current version with the upgrade file version in the upgrade instruction;
[0065] Step S22: When the current version is the same as the version of the upgrade file, output a response message indicating that the target sewing machine's electronic control does not meet the preset upgrade conditions;
[0066] Step S23: When the current version is different from the version of the upgrade file, output a response message indicating that the target sewing machine's electronic control meets the preset upgrade conditions.
[0067] Specifically, in this embodiment, after receiving the upgrade instruction, the target sewing machine's electronic control compares its current version with the version of the upgrade file included in the upgrade instruction to determine whether its current version meets the preset upgrade conditions.
[0068] If the current version is the same as the version of the upgrade file, it does not meet the preset upgrade conditions, and a response message of "No upgrade required" is output.
[0069] If the current version is different from the version of the upgrade file, it meets the preset upgrade conditions, and a response message of "Start upgrade" is output.
[0070] As a preferred implementation manner, in step S2, when outputting the response message, at the same time, the target sewing machine's electronic control enters the Over-the-Air (OTA) mode.
[0071] Specifically, when outputting the response message indicating that the preset upgrade conditions are met, the target sewing machine's electronic control enters the OTA mode and prepares to receive the upgrade file.
[0072] As a preferred implementation manner, in step S3, when the response message indicates that the target sewing machine's electronic control meets the preset upgrade conditions, the cloud platform publishes the upgrade file with the device identifier and upgrade file identifier of the target sewing machine's electronic control as the second preset topic.
[0073] Specifically, in this embodiment, when the target sewing machine's electronic control replies that it needs to be upgraded, the cloud platform designates the MachineID + FileID of the sewing machine's electronic control as the second preset topic and publishes the upgrade file.
[0074] The device identifier of the target sewing machine's electronic control included in the second preset topic can also be one or more.
[0075] During the batch upgrade process, if all target sewing machine's electronic controls need to be upgraded, the same device identifier list as the first preset topic is used in the second preset topic.
[0076] However, in actual operation, in the case where some target sewing machine electronic controls do not need to be upgraded due to the same version, in the second preset theme, the device identification list in the first preset theme is screened, and the device identifications of the target sewing machine electronic controls that have already replied "The version is the same and no upgrade is required" are excluded.
[0077] As a preferred implementation manner, wherein, as Figure 4 shown, step S3 includes:
[0078] Step S31, the cloud platform divides the upgrade file into multiple upgrade data packets and assigns a unique packet sequence number to each upgrade data packet in sequence;
[0079] Step S32, the cloud platform publishes the upgrade data packets in sequence based on the second preset theme according to the sequence number of the packets;
[0080] Step S33, the target sewing machine electronic control verifies the upgrade data packet according to the packet verification value, and enters step S35 when the verification passes and enters step S34 when the verification fails;
[0081] Step S34, the cloud platform republishes the upgrade data packet of the current packet sequence number and returns to step S33 for re-verification;
[0082] Step S35, determine whether the current upgrade data packet is the last upgrade data packet. When the current upgrade data packet is not the last upgrade data packet, execute step S36. When the current upgrade data packet is the last upgrade data packet, execute step S37;
[0083] Step S36, the cloud platform publishes a new upgrade data packet based on the second preset theme according to the next packet sequence number and returns to step S33 to continue receiving and verifying the new upgrade data packet;
[0084] Step S37, the target sewing machine electronic control verifies the entire upgrade file according to the file verification value, and completes the reception of the upgrade file when the verification passes.
[0085] Further, as a preferred implementation manner, wherein, in step S37, when the verification of the entire upgrade file fails, return to step S32.
[0086] Specifically, in this embodiment, after the upgrade is started, the cloud platform designates the MachineID + FileID of the target sewing machine electronic control as the TOPIC, and distributes the effective upgrade file data in packets through the MQTT protocol, and carries the total number of packets (COUNT), packet sequence number (SN), packet size, and the verification value of this packet (such as the MD5 value).
[0087] After the cloud target sewing machine electronic control receives the sub-packet data, it starts to verify whether the data of the current sub-packet upgrade data packet is correct and selects whether to receive the next upgrade data packet.
[0088] If the packet data is abnormal, it replies with the current packet sequence number, i.e., SN, indicating that the cloud platform needs to re-send the upgrade data packet with the packet sequence number SN.
[0089] If the packet data is normal, it replies with the next packet sequence number, i.e., SN = SN + 1, indicating that the cloud platform needs to send the upgrade data packet with the next packet sequence number.
[0090] This process is carried out in a loop. The target sewing machine electronic control compares the total packet count COUNT with the packet sequence number SN. If SN = COUNT, it determines that the current upgrade data packet is the last packet of the upgrade file; otherwise, it continues to reply with the next packet sequence number until the target sewing machine electronic control correctly receives the last data packet and verifies the entire upgrade file according to the file check value. If the verification passes, it replies with "OVER", indicating that the file reception is complete; if the verification fails, it replies with "ERROR" and the error code, requesting the cloud platform to re-initiate the upgrade.
[0091] As a preferred implementation, as Figure 5 shown, after step S3, it further includes:
[0092] Step S4, the target sewing machine electronic control automatically restarts, and after the restart is completed, it reports the current version information;
[0093] Step S5, the cloud platform compares the reported current version information with the version of the released upgrade file. When the version comparison is consistent, it confirms that the upgrade is successful and outputs a notification message indicating the upgrade result of the target sewing machine electronic control.
[0094] Specifically, in this embodiment, the target sewing machine electronic control automatically restarts after receiving the upgrade file and passing the verification.
[0095] After the restart is completed, it reports the current software version information to the cloud platform.
[0096] The cloud platform compares the reported version information with the version of the released upgrade file. If the versions are the same, it confirms that the upgrade is successful and outputs a notification message of successful upgrade to the console; if the versions are different, it records the error information and considers re-initiating the upgrade process.
[0097] As a preferred implementation, the cloud platform establishes a communication connection with the sewing machine electronic control based on the Message Queuing Telemetry Transport (MQTT) protocol.
[0098] Specifically, the present invention uses the MQTT protocol as the communication protocol between the cloud platform and the sewing machine electronic control to ensure reliable message transmission and real-time response of the device.
[0099] The upgrade file to be upgraded can be uploaded to the cloud platform by relevant personnel, or the cloud platform can obtain the complete upgrade file from the intranet file server after starting the upgrade instruction.
[0100] After the cloud platform obtains the upgrade file, after the sewing machine electronic control goes online, the cloud platform issues an upgrade instruction to trigger the upgrade negotiation process. Then, after the cloud platform confirms the start of the upgrade, it uses the MQTT protocol to send the data of the upgrade file in packets at the code layer. The electronic control receives the data in packets and performs verification until all the data of the file is correctly received. Finally, the electronic control automatically restarts and reports its own software version to complete the entire upgrade process.
[0101] During the data transmission process, the cloud platform supports the sub-packet upload or download of large files without the need to load the entire file into memory at one time, effectively preventing the situation of server memory overflow. At the same time, the packet size can be customized and adapted to the memory processing capacity of the sewing machine electronic control in accordance with the agreed manner between the two parties. The file verification method can also be customized to adapt to the actual algorithm ability of the sewing machine electronic control.
[0102] Issuing files at the code layer can match the permission control logic of the cloud platform, which can control file access permissions to ensure that only authenticated and authorized users or devices can obtain the upgrade file, enabling the cloud platform to handle various errors that may occur during the file transmission process and return meaningful information to the client. It is easier for the cloud platform to record all file transmission-related activities, facilitating auditing and troubleshooting.
[0103] On the cloud platform, it is possible to selectively upgrade specified target sewing machine electronic controls individually or in batches. The cloud platform issues upgrade files based on the MQTT proxy server. Without the need to issue files multiple times, after publishing a sub-packet data message, multiple electronic controls can subscribe and receive the sub-packet data message simultaneously to achieve batch upgrade of sewing machine electronic controls, thereby saving upgrade time and simplifying the operation process, and leaving the entire control and management of the upgrade to the cloud platform.
[0104] Furthermore, the cloud platform can also uniformly manage software versions and can view the software version information of each electronic control in real time.
[0105] The advantages or beneficial effects of adopting the above technical solution are as follows: Through the cloud platform actively sending upgrade instructions, the sewing machine electronic control gives feedback and response, and then the cloud platform actively sends the upgrade file again, realizing the full-platform management of the upgrade process, improving the flexibility of the upgrade and the user experience. At the same time, the cloud platform is based on the publish-subscribe communication method to send the upgrade instructions and the upgrade file, enabling multiple sewing machine electronic controls to subscribe to receive the sub-packet data messages simultaneously, achieving the batch upgrade of the sewing machine electronic controls, saving the upgrade time, and simplifying the operation process.
[0106] The above are only the preferred embodiments of the present invention, and do not limit the implementation manners and protection scope of the present invention. For those skilled in the art, it should be realized that all the equivalent replacements and obvious changes made by using the content of this specification and the drawings should be included in the protection scope of the present invention.
Claims
1. A sewing machine electronic control upgrade management method based on a cloud platform, characterized in that: include: Step S1, the cloud platform issues an upgrade instruction to the target sewing machine electronic control based on the first preset theme; Step S2, the target sewing machine electronic control outputs a response message in response to the subscribed upgrade instruction, wherein the response message is used to indicate whether the target sewing machine electronic control meets the preset upgrade condition; Step S3: According to the response message, when the target sewing machine electronic control meets the preset upgrade conditions, the cloud platform publishes an upgrade file based on a second preset topic to upgrade the version of the target sewing machine electronic control.
2. The cloud platform-based sewing machine electronic control upgrade management method according to claim 1, characterized in that: In the step S1, the cloud platform uses the device identifier of the target sewing machine electronic control as the first preset subject and issues the upgrade instruction.
3. The cloud platform-based sewing machine electronic control upgrade management method according to claim 1, characterized in that: The upgrade instruction includes at least one or more combinations of: the device identification of the target sewing machine electronic control, the upgrade file name, the upgrade file identification, the upgrade file version, the file checksum, the total file length and the adapted electronic control enterprise resource planning number.
4. The cloud platform-based sewing machine electronic control upgrade management method according to claim 1, characterized in that: The step S2 comprises: Step S21, the target sewing machine electronic control compares the current version with the upgrade file version in the upgrade instruction; Step S22, when the current version is consistent with the upgrade file version, outputting a response message indicating that the target sewing machine electronic control does not meet the preset upgrade conditions; Step S23, when the current version is inconsistent with the upgrade file version, outputting a response message indicating that the target sewing machine electronic control meets the preset upgrade conditions.
5. The cloud platform-based sewing machine electronic control upgrade management method according to claim 1, characterized in that: In the step S2, when the response message is output, the target sewing machine electronic control enters the over-the-air download mode.
6. The cloud platform-based sewing machine electronic control upgrade management method according to claim 1, characterized in that: In the step S3, when the response message indicates that the target sewing machine electronic control meets the preset upgrade condition, the cloud platform publishes the upgrade file using the device identification and upgrade file identification of the target sewing machine electronic control as the second preset subject.
7. The cloud platform-based sewing machine electronic control upgrade management method according to claim 1, characterized in that: The step S3 comprises: Step S31, the cloud platform divides the upgrade file into multiple upgrade data packets, and assigns a unique package number to each of the upgrade data packets in sequence; Step S32, the cloud platform releases the upgrade data packets in sequence according to the order of the package numbers based on the second preset theme; Step S33, the target sewing machine electronic control verifies the upgrade data packet according to the packet verification value, and enters step S35 when the verification passes, and enters step S34 when the verification fails; Step S34, the cloud platform re-issues the upgrade data packet of the current package number, and returns to step S33 for re-verification; Step S35, determining whether the current upgrade data packet is the last upgrade data packet, and executing step S36 when the current upgrade data packet is not the last upgrade data packet, and executing step S37 when the current upgrade data packet is the last upgrade data packet; Step S36, the cloud platform publishes a new upgrade data packet according to the next packet sequence number based on the second preset topic, and returns to step S33 to continue receiving and verifying the new upgrade data packet; Step S37, the target sewing machine electronic control verifies the entire upgrade file according to the file verification value, and completes the reception of the upgrade file when the verification passes.
8. The cloud platform-based sewing machine electronic control upgrade management method according to claim 7, characterized in that: In the step S37, when the entire upgrade file verification fails, the process returns to the step S32.
9. The cloud platform-based sewing machine electronic control upgrade management method according to claim 1, characterized in that: After step S3, the following steps are also included: Step S4, the target sewing machine electronic control automatically restarts, and after the restart is completed, reports the current version information; In step S5, the cloud platform compares the reported current version information with the published upgrade file version, confirms that the upgrade is successful when the versions are consistent, and outputs notification information indicating the upgrade result of the target sewing machine electronic control.
10. The cloud platform-based sewing machine electronic control upgrade management method according to claim 1, characterized in that: The cloud platform establishes a communication connection with the sewing machine electronic control based on a message queue telemetry transmission protocol.