CN111240711B - DSP software updating method for photoelectric equipment integrated control circuit - Google Patents

DSP software updating method for photoelectric equipment integrated control circuit Download PDF

Info

Publication number
CN111240711B
CN111240711B CN201911381767.2A CN201911381767A CN111240711B CN 111240711 B CN111240711 B CN 111240711B CN 201911381767 A CN201911381767 A CN 201911381767A CN 111240711 B CN111240711 B CN 111240711B
Authority
CN
China
Prior art keywords
control circuit
software
updating
integrated control
target file
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.)
Active
Application number
CN201911381767.2A
Other languages
Chinese (zh)
Other versions
CN111240711A (en
Inventor
夏志清
聂辉
贺世超
何文波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Huazhong Tianjing Tongshi Technology Co ltd
Original Assignee
717th Research Institute of CSIC
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 717th Research Institute of CSIC filed Critical 717th Research Institute of CSIC
Priority to CN201911381767.2A priority Critical patent/CN111240711B/en
Publication of CN111240711A publication Critical patent/CN111240711A/en
Application granted granted Critical
Publication of CN111240711B publication Critical patent/CN111240711B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a method for updating DSP software of a comprehensive control circuit of photoelectric equipment, which comprises the following steps: the debugging software sends a software updating starting instruction to the comprehensive control circuit, and the comprehensive control circuit executes the unlocking and erasing processes of the memory of the comprehensive control circuit after receiving the updating starting instruction; the integrated control circuit reports the current state to debugging software, the debugging software reads and analyzes a software update target file, basic information of the target file is obtained, and a software update message is sent to the integrated control circuit; after receiving the software updating message, the integrated control circuit analyzes the software updating message according to the message protocol format to obtain the write-in address and write-in data on the memory of the integrated control circuit, and executes the unlocking and reading-writing operations of the corresponding memory area to complete the software updating of the integrated control circuit. The technical scheme solves the problems of complex process and inconvenient use of the existing updating method, can simplify operation, is convenient and practical, and reduces the technical requirement on the updating personnel.

Description

DSP software updating method for photoelectric equipment integrated control circuit
Technical Field
The invention relates to the technical field of optoelectronic device electronics, in particular to a DSP software updating method for an integrated control circuit of an optoelectronic device.
Background
In the photoelectric equipment control system, a photoelectric control circuit and a software function module thereof are used as a core processing unit of photoelectric equipment, and have the functions of photoelectric sensor controller control, servo system control, work task scheduling and the like, and DSP software on the photoelectric equipment comprehensive control circuit needs to be updated and debugged frequently so as to ensure that the photoelectric control circuit works normally and efficiently.
Generally, when the software of the photoelectric integrated control circuit DSP is updated, a simulator needs to be connected for debugging and updating, but when the photoelectric integrated control circuit is installed inside a photoelectric director or a sensor array sealed cavity, the simulator is used for debugging and updating, the operation process is complex, and the normal development and debugging progress of the photoelectric equipment software is influenced.
Disclosure of Invention
In view of this, the embodiment of the present invention provides a method for updating a DSP software of an integrated control circuit of an optoelectronic device, so as to solve the problem that when the DSP software of an existing integrated control circuit is updated, the integrated control circuit is installed in a sealed cavity, and the updating and debugging process using an emulator is complex and inconvenient.
In a first aspect of the embodiments of the present invention, a method for updating software of a DSP of an integrated control circuit of an optoelectronic device is provided, including:
the debugging software sends a software updating starting instruction to the comprehensive control circuit, and the comprehensive control circuit executes the unlocking and erasing processes of the memory of the comprehensive control circuit after receiving the updating starting instruction;
the integrated control circuit reports the current state to debugging software, the debugging software reads and analyzes a software update target file, basic information of the target file is obtained, and a software update message is sent to the integrated control circuit;
and after receiving the software updating message, the integrated control circuit analyzes the software updating message according to a message protocol format to obtain a write-in address and write-in data on a memory of the integrated control circuit, and executes unlocking and reading-writing operations of a corresponding storage area to complete software updating of the integrated control circuit.
In one embodiment, operational processes on the integrated control circuit that are not associated with software updates are masked.
In one embodiment, the basic information of the target file includes the size of the target file, the number of rows, the total number of messages required, and the size of the storage space.
In one embodiment, each line of data corresponding to the software update target file is sent to the integrated control circuit as a message, and whether to continue sending the next line of data is judged according to a feedback result of the integrated control circuit.
In one embodiment, after data is written into the corresponding storage area, reading and checking the written data to judge whether the writing is successful, and reporting an error state to debugging software to apply for rewriting and sending if the read data after writing for many times is not consistent with the pre-written data.
In one embodiment, after the software updating is finished, an end mark is sent to the debugging software, the comprehensive control circuit is powered off and restarted, and the DSP of the comprehensive control board is guided to start from a default address of the memory.
In the embodiment of the invention, by sending a software update starting instruction, the integrated control circuit unlocks and erases a memory, shields other operation processes, and debugs software to read and analyze a software update target file, acquire basic information of the target file and send a software update message to the integrated control circuit;
the comprehensive control circuit analyzes the software updating message according to a message protocol format to obtain a write-in address and write-in data on the memory, executes unlocking and reading and writing operations of a corresponding storage area, feeds back a write-in result, and performs power-off restarting after the updating is finished to complete DSP software updating on the comprehensive control circuit. The comprehensive control circuit can be simplified in the DSP software updating and debugging process, is convenient and practical, and solves the problems that the comprehensive control circuit is complex in implementation process and inconvenient to use when being installed in a sealed cavity and updated and debugged by using a simulator, so that the technical requirement on software updating personnel is reduced, additional tools are not needed, and the comprehensive control circuit is suitable for the updating requirement of remote software.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings described below are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for updating software of a comprehensive control circuit DSP of an optoelectronic device according to an embodiment of the present invention;
fig. 2 is another flowchart of a method for updating software of a DSP of an integrated control circuit of an optoelectronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the embodiments described below are only a part of the embodiments of the present invention, and not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons skilled in the art without any inventive work shall fall within the protection scope of the present invention, and the principle and features of the present invention shall be described below with reference to the accompanying drawings.
The terms "comprises" and "comprising," when used in this specification and claims, and in the accompanying drawings and figures, are intended to cover non-exclusive inclusions, such that a process, method or system, or apparatus that comprises a list of steps or elements is not limited to the listed steps or elements.
Referring to fig. 1, fig. 1 is a schematic flow chart of a method for updating software of a DSP of an integrated control circuit of an optoelectronic device according to an embodiment of the present invention, including:
s101, debugging software sends a software updating starting instruction to a comprehensive control circuit, and the comprehensive control circuit executes unlocking and erasing processes of a comprehensive control circuit memory after receiving the updating starting instruction;
and establishing connection between the integrated control circuit and the upper computer, and sending a software updating instruction to the integrated control circuit through debugging software installed on the upper computer. And the comprehensive control circuit executes the initialization operation of the circuit board memory after receiving the instruction, namely, the unlocking and erasing processes of the comprehensive control circuit memory are carried out. The operation process irrelevant to software updating on the integrated control circuit is shielded, and the influence of other processes on the updating process can be avoided.
In one embodiment, the method for updating the software of the comprehensive control circuit DSP of the optoelectronic device comprises three modules: the system comprises a software debugging interface, a communication relay and a photoelectric equipment comprehensive control circuit, wherein the photoelectric equipment comprehensive control circuit is used for realizing the comprehensive control of photoelectric equipment and is an object for updating DSP software; the debugging interface is used for realizing information interaction with the comprehensive control circuit and software updating processing flow control, analyzing a locally generated DSP target file, performing DSP software updating flow operation of the comprehensive control circuit according to a certain protocol format and a certain control flow, and serving as an upper computer for DSP software updating; the communication relay is used for realizing information interaction processing between the integrated control circuit and the debugging interface. The three are interconnected through a communication interface in a certain form, so that information interaction processing among the three is realized.
S102, the integrated control circuit reports the current state to debugging software, the debugging software reads and analyzes a software updating target file, basic information of the target file is obtained, and a software updating message is sent to the integrated control circuit;
the software updating target file is a loadable file in an Intel32bit standard format, the content of the file comprises all starting code streams and is stored in a static memory for starting, the file consists of a plurality of subblocks, each subblock can be divided into a head part and a data part, and part of special subblocks only have the head part and do not have a data area. The header area has 16 bytes, and stores the CRC check data, the identifier, the destination address, the block size, and the block parameter of the header, respectively, and the data area is data written to the flash destination address.
And analyzing by the debugging software according to the format of the target file to obtain basic information of the target file, wherein the basic information comprises the size, the line number, the total number of required messages and the size of the storage space of the target file. And sending a software updating information message to the comprehensive control circuit according to the transmission protocol format and the control flow.
Preferably, the debugging software counts the total line number of the target file, and sends the DSP target file to the integrated control circuit according to the communication protocol and the sequence of the file lines, the DSP target file includes the update start information and the programming end information, and the target file is sent as a message according to each line of data and judges whether to continue sending the next line of data according to the update result fed back by the integrated control circuit.
Specifically, as shown in fig. 2, the debug software reads the execution file, determines whether the file is completely transmitted in S201, acquires the number of transmitted lines if the file is not completely transmitted, processes and transmits the unsent data packet, determines whether the packet is correctly transmitted according to the feedback information of the integrated circuit in S202, reads the next line of packet data for transmission if the packet is correctly transmitted, and retransmits the packet if the packet is not correctly transmitted.
S103, after receiving the software updating message, the integrated control circuit analyzes the software updating message according to a message protocol format to obtain a write-in address and write-in data on a memory of the integrated control circuit, and executes unlocking and reading and writing operations of a corresponding storage area to complete software updating of the integrated control circuit.
The updating message sent by the debugging software comprises an updating data storage address and content, and the updating message of the software is analyzed according to the message protocol format to obtain the data storage address and the content, and then the data storage address and the content are written into a corresponding storage area of the integrated control circuit memory.
Preferably, after the data is written into the corresponding storage area, the written data is read and checked to judge whether the writing is successful, and if the data read after the writing for many times is not consistent with the pre-written data, an error state is reported to the debugging software to apply for rewriting and sending.
After each updating message is sent by the debugging software, the comprehensive control circuit receives and analyzes the updating message, writes the updating message into the corresponding storage area, checks the correctness of the data, reports the current state until the writing of all updating data is completed, sends an end mark to the debugging software, is powered off and restarted, and the DSP of the comprehensive control board is guided and started from the default address of the memory to realize the updating of the DSP software.
In one embodiment of the present invention, the software update target file is an Idr format file, and is a PROM and Flash recognizable file, where the Idr file format is:
Figure BDA0002342440380000051
Figure BDA0002342440380000061
the Byte count is the number of bytes of destination Data (Data or Offset Address) represented in hexadecimal; address is the lower 16-bit Address of flash; the Offset Address is the high 16-bit Address of the flash; record type is data type, which is divided into three types, and respectively represents a file header, file data and a file tail; data is real target Data which needs to be written into the flash; checksum is the lower eight bits of the total Byte complement accumulated sum from Byte count from the Data field.
Compared with the prior art, the method provided by the embodiment can realize the system updating of the main control board software through software design based on the existing communication interface, is simple and convenient to operate, has remarkable practicability and strong universality, and is suitable for the requirement of remote software updating of equipment. Meanwhile, only a computer and debugging software are needed to be debugged (even the function of the debugging software can be integrated into the equipment software), and no additional debugging tool is needed, so that the skill requirement on software updating personnel is reduced, and the manpower and material resources are reasonably utilized.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those skilled in the art will appreciate that all or part of the steps in the method for implementing the above embodiments may be implemented by controlling the relevant hardware through a program or instructions, where the program may be stored in a computer-readable storage medium, and when the program is executed, the program implements the DSP software update on the integrated control circuit, and the storage medium includes, for example: ROM/RAM, magnetic disk, optical disk, etc.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (5)

1. A method for updating DSP software of an integrated control circuit of photoelectric equipment is characterized by comprising the following steps:
the debugging software sends a software updating starting instruction to the comprehensive control circuit, and the comprehensive control circuit executes the unlocking and erasing processes of the memory of the comprehensive control circuit after receiving the updating starting instruction;
the process of executing the unlocking and erasing of the integrated control circuit memory further comprises the following steps:
shielding an operation process irrelevant to software updating on the integrated control circuit;
the integrated control circuit reports the current state to debugging software, the debugging software reads and analyzes a software update target file, basic information of the target file is obtained, and a software update message is sent to the integrated control circuit;
and after receiving the software updating message, the integrated control circuit analyzes the software updating message according to a message protocol format to obtain a write-in address and write-in data on a memory of the integrated control circuit, and executes unlocking and reading-writing operations of a corresponding storage area to complete software updating of the integrated control circuit.
2. The method of claim 1, wherein the basic information of the target file comprises a size of the target file, a number of lines, a total number of required packets, and a size of a storage space.
3. The method of claim 1, wherein the reporting of the current status to the debug software by the integrated control circuit, the reading and parsing of the software update target file by the debug software, the obtaining of the basic information of the target file, and the sending of the software update message to the integrated control circuit comprise:
and sending each row of data corresponding to the software updating target file to the comprehensive control circuit as a message, and judging whether to continue sending the next row of data or not according to a feedback result of the comprehensive control circuit.
4. The method of claim 1, wherein the performing the unlocking, reading, and writing operations of the corresponding storage area comprises:
and after the data is written into the corresponding storage area, reading and checking the written data to judge whether the writing is successful, and if the data read after the writing for many times is not consistent with the pre-written data, reporting an error state to debugging software to apply for rewriting and sending.
5. The method of claim 1, wherein the performing the unlocking and reading/writing operations of the corresponding storage area to complete the software update of the integrated control circuit further comprises:
and after the software updating is finished, sending an end mark to the debugging software, powering off the comprehensive control circuit for restarting, and leading the DSP of the comprehensive control board to start from the default address of the memory.
CN201911381767.2A 2019-12-28 2019-12-28 DSP software updating method for photoelectric equipment integrated control circuit Active CN111240711B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911381767.2A CN111240711B (en) 2019-12-28 2019-12-28 DSP software updating method for photoelectric equipment integrated control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911381767.2A CN111240711B (en) 2019-12-28 2019-12-28 DSP software updating method for photoelectric equipment integrated control circuit

Publications (2)

Publication Number Publication Date
CN111240711A CN111240711A (en) 2020-06-05
CN111240711B true CN111240711B (en) 2021-08-13

Family

ID=70874151

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911381767.2A Active CN111240711B (en) 2019-12-28 2019-12-28 DSP software updating method for photoelectric equipment integrated control circuit

Country Status (1)

Country Link
CN (1) CN111240711B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8046753B1 (en) * 2003-06-18 2011-10-25 Hewlett-Packard Development Company, L.P. Mobile handset with symbian OS and update agent
CN102426528A (en) * 2011-09-15 2012-04-25 中国船舶重工集团公司第七○七研究所 Online updating method for kernel program of navigation positioning receiver
CN105700898A (en) * 2014-11-25 2016-06-22 中兴通讯股份有限公司 Upgrading file production method and apparatus as well as upgrading file acquisition method and apparatus
CN106789210A (en) * 2016-12-12 2017-05-31 中国船舶重工集团公司第七0五研究所 A kind of many DSP intelligent nodes on-line software updating methods based on CAN
CN109358891A (en) * 2018-09-18 2019-02-19 中国船舶重工集团公司第七〇九研究所 A kind of the dsp software upgrade method and system of embedded controller

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8046753B1 (en) * 2003-06-18 2011-10-25 Hewlett-Packard Development Company, L.P. Mobile handset with symbian OS and update agent
CN102426528A (en) * 2011-09-15 2012-04-25 中国船舶重工集团公司第七○七研究所 Online updating method for kernel program of navigation positioning receiver
CN105700898A (en) * 2014-11-25 2016-06-22 中兴通讯股份有限公司 Upgrading file production method and apparatus as well as upgrading file acquisition method and apparatus
CN106789210A (en) * 2016-12-12 2017-05-31 中国船舶重工集团公司第七0五研究所 A kind of many DSP intelligent nodes on-line software updating methods based on CAN
CN109358891A (en) * 2018-09-18 2019-02-19 中国船舶重工集团公司第七〇九研究所 A kind of the dsp software upgrade method and system of embedded controller

Also Published As

Publication number Publication date
CN111240711A (en) 2020-06-05

Similar Documents

Publication Publication Date Title
US8589521B2 (en) Method for testing connectivity of software applications hosted on networked computers
US20100095159A1 (en) Apparatus and method for automatic testing of software or digital devices
CN103019939A (en) Method and system for testing driver
CN103106163A (en) Online upgrading structure and method for FPGA chip based on data frame asynchronous transmission protocol
CN113608772B (en) Application program upgrading method and device
CN109460268B (en) Application parameter configuration method, device and system
CN106444657A (en) Modbus main station command processing method and master station controller
CN111427602B (en) Method for upgrading firmware on line of intelligent platform management controller of VPX case
CN115665020A (en) Communication analysis method, device, equipment and storage medium
CN111240711B (en) DSP software updating method for photoelectric equipment integrated control circuit
CN108845823B (en) Software online upgrading method based on F2812 chip
CN103376777B (en) The method of testing of the Modbus communication interface of controller and host computer
CN104883611A (en) Debugging method and system of television screen
CN102833144A (en) Network card data transmission method and system
CN110941254A (en) Aeroengine data processing method and equipment
CN112181444B (en) DSP multi-core data programming method based on 1553B bus
CN104678292A (en) Test method and device for CPLD (Complex Programmable Logic Device)
CN212181459U (en) FPGA upgrading system
CN111464662B (en) Multi-node master-slave network system
CN112230848A (en) NVM automatic configuration method, device and equipment
CN113138779A (en) FPGA (field programmable Gate array) online program updating device and method based on multifunctional interface
JP6064749B2 (en) Controller and program
CN114579166A (en) Component module upgrading method, component module and financial robot
CN117632193B (en) Program burning system for processor chip
CN117667156A (en) Remote upgrading equipment and method based on FPGA chip

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20230721

Address after: 430000, No.1, Jiangxia Avenue, Miaoshan Development Zone, Jiangxia District, Wuhan City, Hubei Province

Patentee after: WUHAN HUAZHONG TIANJING TONGSHI TECHNOLOGY CO.,LTD.

Address before: 430000, No. 717, sunshine Avenue, Jiangxia District, Wuhan City, Hubei Province

Patentee before: NO. 717 RESEARCH INSTITUTE OF CHINA SHIPBUILDING INDUSTRY Corp.

TR01 Transfer of patent right