CN114687083B - Time-sharing processing system - Google Patents
Time-sharing processing system Download PDFInfo
- Publication number
- CN114687083B CN114687083B CN202011628758.1A CN202011628758A CN114687083B CN 114687083 B CN114687083 B CN 114687083B CN 202011628758 A CN202011628758 A CN 202011628758A CN 114687083 B CN114687083 B CN 114687083B
- Authority
- CN
- China
- Prior art keywords
- communication module
- upgrade
- panel
- communication
- communication unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- D—TEXTILES; PAPER
- D05—SEWING; EMBROIDERING; TUFTING
- D05B—SEWING
- D05B69/00—Driving-gear; Control devices
-
- D—TEXTILES; PAPER
- D05—SEWING; EMBROIDERING; TUFTING
- D05B—SEWING
- D05B69/00—Driving-gear; Control devices
- D05B69/10—Electrical or electromagnetic drives
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
- G06F8/654—Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Mechanical Engineering (AREA)
- Textile Engineering (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Electromagnetism (AREA)
- Programmable Controllers (AREA)
Abstract
The application relates to a timesharing processing system, is applied to sewing machine, includes: motor controller, operating panel, upgrade control device and connector, wherein: the upgrade control device is respectively connected with the motor controller and the operation panel through connectors and comprises an upgrade communication module and a change-over switch which are electrically connected; the upgrading communication module comprises a first communication unit and a second communication unit, the switch comprises a fixed end, a first switch end and a second switch end, the fixed end is grounded, the first switch end is connected with the first communication unit, and the second switch end is connected with the second communication unit; the upgrade control device controls the switch to switch between the first switch end and the second switch end by controlling the switch, so as to realize time-sharing control of the upgrade communication module to update the configuration of the motor controller and the operation panel. According to the method and the device, the problem that the configuration of the motor controller and the operation panel cannot be updated through one connector in the related art is solved.
Description
Technical Field
The application relates to the technical field of control of sewing machines, in particular to a time-sharing processing system.
Background
In the control system of the sewing machine, due to the conditions of process improvement and the like, the program is sometimes required to be updated, and the configuration update of the motor controller or the operation panel is realized by respectively inserting the burner or the upgrade control device into different connectors in the traditional upgrade mode.
In the related art, for a sewing machine integrated machine having a relatively compact structure, it is necessary to reduce the number of connectors as much as possible, thereby reserving space for the layout of other elements in the sewing machine, and thus, the configuration update of the motor controller and the operation panel is realized by using one connector. However, since the operation panel, the motor controller, and the upgrade control device adopt serial communication, the same bus is used during communication, and abnormal conditions such as time sequence conflict easily occur, thereby causing the problem of update failure or error.
At present, an effective solution is not proposed for the problem that in the related art, the configuration of the motor controller and the operation panel cannot be updated through one connector.
Disclosure of Invention
The embodiment of the application provides a time-sharing processing system, which at least solves the problem that a motor controller and an operation panel cannot be updated through one connector in the related art.
In a first aspect, an embodiment of the present application provides a time-sharing processing system, which is applied to a sewing machine, including: motor controller, operating panel, upgrade control device and connector, wherein: the upgrade control device is connected with the motor controller and the operation panel through the connectors respectively;
The upgrade control device comprises an upgrade communication module and a change-over switch which are electrically connected, wherein the upgrade communication module comprises a first communication unit and a second communication unit, the change-over switch comprises a fixed end, a first change-over end and a second change-over end, the fixed end is grounded, the first change-over end is connected with the first communication unit, and the second change-over end is connected with the second communication unit;
when the change-over switch is switched to the first change-over end, the upgrade control device communicates with the motor controller through the first communication unit so as to update the configuration of the motor controller;
when the change-over switch is switched to the second change-over end, the upgrade control device communicates with the operation panel through the second communication unit so as to update the configuration of the operation panel.
In some of these embodiments, the motor controller includes an electronically controlled communication module; when the change-over switch is switched to the first switching end, the transmitting end of the first communication unit is in pairing communication with the receiving end of the electric control communication module, and is used for transmitting a first configuration updating signal to the electric control communication module and updating the configuration of the motor controller based on the first configuration updating signal;
The operation panel comprises a panel communication module; when the change-over switch is switched to the second change-over end, the sending end of the second communication unit performs pairing communication with the receiving end of the panel communication module, and is used for sending a second configuration update signal to the panel communication module, and performing configuration update on the operation panel based on the second configuration update signal.
In some embodiments, the upgrade control device further includes a first pull-up resistor and a second pull-up resistor, the first switching end is connected with the first communication unit through the first pull-up resistor, and the second switching end is connected with the second communication unit through the second pull-up resistor;
when the change-over switch is switched to the first switching end, the first communication unit detects low level and triggers the transmitting end of the first communication unit to carry out pairing communication with the receiving end of the electric control communication module; when the change-over switch is switched to the second change-over end, the second communication unit detects low level and triggers the transmitting end of the second communication unit to carry out pairing communication with the receiving end of the panel communication module.
In some embodiments, when the switch is switched to the first switching end, the first communication unit sends first upgrade data and/or a first password modification signal to the electronic control communication module, and upgrades the motor controller based on the first upgrade data and/or controls the motor controller to modify a password based on the first password modification signal;
when the change-over switch is switched to the first change-over end, the second communication unit sends second upgrading data or a second password modification signal to the panel communication module, and upgrades the operation panel based on the first upgrading data or controls the operation panel to modify the password based on the second password modification signal.
In some embodiments, the connector includes a first connection end and a second connection end, and the transmitting end of the first communication unit is connected with the first connection end; and the transmitting end of the second communication unit is connected with the second connecting end.
In some of these embodiments, the time-sharing processing system further includes a first transmission circuit and a second transmission circuit;
one end of the first transmission circuit is connected with the receiving end of the electric control communication module, and the other end of the first transmission circuit is respectively connected with the transmitting end of the panel communication module and the first connecting end of the connector and is used for transmitting communication data and signals among the electric control communication module, the panel communication module and the upgrading communication module;
One end of the second transmission circuit is connected with the transmitting end of the electric control communication module, and the other end of the second transmission circuit is respectively connected with the receiving end of the panel communication module and the second connecting end of the connector, and is used for transmitting data and signals communicated between the electric control communication module, the panel communication module and the upgrading communication module.
In some embodiments, the first transmission circuit includes a first isolation optocoupler, configured to isolate a power supply of the electronic control communication module from a power supply of the panel communication module, and transmit data and signals communicated between the electronic control communication module, the panel communication module, and the upgrade communication module; the second transmission circuit comprises a second isolation optocoupler, and is used for isolating the power supply of the electric control communication module from the power supply of the panel communication module and transmitting data and signals communicated among the electric control communication module, the panel communication module and the upgrade communication module.
In some embodiments, the electronic control communication module is configured to receive a first upgrade signal sent by the first communication unit, obtain first upgrade data sent by the first communication unit based on the first upgrade signal, and update data of a program flash area based on the first upgrade data, where the first upgrade data is used to upgrade the motor controller;
The panel communication module is used for receiving a second upgrading signal sent by the second communication unit, acquiring second upgrading data sent by the second communication unit based on the second upgrading signal, and updating data of a program flash area based on the second upgrading data, wherein the second upgrading data is used for upgrading the panel communication module.
In some embodiments, the panel communication module is further configured to determine whether the second upgrade signal is received within a preset time, and if the second upgrade signal is not received within the preset time, run a conventional program, and determine whether a preset identification parameter is changed;
and if the preset identification parameters are changed, sending a first communication signal to inform the motor controller of suspending communication, displaying a password modification interface to prompt a user to modify the password, and sending a second communication signal to inform the motor controller of recovering communication after modification is completed.
In some embodiments, the upgrade control apparatus further comprises a password modification module for communicating with the motor controller or the operation panel to control the motor controller or the operation panel to modify a password.
Compared with the related art, the time-sharing processing system provided by the embodiment of the application is applied to a sewing machine, and comprises: motor controller, operating panel, upgrade control device and connector, wherein: the upgrade control device is respectively connected with the motor controller and the operation panel through connectors; the upgrade control device comprises an upgrade communication module and a change-over switch which are electrically connected, wherein the upgrade communication module comprises a first communication unit and a second communication unit, the change-over switch comprises a fixed end, a first change-over end and a second change-over end, the fixed end is grounded, the first change-over end is connected with the first communication unit, and the second change-over end is connected with the second communication unit; when the change-over switch is switched to the first switching end, the upgrade control device communicates with the motor controller through the first communication unit so as to update the configuration of the motor controller; when the change-over switch is switched to the second switching end, the upgrade control device communicates with the operation panel through the second communication unit so as to perform configuration updating on the operation panel, and the problem that the configuration updating on the motor controller and the operation panel cannot be performed through one connector in the related art is solved.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the other features, objects, and advantages of the application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
FIG. 1 is a block diagram of a time-sharing processing system according to an embodiment of the present application;
FIG. 2 is a block diagram of a time-sharing processing system according to an embodiment of the present application;
FIG. 3 is a block diagram of a time-sharing processing system according to an embodiment of the present application;
FIG. 4 is a block diagram of a time-sharing processing system according to an embodiment of the present application;
FIG. 5 is a partial block diagram of a time-sharing processing system according to an embodiment of the present application;
FIG. 6 is a partial circuit diagram of a time-sharing processing system according to an embodiment of the present application;
FIG. 7 is a second partial circuit diagram of a time-sharing processing system according to an embodiment of the present application;
fig. 8 is a flow chart illustrating a communication principle of a time-sharing processing system according to an embodiment of the present application.
Description of the drawings: 100. a time-sharing processing system; 10. a motor controller; 11. an electric control communication module; 20. an operation panel; 21. a panel communication module; 30. upgrading the control device; 31. upgrading the communication module; 311. a first communication unit; 312. a second communication unit; 32. a change-over switch; 2. a fixed end; 3. a first switching terminal; 1. a second switching end; 33. a first pull-up resistor; 34. a first pull-up resistor; 40. a connector; 41. a first connection end; 42. a second connection end; 50. a first transmission circuit; 51. a first isolation optocoupler; 60. a second transmission circuit; 61. and a second isolation optocoupler.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described and illustrated below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden on the person of ordinary skill in the art based on the embodiments provided herein, are intended to be within the scope of the present application.
It is apparent that the drawings in the following description are only some examples or embodiments of the present application, and it is possible for those of ordinary skill in the art to apply the present application to other similar situations according to these drawings without inventive effort. Moreover, it should be appreciated that while such a development effort might be complex and lengthy, it would nevertheless be a routine undertaking of design, fabrication, or manufacture for those of ordinary skill having the benefit of this disclosure, and thus should not be construed as having the benefit of this disclosure.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is to be expressly and implicitly understood by those of ordinary skill in the art that the embodiments described herein can be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms used herein should be given the ordinary meaning as understood by one of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar terms herein do not denote a limitation of quantity, but rather denote the singular or plural. The terms "comprising," "including," "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to only those steps or elements but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. The terms "connected," "coupled," and the like in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as used herein refers to two or more. "and/or" describes an association relationship of an association object, meaning that there may be three relationships, e.g., "a and/or B" may mean: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship. The terms "first," "second," "third," and the like, as used herein, are merely distinguishing between similar objects and not representing a particular ordering of objects.
The various techniques described herein may be, but are not limited to, a time-sharing processing system for electronic devices such as sewing machines.
An embodiment of the present application provides a time-sharing processing system 100, which is applied to a sewing machine, fig. 1 is a block diagram of the time-sharing processing system of the embodiment of the present application, and as shown in fig. 1, the time-sharing processing system 100 includes: motor controller 10, operation panel 20, upgrade control device 30, and connector 40, wherein: the upgrade control apparatus 30 is connected to the motor controller 10 and the operation panel 20 through connectors 40, respectively.
The upgrade control device 30 includes an upgrade communication module 31 and a switch 32 that are electrically connected, the upgrade communication module 31 includes a first communication unit 311 and a second communication unit 312, the switch 32 includes a fixed end 2, a first switch end 3 and a second switch end 1, the fixed end 2 is grounded, the first switch end 3 is connected with the first communication unit 311, and the second switch end 1 is connected with the second communication unit 312.
When the switch 32 is switched to the first switching terminal 3, the upgrade control device 30 communicates with the motor controller 10 through the first communication unit 311 to perform configuration update on the motor controller 10; when the switch 32 is switched to the second switch 1, the upgrade control apparatus 30 communicates with the operation panel 20 through the second communication unit 312 to perform configuration update on the operation panel 20.
Specifically, when the switch 32 is switched to the first switch terminal 3, the fixed end 2 of the switch 32 is connected to the first switch terminal 3, and triggers the first communication unit 311 to communicate with the motor controller 10, so as to update the configuration of the motor controller 10. When the switch 32 is switched to the second switch terminal 1, the fixed end 2 of the switch 32 is connected to the second switch terminal 1, and triggers the second communication unit 312 to communicate with the operation panel 20, so as to update the configuration of the operation panel 20.
It should be noted that, in the present embodiment, the configuration update may be to upgrade the operation panel 20 or the motor controller 10, to control the operation panel 20 or the motor controller 10 to modify the password, or to modify a plurality of parameters or data in the operation panel 20 or the motor controller 10, which is not limited in the present embodiment.
It should be further noted that the upgrade control device 30 is connected to the motor controller 10 and the operation panel 20 through a connector 40, specifically, the upgrade control device 30 is connected to the connector 40, and outgoing connection lines are connected to the motor controller 10 and the operation panel 20, respectively.
The time-sharing processing system 100 provided in the present application is applied to a sewing machine, and includes: motor controller 10, operation panel 20, upgrade control device 30, and connector 40, wherein: the upgrade control apparatus 30 is connected to the motor controller 10 and the operation panel 20 through connectors 40, respectively. The upgrade control device 30 comprises an upgrade communication module 31 and a switch 32 which are electrically connected, the upgrade communication module 31 comprises a first communication unit 311 and a second communication unit 312, the switch 32 comprises a fixed end 2, a first switch end 3 and a second switch end 1, the fixed end 2 is grounded, the first switch end 3 is connected with the first communication unit 311, and the second switch end 1 is connected with the second communication unit 312; when the switch 32 is switched to the first switching terminal 3, the upgrade control device 30 communicates with the motor controller 10 through the first communication unit 311 to perform configuration update on the motor controller 10; when the switch 32 is switched to the second switch 1, the upgrade control apparatus 30 communicates with the operation panel 20 through the second communication unit 312 to perform configuration update on the operation panel 20. According to the method and the device, the switch 32 is arranged in the upgrade control device 30, and the port of the switch 32 is controlled to switch, so that the time-sharing communication between the first communication unit 311 and the second communication unit 312 in the upgrade communication module 31 is realized, and then the configuration update is carried out on the motor controller 10 and the operation panel 20 in a time-sharing manner, the problem that the same bus is easy to cause abnormal conditions such as time sequence conflict when the configuration update of the motor controller 10 and the operation panel 20 is realized by adopting one connector in the related art is avoided, the configuration update of the motor controller 10 and the operation panel 20 in a time-sharing manner is realized, and the problem that the configuration update cannot be carried out on the motor controller 10 and the operation panel 20 by adopting one connector in the related art is solved.
In addition, the configuration updating of the motor controller 10 and the operation panel 20 is realized in a time-sharing manner by adopting one connector, and the number of connectors is reduced as much as possible under the condition of meeting application requirements, so that space is reserved for the layout of other elements in the sewing machine, the structure of the sewing machine is more compact, the internal structure layout of the sewing machine is optimized, the multiple functions are realized, unnecessary material consumption is avoided, and the production cost is saved for enterprises.
In some embodiments, fig. 2 is a block diagram of a second structure of the time-sharing processing system according to the embodiment of the present application, as shown in fig. 2, the motor controller 10 includes an electronic control communication module 11; when the switch 32 is switched to the first switching end 3, the transmitting end of the first communication unit 311 performs pairing communication with the receiving end of the electronic control communication module 11, so as to send a first configuration update signal to the electronic control communication module 11, and perform configuration update on the motor controller 10 based on the first configuration update signal.
The operation panel 20 includes a panel communication module 21; when the switch 32 is switched to the second switching end 1, the transmitting end of the second communication unit 312 performs pairing communication with the receiving end of the panel communication module 21, so as to send a second configuration update signal to the panel communication module 21, and perform configuration update on the operation panel 20 based on the second configuration update signal.
Wherein the first configuration update signal is used for performing configuration update on the motor controller 10. The second configuration update signal is used to perform configuration update on the operation panel 20.
Further, the electronic control communication module 11 may be a single chip microcomputer, or may be other communication modules, which is not limited in this embodiment, as long as communication between the motor controller 10 and the upgrade control device 30 and the panel communication module 21 can be achieved.
Further, the panel communication module 21 may be a single chip microcomputer, or may be other communication modules, so long as the communication between the operation panel 20 and the upgrade control device 30 and the panel communication module 21 can be achieved.
Further, the first communication unit 311 may be a communication serial port or other communication units, which is not limited in this embodiment, as long as communication between the upgrade control apparatus 30 and the motor controller 10 can be achieved.
Further, the second communication unit 312 may be a communication serial port or other communication units, which is not limited in this embodiment, as long as communication between the upgrade control apparatus 30 and the operation panel 20 can be achieved.
In some embodiments, fig. 3 is a block diagram of a time sharing processing system according to the embodiment of the present application, as shown in fig. 3, the upgrade control device 30 further includes a first pull-up resistor 33 and a first pull-up resistor 34, the first switching terminal 3 is connected to the first communication unit 311 through the first pull-up resistor 33, and the second switching terminal 1 is connected to the second communication unit 312 through the first pull-up resistor 34.
When the switch 32 is switched to the first switching end 3, the first communication unit 311 detects a low level, and triggers the transmitting end of the first communication unit 311 to perform pairing communication with the receiving end of the electronic control communication module 11; when the switch 32 switches to the second switching terminal 1, the second communication unit 312 detects a low level, and triggers the transmitting terminal of the second communication unit 312 to perform pairing communication with the receiving terminal of the panel communication module 21.
In some embodiments, when the switch 32 is switched to the first switch end 3, the first communication unit 311 sends the first upgrade data and/or the first password modification signal to the electronic control communication module 11, and upgrades the motor controller 10 based on the first upgrade data and/or controls the motor controller 10 to modify the password based on the first password modification signal.
When the switch 32 is switched to the first switch 3, the second communication unit 312 sends the second upgrade data or the second password modification signal to the panel communication module 21, and upgrades the operation panel 20 based on the first upgrade data or controls the operation panel 20 to modify the password based on the second password modification signal.
In some embodiments, fig. 4 is a block diagram of a time-sharing processing system according to an embodiment of the present application, as shown in fig. 4, a connector 40 includes a first connection end 41 and a second connection end 42, where a transmitting end of the first communication unit 311 is connected to the first connection end 41; the transmitting end of the second communication unit 312 is connected to the second connection end 42.
Specifically, the transmitting end of the first communication unit 311 is connected to the first connection end 41, and the first connection end 41 is connected to the receiving end of the electronic control communication module 11, that is, the transmitting end of the first communication unit 311 is connected to the receiving end of the electronic control communication module 11 through the first connection end 41, so as to realize the transmission of the first upgrade data from the first communication unit 311 to the electronic control communication module 11.
The transmitting end of the second communication unit 312 is connected to the second connection end 42, and the second connection end 42 is connected to the receiving end of the panel communication module 21, that is, the transmitting end of the second communication unit 312 is connected to the receiving end of the panel communication module 21 through the first connection end 41, thereby realizing transmission of the second upgrade data from the second communication unit 312 to the electronic control communication module 11.
Further, the receiving end of the second communication unit 312 is connected to the first connection end 41, and is configured to receive the first handshake signal sent by the electronic control communication module 11 through the first connection end 41.
Further, the receiving end of the first communication unit 311 is connected to the second connection end 42, and is configured to receive the second handshake signal sent by the panel communication module 21 through the second connection end 42.
In some embodiments, fig. 5 is a partial block diagram of a time-sharing processing system according to an embodiment of the present application, and as shown in fig. 5, the time-sharing processing system 100 further includes a first transmission circuit 50 and a second transmission circuit 60; one end of the first transmission circuit 50 is connected to the receiving end of the electronic control communication module 11, and the other end is connected to the transmitting end of the panel communication module 21 and the first connecting end 41 of the connector 40, respectively, for transmitting communication data and signals between the electronic control communication module 11, the panel communication module 21 and the upgrade communication module 31.
One end of the second transmission circuit 60 is connected to the transmitting end of the electronic control communication module 11, and the other end is connected to the receiving end of the panel communication module 21 and the second connecting end 42 of the connector 40, respectively, for transmitting data and signals communicated between the electronic control communication module 11, the panel communication module 21 and the upgrade communication module 31.
In some embodiments, as shown in fig. 5, the first transmission circuit 50 includes a first isolation optocoupler 51, which is used to isolate the power supply of the electronic control communication module 11 from the power supply of the panel communication module 21, and transmit data and signals communicated between the electronic control communication module 11, the panel communication module 21 and the upgrade communication module 31; the second transmission circuit 60 includes a second isolation optocoupler 61 for isolating the power supply of the electronic control communication module 11 from the power supply of the panel communication module 21 and transmitting data and signals communicated between the electronic control communication module 11, the panel communication module 21 and the upgrade communication module 31.
It should be noted that, because the power supply of the electric control communication module 11 and the power supply of the panel communication module 21 are not grounded, a loop cannot be formed between them, and communication cannot be performed, based on this, the present embodiment implements separation of the power supply of the electric control communication module 11 and the power supply of the panel communication module 21 by providing the first isolation optocoupler 51 in the first transmission circuit 50 and providing the second isolation optocoupler 61 in the second transmission circuit 60, and implements transmission of communication signals and communication data between the electric control communication module 11 and the panel communication module 21 by the first isolation optocoupler 51 and the second isolation optocoupler 61.
Further, the first isolation optocoupler 51 includes a first transmitting element and a first photosensitive element, which are oppositely disposed, the first transmitting element is configured to convert an electrical signal in a communication process into an optical signal for transmission, and the first photosensitive element is configured to receive the optical signal transmitted by the first transmitting element, convert the optical signal into an electrical signal, and transmit the electrical signal to other elements in the first transmission circuit 50.
Further, the second isolation optocoupler 61 includes a second transmitting element and a second photosensitive element, where the second transmitting element is configured to convert an electrical signal in a communication process into an optical signal for transmission, and the second photosensitive element is configured to receive the optical signal transmitted by the second transmitting element, convert the optical signal into an electrical signal, and transmit the electrical signal to other elements in the second transmission circuit 60.
In some embodiments, the electronic control communication module 11 is configured to receive a first upgrade signal sent by the first communication unit 311, obtain first upgrade data sent by the first communication unit 311 based on the first upgrade signal, and update data of the program flash area based on the first upgrade data, where the first upgrade data is used to upgrade the motor controller 10.
The panel communication module 21 is configured to receive the second upgrade signal sent by the second communication unit 312, obtain second upgrade data sent by the second communication unit 312 based on the second upgrade signal, and update data of the program flash area based on the second upgrade data, where the second upgrade data is used to upgrade the panel communication module 21.
Further, the electronic control communication module 11 is configured to determine whether the first upgrade signal is received within a preset time, and if the first upgrade signal is received within the preset time, acquire first upgrade data sent by the first communication unit 311 based on the first upgrade signal, and update data of the program flash area based on the first upgrade data, where the first upgrade data is used to upgrade the motor controller 10.
Further, the panel communication module 21 is configured to determine whether the second upgrade signal is received within a preset time, and if the second upgrade signal is received within the preset time, acquire second upgrade data sent by the second communication unit 312 based on the second upgrade signal, and update data of the program flash area based on the second upgrade data, where the second upgrade data is used to upgrade the panel communication module 21.
In some embodiments, the panel communication module 21 is further configured to determine whether the second upgrade signal is received within a preset time, and if the second upgrade signal is not received within the preset time, run a conventional program, and determine whether the preset identification parameter is changed; if the preset identification parameters are changed, a first communication signal is sent to inform the motor controller 10 to stop communication, a password modification interface is displayed to prompt a user to modify the password, and a second communication signal is sent to inform the motor controller 10 to resume communication after modification is completed.
It should be noted that, the preset identification parameter is a preset fixed identification value, and is used for identifying whether the second password modification signal is received, if the preset identification parameter is changed, the received second password modification signal sent by the upgrade control device 30 is indicated, and the first communication signal is sent to inform the motor controller 10 to pause communication, so that the password modification interface is displayed to prompt the user to modify the password.
In some embodiments, the upgrade control apparatus 30 further comprises a password modification module for communicating with the motor controller 10 or the operation panel 20 to control the motor controller 10 or the operation panel 20 to modify the password.
The embodiments of the present application are further described and illustrated below by means of three specific examples.
In embodiment 1, the time-sharing processing system 100 includes: motor controller 10, operation panel 20, upgrade control device 30, and connector 40, wherein:
the upgrade control device 30 is connected with the motor controller 10 and the operation panel 20 through connectors 40 respectively, and comprises an upgrade communication module 31 and a switch 32 which are electrically connected, wherein the upgrade communication module 31 comprises a first communication unit 311, a second communication unit 312, a first pull-up resistor 33 and a first pull-up resistor 34, the switch 32 comprises a fixed end 2, a first switch end 3 and a second switch end 1, the fixed end 2 is grounded, the first switch end 3 is connected with the first communication unit 311 through the first pull-up resistor 33, and the second switch end 1 is connected with the second communication unit 312 through the first pull-up resistor 34.
The motor controller 10 includes an electronic control communication module 11; when the switch 32 is switched to the first switching end 3, the transmitting end of the first communication unit 311 performs pairing communication with the receiving end of the electronic control communication module 11, so as to send a first configuration update signal to the electronic control communication module 11, and perform configuration update on the motor controller 10 based on the first configuration update signal.
The operation panel 20 includes a panel communication module 21; when the switch 32 is switched to the second switching end 1, the transmitting end of the second communication unit 312 performs pairing communication with the receiving end of the panel communication module 21, so as to send a second configuration update signal to the panel communication module 21, and perform configuration update on the operation panel 20 based on the second configuration update signal.
In embodiment 2, the time-sharing processing system 100 includes: the motor controller 10, the operation panel 20, the upgrade control apparatus 30, the connector 40, and the first and second transmission circuits 50 and 60, wherein:
the upgrade control device 30 is connected with the motor controller 10 and the operation panel 20 through connectors 40 respectively, and comprises an upgrade communication module 31 and a switch 32 which are electrically connected, wherein the upgrade communication module 31 comprises a first communication unit 311, a second communication unit 312, a first pull-up resistor 33 and a first pull-up resistor 34, the switch 32 comprises a fixed end 2, a first switch end 3 and a second switch end 1, the fixed end 2 is grounded, the first switch end 3 is connected with the first communication unit 311 through the first pull-up resistor 33, and the second switch end 1 is connected with the second communication unit 312 through the first pull-up resistor 34.
The motor controller 10 includes an electronic control communication module 11; when the switch 32 is switched to the first switching end 3, the transmitting end of the first communication unit 311 performs pairing communication with the receiving end of the electronic control communication module 11, so as to send a first configuration update signal to the electronic control communication module 11, and perform configuration update on the motor controller 10 based on the first configuration update signal.
The operation panel 20 includes a panel communication module 21; when the switch 32 is switched to the second switching end 1, the transmitting end of the second communication unit 312 performs pairing communication with the receiving end of the panel communication module 21, so as to send a second configuration update signal to the panel communication module 21, and perform configuration update on the operation panel 20 based on the second configuration update signal.
One end of the first transmission circuit 50 is connected to the receiving end of the electronic control communication module 11, and the other end is connected to the transmitting end of the panel communication module 21 and the first connecting end 41 of the connector 40, respectively, for transmitting communication data and signals between the electronic control communication module 11, the panel communication module 21 and the upgrade communication module 31. One end of the second transmission circuit 60 is connected to the transmitting end of the electronic control communication module 11, and the other end is connected to the receiving end of the panel communication module 21 and the second connecting end 42 of the connector 40, respectively, for transmitting data and signals communicated between the electronic control communication module 11, the panel communication module 21 and the upgrade communication module 31.
The first transmission circuit 50 includes a first isolation optocoupler 51, which is configured to isolate the power supply of the electronic control communication module 11 from the power supply of the panel communication module 21, and transmit data and signals communicated between the electronic control communication module 11, the panel communication module 21, and the upgrade communication module 31; the second transmission circuit 60 includes a second isolation optocoupler 61 for isolating the power supply of the electronic control communication module 11 from the power supply of the panel communication module 21 and transmitting data and signals communicated between the electronic control communication module 11, the panel communication module 21 and the upgrade communication module 31.
In embodiment 3, the time-sharing processing system 100 includes: the motor controller 10, the operation panel 20, the upgrade control apparatus 30, the connector 40, and the first and second transmission circuits 50 and 60, wherein: the upgrade control device 30 is connected with the motor controller 10 and the operation panel 20 through connectors 40, and comprises an upgrade communication module 31 and a switch 32 which are electrically connected.
Fig. 6 is a partial circuit diagram of a time-sharing processing system according to an embodiment of the present application, as shown in fig. 6, the upgrade communication module 31 includes an upgrade single chip microcomputer U5, a first pull-up resistor 33, and a first pull-up resistor 34, where: the upgrading singlechip U5 comprises a first communication serial port IO0 and a second communication serial port IO1, R9 represents a first pull-up resistor 33, R10 represents a first pull-up resistor 34, S1 represents a change-over switch 32, the change-over switch 32 comprises a fixed end 2, a first change-over end 3 and a second change-over end 1, the fixed end 2 is grounded, the first change-over end 3 is connected with the first communication serial port IO0 through the first pull-up resistor R9, and the second change-over end 1 is connected with the second communication serial port IO1 through the second pull-up resistor R10. The other ends of the first pull-up resistor R9 and the second pull-up resistor R10 are respectively connected with VCC.
The connector 40 includes a second connector element P2, where a first connection pin 6 of the second connector element P2 is connected to a transmission pin TXD0 of the first communication serial port IO0 and a reception pin RXD1 of the second communication serial port IO1, and a second connection pin 5 of the second connector element P2 is connected to a reception pin RXD0 of the first communication serial port IO0 and a transmission pin TXD1 of the second communication serial port IO 1. The third connection pin 4 and the fourth connection pin 3 of the second socket element P2 are both connected to VCC, and the fifth connection pin 2 and the sixth connection pin 1 of the second socket element P2 are both grounded.
Fig. 7 is a partial circuit diagram of a time-sharing processing system according to an embodiment of the present application, as shown in fig. 7, the connector 40 further includes a first connector element P1, the second connector element P2 is connected with the first connector element P1 in a matching manner, the motor controller 10 includes an electric control communication module 11, and the electric control communication module 11 includes an electric control singlechip U1; the operation panel 20 comprises a panel communication module 21, and the panel communication module 21 comprises a panel singlechip U3;
one end of the first transmission circuit 50 is connected with a receiving pin of the electric control singlechip U1, and the other end of the first transmission circuit is respectively connected with a transmitting pin of the panel singlechip U3 and a first connecting pin 6 of the first connecting element P1, and is used for transmitting communication data and signals between the electric control singlechip U1, the panel singlechip U3 and the upgrade singlechip U5.
One end of the second transmission circuit 60 is connected with a sending pin of the electric control singlechip U1, and the other end is respectively connected with a receiving pin of the panel singlechip U3 and a first connecting pin 5 of the first plugging element P1, and is used for transmitting communication data and signals between the electric control singlechip U1, the panel singlechip U3 and the upgrade singlechip U5.
When the switch S1 is switched to the first switching end 3, the transmitting pin TXD0 of the first communication serial port IO0 is in paired communication with the receiving pin of the electronic control singlechip U1, and is used for transmitting first upgrade data and/or a first password modification signal to the electronic control singlechip U1, and upgrading the motor controller 10 based on the first upgrade data and/or controlling the motor controller 10 to modify the password based on the first password modification signal.
When the switch S1 is switched to the second switching end 1, the transmitting pin TXD1 of the second communication unit IO1 performs pairing communication with the receiving pin of the panel singlechip U3, so as to transmit second upgrade data and/or a second password modification signal to the panel singlechip U3, and upgrade the operation panel 20 based on the second upgrade data and/or control the operation panel 20 to modify the password based on the second password modification signal.
As shown in fig. 7, the first transmission circuit 50 includes a first isolation optocoupler 51, i.e. U2 in fig. 7, for isolating the power supply of the electronic control communication module 11 from the power supply of the panel communication module 21 and transmitting data and signals communicated between the electronic control communication module 11, the panel communication module 21 and the upgrade communication module 31; the second transmission circuit 60 includes a second isolation optocoupler 61, i.e. U4 in fig. 7, for isolating the power supply of the electronic control communication module 11 from the power supply of the panel communication module 21, and transmitting data and signals communicated between the electronic control communication module 11, the panel communication module 21, and the upgrade communication module 31.
It should be noted that, one of the second socket element P2 and the first socket element P1 that are connected in a matching manner is a male socket element, the other is a female socket element, if the first socket element P1 is a male socket element, the second socket element P2 is a female socket element, and if the first socket element P1 is a female socket element, the second socket element P2 is a male socket element, so long as the purpose that the second socket element P2 and the first socket element P1 are connected in a matching manner can be achieved without limitation.
Fig. 8 is a flow chart of the communication principle of the time-sharing processing system according to the embodiment of the present application, as shown in fig. 8,
when the power switch of the electric controller 10 is turned on, the electric control singlechip U1 and the panel singlechip U3 simultaneously run a BOOT program, wherein:
the electronic control singlechip U1 judges whether a first upgrade signal 0x0a sent by the upgrade control device 30 is received within a first preset time, if the first upgrade signal sent by the upgrade control device 30 is received within the first preset time, obtains first upgrade data based on the first upgrade signal, updates data of a program flash area based on the first upgrade data, prompts shutdown information after updating, and the first upgrade data is used for upgrading the motor controller 10.
If the electric control singlechip U1 does not receive the first upgrading signal sent by the upgrading control device 30 within the first preset time, a conventional program is operated, and whether the preset identification parameter U01 is changed is judged; if the preset identification parameter U01 has been changed, a first communication signal 0C is sent to notify the motor controller 10 to suspend communication, and it is determined whether a first password modification signal 0x0d sent by the upgrade control device 30 is received within a second preset time, if the first password modification signal 0x0d is received within the second preset time, a password modification interface is displayed to prompt the user to modify the password, and it is determined whether modification is completed (i.e. whether the P key is pressed), and after the modification is completed, a second communication signal 0E is sent to notify the motor controller 10 to resume communication.
The electric control singlechip U1 judges whether a second upgrade signal 0x0b sent by the upgrade control device 30 is received within a third preset time, if the second upgrade signal 0x0b sent by the upgrade control device 30 is received within the third preset time, second upgrade data is obtained based on the second upgrade signal 0x0b, data in a program flash area is updated based on the second upgrade data, shutdown information is prompted after the update is completed, and the second upgrade data is used for upgrading the operation panel 20.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.
Claims (9)
1. A time-sharing processing system applied to a sewing machine, comprising: motor controller, operating panel, upgrade control device and connector, wherein: the upgrade control device is connected with the motor controller and the operation panel through the connectors respectively;
the upgrade control device comprises an upgrade communication module and a change-over switch which are electrically connected, wherein the upgrade communication module comprises a first communication unit and a second communication unit, the change-over switch comprises a fixed end, a first change-over end and a second change-over end, the fixed end is grounded, the first change-over end is connected with the first communication unit, and the second change-over end is connected with the second communication unit;
When the change-over switch is switched to the first change-over end, the upgrade control device communicates with the motor controller through the first communication unit so as to update the configuration of the motor controller;
when the change-over switch is switched to the second change-over end, the upgrade control device communicates with the operation panel through the second communication unit so as to update the configuration of the operation panel;
the motor controller comprises an electric control communication module; when the change-over switch is switched to the first switching end, the transmitting end of the first communication unit is in pairing communication with the receiving end of the electric control communication module, and is used for transmitting a first configuration updating signal to the electric control communication module and updating the configuration of the motor controller based on the first configuration updating signal;
the operation panel comprises a panel communication module; when the change-over switch is switched to the second change-over end, the sending end of the second communication unit performs pairing communication with the receiving end of the panel communication module, and is used for sending a second configuration update signal to the panel communication module, and performing configuration update on the operation panel based on the second configuration update signal.
2. The time-sharing processing system according to claim 1, wherein the upgrade control device further comprises a first pull-up resistor and a second pull-up resistor, the first switching end is connected with the first communication unit through the first pull-up resistor, and the second switching end is connected with the second communication unit through the second pull-up resistor;
when the change-over switch is switched to the first switching end, the first communication unit detects low level and triggers the transmitting end of the first communication unit to carry out pairing communication with the receiving end of the electric control communication module; when the change-over switch is switched to the second change-over end, the second communication unit detects low level and triggers the transmitting end of the second communication unit to carry out pairing communication with the receiving end of the panel communication module.
3. The time-sharing processing system according to claim 1, wherein when the switch is switched to the first switch end, the first communication unit sends first upgrade data and/or a first password modification signal to the electronic control communication module, and upgrades the motor controller based on the first upgrade data and/or controls the motor controller to modify a password based on the first password modification signal;
When the change-over switch is switched to the first change-over end, the second communication unit sends second upgrading data or a second password modification signal to the panel communication module, and upgrades the operation panel based on the first upgrading data or controls the operation panel to modify the password based on the second password modification signal.
4. The time-sharing processing system according to claim 1, wherein the connector includes a first connection terminal and a second connection terminal, and the transmitting terminal of the first communication unit is connected to the first connection terminal; and the transmitting end of the second communication unit is connected with the second connecting end.
5. The time-sharing processing system of claim 4, further comprising a first transmission circuit and a second transmission circuit;
one end of the first transmission circuit is connected with the receiving end of the electric control communication module, and the other end of the first transmission circuit is respectively connected with the transmitting end of the panel communication module and the first connecting end of the connector and is used for transmitting communication data and signals among the electric control communication module, the panel communication module and the upgrading communication module;
One end of the second transmission circuit is connected with the transmitting end of the electric control communication module, and the other end of the second transmission circuit is respectively connected with the receiving end of the panel communication module and the second connecting end of the connector, and is used for transmitting data and signals communicated between the electric control communication module, the panel communication module and the upgrading communication module.
6. The time-sharing processing system according to claim 5, wherein the first transmission circuit comprises a first isolation optocoupler for isolating a power supply of the electronic control communication module from a power supply of the panel communication module and transmitting data and signals communicated between the electronic control communication module, the panel communication module and the upgrade communication module; the second transmission circuit comprises a second isolation optocoupler, and is used for isolating the power supply of the electric control communication module from the power supply of the panel communication module and transmitting data and signals communicated among the electric control communication module, the panel communication module and the upgrade communication module.
7. The time-sharing processing system according to claim 1, wherein the electronic control communication module is configured to receive a first upgrade signal sent by the first communication unit, obtain first upgrade data sent by the first communication unit based on the first upgrade signal, and update data of a program flash area based on the first upgrade data, where the first upgrade data is used to upgrade the motor controller;
The panel communication module is used for receiving a second upgrading signal sent by the second communication unit, acquiring second upgrading data sent by the second communication unit based on the second upgrading signal, and updating data of a program flash area based on the second upgrading data, wherein the second upgrading data is used for upgrading the panel communication module.
8. The time-sharing processing system according to claim 7, wherein the panel communication module is further configured to determine whether the second upgrade signal is received within a preset time, if the second upgrade signal is not received within the preset time, run a routine program, and determine whether a preset identification parameter is changed;
and if the preset identification parameters are changed, sending a first communication signal to inform the motor controller of suspending communication, displaying a password modification interface to prompt a user to modify the password, and sending a second communication signal to inform the motor controller of recovering communication after modification is completed.
9. The time-sharing processing system according to claim 1, wherein the upgrade control apparatus further comprises a password modification module for communicating with the motor controller or the operation panel to control the motor controller or the operation panel to modify a password.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011628758.1A CN114687083B (en) | 2020-12-30 | 2020-12-30 | Time-sharing processing system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011628758.1A CN114687083B (en) | 2020-12-30 | 2020-12-30 | Time-sharing processing system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114687083A CN114687083A (en) | 2022-07-01 |
CN114687083B true CN114687083B (en) | 2023-06-27 |
Family
ID=82134754
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011628758.1A Active CN114687083B (en) | 2020-12-30 | 2020-12-30 | Time-sharing processing system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114687083B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4160422A (en) * | 1978-09-18 | 1979-07-10 | The Singer Company | Programmable sewing system with auxiliary memory |
US5247449A (en) * | 1990-10-04 | 1993-09-21 | Brother Kogyo Kabushiki Kaisha | Sewing machine having a wireless controller |
JPH10225583A (en) * | 1997-02-14 | 1998-08-25 | Juki Corp | Motor control device |
CN104790128A (en) * | 2015-05-05 | 2015-07-22 | 杰克缝纫机股份有限公司 | Sewing-device upgrading device |
CN108103683A (en) * | 2017-12-14 | 2018-06-01 | 浙江众邦机电科技有限公司 | Sewing-machine equipment and its software program update device |
CN211878440U (en) * | 2020-05-08 | 2020-11-06 | 重庆欢腾科技有限公司 | Communication switching module and equipment testing system |
-
2020
- 2020-12-30 CN CN202011628758.1A patent/CN114687083B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4160422A (en) * | 1978-09-18 | 1979-07-10 | The Singer Company | Programmable sewing system with auxiliary memory |
US5247449A (en) * | 1990-10-04 | 1993-09-21 | Brother Kogyo Kabushiki Kaisha | Sewing machine having a wireless controller |
JPH10225583A (en) * | 1997-02-14 | 1998-08-25 | Juki Corp | Motor control device |
CN104790128A (en) * | 2015-05-05 | 2015-07-22 | 杰克缝纫机股份有限公司 | Sewing-device upgrading device |
CN108103683A (en) * | 2017-12-14 | 2018-06-01 | 浙江众邦机电科技有限公司 | Sewing-machine equipment and its software program update device |
CN211878440U (en) * | 2020-05-08 | 2020-11-06 | 重庆欢腾科技有限公司 | Communication switching module and equipment testing system |
Also Published As
Publication number | Publication date |
---|---|
CN114687083A (en) | 2022-07-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5573425A (en) | Communication cable used in a computer system | |
CN104835304B (en) | Bluetooth remote control device and its configuration method | |
KR101268099B1 (en) | Data update device for reprogramming ecu of automobile, connetion device and method thereof | |
CN103620572A (en) | Broadcast serial bus termination | |
CN105378666B (en) | Free-standing automation equipment and machine | |
US8934258B2 (en) | Motor controller | |
CN114687083B (en) | Time-sharing processing system | |
CN104539493B (en) | Based on the intelligent terminal that USB interface is realized to the managing and control system and its implementation of intelligent appliance | |
EP2289140A1 (en) | System and method for efficient association of a power outlet and device | |
CN105373422A (en) | Method for controlling terminal device to enter downloading mode, terminal device and computer device | |
CN108055212B (en) | Method and device compatible with PSE chip | |
CN109379110B (en) | Relay device with multiple parameter configuration modes and parameter configuration method thereof | |
US9343861B2 (en) | Communication module adaptor | |
JP2005115367A (en) | System, apparatus, and method for configuring display identification | |
JP2010171910A (en) | Onboard communication apparatus and communication control program | |
CN114465842A (en) | Communication system, household appliance equipment, remote upgrading system and communication method | |
EP3070601A1 (en) | Electric apparatus and method of updating firmware of electric apparatus | |
US8081652B2 (en) | Integrated universal input-output interface circuit | |
CN212586708U (en) | Household appliance | |
KR101892757B1 (en) | A home appliance and a control method the same | |
CN217739862U (en) | Control circuit | |
KR102121588B1 (en) | Appliance and quality control apparatus therefor | |
CN207833256U (en) | Formula radio power source control device within the walls for intelligent integrated control system | |
KR100479508B1 (en) | Apparatus of Controlling to Communicate with Other Boards using One Communication Port | |
JP4793003B2 (en) | Information storage device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |