The content of the invention
Problem present in for the above-mentioned prior art, the application provide a kind of transducer power unit firmware online updating
Method, the frequency converter include be connected with each other DSP unit and FPGA unit, the DSP unit by the FPGA unit with
Host computer connects, and the FPGA unit is connected with power cell.This method can be in situation about not dismantled to power cell
Under, the firmware upgrade to power cell is completed by host computer, has the characteristics that update is efficient.The transducer power unit is consolidated
Part online updating method includes:
The host computer is mono- by the DSP by the corresponding element number of the power cell of more new command and firmware to be updated
Member is sent to the FPGA unit;
The FPGA unit sends the update to the power cell of the firmware to be updated according to the element number and refers to
Order controls it to enter bootload pattern;The power cell of the firmware to be updated is understood after entering bootload pattern to described
FPGA unit sends confirmation message;
It, can be again to the firmware to be updated when the FPGA unit does not receive the confirmation message in the given time
Power cell send more new command, when not receiving the confirmation message yet more than the predetermined time, the FPGA unit will
The power cell of the firmware to be updated is deleted from array to be updated;
It, can be by the power of the firmware to be updated when the FPGA unit receives the confirmation message in the given time
Unit is determined as renewable unit, and is retained in array to be updated;
After the array to be updated determines, the FPGA unit is disconnected between the host computer and the DSP unit
Connection, while establish its own renewable list between the host computer and in the host computer and the array to be updated
Communication connection between member;
The FPGA unit is sent to the host computer confirms update firmware information;The host computer receives the confirmation
After updating firmware information, send the more fresh code control renewable unit to the renewable unit and complete firmware update.
Optionally, the host computer sends the more fresh code control renewable unit to the renewable unit and completes admittedly
After the step of part updates, the method further includes:
The FPGA unit disconnects its own between the host computer and the host computer and the renewable unit
Between communication connection, while recover the connection between the host computer and the DSP unit.
Optionally, the host computer sends more fresh code to the renewable unit, including:
The host computer sends more fresh code by the way of segmentation to the renewable unit;The renewable unit is every
Receive one section of more fresh code can send response message to the FPGA unit;
When the FPGA unit does not receive the response message within the predetermined response time, the FPGA unit is by institute
Renewable unit is stated to delete from the array to be updated;When the FPGA unit receives the sound within the predetermined response time
When answering information, the response message is sent to the host computer by the FPGA unit;
The host computer send next section of more fresh code to the renewable list receiving the follow-up supervention of the response message
Member, until all more fresh codes are sent.
Optionally, the corresponding element number of the power cell of more new command and firmware to be updated is passed through institute by the host computer
It states DSP unit and is sent to the FPGA unit, including:
The host computer is by RS485 communication lines by the corresponding unit of the power cell of more new command and firmware to be updated
Number is sent to the DSP unit;
The DSP unit is by the communication mode of bus by the more new command received and the power cell of firmware to be updated
Corresponding element number is sent to the FPGA unit.
Optionally, described in the FPGA unit is sent according to the element number to the power cell of the firmware to be updated
More new command, specially:
The FPGA unit according to the element number by the downlink optical fiber of the power cell of the firmware to be updated to
More new command described in the power cell transmission of the firmware to be updated;
Correspondingly, the power cell of the firmware to be updated is sent really after entering bootload pattern to the FPGA unit
Recognize information, be specially:
The power cell of the firmware to be updated enters mono- to the FPGA by its uplink optical fibers after bootload pattern
Member sends confirmation message.
Optionally, the FPGA unit establish its own between the host computer and the host computer with it is described can be more
Communication connection between new unit, including:
The FPGA unit is established between the RX ports in its own RS485 communication line with the host computer and institute
State the communication connection between the TX ports in the RS485 communication lines of host computer and the downlink optical fiber of the renewable unit.
The corresponding element number of the power cell of more new command and firmware to be updated is passed through DSP by the present invention by host computer
Unit is sent to FPGA unit;FPGA unit controls the power cell of firmware to be updated to enter bootload pattern;FPGA unit
The connection between host computer and DSP unit is disconnected, while establishes its own between host computer and host computer and battle array to be updated
The communication connection between renewable unit in row;FPGA unit is sent to host computer confirms update firmware information;Host computer connects
Receive confirmation update firmware information after to renewable unit send more fresh code.FPGA unit recovers DSP after the completion of firmware update
Connection between unit and host computer.Therefore can be completed in the case where not dismantled to power cell by host computer
The firmware of power cell is updated, firmware update can be carried out to specific power cell, it is active can also disposably to complete institute
The firmware update of rate unit, has the characteristics that update is efficient.
Specific embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
The part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
Member's all other embodiments obtained on the premise of creative work is not made, belong to the scope of protection of the invention.
Referring to Fig. 1, Fig. 1 shows the flow of the transducer power unit firmware online updating method in the present embodiment
Figure, this method are used to implement the firmware update of power cell in frequency converter.Wherein the frequency converter includes the DSP connected by bus
Unit and FPGA unit, wherein DSP unit between FPGA unit and host computer by RS485 communication lines by being connected, FPGA
Unit is connected with power cell by uplink optical fibers and downlink optical fiber, as shown in Figure 2.
The transducer power unit firmware online updating method specifically includes following steps:
The corresponding element number of the power cell of more new command and firmware to be updated is passed through DSP unit by S101, host computer
It is sent to FPGA unit.
It should be noted that in the initial state, host computer is communicated to connect by RS485 communication lines and DSP unit
, therefore after the power cell of firmware to be updated is had selected in upper computer software, for more new command and firmware to be updated
The corresponding element number of power cell transmission, be in the following way in the present embodiment:
Host computer is first by RS485 communication lines by the corresponding unit of the power cell of more new command and firmware to be updated
Number is sent to DSP unit;The DSP unit is referred to the update received by the communication mode of bus after receiving above- mentioned information
Corresponding with the power cell of the firmware to be updated element number of order is sent to FPGA unit, by FPGA unit to the more new command with
The corresponding element number of power cell of firmware to be updated is further processed.
S102, FPGA unit send more new command to the power cell of firmware to be updated according to element number and control its entrance
Bootload pattern.
It should be noted that be smoothed out to ensure that follow-up firmware is newer, it must be determined that corresponding power cell into
Enter BootLoader patterns namely bootload pattern.Therefore the power cell entrance in the present embodiment in firmware to be updated is opened
It needs to send confirmation message to FPGA unit after dynamic loading pattern, so that whether FPGA unit may determine that corresponding power cell
BootLoader patterns are had been enter into.
And above-mentioned more new command is sent to by the downlink optical fiber of the power cell of firmware to be updated by FPGA unit and treated more
The power cell of new firmware, and above-mentioned confirmation message then passes through its uplink optical fibers by the power cell into BootLoader patterns
It is sent to FPGA unit.
S103, FPGA unit determine array to be updated.
It should be noted that above-mentioned steps are to determine which power cell has had been enter into BootLoader patterns,
Firmware update can be carried out to which power cell.Specifically, in the present embodiment for array to be updated it is definite use with
Under type:
Whether FPGA unit judgement has received the confirmation message that the power cell of firmware to be updated is sent in the given time,
The confirmation message represents that corresponding power cell has had been enter into BootLoader patterns.When FPGA unit does not connect in the given time
When receiving above-mentioned confirmation message, the power cell that FPGA unit can state firmware to be updated again up sends more new command, if
Do not receive above-mentioned confirmation message yet more than the predetermined time, then FPGA unit by the power cell of above-mentioned firmware to be updated to be updated
It is deleted in array, firmware update operation is no longer carried out to it.
And when FPGA unit receives above-mentioned confirmation message in the given time, it is determined that the work(of above-mentioned firmware to be updated
Rate unit is renewable unit, is retained at this time in array to be updated, subsequently to carry out firmware update to it.
S104, after array to be updated determines, FPGA unit disconnects the connection between host computer and DSP unit, builds simultaneously
Stand the communication connection between its own renewable unit between host computer and in host computer and array to be updated.
It should be noted that since host computer and DSP unit are by the connection of FPGA unit realization, for communication
The change of circuit changes its internal wiring to realize by FPGA unit, and specifically, communication line is changed into:
FPGA unit disconnects the connection between host computer and DSP unit, while FPGA unit establishes its own and host computer
RS485 communication lines in RX ports between and the RS485 communication lines of host computer in TX ports and renewable unit
Downlink optical fiber between communication connection, the communication line after change is as shown in Figure 3.
S105, FPGA unit is sent to host computer confirms update firmware information.
It should be noted that when changing communication line, FPGA unit can pass through the RS485 connections of host computer
RX ports in road are sent to host computer confirms update firmware information, informs that host computer can be sent at this time to power cell and updates
Code.
S106, after host computer receives confirmation update firmware information, sending the control of more fresh code to renewable unit can be more
New unit completes firmware update.
It should be noted that host computer is directly by power cell by the communication line after change in above-mentioned steps
Downlink optical fiber sends more fresh code to corresponding renewable new unit, and host computer is sent out by the way of segmentation to renewable unit
Send more fresh code;Renewable unit often receives one section of more fresh code can send response message to FPGA unit;
When FPGA unit does not receive response message within the predetermined response time, FPGA unit is by renewable unit from treating
It is deleted in update array, stops the firmware update to the unit;When FPGA unit receives response letter within the predetermined response time
During breath, response message is sent to host computer by FPGA unit;Host computer send next section more receiving the follow-up supervention of response message
To renewable unit above procedure is so repeated, until all more fresh codes are sent in fresh code.
After the completion of the firmware update of power cell, host computer shows the power cell of firmware update failure, and FPGA
Unit by communication line be restored to original state as shown in Figure 2 namely FPGA unit disconnect its own between host computer with
And the communication connection between host computer and renewable unit, while recover the connection between host computer and DSP unit.
The corresponding element number of the power cell of more new command and firmware to be updated is passed through DSP by the present invention by host computer
Unit is sent to FPGA unit;FPGA unit controls the power cell of firmware to be updated to enter bootload pattern;FPGA unit
The connection between host computer and DSP unit is disconnected, while establishes its own between host computer and host computer and battle array to be updated
The communication connection between renewable unit in row;FPGA unit is sent to host computer confirms update firmware information;Host computer connects
Receive confirmation update firmware information after to renewable unit send more fresh code.FPGA unit recovers DSP after the completion of firmware update
Connection between unit and host computer.Therefore can be completed in the case where not dismantled to power cell by host computer
The firmware of power cell is updated, firmware update can be carried out to specific power cell, it is active can also disposably to complete institute
The firmware update of rate unit, has the characteristics that update is efficient.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or terminal device including a series of elements not only will including those
Element, but also including other elements that are not explicitly listed or further include as this process, method, article or terminal
The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged
Except also there are other identical elements in the process including the element, method, article or terminal device.
It these are only the preferred embodiment of the present invention, be not intended to limit the invention, for those skilled in the art
For member, the invention may be variously modified and varied.Any modification within the spirit and principles of the invention, being made,
Equivalent substitution, improvement etc., should all be included in the protection scope of the present invention.