CN202976059U - Embedded type terminal program upgrade system capable of avoiding dial-up operation - Google Patents

Embedded type terminal program upgrade system capable of avoiding dial-up operation Download PDF

Info

Publication number
CN202976059U
CN202976059U CN 201220695412 CN201220695412U CN202976059U CN 202976059 U CN202976059 U CN 202976059U CN 201220695412 CN201220695412 CN 201220695412 CN 201220695412 U CN201220695412 U CN 201220695412U CN 202976059 U CN202976059 U CN 202976059U
Authority
CN
China
Prior art keywords
chip
serial port
embedded type
isp
pin
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.)
Expired - Lifetime
Application number
CN 201220695412
Other languages
Chinese (zh)
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.)
SHANGHAI WULING SHENGTONG INFORMATION TECHNOLOGY Co Ltd
Original Assignee
SHANGHAI WULING SHENGTONG INFORMATION TECHNOLOGY 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 SHANGHAI WULING SHENGTONG INFORMATION TECHNOLOGY Co Ltd filed Critical SHANGHAI WULING SHENGTONG INFORMATION TECHNOLOGY Co Ltd
Priority to CN 201220695412 priority Critical patent/CN202976059U/en
Application granted granted Critical
Publication of CN202976059U publication Critical patent/CN202976059U/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Abstract

The utility model provides an embedded type terminal program upgrade system capable of avoiding dial-up operation. The embedded type terminal program upgrade system capable of avoiding the dial-up operation comprises an embedded type chip, a serial port module, a DB9 serial port, an upgrade program providing device, a real time clock and a watchdog (WATCHDOG) chip, wherein the embedded type chip is used as an embedded type terminal and provided with an internet service provider (ISP) serial port pin and an ISP guide base pin, the serial port module is connected with the embedded type chip through the ISP serial port pin, the DB9 serial port is connected with the serial port module, the upgrade program providing device is connected with the DB9 serial port, the real time clock is connected with the embedded type chip, the real time clock is provided with a timer interruption output pin, the WATCHDOG chip is connected with the embedded type chip and the real time clock, and the WATCHDOG chip is provided with a serial data pin which is connected with the timer interruption output pin. Due to the fact that the characteristics of hardware of the existing advanced RISC machine (ARM) embedded type terminal are used, reliable terminal program upgrading can be achieved without need of increasing hardware cost under the conditions that an outer shell is not opened and codes are not dialed.

Description

Exempt from the built-in terminal program upgrade system of dial-up operation
Technical field
The utility model relates to built-in terminal program upgrade technical field, and specifically, the utility model relates to a kind of built-in terminal program upgrade system of exempting from reliably the dial-up operation.
Background technology
At present, the city intelligent illumination monitoring system trends towards adopting the ARM built-in terminal to realize the distributed wireless remote monitoring, is used for the running status of real-time remote monitoring and many illuminating lines of control.The ARM built-in terminal has entered the large-scale application stage in the most cities illuminator, except possessing the functions such as rich and varied monitoring, control and radio communication, also must possess program upgrade function, so that the program version that the terminal stock dispatches from the factory front upgrading, and the flexible upgrading needs that satisfy on-site terminal.
The design of the main circuit board of ARM built-in terminal is take the ARM chip (ARM7 series or ARM Cortex-M3 series) of high performance-price ratio as core, deploy switch amount input and output module, ac analog acquisition module, wireless communication module, LCD interface.Simultaneously for guarantee terminal can be under the radio communication failure condition independent operating reliably, also need configure real-time clock (Real-Time Clock is RTC) module and outer watchdog (WATCHDOG) module.The programme upgrade method of ARM built-in terminal is the serial ports by the ARM chip, and carries out program upgrade in in-system programming (ISP) mode.But before carrying out ISP order, need by manual dial-up the output of the WATCHDOG resetting pin disconnection from the ARM chip, and by manual dial-up, the ISP guide pins of ARM chip is set to low level.And after the download of execution ISP program is completed, need by manual dial-up, the output of WATCHDOG is connected to again the resetting pin of ARM chip, and the ISP guide pins of ARM chip is set to high level, thereby cause program upgrade personnel's operating efficiency not high.In addition, because the ARM built-in terminal of miniaturization generally adopts the compact shell, adopt the said procedure upgrade method, shell need to open a terminal, carry out manual dial-up operation, also need reinstall terminal enclosure after program upgrade is completed, the workload when causing terminal program in enormous quantities upgrading increases greatly, and the dial-up operation during field upgrade increases the possibility of main circuit board electrostatic damage.
Summary of the invention
Technical problem to be solved in the utility model is to provide a kind of built-in terminal program upgrade system of exempting from reliably the dial-up operation, the efficient that can overcome existing programme upgrade method is not high, defective that easily cause main circuit board to damage, utilize the hardware characteristics of existing ARM built-in terminal, do not need to increase hardware cost, with regard to realizing in the situation that do not open shell and carry out reliable terminal program upgrading without dial-up.
For solving the problems of the technologies described above, the utility model provides a kind of built-in terminal program upgrade system of exempting from the dial-up operation, comprising:
Embedded chip as built-in terminal, has ISP serial ports pin and ISP guide pins;
Serial port module is connected with described embedded chip by described ISP serial ports pin;
DB9 serial port is connected with described serial port module;
ROMPaq provides equipment, is connected with described DB9 serial port;
Real-time clock is connected with described embedded chip, and described real-time clock has the Interruption output pin;
Watchdog chip is connected with described real-time clock with described embedded chip, and described watchdog chip has the serial data pin, and described serial data pin is connected with described Interruption output pin.
Alternatively, described built-in terminal program upgrade system also comprises:
The first toggle switch is connected with described embedded chip with described watchdog chip;
The second toggle switch, an end is connected with a low level signal, and the other end is connected to described embedded chip.
Alternatively, described built-in terminal program upgrade system also comprises:
Reset key is connected with described embedded chip.
Alternatively, equipment is provided is computed table or notebook computer to described ROMPaq.
Alternatively, described embedded chip is ARM LPC2136 chip.
Compared with prior art, the utlity model has following advantage:
With respect to existing general ARM built-in terminal program upgrade mode, the utility model has promoted program upgrade personnel's work efficiency greatly, namely can realize carrying out reliable terminal program upgrading in the situation that exempt from dial-up.Especially for the miniaturization end product, need not to open shell can upgrade to terminal program.ISP synchronizing signal identification simultaneously of the present utility model and handshake procedure have guaranteed very high program upgrade reliability.Thereby after adopting this program upgrade mode, the research staff has reduced the workload of dial-up repeatedly in the terminal program debug phase, and when lot size inventories product program upgrade, reduced the shell of opening and reset, the operation such as dial-up repeatedly, can greatly save time and human cost.For the mounted miniaturization terminal in scene, only need a DB9 serial port line and portable notebook computer can realize the upgrading of simple and flexible, do not need other instruments and open the shell operation, the electrostatic damage of yet having avoided the dial-up operation may cause main circuit board.
Description of drawings
The above and other feature of the present utility model, character and advantage will become more obvious by the description below in conjunction with drawings and Examples, wherein:
Fig. 1 is the modular structure figure of the built-in terminal program upgrade system of exempting from the dial-up operation of an embodiment of the utility model;
Fig. 2 is the detail flowchart that the built-in terminal program upgrade system executive routine upgrading of dial-up operation is exempted from the utilization of an embodiment of the utility model.
Embodiment
The utility model is described in further detail below in conjunction with specific embodiments and the drawings; set forth in the following description more details so that fully understand the utility model; but the utility model obviously can be implemented with the multiple alternate manner that is different from this description; those skilled in the art can be in the situation that do similar popularization, deduction without prejudice to the utility model intension according to practical situations, therefore should be with the content constraints of this specific embodiment protection domain of the present utility model.
Fig. 1 is the modular structure figure of the built-in terminal program upgrade system of exempting from the dial-up operation of an embodiment of the utility model.As shown in Figure 1, this built-in terminal program upgrade system 100 of exempting from the dial-up operation mainly comprises: embedded chip 1, serial port module 3, DB9 serial port 4, watchdog chip 7, real-time clock (Real-time clock, RTC) 10, ROMPaq provide equipment 13 etc.Wherein, embedded chip 1 can be ARM LPC2136 chip (hereinafter referred ARM chip), and it has ISP serial ports pin 2 and ISP guide pins 5 as built-in terminal.This ISP guide pins 5 is high level when terminal is normally moved.Serial port module 3 is connected with embedded chip 1 by ISP serial ports pin 2, and DB9 serial port 4 is connected with serial port module 3.DB9 serial port 4 has electrostatic protection and draws shell, can be connected to the DB9 serial port of PC computer or notebook computer by the DB9 serial port line, also can be used as external liquid crystal display interface.ROMPaq provides equipment (can be computed table or notebook computer) 13 to be connected with DB9 serial port 4.Real-time clock 10 is connected with embedded chip 1, and real-time clock 10 has Interruption output pin 9.Watchdog chip 7 is connected with real-time clock 10 with embedded chip 1.Watchdog chip 7 has serial data pin 8, and serial data pin 8 is connected with Interruption output pin 9, and the timing register that configures real-time clock 10 by ARM chip 1 makes 10 pairs of watchdog chips of real-time clock 7 feed dogs or stops feeding dog.
In the present embodiment, this built-in terminal program upgrade system 100 can also comprise: the first toggle switch 11 and the second toggle switch 12.This first toggle switch 11 is connected with embedded chip 1 with watchdog chip 7; These the second toggle switch 12 1 ends are connected with a low level signal, and the other end is connected to embedded chip 1.Also comprise reset key 6, be connected with embedded chip 1.
When terminal need to be upgraded, the DB9 serial port of computer or notebook is connected to the DB9 serial port of terminal, open the ISP software LPC2000 Flash Utility on computer, and click the ISP synch command, make and carry out baud rate between ARM chip and ISP software and synchronize and carry out handshake procedure.After shaking hands successfully, ARM chip configuration real-time clock makes real-time clock feed dog, and ISP serial ports pin is configured to input, and the ISP guide pins is configured to output and sets low, and then calls void*void0x0 and enters the ISP upgrade status.The ISP program download command of clicking LPC2000 Flash Utility carries out program burn writing to the ARM chip.After program burn writing is completed, by reset key, terminal is resetted.The program of the new upgrading of operation after the ARM chip reset, the configuration real-time clock makes real-time clock stop feeding dog, and carries out watchdog routine, feeds dog by watchdog routine.Inquire about at last the software version number of current terminal by DB9 serial port, confirm the program upgrade success.
Fig. 2 is the detail flowchart that the built-in terminal program upgrade system executive routine upgrading of dial-up operation is exempted from the utilization of an embodiment of the utility model.As shown in Figure 2, the detailed process of this program upgrade comprises as follows:
The 1st step, on main circuit board, the Interruption output pin of real-time timepiece chip directly is connected with the serial data pin of watchdog chip, and the ARM chip is controlled real-time clock by the timing register of configuration real-time timepiece chip house dog is fed dog or stops dog feeding operation; Simultaneously, but the ARM chip also the serial data pin of direct control watchdog chip carry out dog feeding operation;
In the 2nd step, on main circuit board, the ISP serial ports of ARM chip is drawn terminal enclosure, and available DB9 serial port line is connected to the DB9 serial port of computer or notebook, is used for ARM chip in-system programming, also can be used for external liquid crystal display;
In the 3rd step, when terminal needed program upgrade, the ISP software on computer or notebook sent ISP baud rate synchronizing signal by the ISP serial ports to the ARM chip; Select LPC2000 Flash Utility as an example of ISP software, ISP baud rate synchronizing signal be the ascii character code "? " The ARM chip receive continuously and recognize at least 4 baud rate synchronizing signals "? " after, adjust ISP serial ports baud rate to the synchronous baud rate of having identified, and entered for the 4th step;
In the 4th step, ARM chip and ISP software carry out handshake operation, shake hands successfully to enter for the 5th step, if the failure of shaking hands recovers ISP serial ports default baud rate, and the upgrading flow process that quits a program; Handshake operation all adopts the ascii character code, and handshake procedure comprises:
1) the ARM chip sends " Synchronized CR LF " to ISP software;
2) the ARM chip is received " Synchronized CR LF ";
3) the ARM chip sends " Synchronized CR LF OK CR LF ";
4) the ARM chip is received " 11059 CR LF ";
5) the ARM chip sends " 11059 CR LF OK CR LF ";
6) the ARM chip is received " U 23130 CR LF ";
7) the ARM chip sends " U 23130 CR LF 0 CR LF ";
8) the ARM chip is received " K CR LF ";
9) the ARM chip sends " K CR LF 0 CR LF 12 CR LF 2 CR LF ";
10) the ARM chip is received " J CR LF ";
11) the ARM chip sends " J CR LF 0 CR LF 196387 CR LF ".
In the 5th step, the timing register of ARM chip configuration real-time clock makes real-time clock produce the Interruption pulse output of 1Hz, house dog is carried out dog feeding operation, thereby guarantee that in the program upgrade process, house dog does not produce the output that resets; Then the ISP serial ports is received pin and be configured to input pin, the ISP guide pins is configured to output pin and is set to low level, the interruption that forbidden energy has enabled, and carry out (void (*) (void)) (0x0), it is the reseting vector at 0x00 place, thereby call the function that is positioned at the upper boot loading code (bootloader) of ARM chip flash memory (Flash) porch, make the ARM chip enter the ISP upgrade status;
The 6th step, by ISP software LPC2000 Flash Utility, the ARM chip is carried out program burn writing, after completing, programming by reset key, terminal is resetted;
The 7th step, the program of the new upgrading of operation after the ARM chip reset, the configuration real-time clock makes it stop dog feeding operation to house dog, and carries out the watchdog routine after upgrading, feeds dog by watchdog routine.By the current latest edition this shop of external liquid crystal display inquiry terminal, confirm the program upgrade success.
The utility model is electrically connected at the Interruption output pin of the real-time clock of built-in terminal and the serial data pin of house dog, after ARM chip and the success of ISP software handshake, the ARM chip makes real-time clock feed dog to house dog by configurable clock generator, by ISP software, terminal is carried out reliable program upgrade.After upgrading, ARM chip configuration real-time clock makes real-time clock stop feeding dog to house dog, and feeds dog by the program of new upgrading to house dog.
With respect to existing general ARM built-in terminal program upgrade mode, the utility model has promoted program upgrade personnel's work efficiency greatly, namely can realize carrying out reliable terminal program upgrading in the situation that exempt from dial-up.Especially for the miniaturization end product, need not to open shell can upgrade to terminal program.ISP synchronizing signal identification simultaneously of the present utility model and handshake procedure have guaranteed very high program upgrade reliability.Thereby after adopting this program upgrade mode, the research staff has reduced the workload of dial-up repeatedly in the terminal program debug phase, and when lot size inventories product program upgrade, reduced the shell of opening and reset, the operation such as dial-up repeatedly, can greatly save time and human cost.For the mounted miniaturization terminal in scene, only need a DB9 serial port line and portable notebook computer can realize the upgrading of simple and flexible, do not need other instruments and open the shell operation, the electrostatic damage of yet having avoided the dial-up operation may cause main circuit board.
Although the utility model with preferred embodiment openly as above, it is not to limit the utility model, and any those skilled in the art can make possible change and modification within not breaking away from spirit and scope of the present utility model.Therefore, every content that does not break away from technical solutions of the utility model, according to technical spirit of the present utility model to any modification, equivalent variations and modification that above embodiment does, within all falling into the protection domain that the utility model claim defines.

Claims (5)

1. a built-in terminal program upgrade system (100) of exempting from the dial-up operation, is characterized in that, comprising:
Embedded chip (1) as built-in terminal, has ISP serial ports pin (2) and ISP guide pins (5);
Serial port module (3) is connected with described embedded chip (1) by described ISP serial ports pin (2);
DB9 serial port (4) is connected with described serial port module (3);
ROMPaq provides equipment (13), is connected with described DB9 serial port (4);
Real-time clock (10) is connected with described embedded chip (1), and described real-time clock (10) has Interruption output pin (9);
Watchdog chip (7), be connected with described real-time clock (10) with described embedded chip (1), described watchdog chip (7) has serial data pin (8), and described serial data pin (8) is connected with described Interruption output pin (9).
2. built-in terminal program upgrade system according to claim 1 (100), is characterized in that, also comprises:
The first toggle switch (11) is connected with described embedded chip (1) with described watchdog chip (7);
The second toggle switch (12), an end is connected with a low level signal, and the other end is connected to described embedded chip (1).
3. built-in terminal program upgrade system according to claim 2 (100), is characterized in that, also comprises:
Reset key (6) is connected with described embedded chip (1).
4. built-in terminal program upgrade system according to claim 1 (100), is characterized in that, it is computed table or notebook computer that described ROMPaq provides equipment (13).
5. built-in terminal program upgrade system according to claim 1 (100), is characterized in that, described embedded chip (1) is the ARMLPC2136 chip.
CN 201220695412 2012-12-14 2012-12-14 Embedded type terminal program upgrade system capable of avoiding dial-up operation Expired - Lifetime CN202976059U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201220695412 CN202976059U (en) 2012-12-14 2012-12-14 Embedded type terminal program upgrade system capable of avoiding dial-up operation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201220695412 CN202976059U (en) 2012-12-14 2012-12-14 Embedded type terminal program upgrade system capable of avoiding dial-up operation

Publications (1)

Publication Number Publication Date
CN202976059U true CN202976059U (en) 2013-06-05

Family

ID=48517106

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201220695412 Expired - Lifetime CN202976059U (en) 2012-12-14 2012-12-14 Embedded type terminal program upgrade system capable of avoiding dial-up operation

Country Status (1)

Country Link
CN (1) CN202976059U (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103399770A (en) * 2013-08-09 2013-11-20 株洲南车时代电气股份有限公司 Method for initializing embedded type bare board program
CN111090323A (en) * 2019-12-24 2020-05-01 上海移远通信科技有限公司 Power-off protection circuit of control chip, software upgrading circuit and control system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103399770A (en) * 2013-08-09 2013-11-20 株洲南车时代电气股份有限公司 Method for initializing embedded type bare board program
CN103399770B (en) * 2013-08-09 2017-03-01 株洲南车时代电气股份有限公司 A kind of method initializing embedded type bare board program
CN111090323A (en) * 2019-12-24 2020-05-01 上海移远通信科技有限公司 Power-off protection circuit of control chip, software upgrading circuit and control system

Similar Documents

Publication Publication Date Title
CN205829666U (en) A kind of industry intelligent networking gateway
CN103227813A (en) Automatic long-distance updating system and method for family Internet of Things system
CN102354261A (en) Remote control system for power supply switches of machine room servers
CN208862854U (en) It is a kind of docking modbus equipment can Remote Dynamic configure cloud communication device
CN203101945U (en) Remote monitoring and control device for core data
CN202976059U (en) Embedded type terminal program upgrade system capable of avoiding dial-up operation
CN110659233A (en) Serial port information switching device and server
CN101753672B (en) System and method for rapidly repairing wireless terminal
CN101718985B (en) EPA bus and Profibus-DP bus conversion adapter
CN102073313A (en) Remote management measurement and control system of solar photovoltaic power stations
CN210514969U (en) High-reliability data acquisition controller based on double CPU (Central processing Unit) architecture
CN104317691A (en) Simulation debugging and code downloading tool
CN106569972A (en) USB interface-based JTAG one-chip microcomputer wireless emulator and method
CN202364256U (en) Network information issuing system and server
CN104869702A (en) Environment regulating system and method
CN201345745Y (en) GPRS (General Packet Radio Service) network wireless data transmission terminal
CN209029000U (en) Engineering machinery display screen, engineering machinery and project monitor and control system
CN203883862U (en) PROFIBUS communication module for connecting frequency converter with host computer
CN202939447U (en) Data acquisition controller
CN111653940A (en) Power distribution cabinet power-off detection system with short message automatic alarm function
CN101626297A (en) Embedded network management responder
CN205986776U (en) Photovoltaic power generation system trouble for separation device hand -held type debug terminal
CN105159129A (en) Intelligent household electrical appliance control system and control method
CN205959040U (en) Intelligence touch display programmable logic controler
CN204652732U (en) A kind of environment adjustment system

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
CX01 Expiry of patent term
CX01 Expiry of patent term

Granted publication date: 20130605