CN104317613A - Method for upgrading collection controller software of broadcast television transmitting station remote monitoring system - Google Patents

Method for upgrading collection controller software of broadcast television transmitting station remote monitoring system Download PDF

Info

Publication number
CN104317613A
CN104317613A CN201410544539.3A CN201410544539A CN104317613A CN 104317613 A CN104317613 A CN 104317613A CN 201410544539 A CN201410544539 A CN 201410544539A CN 104317613 A CN104317613 A CN 104317613A
Authority
CN
China
Prior art keywords
acquisition controller
software
upgrading
host computer
network
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.)
Pending
Application number
CN201410544539.3A
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.)
Guangxi University
Original Assignee
Guangxi University
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 Guangxi University filed Critical Guangxi University
Priority to CN201410544539.3A priority Critical patent/CN104317613A/en
Publication of CN104317613A publication Critical patent/CN104317613A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a method for upgrading collection controller software of a broadcast television transmitting station remote monitoring system. The broadcast television transmitting station remote monitoring system is based on an ethernet network and comprises a collection controller connected with station equipment; the collection controller is connected with an upper computer by virtue of a switch; a Mega2560 singlechip microcomputer is adopted as a core processor of the collection controller, and the core processor is provided with a network interface. The software upgrading method comprises the following main steps: when the collection controller inquires and receives a software upgrading command sent by the upper computer through the network interface, receiving machine code file data sent by the upper computer, writing the machine code file data into a user program storage in the singlechip microcomputer and updating a user program; if the command of the upper computer is not received, normally executing the user program. The network interface is adopted for realizing collection controller software remote upgrading; the data read-write and processing speeds are high, the upgrading time is short, and data processing is safe and reliable; a special download tool is not needed, a special download port is not needed to be reserved on the collection controller, and the upgrading mode is flexible, convenient and rapid.

Description

The acquisition controller method for upgrading software of broadcast and TV radiating station long distance control system
Technical field
The invention belongs to software upgrading technology, particularly the acquisition controller method for upgrading software of broadcast and TV radiating station long distance control system.
Background technology
Along with the development of China's broadcasting and TV cause, radio and television transmitter and network size increasing, the maintenance difficulties also corresponding increase of machine room workload on duty and equipment.For the needs adapted to the situation, various places radio and television departments are all in Accelerating The Construction long distance control system in recent years, on the basis of existing equipment, it is interconnected that usual employing RS-232 or RS-485 mode realize station devices, this communication mode structure is simple, but be easy to the interference being subject to transmitter high-power transmitter signal, thus the stability of influential system and security.Therefore, there is the front end signal treatment facility of Ethernet interface as the access of signal acquisition controller, broadcast and TV radiating station long distance control system is made to be able to realize the network interconnection by Ethernet or Broadcasting Cable Network, improve quality monitoring, reduce the labour intensity of operator on duty, improve safe broadcast rate and work efficiency.
Acquisition controller is the most frequently used a kind of equipment of industrial automation control system, as automatic control system front-end equipment, its performance and reliability will directly have influence on the normal work of whole system, system in use, often can improve original function as required or increase new function, this just needs to carry out software upgrading to acquisition controller.Traditional method for upgrading software adopts ISP technology, namely first ISP programmable device is connected to the downloading wire interface of acquisition controller, special write the control of yard software under, complete the machine code file of HEX form is written to acquisition controller inside Single Chip Microcomputer (SCM) program store on.There is following shortcoming in this ISP technology: 1) must use special I SP programmable device; 2) ISP download interface must be reserved on equipment; 3) can not operated from a distance; 4) need before downloading first to connect ISP downloading wire, after having downloaded, also will remove downloading wire; 5) acquisition controller is started shooting again, normally could run newly downloaded program.Software upgrading is inconvenient, dumb, and there is the problem of the aspects such as data stability, treatment effeciency are low.
Summary of the invention
The technical problem to be solved in the present invention be to provide a kind of convenience, flexibly, the acquisition controller method for upgrading software of the reliable and stable broadcast and TV radiating station long distance control system of data processing.
For solving the problems of the technologies described above, the present invention adopts following technical scheme:
The acquisition controller method for upgrading software of broadcast and TV radiating station long distance control system, described broadcast and TV radiating station long distance control system is based on Ethernet, the acquisition controller comprise station devices, being connected with station devices, acquisition controller is connected with host computer by switch; The core processor of described acquisition controller adopts Mega2560 single-chip microcomputer, and is provided with network interface, and the method for upgrading software of described acquisition controller comprises the following steps:
A. acquisition controller electrification reset: acquisition controller powers on start, and the electrify restoration circuit of acquisition controller inside resets to single-chip microcomputer automatically;
B. start to perform BootLoader: perform the inner BootLoader program of single-chip microcomputer;
B1. acquisition controller initialization: the IO port status that acquisition controller is set, read the network parameter stored in the inner EEPROM of single-chip microcomputer, complete network interface initialization, network service is ready;
C. inquire about host computer order: perform the IAP application software on single-chip microcomputer, the order of inquiry host computer, if host computer order is software upgrading order, then forwards step D to; If host computer order is that fuse setting command is by forwarding step e to; Otherwise forward step H to;
D. software upgrading order is judged: judge whether it is software upgrading order, if yes then enter step D1; Otherwise forward step e to;
D1. machine code data bag is received: inquire about and receive the machine code file data bag that host computer come by network interface transfers;
D2. machine code write storer: the machine code file data received is written to the user program memory in single-chip microcomputer, upgrades user program;
D3. judge that software upgrading completes: if upgrading does not complete, forward step D1 to; If upgraded, forward step C to;
E. fuse setting command is judged: judge whether it is fuse setting command, if enter step e 1; Otherwise forward step H to;
E1. fuse parameter is received: receive the fuse parameters packet that host computer sends over from network interface;
E2., fuse parameter is set: according to the fuse parameter received, reconfigure the fuse of single-chip microcomputer; Configure and completely forward step C to;
H. judge the 2s time to: if acquisition controller start 2s in never receive host computer order, the 2s time is to then proceeding to step H1; Otherwise return step C;
H1. user software is performed: the normal user software performed on single-chip microcomputer;
H2. judge whether to receive reset command: whether inquiry receives the reset command that host computer sends, if receive reset command, forwards step H3 to, otherwise, proceed to step H1;
H3. software reset: user program sends reset command, acquisition controller resets.
Described host computer order also comprises network settings order, when acquisition controller receives the network settings order of host computer transmission, performs following steps F:
F. network settings order is judged: judge whether it is network settings orders, if it is proceed to step F 1; Otherwise forward step H to;
F1. network parameter is received: receive the network parametric data bag that host computer sends, network parameter comprises IP address, subnet mask, gateway;
F2. network parameter is set: according to the network parameter received, the network of acquisition controller is reconfigured; Configure and completely forward step C to.
Described acquisition controller is multiple, and each acquisition controller correspondence connects a station devices, and each acquisition controller arranges an IP address.
The invention has the beneficial effects as follows: adopt network interface to realize the upgrading of acquisition controller remote software, reading and writing data and processing speed are faster, and update time is shorter, and data processing is safe and reliable; Do not need specific download instrument, do not need reserved specific download port on collection controller, upgrading mode is flexible, convenient, fast.
Accompanying drawing explanation
Fig. 1 be broadcast and TV radiating station long distance control system of the present invention structural representation;
Fig. 2 is the process flow diagram of the embodiment of the present invention 1;
Fig. 3 is the process flow diagram of the embodiment of the present invention 2.
Embodiment
Be described in detail below in conjunction with Fig. 1,2,3 pairs of embodiments of the present invention.
As shown in Figure 1, broadcast and TV radiating station long distance control system, based on Ethernet, comprises multiple acquisition controller, and each acquisition controller correspondence connects a station devices, and each acquisition controller arranges an IP address; Also comprise and connect the multiple stage station devices of serial line interface server respectively by serial line interface, connect the multiple stage station devices of switch respectively by network interface, acquisition controller, serial line interface server are connected with host computer or background server network respectively by switch; The core processor of described acquisition controller adopts Mega2560 single-chip microcomputer, and is provided with network interface.
Embodiment 1:
As shown in Figure 2, the acquisition controller method for upgrading software of broadcast and TV radiating station long distance control system, comprises the following steps:
A. acquisition controller powers on: system electrification is started shooting, and the electrify restoration circuit of acquisition controller inside resets to single-chip microcomputer automatically.
B. start to perform BootLoader: single-chip microcomputer guiding and start-up routine jump to 0x3E000 to start to perform BootLoader (start-up code);
B1. acquisition controller initialization: the IO port status arranging acquisition controller, read the network parameter such as IP address, gateway, subnet mask in the inner EEPROM of single-chip microcomputer, complete network interface initialization, network service is ready.
C. inquire about host computer order: perform the IAP application software on single-chip microcomputer, the order of inquiry host computer, if host computer order is software upgrading order, then forwards step D to; If host computer order is that fuse setting command is by forwarding step e to; Otherwise forward step H to;
D. software upgrading order is judged: judge whether it is software upgrading order, if yes then enter step D1; Otherwise forward step e to;
D1. machine code data bag is received: inquire about and receive the machine code file data bag that host computer come by network interface transfers;
D2. machine code write storer: the machine code file data received is written to the user program memory in single-chip microcomputer; Upgrade user program;
D3. judge that software upgrading completes: if upgrading does not complete, forward step D1 to; If upgraded, forward step C to;
E. fuse setting command is judged: judge whether it is fuse setting command, if enter step e 1; Otherwise forward step H to;
E1. fuse parameter is received: receive the fuse parameters packet that host computer sends over from network interface;
E2., fuse parameter is set: according to the fuse parameter received, reconfigure the fuse of single-chip microcomputer; Configure and completely forward step C to;
H. judge the 2s time to: if acquisition controller start 2s in never receive host computer order, the 2s time is to then proceeding to step H1; Otherwise return step C;
H1. user software is performed: the normal user software performed on single-chip microcomputer;
H2. judge whether to receive reset command: whether inquiry receives the reset command that host computer sends, if receive reset command, forwards step H3 to, otherwise, proceed to step H1;
H3. software reset: user program sends reset command, acquisition controller resets.This is the committed step being switched to software upgrading state by user program.
Described fuse parameter is made up of 3 bytes, and be respectively fuse bit extended byte, fuse bit high byte and fuse bit low byte, its content is respectively as shown in table 1, table 2 and table 3, if fuse bit is programmed, then rreturn value is 0.0 representative programming in table, 1 representative is not programmed.
Table 1 fuse bit extended byte
Fuse bit extended byte Item Describe Default value
-- 7~2 Do not use 1
M103C 1 ATmega103 compatibility mode 0
WDTON 0 WatchDog Timer is opened all the time 1
Table 2 fuse bit high byte
Fuse bit high byte Item Describe Default value
OCDEN 7 Enable OCD 1 (OCD forbidding)
JTAGEN 6 Enable JTAG 0 (JTAG is enable)
SPIEN 5 Enable serial program and data are downloaded 0 (SPI is enable)
CKOPT 4 Oscillator option 1
EESAVE 3 During execution chip erase, eeprom content retains 1
BOOTSZ[1:0] 2:1 Select BOOT district size 0
BOOTRST 0 Select reseting vector 1
Table 3 fuse bit low byte
Fuse bit low byte Item Describe Default value
BODLEVEL 7 BOD triggering level 1
BODEN 6 BOD is enable 1 (BOD forbidding)
SUT[1:0] 5:4 Select start-up time 10b
CKSEL[3:0] 3:0 Select clock source 0001b
Embodiment 2:
As shown in Figure 3, the acquisition controller method for upgrading software of broadcast and TV radiating station long distance control system, comprises the following steps:
A. acquisition controller powers on: system electrification is started shooting, and the electrify restoration circuit of acquisition controller inside resets to single-chip microcomputer automatically.
B. start to perform BootLoader: single-chip microcomputer guiding and start-up routine jump to 0x3E000 to start to perform BootLoader (start-up code);
B1. acquisition controller initialization: the IO port status arranging acquisition controller, read the network parameter such as IP address, gateway, subnet mask in the inner EEPROM of single-chip microcomputer, complete network interface initialization, network service is ready.
C. inquire about host computer order: perform the IAP application software on single-chip microcomputer, the order of inquiry host computer, if host computer order is software upgrading order, then forwards step D to; If host computer order is that fuse setting command is by forwarding step e to; If network settings order, then proceed to step F; Otherwise forward step H to;
D. software upgrading order is judged: judge whether it is software upgrading order, if yes then enter step D1; Otherwise forward step e to;
D1. machine code data bag is received: inquire about and receive the machine code file data bag that host computer come by network interface transfers;
D2. machine code write storer: the machine code file data received is written to the user program memory in single-chip microcomputer; Upgrade user program;
D3. judge that software upgrading completes: if upgrading does not complete, forward step D1 to; If upgraded, forward step C to;
E. fuse setting command is judged: judge whether it is fuse setting command, if enter step e 1; Otherwise forward step F to;
E1. fuse parameter is received: receive the fuse parameters packet that host computer sends over from network interface;
E2., fuse parameter is set: according to the fuse parameter received, reconfigure the fuse of single-chip microcomputer; Configure and completely forward step C to;
H. judge the 2s time to: if acquisition controller start 2s in never receive host computer order, the 2s time is to then proceeding to step H1; Otherwise return step C;
F. judge network settings order: judge whether it is network settings orders, if proceed to step F 1, otherwise forward step H to.
F1. network parameter is received: the network settings supplemental characteristic bag that wait-receiving mode host computer is sent from the network port.Here network parameter refers to the parameter that the communications such as IP address, subnet mask, gateway are relevant.
F2. network parameter is set: according to the new network parameter received, the network of acquisition controller is reconfigured, configures and completely forward step C to.
H1. perform user software: normally perform user software, realize the various functions such as the sensor input signal collection of signals collecting control, data processing, communication and input and output control;
H2. judge to receive reset command: whether requester network interface receives reset command, if receive reset command, enters step H3, otherwise, enter step H1.
H3. software reset: user program sends reset command, acquisition controller resets; This is the committed step being switched to software upgrading state by user program.
Described fuse parameter is as embodiment 1.

Claims (3)

1. the acquisition controller method for upgrading software of broadcast and TV radiating station long distance control system, described broadcast and TV radiating station long distance control system is based on Ethernet, the acquisition controller comprise station devices, being connected with station devices, acquisition controller is connected with host computer by switch; The core processor of described acquisition controller adopts Mega2560 single-chip microcomputer, and is provided with network interface, and it is characterized in that, the method for upgrading software of described acquisition controller comprises the following steps:
A. acquisition controller electrification reset: acquisition controller powers on start, and the electrify restoration circuit of acquisition controller inside resets to single-chip microcomputer automatically;
B. start to perform BootLoader: perform the inner BootLoader program of single-chip microcomputer;
B1. acquisition controller initialization: the IO port status that acquisition controller is set, read the network parameter stored in the inner EEPROM of single-chip microcomputer, complete network interface initialization, network service is ready;
C. inquire about host computer order: perform the IAP application software on single-chip microcomputer, the order of inquiry host computer, if host computer order is software upgrading order, then forwards step D to; If host computer order is that fuse setting command is by forwarding step e to; Otherwise forward step H to;
D. software upgrading order is judged: judge whether it is software upgrading order, if yes then enter step D1; Otherwise forward step e to;
D1. machine code data bag is received: inquire about and receive the machine code file data bag that host computer come by network interface transfers;
D2. machine code write storer: the machine code file data received is written to the user program memory in single-chip microcomputer, upgrades user program;
D3. judge that software upgrading completes: if upgrading does not complete, forward step D1 to; If upgraded, forward step C to;
E. fuse setting command is judged: judge whether it is fuse setting command, if enter step e 1; Otherwise forward step H to;
E1. fuse parameter is received: receive the fuse parameters packet that host computer sends over from network interface;
E2., fuse parameter is set: according to the fuse parameter received, reconfigure the fuse of single-chip microcomputer; Configure and completely forward step C to;
H. judge the 2s time to: if acquisition controller start 2s in never receive host computer order, the 2s time is to then proceeding to step H1; Otherwise return step C;
H1. user software is performed: the normal user software performed on single-chip microcomputer;
H2. judge whether to receive reset command: whether inquiry receives the reset command that host computer sends, if receive reset command, forwards step H3 to, otherwise, proceed to step H1;
H3. software reset: user program sends reset command, acquisition controller resets.
2. the acquisition controller method for upgrading software of broadcast and TV radiating station long distance control system according to claim 1, it is characterized in that, described host computer order also comprises network settings order, when acquisition controller receives the network settings order of host computer transmission, performs following steps F:
F. network settings order is judged: judge whether it is network settings orders, if it is proceed to step F 1; Otherwise forward step H to;
F1. network parameter is received: receive the network parametric data bag that host computer sends, network parameter comprises IP address, subnet mask, gateway;
F2. network parameter is set: according to the network parameter received, the network of acquisition controller is reconfigured; Configure and completely forward step C to.
3. the acquisition controller method for upgrading software of broadcast and TV radiating station long distance control system according to claim 1 and 2, it is characterized in that, described acquisition controller is multiple, and each acquisition controller correspondence connects a station devices, and each acquisition controller arranges an IP address.
CN201410544539.3A 2014-10-15 2014-10-15 Method for upgrading collection controller software of broadcast television transmitting station remote monitoring system Pending CN104317613A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410544539.3A CN104317613A (en) 2014-10-15 2014-10-15 Method for upgrading collection controller software of broadcast television transmitting station remote monitoring system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410544539.3A CN104317613A (en) 2014-10-15 2014-10-15 Method for upgrading collection controller software of broadcast television transmitting station remote monitoring system

Publications (1)

Publication Number Publication Date
CN104317613A true CN104317613A (en) 2015-01-28

Family

ID=52372848

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410544539.3A Pending CN104317613A (en) 2014-10-15 2014-10-15 Method for upgrading collection controller software of broadcast television transmitting station remote monitoring system

Country Status (1)

Country Link
CN (1) CN104317613A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105573810A (en) * 2016-03-23 2016-05-11 重庆邮电大学 Remote upgrade method and remote upgrade device for wireless sensor network node
CN108228217A (en) * 2018-01-18 2018-06-29 晶晨半导体(上海)股份有限公司 A kind of method for upgrading system
CN113010194A (en) * 2019-12-19 2021-06-22 云丁网络技术(北京)有限公司 Upgrading method, monitoring system, upgrading control device and equipment for single chip microcomputer

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101180608A (en) * 2005-05-23 2008-05-14 英特尔公司 In-system reconfiguring of hardware resources
CN102667802A (en) * 2009-12-31 2012-09-12 英特尔公司 Provisioning, upgrading, and/or changing of hardware
CN104090796A (en) * 2014-07-08 2014-10-08 成都万维图新信息技术有限公司 Embedded device program updating method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101180608A (en) * 2005-05-23 2008-05-14 英特尔公司 In-system reconfiguring of hardware resources
CN102667802A (en) * 2009-12-31 2012-09-12 英特尔公司 Provisioning, upgrading, and/or changing of hardware
CN104090796A (en) * 2014-07-08 2014-10-08 成都万维图新信息技术有限公司 Embedded device program updating method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
覃柳俊 等: "基于STM32单片机的数字电视直放站远程网络升级模块的设计", 《视听》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105573810A (en) * 2016-03-23 2016-05-11 重庆邮电大学 Remote upgrade method and remote upgrade device for wireless sensor network node
CN108228217A (en) * 2018-01-18 2018-06-29 晶晨半导体(上海)股份有限公司 A kind of method for upgrading system
CN113010194A (en) * 2019-12-19 2021-06-22 云丁网络技术(北京)有限公司 Upgrading method, monitoring system, upgrading control device and equipment for single chip microcomputer

Similar Documents

Publication Publication Date Title
US10606248B2 (en) Data transmission and control device in a multi-node sensor network
CN106411667B (en) Intelligent home multi-cloud control method and system based on network chip
CN103389669B (en) A kind of processor program Remote Dynamic loading system based on FPGA/CPLD controller and method
CN102609287A (en) Device for updating FPGA (Field Programmable Gate Array) from a long distance by CPU (Central Processing Unit) and method therefor
CN105786549B (en) Smart machine and its upgrade method
CN203366312U (en) Household appliance upgrading system and household appliance
CN108427570A (en) Intelligent household appliance master control program upgrading system and upgrading method
CN104317613A (en) Method for upgrading collection controller software of broadcast television transmitting station remote monitoring system
CN103902305A (en) Software long-distance loading and solidifying method based on TI DSP
CN104750065A (en) STM32 based remote distributed programmable automatic control system and method
CN105318502A (en) Program updating system, method and device for air conditioning unit controller
CN103106095A (en) Method for remotely upgrading industrial camera and camera
CN105786573A (en) Method and system for rapidly upgrading ZigBee controller in smart home
CN103379446A (en) Multi-terminal control method and device based on wifi
CN106789334A (en) A kind of method and apparatus of firmware upgrade
CN111741057A (en) Normalization acquisition system and method for multi-source Internet of things data
CN107528898B (en) Method and device for realizing Internet of things module
CN105138379A (en) Method for on-line upgrading based on Ymodem protocol
CN104895817A (en) Method for controlling server fan based on SNMP
CN202267950U (en) Remote upgrading device of embedded devices
CN109542484A (en) A kind of method and system of online updating FPGA configuration chip
CN215058390U (en) Novel fan controller
CN210348467U (en) Modular design structure capable of updating MCU software
CN206975473U (en) A kind of wireless programmer of STC single-chip microcomputers
CN202939447U (en) Data acquisition controller

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150128