CN103106095A - Method for remotely upgrading industrial camera and camera - Google Patents
Method for remotely upgrading industrial camera and camera Download PDFInfo
- Publication number
- CN103106095A CN103106095A CN2013100764256A CN201310076425A CN103106095A CN 103106095 A CN103106095 A CN 103106095A CN 2013100764256 A CN2013100764256 A CN 2013100764256A CN 201310076425 A CN201310076425 A CN 201310076425A CN 103106095 A CN103106095 A CN 103106095A
- Authority
- CN
- China
- Prior art keywords
- camera
- data
- industrial camera
- industrial
- packet
- 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
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The invention provides a method for remotely upgrading an industrial camera and a camera. An industrial computer is connected with the industrial camera through a gigabit Ethernet; upgrade data is transmitted to the industrial camera by utilizing the gigabit Ethernet; the operation of the industrial camera is controlled by factory configuration codes; and firmware in a flash is completely replaced after an upgrade package is correctly received. The invention further discloses a method for upgrading the firmware of the camera by remote control and the camera capable of being subjected to remote firmware upgrading. Therefore, the shortcomings that the flexibility is poorer, a system is taken apart in the upgrading process and a storage device is programmed by reconnecting a download cable or using a programmer when the camera is upgraded by programming with the programmer or the special download cable in the prior art can be overcome.
Description
Technical field
The invention belongs to the industrial camera field, particularly a kind of method of the firmware of industrial camera being carried out remote upgrade by network provide a kind of like this can be by the industrial camera of remote upgrade.
Background technology
At present, some camera is in order to upgrade conveniently, be provided with fpga chip and complete control to camera in camera, increase new function if camera need to be upgraded, can complete by fpga chip is rewritten, like this, when camera need to be upgraded, can by fpga chip is fired again, write new software upgrade package, in the situation that the constant upgrading that realizes camera of hardware, can save the cost of a lot of cameras.At present, deposited two parts code in camera---application code and the configuration code that dispatches from the factory, camera to be upgraded exactly wherein application code is upgraded, the configuration section that dispatches from the factory can not upgrade.When camera firmware is upgraded, camera need to be taken apart, by welding several telecommunication cables, utilize computing machine that the flash storer that these firmwares are installed in camera is rewritten.And at present, industrial camera generally all needs to be arranged on fixing place, when after the industrial camera installation under dismounting being again trouble very, like this, firmware is upgraded cumbersome.
Summary of the invention
At present to need to pull down the camera that is arranged on work position in the industrial camera escalation process and carry out the trouble that firmware upgrade brings in order to overcome, the invention provides a kind of gigabit Ethernet that utilizes and realize the method for industrial telex machine remote upgrade and the camera of remote upgrade.
The present invention for the technical scheme of completing its technical purpose and adopting is: a kind of method of industrial camera remote upgrade, industrial computer is connected with industrial camera by gigabit Ethernet, utilize gigabit Ethernet that upgrading data packet is mail to industrial camera, the work of industrial camera is controlled by the configuration code that dispatches from the factory, after correct reception AKU, the firmware in flash is replaced fully.
Further, in the method for above-mentioned industrial camera remote upgrade:
Comprise the steps: at industrial computer one end
A1, confirmation industrial camera to be upgraded withdraw from application program, enter the configuration code state of a control of dispatching from the factory;
A2, the packing of the firmware upgrade procedure of industrial camera is sent to respectively the step of industrial camera by gigabit Ethernet, in this step, packets need of every transmission is received the reply of the previous packet of correct reception that industrial camera is returned, otherwise, retransmit this packet, until all packets successfully send to industrial camera;
Carry out following steps at industrial camera one end;
B1, the guiding configuration code that dispatches from the factory, and send to industrial computer and enter the configuration code state of a control signal that dispatches from the factory;
B2, receive the packet of the firmware upgrade procedure that is sent by industrial computer, often receive a packet, whether correctly detect this packet, if correct, to the correct signal of industrial computer transmitting and receiving data bag, until correctly receive all packets;
B3, all packets that will receive write in flash.
Further, in the method for above-mentioned industrial camera remote upgrade: described packet comprises the 802.2SNAP packet header of the 802.2LLC of the 802.3MAC packet header of 14 bytes, 3 bytes, 5 bytes, the data of 38~1492 bytes and the CRC check code of 4 bytes;
The concrete form of described data division is as follows:
flag?+?type?+?legth?+?addr?+?data?+?sum
Wherein:
Flag indicates this bag and is the system configuration data AKU;
The particular type of Type unlabeled data AKU:
0x00--record description information;
0x01,0x02,0x03--the data of record storage, this three's difference are that the length of address (addr) is different, and 0x01 is 2byte, and 0x02 is 3byte, and 0x03 is 4byte;
0x07,0x08, the start address of 0x09--determine procedures;
This three's difference is that also the length of address (addr) is different, and 0x09 is 2byte, and 0x08 is 3byte, and 0x07 is 4byte;
The length of length unlabeled data;
The start address that the addr unlabeled data writes.
Data indicates the ROMPaq data;
Sum indicate verification and, by<addr〉and<data then every bit negate acquisition of data accumulation.
But the present invention also provides a kind of camera of remote upgrade, comprises fpga chip and processor that cameras work is controlled, and the configurator that stores FPGA needs external nonvolatile memory; Described nonvolatile memory comprises default configuration program sectioning and the user's configurator subregion that stores the configuration of dispatching from the factory at least; Also comprise Gigabit Ethernet controller and nonvolatile memory read-write controller in described fpga chip.
Further, but in the camera of above-mentioned remote upgrade: described nonvolatile memory comprises 32 sectors, wherein, and the 0-7 sector storage configurator that dispatches from the factory, 8-21 sector storage user program, the out of Memory of 22-31 sector storage camera.
The invention discloses a kind of by Long-distance Control can to camera carry out firmware upgrade method and can be by the long-range camera that carries out firmware upgrade, can overcome to fire by programmable device or specific download cable at present camera is upgraded, dirigibility is relatively poor, must take system apart during upgrading, the shortcoming that reconnects download cable or use programmable device that memory device is fired.
Below by with specific embodiments and the drawings, the present invention is further detailed.
Description of drawings
Accompanying drawing 1 is the industrial camera structured flowchart of the embodiment of the present invention.
Accompanying drawing 2 is embodiment of the present invention packet structure figure.
Accompanying drawing 3 is that embodiment of the present invention industrial control computer carries out the process flow diagram of remote upgrade to camera.
Accompanying drawing 4 is process flow diagrams of camera one end in the camera escalation process in the embodiment of the present invention.
Embodiment
As shown in Figure 1, the present embodiment is a kind of industrial camera that can the remote upgrade firmware, comprises fpga chip and processor that cameras work is controlled, and the configurator that stores FPGA needs external nonvolatile memory, namely flash; Also comprise Gigabit Ethernet controller and flash read-write controller in fpga chip.Flash comprises 32 sectors, wherein, and the 0-7 sector storage configurator that dispatches from the factory, 8-21 sector storage user program, the out of Memory of 22-31 sector storage camera.
In camera, processor CPU is the vitals of completing firmware upgrade in camera, it receives upgrade data from application program by Ethernet interface, then data are carried out verification, decoding, correct data are write FLASH by flash controller, and reply application program, reconfigure FPGA after upgrading is completed, the remote upgrade of final completion system.
Here, the FPGA remote system upgrade refers to by network or other data path, upgrade data be sent to system from developing the place, and then these data of system storage reconfigure the upgrading of FPGA device completion system with these data.FPGA remote system upgrade system mainly comprises three parts: flush bonding processor (CPU), Flash device, application program.Whole as follows:
Application program reads the upgrade file of FPGA, and form according to the rules sends to camera by Ethernet, and camera carries out verification to the data of receiving, if data are correct, data are write in FLASH, otherwise notification application resends data, guarantee to write data in FLASH accurately.
Adopt the FPGA of Altera in the present embodiment
In the product of Altera, according to the role of FPGA in whole layoutprocedure, can be divided into 3 classes: FPGA active mode (AS); FPGA passive mode (PS); The JTAG mode.
Under the AS configuration mode, by the FPGA on plate initiatively export control and synchronizing signal to a kind of series arrangement chip of Altera special use (as EPCS etc.), after configuring chip receives orders, just the configuring chip data are dealt into FPGA, complete layoutprocedure.Attention: this mode can only be used in conjunction with the active series arrangement chip that Altera provides (being EPCS series).
Under the PS configuration, initiate and control layoutprocedure by other equipment of system.These equipment comprise the configuring chip (EPC series) of Altera, or microcontroller (as single-chip microcomputer), CPLD etc.FPGA is in passive position fully, and just simple some status signals of output coordinate layoutprocedure.In the FPGA passive mode, comprise passive serial (PS), fast passive parallel (FPP), passive parallel synchronous (PPS), passive and line asynchronous (PPA) etc.Here the most frequently used, representative is the PS pattern, and this pattern is that all Altera FPGA support, general modal is to complete layoutprocedure with the configuring chip EPC series of Altera.When doing the PS configuration, the FPGA configuration data writes FPGA with data from inner the reading of storer (being generally EPC series) when the rising edge of clock arrives.
The JTAG pattern is the standard interface of IEEE 1149.1 boundary scan testings, is mainly used in the functions such as test of chip.Altera FPGA supports to be configured by the JTAG order mode of FPGA basically, and the configuration mode of JTAG is all more senior than other any configuration modes.
The above upgrades, and all needs from long-range, AKU correctly to be received, and therefore, the data that correctly receive AKU are exactly the key of the present embodiment product and method.
Concrete, FLASH is the parking space of the configurator of camera, and its capacity is 16Mb, altogether minute for 32 sectors, native system according to the actual requirements with its minute for three parts, be respectively used to deposit different data, concrete subregion is as shown in table 1:
The configuration of wherein dispatching from the factory is used for preserving the default configuration program when dispatching from the factory, and the user can not revise, and can be used for the emergent restoring system configuration when upgrading unsuccessfully.Final configurator is preserved in user's configuration, and the user can upgrade to system by long-range.Other message parts be used for to be preserved other information of product such as initialization and are arranged etc.
Table 1
As shown in Figure 3 and Figure 4, be the process flow diagram that carries out remote upgrade:
Comprise the steps: at industrial computer one end
A1, confirmation industrial camera to be upgraded withdraw from application program, enter the configuration code state of a control of dispatching from the factory;
A2, the packing of the firmware upgrade procedure of industrial camera is sent to respectively the step of industrial camera by gigabit Ethernet, in this step, packets need of every transmission is received the reply of the previous packet of correct reception that industrial camera is returned, otherwise, retransmit this packet, until all packets successfully send to industrial camera;
Carry out following steps at industrial camera one end;
B1, the guiding configuration code that dispatches from the factory, and send to industrial computer and enter the configuration code state of a control signal that dispatches from the factory;
B2, receive the packet of the firmware upgrade procedure that is sent by industrial computer, often receive a packet, whether correctly detect this packet, if correct, to the correct signal of industrial computer transmitting and receiving data bag, until correctly receive all packets;
B3, with in the flash that receives.
Packet as shown in Figure 2, application program and camera carry out exchanges data by Ethernet, adopt the 802.3/802.2 LLC frame format of standard, and be specific as follows:
Comprise the 802.2SNAP packet header of the 802.2LLC of the 802.3MAC packet header of 14 bytes, 3 bytes, 5 bytes, the data of 38~1492 bytes and the CRC check code of 4 bytes;
Due to the importance of configuration data, therefore must guarantee that makeing mistakes in transmitting procedure in time found and correct, so this system done extra verification to " data " part, " data " partly specifically form is as follows:
flag?+?type?+?legth?+?addr?+?data?+?sum
Wherein:
Flag indicates this bag and is the system configuration data AKU;
The particular type of Type unlabeled data AKU:
0x00--record description information;
0x01,0x02,0x03--the data of record storage, this three's difference are that the length of address (addr) is different, and 0x01 is 2byte, and 0x02 is 3byte, and 0x03 is 4byte;
0x07,0x08, the start address of 0x09--determine procedures;
This three's difference is that also the length of address (addr) is different, and 0x09 is 2byte, and 0x08 is 3byte, and 0x07 is 4byte;
The length of length unlabeled data;
The start address that the addr unlabeled data writes.
Data indicates the ROMPaq data;
Sum indicate verification and, by<addr〉and<data then every bit negate acquisition of data accumulation.
Claims (5)
1. the method for an industrial camera remote upgrade, it is characterized in that: industrial computer is connected with industrial camera by gigabit Ethernet, utilize gigabit Ethernet that upgrading data packet is mail to industrial camera, the work of industrial camera is controlled by the configuration code that dispatches from the factory, after correct reception AKU, the firmware in flash is replaced fully.
2. the method for industrial camera remote upgrade according to claim 1 is characterized in that:
Comprise the steps: at industrial computer one end
A1, confirmation industrial camera to be upgraded withdraw from application program, enter the configuration code state of a control of dispatching from the factory;
A2, the packing of the firmware upgrade procedure of industrial camera is sent to respectively the step of industrial camera by gigabit Ethernet, in this step, packets need of every transmission is received the reply of the previous packet of correct reception that industrial camera is returned, otherwise, retransmit this packet, until all packets successfully send to industrial camera;
Carry out following steps at industrial camera one end;
B1, the guiding configuration code that dispatches from the factory, and send to industrial computer and enter the configuration code state of a control signal that dispatches from the factory;
B2, receive the packet of the firmware upgrade procedure that is sent by industrial computer, often receive a packet, whether correctly detect this packet, if correct, to the correct signal of industrial computer transmitting and receiving data bag, until correctly receive all packets;
B3, all packets that will receive copy in flash.
3. the method for industrial camera remote upgrade according to claim 2, it is characterized in that: described packet comprises the 802.2SNAP packet header of the 802.2LLC of the 802.3MAC packet header of 14 bytes, 3 bytes, 5 bytes, the data of 38~1492 bytes and the CRC check code of 4 bytes;
The concrete form of described data division is as follows:
flag?+?type?+?legth?+?addr?+?data?+?sum
Wherein:
Flag indicates this bag and is the system configuration data AKU;
The particular type of Type unlabeled data AKU:
0x00--record description information;
0x01,0x02,0x03--the data of record storage, this three's difference are that the length of address (addr) is different, and 0x01 is 2byte, and 0x02 is 3byte, and 0x03 is 4byte;
0x07,0x08, the start address of 0x09--determine procedures;
This three's difference is that also the length of address (addr) is different, and 0x09 is 2byte, and 0x08 is 3byte, and 0x07 is 4byte;
The length of length unlabeled data;
The start address that the addr unlabeled data writes;
Data indicates the ROMPaq data;
Sum indicate verification and, by<addr〉and<data then every bit negate acquisition of data accumulation.
4. but the camera of a remote upgrade, comprise fpga chip and processor that cameras work is controlled, and the configurator that stores FPGA needs external nonvolatile memory; It is characterized in that: described nonvolatile memory comprises default configuration program sectioning and the user's configurator subregion that stores the configuration of dispatching from the factory at least; Also comprise Gigabit Ethernet controller and nonvolatile memory read-write controller in described fpga chip.
5. but the camera of remote upgrade according to claim 4, it is characterized in that: described nonvolatile memory comprises 32 sectors, wherein, and the 0-7 sector storage configurator that dispatches from the factory, 8-21 sector storage user program, the out of Memory of 22-31 sector storage camera.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013100764256A CN103106095A (en) | 2013-03-11 | 2013-03-11 | Method for remotely upgrading industrial camera and camera |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013100764256A CN103106095A (en) | 2013-03-11 | 2013-03-11 | Method for remotely upgrading industrial camera and camera |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103106095A true CN103106095A (en) | 2013-05-15 |
Family
ID=48313979
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2013100764256A Pending CN103106095A (en) | 2013-03-11 | 2013-03-11 | Method for remotely upgrading industrial camera and camera |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103106095A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103454959A (en) * | 2013-09-03 | 2013-12-18 | 北京天诚同创电气有限公司 | Industrial control system based on remote control and method for updating control program |
CN104572178A (en) * | 2014-12-19 | 2015-04-29 | 南昌市科陆智能电网科技有限公司 | Method and system for remote differential upgrading of electric energy meter embedding type software |
CN105242939A (en) * | 2015-09-11 | 2016-01-13 | 三星半导体(中国)研究开发有限公司 | Connector for programming firmware to main board and method for programming firmware by using connector |
CN105808465A (en) * | 2016-03-04 | 2016-07-27 | 浙江大华技术股份有限公司 | Method and device for upgrading camera equipment |
CN109188949A (en) * | 2018-06-28 | 2019-01-11 | 郑州众智科技股份有限公司 | The method that host computer passes through MODBUS protocol remote upgraded electricity generation generator set controller |
CN111555914A (en) * | 2020-04-24 | 2020-08-18 | 深圳国人无线通信有限公司 | FPGA remote configuration method |
CN111629205A (en) * | 2020-07-28 | 2020-09-04 | 天津美腾科技股份有限公司 | System and method applied to industrial camera simulation test |
CN111934911A (en) * | 2020-07-15 | 2020-11-13 | 北京自动化控制设备研究所 | FPGA firmware batch upgrading system and method based on network distribution |
CN113867771A (en) * | 2021-09-29 | 2021-12-31 | 哈尔滨工程大学 | Remote firmware upgrading method based on FPGA |
CN114584708A (en) * | 2022-03-03 | 2022-06-03 | 杭州图谱光电科技有限公司 | Multi-functional industry camera system based on monolithic FPGA |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1933416A (en) * | 2005-09-12 | 2007-03-21 | 中兴通讯股份有限公司 | Long-distance on-line staging method with self-recovery function |
US20100199078A1 (en) * | 2009-02-04 | 2010-08-05 | Novatek Microelectronics Corp. | Method of safe and recoverable firmware update and device using the same |
CN101814036A (en) * | 2010-03-09 | 2010-08-25 | 广州市聚晖电子科技有限公司 | RF remote upgrading method and system |
-
2013
- 2013-03-11 CN CN2013100764256A patent/CN103106095A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1933416A (en) * | 2005-09-12 | 2007-03-21 | 中兴通讯股份有限公司 | Long-distance on-line staging method with self-recovery function |
US20100199078A1 (en) * | 2009-02-04 | 2010-08-05 | Novatek Microelectronics Corp. | Method of safe and recoverable firmware update and device using the same |
CN101814036A (en) * | 2010-03-09 | 2010-08-25 | 广州市聚晖电子科技有限公司 | RF remote upgrading method and system |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103454959B (en) * | 2013-09-03 | 2015-12-02 | 北京天诚同创电气有限公司 | Based on the industrial control system of Long-distance Control and the method for renewal control program |
CN103454959A (en) * | 2013-09-03 | 2013-12-18 | 北京天诚同创电气有限公司 | Industrial control system based on remote control and method for updating control program |
CN104572178A (en) * | 2014-12-19 | 2015-04-29 | 南昌市科陆智能电网科技有限公司 | Method and system for remote differential upgrading of electric energy meter embedding type software |
CN104572178B (en) * | 2014-12-19 | 2018-05-08 | 南昌市科陆智能电网科技有限公司 | Electric energy meter embedded software remote differential upgrade method and upgrade-system |
CN105242939A (en) * | 2015-09-11 | 2016-01-13 | 三星半导体(中国)研究开发有限公司 | Connector for programming firmware to main board and method for programming firmware by using connector |
CN105808465A (en) * | 2016-03-04 | 2016-07-27 | 浙江大华技术股份有限公司 | Method and device for upgrading camera equipment |
CN105808465B (en) * | 2016-03-04 | 2018-12-07 | 浙江大华技术股份有限公司 | A kind of upgrade method and device of picture pick-up device |
CN109188949B (en) * | 2018-06-28 | 2021-10-22 | 郑州众智科技股份有限公司 | Method for remotely upgrading generator set controller by upper computer through MODBUS protocol |
CN109188949A (en) * | 2018-06-28 | 2019-01-11 | 郑州众智科技股份有限公司 | The method that host computer passes through MODBUS protocol remote upgraded electricity generation generator set controller |
CN111555914A (en) * | 2020-04-24 | 2020-08-18 | 深圳国人无线通信有限公司 | FPGA remote configuration method |
CN111555914B (en) * | 2020-04-24 | 2023-03-14 | 深圳国人无线通信有限公司 | FPGA remote configuration method |
CN111934911A (en) * | 2020-07-15 | 2020-11-13 | 北京自动化控制设备研究所 | FPGA firmware batch upgrading system and method based on network distribution |
CN111629205A (en) * | 2020-07-28 | 2020-09-04 | 天津美腾科技股份有限公司 | System and method applied to industrial camera simulation test |
CN113867771A (en) * | 2021-09-29 | 2021-12-31 | 哈尔滨工程大学 | Remote firmware upgrading method based on FPGA |
CN113867771B (en) * | 2021-09-29 | 2024-05-24 | 哈尔滨工程大学 | Remote firmware upgrading method based on FPGA |
CN114584708A (en) * | 2022-03-03 | 2022-06-03 | 杭州图谱光电科技有限公司 | Multi-functional industry camera system based on monolithic FPGA |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103106095A (en) | Method for remotely upgrading industrial camera and camera | |
CN106598632B (en) | Firmware upgrading method and device for optical module | |
CN109768970B (en) | Configurable universal protocol generation method | |
US10346344B2 (en) | Method, client device and data forwarding device for transmitting data through serial port | |
KR101007739B1 (en) | Method and system for providing fota service | |
CN102736938A (en) | Burning method of FPGA (Field Programmable Gate Array) configuration program | |
CN104579719A (en) | A method and system for updating firmware, upper computer and optical module | |
KR101327680B1 (en) | Apparatus, system and method for upgrading firmware of energy device | |
CN103455346B (en) | Application program deployment method, deployment main control computer, deployment client side and cluster | |
CN110134421A (en) | Electric energy meter management chip upgrading method and system, electronic equipment and storage medium | |
CN110119280A (en) | The method and device of more firmware upgrades | |
CN106851625A (en) | A kind of blue tooth productses OTA upgrade methods | |
CN112835616A (en) | Version upgrading method and device, electronic equipment and storage medium | |
JP7341231B2 (en) | How to update settings for LED display, receiving card, LED display module, and LED display | |
JP2018521411A (en) | Node configuration management in the network | |
CN102711095B (en) | A kind of method of the node in wireless sensor network being carried out to radio upgrade | |
CN112100081B (en) | Upgrade test method and device based on double-core intelligent electric meter and computer equipment | |
CN106130771B (en) | Method for upgrading FLASH on line based on in-band Ethernet | |
CN109451098A (en) | FPGA accelerator card MAC Address configuration method, device and accelerator card | |
WO2016062154A1 (en) | Information acquisition method and device, and communication system | |
CN103376777A (en) | Testing method of Modbus communication interface of controller and upper computer | |
CN110673862A (en) | Wireless upgrading method, equipment and medium for embedded equipment firmware with dual-use multi-mode | |
CN101299190B (en) | Software upgrading method, system and built-in equipment of read-only file system | |
US20140115148A1 (en) | Decommission of a Server in Wireless Environment | |
CN112181444A (en) | DSP multi-core data programming method based on 1553B bus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20130515 |