Bus communication control method and related equipment for quilting system
Through dynamic matching, the bus communication method between the upper and lower computers of the quilting system is solved, and the communication efficiency and unreliability in the existing technology is achieved, and more efficient and reliable command frame transmission is achieved, which improves the quilting quality.
Patent Information
- Application Number
- CN202411991076.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-04-08
AI Technical Summary
In the existing quilting system, bus communication between the upper and lower computers has problems of inefficiency and unreliability, especially when dealing with super-large patterns, there is a lack of effective command frame bus communication interaction methods.
Provide a bus communication control method for quilting system, by obtaining the current status of the quilting system, dynamically adjusting the bus communication method between the upper and lower computers. When the system is in standby state, the instruction interaction is in the asynchronous form; when in the quilted state, the frame transmission process and frame transmission type based on the pattern link list are used to communicate with the dynamic matching of synchronous and asynchronous forms.
By flexibly adjusting the bus communication method, the reliability of command frame transmission between upper and lower computers is improved, thereby improving the quilting quality and overall performance of the system.
Smart Images

Figure CN119788452A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of quilting processing, and in particular to a bus communication control method of a quilting system and related equipment. Background Art
[0002] The quilting machine is an automated sewing equipment with high speed, high efficiency and high performance. It is a sewing machine in the home textile industry and clothing industry. In the quilting industry, the usual practice is that the upper computer sends the entire pattern to the lower computer, and relies on the lower computer to process and calculate the segmented stitches. This practice has certain performance requirements on the performance of the lower computer and is not conducive to processing super-large patterns (million stitches level).
[0003] Generally speaking, the performance of the upper computer is better than that of the lower computer. The upper computer calculates and divides the stitches of the quilting pattern, thereby forming a command frame to control the lower computer to complete the quilting. This solution transfers the computationally intensive work such as pattern processing from the lower computer to the higher-performance upper computer, which reduces the performance requirements of the lower computer and saves costs. In addition, the upper computer has a larger memory space, which is more conducive to processing very large patterns. After the upper computer in the prior art divides the quilting process, there is still a lack of an effective and reliable method for command frame bus communication interaction with the lower computer.
[0004] Therefore, the prior art still needs to be improved and developed. Summary of the invention
[0005] The present invention provides a bus communication control method and related equipment for a quilting system, aiming to solve the technical problems mentioned in the background technology of bus communication between a host computer and a slave computer of a quilting system in the prior art.
[0006] A first aspect of the present invention provides a bus communication control method for a quilting system, comprising the steps of:
[0007] Obtaining the current state of the quilting system;
[0008] If the quilting system is currently in a standby state, the bus communication between the upper computer and the lower computer is controlled to perform command interaction in an asynchronous form, and the asynchronous form is that the upper computer sends a command frame to the lower computer at a regular interval;
[0009] If the quilting system is currently in a quilting state, the bus communication between the upper computer and the lower computer is controlled based on the frame sending process and frame sending type of the pattern linked list to dynamically match the synchronous form and the asynchronous form to perform command interaction. The synchronous form is that the upper computer sends the command frame to the lower computer after receiving the interrupt signal sent by the lower computer.
[0010] Optionally, in some embodiments of the first aspect of the present invention, if the quilting system is currently in a standby state, controlling the bus communication between the upper computer and the lower computer to perform command interaction in an asynchronous form includes:
[0011] Controlling the host computer to cache the command frame into a preset frame cache queue at irregular intervals;
[0012] The upper computer is controlled to take out a frame of the command frame from the frame buffer queue at a first time interval, and send the command frame to the lower computer.
[0013] Optionally, in some implementations of the first aspect of the present invention, controlling the host computer to cache the command frame to a preset frame cache queue at irregular intervals includes:
[0014] Determine whether the command frame is an IO frame;
[0015] If the command frame is not the IO frame, buffering the command frame into a high priority subqueue of the frame buffer queue;
[0016] If the command frame is the IO frame, the command frame is cached in a low priority subqueue of the frame cache queue.
[0017] Optionally, in some embodiments of the first aspect of the present invention, if the quilting system is currently in a quilting state, controlling the bus communication between the upper computer and the lower computer based on the frame sending process and frame sending type of the pattern linked list to dynamically match the synchronous form and the asynchronous form to perform instruction interaction includes:
[0018] Controlling the upper computer to add the starting quilting frame in the pattern linked list to the high priority queue of the frame buffer queue, and sending it to the lower computer in the asynchronous form;
[0019] After the initial quilting frame is sent, the asynchronous mode is controlled to be closed and the synchronous mode is opened;
[0020] After the lower computer receives the start quilting frame, it controls the quilting spindle to rotate, and when the quilting spindle angle exceeds a preset angle, it controls the lower computer to generate an interrupt signal and sends the interrupt signal to the upper computer;
[0021] After receiving the interrupt signal, the upper computer sends the remaining command frames to the lower computer in sequence according to the pattern linked list.
[0022] Optionally, in some implementations of the first aspect of the present invention, after the upper computer receives the interrupt signal, sending the remaining command frames to the lower computer in sequence according to the pattern linked list includes:
[0023] If the type of the command frame sent by the upper computer to the lower computer according to the pattern linked list is a quilting frame, then after the second time of sending the quilting frame, the upper computer is controlled to send the IO frame to the lower computer once, wherein the upper computer is in an asynchronous form when sending the quilting frame and the IO frame to the lower computer.
[0024] Optionally, in some implementations of the first aspect of the present invention, after the upper computer receives the interrupt signal, sending the remaining command frames to the lower computer in sequence according to the pattern linked list further includes:
[0025] If the type of the command frame sent by the upper computer to the lower computer according to the pattern linked list is a jump line frame, then after the jump line frame is sent, the upper computer is controlled to send a cyclic IO frame to the lower computer, wherein the upper computer is in the asynchronous form when sending the jump line frame to the lower computer, and the upper computer is in a coexistence of the asynchronous form and the synchronous form when sending the IO frame to the lower computer.
[0026] Optionally, in some implementations of the first aspect of the present invention, after the upper computer receives the interrupt signal, sending the remaining command frames to the lower computer in sequence according to the pattern linked list further includes:
[0027] After the jumper is completed, the lower computer is controlled to generate the interrupt signal, and the interrupt signal is sent to the upper computer;
[0028] After the host computer receives the interrupt signal, the asynchronous mode between the host computer and the slave computer is closed, and after waiting for a third time, the host computer is controlled to continue to send the remaining command frames to the slave computer in sequence according to the pattern linked list.
[0029] A second aspect of the present invention provides a bus communication control device for a quilting system, comprising:
[0030] A state acquisition module, used to acquire the current state of the quilting system;
[0031] A standby communication module, used for controlling the bus communication between the upper computer and the lower computer to perform command interaction in an asynchronous form if the quilting system is currently in a standby state, wherein the upper computer periodically sends a command frame to the lower computer;
[0032] A quilting communication module is used to control the bus communication between the upper computer and the lower computer based on the frame sending process and frame sending type of the pattern linked list to dynamically match the synchronous form and the asynchronous form to perform command interaction if the quilting system is currently in a quilting state. The synchronous form is that the upper computer sends the command frame to the lower computer after receiving the interrupt signal sent by the lower computer.
[0033] A third aspect of the present invention provides a bus communication control device for a quilting system, the bus communication control device for the quilting system comprising: a memory and at least one processor, the memory storing instructions, the memory and the at least one processor being interconnected via a line;
[0034] The at least one processor calls the instructions in the memory so that the bus communication control device of the quilting system executes the bus communication control method of the quilting system as described in any one of the first aspects of the present invention.
[0035] A fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the bus communication control method for a quilting system as described in any one of the first aspects of the present invention is implemented.
[0036] Beneficial effects: The present invention discloses a bus communication control method and related equipment for a quilting system. The method includes obtaining the current state of the quilting system; if the quilting system is currently in a standby state, the bus communication between the upper computer and the lower computer is controlled to perform command interaction in an asynchronous form, and the asynchronous form is that the upper computer periodically sends command frames to the lower computer; if the quilting system is currently in a quilting state, the bus communication between the upper computer and the lower computer is controlled based on the frame sending process and frame sending type of the pattern linked list to dynamically match the synchronous form and the asynchronous form to perform command interaction, and the synchronous form is that the upper computer sends the command frame to the lower computer after receiving the interrupt signal sent by the lower computer. The quilting system of the present invention can flexibly adjust the bus communication mode when it is in different states, thereby ensuring the reliability of command frame transmission between the upper and lower computers, thereby improving the quilting quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 The figure is a flow chart of a bus communication control method of a quilting system according to an exemplary embodiment of the present invention.
[0038] Figure 2 The figure is a schematic diagram of the structure of an exemplary frame buffer queue of the present invention.
[0039] Figure 3This is a schematic diagram of a bus communication method of a quilting system in a standby state according to an exemplary embodiment of the present invention.
[0040] Figure 4 It is a schematic diagram of a bus communication mode of a quilting system in a quilting state according to an exemplary embodiment of the present invention.
[0041] Figure 5 The figure is a schematic diagram of the module composition of a bus communication control device of a quilting system according to an exemplary embodiment of the present invention.
[0042] Figure 6 It is a schematic diagram of the structure of a bus communication control device of a quilting system according to an exemplary embodiment of the present invention. DETAILED DESCRIPTION
[0043] The embodiments disclosed in the present invention are described in more detail below with reference to the accompanying drawings. Although certain embodiments disclosed in the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments disclosed in the present invention are only for exemplary purposes and are not intended to limit the scope of protection disclosed in the present invention.
[0044] In the description of the embodiments disclosed in the present invention, if there are terms, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The terms "first", "second", etc. can refer to different or the same objects. Other explicit and implicit definitions may also be included below.
[0045] In the quilting industry (including but not limited to quilt processing and pillowcase processing), generally speaking, the performance of the upper computer is better than that of the lower computer. The upper computer calculates and divides the stitches of the quilting pattern, thereby forming a command frame to control the lower computer to complete the quilting. The computationally intensive work such as pattern processing is transferred from the lower computer to the higher-performance upper computer, which reduces the performance requirements of the lower computer and saves costs. In order to make the communication between the upper computer and the lower computer of the quilting system more orderly and reliable, see Figure 1 The first aspect of the present invention provides a bus communication control method for a quilting system, comprising the steps of:
[0046] S100, obtaining the current state of the quilting system; in the present invention, the quilting system is divided into a quilting state and a standby state. Exemplarily, whether the current state of the quilting system is the quilting state or the standby state can be determined based on whether the quilting pattern list in the quilting system has been completely generated; the quilting system of the present invention includes an upper computer and a lower computer, the upper computer is mainly used to divide the quilting process into individual commands, and send them to the lower computer in the form of command frames, such as return to original, move frame, adjust shuttle and other commands, the lower computer completes the corresponding action according to the command frame sent by the upper computer, the quilting bus technology of the present invention is mainly used to process the command data interaction between the upper and lower computers.
[0047] S200. If the quilting system is currently in standby mode, the bus communication between the upper computer and the lower computer is controlled to perform command interaction in an asynchronous form, and the asynchronous form is that the upper computer periodically sends command frames to the lower computer; in the present invention, two threads (synchronous thread and asynchronous thread) are mainly used between the upper and lower computers to realize two different forms of data interaction (synchronous form and asynchronous form), the asynchronous form of data interaction: the upper computer actively sends a command frame to the lower computer at regular intervals, and the lower computer replies with a response frame after receiving it; the synchronous form of data interaction: the upper computer will send a command frame only after receiving an interrupt signal fed back by the lower computer, and the lower computer will reply with a response frame after receiving it.
[0048] In an optional implementation of the first aspect of the present invention, if the quilting system is currently in a standby state, controlling the bus communication between the upper computer and the lower computer to perform command interaction in an asynchronous form includes:
[0049] S201. Control the upper computer to cache command frames to a preset frame cache queue from time to time; in the present invention, command frames can be divided into two categories: IO frames and other frames, IO frames: mainly used for IO queries and status interaction between the upper and lower computers; other frames: mainly used to perform quilting-related actions, including quilting frames and jumper frames. The quilting frame means taking a stitch, that is, moving the frame once and inserting a needle at the same time; the jumper frame means only moving the frame to the target position, but not inserting a needle. When the system is in standby mode, the bus communication between the upper computer and the lower computer mainly exchanges data in an asynchronous form. At this time, the upper computer caches other frames to the high-priority queue from time to time. If the high-priority sub-queue is not empty, other frames are sent first. If the high-priority sub-queue is empty, the IO frame is sent. The priority of sending the IO frame is lower than that of other frames. Figure 2 shown.
[0050] In an optional implementation of the first aspect of the present invention, step S201 may specifically include: determining whether the command frame is an IO frame; if the command frame is not the IO frame, caching the command frame to a high-priority sub-queue of the frame buffer queue; if the command frame is the IO frame, caching the command frame to a low-priority sub-queue of the frame buffer queue.
[0051] S202, control the host computer to take out a frame of the command frame from the frame buffer queue every first time, and send the command frame to the slave computer. In the present invention, when the quilting system is in standby state, the bus communication between the host computer and the slave computer, the synchronous thread is closed, the asynchronous thread is opened, the asynchronous thread is executed every 50ms, and the data is exchanged with the slave computer. At this time, the bus state of the quilting is as follows: Figure 3 shown.
[0052] S300, if the quilting system is currently in the quilting state, then based on the frame sending process and frame sending type of the pattern linked list, the bus communication between the upper computer and the lower computer is controlled to dynamically match the synchronous form and the asynchronous form to perform command interaction, and the synchronous form is that the upper computer sends the command frame to the lower computer after receiving the interrupt signal sent by the lower computer. In the present invention, when the quilting system is in the quilting state, the upper computer has processed the quilting pattern into a pattern linked list, and the pattern linked list only contains quilting frames and jumper frames.
[0053] The bus communication between the upper computer and the lower computer changes dynamically according to the process: the quilting frame is added to the high priority queue and sent down in an asynchronous form. After the quilting frame is sent, the asynchronous thread is closed and the synchronous thread is opened; after the lower computer receives the quilting frame, the quilting spindle starts to rotate, and when the spindle angle exceeds 144°, a rising edge interrupt signal will be generated; after the upper computer receives the interrupt signal, it sends the remaining command frame data in sequence along the pattern linked list.
[0054] That is, in an optional implementation of the first aspect of the present invention, if the quilting system is currently in a quilting state, the bus communication between the upper computer and the lower computer is controlled based on the frame sending process and frame sending type of the pattern linked list to dynamically match the synchronous form and the asynchronous form to perform command interaction, including: controlling the upper computer to add the starting quilting frame in the pattern linked list to the high priority queue of the frame buffer queue, and sending it to the lower computer in the asynchronous form; after the starting quilting frame is sent, controlling the asynchronous form to be closed and opening the synchronous form at the same time; after the lower computer receives the starting quilting frame, controlling the quilting spindle to rotate, and when the quilting spindle angle exceeds the preset angle, controlling the lower computer to generate an interrupt signal and sending the interrupt signal to the upper computer; after the upper computer receives the interrupt signal, sending the remaining command frames to the lower computer in sequence according to the pattern linked list.
[0055] In the first aspect of the present invention, during the process of the upper computer sending command frame data to the lower computer along the pattern list, if the upper computer sends a quilting frame, then 5ms after the quilting frame is sent, an IO frame will be sent again, and the process is always in a synchronous state; if a jumper frame is sent, then after the jumper frame is sent, an asynchronous thread will be opened to send IO frames in a loop, and the process is a coexistence of synchronization and asynchronous; after the jumper is completed, an interrupt signal will be generated, and after the upper computer receives the interrupt signal, the asynchronous thread will be closed; after waiting for 20ms, data will continue to be sent along the pattern list, and the process is in a synchronous state. The bus status during quilting is as follows: Figure 4 shown.
[0056] That is, in an optional implementation manner of the first aspect of the present invention, after the upper computer receives the interrupt signal, sending the remaining command frames to the lower computer in sequence according to the pattern linked list includes:
[0057] If the type of the command frame sent by the upper computer to the lower computer according to the pattern linked list is a quilting frame, then after the second time of sending the quilting frame, the upper computer is controlled to send the IO frame to the lower computer once, wherein the upper computer is in an asynchronous form when sending the quilting frame and the IO frame to the lower computer.
[0058] If the type of the command frame sent by the upper computer to the lower computer according to the pattern linked list is a jump line frame, then after the jump line frame is sent, the upper computer is controlled to send a cyclic IO frame to the lower computer, wherein the upper computer is in the asynchronous form when sending the jump line frame to the lower computer, and the upper computer is in a coexistence of the asynchronous form and the synchronous form when sending the IO frame to the lower computer.
[0059] When the jumper is completed, the lower computer is controlled to generate the interrupt signal and send the interrupt signal to the upper computer; when the upper computer receives the interrupt signal, the asynchronous form between the upper computer and the lower computer is closed, and after waiting for the third time, the upper computer is controlled to continue to send the remaining command frames to the lower computer in sequence according to the pattern list. The method of sending the remaining command frames can refer to the method in which the upper computer sends the remaining command frames to the lower computer in sequence according to the pattern list, and the first aspect of the present invention will not be repeated here. The bus communication control of the quilting system of the present invention has been successfully applied to the quilting system independently developed by the company. At the end customer, the system has been able to operate maturely and stably.
[0060] In general, the bus communication control method of the quilting system provided by the present invention, when the quilting system is currently in the standby state, will control the bus communication between the upper computer and the lower computer to perform command interaction in an asynchronous form; when the quilting system is currently in the quilting state, it will control the bus communication between the upper computer and the lower computer to dynamically match the synchronous form and the asynchronous form to perform command interaction based on the frame sending process and frame sending type of the pattern linked list. The quilting system of the present invention can flexibly adjust the bus communication mode when it is in different states, especially after the quilting system enters the quilting state, the bus communication mode between the upper and lower computers is reasonably adapted according to the process of sending command frames in the pattern linked list and the type of command frames, thereby ensuring the reliability of command frame transmission between the upper and lower computers, thereby improving the quilting quality of the quilting system.
[0061] See also Figure 5 The second aspect of the present invention provides a bus communication control device for a quilting system, comprising:
[0062] A state acquisition module 10 is used to acquire the current state of the quilting system;
[0063] A standby communication module 20, for controlling the bus communication between the upper computer and the lower computer to perform command interaction in an asynchronous form if the quilting system is currently in a standby state, wherein the upper computer periodically sends a command frame to the lower computer;
[0064] The quilting communication module 30 is used to control the bus communication between the upper computer and the lower computer based on the frame sending process and frame sending type of the pattern linked list to dynamically match the synchronous form and the asynchronous form to perform command interaction if the quilting system is currently in the quilting state. The synchronous form is that the upper computer sends the command frame to the lower computer after receiving the interrupt signal sent by the lower computer.
[0065] In an optional implementation of the second aspect of the present invention, the standby communication module includes:
[0066] A command buffer unit, used to control the host computer to buffer command frames into a preset frame buffer queue at irregular intervals;
[0067] The command sending unit is used to control the upper computer to take out a frame of the command frame from the frame buffer queue at a first time interval and send the command frame to the lower computer.
[0068] In an optional implementation of the second aspect of the present invention, the command cache unit includes:
[0069] A frame type determination subunit, used to determine whether the command frame is an IO frame;
[0070] a high priority placement subunit, configured to cache the command frame into a high priority subqueue of the frame buffer queue if the command frame is not an IO frame;
[0071] The low priority placement subunit is used for caching the command frame into the low priority subqueue of the frame buffer queue if the command frame is an IO frame.
[0072] In an optional implementation of the second aspect of the present invention, the quilting communication module includes:
[0073] A starting frame sending unit, used for controlling the upper computer to add the starting quilting frame in the pattern linked list to the high priority queue of the frame buffer queue, and sending it to the lower computer in the asynchronous form;
[0074] A mode switching unit, used for controlling the asynchronous mode to be closed and the synchronous mode to be opened after the initial quilting frame is sent;
[0075] An interrupt signal feedback unit, used for controlling the rotation of the quilting spindle after the lower computer receives the start quilting frame, and controlling the lower computer to generate an interrupt signal when the quilting spindle angle exceeds a preset angle, and sending the interrupt signal to the upper computer;
[0076] The remaining command sending unit is used to send the remaining command frames to the lower computer in sequence according to the pattern linked list after the upper computer receives the interrupt signal.
[0077] In an optional implementation of the second aspect of the present invention, the remaining command sending unit includes:
[0078] A quilting frame sending subunit is used to control the upper computer to send the IO frame to the lower computer once after the second time of sending the quilting frame if the type of the command frame sent by the upper computer to the lower computer according to the pattern linked list is a quilting frame, wherein the upper computer is in an asynchronous form when sending the quilting frame and the IO frame to the lower computer.
[0079] In an optional implementation manner of the second aspect of the present invention, the remaining command sending unit further includes:
[0080] A jump frame sending subunit is used for controlling the upper computer to send a cyclic IO frame to the lower computer after the jump frame is sent if the type of the command frame sent by the upper computer to the lower computer according to the pattern linked list is a jump frame, wherein the upper computer is in the asynchronous form when sending the jump frame to the lower computer, and the asynchronous form and the synchronous form coexist when the upper computer sends the IO frame to the lower computer.
[0081] In an optional implementation manner of the second aspect of the present invention, the remaining command sending unit further includes:
[0082] A jumper interrupt subunit, used for controlling the lower computer to generate the interrupt signal and sending the interrupt signal to the upper computer after the jumper is completed;
[0083] The remaining command sending subunit is used to close the asynchronous form between the upper computer and the lower computer after the upper computer receives the interrupt signal, and after waiting for a third time, control the upper computer to continue to send the remaining command frames to the lower computer in sequence according to the pattern linked list.
[0084] Figure 6 It is a structural schematic diagram of a bus communication control device for a quilting system provided by an embodiment of the third aspect of the present invention. The bus communication control device 40 of the quilting system may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 50 (for example, one or more processors) and a memory 60, and one or more storage media 80 for storing application programs 70 or data (for example, one or more massive storage control devices). Among them, the memory and the storage medium may be short-term storage or permanent storage. The program stored in the storage medium may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the bus communication control device of the quilting system. Furthermore, the processor may be configured to communicate with the storage medium and execute a series of instruction operations in the storage medium on the bus communication control device of the quilting system.
[0085] The bus communication control device of the quilting system of the present invention may also include one or more power supplies 90, one or more wired or wireless network interfaces 100, one or more input and output interfaces 110, and / or one or more operating systems 120, such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD, etc. It will be understood by those skilled in the art that Figure 6 The bus communication control device structure of the quilting system shown does not constitute a limitation on the bus communication control device based on the quilting system, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.
[0086] The fourth aspect of the present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the bus communication control method of the quilting system.
[0087] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, a control device, or a control device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, a control device, or a control device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage control device, a magnetic storage control device, or any suitable combination of the foregoing.
[0088] In addition, although each operation is described in a specific order, this should be understood as requiring such operation to be performed in the specific order shown or in a sequential order, or requiring that all illustrated operations should be performed to obtain desired results. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single implementation in combination. On the contrary, the various features described in the context of a single implementation can also be implemented in multiple implementations individually or in any suitable sub-combination mode.
[0089] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A bus communication control method for a quilting system, characterized in that: Includes steps: Obtaining the current state of the quilting system; If the quilting system is currently in a standby state, the bus communication between the upper computer and the lower computer is controlled to perform command interaction in an asynchronous form, and the asynchronous form is that the upper computer sends a command frame to the lower computer at a regular interval; If the quilting system is currently in a quilting state, the bus communication between the upper computer and the lower computer is controlled based on the frame sending process and frame sending type of the pattern linked list to dynamically match the synchronous form and the asynchronous form to perform command interaction. The synchronous form is that the upper computer sends the command frame to the lower computer after receiving the interrupt signal sent by the lower computer.
2. The bus communication control method of the quilting system according to claim 1, characterized in that: If the quilting system is currently in a standby state, controlling the bus communication between the upper computer and the lower computer to perform command interaction in an asynchronous form includes: Controlling the host computer to cache the command frame into a preset frame cache queue at irregular intervals; The upper computer is controlled to take out a frame of the command frame from the frame buffer queue at a first time interval, and send the command frame to the lower computer.
3. The bus communication control method of the quilting system according to claim 2, characterized in that: The controlling the host computer to cache the command frame to a preset frame cache queue at irregular intervals includes: Determine whether the command frame is an IO frame; If the command frame is not the IO frame, buffering the command frame into a high priority subqueue of the frame buffer queue; If the command frame is the IO frame, the command frame is cached in a low priority subqueue of the frame cache queue.
4. The bus communication control method for a quilting system according to claim 3, characterized in that: If the quilting system is currently in a quilting state, the bus communication between the upper computer and the lower computer is controlled based on the frame sending process and frame sending type of the pattern linked list to dynamically match the synchronous form and the asynchronous form to perform instruction interaction, including: Controlling the upper computer to add the starting quilting frame in the pattern linked list to the high priority queue of the frame buffer queue, and sending it to the lower computer in the asynchronous form; After the initial quilting frame is sent, the asynchronous mode is controlled to be closed and the synchronous mode is opened; After the lower computer receives the start quilting frame, it controls the quilting spindle to rotate, and when the quilting spindle angle exceeds a preset angle, it controls the lower computer to generate an interrupt signal and sends the interrupt signal to the upper computer; After receiving the interrupt signal, the upper computer sends the remaining command frames to the lower computer in sequence according to the pattern linked list.
5. The bus communication control method of the quilting system according to claim 4, characterized in that: After the upper computer receives the interrupt signal, sending the remaining command frames to the lower computer in sequence according to the pattern linked list includes: If the type of the command frame sent by the upper computer to the lower computer according to the pattern linked list is a quilting frame, then after the second time of sending the quilting frame, the upper computer is controlled to send the IO frame to the lower computer once, wherein the upper computer is in an asynchronous form when sending the quilting frame and the IO frame to the lower computer.
6. The bus communication control method for a quilting system according to claim 5, characterized in that: After the upper computer receives the interrupt signal, sending the remaining command frames to the lower computer in sequence according to the pattern linked list further includes: If the type of the command frame sent by the upper computer to the lower computer according to the pattern linked list is a jump line frame, then after the jump line frame is sent, the upper computer is controlled to send a cyclic IO frame to the lower computer, wherein the upper computer is in the asynchronous form when sending the jump line frame to the lower computer, and the upper computer is in a coexistence of the asynchronous form and the synchronous form when sending the IO frame to the lower computer.
7. The bus communication control method for a quilting system according to claim 6, characterized in that: After the upper computer receives the interrupt signal, sending the remaining command frames to the lower computer in sequence according to the pattern linked list further includes: After the jumper is completed, the lower computer is controlled to generate the interrupt signal, and the interrupt signal is sent to the upper computer; After the host computer receives the interrupt signal, the asynchronous mode between the host computer and the slave computer is closed, and after waiting for a third time, the host computer is controlled to continue to send the remaining command frames to the slave computer in sequence according to the pattern linked list.
8. A bus communication control device for a quilting system, characterized in that: include: A state acquisition module, used to acquire the current state of the quilting system; A standby communication module, used for controlling the bus communication between the upper computer and the lower computer to perform command interaction in an asynchronous form if the quilting system is currently in a standby state, wherein the upper computer periodically sends a command frame to the lower computer; A quilting communication module is used to control the bus communication between the upper computer and the lower computer based on the frame sending process and frame sending type of the pattern linked list to dynamically match the synchronous form and the asynchronous form to perform command interaction if the quilting system is currently in a quilting state. The synchronous form is that the upper computer sends the command frame to the lower computer after receiving the interrupt signal sent by the lower computer.
9. A bus communication control device for a quilting system, characterized in that: The bus communication control device of the quilting system comprises: a memory and at least one processor, the memory stores instructions, and the memory and the at least one processor are interconnected via a line; The at least one processor calls the instructions in the memory so that the bus communication control device of the quilting system executes the bus communication control method of the quilting system as described in any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the processor, the bus communication control method of the quilting system as described in any one of claims 1-7 is implemented.