CN103677943B - A kind of sewing machine control method for upgrading software - Google Patents
A kind of sewing machine control method for upgrading software Download PDFInfo
- Publication number
- CN103677943B CN103677943B CN201310745228.9A CN201310745228A CN103677943B CN 103677943 B CN103677943 B CN 103677943B CN 201310745228 A CN201310745228 A CN 201310745228A CN 103677943 B CN103677943 B CN 103677943B
- Authority
- CN
- China
- Prior art keywords
- controller
- host computer
- sewing machine
- control method
- machine control
- 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
Landscapes
- Sewing Machines And Sewing (AREA)
Abstract
The present invention provides a kind of sewing machine control method for upgrading software, for being updated operation to the program in controller by host computer, comprises the following steps:It is provided for storing the application area of application program and the boot section for storing bootstrap loader in the memory space of the controller, and buffer area is set in the boot section;Set up the serial communication mechanism of the host computer and the controller;The host computer is made to update program transportation to the controller by serial port;The more new procedures received by serial port are loaded onto the buffer area;Receive after more new command, perform the bootstrap loader, extract more new procedures from the buffer area and write to the application area, to update the application program prestored, thereby account for sewing in the prior art all-in-one upgrading inconvenience the problem of.
Description
Technical field
The present invention relates to sewing machine field, the software upgrading technology of more particularly to a kind of all-in-one is more particularly, to stitched
Thread the AVR single chip method for upgrading software version of machine.
Background technology
In sewing machine field, due to technological innovation and the continuous improvement of people's demand, sewing all-in-one relies on volume, outward appearance
And high performance-price ratio is deeply welcomed by the people, and by the development trend as following sewing machine.AVR microcontrollers(Also known as AVR monolithics
Machine)Relatively broad application is obtained in sewing machine with abundant I/O interfaces, excellent performance and higher cost performance, AVR is micro-
The FLASH memory of controller is divided into application area and BOOTLOADER(Bootstrap loader)AVR programs, are typically placed on by area
In FLASH application area, and BOOTLOADER areas are unused.
In order to reduce the volume of sewing machine, generally motor control panel is installed to inside casing, therefore, ISP interfaces
It is hidden into casing, sewing machine will be taken apart during more new procedures every time, then is upgraded by ISP downloaders.And sew
Machine is with the continuous improvement of demand, and upgrading is carried out to product to be become more and more frequently, so to product up-gradation bring it is very big not
Just, and then the upgrade cost of product is improved.
Sewing machine control module is generally made up of motor driving and guidance panel, and drive part is arranged in casing, panel
Operation can be moved for convenience, and both are communicated by serial ports.Therefore, motor driving and guidance panel generally reserve serial ports
It is used as communication interface.Thus, it is existing to solve the invention reside in a kind of method that program renewal is realized using reserved serial ports is provided
There is the problem of product up-gradation is inconvenient in technology.
The content of the invention
The shortcoming of prior art in view of the above, it is an object of the invention to provide a kind of sewing machine control software liter
Level method, for solving the problem of upgrading of sewing all-in-one is inconvenient in the prior art.
In order to achieve the above objects and other related objects, the present invention provides a kind of sewing machine control method for upgrading software,
For being updated operation to the program in controller by host computer, comprise the following steps:It is empty in the storage of the controller
Between in be provided for storing the application area and boot section for storing bootstrap loader of application program, and draw described
Lead and buffer area is set in area;Set up the serial communication mechanism of the host computer and the controller;The host computer is made to pass through string
Row port will update program transportation to the controller;The more new procedures received by serial port are loaded onto the caching
Area;Receive after more new command, perform the bootstrap loader, extract more new procedures from the buffer area and write to described
Application area, to update the application program prestored.
In the step of the described serial communication mechanism for setting up the host computer and the controller, in addition to:Obtain
The chip information of the controller;The bit rate of serial communication is determined according to the chip information;According to the communication baud determined
Rate carries out serial communication test, and is placed in the host computer after test passes through and can receive the state of more new command.
Described sets up after the serial communication mechanism of the host computer and the controller, in addition to reads the application
Whether the step of version information of the application program stored in program area, it is newest version to judge the application program, if so,
The information that then output need not update;If it is not, then exporting renewable information.
The host computer will update the step of program transportation is to the controller by serial port also to be included by described in more
New procedures are compiled as after HEX files, and the controller is transferred to by serial port.
Receive after more new command, perform the bootstrap loader, the renewal of HEX files is extracted as from the buffer area
Program, and the HEX is write to the application area, and renewal completion information is fed back to the host computer.
The host computer is PC, or server.The controller is AVR single chip.
As described above, the sewing machine control method for upgrading software of the present invention, has the advantages that:
Compared with existing ISP downloaders carry out product up-gradation, technical solution of the present invention advantage is as follows:(1)Entered using serial ports
Row upgrading, it is not necessary to take sewing all-in-one apart;(2)Upgraded by the program stored in the BOOT areas of AVR chips, it is not necessary to
Extra downloader, saves substantial amounts of downloader cost;(3)Product up-gradation is carried out using upper computer software, flexible function can be with
Function is customized according to demand.
Brief description of the drawings
Fig. 1 is shown as the connection signal of the host computer and controller using sewing machine control method for upgrading software of the present invention
Figure.
Fig. 2 is shown as the flow chart of sewing machine control method for upgrading software of the present invention.
Component label instructions
1 host computer
2 controllers
S1~S5 steps
Embodiment
Illustrate embodiments of the present invention below by way of specific instantiation, those skilled in the art can be by this specification
Disclosed content understands other advantages and effect of the present invention easily.The present invention can also pass through specific realities different in addition
The mode of applying is embodied or practiced, the various details in this specification can also based on different viewpoints with application, without departing from
Various modifications or alterations are carried out under the spirit of the present invention.It should be noted that, in the case where not conflicting, following examples and implementation
Feature in example can be mutually combined.
It should be noted that the diagram provided in following examples only illustrates the basic structure of the present invention in a schematic way
Think, then in schema only display with relevant component in the present invention rather than according to component count, shape and the size during actual implement
Draw, it is actual when implementing, and kenel, quantity and the ratio of each component can be a kind of random change, and its assembly layout kenel
It is likely more complexity.
Referring to Fig. 1, being shown as the host computer and controller using sewing machine control method for upgrading software of the present invention
Connection diagram.As illustrated, the present invention provides a kind of sewing machine control method for upgrading software, for passing through 1 pair of host computer
Program in controller 2 is updated operation, in the present embodiment, and the host computer 1 is, for example, PC computers(PC or
Desktop computer)Or server(For example, application server), the controller 2 is AVR single chip.
Referring to Fig. 2, being shown as the flow chart of sewing machine control method for upgrading software of the present invention.As illustrated, described
Sewing machine control method for upgrading software comprises the following steps:
Step S1 is first carried out, is provided for storing the application program of application program in the memory space of the controller
Area(APP areas)And for storing bootstrap loader(BOOTLOADER)Boot section, and in the boot section set caching
Area, refers specifically to be used to be stored in follow-up more new procedures in the certain memory space of the guiding Division.
Then step S2 is performed, the serial communication mechanism of the host computer and the controller is set up;Specifically, will be described
Host computer and controller are attached by universal serial bus, and carry out initialization procedure, are comprised the following steps:
Obtain the chip information of the controller;Specifically, the mode of the chip information of the described acquisition controller
Known including host computer by the controller chip information prestored read in its internal storage space or inputted by user
Mode know.
Type according to chip after the host computer knows the chip information is determined at the serial communication of the chip
Baud rate(Baud rate, i.e. modulation rate).
Serial communication test is carried out according to the communication baud rate determined, and be placed in the host computer after test passes through can
Receive the state of more new command.Specifically, serial communication test be mainly used in testing host computer serial communication port and
The serial communication port of controller whether normal work, test the test such as accuracy of RS-232 Serial Control codes.
In the present embodiment, after serial communication mechanism of the host computer with the controller is set up, in addition to read
, i.e., there is institute before host computer judgement in the step of taking the version information of the application program stored in the application area
Whether be newest version, if so, then information of the output without renewal if stating the application program in controller application area;If
It is no, then export renewable information.Specifically, the host computer passes through application program in communication port Read Controller
Version information, and compared with the version of more new procedures that is stored in recently inside host computer, for example compare write time, version
Number, or other information is to determine whether application program is newest version in controller, if latest edition, then output need not
The information of renewal;If not latest edition, then output is, for example, to point out renewable information, to be confirmed whether needs pair using family
Controller software is upgraded.Step S3 is then performed if user confirms to need to upgrade, if user confirms to be risen
Level operation, then terminate.
In step s3, after serial communication test passes through, the host computer is made to pass more new procedures by serial port
It is defeated by the controller.In the present embodiment, the host computer will update program transportation to the controller by serial port
The step of also include the more new procedures are compiled as after HEX files, the controller is transferred to by serial port.
Then step S4 is performed, the more new procedures received by serial port are loaded onto the caching by the controller
Area;Specifically, the controller performs bootstrap loader, by bootstrap loader by being compiled as being received by serial ports
The more new procedures of HEX files are simultaneously cached into the buffer area.
Step S5 is finally performed, is received after more new command, the bootstrap loader is performed, extracted from the buffer area
More new procedures are simultaneously write to the application area, to update the application program prestored.In the present embodiment, host computer connects
The operation for receiving more new command is, for example, the more new command obtained by the input of user.Controller receives the more new command
When, bootstrap loader is performed, and application area is written to from buffer area by the more new procedures for being compiled as HEX files
In, instead of the application program being stored in before, to realize the software upgrading of the controller.
In summary, as described above, the sewing machine control method for upgrading software of the present invention, enters with existing ISP downloaders
Row product up-gradation is compared, and invention software upgrade method advantage is as follows:(1)Upgraded using serial ports, it is not necessary to take sewing apart
All-in-one;(2)Upgraded by the program stored in the BOOT areas of AVR chips, it is not necessary to extra downloader, save a large amount of
Downloader cost;(3)Product up-gradation is carried out using upper computer software, flexible function can customize function, institute according to demand
So that the present invention effectively overcomes various shortcoming of the prior art and has high industrial utilization.
The above-described embodiments merely illustrate the principles and effects of the present invention, not for the limitation present invention.It is any ripe
Know the personage of this technology all can carry out modifications and changes under the spirit and scope without prejudice to the present invention to above-described embodiment.Cause
This, those of ordinary skill in the art is complete without departing from disclosed spirit and institute under technological thought such as
Into all equivalent modifications or change, should by the present invention claim be covered.
Claims (6)
1. a kind of sewing machine control method for upgrading software, for being updated work to the program in controller by host computer
Industry, it is characterised in that the sewing machine control method for upgrading software comprises the following steps:
It is provided for storing the application area of application program in the memory space of the controller and adds for storing guiding
The boot section of load program, and buffer area is set in the boot section;
Set up the serial communication mechanism of the host computer and the controller;
The host computer is made to update program transportation to the controller by serial port;
The more new procedures received by serial port are loaded onto the buffer area;
Receive after more new command, perform the bootstrap loader, extract more new procedures from the buffer area and write to institute
Application area is stated, to update the application program prestored;
Described sets up after the serial communication mechanism of the host computer and the controller, in addition to reads the application program
The step of version information of the application program stored in area, whether be newest version, if so, then defeated if judging the application program
Go out the information without updating;If it is not, then exporting renewable information.
2. sewing machine control method for upgrading software according to claim 1, it is characterised in that:In described in described foundation
In the step of serial communication mechanism of host computer and the controller, in addition to:
Obtain the chip information of the controller;
The baud rate of serial communication is determined according to the chip information;
Serial communication test is carried out according to the communication bit rate determined, and the host computer is placed in and can received after test passes through
The state of more new command.
3. sewing machine control method for upgrading software according to claim 1, it is characterised in that:The host computer passes through string
Row port, which will update the step of program transportation is to the controller, also to be included the more new procedures being compiled as after HEX files, is led to
Cross serial port and be transferred to the controller.
4. sewing machine control method for upgrading software according to claim 3, it is characterised in that:Receive more new command
Afterwards, perform the bootstrap loader, be extracted as the more new procedures of HEX files from the buffer area, and by the HEX write to
The application area, and renewal completion information is fed back to the host computer.
5. sewing machine control method for upgrading software according to claim 1, it is characterised in that:The host computer is PC
Machine, or server.
6. sewing machine control method for upgrading software according to claim 1, it is characterised in that:The controller is AVR
Single-chip microcomputer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310745228.9A CN103677943B (en) | 2013-12-27 | 2013-12-27 | A kind of sewing machine control method for upgrading software |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310745228.9A CN103677943B (en) | 2013-12-27 | 2013-12-27 | A kind of sewing machine control method for upgrading software |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103677943A CN103677943A (en) | 2014-03-26 |
CN103677943B true CN103677943B (en) | 2017-08-15 |
Family
ID=50315600
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310745228.9A Active CN103677943B (en) | 2013-12-27 | 2013-12-27 | A kind of sewing machine control method for upgrading software |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103677943B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104199712A (en) * | 2014-09-29 | 2014-12-10 | 杰克缝纫机股份有限公司 | Quick update method for control panel of industrial sewing machine and control device of industrial sewing machine |
CN105279918A (en) * | 2015-09-30 | 2016-01-27 | 杰克缝纫机股份有限公司 | Wireless control system with video teaching and for sewing machines |
CN106873405A (en) * | 2015-12-11 | 2017-06-20 | 重庆川仪自动化股份有限公司 | Controller automatically configures device and its method of automatic configuration |
CN106648804A (en) * | 2016-12-30 | 2017-05-10 | 苏州英威腾电力电子有限公司 | Online upgrading method and controller |
CN107562664B (en) * | 2017-09-18 | 2023-07-25 | 深圳市泰比特科技有限公司 | SCM serial port upgrading device and circuit thereof |
CN108103683B (en) * | 2017-12-14 | 2020-07-28 | 浙江众邦机电科技有限公司 | Sewing machine equipment and software program upgrading device thereof |
CN111475179B (en) * | 2019-01-23 | 2023-10-03 | 北京新能源汽车股份有限公司 | Online software refreshing method and device, electronic control unit and upper computer |
CN111913728A (en) * | 2019-05-08 | 2020-11-10 | 杰克缝纫机股份有限公司 | Program upgrading method for sewing equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1960434A (en) * | 2006-11-16 | 2007-05-09 | 深圳创维-Rgb电子有限公司 | Method, devices, and facility for implementing upgrading TV system |
CN101221506A (en) * | 2007-01-12 | 2008-07-16 | 深圳市科陆电子科技股份有限公司 | Method for downloading and updating chip program of electric energy meter |
CN102662697A (en) * | 2012-03-27 | 2012-09-12 | 深圳市开立科技有限公司 | Software upgrading method and device |
CN103176815A (en) * | 2011-12-20 | 2013-06-26 | 陕西银星科技有限公司 | Sewing machine control method of carrying out software updating by utilizing external memory |
-
2013
- 2013-12-27 CN CN201310745228.9A patent/CN103677943B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1960434A (en) * | 2006-11-16 | 2007-05-09 | 深圳创维-Rgb电子有限公司 | Method, devices, and facility for implementing upgrading TV system |
CN101221506A (en) * | 2007-01-12 | 2008-07-16 | 深圳市科陆电子科技股份有限公司 | Method for downloading and updating chip program of electric energy meter |
CN103176815A (en) * | 2011-12-20 | 2013-06-26 | 陕西银星科技有限公司 | Sewing machine control method of carrying out software updating by utilizing external memory |
CN102662697A (en) * | 2012-03-27 | 2012-09-12 | 深圳市开立科技有限公司 | Software upgrading method and device |
Also Published As
Publication number | Publication date |
---|---|
CN103677943A (en) | 2014-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103677943B (en) | A kind of sewing machine control method for upgrading software | |
CN202956753U (en) | Programming device and programming system of flash memory chip in embedded system | |
CN102662708B (en) | A kind of (SuSE) Linux OS and video driver device thereof | |
CN102945173B (en) | User program online upgrade system and upgrade method | |
CN108279935A (en) | A kind of os starting bootstrap technique for system on chip | |
US8959324B2 (en) | Dual OS system using a smart SIM module and controlling method thereof | |
US7908417B2 (en) | Motherboard system, storage device for booting up thereof and connector | |
CN103677915B (en) | A method of card is started based on TF and carries out the automatic programming of flash mirror | |
CN103473102B (en) | The system start-up bootstrap technique of multiple operating system and instrument | |
CN102662717A (en) | Bootstrap starting method of embedded system | |
CN103678175B (en) | A kind of address hiding method and embedded device based on address hiding technology | |
CN104156234B (en) | Start the method and device of multi-core processor, the big small end mode adaptives of bootloader | |
WO2018053910A1 (en) | Method and system for improving universality of refrigerator controller, and refrigerator | |
CN104899091A (en) | Multi-operating system switching method of intelligent embedded equipment | |
CN102662749A (en) | Method and device for realizing switching between dual Boots | |
CN104360867A (en) | Method for switching 32-bit Windows system and 64-bit Android system based on Intel X86 | |
WO2017066194A1 (en) | Data driven embedded application building and configuration | |
CN103268241A (en) | Method for achieving hiding or display of hard disk partitions in BIOS | |
CN106775897B (en) | Method and system for starting driver of set top box | |
CN105759778A (en) | Heat-pump water heater control and debugging system and debugging method thereof | |
CN102375749B (en) | Method for quickly downloading and updating firmware by using I2C (Inter-Integrated Circuit) bus | |
CN201837857U (en) | Modularized embedded control device for movement-oriented rescue robot | |
CN103176815A (en) | Sewing machine control method of carrying out software updating by utilizing external memory | |
CN107885630A (en) | A kind of programmable virtual keyboard detecting device and method | |
WO2017088531A1 (en) | Tigersharc series dsp start-up management chip and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |