[go: up one dir, main page]

HK1120127A1 - A code upgrading device, method and system - Google Patents

A code upgrading device, method and system Download PDF

Info

Publication number
HK1120127A1
HK1120127A1 HK08113453.5A HK08113453A HK1120127A1 HK 1120127 A1 HK1120127 A1 HK 1120127A1 HK 08113453 A HK08113453 A HK 08113453A HK 1120127 A1 HK1120127 A1 HK 1120127A1
Authority
HK
Hong Kong
Prior art keywords
upgraded
code
machine code
equipment
serial port
Prior art date
Application number
HK08113453.5A
Other languages
Chinese (zh)
Other versions
HK1120127B (en
Inventor
帆 张
聂湖清
Original Assignee
深圳创维-Rgb电子有限公司
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 深圳创维-Rgb电子有限公司 filed Critical 深圳创维-Rgb电子有限公司
Publication of HK1120127A1 publication Critical patent/HK1120127A1/en
Publication of HK1120127B publication Critical patent/HK1120127B/en

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides a code upgradation device, which is applicable for the electronic technology field, and comprises: a receiving unit, which is used for receiving a machine code to be upgraded; a storage unit, which is used for storing the machine code to be upgraded; a sending unit, which is used for sending the machine code to be upgraded; an MCU microcontroller, which is used for writing the machine code to be upgraded received from the receiving unit into the storage unit, as well as reading the machine code to be upgraded stored in the storage unit and sending the machine code to the sending unit. The code upgradation method comprises the following steps: the code upgradation device sends the stored machine code to be upgraded to an equipment to be upgraded; after the equipment to be upgraded receives the machine code to be upgraded, the code can be updated and upgraded. The invention doesn't require taking with a notebook computer, maintenance personnel of customer service can also carry through code updating and upgrading to television in the home of user; the trouble of only upgrading code through computer is completely solved and the maintenance cost is greatly reduced.

Description

Code upgrading device, code upgrading method and system
Technical Field
The invention belongs to the technical field of electronics, and particularly relates to a code upgrading device, a code upgrading method and a code upgrading system.
Background
With the rapid development of science and technology, the upgrading of digital electronic products is a day-to-day difference, and its functions are also endlessly developed, which, however, makes the whole product system very large. At the beginning of the product, some BUG or incomplete functions are inevitable, and therefore, the software of the original system needs to be updated and upgraded. At present, the update method commonly adopted is to achieve code update by communicating a computer with a device to be updated. For the television industry, once the television software in the home of a user has a problem, customer service personnel need to go to the home in time to upgrade the codes of the television of the user, and the first upgrading method is adopted: disassembling the rear cover, and directly replacing an MCU (Multipoint Control Unit); the second method comprises the following steps: and directly carrying out ISP upgrading on the MCU in the television by using the computer. However, the cost is increased for the method, which is not only unwilling for the user to see, but also troublesome for the maintenance personnel; for the second method, the maintenance personnel is required to carry the notebook computer, which undoubtedly increases the maintenance cost and is inconvenient.
Disclosure of Invention
The embodiment of the invention aims to provide a code upgrading device, and aims to solve the problems that in the prior art, a computer needs to be used for connecting and communicating with equipment to be upgraded to achieve code upgrading and the maintenance cost is high.
Another object of the embodiments of the present invention is to provide a code upgrading method;
another object of an embodiment of the present invention is to provide a code upgrading system;
the embodiment of the present invention is implemented as follows, in which a code upgrading apparatus includes:
the receiving unit is used for establishing connection with a computer through a serial port line and receiving the machine code to be upgraded sent by the computer;
the storage unit is used for storing the machine code to be upgraded;
the sending unit is used for establishing connection with equipment to be upgraded through a VGA line and sending the machine code to be upgraded to the equipment to be upgraded;
the MCU is used for writing the machine code to be upgraded received from the receiving unit into the storage unit, reading the machine code to be upgraded stored in the storage unit, sending the machine code to be upgraded to the sending unit, and indicating that the code starts to be updated by controlling the indicator light of the key to be lightened until the indicator light of the key is turned off to indicate that the code is updated; after the MCU microcontroller is connected with a computer by a self-set communication protocol, a serial port tool window is opened by the computer, a Write button of the serial port tool window is controlled, whether a Write-in progress bar appears in the serial port tool window or not is judged, if yes, the Write-in progress bar is indicated to be normal, a machine code to be upgraded is sent to the MCU microcontroller according to a certain baud rate until the completion of the programming is prompted by the serial port tool window; otherwise, the communication is indicated to have a problem and the line needs to be checked.
A method of code upgrade, the method comprising the steps of:
after the MCU microcontroller of the code upgrading device is connected with a computer by a self-set communication protocol, opening a serial port tool window by using the computer, controlling a Write button of the serial port tool window, judging whether a Write-in progress bar appears on the serial port tool window, if so, indicating that the Write-in is normal, sending a machine code to be upgraded into the MCU microcontroller according to a certain baud rate until the serial port tool window prompts that the Write-in is finished; otherwise, the communication is indicated to have problems and the line needs to be checked; the code upgrading device is connected with the equipment to be upgraded through a VGA line and sends the stored machine code to be upgraded to the equipment to be upgraded; the specific implementation process is as follows: pressing a key on the code upgrading device, sending the stored machine code to be upgraded to the equipment to be upgraded by the code upgrading device, and indicating that the code starts to be updated by lightening an indicator light of the key until the indicator light of the key is turned off to indicate that the code is updated;
after receiving the sent machine code to be upgraded, the MCU of the device end to be upgraded writes the machine code to be upgraded into the AP Flash of the MCU through an interface function in the BootLoader so as to update and upgrade the code of the MCU.
A code upgrade system, the code upgrade system comprising:
the system comprises a code upgrading device, a computer, a serial port tool window, a Write button, a machine code and a machine code, wherein after the MCU microcontroller of the code upgrading device is connected with the computer by a self-determined communication protocol, the computer is used for opening the serial port tool window, controlling the Write button of the serial port tool window, judging whether the Write-in progress bar appears on the serial port tool window, if so, indicating that the Write-in is normal, and sending the machine code to be upgraded into the MCU microcontroller according to a certain baud rate until the serial port tool window prompts that the Write-in is finished; otherwise, the communication is indicated to have problems and the line needs to be checked; the code upgrading device is connected with equipment to be upgraded through a VGA line and transmits the stored machine code to be upgraded to the equipment to be upgraded; the specific implementation process is as follows: pressing a key on the code upgrading device, sending the stored machine code to be upgraded to the equipment to be upgraded by the code upgrading device, and indicating that the code starts to be updated by lightening an indicator light of the key until the indicator light of the key is turned off to indicate that the code is updated;
and the equipment to be upgraded writes the received machine code to be upgraded into the AP Flash of the MCU of the equipment to be upgraded through an interface function in the BootLoader so as to update and upgrade the code of the equipment to be upgraded.
In the embodiment of the invention, the code upgrading device for storing the machine code to be upgraded is connected and communicated with the equipment to be upgraded, and the machine code to be upgraded is transmitted to the equipment to be upgraded, so that the code of the equipment to be upgraded is updated and upgraded. The invention does not need to carry a notebook computer, and the customer service maintenance personnel can update and upgrade the codes of the television in the home of the user; the trouble that the code can be upgraded only through a computer is thoroughly solved, and the maintenance cost is greatly reduced.
Drawings
Fig. 1 is a schematic structural diagram of a code upgrading apparatus provided in an embodiment of the present invention.
Fig. 2 is a schematic diagram of an implementation flow of a code upgrading method provided in an embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a code upgrading system provided in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the embodiment of the invention, the code upgrading device for storing the machine code to be upgraded is connected and communicated with the equipment to be upgraded, and the machine code to be upgraded is transmitted to the equipment to be upgraded, so that the code of the equipment to be upgraded is updated and upgraded.
Fig. 1 shows a structure of a code upgrading apparatus provided by an embodiment of the present invention, and for convenience of explanation, only the parts related to the present invention are shown, and the code upgrading apparatus 100 mainly includes a receiving unit 10, an MCU microcontroller 20, a storage unit 30, and a transmitting unit 40.
The receiving unit 10 receives the machine code to be upgraded sent from the computer, and sends the machine code to be upgraded to the MCU microcontroller 20, and after receiving the machine code to be upgraded, the MCU microcontroller 20 writes the machine code to be upgraded into the storage unit 30. The storage unit 30 is a Flash memory of the code upgrading apparatus 100.
When the device to be upgraded needs to update and upgrade the code, the MCU microcontroller 20 in the code upgrading apparatus 100 reads the machine code to be upgraded stored in the storage unit 30, and sends the read machine code to be upgraded to the sending unit 40, and the sending unit 40 sends the received machine code to be upgraded to the device to be upgraded, thereby implementing the update and upgrade of the code.
It is understood that the machine code to be upgraded received by the receiving unit 10 may be sent by a computer, or may be sent by other devices, as long as the device storing the machine code to be upgraded (under the premise of complying with the two-party communication protocol) is capable of being implemented.
As an embodiment of the present invention, the MCU microcontroller includes a receiving unit therein, so that the machine code to be upgraded can be directly transmitted to the MCU microcontroller.
Fig. 2 shows an implementation flow of the code upgrading method provided by the embodiment of the present invention, which is detailed as follows:
in step S101, the code upgrading apparatus receives a machine code to be upgraded, which is sent from the computer;
in the embodiment of the invention, the code upgrading device is connected with a computer, after the computer is connected with an MCU (micro control unit) microcontroller in the code upgrading device by a self-determined communication protocol, the machine code to be upgraded is sent to the MCU microcontroller in the code upgrading device according to a certain baud rate, and the communication rate can be as follows: 4800Kbps, 9600Kbps, 19200Kbps, which are mainly determined by Boot loading program of MCU microcontroller in code upgrading device. And after receiving the machine code to be upgraded sent by the computer, the MCU writes the machine code to be upgraded into the Flash memory.
In step S102, the code upgrading apparatus sends the stored machine code to be upgraded to the device to be upgraded;
in the embodiment of the invention, the code upgrading device sends a connection request to the equipment to be upgraded, reads the machine code to be upgraded from the Flash memory and sends the machine code to be upgraded to the equipment end to be upgraded.
In step S103, after the device to be upgraded receives the machine code to be upgraded, the device to be upgraded updates and upgrades the code.
In the embodiment of the invention, the MCU microcontroller of the device end to be upgraded runs a BootLoader program inside the MCU microcontroller, the BootLoader program is written into an LD Flash of the MCU microcontroller, and after receiving the sent machine code to be upgraded, the MCU microcontroller of the device end to be upgraded writes the machine code to be upgraded into an APflash of the MCU microcontroller through an interface function in the BootLoader. The AP Flash is used for storing user codes, so that the codes are updated and upgraded.
Fig. 3 shows a structure of a code upgrading system according to an embodiment of the present invention, where the code upgrading system mainly includes a code upgrading apparatus and a device to be upgraded, the code upgrading apparatus transmits a stored machine code to be upgraded to the device to be upgraded, and the device to be upgraded writes the received machine code to be upgraded in an AP Flash of an MCU microcontroller of the device to be upgraded, so as to update and upgrade a code of the device to be upgraded.
The present invention will be described in further detail below with reference to an example of updating and upgrading the software codes of the television.
For example, when a television of a certain client needs to update software, firstly, a customer service staff needs to complete the following work:
1. establishing connection between the computer and the code upgrading device by using a serial port line;
2. opening a serial port tool by using a computer, setting a corresponding communication rate, and importing a machine code to be upgraded;
3. switching on a power supply of the code upgrading device;
4. clicking a Write button of the serial port tool;
5. judging whether a writing progress bar appears in the serial port tool window, and if so, indicating that the writing is normal; otherwise, the communication is indicated to have a problem and the line needs to be checked. And ending the programming until the serial tool prompts the programming to be finished.
After arriving at the user's home, the customer service technician needs to complete the following steps:
a. connecting the code upgrading device with the television by using a VGA wire; namely, the VGA line connects the VGA interface of the code upgrading device with the VGA interface of the television;
b. pressing down the channel, and turning on the television;
c. switching on a power supply of the code upgrading device, and pressing an LINK key on the code upgrading device;
d. judging whether a LINK indicator lamp is lightened or not, if so, indicating that the communication between the code upgrading device and the television is normal, and otherwise, checking a line;
e. pressing WR key on the code upgrading device;
f. it is determined whether the WR indicator light is illuminated, and if so, indicating that the code has begun updating, otherwise, the circuit needs to be rechecked. And the code is updated until the WR indicator light is turned off.
As can be seen from the above, in the embodiment of the present invention, the code upgrading apparatus storing the machine code to be upgraded is connected to the device to be upgraded for communication, and the machine code to be upgraded is transmitted to the device to be upgraded, so as to update and upgrade the code of the device to be upgraded. The invention does not need to carry a notebook computer, and the customer service maintenance personnel can update and upgrade the codes of the television in the home of the user; the trouble that the code can be upgraded only through a computer is thoroughly solved, and the maintenance cost is greatly reduced.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (6)

1. A code upgrade apparatus, characterized in that the code upgrade apparatus comprises:
the receiving unit is used for establishing connection with a computer through a serial port line and receiving the machine code to be upgraded sent by the computer;
the storage unit is used for storing the machine code to be upgraded;
the sending unit is used for establishing connection with equipment to be upgraded through a VGA line and sending the machine code to be upgraded to the equipment to be upgraded;
the MCU is used for writing the machine code to be upgraded received from the receiving unit into the storage unit, reading the machine code to be upgraded stored in the storage unit, sending the machine code to be upgraded to the sending unit, and indicating that the code starts to be updated by controlling the indicator light of the key to be lightened until the indicator light of the key is turned off to indicate that the code is updated; after the MCU microcontroller is connected with a computer by a self-set communication protocol, a serial port tool window is opened by the computer, a Write button of the serial port tool window is controlled, whether a Write-in progress bar appears in the serial port tool window or not is judged, if yes, the Write-in progress bar is indicated to be normal, a machine code to be upgraded is sent to the MCU microcontroller according to a certain baud rate until the completion of the programming is prompted by the serial port tool window; otherwise, the communication is indicated to have a problem and the line needs to be checked.
2. The code upgrade apparatus according to claim 1, wherein the storage unit is a Flash memory.
3. A method of code upgrade, the method comprising the steps of:
after the MCU microcontroller of the code upgrading device is connected with a computer by a self-set communication protocol, opening a serial port tool window by using the computer, controlling a Write button of the serial port tool window, judging whether a Write-in progress bar appears on the serial port tool window, if so, indicating that the Write-in is normal, sending a machine code to be upgraded into the MCU microcontroller according to a certain baud rate until the serial port tool window prompts that the Write-in is finished; otherwise, the communication is indicated to have problems and the line needs to be checked; the code upgrading device is connected with the equipment to be upgraded through a VGA line and sends the stored machine code to be upgraded to the equipment to be upgraded; the specific implementation process is as follows: pressing a key on the code upgrading device, sending the stored machine code to be upgraded to the equipment to be upgraded by the code upgrading device, and indicating that the code starts to be updated by lightening an indicator light of the key until the indicator light of the key is turned off to indicate that the code is updated;
after receiving the sent machine code to be upgraded, the MCU of the device end to be upgraded writes the machine code to be upgraded into the AP Flash of the MCU through an interface function in the BootLoader so as to update and upgrade the code of the MCU.
4. The code upgrading method according to claim 3, wherein before the step of the code upgrading apparatus transmitting the stored machine code to be upgraded into the device to be upgraded, the method further comprises:
the code upgrading device receives the machine code to be upgraded and writes the machine code to be upgraded into a storage unit of the code upgrading device.
5. The code upgrading method according to claim 3, wherein the step of sending the stored machine code to be upgraded to the device to be upgraded by the code upgrading apparatus is specifically:
the code upgrading device sends a connection request to the equipment to be upgraded, reads the machine code to be upgraded from the storage unit and sends the machine code to be upgraded to the equipment end to be upgraded.
6. A code upgrade system, characterized in that the code upgrade system comprises:
the system comprises a code upgrading device, a computer, a serial port tool window, a Write button, a machine code and a machine code, wherein after the MCU microcontroller of the code upgrading device is connected with the computer by a self-determined communication protocol, the computer is used for opening the serial port tool window, controlling the Write button of the serial port tool window, judging whether the Write-in progress bar appears on the serial port tool window, if so, indicating that the Write-in is normal, and sending the machine code to be upgraded into the MCU microcontroller according to a certain baud rate until the serial port tool window prompts that the Write-in is finished; otherwise, the communication is indicated to have problems and the line needs to be checked; the code upgrading device is connected with equipment to be upgraded through a VGA line and transmits the stored machine code to be upgraded to the equipment to be upgraded; the specific implementation process is as follows: pressing a key on the code upgrading device, sending the stored machine code to be upgraded to the equipment to be upgraded by the code upgrading device, and indicating that the code starts to be updated by lightening an indicator light of the key until the indicator light of the key is turned off to indicate that the code is updated;
and the equipment to be upgraded writes the received machine code to be upgraded into the AP Flash of the MCU of the equipment to be upgraded through an interface function in the BootLoader so as to update and upgrade the code of the equipment to be upgraded.
HK08113453.5A 2008-12-10 A code upgrading device, method and system HK1120127B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007100761962A CN101196822B (en) 2007-07-02 2007-07-02 Code upgrading device, method and system

Publications (2)

Publication Number Publication Date
HK1120127A1 true HK1120127A1 (en) 2009-03-20
HK1120127B HK1120127B (en) 2012-06-08

Family

ID=

Also Published As

Publication number Publication date
CN101196822A (en) 2008-06-11
CN101196822B (en) 2012-01-04

Similar Documents

Publication Publication Date Title
CN104149717B (en) A kind of long-range noiseless renewal system and method for car load control
CN101330399A (en) Method for upgrading built-in equipment
CN101673202A (en) Program writing method and system, pre-writing device and writing device
CN102999350A (en) FPGA (field-programmable gate array) program upgrading and online downloading method in digital signal processing platform
CN101196822A (en) A code upgrade device, code upgrade method and system
CN204759403U (en) System based on data pass realization equipment internal module thoroughly and upgrade
CN108664264A (en) A kind of device and method remotely updating FPGA by JTAG modes based on CPU
CN105279127A (en) FPGA program downloading system based on PCI or PCIe bus, and method
CN102750176A (en) Software upgrading method and device for network TV
CN114721683A (en) Circuit, method, chip and electronic equipment for upgrading firmware
CN101452689A (en) Firmware updating system and method for updating display firmware
CN100383737C (en) Method and system for online loading and upgrading of single-chip microcomputer
CN101651794A (en) Method for coping television memory data and intelligent copier
CN110196726A (en) A method of the load of FPGA program remote upgrading is realized based on CPU+CPLD
EP4390673A1 (en) Ecu upgrade method and device, and readable storage medium
CN117931249A (en) Remote firmware upgrading method for embedded equipment
CN101398798B (en) Method and system for upgrading and repairing wireless terminal equipment
CN100498708C (en) Firmware download method and device using personal computer
CN101593123A (en) The curing of flash recordable plug-in component and terminal device
HK1120127B (en) A code upgrading device, method and system
CN206892846U (en) A kind of program burn writing system of microcontroller built-in type system
CN109002309A (en) A kind of HardwareUpgring method and relevant apparatus
CN210348467U (en) Modular design structure capable of updating MCU software
CN112579131A (en) Application program management method and device for multi-system equipment and electronic equipment
CN101540830A (en) Television upgrade-realization method and television with infrared upgrade functions

Legal Events

Date Code Title Description
PC Patent ceased (i.e. patent has lapsed due to the failure to pay the renewal fee)

Effective date: 20170702