Embodiment
Below just the embodiment of hydraulic support electrohydraulic control system controller upgrade method of the present invention be described in detail.
Embodiment one:
Referring to shown in Figure 1, be the schematic flow sheet of hydraulic support electrohydraulic control system controller upgrade method embodiment one of the present invention, it comprises step:
Step S101: the upgrade software controller is connected to the optional position in the coal-face controller group, enters step S102;
Step S102: the mode of operation of the described controller of upgrade software is switched to the upgrade software host mode, and send the order that enters the upgrade software slave mode, enter step S103 to the upgrading target;
Step S103: the upgrading target receives described order, automatically switches to the upgrade software slave mode, and wipes the following and relevant storage space of need upgrade software of self normal operation mode, enters step S104;
Step S104: the upgrading target obtains new software data to the controller application of adjacent with this upgrading target and the close described controller of upgrade software, and the new software data that will obtain is stored in the described storage space.
Scheme in the aforesaid present embodiment, be with one the upgrade software controller be linked into optional position in the coal-face controller group, and this controller switched to the upgrade software host mode, send the order that enters the upgrade software slave mode to the upgrading target then, after the upgrading target receives this order, automatically switch to the upgrade software slave mode, and to adjacent with this upgrading target, and controller request for data near the described controller of upgrade software, realize once wiping old software, write the process of new software, this mode that controller is upgraded, it is the mode of one-to-many, its need not with upgrade software controller successively singly with workplace control group in each controller be connected to come respectively each controller upgraded, only need with one the upgrade software controller be linked into optional position among the coal-face control group, then this upgrade software controller provide corresponding order, follow-up escalation process just can be finished automatically, realize manual intervention minimum in the escalation process, improved the efficient that the controller of hydraulic support electrohydraulic control system is upgraded.
Wherein, in above-mentioned steps S101, will be when the upgrade software controller has been linked in the workplace controller group, can be the optional position in the cut-in operation face controller group, because the singularity that is connected in series successively between each controller in the workplace controller group, when concrete the access, being to insert between any two controllers, as shown in Figure 2, is with the synoptic diagram in the upgrade software controller cut-in operation face controller group, in diagram, omitted other system equipment such as isolator.Suppose to have in the workplace controller group n the controller that links to each other successively, be designated as controller 1 respectively, controller 2...... controller k-1, controller k, controller k+1...... controller n-1, controller n, remember that the above-mentioned controller of upgrade software is controller x, so, when being linked into controller x in the workplace controller group, can be to be linked into the optional position, for example be linked between controller k and the controller k+1, during access, disconnect earlier being connected between controller k and the controller k+1, then with the two ends of controller x respectively with controller k, controller k+1 is connected, so that controller x is connected between controller k and the controller k+1.
Need to prove, being connected between above-mentioned disconnection controller k and controller k+1, again will upgrade software controller x be linked between the two the time, can't cause the outage of controller k and controller k+1, controller k and controller k+1 still can normally move in access procedure.This be because, the networking mode of controller group has its singularity, a plurality of controllers are a minimum unit in the controller group, are generally 4 and form a minimum unit, and all controllers in this minimum unit are powered by a power supply, has only the coupling of communication between each minimum unit, and the relation between supply and demand of power supply not, therefore, after pulling out cable, might not cut off the power supply, hydraulic support electrohydraulic control system controller upgrade method of the present invention has the characteristics of warm start.
In addition, in the example of Fig. 2, be to be linked between two controllers in the middle of the connection chain of workplace controller group with general's upgrade software controller to describe, according to actual needs, also can be to be linked into the controller that is positioned at two ends, for example controller 1, controller n, at this moment, need not to disconnect the connection of any one controller, directly controller x access is got final product.The number of considering workplace controller group middle controller is more, generally have more than 100 even more than 200, if upgrade software controller x is connected two ends, when upgrading,, can have influence on the efficient of upgrading to a certain extent because it is more to obtain the progression of upgrade data step by step, so, under normal conditions, can be with this upgrade software controller be connected to the connection chain position intermediate, to realize the maximization of upgrading efficient.
When the mode of operation of upgrade software controller has switched to the upgrade software host mode with this, can be by this operation of the man-machine interface of upgrade software controller carry out, simultaneously, selection to the upgrading target, also can be by manually selecting by man-machine interface, this promptly enters the processes such as order that follow-up transmission enters the upgrade software slave mode after upgrade software controller has received the upgrading target of selecting by man-machine interface automatically.
In addition, when the upgrading target is selected, because when upgrading all is to upgrade to all controllers usually, so that each controller can both be carried out the control mode after the upgrading, therefore, the upgrading target here, can be all controllers in the workplace controller group, in this case, master slave relation is also arranged between each controller, and each controller is as slave, from being adjacent, and when the controller of the close described controller of upgrade software x obtains data, also conduct is with adjacent with this controller, and away from the main frame of the controller of upgrade software controller x, for it provides upgrade data.On the other hand, in some cases, may only need upgrade, upgrading is tested or carried out other purpose to one of them controller, at this moment, its upgrading target be chosen to be this left adjacent controller or the right adjacent controller of upgrade software controller get final product.
Below be described in detail respectively at the situations of these two kinds selected different upgrading targets.
Embodiment two
As shown in Figure 3, it is the schematic flow sheet of hydraulic support electrohydraulic control system controller software upgrade method embodiment two of the present invention, in the present embodiment, for the foregoing description one, further define the upgrading target and be the left adjacent controller or the right adjacent controller of upgrade software controller.
As shown in Figure 3, be that left adjacent controller is an example with the upgrading target, the hydraulic support electrohydraulic control system controller software upgrade method in the present embodiment comprises step:
Step S201: the upgrade software controller is connected to the optional position in the coal-face controller group, enters step S202;
Step S202: the mode of operation of the described controller of upgrade software is switched to the upgrade software host mode, and to this left adjacent controller of upgrade software controller send the order that enters the upgrade software slave mode, enter step S203;
Step S203: after left adjacent controller receives this order, automatically switch to the upgrade software slave mode, and wipe the following and relevant storage space of need upgrade software of self normal operation mode, enter step S204;
Step S204: the adjacent controller in a described left side is to the new software data of the described controller of upgrade software application, with the data storage that obtains in described storage space, and data obtain finish after, switch to normal operation mode.
In conjunction with the synoptic diagram of upgrade software controller cut-in operation face controller group shown in Fig. 2 is example, and in a concrete process that adjacent controller is upgraded to a left side, its detailed process can be:
At first, disconnect being connected between controller k and the controller k+1, then the general upgrade software controller x be linked between controller k and the controller k+1;
Subsequently, by this upgrade software controller x human-computer interaction interface with this mode of operation of upgrade software controller x switch to the upgrade software host mode, and the target selection of will upgrading is left adjacent controller, wherein a kind of specific implementation, can be after under normal operation mode, having selected the upgrading target of required upgrading, after the target selection that is about to upgrade is left adjacent controller, import correct operator password, after password correctly passes through, this upgrade software controller x automatically switch and to enter the upgrade software host mode, realize hot-swap;
After entering the upgrade software host mode, this upgrade software controller x as main frame, adjacent left controller k sends the order that enters the upgrade software slave mode, when sending this order, this upgrade software controller x can be continual transmission, for example every once this enters the order of upgrade software slave mode with regard to sending apart from certain preset time section, until receiving the request of data that is sended over by the adjacent controller k in a left side.
Originally operate in the left adjacent controller under the normal operation mode, after receiving the order that enters the upgrade software slave mode from the described controller of upgrade software x, automatically switch to the upgrade software slave mode immediately, wipe the following and relevant storage space of need upgrade software of self normal operation mode then;
Subsequently, the adjacent controller k in this left side constantly applies for new software data to the described controller of upgrade software x, and upgrade software controller x replys according to the request of data of the adjacent controller k in a left side, has all sent to left adjacent controller k until the data with new software;
The adjacent controller k in a left side switches to normal operation mode immediately after receiving all new software datas.
Wherein, the adjacent controller k in a left side is when upgrade software controller x applies for new software data, can apply in order in strict accordance with the sequence of addresses of need upgrade software place storage space, upgrade software controller x is after the request of data that receives left adjacent controller k, with the data on this address of self as replying, after the adjacent controller k in a left side receives data, the data that receive are write between corresponding memory block, and then carry out the data application of next address, obtain all new software datas until application.
And for upgrade software controller x, when if it does not all receive request of data in first section of setting aside some time, illustrate that the adjacent controller k in this left side has applied for obtaining all new software datas, so under the situation that need not to re-power, switch to normal operation mode, realize the warm start switching.Wherein, comprehensive various Considerations, first section of setting aside some time here can be set to 5 seconds, certainly, according to actual needs, also can be that this first section of setting aside some time is set at other values, does not repeat them here.
The adjacent controller k in a left side when switching to normal operation mode, also can be to switch under the situation that need not to re-power after receiving all new software datas, realizes the warm start switching.
In addition, consider because the problem of transmission line, may left adjacent controller k send request of data, but in this reservation first section of setting aside some time, not transfer to upgrade software controller x, cause this upgrade software controller x switched to normal operation mode.In order effectively to evade this risk, therefore, when after upgrade software controller x is switching to normal operation mode, receiving the request of data of left adjacent controller k again, automatically switch to the upgrade software host mode, and according to the request of data of the adjacent controller k in a left side to this left side adjacent controller k reply data, but, in this case, this upgrade software controller x no longer send the order that enters the upgrade software slave mode to the adjacent controller k in this left side.
In addition, the adjacent controller k in a left side is in escalation process, the power down accident may appear, the power down accident takes place after, the adjacent controller k in this left side enters the upgrade software slave mode automatically after re-powering, and will need the relevant storage space of upgrade software to wipe, and need the adjacent controller request for data of the sequence of addresses of upgrade software place storage space to predetermined direction according to this.
Being example shown in Fig. 2, for the adjacent controller k in a left side, may to be the left side adjacent with the adjacent controller k in this left side and away from the controller k-1 of the described controller of upgrade software x for its predetermined direction, in this case, because controller k-1 is not upgrading as yet, the adjacent controller k in this left side will obtain old data from this controller k-1, to guarantee the normal operation of this controller k, if predetermined direction is the right, then should a left side adjacent controller k will obtain new software data from upgrade software controller x application.
In addition, if upgrade software controller x is linked between controller 1 and the controller 2, so, in the present embodiment, the left adjacent controller of upgrade software controller x is a controller 1, and as mentioned above under the situation that the power down accident takes place, suppose that predetermined direction is a left-hand, the controller that the left side of this controller 1 is not connected, thereby can't apply for data, make controller 1 normally to move, in order effectively to evade this risk, the adjacent controller in this left side re-power enter the upgrade software slave mode after, during the beginning request for data, as if replying of the adjacent controller that in second section of setting aside some time, does not obtain described predetermined direction, turn to adjacent controller request for data, until being replied to other direction.The setting of second predetermined amount of time here can be identical with being provided with of above-mentioned first section of setting aside some time, also can be inequality.
Identical in other technologies feature in the present embodiment and the foregoing description one do not repeat them here.
Embodiment three
Referring to shown in Figure 4, it is the schematic flow sheet of hydraulic support electrohydraulic control system controller software upgrade method embodiment three of the present invention, in the present embodiment, for the foregoing description one, further defining the upgrading target is all controllers in the workplace controller group.
As shown in Figure 4, the hydraulic support electrohydraulic control system controller software upgrade method in the present embodiment comprises step:
Step S301: the upgrade software controller is connected to the optional position in the coal-face controller group, enters step S302;
Step S302: the mode of operation of the described controller of upgrade software is switched to the upgrade software host mode, and to this left and right adjacent controller of upgrade software controller send the order that enters the upgrade software slave mode, enter step S303;
Step S303: after each controller receives this order that enters the upgrade software slave mode, automatically switch to the upgrade software slave mode, and will order to being adjacent and transmitting away from the direction of the next stage controller of the described controller of upgrade software, enter step S304;
Step S304: each controller is wiped the following and relevant storage space of need upgrade software of self normal operation mode respectively, enters step S305;
Step S305: each controller is respectively to being adjacent and near the upper level controller application software data of the described controller of upgrade software, and accepts the request of next stage controller, and the data of next stage controller request are transmitted to this next stage controller.
In conjunction with the synoptic diagram of upgrade software controller cut-in operation face controller group shown in Fig. 2 is example, and in the process that concrete all controllers in the workplace controller group are upgraded, its detailed process can be:
At first, disconnect being connected between controller k and the controller k+1, then the general upgrade software controller x be linked between controller k and the controller k+1;
Subsequently, by this upgrade software controller human-computer interaction interface with this mode of operation of upgrade software switch to the upgrade software host mode, and the target selection of will upgrading is all controllers in entire working surface controller group or perhaps the workplace controller group, wherein a kind of specific implementation, can be after under normal operation mode, having selected the upgrading target of required upgrading, the target selection that is about to upgrade is behind all controllers in the workplace controller group, import correct operator password, after password correctly passes through, this the upgrade software controller automatically switch and to enter the upgrade software host mode, realize hot-swap;
After entering the upgrade software host mode, this upgrade software controller x as main frame, the adjacent left controller k of difference, right adjacent controller k+1 sends the order that all controllers enter the upgrade software slave mode, when sending this order, this upgrade software controller x can be continual transmission, adjacent controller k is an example with a left side, this upgrade software controller x whenever just send apart from certain preset time section that once this enters the order of upgrade software slave mode to the adjacent controller k in this left side, until receiving the request of data that sends over by the adjacent controller k in a left side, for the adjacent controller k+1 in the right side, implementation can be identical therewith;
Originally operate in the left adjacent controller k under the normal operation mode, receive after all controllers from the described controller of upgrade software x enter the order of upgrade software slave mode, with this order to being adjacent and sending away from the controller k-1 of the described controller of upgrade software x, and automatically switch to the upgrade software slave mode immediately, at this, described controller k-1 is called the next stage controller of controller k, controller k is called the upper level controller of controller k-1;
Subsequently, controller k wipes the storage space relevant with the need upgrade software under self normal operation mode;
Subsequently, the adjacent controller k in this left side constantly applies for new software data to the described controller of upgrade software x, and upgrade software controller x replys according to the request of data of the adjacent controller k in a left side, has all sent to left adjacent controller k until the data with new software;
The adjacent controller k in a left side also receives the request of data of its next stage controller k-1 simultaneously when upgrade software controller x applies for new software data, gives controller k-1 according to the request of data of next stage controller k-1 with the data answering of self this address.
Wherein, the adjacent controller k in a left side is when upgrade software controller x applies for new software data, can apply in order in strict accordance with the sequence of addresses of the relevant storage space of need upgrade software, upgrade software controller x is after the request of data that receives left adjacent controller k, with the data on self this address as replying, after the adjacent controller k in a left side receives data, the data that receive are write between corresponding memory block, and then carry out the data application of next address, obtain all new software datas until application.
And left adjacent controller k is when receiving the request of data of next stage controller k-1, the principle of request process and the above-mentioned controller of upgrade software x is similar, controller k-1 applies for to controller k in order in strict accordance with the sequence of addresses of need upgrade software place storage space, controller k is after the request of data that receives controller k-1, with the data of self this address as replying, if controller k is when receiving the request of data of controller k-1, data on the appropriate address of its storage space are not upgraded, then do not response, after the Data Update on its appropriate address, do again and reply, or wait for this request of data that this controller k-1 repeats to send, on this appropriate address, there are data to reply to it.
For other each controller, adjacent controller k is similar for its escalation process and an above-mentioned left side, it is when being adjacent and obtaining data near the upper level controller of the described controller of upgrade software x, also receive and be adjacent and away from the request of the next stage controller of the described controller of upgrade software x, the request of data based this next stage controller of self is sent to this next stage controller, do not repeat them here.
In the scheme that all controllers in the workplace controller group of present embodiment are all upgraded, each controller as slave, to be adjacent and upper level controller request for data near upgrade software controller x in, also as being adjacent and away from the main frame of the next stage controller of the described controller of upgrade software x, for this next stage controller provides data, promptly, will be the upgrade software controller in as main frame, workplace controller group all controller as slave in, also have auxiliary master slave relation between the controller of these slaves.
For upgrade software controller x, when if it does not all receive request of data in first section of setting aside some time, illustrate that adjacent controller k in this left side and right adjacent controller k+1 have applied for obtaining all new software datas, so under the situation that need not to re-power, switch to normal operation mode, realize the warm start switching.First section of setting aside some time here, comprehensive various factors is considered, can be set to 5 seconds, certainly, according to actual needs, also can be set at other values, does not repeat them here.
For the controller in the coal-face controller group, after receiving all new software datas, switch to normal operation mode immediately, when switching to normal operation mode, also can be under the situation that need not to re-power, to switch, realize the warm start switching.
In addition, consider because the problem of transmission line, may left adjacent controller k send request of data, but in this reservation first section of setting aside some time, not transfer to upgrade software controller x, cause this upgrade software controller x switched to normal operation mode.In order effectively to evade this risk, therefore, when after upgrade software controller x switches to normal operation mode, receiving the request of data of left adjacent controller again, automatically switch to the upgrade software host mode, and according to the request of data of the adjacent controller k in a left side to this left side adjacent controller k reply data, but, in this case, this upgrade software controller x no longer send the order that enters the upgrade software slave mode to the adjacent controller k in this left side.
In like manner, for other controllers in the workplace controller group, also might after entering normal operation mode, receive the request of data of next stage controller again, concerning these controllers, when after entering normal operation mode, receiving the request of data of next stage controller again, automatically switch to the upgrade software host mode, and the request of data of next stage controller is replied, but no longer send the order that enters the upgrade software slave mode to this next stage controller.
For fear of controller switching working mode continually, for each controller, also can be when receiving all new software datas and in certain the 3rd section of setting aside some time, do not receive the request of data of next stage controller, switch to normal operation mode again.It is identical that the 3rd section of setting aside some time here and first section of setting aside some time of the above-mentioned controller of upgrade software x can be set to, also can be inequality.
In addition, in the escalation process of controller, the power down accident may appear, the power down accident takes place after, controller enters the upgrade software slave mode automatically after re-powering, and will need the relevant storage space of upgrade software to wipe, and need the adjacent controller request for data of the sequence of addresses of the relevant storage space of upgrade software to predetermined direction according to this.
Being example shown in Fig. 2, for controller k, may to be the left side adjacent with the adjacent controller k in this left side and away from the controller k-1 of the described controller of upgrade software x for its predetermined direction, in this case, the adjacent controller k in this left side will obtain data from this controller k-1, to guarantee the normal operation of this controller k, if predetermined direction is the right, then should a left side adjacent controller k will obtain new software data from upgrade software controller x application.
In addition, as shown in Figure 2, for controller 1, if aforesaid power down accident takes place in controller 1, suppose that predetermined direction is a left-hand, the controller that the left side of this controller 1 is not connected, thereby may be replied never, can't apply for data, make controller 1 normally to move, in order effectively to evade this risk, this controller 1 re-power enter the upgrade software slave mode after, during the beginning request for data, as if replying of the adjacent controller that in second predetermined amount of time, does not obtain described predetermined direction, turn to adjacent controller request for data to other direction, be example with controller 1, will turn to controller 2 and apply for, until being replied.
Identical in other technologies feature in the present embodiment and the foregoing description two do not repeat them here.
Hydraulic support electrohydraulic control system controller software upgrade method according to the invention described above, adopt the mode of one-to-many, warm start that the controller of working surface hydraulic support electrohydraulic control system is upgraded, can be that left and right both direction is upgraded to controller, the number of the controller that can upgrade is many, according to present address configuration mode, all directions can be upgraded to 255 controllers at most, promptly once can upgrade to 510 controllers at most, and can single job can finish upgrading all controllers of workplace.
Moreover according to the invention described above method, updating speed is fast, learn by actual test result, a controller upgrade software is only needed 90 seconds, and for the upgrading of the workplace with 200 controllers, required time only needs general 120 seconds, has greatly improved upgrading efficient.
In addition, according to the invention described above method, except will be operation among the upgrade software controller access controller group by manually-operated, other operation only needs can finish by man-machine interface, manual intervention is few, escalation process is convenient convenient.
Above-described embodiment of the present invention only is the explanation to the specific embodiment of the present invention, does not constitute the qualification to protection domain of the present invention.Any modification of being done within the spirit and principles in the present invention, be equal to and replace and improvement etc., all should be included within the claim protection domain of the present invention.