CN103677943A - Upgrading method of control software of sewing machine - Google Patents

Upgrading method of control software of sewing machine Download PDF

Info

Publication number
CN103677943A
CN103677943A CN201310745228.9A CN201310745228A CN103677943A CN 103677943 A CN103677943 A CN 103677943A CN 201310745228 A CN201310745228 A CN 201310745228A CN 103677943 A CN103677943 A CN 103677943A
Authority
CN
China
Prior art keywords
controller
host computer
sewing machine
software upgrade
area
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.)
Granted
Application number
CN201310745228.9A
Other languages
Chinese (zh)
Other versions
CN103677943B (en
Inventor
甘海春
车景国
朱良华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Zobow Mechanical and Electrical Tech Co Ltd
Original Assignee
Zhejiang Zobow Mechanical and Electrical Tech Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Zhejiang Zobow Mechanical and Electrical Tech Co Ltd filed Critical Zhejiang Zobow Mechanical and Electrical Tech Co Ltd
Priority to CN201310745228.9A priority Critical patent/CN103677943B/en
Publication of CN103677943A publication Critical patent/CN103677943A/en
Application granted granted Critical
Publication of CN103677943B publication Critical patent/CN103677943B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Sewing Machines And Sewing (AREA)

Abstract

The invention provides an upgrading method of control software of a sewing machine. The upgrading method is used for upgrading a procedure on a controller through an upper computer. The upgrading method comprises the following steps that an application procedure area and a guide area are arranged in storage space of the controller, the application procedure area is used for storing an application procedure, the guide area is used for storing a guide loading procedure, and a caching area is arranged in the guide area; a serial communication mechanism of the upper computer and the controller is built; the upper computer transmits an upgrading procedure to the controller through a serial port; the upgrading procedure received through the serial port is loaded to the caching are; after an upgrading instruction is received, the guide loading procedure is executed, and the upgrading procedure is extracted from the caching area and written into the application procedure area so that the pre-stored application procedure is upgraded. Thus, the problem that a sewing all-in-one machine is inconvenient to upgrade in the prior art is solved.

Description

A kind of sewing machine controller software upgrade method
Technical field
The present invention relates to sewing machine field, particularly a kind of software upgrading technology of all-in-one, relates in particular to the AVR scm software version upgrading method for sewing machine.
Background technology
In sewing machine field, due to improving constantly of technological innovation and people's demand, sewing all-in-one relies on volume, outward appearance and high performance-price ratio deeply welcomed by the people, and will become the development trend of following sewing machine.AVR microcontroller (also claiming AVR single-chip microcomputer) obtains applying comparatively widely with the I/O interface enriching, excellent performance and higher cost performance in sewing machine, the FLASH storer of AVR microcontroller is divided into application area and BOOTLOADER(bootstrap loader) district, generally AVR program is placed in the application area of FLASH, and BOOTLOADER district does not use.
In order to reduce the volume of sewing machine, conventionally motor control panel is installed to casing the inside, therefore, ISP interface is also hidden in casing, during each refresh routine, all sewing machine will be taken apart, relends and helps ISP downloader to upgrade.And sewing machine is along with the improving constantly of demand, product is upgraded becomes more and more frequent, brings very large inconvenience like this to product up-gradation, and then has improved the upgrade cost of product.
Sewing machine control module conventionally by motor, is driven and guidance panel forms, and drive part is arranged in casing, and panel can move for handled easily, and both communicate by serial ports.Therefore, motor driving and guidance panel are reserved serial ports conventionally as communication interface.Thereby, the invention reside in a kind of method of utilizing reserved serial ports to realize program updates that provides, to solve the problem of product up-gradation inconvenience in prior art.
Summary of the invention
The shortcoming of prior art, the object of the present invention is to provide a kind of sewing machine controller software upgrade method in view of the above, for solving the prior art all-in-one inconvenient problem of upgrading of sewing.
For achieving the above object and other relevant objects, the invention provides a kind of sewing machine controller software upgrade method, for the program of controller being upgraded to operation by host computer, comprise the following steps: in the storage space of described controller, be provided for storing the application area of application program and for storing the boot section of bootstrap loader, and in described boot section, buffer area be set; Set up the serial communication mechanism of described host computer and described controller; Make described host computer, by serial port, refresh routine is transferred to described controller; The refresh routine receiving by serial port is loaded on to described buffer area; Receive after update instruction, carry out described bootstrap loader, from described buffer area, extract refresh routine and write to described application area, to upgrade pre-stored application program.
In the step of the described serial communication mechanism of setting up described host computer and described controller, also comprise: the chip information that obtains described controller; According to described chip information, determine the bit rate of serial communication; Carry out serial communication test according to definite communication baud rate, and test by after described host computer is placed in to the state that can receive update instruction.
After the described serial communication mechanism of setting up described host computer and described controller, the step that also comprises the version information that reads the application program of storing in described application area, judge whether described application program is up-to-date version, if so, export without the information of upgrading; If not, export renewable information.
The step that described host computer is transferred to described controller by serial port by refresh routine also comprises described refresh routine is compiled as after HEX file, by serial port, is transferred to described controller.
Receive after update instruction, carry out described bootstrap loader, from described buffer area, be extracted as the refresh routine of HEX file, and described HEX is write to described application area, and feedback has been upgraded information to described host computer.
Described host computer is PC, or server.Described controller is AVR single-chip microcomputer.
As mentioned above, sewing machine controller software upgrade method of the present invention, has following beneficial effect:
Carry out product up-gradation with existing ISP downloader and compare, technical solution of the present invention advantage is as follows: (1) utilizes serial ports to upgrade, and does not need to take apart sewing all-in-one; (2) by the program of the BOOT district storage at AVR chip, upgrade, do not need extra downloader, save a large amount of downloader costs; (3) utilize upper computer software to carry out product up-gradation, flexible function, according to demand customization function.
Accompanying drawing explanation
Fig. 1 is shown as the host computer of application sewing machine controller software upgrade method of the present invention and the connection diagram of controller.
Fig. 2 is shown as the process flow diagram of sewing machine controller software upgrade method of the present invention.
Element numbers explanation
1 host computer
2 controllers
S1~S5 step
Embodiment
Below, by specific instantiation explanation embodiments of the present invention, those skilled in the art can understand other advantages of the present invention and effect easily by the disclosed content of this instructions.The present invention can also be implemented or be applied by other different embodiment, and the every details in this instructions also can be based on different viewpoints and application, carries out various modifications or change not deviating under spirit of the present invention.It should be noted that, in the situation that not conflicting, the feature in following examples and embodiment can combine mutually.
It should be noted that, the diagram providing in following examples only illustrates basic conception of the present invention in a schematic way, satisfy and only show with assembly relevant in the present invention in graphic but not component count, shape and size drafting while implementing according to reality, during its actual enforcement, kenel, quantity and the ratio of each assembly can be a kind of random change, and its assembly layout kenel also may be more complicated.
Refer to Fig. 1, be shown as the host computer of application sewing machine controller software upgrade method of the present invention and the connection diagram of controller.As shown in the figure, the invention provides a kind of sewing machine controller software upgrade method, for upgrading operation by the program of 1 pair of controller 2 of host computer, in the present embodiment, described host computer 1 is for example PC computing machine (PC or desktop computer) or server (being for example application server), and described controller 2 is AVR single-chip microcomputer.
Refer to Fig. 2, be shown as the process flow diagram of sewing machine controller software upgrade method of the present invention.As shown in the figure, described sewing machine controller software upgrade method comprises the following steps:
First perform step S1, in the storage space of described controller, be provided for storing the application area (APP district) of application program and for storing the boot section of bootstrap loader (BOOTLOADER), and in described boot section, buffer area is set, specifically refer in described boot section, divide certain storage space for depositing follow-up refresh routine in.
Then perform step S2, set up the serial communication mechanism of described host computer and described controller; Particularly, described host computer is connected by universal serial bus with controller, and carries out initialization operation, comprise the following steps:
Obtain the chip information of described controller; Particularly, the mode of the described chip information that obtains described controller comprises that host computer knows by the mode that reads the controller chip information prestoring in its internal storage space and know or input by user.
After knowing described chip information, described host computer is determined at the serial communication baud rate (Baud rate, i.e. modulation rate) of described chip according to the type of chip.
Carry out serial communication test according to definite communication baud rate, and test by after described host computer is placed in to the state that can receive update instruction.Particularly, described serial communication test is mainly used in testing the serial communication port of host computer and whether the serial communication port of controller normally works, the tests such as accuracy of test RS-232 Serial Control code.
In the present embodiment, after setting up the serial communication mechanism of described host computer and described controller, the step that also comprises the version information that reads the application program of storing in described application area, before described host computer judgement, have whether the application program in described controller application area is up-to-date version, if so, export without the information of upgrading; If not, export renewable information.Particularly, described host computer is by the version information of application program in communication port Read Controller, and the version of the refresh routine depositing in recently with host computer inside compares, for example compare the write time, version number, or other information take to determine in controller, whether application program is up-to-date version, if latest edition is exported without the information of upgrading; If not latest edition, output example, as for the renewable information of prompting, is confirmed whether to upgrade to controller software in order to user.If user confirms to need upgrading, then perform step S3, if user confirms to carry out updating operation, finish.
In step S3, after serial communication test is passed through, make described host computer, by serial port, refresh routine is transferred to described controller.In the present embodiment, the step that described host computer is transferred to described controller by serial port by refresh routine also comprises described refresh routine is compiled as after HEX file, by serial port, is transferred to described controller.
Then perform step S4, described controller is loaded on described buffer area by the refresh routine receiving by serial port; Particularly, described controller is carried out bootstrap loader, by bootstrap loader by the refresh routine that is compiled as HEX file receiving by serial ports and by its buffer memory to described buffer area.
Finally perform step S5, receive after update instruction, carry out described bootstrap loader, from described buffer area, extract refresh routine and write to described application area, to upgrade pre-stored application program.In the present embodiment, the update instruction that the operational example of host computer reception update instruction obtains as the input for by user.When controller receives described update instruction, carry out bootstrap loader, and from buffer area, the refresh routine of the described HEX of being compiled as file is written to application area, the application program depositing in before replacing, to realize the software upgrading of described controller.
In sum, as mentioned above, sewing machine controller software upgrade method of the present invention, carries out product up-gradation with existing ISP downloader and compares, and method for upgrading software advantage of the present invention is as follows: (1) utilizes serial ports to upgrade, and does not need to take apart sewing all-in-one; (2) by the program of the BOOT district storage at AVR chip, upgrade, do not need extra downloader, save a large amount of downloader costs; (3) utilize upper computer software to carry out product up-gradation, flexible function, customization function according to demand, so the present invention has effectively overcome various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all can, under spirit of the present invention and category, modify or change above-described embodiment.Therefore, such as in affiliated technical field, have and conventionally know that the knowledgeable, not departing from all equivalence modifications that complete under disclosed spirit and technological thought or changing, must be contained by claim of the present invention.

Claims (7)

1. a sewing machine controller software upgrade method, for by host computer, the program of controller being upgraded to operation, is characterized in that, described sewing machine controller software upgrade method comprises the following steps:
In the storage space of described controller, be provided for storing the application area of application program and for storing the boot section of bootstrap loader, and in described boot section, buffer area be set;
Set up the serial communication mechanism of described host computer and described controller;
Make described host computer, by serial port, refresh routine is transferred to described controller;
The refresh routine receiving by serial port is loaded on to described buffer area;
Receive after update instruction, carry out described bootstrap loader, from described buffer area, extract refresh routine and write to described application area, to upgrade pre-stored application program.
2. sewing machine controller software upgrade method according to claim 1, is characterized in that: in the step of the described serial communication mechanism of setting up described host computer and described controller, also comprise:
Obtain the chip information of described controller;
According to described chip information, determine the baud rate of serial communication;
Carry out serial communication test according to definite communication bit rate, and test by after described host computer is placed in to the state that can receive update instruction.
3. sewing machine controller software upgrade method according to claim 1, it is characterized in that: after the described serial communication mechanism of setting up described host computer and described controller, the step that also comprises the version information that reads the application program of storing in described application area, judge whether described application program is up-to-date version, if so, export without the information of upgrading; If not, export renewable information.
4. sewing machine controller software upgrade method according to claim 1, it is characterized in that: the step that described host computer is transferred to described controller by serial port by refresh routine also comprises described refresh routine is compiled as after HEX file, by serial port, is transferred to described controller.
5. sewing machine controller software upgrade method according to claim 4, it is characterized in that: receive after update instruction, carry out described bootstrap loader, from described buffer area, be extracted as the refresh routine of HEX file, and described HEX is write to described application area, and feedback has been upgraded information to described host computer.
6. sewing machine controller software upgrade method according to claim 1, is characterized in that: described host computer is PC, or server.
7. sewing machine controller software upgrade method according to claim 1, is characterized in that: described controller is AVR single-chip microcomputer.
CN201310745228.9A 2013-12-27 2013-12-27 A kind of sewing machine control method for upgrading software Active CN103677943B (en)

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 true CN103677943A (en) 2014-03-26
CN103677943B 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)

Cited By (8)

* Cited by examiner, † Cited by third party
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
CN106648804A (en) * 2016-12-30 2017-05-10 苏州英威腾电力电子有限公司 Online upgrading method and controller
CN106873405A (en) * 2015-12-11 2017-06-20 重庆川仪自动化股份有限公司 Controller automatically configures device and its method of automatic configuration
CN107562664A (en) * 2017-09-18 2018-01-09 深圳市泰比特科技有限公司 A kind of microcontroller serial port update device and its circuit
CN108103683A (en) * 2017-12-14 2018-06-01 浙江众邦机电科技有限公司 Sewing-machine equipment and its software program update device
CN111475179A (en) * 2019-01-23 2020-07-31 北京新能源汽车股份有限公司 Software online flashing 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)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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

Cited By (11)

* Cited by examiner, † Cited by third party
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
CN107562664A (en) * 2017-09-18 2018-01-09 深圳市泰比特科技有限公司 A kind of microcontroller serial port update device and its circuit
CN107562664B (en) * 2017-09-18 2023-07-25 深圳市泰比特科技有限公司 SCM serial port upgrading device and circuit thereof
CN108103683A (en) * 2017-12-14 2018-06-01 浙江众邦机电科技有限公司 Sewing-machine equipment and its software program update device
CN108103683B (en) * 2017-12-14 2020-07-28 浙江众邦机电科技有限公司 Sewing machine equipment and software program upgrading device thereof
CN111475179A (en) * 2019-01-23 2020-07-31 北京新能源汽车股份有限公司 Software online flashing method and device, electronic control unit and upper computer
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

Also Published As

Publication number Publication date
CN103677943B (en) 2017-08-15

Similar Documents

Publication Publication Date Title
CN103677943A (en) Upgrading method of control software of sewing machine
CN102609286B (en) A kind of FPGA configurator remote update system based on processor control and method thereof
KR101330508B1 (en) Bios configuration update technique
US8484631B2 (en) Supporting hardware configuration changes in a UEFI firmware component
US8312444B2 (en) Method for optimizing memory modules for user-specific environments
CN202956753U (en) Programming device and programming system of flash memory chip in embedded system
CN105204899A (en) Realization of network-based singlechip firmware upgrading method
US7908417B2 (en) Motherboard system, storage device for booting up thereof and connector
CN102662717A (en) Bootstrap starting method of embedded system
CN103677915B (en) A method of card is started based on TF and carries out the automatic programming of flash mirror
CN102169459A (en) Method, device and intelligent card for accessing data
CN103761088A (en) Multiple operation system switching method applicable to ARM (advanced risc machine) framework mobile equipment
CN105264506A (en) Assigning processors to memory mapped configuration
CN103853586A (en) Method of realizing wireless card driver in UEFI (unified extensible firmware interface) layer
CN114153779B (en) I2C communication method, system, equipment and storage medium
CN105718281A (en) Touch screen firmware upgrading method and device
US20170102924A1 (en) Software architecture for embedded systems
US9672047B1 (en) Systems and methods for accessing a bootable partition on a serial peripheral interface device
WO2017066194A1 (en) Data driven embedded application building and configuration
CN103268241A (en) Method for achieving hiding or display of hard disk partitions in BIOS
CN104156234A (en) Multi-core processor starting and bootloader big-little endian mode adapting method device
CN103761129A (en) Method of implementing SDIO (secure digital input/output) interface drive in Boot loader layer
CN108334413A (en) Information transmitting methods between a kind of firmware and operating system based on platform of soaring
CN108255510A (en) One kind is based on IAP online upgradings firmware transfer check design method to be upgraded
CN114816491A (en) System upgrading method and device for multi-system mobile terminal and terminal

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