Sewing machine electric control communication system and method, electronic equipment and medium
The sewing machine electronic control communication system, through its master-slave architecture and data mapping mechanism, solves the problems of scalability and data transmission in sewing machine electronic control systems. It enables efficient expansion and independent control of electronic control equipment, improving the development speed and system flexibility of new sewing machine models.
Patent Information
- Application Number
- CN202511103107.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-07
- Publication Date
- 2025-11-21
AI Technical Summary
Existing sewing machine electronic control systems suffer from poor equipment scalability and insufficient real-time data transmission when faced with complex production processes. This results in low equipment operational stability and production efficiency, and the poor system scalability makes it difficult to respond quickly to market changes and customer needs.
It adopts a master-slave architecture design, cascading multiple electronic control devices through asynchronous serial communication protocol and CAN communication protocol to form serial communication loop and CAN communication loop. Combined with data mapping mechanism, it realizes data interaction, enabling independent control of each node and efficient data transmission.
It improves data transmission efficiency, enables the expansion and independent control of electronic control equipment, simplifies the development process of new models, and increases the development speed and system flexibility of new sewing machine models.
Smart Images

Figure CN120994601A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of communication technology and relates to a sewing machine electronic control communication system, method, electronic device and medium. Background Technology
[0002] With the rapid rise and deep application of artificial intelligence (AI) technology, AI sewing machines are gradually becoming an industry trend. These intelligent devices integrate a wide variety of functions, and their normal operation often relies on the collaborative support of multiple different types of electronic control equipment. In actual operation, these electronic control devices need to exchange a large amount of data, especially in complex scenarios involving real-time control, which places extremely high demands on the speed and frequency of data transmission.
[0003] However, existing sewing machine electronic control systems are typically built around a single electronic control device. When faced with complex production process requirements, such as multi-motor collaborative control scenarios, the processing power of a single chip is insufficient, unable to handle the processing needs of multiple tasks simultaneously, making it difficult to achieve precise and efficient control, thus affecting the operational stability and production efficiency of the equipment.
[0004] Furthermore, traditional sewing machine electronic control systems have a high degree of coupling, which results in extremely poor system scalability. Adding new functions or equipment necessitates large-scale modifications and redesigns of the entire system. This not only increases development costs and complexity but also leads to lengthy development cycles for new models, hindering rapid responses to market changes and customer needs. Summary of the Invention
[0005] This application provides a sewing machine electronic control communication system, method, electronic device, and medium to solve the problems of poor device scalability and insufficient real-time data transmission in the prior art of sewing machine electronic control system communication.
[0006] In a first aspect, this application provides a sewing machine electronic control communication system, comprising: a master electronic control device, a plurality of slave electronic control devices, and a plurality of extended electronic control devices; a switching device having a communication master node and communication slave nodes corresponding to the number of slave electronic control devices, the communication master node and the communication slave nodes being cascaded; the communication master node being used to access the master electronic control device, and the communication slave nodes being used to access the slave electronic control devices; the communication master node communicating with the master electronic control device via an asynchronous serial communication protocol, and each of the communication slave nodes communicating with its corresponding slave electronic control device via an asynchronous serial communication protocol, forming a serial communication loop; an extension device having extended slave nodes corresponding to the number of extended electronic control devices, the extended slave nodes being used to access the extended electronic control devices; each of the communication slave nodes and each of the extended slave nodes communicating with the communication master node via a CAN communication protocol, forming a CAN communication loop; the CAN communication loop and the serial communication loop interact with each other based on a data mapping mechanism.
[0007] In one implementation of the first aspect, the method further includes: the switching device acquiring electrical control parameters in real time through the serial communication loop; the electrical control parameters including control commands generated by the main electrical control device for driving the target motor; the switching device mapping and transmitting the electrical control parameters to the node to which the target motor belongs through the CAN communication loop; the node to which the target motor belongs is a communication master node, a communication slave node, and / or an extended slave node; the switching device acquiring node parameters in real time through the CAN communication loop; the node parameters including available communication slave nodes and available extended slave nodes in the system; and the switching device synchronously updating the electrical control parameters in real time through the serial communication loop according to the node parameters.
[0008] In one implementation of the first aspect, the step of the communication master node communicating with the main power control device via an asynchronous serial communication protocol includes: the main power control device and the communication master node performing a handshake to establish a sending channel and a response channel; the main power control device sending sending frames to the communication master node through the sending channel at a preset period; and the communication master node sending back receiving frames to the main power control device through the response channel at the same period.
[0009] In one implementation of the first aspect, the transmitted frame includes a frame header, check data, a process data object, and a service data object; the process data object and the service data object are arranged in an interleaved manner, wherein the number of bytes of the process data object corresponds to the number of all slave nodes in the system, and the service data object corresponds to different slave nodes in the system through a polling mechanism.
[0010] In one implementation of the first aspect, the received frame includes a frame header, verification data, a process data object, and a service data object; the process data object and the service data object are arranged in an interleaved manner, wherein the number of bytes of the process data object corresponds to the number of all slave nodes in the system, and the service data object corresponds to different slave nodes in the system through a polling mechanism.
[0011] In one implementation of the first aspect, the transmission of the service data object includes a normal transmission mode and an accelerated transmission mode; in the normal transmission mode, the message data field of the service data object includes data to be transmitted for a single slave node; in the accelerated transmission mode, the message data field of the service data object includes data to be transmitted for multiple slave nodes; the data to be transmitted is write operation data or read operation data, wherein the write operation data includes a function code, a starting setting parameter index value, and a setting parameter set; the read operation data includes a function code, a starting monitoring parameter index value, and a monitoring parameter set.
[0012] In one implementation of the first aspect, the extension device internally runs a configuration program for deploying CAN master or CAN slave functionality for the extension slave node.
[0013] Secondly, this application provides a sewing machine electronic control communication method applied to the above-described system, comprising: accessing a main electronic control device through a communication master node of an adapter, and accessing a slave electronic control device through a communication slave node of the adapter; establishing communication connections between the communication master node and the main electronic control device, and between each of the communication slave nodes and the slave electronic control device, based on an asynchronous serial communication protocol, to form a serial communication loop; accessing an extended electronic control device through an extended slave node of an extension device; establishing communication connections between each of the extended slave nodes of the extension device and the communication master node based on a CAN communication protocol, to form a CAN communication loop; and performing data interaction between the CAN communication loop and the serial communication loop based on a data mapping mechanism.
[0014] Thirdly, this application provides an electronic device, comprising: a memory for storing a computer program; and a processor for executing the computer program stored in the memory to cause the electronic device to perform any of the methods described above.
[0015] Fourthly, this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in any of the preceding claims.
[0016] As described above, the sewing machine electronic control communication system, method, electronic device, and medium described in this application have the following beneficial effects:
[0017] (1) The expansion of electrical control equipment was achieved by cascading multiple electrical control devices;
[0018] (2) The asynchronous serial communication technology solves the problem of serial communication delay and effectively improves data transmission efficiency;
[0019] (3) Data mapping effectively decouples serial port data from the CAN network, enabling each node to be controlled independently. While ensuring system decoupling, more complex machine designs can be implemented, thus significantly accelerating the development speed of new sewing machine models. Attached Figure Description
[0020] Figure 1 The diagram shown is a structural schematic of a sewing machine electronic control communication system according to an embodiment of this application.
[0021] Figure 2 The diagram shown is a structural schematic of a sewing machine electronic control communication system according to another embodiment of this application.
[0022] Figure 3 The diagram shown is a communication interaction diagram between the communication master node and the main power control device according to an embodiment of this application.
[0023] Figure 4 The diagram shows SDO write operation data and SDO read operation data according to an embodiment of this application.
[0024] Figure 5 The flowchart shown is a sewing machine electronic control communication method according to an embodiment of this application.
[0025] Figure 6 The diagram shown is a structural schematic of an electronic device according to an embodiment of this application. Detailed Implementation
[0026] The following specific examples illustrate the implementation of this application. Those skilled in the art can easily understand other advantages and effects of this application from the content disclosed in this specification. This application can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of this application. It should be noted that, unless otherwise specified, the following embodiments and features in the embodiments can be combined with each other.
[0027] It should be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of this application. Therefore, the drawings only show the components related to this application and are not drawn according to the actual number, shape and size of the components in the actual implementation. In the actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.
[0028] The following embodiments of this application provide a sewing machine electronic control communication system, method, electronic device, and medium. This application expands the electronic control function by cascading multiple electronic control devices; it solves the serial communication latency problem using asynchronous serial communication technology, effectively improving data transmission efficiency; and it achieves effective decoupling of serial data and the CAN network through data mapping, enabling each node to achieve independent control. While ensuring system decoupling, it allows for more complex machine designs, thereby greatly accelerating the development speed of new sewing machine models.
[0029] The following will describe in detail the principles and implementation methods of a sewing machine electronic control communication system, method, electronic device and medium of this embodiment, so that those skilled in the art can understand the sewing machine electronic control communication system, method, electronic device and medium of this embodiment without creative labor.
[0030] Please see Figure 1 The diagram shown is a structural schematic of a sewing machine electronic control communication system according to an embodiment of this application.
[0031] This application provides a sewing machine electronic control communication system, including: a main electronic control device, several slave electronic control devices, several extended electronic control devices, a converter, and an extension device.
[0032] The sewing machine electronic control communication system described in this application is designed based on a master-slave architecture. The master electronic control device acts as the communication initiator, actively sending communication commands; while the slave and extended electronic control devices act as responders, passively responding to the communication commands issued by the master electronic control device. The extended electronic control devices have the same functions as the slave electronic control devices and possess flexible access characteristics, allowing for convenient configuration and use according to actual needs.
[0033] In one embodiment of this application, the switching device has a communication master node and communication slave nodes corresponding to the number of slave electronic control devices, the communication master node and the communication slave nodes are cascaded; the communication master node is used to access the master electronic control device; the communication slave nodes are used to access the slave electronic control devices.
[0034] Specifically, the communication master node can obtain the electrical control parameters of the master electrical control equipment, and can also collect information from other nodes in the system; the communication slave node can obtain the electrical control parameters of the corresponding slave electrical control equipment, and can also collect information from other nodes in the system.
[0035] In this embodiment, the communication master node and communication slave node can be dedicated modules with specific interfaces, or programmable logic controllers (PLCs) that integrate communication functions. This application does not impose specific restrictions on the physical form of the communication master node and communication slave node.
[0036] It should be noted that both the communication master node and the communication slave node in this application have high flexibility and availability. When facing high process requirements, such as the need to control more motors, the corresponding processing can be carried out on the communication master node; while when the requirements are relatively low, the processing can be carried out on the communication slave node.
[0037] Existing technologies are mostly limited to stand-alone operation, making it difficult to meet networking requirements. Conventional improvements often involve developing a new electronic control system with communication capabilities, but this is frequently time-consuming. In contrast, this application achieves multi-motor collaborative control through the cascading of multiple electronic control devices. In practical applications, cascading multiple electronic control devices can form a large workbench. This workbench can support more complex processes, such as integrating two processes into one, achieving a high degree of process integration. This innovative design effectively overcomes the limitations of single-chip processing capabilities and fully meets users' needs for new processes.
[0038] Please see Figure 2 The diagram shown is a structural schematic of a sewing machine electronic control communication system according to another embodiment of this application.
[0039] In one embodiment of this application, the communication master node is connected to the master electrical control device via an asynchronous serial communication protocol, and each of the communication slave nodes is connected to the corresponding slave electrical control device via an asynchronous serial communication protocol, forming a serial communication loop.
[0040] Existing sewing machine electronic control systems typically rely on synchronous serial communication for data transmission. This communication method generally involves sending the electronic control data to a switching device first, and only after the switching device receives the data and sends back a response is an interaction considered complete. This question-and-answer data transmission mode doubles the communication overhead and significantly reduces communication efficiency.
[0041] Furthermore, synchronous serial communication technology itself has many limitations. On the one hand, its data transmission rate is relatively low, making it unsuitable for the rapid transmission of large amounts of data. On the other hand, serial port speed is negatively correlated with transmission distance; as cable length increases, the risk of data loss rises significantly, severely limiting transmission distance. This makes the technology unsuitable for long-distance communication scenarios in large production equipment or complex production environments. Simultaneously, this inefficient communication mechanism severely hinders high-frequency data interaction between multiple devices, greatly limiting the performance of the entire system.
[0042] In this embodiment, the switching device interfaces with both the master and slave electrical control devices via asynchronous serial ports and performs high-speed mapping transmission according to the asynchronous serial communication protocol. During data transmission, independent sending and receiving channels are used, eliminating intermediate waiting processes, significantly reducing time costs, successfully solving the serial communication latency problem, and effectively improving data transmission efficiency.
[0043] In one embodiment of this application, the expansion device has expansion slave nodes corresponding to the number of expansion electronic control devices, and the expansion slave nodes are used to access the expansion electronic control devices; each of the communication slave nodes and each of the expansion slave nodes are connected to the communication master node through the CAN communication protocol to form a CAN communication loop.
[0044] Specifically, by extending the slave node, the electrical control parameters of the extended electrical control equipment can be obtained, and information from other nodes in the system can also be collected.
[0045] It should be noted that the CAN communication protocol used in this embodiment can be replaced with the non-standard RS-485 protocol according to actual needs. Other communication protocols with similar functions to the CAN communication protocol and the non-standard RS-485 protocol are also applicable to this application.
[0046] In one embodiment of this application, the CAN communication loop and the serial communication loop interact with each other based on a data mapping mechanism.
[0047] Specifically, the data mapping mechanism achieves seamless integration of heterogeneous networks through multi-level protocol conversion and dynamic address matching. The data mapping mechanism includes the following core features: First, it employs a field-level mapping table to convert the CAN frame identifier, data length code, and payload data into the baud rate, start bit, and byte stream format used in serial communication according to predefined rules. Second, it introduces dynamic buffer management, using a dual-ring queue structure to cache cross-protocol data in real time, ensuring rate adaptation between the high real-time performance of the CAN bus and the asynchronous transmission characteristics of the serial port. Third, it embeds a checksum conversion layer, performing bidirectional reversible mapping between CAN's CRC check and the serial port's parity check, while supporting error retransmission and data integrity verification. Furthermore, this mechanism integrates a priority mapping function, mapping the priority field of the CAN message ID to the interrupt preemption level in serial communication, thereby ensuring low-latency transmission of critical data at the hardware level.
[0048] In one embodiment of this application, the sewing machine electronic control communication system further includes: the adapter acquiring electronic control parameters in real time through the serial communication loop; the electronic control parameters including control commands generated by the main electronic control device for driving the target motor; the adapter mapping and transmitting the electronic control parameters to the node to which the target motor belongs through the CAN communication loop; the node to which the target motor belongs is a communication master node, a communication slave node, and / or an extended slave node; the adapter acquiring node parameters in real time through the CAN communication loop; the node parameters including available communication slave nodes and available extended slave nodes in the system; and the adapter synchronously updating the electronic control parameters in real time through the serial communication loop according to the node parameters.
[0049] The communication master node of this application can maintain a parameter list consisting of communication slave nodes and extended slave nodes through data interaction between the CAN communication loop and the serial communication loop, thereby refreshing the data in the dedicated area of the list in real time.
[0050] In this implementation, data mapping effectively decouples serial port data from the CAN network, enabling independent control of each node. While maintaining system decoupling, this allows for more complex machine designs, significantly accelerating the development of new sewing machine models.
[0051] Please see Figure 3 The diagram shows a communication interaction between the communication master node and the main power control device according to an embodiment of this application.
[0052] In one embodiment of this application, the step of the communication master node communicating with the main power control device via an asynchronous serial communication protocol includes: the main power control device and the communication master node performing a handshake to establish a sending channel and a response channel; the main power control device sending sending frames to the communication master node through the sending channel at a preset period; and the communication master node sending back receiving frames to the main power control device through the response channel at the same period.
[0053] In one embodiment of this application, the transmitted frame includes a frame header, check data, a process data object (PDO), and a service data object (SDO); the process data object and the service data object are arranged in an interleaved manner, wherein the number of bytes of the process data object corresponds to the number of all slave nodes in the system, and the service data object corresponds to different slave nodes in the system through a polling mechanism.
[0054] Specifically, PDO is an object type in CANopen networks used for real-time data transmission, transmitting real-time data from one node to other nodes. PDOs offer high real-time performance and low latency, making them suitable for applications requiring rapid data transfer. PDO data transmission is event-triggered; once a triggering event occurs, PDO data is transmitted immediately.
[0055] SDO is an object type in CANopen networks used for configuring and managing node parameters. It uses a request-response mechanism to read and write data. SDO is suitable for scenarios such as configuring node parameters, reading device status, and performing fault diagnosis. SDO data transmission is based on requests and responses, requiring interaction between nodes.
[0056] In this embodiment, the SDO uses a sequential polling mechanism, distributing it to different slave nodes in turn. The polling order of the SDO can be set by the user. For example, the current SDO may be distributed to the first communication slave node, and the next SDO may be distributed to the second communication slave node.
[0057] like Figure 2 As shown, the system includes one master electronic control unit, one slave electronic control unit, and two extended electronic control units. In this specific application scenario, after removing the frame header and checksum data, the transmitted frame contains three PDO data units and one SDO data unit. Similarly, the received frame also includes three PDO data units and one SDO data unit.
[0058] This implementation employs a frame structure combining multiple PDOs and interleaved SDOs. Compared to the traditional "1 frame header + 1 PDO + 1 checksum" mode, which is only suitable for single-node transmission, this approach enables the transmission of more data within the same time window. Furthermore, by utilizing a continuously incrementing index mechanism, this application can efficiently perform batch parameter read / write operations, significantly improving data transmission efficiency and effectively reducing bus load.
[0059] In one embodiment of this application, the received frame includes a frame header, verification data, a process data object, and a service data object; the process data object and the service data object are arranged in an interleaved manner, wherein the number of bytes of the process data object corresponds to the number of all slave nodes in the system, and the service data object corresponds to different slave nodes in the system through a polling mechanism.
[0060] It should be noted that the structure of the received frame in this embodiment is consistent with that of the sent frame. To avoid redundancy, its specific details and embodiments will not be repeated here.
[0061] In one embodiment of this application, the transmission of the service data object includes a normal transmission mode and an accelerated transmission mode.
[0062] In the normal transmission mode, the message data field of the service data object includes data to be transmitted for a single slave node. In the accelerated transmission mode, the message data field of the service data object includes data to be transmitted for multiple slave nodes. The data to be transmitted is write operation data or read operation data, wherein the write operation data includes a function code, a starting setting parameter index value, and a setting parameter set; the read operation data includes a function code, a starting monitoring parameter index value, and a monitoring parameter set.
[0063] In this embodiment, the normal transmission mode corresponds to the single-node transmission mechanism described above. After data is sent, it is necessary to wait for the other party to return an acknowledgment signal to confirm whether the write was successful. In contrast, the accelerated transmission mode adopts a non-acknowledgment feedback mechanism: after the parameters are sent, the system no longer returns simple acknowledgment information (such as confirmation that the parameters have been set), but directly sends back the monitored parameters. This reduces the bus load, thereby achieving more efficient data transmission and status monitoring.
[0064] Please see Figure 4 The diagram shows SDO write operation data and SDO read operation data according to an embodiment of this application.
[0065] like Figure 4 As shown, in the SD0 write operation data instruction, 00 represents the index number of the first parameter data below, then the index number of the second parameter data is incremented to 01, and the index number of the third parameter data is incremented to 02.
[0066] It should be noted that the length of the data to be transmitted is limited by the physical characteristics of the bus, and its total length cannot exceed 8 bytes. Therefore, for data exceeding the capacity of a single transmission, write or read operations can be performed in batches.
[0067] In one embodiment of this application, the extended device internally runs a configuration program, which is used to deploy CAN master or CAN slave functions for the extended slave node.
[0068] During data transmission, the CAN protocol data segment will accurately transmit different data content adapted to the specific type of the extended slave node.
[0069] In this implementation, this feature gives the system extremely high configurability, enabling the master-slave architecture constructed in this application to have the potential and ability to switch roles.
[0070] Please see Figure 5 The diagram shows a flowchart of a sewing machine electronic control communication method according to an embodiment of this application. Figure 5As shown, this application provides a sewing machine electronic control communication method, including the following steps S100 to S500.
[0071] In step S100, the main electrical control equipment is accessed through the communication master node of the switching device, and the slave electrical control equipment is accessed through the communication slave node of the switching device.
[0072] In step S200, a communication connection is established between the master communication node and the master electrical control device, and between each slave communication node and the slave electrical control device, based on the asynchronous serial communication protocol, to form a serial communication loop.
[0073] In step S300, the extended electronic control device is connected to the extended slave node through the extended device.
[0074] In step S400, a communication connection is established between each extended slave node of the extended device and the communication master node based on the CAN communication protocol, forming a CAN communication loop.
[0075] In step S500, data interaction is performed between the CAN communication loop and the serial communication loop based on the data mapping mechanism.
[0076] It should be noted that the sewing machine electronic control communication method described in this application embodiment can be applied to the sewing machine electronic control communication system described above. The structure and principle of the sewing machine electronic control communication system have been described in detail above, and therefore will not be repeated here.
[0077] The scope of protection of the sewing machine electronic control communication method described in this application is not limited to the execution order of the steps listed in this embodiment. Any solution implemented by adding, subtracting, or replacing steps in the prior art based on the principles of this application is included within the scope of protection of this application.
[0078] It should be noted that the sewing machine electronic control communication method described above can be applied to various types of hardware devices. The hardware device can be a computer including components such as a memory, memory controller, one or more processing units (CPUs), peripheral interfaces, RF circuits, audio circuits, speakers, microphones, input / output (I / O) subsystems, displays, other output or control devices, and external ports; the computer includes, but is not limited to, personal computers such as desktop computers, laptops, tablets, smartphones, smart TVs, and personal digital assistants (PDAs). In other embodiments, the hardware device can also be a local server or a cloud server. The server can be deployed on one or more physical servers depending on factors such as function and load, or it can be composed of distributed or centralized server clusters; this embodiment does not impose any limitations.
[0079] Please see Figure 6 The image shown is a schematic diagram of the structure of an electronic device according to an embodiment of this application. Figure 6 As shown, this application provides an electronic device, including a memory and a processor.
[0080] The memory is used to store computer programs.
[0081] The processor is configured to execute the computer program stored in the memory to cause the electronic device to perform any of the methods described above.
[0082] Preferably, the processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The memory can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0083] This embodiment also includes one or more of the following: a multimedia component, an input / output (I / O) interface, and a communication component.
[0084] The multimedia component may include a screen and an audio component. The screen may be, for example, a touchscreen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signals may be further stored in memory or transmitted via a communication component. The audio component also includes at least one speaker for outputting audio signals. The I / O interface provides an interface between the processor and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual or physical buttons. The communication component is used for wired or wireless communication between the timer and other devices. Wireless communication includes, for example, Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or a combination of these. Therefore, the corresponding communication component may include a Wi-Fi module, a Bluetooth module, or an NFC module.
[0085] In the embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, or methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of modules / units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or units may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection of apparatuses or modules or units may be electrical, mechanical, or other forms.
[0086] The modules / units described as separate components may or may not be physically separate. The components shown as modules / units may or may not be physical modules; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules / units can be selected to achieve the objectives of the embodiments of this application, depending on actual needs. For example, the functional modules / units in the various embodiments of this application may be integrated into one processing module, or each module / unit may exist physically separately, or two or more modules / units may be integrated into one module / unit.
[0087] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0088] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the methods described in any of the above embodiments. Those skilled in the art will understand that all or part of the steps in the methods of the above embodiments can be implemented by a program instructing a processor. The program can be stored in a computer-readable storage medium, which is a non-transitory medium, such as random access memory, read-only memory, flash memory, hard disk, solid-state drive, magnetic tape, floppy disk, optical disk, and any combination thereof. The storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., digital video disc (DVD)), or a semiconductor medium (e.g., solid-state disk (SSD)).
[0089] The descriptions of the processes or structures corresponding to the above figures each have their own emphasis. For parts of a process or structure that are not described in detail, please refer to the relevant descriptions of other processes or structures.
[0090] The above embodiments are merely illustrative of the principles and effects of this application and are not intended to limit this application. Any person skilled in the art can modify or alter the above embodiments without departing from the spirit and scope of this application. Therefore, all equivalent modifications or alterations made by those skilled in the art without departing from the spirit and technical concept disclosed in this application should still be covered by the claims of this application.
Claims
1. A sewing machine electronic control communication system, characterized in that, include: One main electrical control device, several slave electrical control devices, and several extended electrical control devices; The switching device has a communication master node and communication slave nodes corresponding to the number of slave electrical control devices, and the communication master node and the communication slave nodes are cascaded; the communication master node is used to connect to the master electrical control device, and the communication slave nodes are used to connect to the slave electrical control devices; the communication master node communicates with the master electrical control device through an asynchronous serial communication protocol, and each of the communication slave nodes communicates with its corresponding slave electrical control device through an asynchronous serial communication protocol, forming a serial communication loop; An expansion device has expansion slave nodes corresponding to the number of expansion electronic control devices. The expansion slave nodes are used to access the expansion electronic control devices. Each of the communication slave nodes and each of the expansion slave nodes are connected to the communication master node through the CAN communication protocol to form a CAN communication loop. The CAN communication loop and the serial communication loop interact with each other based on a data mapping mechanism.
2. The system according to claim 1, characterized in that, Also includes: The adapter acquires electrical control parameters in real time through the serial communication loop; the electrical control parameters include control commands generated by the main electrical control device for driving the target motor; The adapter transmits the electronic control parameters to the node to which the target motor belongs via the CAN communication loop. The node to which the target motor belongs is a communication master node, a communication slave node, and / or an extended slave node; The switching device acquires node parameters in real time through the CAN communication loop; the node parameters include available communication slave nodes and available extended slave nodes in the system. The switching device updates the electrical control parameters in real time through the serial communication loop based on the node parameters.
3. The system according to claim 1, characterized in that, The steps for the communication master node to communicate with the main electrical control equipment via an asynchronous serial communication protocol include: The main electrical control device and the communication master node perform a handshake to establish a transmission channel and a response channel; The main electrical control equipment sends transmission frames to the communication master node through the transmission channel according to a preset period; The communication master node transmits received frames back to the main electrical control equipment through the response channel at the same interval.
4. The system according to claim 3, characterized in that, The transmitted frame includes a frame header, check data, process data objects, and service data objects. The process data objects and service data objects are arranged in an interleaved manner. The number of bytes in the process data objects corresponds to the number of all slave nodes in the system, and the service data objects correspond to different slave nodes in the system through a polling mechanism.
5. The system according to claim 3, characterized in that, The received frame includes a frame header, verification data, process data objects, and service data objects. The process data objects and service data objects are arranged in an interleaved manner. The number of bytes in the process data objects corresponds to the number of all slave nodes in the system, and the service data objects correspond to different slave nodes in the system through a polling mechanism.
6. The system according to claim 4, characterized in that, The transmission of the service data object includes a normal transmission mode and an accelerated transmission mode. In the normal transmission mode, the message data field of the service data object includes data to be transmitted for a single slave node. In the accelerated transmission mode, the message data field of the service data object includes data to be transmitted for multiple slave nodes. The data to be transmitted is write operation data or read operation data, wherein the write operation data includes a function code, a starting setting parameter index value, and a setting parameter set; the read operation data includes a function code, a starting monitoring parameter index value, and a monitoring parameter set.
7. The system according to claim 1, characterized in that, The expansion device has a configuration program running internally, which is used to deploy CAN master or CAN slave functions for the expansion slave node.
8. A sewing machine electronic control communication method applied to the system of claim 1, characterized in that, include: The main electrical control equipment is accessed through the communication master node of the switching device, and the slave electrical control equipment is accessed through the communication slave node of the switching device. Based on the asynchronous serial communication protocol, communication connections are established between the communication master node and the master electrical control device, and between each of the communication slave nodes and the slave electrical control device, forming a serial communication loop; Extended access to the extended electrical control equipment is achieved through the expansion device; Based on the CAN communication protocol, a communication connection is established between each extended slave node of the extended device and the communication master node, forming a CAN communication loop; Data interaction is performed between the CAN communication loop and the serial communication loop based on a data mapping mechanism.
9. An electronic device, characterized in that, include: The memory is used to store computer programs; A processor for executing a computer program stored in the memory to cause the electronic device to perform the method of any one of claims 8.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 8.
Citation Information
Patent Citations
Intelligent switch for heavy truck
CN104375472A
Data transmission system and method based on UART series loop network
CN110059030A
Data interaction method and device and vehicle
CN113938347A
Communication system, method and device
CN115314864A
Integration gateway system of a different field busand the method
KR1020050111133A